/*
 * main.css — дизайн-система и базовые стили garant.ae.
 * Визуально 1:1 с live, внутренности — без Bootstrap/MDB/jQuery.
 * Подробности — _documentation/frontend/design_system.md
 */

/* =========================================================================
   Design tokens
   ========================================================================= */

:root {
    /* --- Brand colors (из live-CSS) --- */
    --color-gold:         #b99a35;
    --color-gold-dark:    #a68a2e;
    --color-gold-light:   #d4b040;
    --color-gold-bronze:  #bf9c33;

    --color-blue:         #025fab;
    --color-blue-deep:    #024175;
    --color-blue-cyan:    #10ade4;
    --color-blue-light:   #37a4fc;

    --color-black:        #000;
    --color-ink:          #1a1a1a;
    --color-charcoal:     #252525;   /* my-bg-black / my-bg-black2 */
    --color-coal:         #323537;
    --color-panel:        #3c3c3c;
    --color-gray-900:     #333;
    --color-gray-700:     #555;
    --color-gray-500:     #888;
    --color-gray-400:     #999;
    --color-gray-300:     #bbb;
    --color-gray-250:     #ccc;
    --color-gray-200:     #ddd;
    --color-gray-150:     #e0e0e0;
    --color-gray-100:     #e8e8e8;   /* footer text, input bg */
    --color-gray-75:      #f5f5f5;
    --color-gray-50:      #fafafa;
    --color-white:        #fff;
    --color-cool-gray:    #9ea8b2;

    /* --- Semantic --- */
    --text-primary:       var(--color-ink);
    --text-secondary:     var(--color-gray-900);
    --text-muted:         var(--color-gray-700);
    --text-on-dark:       var(--color-gray-100);
    --text-accent:        var(--color-gold);
    --bg-body:            var(--color-white);
    --bg-dark:            var(--color-charcoal);
    --bg-surface:         var(--color-gray-100);
    --border-color:       var(--color-gray-200);

    /* --- Typography (как на live) --- */
    --font-body:   'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-nav:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif:  'Libre Baskerville', Georgia, serif;
    --font-gotham: 'Gotham Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-accent: 'Foundry Monoline', 'Gotham Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* --- Sizes --- */
    --fs-9:    9px;
    --fs-12:   12px;
    --fs-13:   13px;
    --fs-14:   14px;
    --fs-15:   15px;
    --fs-16:   16px;
    --fs-17:   17px;
    --fs-18:   18px;
    --fs-20:   20px;
    --fs-22:   22px;
    --fs-24:   24px;
    --fs-26:   26px;
    --fs-28:   28px;
    --fs-32:   32px;
    --fs-36:   36px;
    --fs-40:   40px;
    --fs-48:   48px;

    /* --- Radii --- */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   10px;
    --radius-xl:   12px;
    --radius-2xl:  28px;
    --radius-pill: 999px;

    /* --- Shadows --- */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);

    /* --- Layout (из live) --- */
    --container-max:       1502px;   /* основной */
    --container-footer:    1682px;   /* футер чуть шире */
    --container-px:        15px;     /* bootstrap-like */
    --header-top-height:   40px;
    --header-nav-height:   64px;
    --header-height:       calc(var(--header-top-height) + var(--header-nav-height));

    /* --- Z-index --- */
    --z-dropdown: 100;
    --z-sticky:   1000;
    --z-modal:    1050;
    --z-float:    1100;

    /* --- Transitions --- */
    --t-fast:  120ms;
    --t-base:  200ms;
    --t-slow:  400ms;
    --easing:  cubic-bezier(0.4, 0, 0.2, 1);
}


/* =========================================================================
   Reset + base
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-16);
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* компенсация fixed header */
    padding-top: var(--header-height);
}

img, svg, video { max-width: 100%; height: auto; }
img { vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--easing); }

/* Ссылки в текстовом контенте (статьи, legacy, FAQ, legal) — gold #b99a35, как на live.
   Исключаем UI-элементы (header, footer, navbar, breadcrumbs, buttons, cards). */
main :where(p, li, td, blockquote, .legacy-body) a {
    color: var(--color-gold);
    text-decoration: underline;
}
main :where(p, li, td, blockquote, .legacy-body) a:hover {
    color: var(--color-gold-dark);
}
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 4px; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }


/* =========================================================================
   Utility classes (совместимость с live-разметкой)
   ========================================================================= */

.my-bg-black,
.my-bg-black2    { background-color: var(--color-charcoal); }
.my-bg-gray      { background-color: var(--color-coal); }

