/* CSS Reset & Variables */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

:root {
    --dy-emerald: #1c3d33;
    --dy-dark: #204f3f;
    --dy-sage: #81a494;
    --dy-sage-light: #c2d1cb;
    --dy-cream: #f4f6f5;

    --text-high: rgba(255, 255, 255, 1);
    --text-med: rgba(255, 255, 255, 0.87);
    --text-low: rgba(255, 255, 255, 0.65);

    --text-dark-high: rgba(15, 36, 29, 1);
    --text-dark-med: rgba(15, 36, 29, 0.87);
    --text-dark-low: rgba(15, 36, 29, 0.65);

    --radius-sharp: 4px;
    --radius-soft: 24px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dy-dark);
    color: var(--text-high);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

/* Subtle Noise Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 9999;
}

h1,
h2,
h3,
.serif {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    padding: 0 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 36, 29, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.header-logo img {
    height: 85px;
    width: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: 40px;
}

.header-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.header-nav a {
    position: relative;
    color: var(--text-med);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s;
    padding-bottom: 4px;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--dy-sage);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.header-nav a:hover {
    color: var(--text-high);
}

.header-nav a:hover::after {
    transform: scaleX(1);
}

.header-cta {
    background: linear-gradient(135deg, var(--dy-sage) 0%, #4f7363 100%);
    color: var(--text-high);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 100px;
    border-bottom-left-radius: var(--radius-sharp);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    text-align: center;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(129, 164, 148, 0.3);
}

/* Typography & Layout elements */
.sc-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.sc-title {
    font-size: clamp(36px, 4vw, 56px);
    margin-bottom: 20px;
    line-height: 1.1;
}

.sc-title em {
    color: var(--dy-sage);
    font-style: italic;
}

.sc-desc {
    font-size: 18px;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 60px;
}

/* Front Page Hero */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at center, var(--dy-emerald) 0%, var(--dy-dark) 80%);
    overflow: hidden;
}

.hero-orb-1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(129, 164, 148, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dy-sage);
    margin-bottom: 30px;
}

.hero-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--dy-sage);
}

.hero-title {
    font-size: clamp(40px, 4vw, 62px);
    line-height: 1.05;
    color: var(--text-high);
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.hero-title em {
    font-style: italic;
    color: var(--dy-sage-light);
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.6;
    color: var(--text-med);
    max-width: 500px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.h-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.h-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--text-high);
    line-height: 1;
}

.h-stat-label {
    font-size: 12px;
    color: var(--text-low);
    max-width: 140px;
    line-height: 1.4;
}

.hero-visual {
    position: relative;
    height: 85vh;
    min-height: 600px;
    max-height: 800px;
    border-radius: var(--radius-soft);
    border-top-right-radius: 120px;
    border-bottom-left-radius: var(--radius-sharp);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) brightness(0.9) grayscale(10%);
}

.hero-glass-card {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: rgb(255 255 255 / 73%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 20;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: #1c3d33;
}

/* Manifesto */
.manifesto-section {
    background: var(--dy-cream);
    color: var(--text-dark-high);
    padding: 140px 0 80px;
    overflow: hidden;
}

.manifesto-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.m-photos {
    position: relative;
    height: 80vh;
    min-height: 600px;
    width: 100%;
}

.m-photo-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 85%;
    object-fit: cover;
    border-radius: var(--radius-soft);
    border-bottom-left-radius: var(--radius-sharp);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.m-photo-sub {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 55%;
    object-fit: cover;
    border-radius: var(--radius-soft);
    border-top-right-radius: var(--radius-sharp);
    border: 12px solid var(--dy-cream);
}

.m-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.15;
    color: var(--dy-emerald);
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.m-text {
    font-size: 16px;
    color: var(--text-dark-med);
    line-height: 1.7;
    margin-bottom: 20px;
}

.m-signature {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-style: italic;
    color: var(--dy-sage);
    margin-top: 40px;
}

.m-socials {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.m-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    border-bottom-left-radius: var(--radius-sharp);
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}

.m-social-btn:hover {
    transform: translateY(-1px);
}

.m-social-btn--ghost {
    color: var(--dy-emerald);
    background: rgba(129, 164, 148, 0.12);
    border: 1px solid rgba(28, 61, 51, 0.2);
}

.m-social-btn--ghost:hover {
    background: rgba(129, 164, 148, 0.2);
    color: var(--dy-dark);
}

.m-social-btn--main {
    color: #fff;
    background: linear-gradient(135deg, var(--dy-emerald) 0%, #0f2a22 100%);
    border: 1px solid rgba(28, 61, 51, 0.3);
    box-shadow: 0 8px 20px rgba(15, 36, 29, 0.18);
}

.m-social-btn--main:hover {
    box-shadow: 0 12px 28px rgba(15, 36, 29, 0.22);
}

.m-social-icon {
    display: block;
    flex-shrink: 0;
}

/* Sections */
.section-dark {
    background: var(--dy-dark);
    color: var(--text-high);
    padding: 140px 0;
}

.section-light {
    background: var(--dy-cream);
    color: var(--text-dark-high);
    padding: 80px 0 140px;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
}

.section-dark .sc-eyebrow {
    color: var(--dy-sage);
}

.section-light .sc-eyebrow,
.manifesto-section .sc-eyebrow {
    color: var(--dy-emerald);
}

.section-dark .sc-title {
    color: var(--text-high);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.svc-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border-bottom-left-radius: var(--radius-sharp);
    border-top-right-radius: 40px;
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1px solid rgba(28, 61, 51, 0.05);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.svc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.svc-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--dy-cream);
}

.svc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(10%) contrast(1.05);
}

.svc-card:hover .svc-img {
    transform: scale(1.05);
}

.svc-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dy-emerald);
    padding: 6px 14px;
    border-radius: 100px;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.svc-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.svc-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--text-dark-high);
    margin-bottom: 12px;
}

.svc-desc {
    font-size: 14px;
    color: var(--text-dark-med);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.svc-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dy-emerald);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    transition: color 0.3s;
}

/* Service Single Page */
.svc-hero {
    background: var(--dy-cream);
    padding: 140px 0 80px;
}

.svc-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.svc-stats {
    margin-top: 40px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
}

.svc-hero-visual {
    position: relative;
    height: 600px;
    width: 100%;
}

.svc-price-card {
    background: #fff;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    position: absolute;
    bottom: -20px;
    left: -20px;
}

/* Sidebar Navigation */
.svc-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark-med);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.3s;
}

.svc-menu a:hover,
.svc-menu a.active {
    color: var(--dy-emerald);
    background: rgba(28, 61, 51, 0.02);
    border-left-color: var(--dy-emerald);
}

/* Comparator (Before/After) */
.comparator-wrap {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    cursor: ew-resize;
    margin: 30px 0;
}

.comp-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.comp-after {
    clip-path: inset(0 50% 0 0);
}

.comp-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    pointer-events: none;
}

.comp-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Content Headings inside CMS */
.svc-text-block h2 {
    font-size: 32px;
    color: var(--text-dark-high);
    margin-bottom: 24px;
    margin-top: 40px;
}

.svc-text-block h3 {
    font-size: 24px;
    color: var(--text-dark-med);
    margin-bottom: 16px;
    margin-top: 30px;
}

.svc-text-block p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.svc-text-block ul {
    margin-bottom: 20px;
    margin-left: 20px;
    line-height: 1.7;
}

