/* ==========================================================================
   ULTRA-PREMIUM LAW FIRM DESIGN - HIGH-TECH EDITION
   CSS Token System вЂ” РїРѕРґРґРµСЂР¶РєР° С‚С‘РјРЅРѕР№ Рё СЃРІРµС‚Р»РѕР№ С‚РµРј
   ========================================================================== */

/* в”Ђв”Ђ РўРЃРњРќРђРЇ РўР•РњРђ (РїРѕ СѓРјРѕР»С‡Р°РЅРёСЋ) в”Ђв”Ђ */
:root {
    /* Backgrounds */
    --c-bg:          #050505;
    --c-bg-alt:      #0a0a0a;
    --c-dark:        #121212;
    --c-darker:      #0d0d0d;

    /* РўРµРєСЃС‚ */
    --c-text:        #E0E0E0;
    --c-text-muted:  #8A8A8A;
    --c-text-faint:  #555555;

    /* Heading color (РёСЃРїРѕР»СЊР·СѓРµС‚СЃСЏ h1-h6) */
    --c-heading:     #FFFFFF;

    /* РђРєС†РµРЅС‚С‹ */
    --c-gold:        #cdb788;
    --c-gold-hover:  #b8a274;

    /* Р‘РѕСЂРґРµСЂС‹ */
    --c-border:      rgba(255, 255, 255, 0.08);
    --c-border-dark: rgba(255, 255, 255, 0.15);

    /* РЎС‚Р°С‚РёС‡РµСЃРєРёРµ Р±РµР»С‹Р№/СЃРІРµС‚Р»С‹Р№ (РёСЃРїРѕР»СЊР·СѓСЋС‚СЃСЏ РІ СЌР»РµРјРµРЅС‚Р°С… РїРѕРІРµСЂС… С‚С‘РјРЅС‹С… РѕРІРµСЂР»РµРµРІ) */
    --c-white:       #FFFFFF;
    --c-light:       #FFFFFF;

    /* РРЅРІРµСЂСЃРёСЏ РґР»СЏ РєРЅРѕРїРєРё С‚РµРјС‹ */
    --c-theme-toggle-bg:     rgba(255,255,255,0.06);
    --c-theme-toggle-hover:  rgba(255,255,255,0.12);
    --c-theme-toggle-icon:   #cdb788;

    /* Р¤РѕСЂРјР° */
    --c-input-text:  #FFFFFF;
    --c-input-label: #666666;
    --c-form-note:   #555555;

    /* РЎРїРµС†РёС„РёС‡РЅС‹Рµ РєРѕРјРїРѕРЅРµРЅС‚С‹ */
    --c-cookie-bg:        rgba(10, 10, 10, 0.95);
    --c-map-filter:       invert(100%) grayscale(100%) sepia(100%) hue-rotate(330deg) saturate(300%) contrast(150%) brightness(50%);
    --c-prac-card-bg:     #0d0d0d;
    --c-horiz-cta-bg:     rgba(10, 10, 10, 0.6);
    --c-horiz-cta-border: rgba(191, 161, 95, 0.12);
    --c-premium-map-bg:   rgba(25, 25, 25, 0.5);

    /* РџРѕРІРµСЂС…РЅРѕСЃС‚Рё РєР°СЂС‚РѕС‡РµРє/Р±Р»РѕРєРѕРІ */
    --c-card-surface:     rgba(255, 255, 255, 0.02);
    --c-card-surface-alt: rgba(20, 20, 20, 0.8);
    --c-slider-card-bg:   #111111;
    --c-faq-bg:           rgba(25, 25, 25, 0.4);
    --c-faq-border:       rgba(255, 255, 255, 0.05);
    --c-timeline-dot-bg:  #050505;
    --c-sidebar-title:    #FFFFFF;
    --c-search-input:     #FFFFFF;
    --c-tag-secondary:    rgba(255, 255, 255, 0.1);
    --c-tag-secondary-text: #FFFFFF;
    --c-card-heading:     #FFFFFF;
    --c-cross-link-color: rgba(255, 255, 255, 0.6);
    --c-cross-link-hover: #FFFFFF;
    --c-step-number-color: #FFFFFF;
    --c-contact-link:     #FFFFFF;

    /* РљР°СЃС‚РѕРјРЅС‹Рµ РґР°РЅРЅС‹Рµ РєРѕРЅС‚Р°РєС‚РѕРІ */
    --c-data-label:  #666666;
    --c-data-val:    #FFFFFF;

    /* Overlay hero */
    --c-hero-overlay: var(--c-bg);

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-primary: 'Manrope', sans-serif;

    /* Layout */
    --container-w: 1400px;
    --section-y: 180px;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* в”Ђв”Ђ РЎР’Р•РўР›РђРЇ РўР•РњРђ в”Ђв”Ђ */
html.theme-light {
    /* Backgrounds */
    --c-bg:          #F5F3EF;
    --c-bg-alt:      #EDEAE4;
    --c-dark:        #E8E4DD;
    --c-darker:      #DDD9D1;

    /* РўРµРєСЃС‚ */
    --c-text:        #2A2A2A;
    --c-text-muted:  #424242; /* РЎРґРµР»Р°Р» С‚РµРјРЅРµРµ РґР»СЏ С‡РёС‚Р°РµРјРѕСЃС‚Рё */
    --c-text-faint:  #7A7A7A;

    /* Heading color */
    --c-heading:     #1A1A1A;

    /* РђРєС†РµРЅС‚С‹ вЂ” С‡СѓС‚СЊ РЅР°СЃС‹С‰РµРЅРЅРµРµ Р·РѕР»РѕС‚Рѕ РґР»СЏ РєРѕРЅС‚СЂР°СЃС‚Р° РЅР° СЃРІРµС‚Р»РѕРј */
    --c-gold:        #A8893A;
    --c-gold-hover:  #8C7030;

    /* Р‘РѕСЂРґРµСЂС‹ */
    --c-border:      rgba(0, 0, 0, 0.10);
    --c-border-dark: rgba(0, 0, 0, 0.18);

    /* Р’ СЃРІРµС‚Р»РѕР№ С‚РµРјРµ В«Р±РµР»С‹Р№В» С„РѕРЅ РґР»СЏ РѕРІРµСЂР»РµРµРІ = С‚С‘РјРЅС‹Р№ С‚РµРєСЃС‚ */
    --c-white:       #1A1A1A;
    --c-light:       #1A1A1A;

    /* РљРЅРѕРїРєР° СЃРјРµРЅС‹ С‚РµРјС‹ */
    --c-theme-toggle-bg:     rgba(0,0,0,0.06);
    --c-theme-toggle-hover:  rgba(0,0,0,0.11);
    --c-theme-toggle-icon:   #A8893A;

    /* Р¤РѕСЂРјР° */
    --c-input-text:  #1A1A1A;
    --c-input-label: #424242;
    --c-form-note:   #666666;

    /* РЎРїРµС†РёС„РёС‡РЅС‹Рµ РєРѕРјРїРѕРЅРµРЅС‚С‹ */
    --c-cookie-bg:        rgba(245, 243, 239, 0.97);
    --c-map-filter:       grayscale(30%) contrast(1.05) brightness(1.05);
    --c-prac-card-bg:     #E8E4DD;
    --c-horiz-cta-bg:     rgba(232, 228, 221, 0.7);
    --c-horiz-cta-border: rgba(168, 137, 58, 0.15);
    --c-premium-map-bg:   rgba(220, 216, 208, 0.5);

    /* РџРѕРІРµСЂС…РЅРѕСЃС‚Рё РєР°СЂС‚РѕС‡РµРє/Р±Р»РѕРєРѕРІ */
    --c-card-surface:     rgba(0, 0, 0, 0.03);
    --c-card-surface-alt: rgba(220, 216, 208, 0.7);
    --c-slider-card-bg:   #E0DDD5;
    --c-faq-bg:           rgba(0, 0, 0, 0.03);
    --c-faq-border:       rgba(0, 0, 0, 0.08);
    --c-timeline-dot-bg:  var(--c-bg);
    --c-sidebar-title:    #1A1A1A;
    --c-search-input:     #1A1A1A;
    --c-tag-secondary:    rgba(0, 0, 0, 0.08);
    --c-tag-secondary-text: #1A1A1A;
    --c-card-heading:     #1A1A1A;
    --c-cross-link-color: rgba(0, 0, 0, 0.5);
    --c-cross-link-hover: #1A1A1A;
    --c-step-number-color: #1A1A1A;
    --c-contact-link:     #1A1A1A;

    /* РљР°СЃС‚РѕРјРЅС‹Рµ РґР°РЅРЅС‹Рµ РєРѕРЅС‚Р°РєС‚РѕРІ */
    --c-data-label:  #333333; /* РџСЂРёРјРµРЅРµРЅРЅС‹Р№ opacity 0.7 СЃРґРµР»Р°РµС‚ РµРіРѕ РёРґРµР°Р»СЊРЅС‹Рј СЃРµСЂС‹Рј */
    --c-data-val:    #1A1A1A;

    /* Overlay hero */
    --c-hero-overlay: var(--c-bg);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Smooth scroll is handled by Lenis now! */
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

/* Lenis Scrollbar Disabling */
html.lenis,
html.lenis body {
    height: auto;
}

body {
    font-family: var(--font-primary);
    color: var(--c-text);
    background-color: var(--c-bg);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
}

/* Hide default cursor only on devices with a hover-capable pointer (mouse/trackpad) */
@media (hover: hover) {
    body {
        cursor: none;
    }
}

/* Prevent interacting while loading */
body.loading {
    overflow: hidden;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.1;
    color: var(--c-heading);
    margin-bottom: 0.5em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 5vw;
}

.section {
    padding: var(--section-y) 0;
    position: relative;
}

.article-single .section.pt-0,
.contacts-page .section.pt-0 {
	padding: calc(var(--section-y) - 100px) 0;
}

/* ==========================================================================
   Unified Hero Section Styling
   ========================================================================== */
.page-hero {
    padding-top: 160px !important;
}

@media (max-width: 768px) {
    .page-hero {
        padding-top: 120px !important;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding-top: 100px !important;
    }
}

/* ==========================================================================
   CTA Contact Links (РёРєРѕРЅРєР° + РЅРѕРјРµСЂ/РЅРёРє РІ РѕРґРЅСѓ СЃС‚СЂРѕРєСѓ)
   ========================================================================== */
.cta-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--c-heading);
    text-decoration: none;
    font-size: 1.35rem;
    font-family: var(--font-primary);
    letter-spacing: 0.01em;
    white-space: nowrap;           /* Р·Р°РїСЂРµС‚ РїРµСЂРµРЅРѕСЃР° СЃР°РјРѕРіРѕ С‚РµРєСЃС‚Р° */
    transition: color 0.3s ease;
}
.cta-contact-link:hover {
    color: var(--c-gold);
}
.cta-contact-link svg {
    flex-shrink: 0;                /* РёРєРѕРЅРєР° РЅРµ СЃР¶РёРјР°РµС‚СЃСЏ */
}