.font-family-1 { font-family: var(--font-body); }
.font-family-2 { font-family: var(--font-nav); }
.font-family-3 { font-family: var(--font-serif); }

.font-size-9  { font-size: var(--fs-9)  !important; }
.font-size-12 { font-size: var(--fs-12) !important; }
.font-size-14 { font-size: var(--fs-14) !important; }
.font-size-15 { font-size: var(--fs-15) !important; }
.font-size-16 { font-size: var(--fs-16) !important; }
.font-size-18 { font-size: var(--fs-18) !important; }

.text-white      { color: var(--color-white); }
.text-white-50   { color: rgba(255,255,255,0.5); }
.text-center     { text-align: center; }
.text-uppercase  { text-transform: uppercase; }
.font-weight-normal { font-weight: 400; }
.font-weight-bold   { font-weight: 700; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-px);
    padding-right: var(--container-px);
}

.row { display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px; }
.row > [class*="col-"] { padding-left: 15px; padding-right: 15px; }

/* Grid columns (Bootstrap 4 совместимость) */
.col, [class*="col-"] { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
    .col-lg-3 { flex: 0 0 25%;       max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.3333%;  max-width: 33.3333%; }
    .col-lg-6 { flex: 0 0 50%;       max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.6667%;  max-width: 66.6667%; }
    .col-lg-9 { flex: 0 0 75%;       max-width: 75%; }
    .text-lg-left  { text-align: left; }
    .text-lg-right { text-align: right; }
    .ml-lg-auto    { margin-left: auto; }
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mr-1 { margin-right: 0.25rem; }
.ml-3 { margin-left: 1rem; }
.ml-auto { margin-left: auto; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }


/* =========================================================================
   Typography defaults
   ========================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 16px;
    color: var(--text-primary);
}
h1 { font-size: clamp(28px, 4.5vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: var(--fs-22); }
h4 { font-size: var(--fs-20); }
h5 { font-size: var(--fs-18); }
h6 { font-size: var(--fs-16); }

.h1.font-family-3.font-weight-bold.mb-5 { text-align: center; }


/* =========================================================================
   Site header (fixed, 2-tier — как на live)
   ========================================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--z-sticky);
    background: var(--color-charcoal);
    color: var(--color-white);
}

/* Top bar (фон my-bg-black2, крошечный шрифт) */
.site-header__top {
    background: var(--color-charcoal);
    font-size: var(--fs-14);
    text-align: center;
    padding: 8px 0;
}

.site-header__top .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.site-header__search { flex: 1; text-align: left; min-height: 16px; }
.site-header__contacts { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.site-header__contacts a { color: rgba(255,255,255,0.5); font-size: var(--fs-12); font-weight: 400; white-space: nowrap; }
.site-header__contacts a:hover { color: var(--color-white); }
.site-header__icon { width: 14px; height: 14px; display: inline-block !important; vertical-align: middle; margin-right: 4px; }

.site-header__lang { display: flex; gap: 8px; align-items: center; border-left: 1px solid rgba(255,255,255,0.15); padding-left: 12px; margin-left: 4px; }
.site-header__lang a { padding: 2px; display: inline-flex; align-items: center; opacity: 0.5; transition: opacity var(--t-fast) var(--easing); }
.site-header__lang a:hover, .site-header__lang a.is-active { opacity: 1; }
.site-header__lang a img { width: 22px; height: 14px; object-fit: contain; display: block; }

/* WhatsApp modal (QR попап) */
.whatsapp-modal {
    position: absolute;
    right: 15px;
    top: 100%;
    background: var(--color-white);
    color: var(--color-ink);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: var(--z-dropdown);
    min-width: 220px;
}
.whatsapp-modal.is-open { display: block; }
.whatsapp-modal img { width: 180px; height: auto; margin: 0 auto 12px; }
.whatsapp-modal .whatsapp-btn { display: block; text-align: center; padding: 10px; background: #25D366; color: #fff; border-radius: var(--radius-md); font-weight: 600; font-size: var(--fs-14); }

/* Navbar */
.navbar {
    background: var(--color-charcoal);
    padding: 5px 0;
    min-height: var(--header-nav-height);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    margin: 0;
}
.navbar-brand img { height: 44px; width: auto; vertical-align: initial; }

.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}
.navbar-nav .nav-item { position: relative; margin: 0; }
.navbar-nav .nav-link {
    font-family: var(--font-nav);
    font-size: 8.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    padding: 10px 12px;
    display: inline-block;
    letter-spacing: 0.5px;
    transition: color var(--t-fast) var(--easing);
}
.navbar-nav .nav-link:hover,
.navbar-nav .active > .nav-link,
.navbar-nav .current > .nav-link { color: var(--color-white); }

/* Активный родитель (dropdown, чей ребёнок-match) — подсветка золотом */
.navbar-nav .active.parent > .nav-link,
.navbar-nav .alias-parent-active > .nav-link { color: var(--color-gold); }

/* Активный пункт внутри dropdown — gold bg */
.navbar-nav .dropdown-item.active,
.navbar-nav .current > .dropdown-item {
    background-color: var(--color-gold);
    color: var(--color-white);
}

/* Highlight menu item (e.g., "Companies for sale" — gold accent на live) */
.navbar-nav .is-highlight > .nav-link {
    color: var(--color-gold);
    font-weight: 700;
    font-size: var(--fs-9);
}
.navbar-nav .dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    border: 4px solid transparent;
    border-top-color: currentColor;
}
.navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: 8px;
    margin: 0;
    list-style: none;
    display: none;
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-md);
    border-radius: 0;
}
.navbar-nav .dropdown:hover > .dropdown-menu,
.navbar-nav .dropdown:focus-within > .dropdown-menu { display: block; }
.navbar-nav .dropdown-menu .nav-item { margin: 0; line-height: 1rem; }
.navbar-nav .dropdown-item {
    display: block;
    padding: 8px 12px;
    color: rgba(255,255,255,0.85);
    font-size: var(--fs-13);
    text-transform: none;
    font-family: var(--font-nav);
    line-height: 1.3;
    transition: all var(--t-fast) var(--easing);
}
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus,
.navbar-nav .dropdown-item.active {
    background-color: var(--color-gold);
    color: var(--color-white);
}
.rounded-0 { border-radius: 0 !important; }
.p-2 { padding: 8px !important; }