.svc-text-block img {
    border-radius: 16px;
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Mobile Adaptability */
/* Laptop / wide tablet 1025 – 1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
    .hero-container {
        gap: 40px;
        grid-template-columns: 1fr 1fr;
    }

    .hero-visual {
        height: 70vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: clamp(32px, 3.2vw, 50px);
    }

    .manifesto-container {
        gap: 48px;
    }

    .m-photos {
        min-height: 480px;
    }

    .promo-deck {
        grid-template-columns: 1fr 1fr;
    }

    .promo-card {
        padding: 36px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .container {
        padding: 0 32px;
    }
}

@media (max-width: 1024px) {

    .header-nav,
    .header-cta-desktop {
        display: none;
    }

    .hero-container,
    .manifesto-container,
    .svc-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-label {
        margin: 0 auto 20px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-stats,
    .svc-stats {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
        left: 0;
        min-height: 400px;
        border-radius: var(--radius-soft);
    }

    .hero-glass-card {
        display: none;
    }

    .m-photos {
        min-height: 400px;
        margin-bottom: 40px;
    }

    .m-socials {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .svc-content-grid {
        grid-template-columns: 1fr !important;
    }

    .svc-sidebar {
        position: static;
        margin-bottom: 40px;
    }

    .svc-hero-visual {
        height: 400px;
    }

    .svc-price-card {
        left: 5vw !important;
        bottom: -20px !important;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 120px;
    }

    .m-socials {
        gap: 10px;
    }

    .m-social-btn {
        width: 100%;
        justify-content: center;
    }

    .comparator-wrap {
        height: 300px;
    }
}

/* --- PROMO DECK --- */
.promo-deck {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.promo-card {
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    border-top-right-radius: 80px;
    border-bottom-left-radius: var(--radius-sharp);
    border: 1px solid rgba(28, 61, 51, 0.05);
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(28, 61, 51, 0.05);
}

.pc-badge {
    display: inline-block;
    background: var(--dy-emerald);
    color: #fff;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.pc-badge.light {
    background: rgba(129, 164, 148, 0.15);
    color: var(--dy-emerald);
}

.pc-title {
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    color: var(--text-dark-high);
    margin-bottom: 16px;
}

.pc-text {
    font-size: 15px;
    color: var(--text-dark-med);
    line-height: 1.6;
    margin-bottom: 30px;
}

.pc-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dy-emerald);
    text-decoration: none;
}

.pc-action::after {
    content: '→';
    transition: transform 0.3s;
}

.promo-card:hover .pc-action::after {
    transform: translateX(4px);
}

/* --- PROBLEMS (Dark) --- */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border-top-right-radius: 60px;
    border-bottom-left-radius: var(--radius-sharp);
    transition: background 0.3s;
}

.problem-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.pr-icon {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    color: rgba(129, 164, 148, 0.3);
    line-height: 1;
    margin-bottom: 20px;
}

.pr-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--text-high);
    margin-bottom: 16px;
}

.pr-desc {
    font-size: 14px;
    color: var(--text-low);
    line-height: 1.6;
}

.results-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 40px;
    padding-bottom: 30px;
    /* padding for scrollbar */
    -webkit-overflow-scrolling: touch;
}

.results-grid::-webkit-scrollbar {
    height: 8px;
}

.results-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.results-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: background 0.3s;
}

.results-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.result-card {
    flex: 0 0 calc(50% - 20px);
    scroll-snap-align: start;
    min-width: 300px;
    background: rgb(255 255 255 / 22%);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rc-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.comparator-wrap {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    cursor: ew-resize;
}

.comp-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.comp-after {
    clip-path: inset(0 50% 0 0);
}

.comp-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    pointer-events: none;
}

.comp-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.comp-label {
    position: absolute;
    bottom: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
}

.comp-label-before {
    left: 16px;
}

.comp-label-after {
    right: 16px;
}

/* --- REVIEWS (Light) --- */
.reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 30px;
    /* padding for scrollbar */
    -webkit-overflow-scrolling: touch;
}

.reviews-grid::-webkit-scrollbar {
    height: 8px;
}

.reviews-grid::-webkit-scrollbar-track {
    background: rgba(28, 61, 51, 0.05);
    border-radius: 10px;
}

.reviews-grid::-webkit-scrollbar-thumb {
    background: rgba(28, 61, 51, 0.2);
    border-radius: 10px;
    transition: background 0.3s;
}

.reviews-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(28, 61, 51, 0.4);
}

.review-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    min-width: 300px;
    background: #fff;
    border: 1px solid rgba(28, 61, 51, 0.06);
    padding: 32px;
    border-radius: 20px;
    border-top-right-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.rev-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.rev-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--dy-sage), #4f7363);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
}

.rev-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rev-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark-high);
}

.rev-service {
    font-size: 12px;
    color: var(--text-dark-low);
}

.rev-text {
    font-size: 14px;
    color: var(--text-dark-med);
    line-height: 1.6;
    font-style: italic;
}

/* Responsive Overrides */
@media(max-width:1024px) {
    .promo-deck {
        grid-template-columns: 1fr;
    }

    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .result-card {
        flex: 0 0 calc(60% - 10px);
    }

    .review-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media(max-width:768px) {

    .problems-grid {
        grid-template-columns: 1fr;
    }

    /* ── Result cards: edge-to-edge scroll with peek ── */
    #results {
        overflow: hidden;
        position: relative;
    }

    /* Right-side fade — gives visual cue "there's more" */
    #results::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60px;
        background: linear-gradient(to right, transparent, var(--dy-cream));
        pointer-events: none;
        z-index: 5;
    }

    /* Break grid out of container padding */
    #results .results-grid {
        margin: 0 -4vw;
        padding: 0 4vw 8px;
        scroll-padding-left: 4vw;
        gap: 14px;
        scrollbar-width: none;
    }

    #results .results-grid::-webkit-scrollbar {
        display: none;
    }

    .result-card {
        flex: 0 0 calc(100% - 48px);
        min-width: 0;
    }

    .review-card {
        flex: 0 0 85%;
        min-width: 280px;
    }

    .promo-card {
        padding: 40px 30px;
    }

    .problem-card {
        padding: 30px;
    }
}

/* =========================================
   BURGER BUTTON
   ========================================= */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.3s;
}

.burger-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.burger-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-high);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease;
}

.burger-btn.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .burger-btn {
        display: flex;
    }
}

/* =========================================
   MOBILE DRAWER
   ========================================= */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 990;
    background: rgba(10, 23, 19, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-drawer.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 90vw);
    background: var(--dy-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    padding: 96px 36px 48px;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-drawer.open .mobile-drawer-inner {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mobile-nav-link {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--text-med);
    text-decoration: none;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: -0.3px;
    transition: color 0.25s, padding-left 0.25s;
}

.mobile-nav-link:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-link:hover {
    color: var(--text-high);
    padding-left: 8px;
}

.mobile-cta {
    margin-top: 36px;
    width: 100%;
    text-align: center;
    display: block;
}

.mobile-drawer-contacts {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-low);
    font-size: 15px;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.25s;
}

.mobile-contact-link:hover {
    color: var(--text-high);
}

body.drawer-open {
    overflow: hidden;
}

