:root {
    /* единственный акцентный цвет проекта — все варианты идут через прозрачность */
    --primary: #0E6F4B;
    --primary-rgb: 14, 111, 75;

    /* нейтральная подложка для секций и плашек */
    --bg: rgba(var(--primary-rgb), 0.04);
    --bg-alt: rgba(var(--primary-rgb), 0.08);
    --card-bg: #FFFFFF;

    --text: #1E293B;
    --text-muted: #475569;
    --text-light: #94A3B8;
    --border: #E2E8F0;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 999px;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

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

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); opacity: 0.8; }

/* ═══════════ HEADER ═══════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
}
.logo-icon {
    display: inline-block;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    line-height: 0;
}
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.logo-text {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.logo-text b { font-weight: 800; color: var(--text); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); }

.nav-links a.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}
.nav-links a.header-cta:hover { background: var(--primary); color: #fff; filter: brightness(0.92); transform: translateY(-1px); }

/* ── Dropdown «Узнать больше» (desktop) ── */
.nav-item--dropdown {
    position: relative;
}
/* Невидимая перемычка между триггером и меню, чтобы hover не слетал
   при перемещении курсора через визуальный зазор. Только на десктопе —
   на мобильном fullscreen меню пункты идут друг за другом и перемычка
   ловила бы клики соседних пунктов. */
@media (min-width: 769px) {
    .nav-item--dropdown::after {
        content: "";
        position: absolute;
        left: -8px;
        right: -8px;
        top: 100%;
        height: 18px;
    }
}
.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    white-space: nowrap;
}
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
    color: var(--primary);
}
.nav-trigger__chevron {
    transition: transform var(--transition);
}
.nav-item--dropdown:hover .nav-trigger__chevron,
.nav-item--dropdown.is-open .nav-trigger__chevron,
.nav-trigger[aria-expanded="true"] .nav-trigger__chevron {
    transform: rotate(180deg);
}
.nav-submenu {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 50;
}
.nav-submenu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.nav-submenu li { margin: 0; }
.nav-submenu a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-radius: 10px;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.nav-submenu a:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
}
.nav-item--dropdown:hover .nav-submenu,
.nav-item--dropdown:focus-within .nav-submenu,
.nav-item--dropdown.is-open .nav-submenu {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Блокируем скролл страницы пока открыто адаптивное меню */
html.is-menu-open,
body.is-menu-open {
    overflow: hidden;
    height: 100%;
    touch-action: none;
}
/* backdrop-filter на шапке создаёт новый containing block, из-за чего
   position: fixed у дочернего меню работает относительно header, а не viewport.
   На время открытого меню его выключаем, чтобы меню легло на весь экран. */
body.is-menu-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════ HERO ═══════════ */
.hero {
    position: relative;
    padding: 96px 0 88px;
    overflow: hidden;
    background: var(--bg);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/bg/jpg/bg_header.jpg");
    background-image: image-set(
        url("img/bg/avif/bg_header.avif") type("image/avif"),
        url("img/bg/webp/bg_header.webp") type("image/webp"),
        url("img/bg/jpg/bg_header.jpg") type("image/jpeg")
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}
@media (max-width: 991px) {
    .hero::before {
        background-image: url("img/bg/jpg/bg_header-sm.jpg");
        background-image: image-set(
            url("img/bg/avif/bg_header-sm.avif") type("image/avif"),
            url("img/bg/webp/bg_header-sm.webp") type("image/webp"),
            url("img/bg/jpg/bg_header-sm.jpg") type("image/jpeg")
        );
    }
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.92) 0%,
        rgba(255,255,255,0.78) 30%,
        rgba(255,255,255,0.42) 55%,
        rgba(255,255,255,0.10) 78%,
        rgba(255,255,255,0) 100%
    );
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero-content {
    max-width: 600px;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero h1 {
    font-size: clamp(20px, 2.5vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
}
.hero h1 span {
    color: var(--primary);
    font-size: clamp(20px, 2vw, 25px);
}
.hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}
.hero-cta:hover {
    background: var(--primary);
    color: #fff;
    filter: brightness(0.92);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}
.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    max-width: 280px;
}
.hero-meta strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.hero-meta span {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
@media (max-width: 767px) {
    .hero-cta-row { gap: 14px; }
    .hero-meta strong { font-size: 13px; }
    .hero-meta span   { font-size: 12px; }
}

/* ═══════════ SECTION TITLES ═══════════ */
.section-title {
    text-align: center;
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}
.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════ INFO SECTION ═══════════ */
.info-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}
.info-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/sections/jpg/1.jpg");
    background-image: image-set(
        url("img/sections/avif/1.avif") type("image/avif"),
        url("img/sections/webp/1.webp") type("image/webp"),
        url("img/sections/jpg/1.jpg")  type("image/jpeg")
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}
.info-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.97) 0%,
        rgba(255,255,255,0.9) 38%,
        rgba(255,255,255,0.6) 62%,
        rgba(255,255,255,0.18) 85%,
        rgba(255,255,255,0) 100%
    );
    z-index: 1;
}
.info-section .container {
    position: relative;
    z-index: 2;
}
.info-content {
    max-width: 620px;
}
.info-content h2 {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 24px;
}
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-list li {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 16px;
    padding: 13px 0;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.5;
    color: var(--text);
    border-top: 1px solid rgba(0,0,0,0.07);
}
.info-list li:first-child { border-top: 0; }
.info-list li span { flex: 1; }
.info-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    opacity: 0.7;
    transition: opacity var(--transition), transform var(--transition);
}
.info-list li:hover .info-icon {
    opacity: 1;
    transform: scale(1.15);
}
.info-highlight {
    margin: 24px 0 0;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: var(--radius-sm);
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    color: var(--text-muted);
    backdrop-filter: blur(6px);
}