/* Mobile burger */
.navbar-toggler {
    display: none;
    padding: 8px;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
}
.navbar-toggler-icon {
    display: inline-block;
    width: 24px;
    height: 18px;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (max-width: 991px) {
    .navbar-toggler { display: inline-flex; }
    .navbar-collapse {
        flex-basis: 100%;
        display: none;
    }
    .navbar-collapse.is-open { display: block; }
    .navbar-nav { flex-direction: column; width: 100%; align-items: stretch; }
    .navbar-nav .nav-link { padding: 12px 0; font-size: 14px; }
    .navbar-nav .dropdown-menu { position: static; box-shadow: none; padding-left: 16px; }
}


/* =========================================================================
   Main content
   ========================================================================= */

main { min-height: calc(100vh - var(--header-height) - 400px); }


/* =========================================================================
   Footer (sf-* классы — 1:1 с live)
   ========================================================================= */

.site-footer {
    background: var(--color-charcoal);
    color: var(--color-gray-100);
    font-family: var(--font-accent);
}

.site-footer .container {
    max-width: var(--container-footer);
    margin-left: auto;
    margin-right: auto;
}

.site-footer-inner { padding-top: 4rem; padding-bottom: 1.25rem; }
.site-footer .row { margin-left: -15px; margin-right: -15px; justify-content: center; }
.site-footer .row > [class*="col-"] { padding-left: 15px; padding-right: 15px; }

@media (min-width: 992px) {
    .site-footer .sf-col-contacts { width: 398px; min-width: 398px; min-height: 301px; flex: 0 0 398px; }
    .site-footer .sf-col-sitemap { width: 252px; min-width: 252px; min-height: 301px; flex: 0 0 252px; }
    .site-footer .sf-col-news { width: 398px; min-width: 398px; min-height: 239px; flex: 0 0 398px; }
}

.site-footer .sf-heading {
    font-family: var(--font-gotham);
    font-size: var(--fs-28);
    font-weight: 500;
    color: var(--color-gray-100);
    margin-bottom: 20px;
}
.site-footer .sf-text,
.site-footer .sf-link {
    font-size: var(--fs-14);
    font-weight: 400;
    color: var(--color-gray-100);
    line-height: 1.5;
}
.site-footer .sf-link { text-decoration: none; }
.site-footer .sf-link:hover { color: var(--color-gray-100); opacity: 0.8; }

.site-footer .sf-logo { display: block; margin-bottom: 52px; }
.site-footer .sf-logo img { width: 100%; height: auto; object-fit: contain; filter: brightness(0) invert(1); transform: scale(1.3); transform-origin: left top; max-width: 200px; }

.site-footer .sf-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 52px;
}
.site-footer .sf-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    min-width: 48px; min-height: 48px;
    padding: 0;
    border-radius: var(--radius-md);
    color: var(--color-gray-100);
    overflow: hidden;
    box-sizing: border-box;
    line-height: 0;
    transition: opacity var(--t-fast) var(--easing);
}
.site-footer .sf-social a:hover { opacity: 0.9; }
.site-footer .sf-social a img {
    width: 100%; height: 100%;
    max-width: 48px; max-height: 48px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.site-footer .sf-cta-title {
    font-family: var(--font-gotham);
    font-size: var(--fs-28);
    font-weight: 500;
    color: var(--color-gray-100);
    margin: 0 0 22px;
}
.site-footer .sf-cta-desc { font-size: var(--fs-14); color: var(--color-gray-100); margin: 0 0 28px; line-height: 1.5; }

.site-footer .sf-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: var(--fs-15);
    font-weight: 600;
    color: var(--color-gray-900);
    background: var(--color-white);
    border: 1px solid var(--color-gray-900);
    border-radius: var(--radius-2xl);
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-accent);
    transition: all var(--t-fast) var(--easing);
}
.site-footer .sf-btn:hover {
    background: var(--color-gray-75);
    color: var(--color-gray-900);
    border-color: var(--color-gray-900);
}