/* =========================================
   MODAL POPUP
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 23, 19, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 480px;
    border-radius: 24px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f4f6f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-high);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: #e8ecea;
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dy-sage);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #fdfdfd;
    font-size: 16px;
    color: var(--text-dark-high);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--dy-emerald);
    box-shadow: 0 0 0 4px rgba(28, 61, 51, 0.05);
}

/* Submit button in modal form */
.btn-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--dy-emerald) 0%, #0f2a22 100%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: none;
    border-radius: 100px;
    border-bottom-left-radius: var(--radius-sharp);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    box-shadow: 0 8px 24px rgba(15, 36, 29, 0.25);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #1c3d33 0%, var(--dy-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 36, 29, 0.35);
}

.btn-gold:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(15, 36, 29, 0.2);
}

/* =========================================
   CATALOG / SERVICES PAGE
   ========================================= */

/* ── PAGE HERO ── */
.page-hero {
    padding: 140px 80px 80px;
    background: var(--dy-cream);
    border-bottom: 1px solid rgba(28, 25, 23, 0.06);
}

.page-hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-dark-high);
    margin-bottom: 16px;
}

.page-hero-sub {
    font-size: 16px;
    color: var(--text-dark-med);
    line-height: 1.6;
    max-width: 540px;
}

.page-hero-note {
    padding: 20px 24px;
    background: rgba(201, 169, 110, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(201, 169, 110, 0.2);
    font-size: 14px;
    color: var(--text-dark-med);
    line-height: 1.5;
    white-space: normal;
    max-width: 300px;
}

.page-hero-note strong {
    display: block;
    font-size: 15px;
    color: var(--text-dark-high);
    font-weight: 700;
    margin-bottom: 4px;
}

/* ── FILTER BAR ── */
.filter-bar {
    position: sticky;
    top: 90px;
    z-index: 50;
    background: rgba(244, 246, 245, 0.95);
    backdrop-filter: blur(12px);
    padding: 0 80px;
    border-bottom: 1px solid rgba(28, 25, 23, 0.06);
    display: flex;
    align-items: center;
    gap: 0;
}

.filter-tab {
    padding: 20px 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark-low);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tab:hover {
    color: var(--text-dark-high);
}

.filter-tab.active {
    color: var(--text-dark-high);
    font-weight: 600;
    border-bottom-color: var(--dy-sage);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--dy-sage);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
    transition: background 0.2s;
}

.filter-tab.active .filter-count {
    background: var(--dy-emerald);
}

/* ── CATALOG BODY ── */
.catalog-body {
    padding: 64px 80px;
    max-width: 1560px;
    margin: 0 auto;
}

.cat-section {
    margin-bottom: 72px;
}

.cat-section:last-child {
    margin-bottom: 0;
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.cat-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-section-icon.inject {
    background: rgba(201, 169, 110, 0.1);
    color: #c9a96e;
}

.cat-section-icon.hardware {
    background: rgba(107, 140, 118, 0.1);
    color: var(--dy-sage);
}

.cat-title-block {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
}

.cat-title-block span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

.cat-line {
    flex: 1;
    height: 1px;
    background: rgba(28, 25, 23, 0.07);
}

/* ── Dynamic Grid ── */
/* Catalog fixed layout: exactly 3 cards per row on desktop/tablet */
.catalog-body .services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.catalog-body .services-grid .svc-card {
    grid-column: span 1;
}

/* Keep hardware section in the same 3-column rhythm */
.catalog-body .services-grid.two-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-body .services-grid.two-col .svc-card {
    grid-column: span 1;
}

/* ── Service Card ── */
.svc-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(28, 25, 23, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
}

.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(28, 25, 23, 0.09);
    border-color: rgba(129, 164, 148, 0.3);
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dy-sage), var(--dy-emerald));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
    z-index: 1;
}

.svc-card:hover::before {
    transform: scaleX(1);
}

/* Card Image */
.svc-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.svc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.svc-card:hover .svc-card-img img {
    transform: scale(1.05);
}

.svc-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.35) 0%, transparent 55%);
}

.svc-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dy-cream);
    color: var(--dy-sage);
}

.svc-card-top {
    padding: 24px 24px 16px;
    flex: 1;
}

.svc-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark-high);
    line-height: 1.3;
    margin-bottom: 8px;
}

.svc-card-desc {
    font-size: 13px;
    color: var(--text-dark-med);
    line-height: 1.65;
}

.svc-card-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 24px;
    border-top: 1px solid rgba(28, 25, 23, 0.05);
}

.svc-detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 100px;
}

.svc-detail-pill.time {
    background: rgba(28, 25, 23, 0.05);
    color: var(--text-dark-med);
}

.svc-detail-pill.prep {
    background: rgba(107, 140, 118, 0.08);
    color: var(--dy-sage);
}

.svc-detail-pill.result {
    background: rgba(201, 169, 110, 0.1);
    color: #a07340;
}

.svc-card-footer {
    padding: 16px 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(28, 25, 23, 0.05);
    flex-wrap: wrap;
}

.svc-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.svc-price-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dark-low);
    font-weight: 600;
}

.svc-price-value {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark-high);
    letter-spacing: -0.5px;
}

.svc-price-value span {
    font-size: 13px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark-low);
}

.svc-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dy-emerald);
    color: #fff;
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.svc-book-btn:hover {
    background: var(--dy-sage);
    color: #fff;
    transform: translateY(-1px);
}

.svc-book-btn.hw {
    background: var(--dy-sage);
}

.svc-book-btn.hw:hover {
    background: var(--dy-emerald);
    color: #fff;
}

/* Wide card disabled in catalog to keep strict 3-column structure */
.catalog-body .svc-card.wide {
    grid-column: span 1;
    flex-direction: column;
}

.catalog-body .svc-card.wide .svc-card-img {
    width: 100%;
    height: 180px;
    min-height: 0;
    flex-shrink: 0;
}

.catalog-body .svc-card.wide .svc-card-inner {
    display: contents;
}

.catalog-body .svc-card.wide .svc-card-top {
    padding: 24px 24px 16px;
}

.catalog-body .svc-card.wide .svc-card-name {
    font-size: 18px;
}

.catalog-body .svc-card.wide .svc-card-details {
    padding: 14px 24px;
    border-top: 1px solid rgba(28, 25, 23, 0.05);
}

.catalog-body .svc-card.wide .svc-card-footer {
    padding: 16px 24px 20px;
}

/* ── CTA BANNER ── */
.cta-banner {
    margin: 64px 80px;
    background: linear-gradient(135deg, #1c3d33 0%, #0f2a22 60%, #0a1f18 100%);
    border-radius: 28px;
    border: 1px solid rgba(129, 164, 148, 0.12);
    padding: 64px 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Decorative orbs */
.cta-banner-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-banner-orb--tr {
    top: -100px;
    right: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(129, 164, 148, 0.13) 0%, transparent 65%);
}

.cta-banner-orb--bl {
    bottom: -120px;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(129, 164, 148, 0.07) 0%, transparent 65%);
}

.cta-banner-left {
    flex: 1;
    min-width: 0;
}

.cta-banner-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--dy-sage);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cta-banner-tag span {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--dy-sage);
    opacity: 0.7;
    flex-shrink: 0;
}

.cta-banner-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-banner-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 28px;
}

.cta-banner-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.cta-banner-facts li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.38);
    padding-left: 16px;
    position: relative;
}

.cta-banner-facts li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dy-sage);
    opacity: 0.6;
}

.cta-banner-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