/* ═══════════ OFFER ═══════════ */
.offer {
    padding: 80px 0;
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
        radial-gradient(80% 90% at 100% 100%, rgba(0, 0, 0, 0.18), transparent 60%),
        linear-gradient(135deg, #0a5c3f 0%, var(--primary) 45%, #138a5d 100%);
}
.offer .section-title { color: #fff; }
.offer .section-subtitle { color: rgba(255,255,255,0.88); }
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.offer-item {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.offer-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.offer-svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    padding: 8px;
    border-radius: 18px;
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    transition: transform var(--transition);
}
.offer-item:hover .offer-svg { transform: scale(1.1); }


.offer-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.3;
}
.offer-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    text-align: center;
    flex: 1;
}
.offer-item .details {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    transition: color var(--transition);
}
.offer-item .details:hover { color: var(--primary); opacity: 0.8; text-decoration: underline; }

/* ═══════════ MODAL ═══════════ */
.modal-data { display: none; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.show { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 520px;
    width: 92%;
    position: relative;
    transform: translateY(-16px) scale(0.97);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}
.modal.show .modal-content { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: color var(--transition);
    line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body { display: flex; flex-direction: column; }
.modal-svg {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    padding: 6px;
    border-radius: 16px;
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
}
.modal-content h3 {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    margin-bottom: 12px;
}
.modal-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 16px 0 8px;
}
.modal-content p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-bottom: 12px; }
.modal-content ul { padding: 0 0 0 20px; margin-bottom: 12px; }
.modal-content ul li { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-bottom: 4px; }
.modal-btn {
    display: block;
    margin: 16px auto 0;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    width: fit-content;
    transition: background var(--transition);
}
.modal-btn:hover { background: var(--primary); color: #fff; filter: brightness(0.92); }

/* ═══════════ LIVING ═══════════ */
.living {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}
.living::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/sections/jpg/2.jpg");
    background-image: image-set(
        url("img/sections/avif/2.avif") type("image/avif"),
        url("img/sections/webp/2.webp") type("image/webp"),
        url("img/sections/jpg/2.jpg")  type("image/jpeg")
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}
.living::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}
.living > .container {
    position: relative;
    z-index: 2;
}
.living-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.living-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.living-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.living-svg {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    padding: 6px;
    border-radius: 16px;
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    transition: transform var(--transition);
}
.living-item:hover .living-svg { transform: scale(1.1); }