/* РљРѕРЅС‚РµР№РЅРµСЂ РґРІСѓС… СЃСЃС‹Р»РѕРє */
.cta-contacts-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    /* РЈРјРµРЅСЊС€Р°РµРј Р±РѕР»СЊС€РѕР№ inline padding Сѓ .cta-block С‡РµСЂРµР· CSS */
    .horizontal-cta.cta-block {
        padding: 30px 20px !important;
    }

    .cta-contacts-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cta-contact-link {
        white-space: normal;
        font-size: 1.1rem;
        /* Р“Р°СЂР°РЅС‚РёСЂСѓРµРј РїРµСЂРµРЅРѕСЃ РґР»РёРЅРЅС‹С… СЃР»РѕРІ (РёРјСЏ Telegram Р±РµР· РїСЂРѕР±РµР»РѕРІ) */
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
    }
}

.bg-grey {
    background-color: var(--c-bg-alt);
}

.bg-dark {
    background-color: var(--c-dark);
}

.bg-darker {
    background-color: var(--c-darker);
}

.bg-black {
    background-color: var(--c-bg);
}

/* text-white РІ РѕР±С‹С‡РЅРѕРј РєРѕРЅС‚РµРєСЃС‚Рµ вЂ” Р°РґР°РїС‚РёРІРЅС‹Р№ */
.text-white {
    color: var(--c-heading);
}
/* РІ С„СѓС‚РµСЂРµ (always dark) вЂ” РїСЂРёРЅСѓРґРёС‚РµР»СЊРЅРѕ Р±РµР»С‹Р№ */
.footer.text-white {
    color: #E0E0E0;
}

.text-grey {
    color: var(--c-text-muted);
}

.text-gold {
    color: var(--c-gold);
}

.mt-40 {
    margin-top: 40px;
}

.mt-100 {
    margin-top: 100px;
}

.mb-60 {
    margin-bottom: 60px;
}

.w-full {
    width: 100%;
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.preloader__logo {
    width: 70px;
    height: 70px;
}

.preloader__logo svg {
    width: 100%;
    height: 100%;
}

.svg-elem {
    fill: transparent;
    stroke: var(--c-gold);
    stroke-width: 0.8px;
    stroke-dasharray: 400;
    /* Large enough to cover path length */
    stroke-dashoffset: 400;
    /* Hide line initially */
}

.preloader__signature {
    font-family: var(--font-heading);
    color: var(--c-gold);
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    opacity: 0;
    /* JS fade in */
    margin-bottom: 5px;
}

.preloader__signature span {
    text-transform: uppercase;
}

.preloader__bar {
    width: 240px;
    height: 1px;
    background-color: var(--c-border);
    position: relative;
    overflow: hidden;
    opacity: 0;
    /* JS fade in */
}

.preloader__progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--c-gold);
}


/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--c-gold);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--c-gold);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* Hover effect via JS adding class */
body.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(205, 183, 136, 0.1);
    border-color: transparent;
}


/* ==========================================================================
   Typography & Lines
   ========================================================================== */

.section-header {
    margin-bottom: 100px;
    position: relative;
    padding-top: 20px;
}

.section-header__line {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    /* Animated via GSAP */
    height: 1px;
    background-color: var(--c-gold);
}

.section-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
}

.section-title span {
    color: var(--c-text-muted);
    font-style: italic;
}

/* Links & Buttons */
.link-arrow {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: max-content;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-gold);
    padding-bottom: 4px;
    margin-right: 25px;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-arrow::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--c-gold); /* Unified with practice-link */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.4s;
    opacity: 0.6;
}

.link-arrow::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-fast), color 0.4s;
}

.link-arrow:hover {
    color: var(--c-heading);
}

.link-arrow:hover::before {
    transform: scaleX(1);
    transform-origin: left;
    opacity: 1;
}

.link-arrow:hover::after {
    transform: translateY(-50%) translateX(6px);
}

/* Unified Link Style for all Action Links */
.cta-link {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: max-content;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-gold);
    padding-bottom: 4px;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--c-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.cta-link:hover {
    color: var(--c-heading);
}