.site-footer .sf-list { list-style: none; padding: 0; margin: 0; }
.site-footer .sf-list li { margin-bottom: 10px; }
.site-footer .sf-list li.mb-1 { display: none; }

.site-footer .sf-bottom {
    border-top: 1px solid var(--color-gray-900);
    padding-top: 20px;
    margin-top: 40px;
}
.site-footer .sf-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: var(--fs-14);
}
.site-footer .sf-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.site-footer .sf-legal a { color: var(--color-gray-100); text-decoration: none; }
.site-footer .sf-legal a:hover { opacity: 0.8; }
.site-footer .sf-legal span,
.site-footer .sf-legal-sep { color: var(--color-gray-100); user-select: none; }
.site-footer .sf-legal-sep { margin: 0 2px; }

.site-footer .sf-col-news a { color: var(--color-gray-100); }

/* Каждая публикация в футерной колонке */
.sf-news-item { margin-bottom: 22px; }
.sf-news-title {
    display: block;
    font-family: var(--font-gotham);
    font-size: var(--fs-16);
    font-weight: 500;
    color: var(--color-gray-100);
    line-height: 1.4;
    margin-bottom: 6px;
    text-decoration: none;
}
.sf-news-title:hover { opacity: 0.85; }
.sf-news-date {
    font-family: var(--font-accent);
    font-size: var(--fs-14);
    color: var(--color-gray-100);
    opacity: 0.7;
    margin: 0;
}

@media (max-width: 991px) {
    .site-footer .sf-col { margin-bottom: 32px; }
}


/* =========================================================================
   Floating WhatsApp
   ========================================================================= */

.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-float);
    transition: transform var(--t-fast) var(--easing);
}
.floating-whatsapp:hover { color: #fff; transform: scale(1.08); }


/* =========================================================================
   Forms (temp, будет переписано в Фазе 3.9)
   ========================================================================= */

.lead-form, .contact-form { max-width: 500px; }
.lead-form__row, .contact-form label { display: block; margin-bottom: 16px; }
.lead-form input[type="tel"], .contact-form input, .contact-form textarea {
    width: 100%; height: 48px; padding: 0 16px;
    background: var(--bg-surface); border: none; border-radius: var(--radius-lg);
    font-size: var(--fs-16); color: var(--color-ink);
    font-family: var(--font-accent);
}
.contact-form textarea { height: auto; padding: 12px 16px; min-height: 120px; resize: vertical; }
.lead-form input:focus, .contact-form input:focus, .contact-form textarea:focus {
    outline: none; box-shadow: 0 0 0 2px var(--color-gold);
}
.lead-form__row--consent, .contact-form .consent {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: var(--fs-14); color: var(--text-muted); line-height: 1.45;
}
.lead-form__submit, .contact-form button {
    display: inline-block; padding: 0 28px; height: 54px;
    background: var(--color-gold); color: var(--color-white);
    border: none; border-radius: var(--radius-md);
    font-size: var(--fs-16); font-weight: 700;
    font-family: var(--font-gotham);
    cursor: pointer; letter-spacing: 0.02em;
    transition: background var(--t-fast) var(--easing);
}
.lead-form__submit:hover, .contact-form button:hover { background: var(--color-gold-dark); }
.lead-form__submit:disabled, .contact-form button:disabled { opacity: 0.5; cursor: wait; }

.lead-form__status, .contact-form__status {
    margin-top: 12px; font-size: var(--fs-14);
    color: var(--color-gold); min-height: 1.2em;
}

/* Google Maps — общий блок (home + /contact-us, 1:1 с live) */
#map {
    width: 100%;
    min-height: 55vh;
    height: 55vh;
    background-color: var(--color-gray-150);
    position: relative;
}
#map p { padding: 20px; text-align: center; color: var(--color-gray-700); }