.living-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ═══════════ WANT ═══════════ */
.want {
    padding: 80px 0;
    background:
        radial-gradient(110% 90% at 100% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
        radial-gradient(90% 90% at 0% 100%, rgba(0, 0, 0, 0.18), transparent 60%),
        linear-gradient(225deg, #0a5c3f 0%, var(--primary) 45%, #138a5d 100%);
}
.want .section-title { color: #fff; }
.want .section-subtitle { color: rgba(255,255,255,0.88); }
.want-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.want-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.want-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.want-svg {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    padding: 6px;
    border-radius: 14px;
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    transition: transform var(--transition);
}
.want-card:hover .want-svg { transform: scale(1.1); }

/* ═══════════ Иконки-плашки на цветном фоне → белые линии ═══════════ */
.offer-svg [stroke],
.modal-svg [stroke],
.living-svg [stroke],
.want-svg [stroke],
.step-icon svg [stroke] {
    stroke: #fff !important;
}
.offer-svg [fill]:not([fill="none"]),
.modal-svg [fill]:not([fill="none"]),
.living-svg [fill]:not([fill="none"]),
.want-svg [fill]:not([fill="none"]),
.step-icon svg [fill]:not([fill="none"]) {
    fill: #fff !important;
}

.want-text h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}
.want-text p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.want-description {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 28px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-align: center;
}
.want-slider {
    display: flex;
    animation: slideText 18s ease-in-out infinite;
}
.want-slider p {
    flex: 0 0 100%;
    margin: 0;
    padding: 0 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}
@keyframes slideText {
    0%, 30%   { transform: translateX(0); }
    33%, 63%  { transform: translateX(-100%); }
    66%, 96%  { transform: translateX(-200%); }
    100%      { transform: translateX(0); }
}

/* ═══════════ RESPONSIBILITIES ═══════════ */
.responsibilities {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}
.responsibilities::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/sections/jpg/3.jpg");
    background-image: image-set(
        url("img/sections/avif/3.avif") type("image/avif"),
        url("img/sections/webp/3.webp") type("image/webp"),
        url("img/sections/jpg/3.jpg")  type("image/jpeg")
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}
.responsibilities::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}
.responsibilities > .container {
    position: relative;
    z-index: 2;
}
.resp-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.resp-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    gap: 28px;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.resp-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.resp-hero {
    border-radius: 12px;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.resp-hero.i1 { background-image: image-set(url("img/5. Responsibilities/avif/1.avif") type("image/avif"), url("img/5. Responsibilities/webp/1.webp") type("image/webp"), url("img/5. Responsibilities/jpg/1.jpg") type("image/jpeg")); }
.resp-hero.i2 { background-image: image-set(url("img/5. Responsibilities/avif/2.avif") type("image/avif"), url("img/5. Responsibilities/webp/2.webp") type("image/webp"), url("img/5. Responsibilities/jpg/2.jpg") type("image/jpeg")); }
.resp-hero.i3 { background-image: image-set(url("img/5. Responsibilities/avif/3.avif") type("image/avif"), url("img/5. Responsibilities/webp/3.webp") type("image/webp"), url("img/5. Responsibilities/jpg/3.jpg") type("image/jpeg")); }

@media (max-width: 1024px) {
    .resp-hero.i1 { background-image: image-set(url("img/5. Responsibilities/avif/1-sm.avif") type("image/avif"), url("img/5. Responsibilities/webp/1-sm.webp") type("image/webp"), url("img/5. Responsibilities/jpg/1.jpg") type("image/jpeg")); }
    .resp-hero.i2 { background-image: image-set(url("img/5. Responsibilities/avif/2-sm.avif") type("image/avif"), url("img/5. Responsibilities/webp/2-sm.webp") type("image/webp"), url("img/5. Responsibilities/jpg/2.jpg") type("image/jpeg")); }
    .resp-hero.i3 { background-image: image-set(url("img/5. Responsibilities/avif/3-sm.avif") type("image/avif"), url("img/5. Responsibilities/webp/3-sm.webp") type("image/webp"), url("img/5. Responsibilities/jpg/3.jpg") type("image/jpeg")); }
}

.resp-copy h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}
.resp-copy p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}
.resp-description {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 28px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-align: center;
}
.resp-slider {
    display: flex;
    animation: slideRespText 21s ease-in-out infinite;
}
.resp-slider p {
    flex: 0 0 100%;
    margin: 0;
    padding: 0 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}
@keyframes slideRespText {
    0%, 30%   { transform: translateX(0); }
    33%, 63%  { transform: translateX(-100%); }
    66%, 96%  { transform: translateX(-200%); }
    100%      { transform: translateX(0); }
}