.cta-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 45px;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    /* Custom cursor is handled by @media (hover: hover) on body */
    transition: var(--transition-slow);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background-color: transparent;
    color: var(--c-gold);
    border-color: var(--c-gold);
}

.btn-primary:hover {
    background-color: var(--c-gold);
    color: var(--c-bg);
}

.btn-outline {
    background-color: transparent;
    color: var(--c-heading);
    border-color: var(--c-border-dark);
}

.btn-outline:hover {
    border-color: var(--c-heading);
    background-color: transparent;
}


/* ==========================================================================
   1. Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    transition:
        background-color 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.header.scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
    border-bottom-color: var(--c-border-dark);
}

/* вЂ” РўСЂС‘С…РєРѕР»РѕРЅРѕС‡РЅС‹Р№ grid: [brand] [РЅР°РІРёРіР°С†РёСЏ] [РїСЂР°РІР°СЏ Р·РѕРЅР°] вЂ” */
.header__container {
    height: 90px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    transition: height 0.4s ease;
}

.header.scrolled .header__container {
    height: 68px;
}

/* вЂ” brand (left) вЂ” */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: start;
    text-decoration: none;
}

.brand-logo {
    height: 34px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-name {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--c-heading);
    line-height: 1;
}

.brand-desc {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-muted);
    line-height: 1;
}

/* вЂ” nav (center) вЂ” */
.nav {
    justify-self: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-text);
    background: none;        /* РіР°СЂР°РЅС‚РёСЂСѓРµРј: РЅРёРєР°РєРѕРіРѕ С„РѕРЅР° */
    padding: 8px 0;
    opacity: 0.65;
    transition: opacity 0.3s ease, color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav__link:hover {
    opacity: 1;
    color: var(--c-text);
}

/* hover-Р»РёРЅРёСЏ СЃРЅРёР·Сѓ */
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--c-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Р°РєС‚РёРІРЅС‹Р№ РїСѓРЅРєС‚ вЂ” Р·РѕР»РѕС‚РѕР№ С†РІРµС‚, РїРѕР»РЅР°СЏ РЅРµРїСЂРѕР·СЂР°С‡РЅРѕСЃС‚СЊ, Р±РµР· Р·Р°Р»РёРІРєРё */
.nav__link.is-active,
.nav__link[aria-current="page"] {
    color: var(--c-gold);
    opacity: 1;
    background: none;
}

/* Р·РѕР»РѕС‚Р°СЏ hover-Р»РёРЅРёСЏ РЅРµ РЅСѓР¶РЅР° РґР»СЏ Р°РєС‚РёРІРЅРѕРіРѕ РїСѓРЅРєС‚Р° */
.nav__link.is-active::after,
.nav__link[aria-current="page"]::after {
    display: none;
}

/* вЂ” header__right (right zone) вЂ” */
.header__right {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}

.header__phone {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--c-text-muted);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header__phone:hover {
    color: var(--c-gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--c-text);
    position: absolute;
    transition: var(--transition-fast);
}

.menu-toggle span:first-child {
    top: 4px;
}

.menu-toggle span:last-child {
    bottom: 4px;
}

/* ==========================================================================
   2. Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 160px; /* Increased to avoid header overlap */
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__line {
    position: absolute;
    background-color: var(--c-border);
}

.hero__line.line-1 {
    width: 1px;
    height: 100%;
    left: 40%;
}

.hero__line.line-2 {
    width: 100%;
    height: 1px;
    top: 60%;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    width: 100%;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--c-gold);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero__label::before {
    content: '';
    width: 40px;
    height: 1px;
    background-color: var(--c-gold);
}

.hero__title {
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 300;
    line-height: 0.9;
    margin-bottom: 40px;
    color: var(--c-heading);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero__title i {
    font-family: var(--font-heading);
    color: var(--c-gold);
    font-weight: 300;
    text-transform: lowercase;
}

.line-wrap {
    overflow: hidden;
    padding-bottom: 10px;
}

/* Base state for GSAP */
.line,
.reveal-text span,
.hero__actions {
    transform: translateY(100%);
    opacity: 0;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--c-text-muted);
    margin-bottom: 60px;
    max-width: 500px;
    font-family: var(--font-primary);
    font-weight: 300;
    overflow: hidden;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
}

.hero__disclaimer {
    font-size: 0.75rem;
    color: var(--c-text-faint);
    line-height: 1.6;
    max-width: 400px;
    border-left: 1px solid var(--c-border);
    padding-left: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero__image-column {
    display: flex;
    justify-content: flex-end;
    height: 100%;
    opacity: 0;
    /* JS fade in */
}

.hero__image-wrapper {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
}

.hero__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c-bg);
    z-index: 2;
    /* JS will transform this Y to reveal image */
}

.hero__image {
    width: 100%;
    height: 110%;
    /* Extra height for parallax */
    object-fit: cover;
    object-position: center;
    transition: filter var(--transition-slow);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 5vw;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: rotate(-90deg);
    transform-origin: left center;
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none !important;
    }
}

.scroll-indicator__text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--c-text-muted);
}

.scroll-indicator__line {
    width: 60px;
    height: 1px;
    background-color: var(--c-border);
    position: relative;
    overflow: hidden;
}

.scroll-indicator__line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background-color: var(--c-gold);
    animation: scrollLine 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scrollLine {
    0% {
        left: -10px;
    }

    100% {
        left: 100%;
    }
}

/* ==========================================================================
   3. About Section
   ========================================================================== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    margin-bottom: 120px;
}

.about__lead {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    line-height: 1.3;
    color: var(--c-heading);
    font-family: var(--font-heading);
}

.about__text p {
    font-size: 1.15rem;
    color: var(--c-text-muted);
    margin-bottom: 30px;
}

.about__stats {
    display: flex;
    gap: 120px;
    padding-top: 80px;
    border-top: 1px solid var(--c-border);
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-num-wrap {
    overflow: hidden;
    margin-bottom: 15px;
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1;
}

.stat-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   4. Practice Section (Accordion Hover)
   ========================================================================== */
/* Practice Link */
.practice-link {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: max-content;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--c-heading);
    padding-bottom: 4px;
    margin-right: 25px;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
}

.practice-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--c-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-slow);
    opacity: 0.5;
}

.practice-link::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.practice-link:hover {
    color: var(--c-gold);
}

.practice-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
    opacity: 1;
}

.practice-link:hover::after {
    transform: translateY(-50%) translateX(6px);
}

.practice-list {
    border-top: 1px solid var(--c-border);
}

.practice-row {
    border-bottom: 1px solid var(--c-border);
    cursor: pointer;
}

.practice-row__header {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    padding: 40px 0;
    transition: var(--transition-fast);
}

.practice-row__num {
    font-size: 1rem;
    color: var(--c-gold);
    font-family: var(--font-primary);
    font-weight: 500;
}

.practice-row__title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    margin: 0;
    transition: color var(--transition-fast), transform var(--transition-slow);
}

.practice-row__icon {
    font-size: 2rem;
    font-family: var(--font-primary);
    font-weight: 300;
    color: var(--c-text-muted);
    text-align: right;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color var(--transition-fast);
}

.practice-row__content-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.practice-row__content {
    overflow: hidden;
}

.practice-row__desc {
    padding: 0 0 40px 80px;
    font-size: 1.15rem;
    color: var(--c-text-muted);
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0s, transform 0.6s ease 0s;
}

/* Hover State */
.practice-row:hover .practice-row__title {
    color: var(--c-gold);
    transform: translateX(20px);
}