/* Вариант для /contact-us: фиксированная высота, скруглённые углы */
.page-contact #map {
    height: 420px;
    min-height: 420px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    overflow: hidden;
}


/* =========================================================================
   Breadcrumbs
   ========================================================================= */

.breadcrumbs { font-size: var(--fs-13); color: var(--text-muted); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--color-gold); }


/* =========================================================================
   Cookie banner (1:1 с mod_jbcookies live)
   ========================================================================= */

.cookie-banner {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 1035;
    background: var(--color-charcoal);
    color: var(--color-white);
    border-bottom: 1px solid var(--color-blue-deep);
    box-shadow: 0 0 40px rgba(0,0,0,0.35);
    padding: 14px 0;
    transform: translateY(-100%);
    transition: transform var(--t-base) var(--easing);
}
.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.cookie-banner__title {
    font-family: var(--font-gotham);
    font-size: var(--fs-18);
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    flex: 0 0 auto;
}

.cookie-banner__text {
    font-size: var(--fs-14);
    line-height: 1.5;
    color: var(--color-white);
    margin: 0;
    flex: 1 1 380px;
}

.cookie-banner__link {
    color: var(--color-blue-light);
    text-decoration: underline;
    margin-left: 4px;
}
.cookie-banner__link:hover { opacity: 0.85; }

.cookie-banner__accept {
    flex: 0 0 auto;
    padding: 8px 28px;
    min-width: 100px;
    font-size: var(--fs-14);
    font-weight: 600;
    color: var(--color-white);
    background: linear-gradient(to bottom, var(--color-blue-cyan) 0%, var(--color-blue) 100%);
    border: 1px solid var(--color-blue-deep);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity var(--t-fast) var(--easing);
}
.cookie-banner__accept:hover { opacity: 0.92; }

@media (max-width: 767px) {
    .cookie-banner { padding: 12px 0; }
    .cookie-banner__title { font-size: var(--fs-16); }
    .cookie-banner__text { font-size: var(--fs-13); flex: 1 1 100%; }
}


/* =========================================================================
   Request modal (1:1 с live .requestForm)
   ========================================================================= */

.request-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.request-modal[hidden] { display: none; }
.request-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}
.request-modal__dialog {
    position: relative;
    width: 583px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 60px);
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    padding: 36px;
    overflow-y: auto;
    box-sizing: border-box;
}
.request-modal.is-thanks .request-modal__dialog {
    background: var(--color-panel);
    border-color: var(--color-panel);
    color: var(--color-white);
}

.rf-close {
    position: absolute;
    right: 20px;
    top: 18px;
    width: 36px; height: 36px;
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: var(--color-ink);
    cursor: pointer;
    font-weight: 300;
}
.rf-close:hover { color: var(--color-black); }
.request-modal.is-thanks .rf-close { color: var(--color-white); }

.rf-title {
    font-family: var(--font-gotham);
    font-size: var(--fs-24);
    font-weight: 700;
    color: var(--color-ink);
    margin: 0 0 14px;
    line-height: 1.3;
    text-align: center;
    letter-spacing: -0.02em;
}
.rf-subtitle {
    font-family: var(--font-accent);
    font-size: var(--fs-15);
    line-height: 1.5;
    color: var(--color-gray-700);
    margin: 0 0 28px;
    text-align: center;
}
.rf-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    margin-bottom: 14px;
    font-size: var(--fs-16);
    color: var(--color-ink);
    background: var(--color-gray-100);
    border: none;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    font-family: var(--font-accent);
    outline: none;
}
.rf-input::placeholder { color: var(--color-gray-500); }
.rf-input--error { box-shadow: 0 0 0 2px rgba(185, 154, 53, 0.5); }

.rf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-family: var(--font-accent);
    font-size: var(--fs-14);
    color: var(--color-gray-900);
    cursor: pointer;
    line-height: 1.45;
}
.rf-checkbox {
    flex-shrink: 0;
    width: 20px; height: 20px;
    margin-top: 2px;
    accent-color: var(--color-gold);
}
.rf-gold { color: var(--color-gold); text-decoration: underline; }

.rf-consent-hint,
.rf-fields-hint {
    display: none;
    font-family: var(--font-accent);
    font-size: var(--fs-14);
    color: var(--color-gold);
    margin: 0 0 12px;
}
.rf-consent-hint.is-shown,
.rf-fields-hint.is-shown { display: block; }