/* ═══════════ APPLICATION ═══════════ */
.apply-section {
    padding: 80px 0;
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
        radial-gradient(80% 90% at 100% 100%, rgba(0, 0, 0, 0.20), transparent 60%),
        linear-gradient(160deg, #0a5c3f 0%, var(--primary) 50%, #138a5d 100%);
}
.apply-center {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.apply-center--wide {
    max-width: 780px;
}
.steps {
    text-align: left;
    margin: 28px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 48px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(var(--primary-rgb), 0.15));
    border-radius: 2px;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    position: relative;
}
.step-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--primary);
    color: #fff;
    z-index: 1;
}
.step-icon svg {
    width: 24px;
    height: 24px;
}
.step-body {
    flex: 1;
    min-width: 0;
    position: relative;
}
.step-num {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}
.step-body p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}
.steps-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    text-align: left;
    margin-bottom: 28px;
}
.apply-main { display: none; }
.apply-main.active { display: block; }

.apply-center h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}
.apply-lead {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}
.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}
.btn-telegram:hover {
    background: var(--primary);
    color: #fff;
    filter: brightness(0.92);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}
.btn-telegram svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ═══════════ REVIEWS ═══════════ */
.reviews {
    position: relative;
    padding: 72px 0;
    overflow: hidden;
}
.reviews::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/sections/jpg/4.jpg");
    background-image: image-set(
        url("img/sections/avif/4.avif") type("image/avif"),
        url("img/sections/webp/4.webp") type("image/webp"),
        url("img/sections/jpg/4.jpg")  type("image/jpeg")
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}
.reviews::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}
.reviews > .container {
    position: relative;
    z-index: 2;
}
.reviews-slider {
    position: relative;
    overflow: hidden;
    margin-top: 36px;
}
.reviews-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
    gap: 24px;
}
.review-card {
    flex: 0 0 100%;
    max-width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.review-card:hover {
    box-shadow: var(--shadow-md);
}
.review-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.review-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
}
.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
.review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.review-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.review-info {
    font-size: 13px;
    color: var(--text-muted);
}
.review-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text);
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--primary);
}
.reviews-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}
.reviews-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.reviews-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.15);
}
.reviews-btn svg {
    width: 20px;
    height: 20px;
}
.reviews-dots {
    display: flex;
    gap: 8px;
}
.reviews-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all var(--transition);
}
.reviews-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}
.reviews-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 14px 24px;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 769px) {
    .review-card {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}
@media (min-width: 1025px) {
    .review-card {
        flex: 0 0 calc(33.333% - 16px);
        max-width: calc(33.333% - 16px);
    }
    .reviews-nav { display: none; }
}

/* ═══════════ FOOTER ═══════════ */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 40px 0 32px;
}
.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}
.footer-brand {
    max-width: 360px;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
}
.footer-logo .logo-icon { width: 26px; height: 26px; }
.footer-logo .logo-text { font-size: 16px; }
.footer-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.55;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 10px 48px;
}
.footer-links .col {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* Apply help link */
.apply-help-link {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}
.apply-help-link:hover {
    color: var(--primary);
}

/* ═══════════ SIMPLE PAGE ═══════════ */
.simple_page {
    margin-top: 40px;
    padding: 30px;
}

/* Catalog placeholders: articles and quizzes */
.catalog-page {
    min-height: 70vh;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.10), transparent 34%),
        var(--bg);
}
.catalog-hero {
    max-width: 760px;
    margin-bottom: 28px;
}
.catalog-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    margin-bottom: 16px;
    border-radius: var(--radius-full);
    background: rgba(var(--primary-rgb), 0.10);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}
.catalog-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    margin-bottom: 16px;
    color: var(--text);
}
.catalog-hero p {
    max-width: 620px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-muted);
}
.catalog-clusters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.catalog-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 700;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.catalog-chip:hover {
    border-color: rgba(var(--primary-rgb), 0.42);
    box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.10);
    transform: translateY(-1px);
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.catalog-card,
.catalog-empty {
    background: #fff;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.10);
}
.catalog-card {
    padding: 24px;
}
.catalog-card--clickable {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.catalog-card--clickable:hover,
.catalog-card--clickable:focus-visible {
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: 0 20px 48px rgba(var(--primary-rgb), 0.14);
    transform: translateY(-2px);
}
.catalog-card--clickable:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.28);
    outline-offset: 3px;
}
.catalog-card__meta {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}
.catalog-card h2,
.catalog-empty h2 {
    margin-bottom: 10px;
    color: var(--text);
}
.catalog-card p,
.catalog-empty p {
    color: var(--text-muted);
    line-height: 1.65;
}
.catalog-card__link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 800;
}
.catalog-card__link:hover {
    color: var(--primary-dark);
}
.catalog-empty {
    max-width: 720px;
    padding: 32px;
}
.catalog-empty .btn {
    margin-top: 22px;
}
.catalog-chip.is-active {
    background: rgba(var(--primary-rgb), 0.12);
    border-color: rgba(var(--primary-rgb), 0.45);
}
.catalog-card__media {
    display: block;
    margin: -24px -24px 16px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}