/* CTA Banner Button */
.btn-cta-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--dy-dark);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 100px;
    border-bottom-left-radius: var(--radius-sharp);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s, gap 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-cta-banner:hover {
    background: var(--dy-sage-light);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
    gap: 14px;
}

.btn-cta-banner svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.btn-cta-banner:hover svg {
    transform: translateX(3px);
}

.cta-free-note {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.cat-section[data-cat] {
    transition: opacity 0.2s;
}

.cat-section.hidden {
    display: none;
}

/* ── Responsive Catalog ── */
@media(max-width:1100px) {
    .catalog-body .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalog-body .services-grid.two-col {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-hero-inner {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        padding: 52px 56px;
    }

    .cta-banner-right {
        align-items: flex-start;
        width: 100%;
    }

    .btn-cta-banner {
        width: 100%;
        justify-content: center;
    }

    .cta-free-note {
        white-space: normal;
    }
}

@media(max-width:768px) {
    .page-hero {
        padding: 110px 20px 40px;
    }

    .page-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-hero-note {
        max-width: 100%;
        white-space: normal;
    }

    /* ── Mobile Filter Bar: pill-scroll ── */
    .filter-bar {
        top: 90px;
        padding: 12px 20px;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-bottom: none;
        box-shadow: 0 1px 0 rgba(28, 25, 23, 0.06),
            0 4px 12px rgba(28, 25, 23, 0.04);
    }

    .filter-bar::-webkit-scrollbar {
        display: none;
    }

    /* Переключить вид таба в pill на мобильном */
    .filter-tab {
        padding: 9px 18px;
        font-size: 13px;
        border-bottom: none !important;
        border-radius: 100px;
        background: rgba(28, 61, 51, 0.06);
        color: var(--text-dark-med);
        transition: background 0.2s, color 0.2s;
    }

    .filter-tab:hover {
        background: rgba(28, 61, 51, 0.1);
        color: var(--text-dark-high);
    }

    .filter-tab.active {
        background: var(--dy-emerald);
        color: #fff;
        font-weight: 600;
        border-bottom-color: transparent;
    }

    .filter-tab.active .filter-count {
        background: rgba(255, 255, 255, 0.3);
    }

    .catalog-body {
        padding: 36px 20px;
    }

    .catalog-body .services-grid.archive-services-grid {
        grid-template-columns: 1fr;
    }

    .catalog-body .services-grid.two-col {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .services-grid .svc-card,
    .services-grid .svc-card:nth-child(7n+1),
    .services-grid .svc-card:nth-child(7n+2),
    .services-grid .svc-card:nth-child(7n+6),
    .services-grid .svc-card:nth-child(7n) {
        grid-column: span 1;
    }

    .services-grid.two-col {
        grid-template-columns: 1fr;
    }

    .cat-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cat-line {
        display: none;
    }

    .svc-card-footer {
        flex-wrap: wrap;
        gap: 12px;
    }

    .svc-price-value {
        font-size: 18px;
    }

    .cta-banner {
        margin: 48px 20px;
        padding: 40px 32px;
        gap: 32px;
    }

    .btn-cta-banner {
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
    }

    .cta-banner-facts {
        gap: 6px 20px;
    }
}

/* =========================================
   HOME SERVICES — last card wide + CTA block
   ========================================= */

/* Home: last service card → span 4 (6-col grid) */
.services-grid.home-services-grid .svc-card:last-of-type {
    grid-column: span 4;
}

/* Archive: keep the last card in regular 3-column flow */
.services-grid.archive-services-grid .svc-card:last-of-type {
    grid-column: span 1;
}

/* CTA block: span 2 → fills the row (4 + 2 = 6) */
.services-cta-block {
    grid-column: span 3;
    background: linear-gradient(150deg, rgba(28, 61, 51, 0.55) 0%, rgba(10, 23, 19, 0.85) 100%);
    border: 1px solid rgba(129, 164, 148, 0.14);
    border-radius: 24px;
    border-top-right-radius: 60px;
    border-bottom-left-radius: var(--radius-sharp);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 36px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.35s, transform 0.35s;
    min-height: 240px;
}

.services-cta-block::before {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(129, 164, 148, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services-cta-block:hover {
    border-color: rgba(129, 164, 148, 0.38);
    transform: translateY(-4px);
}

.scb-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--dy-sage);
    margin-bottom: 14px;
}

.scb-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 1.6vw, 26px);
    font-weight: 600;
    color: var(--text-high);
    line-height: 1.25;
    margin-bottom: 28px;
    letter-spacing: -0.3px;
}

.scb-title em {
    font-style: italic;
    color: var(--dy-sage-light);
    font-weight: 400;
}

.scb-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--dy-sage);
    color: #fff;
    padding: 12px 22px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s, gap 0.3s;
    white-space: nowrap;
}

.services-cta-block:hover .scb-btn {
    background: #4f7363;
    gap: 14px;
}

.scb-content {
    position: relative;
    z-index: 1;
}

.scb-img {
    position: absolute;
    right: -20px;
    bottom: -10px;
    height: 120%;
    max-height: 280px;
    object-fit: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.services-cta-block:hover .scb-img {
    transform: scale(1.05) translateY(-5px);
    opacity: 1;
}

.scb-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.services-cta-block:hover .scb-btn svg {
    transform: translateX(3px);
}

/* Responsive: @media 1100px → 4-col grid */
@media (max-width: 1100px) {
    .services-grid.home-services-grid .svc-card:last-of-type {
        grid-column: span 2;
    }

    .services-grid.archive-services-grid .svc-card:last-of-type {
        grid-column: span 1;
    }

    .services-cta-block {
        grid-column: span 2;
        min-height: 200px;
    }
}

/* Responsive: @media 768px → 1-col */
@media (max-width: 768px) {
    .services-grid.home-services-grid .svc-card:last-of-type {
        grid-column: span 1;
    }

    .services-grid.archive-services-grid .svc-card:last-of-type {
        grid-column: span 1;
    }

    .services-cta-block {
        grid-column: span 1;
        min-height: 200px;
        padding: 32px;
    }

    .scb-title {
        font-size: 22px;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: #0a1713;
    color: var(--text-low);
    font-size: 14px;
    position: relative;
    z-index: 100;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 4vw 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo img {
    height: 60px;
    width: auto;
    display: block;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-desc {
    max-width: 300px;
    line-height: 1.7;
    color: var(--text-low);
}

.footer-col-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-high);
    margin-bottom: 24px;
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-phone {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-high);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

.footer-phone:hover {
    color: var(--dy-sage);
}

.footer-link {
    color: var(--text-low);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--text-high);
}

.footer-bottom {
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        padding: 60px 6vw 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-col--brand {
        grid-column: auto;
    }
}

/* ─────────────────────────────────────────────────────────────────
   SERVICE SINGLE PAGE — STRUCTURED CONTENT BLOCKS
   ───────────────────────────────────────────────────────────────── */

/* Hero overrides */
.svc-hero-title {
    font-size: clamp(32px, 4vw, 52px);
    color: var(--text-dark-high);
    margin-bottom: 20px;
    line-height: 1.15;
}

.svc-hero-desc {
    font-size: 16px;
    color: var(--text-dark-med);
    line-height: 1.65;
    max-width: 500px;
    margin-bottom: 24px;
}

.svc-tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.svc-tag {
    background: rgba(129, 164, 148, 0.15);
    color: var(--dy-emerald);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
}

.svc-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.svc-stat-label {
    font-size: 11px;
    color: var(--dy-sage);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.svc-stat-val {
    font-weight: 500;
    color: var(--text-dark-high);
}

.svc-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-soft);
}

/* Content layout */
.svc-content-section {
    padding: 100px 0 140px;
    background: var(--dy-cream);
}

.svc-content-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: start;
}