.rf-btn {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0;
    font-family: var(--font-gotham);
    font-size: var(--fs-16);
    font-weight: 700;
    color: var(--color-white);
    background: var(--color-gold);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.02em;
    transition: background var(--t-fast) var(--easing);
}
.rf-btn:hover { background: var(--color-gold-dark); }
.rf-btn:disabled { opacity: 0.5; cursor: wait; }

.rf-thanks {
    text-align: center;
    padding: 24px 0;
}
.rf-thanks[hidden] { display: none; }
.rf-ty-title {
    font-family: var(--font-gotham);
    font-size: var(--fs-20);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 16px;
    line-height: 1.4;
}
.rf-ty-subtitle {
    font-family: var(--font-accent);
    font-size: var(--fs-14);
    color: var(--color-gray-100);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 575px) {
    .request-modal { padding: 0; }
    .request-modal__dialog {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 24px 20px 32px;
    }
}


/* =========================================================================
   Search input (в header top bar)
   ========================================================================= */

/* Search form — 1:1 с live mod_ajaxsearch (.form-inline + .btn-toolbar + .btn-group) */
.site-header__search #mod-ajaxsearch-form {
    display: inline-block;
    margin: 0;
}
.site-header__search .btn-toolbar {
    display: flex;
    align-items: stretch;
}
.site-header__search .btn-group { display: inline-flex; }
.site-header__search .clearfix { display: none; }
.site-header__search .inputbox {
    width: 160px;
    height: 32px;
    padding: 4px 10px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--color-ink);
    font-size: var(--fs-14);
    font-family: var(--font-body);
    outline: none;
}
.site-header__search .inputbox::placeholder { color: var(--color-gray-500); }
.site-header__search .inputbox:focus {
    border-color: var(--color-gold);
    box-shadow: none;
}
.site-header__search .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 32px;
    padding: 0;
    background: var(--color-gold);
    color: var(--color-white);
    border: 1px solid var(--color-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    transition: background var(--t-fast) var(--easing);
}
.site-header__search .btn:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); }
.site-header__search .btn svg { display: block; }
.site-header__search .results-box {
    position: absolute;
    top: 36px; left: 0;
    min-width: 200px;
    z-index: 1200;
    background: var(--color-white);
    color: var(--color-ink);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
}
.site-header__search .results-box:empty { display: none; }

@media (max-width: 575px) {
    .site-header__search .hidden-phone { display: none; }
    .site-header__search .inputbox { border-radius: var(--radius-sm); }
}


/* =========================================================================
   Helpers
   ========================================================================= */

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ===== SHARED: cs-contact-form-section — используется на home + service-страницах ===== */

/* =========================================================================
   Contact form (cs-contact-form-* — 1:1 с live)
   ========================================================================= */

.cs-contact-form-section {
    background: var(--color-white);
    min-height: 662px;
    padding: 100px 0 60px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    overflow: visible;
}
.cs-contact-form-section.cs-contact-form-section--scroll {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.cs-contact-form-section.cs-contact-form-section--visible {
    opacity: 1;
    transform: translateY(0);
}

.cs-contact-form-container {
    max-width: var(--container-max);
    width: 100%;
    height: 562px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    background: linear-gradient(to bottom, var(--color-panel), var(--color-charcoal));
    border-radius: var(--radius-xl);
    overflow: visible;
    box-sizing: border-box;
}
.cs-contact-form-container.d-none { display: none !important; }

.cs-contact-form-left {
    min-height: 0;
    margin-top: -100px;
}

.cs-contact-form-image-wrap {
    position: relative;
    width: 100%;
    height: 662px;
    min-height: 662px;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.cs-contact-form-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.cs-contact-form-overlay {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 444px;
    min-height: 126px;
    padding: 20px 24px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    box-sizing: border-box;
}
.cs-contact-form-quote {
    font-family: var(--font-accent);
    font-size: var(--fs-16);
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 10px;
    color: var(--color-gold);
}
.cs-contact-form-manager {
    font-family: var(--font-gotham);
    font-size: var(--fs-13);
    font-weight: 600;
    margin: 0;
    color: var(--color-gray-700);
}

.cs-contact-form-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 50px;
}
.cs-contact-form-right .cs-contact-form-title,
.cs-contact-form-right .cs-contact-form-desc,
.cs-contact-form-right .cs-contact-form {
    width: 480px;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.cs-contact-form-title {
    font-family: var(--font-gotham);
    font-size: var(--fs-32);
    font-weight: 700;
    color: var(--color-white);
    margin: 24px 0 12px;
}
.cs-contact-form-desc {
    font-family: var(--font-accent);
    font-size: var(--fs-16);
    line-height: 1.5;
    color: var(--color-gray-150);
    margin: 0 0 28px;
}

.cs-contact-form .cs-form-input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: var(--fs-16);
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-gray-900);
    box-sizing: border-box;
    outline: none;
    font-family: var(--font-accent);
}
.cs-contact-form .cs-form-input:focus {
    outline: none; box-shadow: none; border: none;
}
.cs-contact-form .cs-form-input.cs-form-input--error {
    box-shadow: 0 0 0 2px rgba(185, 154, 53, 0.5);
}