.catalog-card__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* ═══════════ ARTICLE PAGE ═══════════ */
.article-page { padding-bottom: 56px; }
.article-hero {
    padding: 28px 0 24px;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.10), transparent 34%),
        var(--bg);
}
.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}
.article-breadcrumbs a { color: var(--primary); font-weight: 600; }
.article-cluster {
    display: inline-flex;
    padding: 7px 14px;
    margin-bottom: 14px;
    border-radius: var(--radius-full);
    background: rgba(var(--primary-rgb), 0.10);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}
.article-hero h1 {
    font-size: clamp(30px, 4.8vw, 48px);
    line-height: 1.08;
    margin-bottom: 14px;
}
.article-lead {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-muted);
}
.article-byline {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 14px;
}
.article-hero__media {
    display: block;
    margin-top: 24px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(var(--primary-rgb), 0.14);
}
.article-hero__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.article-body {
    padding-top: 28px;
    max-width: 820px;
}
.article-intro p,
.article-content p {
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 16px;
}
.article-brief,
.article-callout,
.article-checklist {
    margin: 28px 0;
    padding: 22px 24px;
    border-radius: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    background: rgba(var(--primary-rgb), 0.05);
}
.article-brief h2,
.article-callout h2,
.article-checklist h2,
.article-content h2,
.article-faq h2,
.article-related h2,
.article-cta h2 {
    font-size: 24px;
    margin-bottom: 12px;
}
.article-brief ul,
.article-checklist ul,
.article-content ul,
.article-related__list {
    padding-left: 20px;
    line-height: 1.7;
}
.article-content section { margin-bottom: 28px; }
.article-faq__item {
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: #fff;
}
.article-faq__item summary {
    cursor: pointer;
    font-weight: 700;
}
.article-related__list a,
.article-intro a { color: var(--primary); font-weight: 700; }
.article-cta {
    margin-top: 36px;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.10);
}
.article-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(var(--primary-rgb), 0.24);
    color: var(--primary-dark);
    font-weight: 700;
    background: #fff;
}

/* ═══════════ QUIZ ENGINE ═══════════ */
.quiz-root {
    margin: 8px 0 32px;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.10);
}
.quiz-progress { margin-bottom: 20px; }
.quiz-progress__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}
.quiz-progress__track {
    height: 8px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.12);
    overflow: hidden;
}
.quiz-progress__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #34d399, var(--primary));
    transition: width .25s ease;
}
.quiz-question__type {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}
.quiz-question__title {
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25;
    margin-bottom: 18px;
}
.quiz-options {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 10px;
}
.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.quiz-option.is-checked,
.quiz-option:hover {
    border-color: rgba(var(--primary-rgb), 0.42);
    background: rgba(var(--primary-rgb), 0.06);
}
.quiz-option__input { margin-top: 3px; }
.quiz-option__text { line-height: 1.55; }
.quiz-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.quiz-actions__btn {
    padding: 12px 18px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}