.svc-content-main {
    min-width: 0;
}

/* Sidebar */
.svc-sidebar {
    position: sticky;
    top: 120px;
}

/* Sidebar nav already styled via .svc-menu */

/* Doctor profile card — social style */
.svc-profile-card {
    margin-top: 32px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.svc-profile-cover {
    position: relative;
    height: 90px;
}

.svc-profile-cover-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dy-emerald) 0%, #0f241d 100%);
}

/* Subtle pattern overlay */
.svc-profile-cover-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(129, 164, 148, 0.35) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}

.svc-profile-avatar-ring {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--dy-sage) 0%, var(--dy-emerald) 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.svc-profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    display: block;
}

.svc-profile-body {
    padding: 44px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.svc-profile-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark-high);
    margin-bottom: 4px;
}

.svc-profile-role {
    font-size: 12px;
    color: var(--text-dark-med);
    margin-bottom: 18px;
}

.svc-profile-stats {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    background: var(--dy-cream);
    border-radius: 12px;
    padding: 12px 0;
    margin-bottom: 16px;
}

.svc-profile-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.svc-profile-stat-num {
    font-size: 17px;
    font-weight: 700;
    color: var(--dy-emerald);
    font-family: 'Playfair Display', serif;
}

.svc-profile-stat-label {
    font-size: 10px;
    color: var(--text-dark-med);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.svc-profile-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(0, 0, 0, 0.08);
}

.svc-profile-quote {
    font-size: 13px;
    color: var(--text-dark-med);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 18px;
    padding: 0 4px;
}

.svc-profile-cta {
    width: 100%;
    padding: 13px 0;
    background: linear-gradient(135deg, var(--dy-emerald) 0%, #0f3028 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 12px;
    border-bottom-left-radius: var(--radius-sharp);
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s, transform 0.2s;
    margin-bottom: 14px;
    display: block;
    text-decoration: none;
}

.svc-profile-cta:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.svc-profile-socials {
    display: flex;
    gap: 8px;
    width: 100%;
}

.svc-social-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.svc-social-pill:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.svc-social-pill--tg {
    background: #e8f2ff;
    color: #2170df;
}

.svc-social-pill--ig {
    background: linear-gradient(135deg, #ffecd2 0%, #fce4f3 100%);
    color: #c13584;
}

/* Content blocks */
.svc-block {
    margin-bottom: 80px;
    scroll-margin-top: 120px;
}

.svc-block-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--text-dark-high);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.svc-block-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--dy-emerald);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Drugs chips */
.svc-drugs-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.svc-drug-chip {
    background: #fff;
    border: 1px solid rgba(129, 164, 148, 0.35);
    color: var(--text-dark-high);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 100px;
}

/* Price table */
.svc-price-table-wrap {
    background: #fff;
    border: 1px solid rgba(129, 164, 148, 0.2);
    border-radius: 18px;
    overflow: hidden;
}

.svc-price-table {
    width: 100%;
    border-collapse: collapse;
}

.svc-price-table thead th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark-low);
    background: #f7f9f8;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(129, 164, 148, 0.18);
}

.svc-price-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(129, 164, 148, 0.12);
    vertical-align: middle;
}

.svc-price-table tbody tr:last-child td {
    border-bottom: none;
}

.svc-price-table-name {
    color: var(--text-dark-high);
    font-size: 15px;
    font-weight: 600;
}

.svc-price-table-value {
    color: var(--dy-emerald);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.svc-price-table-action {
    text-align: right;
}

.svc-price-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(28, 61, 51, 0.2);
    background: #fff;
    color: var(--dy-emerald);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.svc-price-btn:hover {
    background: var(--dy-emerald);
    color: #fff;
    border-color: var(--dy-emerald);
}

/* Steps */
.svc-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svc-step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(129, 164, 148, 0.12);
    border-radius: 18px;
    padding: 22px 24px;
}

.svc-step-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--dy-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dy-emerald);
    border: 1px solid rgba(28, 61, 51, 0.1);
}

.svc-step-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--dy-sage);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.svc-step-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark-high);
    margin-bottom: 6px;
}

.svc-step-desc {
    font-size: 14px;
    color: var(--text-dark-med);
    line-height: 1.6;
}

/* Contraindications */
.svc-contras-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.svc-contras-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.svc-contras-subtitle {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--text-dark-high);
}

.svc-contras-subdesc {
    margin: -4px 0 12px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-dark-med);
}

.svc-contra-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark-med);
    background: #fff5f5;
    border: 1px solid rgba(248, 113, 113, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
}

.svc-contra-item svg {
    flex-shrink: 0;
    color: #f87171;
}

.svc-contras-note {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark-high);
    font-weight: 600;
}

/* FAQ */
.svc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.svc-faq-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    overflow: hidden;
}

.svc-faq-btn {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
}

.svc-faq-btn span:first-child {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark-high);
}

.svc-faq-icon {
    font-size: 22px;
    color: var(--dy-emerald);
    transition: transform 0.3s;
    flex-shrink: 0;
    line-height: 1;
}

.svc-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.svc-faq-body p {
    padding: 0 24px 20px;
    color: var(--text-dark-med);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Before / After */
.svc-ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.svc-ba-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.svc-ba-images {
    display: flex;
    height: 220px;
}

.svc-ba-half {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--dy-dark);
}

.svc-ba-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.svc-ba-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1.5px;
}

.svc-ba-caption {
    padding: 14px 18px;
    font-size: 13px;
    color: var(--text-dark-med);
    font-weight: 500;
}