.cs-form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    color: var(--color-gray-150);
    font-family: var(--font-accent);
    font-size: var(--fs-14);
    line-height: 1.5;
}
.cs-form-checkbox {
    flex-shrink: 0;
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: var(--color-gold);
}
.cs-form-gold { color: var(--color-gold); text-decoration: underline; }

.cs-form-consent-hint,
.cs-form-fields-hint {
    font-family: var(--font-accent);
    font-size: var(--fs-14);
    color: var(--color-gold);
    margin: 0 0 16px;
}
.cs-form-consent-hint.d-none,
.cs-form-fields-hint.d-none { display: none !important; }

.cs-form-submit {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: var(--color-gold);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-gotham);
    font-size: var(--fs-16);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--t-fast) var(--easing);
    letter-spacing: 0.02em;
}
.cs-form-submit:hover { background: var(--color-gold-dark); }
.cs-form-submit:disabled { opacity: 0.5; cursor: wait; }

/* Thankyou block */
.cs-form-thankyou-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 24px 80px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-sizing: border-box;
}
.cs-form-thankyou-block.d-none { display: none !important; }

.cs-ty-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.cs-ty-title {
    font-family: var(--font-gotham);
    font-size: var(--fs-28);
    font-weight: 700;
    color: var(--color-gray-900);
    line-height: 1.35;
    margin: 0 0 24px;
}
.cs-ty-subtitle {
    font-family: var(--font-accent);
    font-size: var(--fs-16);
    font-weight: 400;
    color: var(--color-gray-700);
    line-height: 1.5;
    margin: 0 0 40px;
}
.cs-ty-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}
.cs-ty-social-link {
    display: inline-flex;
    width: 48px; height: 48px;
    background: var(--color-gold);
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
}
.cs-ty-social-icon { width: 32px; height: 32px; filter: brightness(0) invert(1); }
.cs-ty-btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-pill);
    font-family: var(--font-gotham);
    font-size: var(--fs-15);
    font-weight: 600;
    cursor: pointer;
}
.cs-ty-btn:hover { background: var(--color-gray-100); }

/* helper */
.d-none { display: none !important; }

@media (max-width: 991px) {
    .cs-contact-form-section { padding: 60px 0 40px; }
    .cs-contact-form-container {
        grid-template-columns: 1fr;
        gap: 24px;
        height: auto;
    }
    .cs-contact-form-left { margin-top: 0; }
    .cs-contact-form-image-wrap { height: 400px; min-height: 400px; }
    .cs-contact-form-overlay { right: 16px; bottom: 16px; width: calc(100% - 32px); max-width: 444px; }
    .cs-contact-form-right { padding: 24px 0 32px; }
    .cs-contact-form-right .cs-contact-form-title,
    .cs-contact-form-right .cs-contact-form-desc,
    .cs-contact-form-right .cs-contact-form { width: 100%; padding: 0 16px; }
}

/* ===== SHARED: cs-statistics (home + about) ===== */
/* =========================================================================
   Statistics (cs-* — 1:1 с live inline CSS)
   ========================================================================= */

.cs-statistics {
    background: var(--color-white);
    padding: 60px 0;
    color: var(--color-gray-900);
    box-sizing: border-box;
}
.cs-statistics.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cs-statistics.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.cs-statistics-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
.cs-statistics-image-wrap { text-align: center; margin-top: 72px; }
.cs-statistics-image {
    width: 1128px;
    max-width: 100%;
    height: 679px;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    border-radius: 12px;
}
.cs-statistics-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
}
.cs-statistics-item {
    flex: 1;
    min-width: 0;
    padding: 0 24px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}