.quiz-actions__btn--next:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.quiz-actions__btn:disabled { opacity: .45; cursor: not-allowed; }
.quiz-result { text-align: center; }
.quiz-result__score-ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 18px;
}
.quiz-result__score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.quiz-result__score-ring-track {
    fill: none;
    stroke: rgba(var(--primary-rgb), 0.12);
    stroke-width: 10;
}
.quiz-result__score-ring-fill {
    fill: none;
    stroke: url(#quiz-result-gradient);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset .6s ease;
}
.quiz-result__score-num {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.quiz-result__score-percent { font-size: 28px; font-weight: 800; color: var(--primary-dark); }
.quiz-result__score-points { font-size: 12px; color: var(--text-muted); }
.quiz-result__title { font-size: 28px; margin-bottom: 10px; }
.quiz-result__text { max-width: 620px; margin: 0 auto 20px; color: var(--text-muted); line-height: 1.65; }
.quiz-result__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.quiz-result__retry {
    border: none;
    background: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}
.quiz-related { margin-top: 24px; }
.quiz-related ul { padding-left: 20px; }
.quiz-page__hero { margin-bottom: 8px; }
.quiz-hero__media { margin-top: 20px; }

/* ═══════════ FAQ PAGE ═══════════ */
.faq-page { padding-bottom: 56px; }
.faq-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 36px;
}
.faq-toc__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 700;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
    text-decoration: none;
}
.faq-toc__chip:hover {
    border-color: rgba(var(--primary-rgb), 0.42);
    background: rgba(var(--primary-rgb), 0.06);
    transform: translateY(-1px);
}
.faq-toc__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: rgba(var(--primary-rgb), 0.14);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
}
.faq-group {
    margin-bottom: 36px;
    scroll-margin-top: 96px;
}
.faq-group__title {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: #fff;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] {
    border-color: rgba(var(--primary-rgb), 0.32);
    box-shadow: 0 14px 32px rgba(var(--primary-rgb), 0.10);
}
.faq-item__q {
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    user-select: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.10);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.faq-item__title {
    flex: 1;
    line-height: 1.45;
}
.faq-item__chevron {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--primary);
    transition: transform var(--transition);
}
.faq-item[open] .faq-item__chevron {
    transform: rotate(180deg);
}
.faq-item__a {
    padding: 0 22px 20px 68px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}
.faq-item__a p { margin: 0 0 10px; }
.faq-item__a p:last-child { margin-bottom: 0; }
.faq-cta {
    margin-top: 44px;
    padding: 32px;
    text-align: center;
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: 24px;
}
.faq-cta h2 {
    margin-bottom: 10px;
    color: var(--text);
}
.faq-cta p {
    max-width: 560px;
    margin: 0 auto 18px;
    color: var(--text-muted);
    line-height: 1.65;
}
@media (max-width: 768px) {
    .faq-item__q { padding: 16px 18px; gap: 12px; font-size: 15px; }
    .faq-item__num { width: 28px; height: 28px; font-size: 12px; }
    .faq-item__a { padding: 0 18px 18px 58px; font-size: 14px; }
    .faq-cta { padding: 24px 18px; }
}
@media (max-width: 419px) {
    .faq-item__q { padding: 14px 14px; gap: 10px; }
    .faq-item__a { padding: 0 14px 16px 14px; }
}

/* ═══════════ HELP PAGE ═══════════ */
.help-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.help-card h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}
.help-lead {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.help-block {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.help-block:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 32px;
}
.help-block h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}
.help-block p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
}
.help-block ul, .help-block ol {
    padding-left: 20px;
    margin: 8px 0;
}
.help-block li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 6px;
}
.help-block a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.help-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.help-back {
    font-size: 14px;
    color: var(--text-muted);
}
.help-back:hover {
    color: var(--primary);
}

/* ═══════════ ATMOSPHERE SECTION (50/50 slider + info) ═══════════ */
.atmosphere {
    padding: 64px 0;
    background: #fff;
    min-height: 30vh;
}
.atmosphere__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}
.atmosphere__media,
.atmosphere__info {
    display: flex;
    flex-direction: column;
}

.atmosphere-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.15);
    background: rgba(var(--primary-rgb), 0.04);
}
.atmosphere-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
    will-change: transform;
}
.atmosphere-slide {
    flex: 0 0 100%;
    height: 100%;
    margin: 0;
    position: relative;
}
.atmosphere-slide picture,
.atmosphere-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.atmosphere-slide__caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(14, 111, 75, 0.92);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    max-width: calc(100% - 32px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.atmosphere-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
    transition: filter 0.2s, transform 0.2s;
    z-index: 2;
}
.atmosphere-btn:hover {
    filter: brightness(0.95);
    transform: translateY(-50%) scale(1.05);
}
.atmosphere-prev { left: 12px; }
.atmosphere-next { right: 12px; }
.atmosphere-btn svg {
    width: 22px;
    height: 22px;
}

.atmosphere-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.atmosphere-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.2s, width 0.2s, border-radius 0.2s;
}
.atmosphere-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

/* Скрытый h2 для семантики секции (a11y / SEO) */
.atmosphere .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Трек-обёртка для 12 синхронизированных info-слайдов.
   Используем grid-stack: все слайды лежат в одной ячейке,
   высота трека = высота самого «длинного» слайда (нет прыжков) */