/* Mobile adaptations */
@media (max-width: 1024px) {
    .svc-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .svc-sidebar {
        position: static;
        margin-bottom: 40px;
    }

    .svc-menu {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        border-radius: 16px;
        padding: 6px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .svc-menu::-webkit-scrollbar {
        display: none;
    }

    .svc-menu li {
        flex: 1 0 auto;
    }

    .svc-menu a {
        border-left: none;
        border-radius: 10px;
        background: transparent;
        padding: 9px 14px;
        font-size: 13px;
        white-space: nowrap;
        text-align: center;
        display: block;
    }

    .svc-menu a:hover,
    .svc-menu a.active {
        background: var(--dy-emerald);
        color: #fff;
        border-left: none;
    }

    .svc-profile-card {
        max-width: 360px;
    }
}

@media (max-width: 768px) {

    .svc-content-grid {
        padding: 0 20px;
        gap: 28px;
    }

    .svc-sidebar,
    .svc-content-main,
    .svc-content-main>* {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .svc-contras-grid,
    .svc-ba-grid {
        grid-template-columns: 1fr;
    }

    .svc-menu {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .svc-menu li {
        flex: 0 0 auto;
        min-width: max-content;
    }

    .svc-menu a {
        white-space: nowrap;
    }

    .svc-price-table-wrap {
        max-width: 100%;
        overflow-x: hidden;
    }

    .svc-price-table thead {
        display: none;
    }

    .svc-price-table,
    .svc-price-table tbody,
    .svc-price-table tr,
    .svc-price-table td {
        display: block;
        width: 100%;
    }

    .svc-price-table tbody tr {
        padding: 14px 16px;
        border-bottom: 1px solid rgba(129, 164, 148, 0.12);
        max-width: 100%;
        overflow: hidden;
    }

    .svc-price-table tbody tr:last-child {
        border-bottom: none;
    }

    .svc-price-table tbody td {
        border: none;
        padding: 0;
        display: block;
    }

    .svc-price-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        color: var(--text-dark-low);
    }

    .svc-price-table-name {
        margin-bottom: 10px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .svc-price-table-value {
        margin-bottom: 10px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .svc-price-table-action::before {
        display: none;
    }

    .svc-price-table-action {
        text-align: left;
    }

    .svc-price-btn {
        width: 100%;
    }

    .svc-step-item {
        padding: 16px;
    }

    .svc-block-title {
        font-size: 22px;
    }

    .svc-tags-row {
        display: flex;
        justify-content: center;
    }
}

/* =========================================
   BLOG SYSTEM (CPT: blog_story)
   ========================================= */

.home-blog {
    padding-top: 90px;
}

.home-blog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.home-blog-head .sc-desc {
    margin-bottom: 0;
    max-width: 640px;
}

.home-blog-all-link {
    flex-shrink: 0;
}

.home-blog-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.home-blog-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-dark-med);
    border-radius: 100px;
    background: rgba(28, 61, 51, 0.07);
    text-decoration: none;
    transition: all 0.2s;
}

.home-blog-chip:hover,
.home-blog-chip.active {
    background: var(--dy-emerald);
    color: #fff;
}

.home-blog-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(28, 61, 51, 0.25) transparent;
}

.home-blog-track::-webkit-scrollbar {
    height: 8px;
}

.home-blog-track::-webkit-scrollbar-thumb {
    background: rgba(28, 61, 51, 0.22);
    border-radius: 999px;
}

.blog-intro-wrap {
    margin-bottom: 18px;
}

.blog-feed-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.blog-feed-text-stack {
    display: grid;
    grid-template-rows: 48% 48%;
    row-gap: 4%;
    align-self: stretch;
    min-height: 520px;
    height: 100%;
}

.blog-feed-card {
    background: #fff;
    border: 1px solid rgba(28, 61, 51, 0.08);
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.24s, box-shadow 0.24s, border-color 0.24s;
    display: flex;
    flex-direction: column;
}

.blog-feed-card:hover {
    transform: translateY(-4px);
    border-color: rgba(28, 61, 51, 0.2);
    box-shadow: 0 18px 40px rgba(15, 36, 29, 0.08);
}

.blog-feed-card__link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.blog-feed-card__media {
    flex-shrink: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #060f0b;
}

.blog-feed-card__media img,
.blog-feed-card__media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #060f0b;
    display: block;
}

.blog-feed-card__media--video {
    aspect-ratio: 4 / 5;
}

.blog-feed-card__media--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.blog-feed-card__media--split figure {
    margin: 0;
    position: relative;
    aspect-ratio: 4 / 5;
}

.blog-feed-card__media--split figcaption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 100px;
    padding: 4px 8px;
}

.blog-feed-card__body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
}

.blog-feed-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--dy-sage);
    margin-bottom: 10px;
}

.blog-feed-card__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.2;
    color: var(--text-dark-high);
    margin: 0 0 40px;
}

.blog-feed-card__text {
    font-size: 14px;
    color: var(--text-dark-med);
    line-height: 1.65;
    margin: 0;
    white-space: pre-line;
}

.blog-feed-card:not(.blog-feed-card--compact):not(.blog-feed-card--intro) .blog-feed-card__title {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-feed-card:not(.blog-feed-card--compact):not(.blog-feed-card--intro) .blog-feed-card__text {
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-feed-card:not(.blog-feed-card--compact):not(.blog-feed-card--intro) .blog-feed-card__result {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-feed-card__result {
    margin-top: 14px;
    font-size: 15px;
    color: var(--text-dark-high);
    font-weight: 600;
}

.blog-feed-card--text .blog-feed-card__body {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(129, 164, 148, 0.18) 0%, rgba(129, 164, 148, 0) 46%),
        radial-gradient(circle at 100% 88%, rgba(28, 61, 51, 0.12) 0%, rgba(28, 61, 51, 0) 45%),
        linear-gradient(160deg, #f7faf8 0%, #edf3f0 55%, #e7eeea 100%);
    border-top: 1px solid rgba(28, 61, 51, 0.08);
    min-height: 280px;
}

.blog-feed-card--text .blog-feed-card__body::before {
    content: 'Текстовая запись';
    display: inline-flex;
    align-items: center;
    width: max-content;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(15, 36, 29, 0.72);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(28, 61, 51, 0.14);
    border-radius: 100px;
    padding: 6px 10px;
    margin-bottom: 12px;
}

.blog-feed-card--text .blog-feed-card__body::after {
    content: '"';
    position: absolute;
    right: 10px;
    bottom: -6px;
    font-family: 'Playfair Display', serif;
    font-size: 120px;
    line-height: 0.7;
    color: rgba(28, 61, 51, 0.08);
    pointer-events: none;
}

.blog-feed-card--text .blog-feed-card__meta {
    color: rgba(28, 61, 51, 0.58);
    margin-bottom: 8px;
}

.blog-feed-card--text .blog-feed-card__title {
    margin-bottom: 10px;
}

.blog-feed-card--text .blog-feed-card__result {
    margin-top: 10px;
    color: rgba(15, 36, 29, 0.86);
}

.blog-feed-card--text .blog-feed-card__text,
.blog-feed-card--text .blog-feed-card__result {
    padding-top: 0;
}

.blog-feed-card--text-half {
    min-height: 0;
    height: 100%;
}

.blog-feed-card--text-half .blog-feed-card__link {
    height: 100%;
}

.blog-feed-card--text-half .blog-feed-card__body {
    min-height: 0;
    height: 100%;
    padding: 12px 14px;
}

.blog-feed-card--text-half .blog-feed-card__meta {
    margin-bottom: 6px;
    font-size: 10px;
}

.blog-feed-card--text-half .blog-feed-card__title {
    font-size: clamp(14px, 1.05vw, 18px);
    margin-bottom: 6px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-feed-card--text-half .blog-feed-card__text {
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-feed-card--text-half .blog-feed-card__result {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-feed-card--text-half .blog-feed-card__body::after {
    font-size: 88px;
    right: 8px;
    bottom: -8px;
}

.blog-feed-card--text-placeholder {
    border-style: solid;
    border-color: rgba(28, 61, 51, 0.22);
    box-shadow: none;
}

.blog-feed-card--text-placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(28, 61, 51, 0.22);
}

.blog-feed-card--text-placeholder .blog-feed-card__link {
    pointer-events: none;
}

.blog-feed-card--text-placeholder .blog-feed-card__body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 18%, rgba(129, 164, 148, 0.16) 0%, rgba(129, 164, 148, 0) 56%),
        linear-gradient(165deg, #152921 0%, #0f2019 56%, #0b1712 100%);
    border-top: none;
}

.blog-feed-card--text-placeholder .blog-feed-card__body::before {
    content: none;
}

.blog-feed-card--text-placeholder .blog-feed-card__body::after {
    content: none;
}

.blog-feed-card__placeholder-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    opacity: 0.96;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.34));
}

.blog-feed-card--compact {
    min-width: min(340px, 84vw);
    max-width: min(340px, 84vw);
}

.blog-feed-card--compact .blog-feed-card__title {
    font-size: 22px;
    margin-bottom: 8px;
}

/* Compact cards — fixed heights for related track */
.blog-feed-card--compact .blog-feed-card__media {
    aspect-ratio: unset;
    height: 240px;
    flex-shrink: 0;
}

.blog-feed-card--compact.blog-feed-card--video .blog-feed-card__media {
    height: 240px;
    aspect-ratio: unset;
}

/* Text-format compact card: 75% text + 25% decorative image */
.blog-feed-card--compact.blog-feed-card--text .blog-feed-card__link {
    display: flex;
    flex-direction: column;
    height: 360px;
}

.blog-feed-card--compact.blog-feed-card--text .blog-feed-card__body {
    flex: 1;
    height: auto;
    min-height: unset;
    overflow: hidden;
}

.blog-feed-card--compact.blog-feed-card--text .blog-feed-card__link::after {
    content: none;
    display: none;
}

.blog-feed-card--compact.blog-feed-card--text .blog-feed-card__text,
.blog-feed-card--compact.blog-feed-card--text .blog-feed-card__result {
    padding-top: 0;
}

.blog-feed-card--compact.blog-feed-card--text .blog-feed-card__text {
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-feed-card--compact.blog-feed-card--text .blog-feed-card__result {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Text cards in main feed — same envelope treatment, full card width */
.blog-feed-card--text:not(.blog-feed-card--compact) .blog-feed-card__link {
    display: flex;
    flex-direction: column;
}

.blog-feed-card--text:not(.blog-feed-card--compact) .blog-feed-card__body {
    flex: 1;
}

.blog-feed-card--text:not(.blog-feed-card--compact) .blog-feed-card__link::after {
    content: none;
    display: none;
}

.blog-feed-card--text:not(.blog-feed-card--compact) .blog-feed-card__text,
.blog-feed-card--text:not(.blog-feed-card--compact) .blog-feed-card__result {
    margin-top: 0;
    padding-top: 0;
}

.blog-feed-card--intro {
    border-radius: 26px;
}

.blog-feed-card--intro .blog-feed-card__link {
    display: grid;
    grid-template-columns: minmax(280px, 430px) 1fr;
}

.blog-feed-card--intro .blog-feed-card__media {
    aspect-ratio: unset;
    height: 100%;
    min-height: 360px;
}

.blog-feed-card--intro .blog-feed-card__media img,
.blog-feed-card--intro .blog-feed-card__media video {
    object-fit: contain;
    background: #060f0b;
}

.blog-feed-card--intro .blog-feed-card__body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-empty-state {
    background: #fff;
    border: 1px solid rgba(28, 61, 51, 0.08);
    border-radius: 20px;
    padding: 32px;
}

.blog-empty-state h3 {
    margin: 0 0 8px;
    font-size: 28px;
    color: var(--text-dark-high);
}

.blog-empty-state p {
    margin: 0;
    color: var(--text-dark-med);
}

/* Archive */
.blog-archive-page {
    padding-top: 120px;
    background: #204f3f;
    color: var(--text-high);
}

.blog-archive-page .sc-eyebrow {
    color: var(--dy-sage);
}

.blog-archive-page .sc-title {
    color: rgba(255, 255, 255, 0.95);
}

.blog-archive-page .sc-desc {
    color: rgba(255, 255, 255, 0.72);
}

.blog-archive-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
        max-width: 100%;
}

.blog-archive-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 14px;
}

.blog-sidebar-box {
    background: #fff;
    border: 1px solid rgba(28, 61, 51, 0.08);
    border-radius: 18px;
    padding: 18px;
}

.blog-archive-page .blog-sidebar-box {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.blog-sidebar-box h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--text-dark-high);
}