.practice-row:hover .practice-row__icon {
    color: var(--c-gold);
    transform: rotate(45deg);
}

.practice-row:hover .practice-row__content-wrap {
    grid-template-rows: 1fr;
}

.practice-row:hover .practice-row__desc {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.2s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

/* ==========================================================================
   5. Approach Section (Main Page Timeline)
   ========================================================================== */
.approach__container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 100px;
    align-items: flex-start;
}

.approach__sticky-side {
    position: sticky;
    top: 150px;
}

.approach__sticky-desc {
    font-size: 1.25rem;
    color: var(--c-text-muted);
    line-height: 1.6;
}

.approach__timeline-side {
    position: relative;
    padding-left: 60px;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background-color: var(--c-border);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 0%;
    /* JS will control this */
    background-color: var(--c-gold);
}

.timeline-item {
    position: relative;
    padding-bottom: 120px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 10px;
    left: -64px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--c-bg);
    border: 1px solid var(--c-border);
    transition: var(--transition-slow);
}

.timeline-item.is-active .timeline-dot {
    background-color: var(--c-gold);
    border-color: var(--c-gold);
    box-shadow: 0 0 15px rgba(205, 183, 136, 0.4);
}

.timeline-stage {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--c-heading);
    margin-bottom: 20px;
    transition: color var(--transition-slow);
}

.timeline-item.is-active .timeline-stage {
    color: var(--c-gold);
}

.timeline-content p {
    font-size: 1.15rem;
    color: var(--c-text-muted);
    max-width: 600px;
}

/* Values Banner */
.values-banner {
    padding: 100px 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
}

.value-item {
    position: relative;
    padding-top: 30px;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--c-gold);
}

.value-header {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.value-desc {
    color: var(--c-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   6. Education Section (Text List + Floating Image)
   ========================================================================== */
.education {
    position: relative;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.edu-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--c-border);
    background-color: var(--c-dark);
    transition: var(--transition-fast);
}

.edu-card:hover {
    border-color: var(--c-gold);
    transform: translateY(-5px);
}

.edu-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.edu-card__year {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--c-gold);
}

.edu-card__cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-muted);
}

.edu-card__title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: auto;
    padding-bottom: 30px;
    line-height: 1.2;
}

.edu-card__link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-heading);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.edu-card:hover .edu-card__link {
    color: var(--c-gold);
}

.credential-seal {
    width: 65px; 
    height: 65px; 
    object-fit: contain; 
    opacity: 0.9; 
    filter: drop-shadow(0 0 8px rgba(169, 143, 85, 0.3)); 
    display: block; 
    animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 15px rgba(169, 143, 85, 0.6)); }
    100% { transform: scale(1); opacity: 0.9; }
}

/* ==========================================================================
   8. Contacts Section
   ========================================================================== */
.contacts {
    border-top: 1px solid var(--c-border);
}

.contacts__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 120px;
}

.contacts__lead {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--c-text-muted);
    margin-bottom: 80px;
    line-height: 1.6;
}

.data-group {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--c-border);
}

.data-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--c-data-label);
    margin-bottom: 15px;
}

.data-val {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--c-data-val);
}

.data-val.highlight {
    font-size: 2.5rem;
    color: var(--c-gold);
}

.data-val.text-small {
    font-size: 1rem;
    font-family: var(--font-primary);
}

.hover-gold:hover {
    color: var(--c-gold);
}

/* Minimalist Form - High Tech Focus States */
.contacts__form-area {
    padding-top: 0;
}

.form-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--c-heading);
    margin-top: 0;
    margin-bottom: 60px;
}

.input-wrap {
    position: relative;
    margin-bottom: 50px;
}

.input-wrap input,
.input-wrap textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 15px 0;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--c-input-text);
    outline: none;
    resize: none;
}

.input-wrap textarea {
    min-height: 40px;
}

.input-wrap label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1.2rem;
    color: var(--c-input-label);
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1) all;
}

.input-wrap .line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--c-gold) !important;
    display: block !important;
    opacity: 1 !important;
}

/* Focus States */
.input-wrap input:focus~label,
.input-wrap input:not(:placeholder-shown)~label,
.input-wrap textarea:focus~label,
.input-wrap textarea:valid~label {
    top: -20px;
    font-size: 0.75rem;
    color: var(--c-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-note {
    font-size: 0.75rem;
    color: var(--c-form-note);
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   9. Partners Section
   ========================================================================== */
.partners__flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 40px 0;
}

.partner-link {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    gap: 20px;
    line-height: 1.2;
}

.partner-logo {
    height: 50px;
    width: auto;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.partner-link:hover .partner-logo {
    opacity: 1;
}

.partner-link:hover {
    color: var(--c-gold);
}

.partner-separator {
    width: 1px;
    height: 40px;
    background-color: var(--c-border);
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.footer {
    padding: 100px 0 40px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}

.footer__logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer__brand-text {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--c-heading);
}

.footer__brand-text span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-text-muted);
    font-weight: 300;
    display: block;
    margin-top: 5px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-text-muted);
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--c-gold);
}

.footer__details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--c-text-muted);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 40px;
    border-top: 1px solid var(--c-border);
    font-size: 0.75rem;
    color: var(--c-text-faint);
    letter-spacing: 0.05em;
}

.footer__bottom p,
.policy-link {
    color: var(--c-text-faint);
}

.policy-link:hover {
    color: var(--c-gold);
}

/* ==========================================================================
   About Page Enhancements
   ========================================================================== */
.about-hero__bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(169, 143, 85, 0.1) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 1;
}

.glow-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(169,143,85, 0.5), transparent);
    box-shadow: 0 0 10px rgba(169,143,85, 0.5);
    margin: 40px 0;
}

/* Experience Cards */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.exp-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(169, 143, 85, 0.1);
    padding: 40px;
    border-radius: 4px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.exp-card:hover {
    border-color: rgba(169, 143, 85, 0.4);
    box-shadow: 0 0 20px rgba(169, 143, 85, 0.05);
    transform: translateY(-5px);
}
.exp-icon {
    width: 32px;
    height: 32px;
    color: var(--c-gold);
    margin-bottom: 20px;
}
.exp-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--c-gold);
}

/* Spec Cards Grid */
.spec-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.spec-block {
    background: transparent;
    border: 1px solid var(--c-border);
    padding: 30px 20px;
    border-radius: 4px;
    position: relative;
    transition: all 0.4s ease;
    text-align: center;
}
.spec-block:hover {
    border-color: var(--c-gold);
    box-shadow: 0 0 15px rgba(169, 143, 85, 0.15);
}
.spec-block__num {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.85rem;
    color: var(--c-gold);
}
.spec-block__icon {
    width: 40px;
    height: 40px;
    color: var(--c-white);
    margin: 20px auto;
}
.spec-block__title {
    font-size: 1.15rem;
    color: var(--c-white);
    font-family: var(--font-heading);
}

/* Vertical Timeline */
.timeline-v {
    position: relative;
    max-width: 1000px;
}
.timeline-v::before {
    content: '';
    position: absolute;
    top: 0;
    left: 150px;
    width: 1px;
    height: 100%;
    background: var(--c-border);
}
.timeline-v__item {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 50px;
    position: relative;
}
.timeline-v__left {
    width: 120px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 30px;
    font-size: 1.25rem;
    color: var(--c-gold);
    padding-top: 5px;
}
.timeline-v__dot {
    width: 11px;
    height: 11px;
    background: var(--c-dark);
    border: 1px solid var(--c-gold);
    border-radius: 50%;
    position: absolute;
    left: 145px;
    top: 12px;
    box-shadow: 0 0 8px rgba(169,143,85, 0.5);
    z-index: 2;
}
.timeline-v__right {
    padding-left: 50px;
    flex-grow: 1;
}