.cs-statistics-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    min-height: 40px;
    background: var(--color-gray-250);
}
.cs-statistics-value {
    font-family: var(--font-gotham);
    font-size: var(--fs-48);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-gray-900);
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cs-statistics-plus {
    font-weight: 700;
    font-size: 0.85em;
    color: var(--color-cool-gray);
    margin-left: 2px;
    vertical-align: middle;
}
.cs-statistics-desc {
    font-family: var(--font-accent);
    font-size: var(--fs-20);
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-gray-900);
    margin: 0 auto;
    max-width: 180px;
}
@media (max-width: 991px) {
    .cs-statistics { padding: 48px 0; }
    .cs-statistics-container { padding: 0 20px; }
    .cs-statistics-item { padding: 0 16px; }
    .cs-statistics-value { font-size: 40px; }
    .cs-statistics-desc { font-size: 18px; max-width: 160px; }
    .cs-statistics-image { height: auto; }
}
@media (max-width: 767px) {
    .cs-statistics-row { flex-wrap: wrap; justify-content: center; gap: 24px 0; }
    .cs-statistics-item { flex: 0 0 50%; max-width: 50%; padding: 0 16px; }
    .cs-statistics-item::after { display: none; }
    .cs-statistics-item:nth-child(1)::after,
    .cs-statistics-item:nth-child(3)::after { display: block; }
    .cs-statistics-value { font-size: 36px; }
    .cs-statistics-desc { font-size: 17px; }
}
@media (max-width: 575px) {
    .cs-statistics { padding: 40px 0; }
    .cs-statistics-container { padding: 0 16px; }
    .cs-statistics-row { flex-direction: column; gap: 24px; }
    .cs-statistics-item { flex: none; max-width: 100%; padding: 0; }
    .cs-statistics-item::after { display: none !important; }
    .cs-statistics-value { font-size: 40px; }
    .cs-statistics-desc { font-size: 18px; max-width: 280px; }
}


/* ===== SHARED: breadcrumbs (все non-home шаблоны) ===== */
/* =========================================================================
   Breadcrumbs (1:1 с live Bootstrap .breadcrumb)
   Не full-width: встроены в обычный .container, bg серый, по центру.
   ========================================================================= */

[aria-label="breadcrumbs"] {
    /* Bootstrap 4 .container @ xl: max-width 1140 с боковыми padding 15 → viewable width ~1110.
       У нас общий .container шире (1502), поэтому сужаем wrapper крошек до 1140 max. */
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}
[aria-label="breadcrumbs"] .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 12px 16px;
    margin: 15px 0 0;
    background: var(--color-gray-100);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--fs-14);
    color: var(--color-gray-700);
}
[aria-label="breadcrumbs"] .breadcrumb > li {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
[aria-label="breadcrumbs"] .breadcrumb a.pathway {
    color: var(--color-gray-900);
    text-decoration: none;
}
[aria-label="breadcrumbs"] .breadcrumb a.pathway:hover { color: var(--color-gold); }
[aria-label="breadcrumbs"] .breadcrumb > li.active [itemprop="name"] { color: var(--color-gold); }
[aria-label="breadcrumbs"] .breadcrumb .divider {
    margin: 0 8px;
    color: var(--color-gold);
    user-select: none;
}
[aria-label="breadcrumbs"] .breadcrumb .icon-location { font-size: 14px; margin-right: 8px; }

/* ===== SHARED: legacy-article / legacy-body (legal, team_profile, legacy services) ===== */
/*
 * service.css — стили страниц услуг (1:1 с live .br-page / .cs-journey-section / .br-video-section).
 * Подробности — _documentation/frontend/template_service_page.md
 */

/* =========================================================================
   Legacy Joomla-article fallback (pro-services, uae-residency-services).
   1:1 с live: центрированный H1 в col-lg-8, text-justify, image full-width.
   ========================================================================= */

.legacy-article { padding: 3rem 0; }

.legacy-article-inner {
    max-width: 880px; /* ≈ col-lg-8 в Bootstrap container 1170 */
    margin: 0 auto;
    padding: 0 15px;
}

.legacy-article .legacy-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 700;
    color: var(--color-charcoal);
    text-align: center;
    margin: 0 0 3rem;
    line-height: 1.2;
}

.legacy-body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-gray-700);
    text-align: justify;
}
.legacy-body p { margin: 0 0 14px; }
.legacy-body strong { font-weight: 700; color: var(--color-ink); }
.legacy-body ul, .legacy-body ol { padding-left: 1.6em; margin: 0 0 14px; }
.legacy-body li { margin-bottom: 6px; }
.legacy-body a { color: var(--color-gold); text-decoration: underline; }
.legacy-body a:hover { color: var(--color-gold-dark); }
.legacy-body img { max-width: 100%; height: auto; margin: 20px 0; }
.legacy-body h1, .legacy-body h2, .legacy-body h3 {
    font-family: var(--font-gotham);
    font-weight: 700;