.blog-archive-page .blog-sidebar-box h3 {
    color: rgba(255, 255, 255, 0.92);
}

.blog-topic-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-dark-med);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-archive-page .blog-topic-link {
    color: rgba(255, 255, 255, 0.82);
}

.blog-topic-link:hover,
.blog-topic-link.active {
    background: rgba(28, 61, 51, 0.08);
    color: var(--text-dark-high);
}

.blog-archive-page .blog-topic-link:hover,
.blog-archive-page .blog-topic-link.active {
    background: rgba(129, 164, 148, 0.2);
    color: #fff;
}

.blog-topic-link span {
    font-size: 12px;
    color: var(--text-dark-low);
}

.blog-archive-page .blog-topic-link span {
    color: rgba(255, 255, 255, 0.62);
}

.blog-sidebar-contact {
    display: block;
    text-decoration: none;
    color: var(--text-dark-high);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 0;
}

.blog-archive-page .blog-sidebar-contact {
    color: rgba(255, 255, 255, 0.88);
}

.blog-sidebar-btn {
    width: 100%;
    border: none;
    margin-top: 8px;
    cursor: pointer;
}

.blog-archive-main {
    min-width: 0;
}

.blog-archive-header {
    margin-bottom: 24px;
}

.blog-archive-header .sc-desc {
    margin-bottom: 0;
    max-width: 680px;
}

.blog-archive-page .blog-feed-card {
    background: #12231d;
    border-color: rgba(129, 164, 148, 0.26);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.blog-archive-page .blog-feed-card:hover {
    border-color: rgba(129, 164, 148, 0.5);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.3);
}

.blog-archive-page .blog-feed-card__media {
    background: #050d09;
}

.blog-archive-page .blog-feed-card__media img,
.blog-archive-page .blog-feed-card__media video {
    background: #050d09;
}

.blog-archive-page .blog-feed-card__meta {
    color: rgba(129, 164, 148, 0.9);
}

.blog-archive-page .blog-feed-card__title {
    color: rgba(255, 255, 255, 0.96);
}

.blog-archive-page .blog-feed-card__text {
    color: rgba(255, 255, 255, 0.8);
}

.blog-archive-page .blog-feed-card__result {
    color: rgba(255, 255, 255, 0.9);
}