/* Membership List */
.membership-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
}
.membership-list__item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}
.ml-icon {
    width: 24px;
    height: 24px;
    color: var(--c-gold);
    flex-shrink: 0;
    margin-right: 20px;
    margin-top: 2px;
}
.ml-text {
    font-size: 1.25rem;
    color: var(--c-white);
    line-height: 1.6;
}

/* ==========================================================================
   Practice Page Enhancements
   ========================================================================== */
.global-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}
.practice-hero {
    position: relative;
    padding-top: 200px;
    padding-bottom: 100px;
    overflow: hidden;
}
.practice-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(169, 143, 85, 0.08) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
    z-index: 1;
}
.hero-monogram {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    font-size: 40vw;
    font-family: var(--font-heading);
    color: rgba(169, 143, 85, 0.02);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}
.hero-monogram--practice {
    font-size: 35vw;
    right: -2%;
    top: 55%;
}

/* Steps Row */
.steps-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    padding: 50px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(169, 143, 85, 0.15);
    border-radius: 6px;
    position: relative;
    z-index: 2;
}
.step-item {
    text-align: center;
    flex: 1;
}
.step-item h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--c-light);
    margin-top: 20px;
}
.step-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    color: var(--c-gold);
}
.step-arrow {
    color: var(--c-text-faint);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin: 0 20px;
}

/* Practice Cards */
.practice-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}
.prac-card {
    position: relative;
    background: var(--c-prac-card-bg);
    border-radius: 6px;
    padding: 40px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    z-index: 1;
}
.prac-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 60%, rgba(169, 143, 85, 0.1) 100%);
    border-radius: 7px;
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.prac-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(169, 143, 85, 0.05);
    transform: translateY(-4px);
}
.prac-card:hover::before {
    background: linear-gradient(135deg, rgba(169, 143, 85, 0.6) 0%, rgba(169, 143, 85, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
}
.prac-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}
.prac-card__num {
    font-size: 1.15rem;
    color: var(--c-gold);
    font-family: var(--font-primary);
}
.prac-card__icon {
    width: 36px;
    height: 36px;
    color: var(--c-white);
    opacity: 0.8;
    transition: color 0.4s ease;
}
.prac-card:hover .prac-card__icon {
    color: var(--c-gold);
    opacity: 1;
}

/* Accent Block */
.accent-block {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(169, 143, 85, 0.15);
    border-radius: 6px;
    padding: 60px;
    position: relative;
    z-index: 2;
}

/* Horizontal Form CTA */
.horizontal-cta {
    background: var(--c-horiz-cta-bg);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 60px;
}
.horizontal-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: end;
}
.horizontal-form-grid .input-wrap {
    margin-bottom: 0;
}

/* Contacts Page Grid & Styled Map */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.cg-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.cg-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.cg-icon {
    width: 24px;
    height: 24px;
    color: var(--c-gold);
    flex-shrink: 0;
    margin-top: 5px;
}
.cg-text {
    display: flex;
    flex-direction: column;
}
.premium-map-block {
    position: relative;
    border: 1px solid rgba(169, 143, 85, 0.2);
    border-radius: 8px;
    padding: 10px;
    background: var(--c-premium-map-bg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}
.styled-map-container {
    width: 100%;
    height: 500px;
    border-radius: 6px;
    overflow: hidden;
}
.styled-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: var(--c-map-filter);
}