.atmosphere__info-track {
    display: grid;
    grid-template-areas: "stack";
    margin-bottom: 24px;
}
.atmosphere__info-slide {
    grid-area: stack;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    visibility: hidden;
}
.atmosphere__info-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.atmosphere__title {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.4vw, 30px);
    color: #1E293B;
    font-weight: 700;
    line-height: 1.2;
}
.atmosphere__lead {
    margin: 0 0 20px;
    color: #475569;
    line-height: 1.5;
}
.atmosphere__list {
    list-style: none;
    padding: 0;
    margin: 0 0 0;
    display: grid;
    gap: 10px;
}
.atmosphere__list li {
    position: relative;
    padding-left: 28px;
    color: #1E293B;
    font-weight: 500;
    line-height: 1.4;
}
.atmosphere__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 7'/></svg>") center/12px no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 7'/></svg>") center/12px no-repeat;
}
.atmosphere__cta {
    display: inline-block;
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}
.atmosphere__cta:hover {
    filter: brightness(0.93);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.3);
}

@media (min-width: 992px) {
    .atmosphere { min-height: max(30vh, 380px); }
    .atmosphere__info { justify-content: center; }
}
@media (max-width: 1199px) {
    .atmosphere__inner { gap: 32px; }
}
@media (max-width: 991px) {
    .atmosphere { padding: 48px 0; }
    .atmosphere__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .atmosphere-slider { aspect-ratio: 16 / 10; }
}
@media (max-width: 767px) {
    .atmosphere { padding: 40px 0; }
    .atmosphere-slider { aspect-ratio: 5 / 3; }
    .atmosphere-btn { width: 36px; height: 36px; }
    .atmosphere-btn svg { width: 18px; height: 18px; }
    .atmosphere-prev { left: 8px; }
    .atmosphere-next { right: 8px; }
    .atmosphere-slide__caption {
        font-size: 12px;
        padding: 6px 10px;
        left: 10px;
        bottom: 10px;
    }
    .atmosphere__cta {
        display: block;
        text-align: center;
        align-self: stretch;
    }
}
@media (max-width: 419px) {
    .atmosphere { padding: 32px 0; }
    .atmosphere-slider { aspect-ratio: 4 / 3; }
    .atmosphere__list li {
        padding-left: 24px;
        font-size: 14px;
    }
}

/* ═══════════ RESPONSIVENESS ═══════════ */
@media (max-width: 1024px) {
    .offer-grid { grid-template-columns: repeat(2, 1fr); }
    .living-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .resp-row { grid-template-columns: 240px 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .burger { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        inset: 64px 0 0 0;
        background: #fff;
        padding: 18px 24px 40px;
        gap: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
        z-index: 90;
        animation: navSlideIn .22s ease;
    }
    .nav-links.open > li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open > li:last-child { border-bottom: none; }
    .nav-links.open > li > a,
    .nav-links.open .nav-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 0;
        font-size: 17px;
        font-weight: 600;
        color: var(--text);
        background: none;
        border: 0;
        text-align: left;
    }
    .nav-links.open > li > a:hover,
    .nav-links.open .nav-trigger:hover {
        color: var(--primary);
    }
    .nav-links.open .nav-item--dropdown { padding: 0; }
    .nav-links.open .nav-submenu {
        position: static;
        transform: none;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0 0 0 14px;
        border: 0;
        background: transparent;
        box-shadow: none;
        pointer-events: none;
        transition: max-height .25s ease, opacity .2s ease, padding .25s ease;
    }
    .nav-links.open .nav-submenu::before { display: none; }
    .nav-links.open .nav-item--dropdown.is-open .nav-submenu {
        opacity: 1;
        max-height: 320px;
        padding: 4px 0 14px 14px;
        pointer-events: auto;
    }
    .nav-links.open .nav-submenu a {
        padding: 12px 14px;
        font-size: 16px;
        font-weight: 500;
        color: var(--text-muted);
    }
    .nav-links.open .nav-submenu a:hover { color: var(--primary); }
    .nav-links.open .header-cta {
        margin-top: 16px;
        text-align: center;
        justify-content: center;
        padding: 14px 22px;
        font-size: 16px;
        background: var(--primary);
        color: #fff;
        border-radius: var(--radius-full);
    }
    .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}
@keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 419px) {
    .nav-links.open { padding: 14px 18px 32px; inset: 60px 0 0 0; }
    .nav-links.open > li > a,
    .nav-links.open .nav-trigger { padding: 18px 0; font-size: 18px; }
    .nav-links.open .nav-submenu a { padding: 14px 14px; }
}
@media (max-width: 768px) {

    .hero { padding: 56px 0 48px; }
    .hero::after {
        background: linear-gradient(
            to bottom,
            rgba(255,255,255,0.92) 0%,
            rgba(255,255,255,0.75) 50%,
            rgba(255,255,255,0.55) 100%
        );
    }
    .hero-content { max-width: 100%; }

    .info-section::after {
        background: linear-gradient(
            to bottom,
            rgba(255,255,255,0.93) 0%,
            rgba(255,255,255,0.78) 50%,
            rgba(255,255,255,0.6) 100%
        );
    }
    .info-content { max-width: 100%; }

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

    .resp-row { grid-template-columns: 1fr; }
    .resp-hero { order: 1; }
    .resp-copy { order: 2; }

    .catalog-page { padding: 22px 0 30px; }
    .catalog-empty { padding: 24px; }

    .footer-inner { flex-direction: column; }
    .footer-links { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 640px) {
    .offer-grid { grid-template-columns: 1fr; }
    .living-grid { grid-template-columns: 1fr; }
    .catalog-grid { grid-template-columns: 1fr; }
    .catalog-hero p { font-size: 15px; }

    .hero-sub { font-size: 15px; }

    .want-card { padding: 14px 16px; gap: 14px; }
    .want-svg { width: 44px; height: 44px; border-radius: 12px; }
    .want-text h3 { font-size: 14px; }
    .want-text p { font-size: 12px; }

    .apply-center { padding: 28px 20px; }
    .steps::before { left: 23px; }
    .step-num { position: static; margin-bottom: 4px; }
    .step-body h4 { font-size: 14px; }
    .section-title { font-size: 22px; }
}

/* ═══════════ TELEGRAM REDIRECT MODAL ═══════════ */
body.tg-modal-open {
    overflow: hidden;
}
.tg-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity .22s ease;
}
.tg-modal[hidden] {
    display: none !important;
}
.tg-modal.is-open {
    opacity: 1;
}
.tg-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.tg-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 28px;
    box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.45);
    transform: translateY(16px) scale(0.98);
    transition: transform .22s ease;
}
.tg-modal.is-open .tg-modal__dialog {
    transform: translateY(0) scale(1);
}
.tg-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: rgba(var(--primary-rgb), 0.06);
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s ease, color .15s ease;
}
.tg-modal__close:hover,
.tg-modal__close:focus-visible {
    background: rgba(var(--primary-rgb), 0.14);
    color: var(--text);
    outline: none;
}
.tg-modal__close svg {
    width: 18px;
    height: 18px;
}
.tg-modal__icon {
    width: 64px;
    height: 64px;
    margin: 4px auto 20px;
    background: rgba(var(--primary-rgb), 0.10);
    color: var(--primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.tg-modal__icon svg {
    width: 30px;
    height: 30px;
}
.tg-modal__title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}
.tg-modal__lead {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}
.tg-modal__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 14px 0 0;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: var(--primary);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: background .15s ease;
}
.tg-modal__toggle:hover,
.tg-modal__toggle:focus-visible {
    background: rgba(var(--primary-rgb), 0.07);
    outline: none;
}
.tg-modal__toggle-chevron {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}
.tg-modal__toggle[aria-expanded="true"] .tg-modal__toggle-chevron {
    transform: rotate(180deg);
}
.tg-modal__note-wrap {
    margin-top: 14px;
}
.tg-modal__note-wrap[hidden] {
    display: none !important;
}
.tg-modal__note {
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: 14px;
    padding: 16px 18px 14px;
}
.tg-modal__note h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.tg-modal__note > p {
    margin: 0 0 10px;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}
.tg-modal__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tg-modal__links a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.tg-modal__links a:hover,
.tg-modal__links a:focus-visible {
    text-decoration: underline;
    outline: none;
}
.tg-modal__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 28px -10px rgba(var(--primary-rgb), 0.55);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.tg-modal__cta:hover,
.tg-modal__cta:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -10px rgba(var(--primary-rgb), 0.65);
    outline: none;
}
.tg-modal__cta svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

@media (max-width: 575px) {
    .tg-modal { padding: 16px; }
    .tg-modal__dialog { padding: 28px 22px 22px; border-radius: 16px; }
    .tg-modal__title { font-size: 19px; }
    .tg-modal__lead { font-size: 14px; }
}