.blog-archive-page .blog-feed-card--text .blog-feed-card__body {
    background:
        radial-gradient(circle at 12% 10%, rgba(129, 164, 148, 0.22) 0%, rgba(129, 164, 148, 0) 46%),
        radial-gradient(circle at 100% 88%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(160deg, #183128 0%, #13261f 56%, #0f1f19 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-archive-page .blog-feed-card--text .blog-feed-card__body::before {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.blog-archive-page .blog-feed-card--text .blog-feed-card__body::after {
    color: rgba(255, 255, 255, 0.07);
}

.blog-archive-page .blog-feed-card--text-placeholder {
    border-color: rgba(129, 164, 148, 0.36);
    background: transparent;
}

.blog-archive-page .blog-feed-card--text-placeholder .blog-feed-card__body {
    background:
        radial-gradient(circle at 20% 18%, rgba(129, 164, 148, 0.2) 0%, rgba(129, 164, 148, 0) 56%),
        linear-gradient(165deg, #11221b 0%, #0b1712 100%);
}

.blog-archive-page .blog-feed-card--text-placeholder .blog-feed-card__body::before {
    content: none;
}

.blog-archive-page .blog-load-more-btn {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
}

.blog-archive-page .blog-load-more-btn:hover {
    background: var(--dy-sage);
    color: #07100c;
    border-color: var(--dy-sage);
}

.blog-archive-page .blog-load-more-status {
    color: rgba(255, 255, 255, 0.62);
}

.blog-archive-page .blog-empty-state {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.blog-archive-page .blog-empty-state h3 {
    color: rgba(255, 255, 255, 0.95);
}

.blog-archive-page .blog-empty-state p {
    color: rgba(255, 255, 255, 0.75);
}

.blog-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.blog-load-more-btn {
    border: 1px solid rgba(28, 61, 51, 0.18);
    background: #fff;
    color: var(--text-dark-high);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.blog-load-more-btn:hover {
    background: var(--dy-emerald);
    color: #fff;
    border-color: var(--dy-emerald);
}

.blog-load-more-btn:disabled {
    opacity: 0.6;
    cursor: progress;
}

.blog-load-more-status {
    margin: 0;
    min-height: 18px;
    font-size: 13px;
    color: var(--text-dark-low);
}

/* Single */
.blog-single-page {
    padding-top: 120px;
    padding-bottom: 120px;
}

.blog-single-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.blog-single-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 14px;
}

.blog-single-main {
    min-width: 0;
}

.blog-single-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark-med);
    font-size: 14px;
    margin-bottom: 14px;
}

.blog-single-card {
    background: #fff;
    border: 1px solid rgba(28, 61, 51, 0.08);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(280px, 430px) 1fr;
}

.blog-single-card--before-after,
.blog-single-card--no-media {
    grid-template-columns: 1fr;
}

.blog-single-body--lower {
    border-top: 1px solid rgba(28, 61, 51, 0.08);
}

.blog-single-media {
    background: #0f241d;
    min-height: 380px;
}

.blog-single-media img,
.blog-single-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-single-media--video {
    max-height: 900px;
}

.blog-single-media--video video {
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.blog-single-media--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.blog-single-media--split figure {
    margin: 0;
    position: relative;
    aspect-ratio: 3 / 4;
}

.blog-single-media--split figcaption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 100px;
    padding: 4px 8px;
}

.blog-single-body {
    padding: 28px;
}

.blog-single-title {
    font-size: clamp(30px, 2.5vw, 44px);
    color: var(--text-dark-high);
    line-height: 1.15;
    margin: 0 0 16px;
}

.blog-single-lead {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark-med);
}

.blog-single-lead p {
    margin: 0 0 12px;
}

.blog-single-lead p:last-child {
    margin-bottom: 0;
}

.blog-single-content {
    color: var(--text-dark-med);
    font-size: 16px;
    line-height: 1.75;
}

.blog-single-content p {
    margin: 0 0 14px;
}

.blog-single-result {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark-high);
}

.blog-single-tags {
    margin-top: 10px;
    font-size: 14px;
    color: var(--dy-emerald);
    font-weight: 600;
}

.blog-single-extra-block {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(28, 61, 51, 0.08);
}

.blog-single-extra-block h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: var(--text-dark-high);
}

.blog-single-extra-block p {
    margin: 0;
    color: var(--text-dark-med);
    font-size: 15px;
    line-height: 1.65;
}

.blog-single-cta-btn {
    margin-top: 18px;
    border: none;
}

.blog-single-editor-section {
    margin-top: 16px;
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(28, 61, 51, 0.08);
    border-radius: 24px;
}

.blog-related-section {
    margin-top: 24px;
}

.blog-related-title {
    margin: 0 0 14px;
    font-size: 34px;
    color: var(--text-dark-high);
}

.blog-related-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.blog-single-footer-cta {
    margin-top: 24px;
    background: linear-gradient(145deg, #1c3d33, #0f241d);
    border-radius: 24px;
    border: 1px solid rgba(129, 164, 148, 0.22);
    color: #fff;
    padding: 28px;
}

.blog-single-footer-cta h3 {
    margin: 0 0 8px;
    font-size: 30px;
}

.blog-single-footer-cta p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
}

.blog-single-footer-cta__actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-single-footer-cta .blog-sidebar-contact {
    color: #fff;
    opacity: 0.86;
}

@media (max-width: 1200px) {
    .blog-feed-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .blog-feed-text-stack {
        min-height: 480px;
    }

    .blog-archive-layout,
    .blog-single-layout {
        grid-template-columns: 1fr;
    }

    .blog-archive-sidebar,
    .blog-single-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .blog-feed-card--intro .blog-feed-card__link,
    .blog-single-card {
        grid-template-columns: 1fr;
    }

    .blog-feed-card--intro .blog-feed-card__media,
    .blog-single-media {
        max-height: 620px;
    }
}

@media (max-width: 900px) {
    .blog-feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-feed-text-stack {
        min-height: 460px;
    }

    .home-blog-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-blog-all-link {
        width: 100%;
        justify-content: center;
    }

    .blog-archive-sidebar,
    .blog-single-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-blog .sc-title,
    .blog-archive-page .sc-title {
        font-size: clamp(40px, 10vw, 52px);
        line-height: 1.08;
    }

    .blog-feed-card__title {
        font-size: clamp(21px, 6.4vw, 30px);
        line-height: 1.18;
    }

    .blog-single-title {
        font-size: clamp(34px, 8.8vw, 48px);
        line-height: 1.1;
    }

    .blog-archive-main {
        display: contents;
    }

    .blog-archive-header {
        order: 1;
    }

    .blog-intro-wrap {
        order: 2;
    }

    .blog-archive-sidebar {
        order: 3;
    }

    .blog-feed-grid,
    .blog-load-more-wrap,
    .blog-empty-state {
        order: 4;
    }

    .blog-feed-grid {
        grid-template-columns: 1fr;
    }

    .blog-single-media--split {
        grid-template-columns: 1fr;
        gap: 8px;
        background: transparent;
    }

    .blog-single-media--split figure {
        aspect-ratio: 4 / 5;
    }

    .blog-feed-text-stack {
        min-height: 380px;
    }

    .blog-archive-page,
    .blog-single-page {
        padding-top: 104px;
    }

    .blog-feed-card__body,
    .blog-single-body,
    .blog-single-footer-cta {
        padding: 20px;
    }

    .blog-feed-card--compact {
        min-width: min(300px, 86vw);
        max-width: min(300px, 86vw);
    }

    .blog-feed-card__placeholder-logo {
        width: 100%;
        height: 100%;
        max-height: none;
    }

    .blog-related-title {
        font-size: 32px;
    }

    .blog-single-footer-cta h3 {
        font-size: 30px;
    }
}

/* =========================================
   LEGAL PAGES (Cookies / Policy)
   ========================================= */
body.page-template-page-cookies .site-main h1,
body.page-template-page-policy .site-main h1 {
    line-height: 1.15;
}

body.page-template-page-cookies .content-body h2,
body.page-template-page-policy .content-body h2 {
    font-size: 28px;
    line-height: 1.25;
    margin: 32px 0 14px;
    color: var(--text-dark-high);
}

@media (max-width: 768px) {
    body.page-template-page-cookies .site-main h1,
    body.page-template-page-policy .site-main h1 {
        font-size: clamp(36px, 9vw, 48px) !important;
        margin-bottom: 28px !important;
    }

    body.page-template-page-cookies .content-body,
    body.page-template-page-policy .content-body {
        font-size: 17px !important;
        line-height: 1.78 !important;
    }

    body.page-template-page-cookies .content-body h2,
    body.page-template-page-policy .content-body h2 {
        font-size: 31px;
        line-height: 1.22;
        margin: 34px 0 16px;
    }
}