@media (max-width: 900px) {
    .horizontal-cta {
        padding: 40px 30px;
    }
    .horizontal-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .horizontal-form-grid .btn-submit {
        margin-top: 20px;
        margin-bottom: 30px !important;
    }
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* вЂ”вЂ” 1200px: С‚РµСЃРЅС‹Р№ РґРµСЃРєС‚РѕРї, СѓРјРµРЅСЊС€Р°РµРј РіР°Рї+С€СЂРёС„С‚ nav вЂ”вЂ” */
@media (max-width: 1200px) {
    .nav__list {
        gap: 22px;
    }
    .nav__link {
        font-size: 0.7rem;
    }
    .header__phone {
        font-size: 0.75rem;
    }
}

/* вЂ”вЂ” 1024px: РїР»Р°РЅС€РµС‚: СЃРєСЂС‹РІР°РµРј С‚РµР»РµС„РѕРЅ, СѓРјРµРЅСЊС€Р°РµРј nav gap вЂ”вЂ” */
@media (max-width: 1024px) {
    .header__phone {
        display: none;
    }
    .nav__list {
        gap: 18px;
    }
    .nav__link {
        font-size: 0.68rem;
    }
    .hero__container {
        grid-template-columns: 1fr;
    }

    .hero__image-column {
        display: flex;
        justify-content: center;
        max-height: 500px;
        overflow: hidden;
        margin-top: 40px;
    }

    .hero__image-wrapper {
        max-width: 400px;
        aspect-ratio: 3/4;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .practice-row__header {
        grid-template-columns: 40px 1fr 30px;
        padding: 25px 0;
    }

    .practice-row__title {
        font-size: 2rem;
    }

    .practice-row__desc {
        padding: 0 0 30px 0;
    }

    .approach__container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .approach__sticky-side {
        position: static;
    }

    .contacts__container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contacts__form-area {
        padding-top: 0;
    }

    .partners__flex {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .partner-separator {
        width: 40px;
        height: 1px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-row {
        flex-direction: column;
        padding: 30px;
        gap: 20px;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

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

    .timeline-v::before {
        left: 20px;
    }

    .timeline-v__item {
        flex-direction: column;
    }

    .timeline-v__left {
        text-align: left;
        padding-left: 50px;
        margin-bottom: 10px;
        width: 100%;
        font-size: 1rem;
    }

    .timeline-v__dot {
        left: 15px;
        top: 8px;
    }

    .timeline-v__right {
        padding-left: 50px;
    }

    .practice-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* вЂ”вЂ” 768px: РјРѕР±Р°Р№Р»: 2-РєРѕР»РѕРЅРѕС‡РЅС‹Р№ grid, nav вЂ” РїРѕР»РЅРѕСЌРєСЂР°РЅРЅС‹Р№ РѕРІРµСЂР»РµР№ вЂ”вЂ” */
@media (max-width: 768px) {
    :root {
        --section-y: 100px;
    }

    /* вЂ” РҐРµРґРµСЂ: brand | [gap] | theme+burger вЂ” */
    .header__container {
        grid-template-columns: auto 1fr auto;
        height: 64px;
    }
    .header.scrolled .header__container {
        height: 56px;
    }

    /* РЅР°РІ СЃРєСЂС‹С‚ РІ РµРіРѕ РѕР±С‹С‡РЅРѕРј СЃРѕСЃС‚РѕСЏРЅРёРё, РїРѕРєР°Р·С‹РІР°РµС‚СЃСЏ РїРѕРІРµСЂС… РєР°Рє overlay */
    .nav {
        grid-column: auto; /* СЃР±СЂРѕСЃРёС‚СЊ grid-column РґР»СЏ РѕРІРµСЂР»РµСЏ вЂ” РѕРЅ РІС‹С…РѕРґРёС‚ РёР· РїРѕС‚РѕРєР° */
        justify-self: auto;
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--c-darker);
        z-index: 40;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .nav.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav__list {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }

    .nav__link {
        font-size: 1.8rem;
    }

    /* header__right: СЃРєСЂС‹РІР°РµРј С‚РµР»РµС„РѕРЅ Рё lang-switcher, РѕСЃС‚Р°РІР»СЏРµРј theme-toggle + burger */
    .header__right {
        justify-self: end;
        gap: 10px;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }

    .header__phone {
        display: none;
    }

    /* lang-switcher РІ header__right вЂ” СЃРєСЂС‹С‚ РЅР° РјРѕР±Р°Р№Р»Рµ */
    .header__right .lang-switcher:not(.lang-switcher--mobile) {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        position: relative;
        z-index: 50;
    }

    .menu-toggle span {
        transition: transform 0.3s ease;
    }

    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.is-active span:nth-child(2) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .about__stats {
        flex-direction: column;
        gap: 40px;
    }

    .hero__actions {
        padding-bottom: 60px;
    }

    .accent-block {
        padding: 30px;
    }

    .spec-cards-grid {
        grid-template-columns: 1fr;
    }

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

    .cursor-outline,
    .cursor-dot {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    .footer__top {
        flex-direction: column;
        gap: 40px;
    }

    .footer__details {
        text-align: left;
    }

    /* About hero: РѕРґРЅР° РєРѕР»РѕРЅРєР° РЅР° РјРѕР±РёР»СЊРЅС‹С… */
    .about-hero .container {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 30px !important;
    }
    .about-hero .container > .gs-reveal {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        flex: none !important;
    }
    .about-hero .hero-photo-frame {
        max-width: 340px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Narrow mobile: в‰¤480px вЂ” global overflow protection
   ========================================================================== */
@media (max-width: 480px) {
    /* РњРѕР±РёР»СЊРЅС‹Рµ scrollbar вЂ” overlay, gutter РЅРµ РЅСѓР¶РµРЅ */
    html {
        scrollbar-gutter: auto;
    }

    /* РљРѕРЅС‚РµР№РЅРµСЂ: Р±РѕРєРѕРІС‹Рµ РѕС‚СЃС‚СѓРїС‹ РЅРµ РјРµРЅРµРµ 16px */
    .container {
        padding: 0 16px;
    }

    /* Hero Р·Р°РіРѕР»РѕРІРєРё вЂ” СѓРјРµРЅСЊС€Р°РµРј РґРѕ С‡РёС‚Р°Р±РµР»СЊРЅРѕРіРѕ СЂР°Р·РјРµСЂР° */
    .section-title {
        font-size: clamp(2.4rem, 9vw, 3.5rem) !important;
        hyphens: none;
        overflow-wrap: normal;
    }

    /* Stats вЂ” РєРѕРјРїР°РєС‚РЅРµРµ */
    .about-hero__stats {
        gap: 20px;
    }

    /* Header: burger РЅРµ РІС‹Р»РµР·Р°РµС‚ */
    .header__container {
        padding: 0 16px;
    }
    .header__right {
        flex-shrink: 0;
    }
    .menu-toggle {
        margin-right: 0;
    }
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background-color: var(--c-cookie-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(205, 183, 136, 0.15);
    padding: 20px 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__text {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.5;
    max-width: 700px;
}

.cookie-banner__text a {
    color: var(--c-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__btn {
    flex-shrink: 0;
    padding: 10px 28px;
    background: var(--c-gold);
    color: var(--c-bg);
    border: none;
    border-radius: 2px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cookie-banner__btn:hover {
    background: var(--c-gold-hover);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
}

/* ==========================================================================
   Accessibility: Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    .preloader {
        display: none !important;
    }
}

/* ==========================================================================
   РЈС‚РёР»РёС‚Р°СЂРЅС‹Рµ РєР»Р°СЃСЃС‹ вЂ” РїСЂРёРІСЏР·Р°РЅС‹ Рє СЃРёСЃС‚РµРјРµ С‚РµРј (Р·Р°РјРµРЅСЏСЋС‚ inline-СЃС‚РёР»Рё)
   ========================================================================== */

/* Р“РѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅС‹Р№ CTA-Р±Р»РѕРє (С„РѕСЂРјР° РєРѕРЅСЃСѓР»СЊС‚Р°С†РёРё) */
.cta-block {
    border: 1px solid var(--c-horiz-cta-border);
    background: var(--c-horiz-cta-bg);
    border-radius: 4px;
}

/* FAQ РєР°СЂС‚РѕС‡РєРё (approach.html) */
.faq-item {
    background: var(--c-faq-bg);
    border: 1px solid var(--c-faq-border);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.faq-item:hover {
    border-color: rgba(169, 143, 85, 0.3);
}

/* РўРѕС‡РєРё С‚Р°Р№РјР»Р°Р№РЅР° (approach.html, practice.html) */
.timeline-dot-ring {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--c-gold);
    background: var(--c-timeline-dot-bg);
    margin-top: 15px;
    flex-shrink: 0;
    position: relative;
    transition: background-color 0.4s ease;
}

/* РЎР»Р°Р№РґРµСЂ РєРµР№СЃРѕРІ (about.html) */
.case-slide {
    flex: 0 0 100%;
    min-width: 100%;
    background: var(--c-slider-card-bg);
    border: 1px solid rgba(191, 161, 95, 0.15);
    border-radius: 4px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: border-color 0.3s ease, background-color 0.4s ease;
    margin-right: 20px;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .case-slide { flex: 0 0 calc(50% - 10px); min-width: calc(50% - 10px); }
}
.case-slide:hover { border-color: rgba(191, 161, 95, 0.5); }

/* Р—Р°РіРѕР»РѕРІРєРё РєР°СЂС‚РѕС‡РµРє (blog, about, practice) */
.card-heading {
    color: var(--c-card-heading);
}

/* Р’С‚РѕСЂРёС‡РЅС‹Рµ С‚РµРіРё (blog.html вЂ” "Р­РєРѕРЅРѕРјРёРєР°", "РќР°СЂРєРѕС‚РёРєРё", "Р›РёС‡РЅРѕСЃС‚СЊ") */
.tag-secondary {
    border-color: var(--c-tag-secondary) !important;
    color: var(--c-tag-secondary-text) !important;
}

/* РџР°РјСЏС‚РєР°-С‚РµРі (blog.html вЂ” Р±РµР»Р°СЏ СЂР°РјРєР°) */
.tag-pamyatka {
    border: 1px solid var(--c-tag-secondary-text) !important;
    color: var(--c-tag-secondary-text) !important;
}

/* РЎСЃС‹Р»РєРё-РєСЂРѕСЃСЃ-Р»РёРЅРєРё (blog.html) */
.cross-link {
    color: var(--c-cross-link-color) !important;
}
.cross-link:hover {
    color: var(--c-cross-link-hover) !important;
}

/* Р—Р°РіРѕР»РѕРІРѕРє sidebar (blog.html) */
.sidebar-title {
    color: var(--c-sidebar-title) !important;
    border-bottom-color: var(--c-faq-border) !important;
}

/* Search input (blog.html) */
.search-input {
    color: var(--c-search-input) !important;
}
.search-input::-webkit-input-placeholder { color: var(--c-text-faint) !important; }
.search-input::placeholder { color: var(--c-text-faint) !important; }

/* Р¦РёС„СЂРѕРІР°СЏ СЃС„РµСЂР° РІ process-step (practice.html inline) */
.step-number {
    color: var(--c-step-number-color) !important;
}

/* РЎСЃС‹Р»РєРё-CTA РІ about.html */
.cta-contact-link {
    color: var(--c-contact-link) !important;
}

/* РљРѕРЅС‚Р°РєС‚С‹: text-small СЃ С…Р°СЂРґРєРѕР¶РµРЅРЅС‹Рј #FFF (contacts.html) */
.data-val-text {
    color: var(--c-data-val);
}

/* РЎРјСЏРіС‡РµРЅРёРµ Р±Р»РѕРєР° contacts.html lead вЂ” СѓР±РёСЂР°РµРј С…Р°СЂРґРєРѕР¶РµРЅРЅС‹Р№ #888 */
.contacts__lead {
    color: var(--c-text-muted);
}

/* РљР°СЂС‚РѕС‡РєР°-РєРµР№СЃ bg (blog.html) */
.card-case {
    background: linear-gradient(145deg, var(--c-card-surface-alt) 0%, var(--c-faq-bg) 100%);
    border: 1px solid rgba(169, 143, 85, 0.15);
}

/* РљР°СЂС‚РѕС‡РєР°-СЂР°Р·Р±РѕСЂ bg */
.card-review {
    background: var(--c-card-surface);
}

/* РљР°СЂС‚РѕС‡РєР°-СЂСѓРєРѕРІРѕРґСЃС‚РІРѕ bg */
.card-guide {
    border: 1px dashed var(--c-faq-border);
    background: repeating-linear-gradient(45deg,
        rgba(0,0,0,0), rgba(0,0,0,0) 10px,
        var(--c-card-surface) 10px, var(--c-card-surface) 20px);
}

/* Р Р°Р·РґРµР»РёС‚РµР»СЊ РєР°СЂС‚РѕС‡РєРё */
.card-divider {
    border-top: 1px solid var(--c-faq-border);
}


/* ==========================================================================
   РџРµСЂРµРєР»СЋС‡Р°С‚РµР»СЊ С‚РµРјС‹ (Theme Toggle Button)
   ========================================================================== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--c-theme-toggle-bg);
    border: 1px solid var(--c-border);
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background-color: var(--c-theme-toggle-hover);
    border-color: var(--c-gold);
    transform: scale(1.08);
}

.theme-toggle__icon {
    width: 18px;
    height: 18px;
    color: var(--c-theme-toggle-icon);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
}

/* Sun вЂ” visible in dark mode */
.theme-toggle__sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
/* Moon вЂ” hidden in dark mode */
.theme-toggle__moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.7);
}

/* In light mode вЂ” swap icons */
html.theme-light .theme-toggle__sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.7);
}
html.theme-light .theme-toggle__moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ==========================================================================
   РЎРІРµС‚Р»Р°СЏ С‚РµРјР°: С‚РѕС‡РµС‡РЅС‹Рµ РїРµСЂРµР·Р°РїРёСЃРё РєРѕРјРїРѕРЅРµРЅС‚РѕРІ СЃ РµС‰С‘ С…Р°СЂРґРєРѕР¶РµРЅРЅС‹РјРё С†РІРµС‚Р°РјРё
   ========================================================================== */

/* РЎРєСЂРѕР»Р»Р±Р°СЂ */
html.theme-light {
    color-scheme: light;
}

/* Р—Р°РіРѕР»РѕРІРѕРє РѕР± Р°РґРІРѕРєР°С‚Рµ (about__lead) */
html.theme-light .about__lead {
    color: var(--c-heading);
}

/* РњРѕР±РёР»СЊРЅРѕРµ РјРµРЅСЋ вЂ” С†РІРµС‚ С„РѕРЅР° overlay С‚РѕР»СЊРєРѕ РІ РјРѕР±Р°Р№Р»Рµ */
@media (max-width: 768px) {
    html.theme-light .nav {
        background-color: var(--c-bg);
    }
}


/* РЎС‚Р°С‚РёС‡РµСЃРєРёР№ Р±РµР»С‹Р№ С‚РµРєСЃС‚ РІ Р±Р»РѕРєР°С… РїРѕРІРµСЂС… СЃРІРµС‚Р»РѕРіРѕ С„РѕРЅР° */
html.theme-light .text-white {
    color: var(--c-heading);
}

/* РљРЅРѕРїРєР° btn-outline */
html.theme-light .btn-outline {
    color: var(--c-text);
    border-color: var(--c-border-dark);
}
html.theme-light .btn-outline:hover {
    border-color: var(--c-text);
}

/* btn-primary вЂ” С‚РµРєСЃС‚ РІ СЃРІРµС‚Р»РѕР№ С‚РµРјРµ С‚С‘РјРЅС‹Р№ */
html.theme-light .btn-primary:hover {
    background-color: var(--c-gold);
    color: var(--c-heading);
}

/* РљР°СЂС‚РѕС‡РєРё РЅР° about.html / practice.html */
html.theme-light .exp-card {
    background: rgba(0,0,0,0.03);
    border-color: rgba(168,137,58,0.15);
}
html.theme-light .exp-card:hover {
    border-color: rgba(168,137,58,0.5);
}
html.theme-light .spec-block {
    border-color: var(--c-border);
    background: transparent;
}
html.theme-light .spec-block__icon {
    color: var(--c-text);
}
html.theme-light .spec-block__title {
    color: var(--c-heading);
}

/* Steps row */
html.theme-light .steps-row {
    background: rgba(0,0,0,0.03);
    border-color: rgba(168,137,58,0.15);
}
html.theme-light .step-item h4 {
    color: var(--c-heading);
}
html.theme-light .step-arrow {
    color: rgba(0,0,0,0.2);
}

/* accent-block */
html.theme-light .accent-block {
    background: rgba(0,0,0,0.03);
    border-color: rgba(168,137,58,0.15);
}

/* bg-black СЃРµРєС†РёРё вЂ” РІ СЃРІРµС‚Р»РѕР№ С‚РµРјРµ РѕСЃС‚Р°СЋС‚СЃСЏ С‡СѓС‚СЊ С‚РµРјРЅРµРµ С„РѕРЅР° */
html.theme-light .bg-black {
    background-color: var(--c-darker);
}

/* РџРѕРґРІР°Р» РІ СЃРІРµС‚Р»РѕР№ С‚РµРјРµ */
html.theme-light .footer {
    background-color: var(--c-darker);
}
html.theme-light .footer .footer__brand-text,
html.theme-light .footer .footer__links a,
html.theme-light .footer .footer__details,
html.theme-light .footer p,
html.theme-light .footer .policy-link {
    color: var(--c-text-muted);
}
html.theme-light .footer .footer__links a:hover,
html.theme-light .footer .policy-link:hover {
    color: var(--c-gold);
}

/* Contacts bg-black (СѓР±СЂР°РЅРѕ РґР»СЏ РїРѕРґРґРµСЂР¶РєРё СЃРІРµС‚Р»РѕРіРѕ С„РѕРЅР°) */

/* Timeline dot */
html.theme-light .timeline-v__dot {
    background: var(--c-bg-alt);
}

/* partners bg-darker */
html.theme-light .partners {
    background-color: var(--c-darker);
}
html.theme-light .partner-logo {
    opacity: 0.55;
}
html.theme-light .partner-link:hover .partner-logo {
    opacity: 1;
}

/* Global grid bg РІ practice hero */
html.theme-light .global-grid-bg {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* practice hero bg gradient */
html.theme-light .practice-hero__bg {
    background: radial-gradient(circle at 80% 20%, rgba(168, 137, 58, 0.08) 0%, rgba(255,255,255,0) 60%);
}

/* about-hero bg */
html.theme-light .about-hero__bg {
    background: radial-gradient(circle at center, rgba(168, 137, 58, 0.06) 0%, rgba(255,255,255,0) 70%);
}

/* prac-card gradient РІ light С‚РµРјРµ */
html.theme-light .prac-card::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.06) 0%, rgba(255,255,255,0) 60%, rgba(168,137,58,0.08) 100%);
}
html.theme-light .prac-card:hover::before {
    background: linear-gradient(135deg, rgba(168,137,58,0.4) 0%, rgba(168,137,58,0.08) 50%, rgba(0,0,0,0.03) 100%);
}
html.theme-light .prac-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12), 0 0 20px rgba(168,137,58,0.05);
}

/* edu-card */
html.theme-light .edu-card {
    background-color: var(--c-dark);
}

/* membership list text */
html.theme-light .ml-text {
    color: var(--c-heading);
}

/* glow-line in light theme */
html.theme-light .glow-line {
    background: linear-gradient(90deg, rgba(168,137,58,0.4), transparent);
    box-shadow: 0 0 10px rgba(168,137,58,0.25);
}

/* ml-icon */
html.theme-light .ml-icon {
    color: var(--c-gold);
}

/* premium-map-block border */
html.theme-light .premium-map-block {
    border-color: rgba(168, 137, 58, 0.2);
}

/* cookie banner */
html.theme-light .cookie-banner {
    border-top-color: rgba(168, 137, 58, 0.2);
}

/* в”Ђв”Ђ РљР°СЂС‚РѕС‡РєРё Р±Р»РѕРіР° РІ СЃРІРµС‚Р»РѕР№ С‚РµРјРµ в”Ђв”Ђ */
html.theme-light .card-case {
    background: var(--c-card-surface-alt);
    border-color: rgba(168, 137, 58, 0.2);
}
html.theme-light .card-case .card-heading,
html.theme-light .card-case h3 {
    color: var(--c-heading);
}

/* ==========================================================================
   Lang switcher вЂ” \u0435\u0434\u0438\u043d\u0430\u044f \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f
   ========================================================================== */

/* Desktop: \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0432 header__right */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 4px 6px;
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--c-text-muted);
    transition: color 0.3s ease;
    line-height: 1;
}

.lang-btn.active {
    color: var(--c-gold);
}

.lang-btn:not(.active):hover {
    color: var(--c-text);
}

.lang-sep {
    color: var(--c-text-faint);
    font-size: 0.6rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Mobile lang-switcher \u0432\u043d\u0443\u0442\u0440\u0438 nav-overlay: \u043d\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0435 \u0441\u043a\u0440\u044b\u0442 */
.lang-switcher--mobile {
    display: none;
}

/* Mobile lang-switcher--mobile inside nav overlay */
@media (max-width: 768px) {
    .lang-switcher--mobile {
        display: flex;
        justify-content: center;
        margin-top: 28px;
        gap: 8px;
    }
    .lang-switcher--mobile .lang-btn {
        font-size: 1rem;
        padding: 6px 12px;
    }
    .lang-switcher--mobile .lang-sep {
        font-size: 1rem;
    }
    /* Hide desktop lang-switcher in header__right on mobile */
    .header__right > .lang-switcher:not(.lang-switcher--mobile) {
        display: none;
    }
}



/* ==========================================================================
   Smooth transition for theme switch
   ========================================================================== */
body,
.header,
.nav,
.preloader,
.footer,
.cookie-banner,
.prac-card,
.edu-card,
.exp-card,
.spec-block,
.steps-row,
.accent-block,
.horizontal-cta {
    transition-property: background-color, color, border-color, box-shadow;
    transition-duration: 0.4s;
    transition-timing-function: ease;
}

/* ==========================================
   Header Contact Button & Mobile Call Button
   ========================================== */

/* Desktop Header Button */
.header__contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(191, 161, 95, 0.4); border-radius: 50%; background: transparent; transition: all 0.3s ease; text-decoration: none;
}

.header__contact-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--c-gold);
    transition: transform 0.3s ease;
}

.header__contact-btn:hover {
    border-color: var(--c-gold);
    background: rgba(191, 161, 95, 0.05);
    color: var(--c-heading);
}

.header__contact-btn:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

/* Mobile Menu Button */
.mobile-call-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(191, 161, 95, 0.1);
    color: var(--c-gold);
    border: 1px solid rgba(191, 161, 95, 0.3);
    margin-bottom: 25px; /* Spacing from lang switcher */
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-call-btn svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.mobile-call-btn:active {
    background: rgba(191, 161, 95, 0.2);
    transform: scale(0.95);
}

/* Hide desktop button on tight screens, just like the old text */
@media (max-width: 1024px) {
    .header__contact-btn {
        display: none;
    }
}

/* Show mobile button only when burger is active/visible */
@media (max-width: 768px) {
    .mobile-call-btn {
        display: flex;
    }
}


/* Theme Switching Images */
.spb-bg-dark { display: block; }
.spb-bg-light { display: none; }
.theme-light .spb-bg-dark { display: none !important; }
.theme-light .spb-bg-light { display: block !important; }

/* Contacts Page Theme Specifics for SPB Block */
.spb-bg-dark { display: block; }
.spb-bg-light { display: none; }
.theme-light .spb-bg-dark { display: none !important; }
.theme-light .spb-bg-light { display: block !important; }

.premium-map-container { background: var(--c-surface, #000); border: 1px solid var(--c-border); }

.map-overlay-dark { display: block; }
.map-overlay-light { display: none; }

.theme-light .map-overlay-dark { display: none !important; }
.theme-light .map-overlay-light { display: block !important; }

.theme-light .map-content-wrapper .text-white { color: var(--c-heading) !important; }

/* Footer Socials */
.footer__socials { display: flex; gap: 15px; align-items: center; margin-top: 25px; }
.footer__social-link { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; color: currentColor; opacity: 0.6; transition: all 0.3s ease; background: transparent; text-decoration: none; }
.footer__social-link svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.footer__social-link:hover { opacity: 1; color: var(--c-gold); border-color: var(--c-gold); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(191,161,95,0.15); }
.footer__social-link:hover svg { transform: scale(1.1); }

.footer__socials { justify-content: flex-end; }
@media (max-width: 768px) { .footer__socials { justify-content: flex-start; } }

/* Mobile Partners overrides */
@media (max-width: 1024px) { .partners__flex { gap: 25px !important; align-items: center !important; } .partner-link { display: grid !important; grid-template-columns: 80px 1fr !important; gap: 15px !important; align-items: center !important; text-align: left !important; width: 100% !important; max-width: 320px !important; } .partner-logo { height: auto !important; max-height: 45px !important; max-width: 100% !important; justify-self: start !important; object-fit: contain !important; margin: 0 !important; } .partner-separator { display: none !important; } }

/* Spec block enhancements */
.spec-block { border-left: 3px solid var(--c-gold) !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; min-height: 220px !important; }
.spec-block:hover { transform: translateY(-5px); }
@media (max-width: 768px) { .spec-block { min-height: 180px !important; padding: 25px 15px !important; } }

/* Hero alignment fix */
.hero {
    padding-bottom: 100px;
}

/* Fixed UX: scrolling to forms ignores fixed header */
#contactForm, #contactFormWide { scroll-margin-top: 100px; }

/* Keep partner logos colored in mobile view for both light/dark themes */
@media (max-width: 1024px) {
    html.theme-light .partner-logo,
    .partner-logo {
        filter: none !important;
        opacity: 0.9 !important;
    }
}

.wpcf7 form.invalid .wpcf7-response-output, 
.wpcf7 form.unaccepted .wpcf7-response-output, 
.wpcf7 form.payment-required .wpcf7-response-output {
	display: block;
	max-width: 1000px;
	border-width: 1px;
	border-radius: 4px;
	margin: 10px auto;
}

.wpcf7-spinner {
	position: absolute;
    left: 10px;
    bottom: 10px;
}