/* ============================================================
   1. ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
    --text: #11161A;
    --text-inv: #F6F6F5;
    --background: #F6F6F5;
    --background-inv: #11161A;
    --color-select: #0EA4AF;
    --color-select-navy: #024376;
    --color-select-navy-hover: #0060a9;

    --heading-accent: #004a99;

    --font-title1: 2em;
    --font-title2: 1.8em;
    --font-title3: 1.6em;
    --font-title4: 1.4em;

    --container-max: 1200px;
    --container-pad: 20px;
}

/* ============================================================
   2. ШРИФТЫ
   ============================================================ */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/open-sans-v44-cyrillic_latin-300.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300; font-display: swap; src: url('/fonts/open-sans-v44-cyrillic_latin-300italic.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/open-sans-v44-cyrillic_latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/open-sans-v44-cyrillic_latin-italic.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/open-sans-v44-cyrillic_latin-700.woff2') format('woff2'); }

@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100; font-display: swap; src: url('/fonts/montserrat-v31-cyrillic_latin-100.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 100; font-display: swap; src: url('/fonts/montserrat-v31-cyrillic_latin-100italic.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/montserrat-v31-cyrillic_latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/montserrat-v31-cyrillic_latin-italic.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/montserrat-v31-cyrillic_latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 700; font-display: swap; src: url('/fonts/montserrat-v31-cyrillic_latin-700italic.woff2') format('woff2'); }

/* ============================================================
   3. БАЗА
   ============================================================ */
html { min-width: 350px; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}
h1 { font-size: var(--font-title1); }
h2 { font-size: var(--font-title2); }
h3 { font-size: var(--font-title3); }
h4 { font-size: var(--font-title4); }

/* Сброс браузерных стилей ссылок (включая :visited — иначе он перебивает классы) */
a,
a:link,
a:visited {
    color: inherit;
    text-decoration: none;
}
/* Глобального a:hover НЕТ — иначе перебивает hover кнопок */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--color-select-navy);
    color: var(--background);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color .3s, transform .3s;
}
.btn,
.btn:link,
.btn:visited { color: var(--background); }
.btn:hover {
    background-color: var(--color-select-navy-hover);
    color: var(--background);
    transform: translateY(-2px);
}

/* ============================================================
   4. ШАПКА + МОБИЛЬНОЕ МЕНЮ
   ============================================================ */
header {
    min-height: 180px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    max-height: 120px;
    max-width: 100%;
    height: auto;
    padding: 10px;
}

nav { flex: 1; display: flex; justify-content: center; }
nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    white-space: nowrap;
    padding: 0;
}
nav ul li a:hover { color: var(--color-select-navy); }

.header-contacts { text-align: right; }
.phone {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: var(--color-select-navy);
    white-space: nowrap;
    padding: 0 5px;
}

/* Мобильное меню */
.menu-checkbox { display: none; }

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: none;
    padding: 5px;
    margin-left: 10px;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 3px 0;
    transition: .3s;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background-color: var(--background);
    z-index: 2000;
    overflow-y: auto;
    text-align: right;
    transition: right .3s ease-in-out;
}
.menu-checkbox:checked ~ .mobile-menu-overlay { right: 0; }

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text);
    z-index: 2001;
}

.mobile-menu ul {
    list-style: none;
    padding: 70px 20px 20px;
    margin: 0;
}
.mobile-menu li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.mobile-menu li:last-child { border-bottom: none; }

/* ============================================================
   5. HERO
   ============================================================ */
.hero {
    height: 600px;
    background: var(--color-select);
    overflow: hidden;
}
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

/* ============================================================
   6. УСЛУГИ
   ============================================================ */
.services { padding: 80px 0; }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; color: var(--heading-accent); margin-bottom: 10px; }
.section-title .underline {
    width: 60px;
    height: 4px;
    background-color: var(--color-select);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,.05);
    transition: transform .3s, box-shadow .3s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,.1);
}

.card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}
.card-content { padding: 0 25px 25px; }
.card-content h3 {
    margin-bottom: 10px;
    font-size: 20px;
    height: 50px;
    line-height: 25px;
}
.card-content p {
    font-size: 14px;
    margin-bottom: 20px;
    height: 65px;
    overflow: hidden;
}

.card-link {
    display: block;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--color-select-navy);
    border-radius: 5px;
    font-weight: 600;
    transition: .3s;
}
.card-link,
.card-link:link,
.card-link:visited { color: var(--color-select-navy); }
.card-link:hover {
    background-color: var(--color-select-navy);
    color: var(--background);
}

.card-vip {
    border: 2px solid var(--color-select);
    position: relative;
}
.card-vip::before {
    content: 'VIP СЕРВИС';
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-select);
    color: var(--background);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 700;
}
.card-vip .card-link,
.card-vip .card-link:link,
.card-vip .card-link:visited {
    color: var(--background);
    background-color: var(--color-select);
}

/* ---- Раскрывающиеся карточки услуг ---- */
.services-grid--expandable .service-card--expandable {
    position: relative;
    cursor: pointer;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    outline: none;
}
.services-grid--expandable .service-card--expandable:focus-visible {
    box-shadow: 0 0 0 3px rgba(0,74,153,.35);
}

.services-grid--expandable .service-card--expandable .card-img {
    position: absolute;
    inset: 0;
    height: 150px;
    z-index: 0;
    transition: opacity .3s ease;
}

.services-grid--expandable .service-card--expandable .card-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 18px 25px 30px;
    background: linear-gradient(to top, rgba(255,255,255,.92) 60%, rgba(255,255,255,0));
    transition: background .3s ease;
}

.services-grid--expandable .service-card--expandable .card-content p {
    height: 65px;
    overflow: hidden;
    margin-bottom: 0;
    transition: height .35s ease;
}

.services-grid--expandable .card-toggle {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 18px;
    line-height: 1;
    color: var(--color-select-navy);
    transition: transform .35s ease;
    pointer-events: none;
}

.services-grid--expandable .service-card--expandable.is-open .card-img {
    opacity: .15;
}
.services-grid--expandable .service-card--expandable.is-open .card-content {
    background: rgba(255,255,255,0);
    margin-top: 0;
}
.services-grid--expandable .service-card--expandable.is-open .card-content p {
    height: auto;
    overflow: visible;
}
.services-grid--expandable .service-card--expandable.is-open .card-toggle {
    transform: translateX(-50%) rotate(180deg);
}

.services-grid--expandable .service-card--expandable.is-open .card-content {
    animation: cardContentIn .35s ease;
}
@keyframes cardContentIn {
    from { transform: translateY(20px); opacity: .4; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ============================================================
   7. ПРЕИМУЩЕСТВА
   ============================================================ */
section.preim {
    background: var(--color-select);
    color: var(--background);
    padding: 60px 0;
}
section.preim h1 { text-align: center; margin: 0 0 40px; }

.preim__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.preim__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.preim__icon { width: 128px; height: 128px; margin-bottom: 16px; }
.preim__title { display: block; margin-bottom: 8px; font-size: 18px; }
.preim__text  { margin: 0; font-size: 15px; line-height: 1.4; }

/* ============================================================
   8. ОТЗЫВЫ (карусель)
   ============================================================ */
section.otzyvy {
    background: var(--color-select);
    color: var(--background);
    padding: 60px 0;
    overflow: hidden;
}
section.otzyvy h2 { text-align: center; margin: 0 0 10px; }
.otzyvy__subtitle { text-align: center; margin: 0 0 40px; opacity: .7; }

.otzyvy__viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.otzyvy__track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: otzyvy-scroll 40s linear infinite;
}
.otzyvy__viewport:hover .otzyvy__track { animation-play-state: paused; }

@keyframes otzyvy-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.otzyvy__item {
    flex: 0 0 auto;
    width: 260px;
    margin: 0;
    padding: 24px 20px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.otzyvy__photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    background: rgba(255,255,255,.1);
}
.otzyvy__name { display: block; font-size: 16px; margin-bottom: 8px; }
.otzyvy__text { margin: 0; font-size: 14px; line-height: 1.45; opacity: .85; }

/* ============================================================
   9. АВТОПАРК
   ============================================================ */
section.autopark { color: var(--text); padding: 60px 0; }
section.autopark h2 { text-align: center; margin: 0 0 10px; }
.autopark__subtitle {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    opacity: .75;
}

.autopark__group + .autopark__group { margin-top: 56px; }
.autopark__group-title {
    margin: 0 0 24px;
    font-size: 22px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.autopark__group-seats {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-select-navy);
    opacity: .8;
}

.autopark__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    gap: 24px;
    justify-content: center;
}
.autopark__card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.autopark__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.autopark__photo { aspect-ratio: 4/3; background: rgba(0,0,0,.05); overflow: hidden; }
.autopark__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.autopark__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    flex: 1 1 auto;
}
.autopark__name { margin: 0; font-size: 18px; line-height: 1.3; }

.autopark__specs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}
.autopark__specs li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px dashed rgba(0,0,0,.1);
    padding-bottom: 4px;
}
.autopark__specs span { opacity: .7; }

.autopark__price { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.autopark__price-value { font-size: 22px; font-weight: 700; color: var(--color-select); }
.autopark__price-note  { font-size: 12px; opacity: .6; }

.autopark__btn {
    display: inline-block;
    text-align: center;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--color-select);
    font-size: 15px;
    font-weight: 700;
    transition: background .2s, color .2s;
}
.autopark__btn,
.autopark__btn:link,
.autopark__btn:visited { color: var(--text-inv); }
.autopark__btn:hover {
    background: var(--color-select-navy-hover);
    color: var(--text-inv);
}

/* ============================================================
   10. ПОДВАЛ
   ============================================================ */
footer.footer {
    background: var(--color-select-navy);
    color: var(--background);
    padding: 60px 0 24px;
    font-size: 15px;
    line-height: 1.5;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__logo img { width: 200px; }
.footer__tagline { margin: 0; opacity: .65; max-width: 280px; font-size: 14px; }
.footer__title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    opacity: .9;
}

.footer__contacts,
.footer__col ul,
.footer__socials,
.footer__legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link,
.footer__col a,
.footer__social {
    text-decoration: none;
    opacity: .8;
    transition: opacity .2s, color .2s;
}
.footer__link,
.footer__link:link,
.footer__link:visited,
.footer__col a,
.footer__col a:link,
.footer__col a:visited,
.footer__social,
.footer__social:link,
.footer__social:visited { color: var(--text-inv); }
.footer__link:hover,
.footer__col a:hover,
.footer__social:hover {
    opacity: 1;
    color: var(--color-select);
}
.footer__address { opacity: .8; }

.footer__social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: .85;
}
.footer__social svg { flex: 0 0 auto; display: block; }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    opacity: .75;
}
.footer__copy { margin: 0; }
.footer__legal { flex-direction: row; gap: 24px; flex-wrap: wrap; }

/* ============================================================
   11. ТЕМАТИЧЕСКИЕ ЛЕНДИНГИ
   ============================================================ */

/* База: класс .funeral задаёт дефолтный акцент.
   Классы категорий могут стоять и на .funeral, и на родителе —
   поэтому объявляем переменные и на самом .funeral, и на категории. */
.funeral {
    font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.55;

    /* дефолтный акцент — синий */
    --accent: #024376;
    --accent-hover: #0060a9;
    --accent-fg: #fff;
    --accent-fg-hover: #fff;
}

/* Траурный — золотой */
.traurnoe-soprovozhdenie {
    --accent: #c9a227;
    --accent-hover: #a8871c;
    --accent-fg: #1a1a1a;
    --accent-fg-hover: #fff;
}

/* Остальные категории — синий */
.korporativnye-poezdki,
.prazdnichnye-perevozki,
.tury-i-ekskursii,
.pochasovaya-arenda,
.gruppovye-perevozki {
    --accent: #024376;
    --accent-hover: #0060a9;
    --accent-fg: #fff;
    --accent-fg-hover: #fff;
}

/* --- hero --- */
.fhero {
    padding: 120px 0 100px;
    text-align: center;
}
.traurnoe-soprovozhdenie .fhero {
    background:
        linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,.55)),
        url('/img/category/traurnoe-soprovozhdenie.png') center/cover no-repeat,
        #2a2a2a;
    color: #fff;
}

/* остальные категории — общий фон + картинка через переменную */
.korporativnye-poezdki .fhero,
.prazdnichnye-perevozki .fhero,
.tury-i-ekskursii .fhero,
.pochasovaya-arenda .fhero,
.gruppovye-perevozki .fhero {
    background:
        linear-gradient(180deg, rgba(2,67,118,.85), rgba(0,96,169,.75)),
        var(--hero-img, none) center/cover no-repeat,
        var(--color-select-navy);
    color: #fff;
}

.korporativnye-poezdki .fhero { --hero-img: url('/img/category/korporativnye-poezdki.png'); }
.prazdnichnye-perevozki .fhero { --hero-img: url('/img/category/prazdnichnye-perevozki.png'); }
.tury-i-ekskursii .fhero       { --hero-img: url('/img/category/tury-i-ekskursii.png'); }
.pochasovaya-arenda .fhero     { --hero-img: url('/img/category/pochasovaya-arenda.png'); }
.gruppovye-perevozki .fhero    { --hero-img: url('/img/category/gruppovye-perevozki.png'); }

.fhero__title { font-size: 40px; line-height: 1.2; margin: 0 0 20px; font-weight: 700; }
.fhero__subtitle { font-size: 18px; max-width: 760px; margin: 0 auto 32px; opacity: .9; }
.fhero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.fhero__btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.fhero__btn--primary,
.fhero__btn--primary:link,
.fhero__btn--primary:visited {
    background: var(--accent, #024376);
    color: var(--accent-fg, #fff);
}
.fhero__btn--primary:hover,
.fhero__btn--primary:focus-visible {
    background: var(--accent-hover, #0060a9);
    color: var(--accent-fg-hover, #fff);
}
.fhero__btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.6);
}
.fhero__btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.fhero__note { margin: 28px 0 0; font-size: 14px; opacity: .7; }

/* intro */
.fintro { padding: 70px 0 50px; }
.fintro__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.fintro__title { font-size: 26px; line-height: 1.35; margin: 0 0 24px; }
.fintro__text  { font-size: 17px; margin: 0 0 14px; opacity: .85; }

/* benefits */
.fbenefits { padding: 50px 0 80px; }
.fbenefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fbenefit {
    padding: 28px 24px 24px;
    border-radius: 14px;
    background: rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.06);
}
.fbenefit__num { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent, #024376); letter-spacing: 1px; margin-bottom: 10px; }
.fbenefit__title { font-size: 18px; margin: 0 0 10px; line-height: 1.35; }
.fbenefit__text  { margin: 0; font-size: 15px; opacity: .8; }

/* recommended */
.frec { padding: 70px 0; background: rgba(0,0,0,.03); }
.frec__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 900px; margin: 0 auto; }
.frec__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.frec__photo { aspect-ratio: 16/10; background: rgba(0,0,0,.05); overflow: hidden; }
.frec__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frec__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.frec__name { font-size: 20px; margin: 0; }
.frec__capacity { margin: 0 0 6px; color: var(--accent, #024376); font-weight: 700; font-size: 16px; }

.frec__btn {
    display: inline-block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    transition: background .2s, color .2s;
}
.frec__btn,
.frec__btn:link,
.frec__btn:visited {
    background: var(--accent, #024376);
    color: var(--accent-fg, #fff);
}
.frec__btn:hover,
.frec__btn:focus-visible {
    background: var(--accent-hover, #0060a9);
    color: var(--accent-fg-hover, #fff);
}

/* steps */
.fsteps { padding: 70px 0; }
.fsteps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fsteps__item {
    padding: 24px 20px;
    border-radius: 14px;
    background: rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.06);
    text-align: center;
}
.fsteps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent, #024376);
    color: var(--accent-fg, #fff);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}
.fsteps__title { font-size: 17px; margin: 0 0 8px; }
.fsteps__text  { margin: 0; font-size: 14px; opacity: .8; }
.fsteps__cta   { text-align: center; margin-top: 40px; }

.fsteps__btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.fsteps__btn,
.fsteps__btn:link,
.fsteps__btn:visited {
    background: var(--accent, #024376);
    color: var(--accent-fg, #fff);
}
.fsteps__btn:hover,
.fsteps__btn:focus-visible {
    background: var(--accent-hover, #0060a9);
    color: var(--accent-fg-hover, #fff);
}

/* license */
.flicense { padding: 70px 0; background: rgba(0,0,0,.03); }
.flicense__inner { max-width: 800px; margin: 0 auto; text-align: center; }
.flicense__title { font-size: 26px; margin: 0 0 20px; }
.flicense__text  { font-size: 16px; opacity: .85; margin: 0 0 26px; }

.flicense__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    border: 2px solid var(--accent, #024376);
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.flicense__btn,
.flicense__btn:link,
.flicense__btn:visited { color: var(--accent, #024376); }
.flicense__btn:hover,
.flicense__btn:focus-visible {
    background: var(--accent, #024376);
    color: var(--accent-fg, #fff);
}

/* faq */
.ffaq { padding: 70px 0; }
.ffaq__list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.ffaq__item {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.02);
    overflow: hidden;
}
.ffaq__q {
    cursor: pointer;
    padding: 20px 52px 20px 24px;
    font-size: 17px;
    font-weight: 700;
    list-style: none;
    position: relative;
}
.ffaq__q::-webkit-details-marker { display: none; }
.ffaq__q::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: var(--accent, #024376);
}
.ffaq__item[open] .ffaq__q::after { content: "−"; }
.ffaq__a { padding: 0 24px 22px; font-size: 15px; opacity: .85; line-height: 1.6; }

/* final CTA */
.fcta {
    padding: 80px 0;
    background: var(--color-select);
    color: #fff;
    text-align: center;
}
.traurnoe-soprovozhdenie .fcta { background: #1c1c1c; }

.fcta__inner { max-width: 720px; margin: 0 auto; }
.fcta__title { font-size: 30px; margin: 0 0 16px; }
.fcta__text  { font-size: 17px; opacity: .8; margin: 0 0 32px; }
.fcta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.fcta__btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.fcta__btn--primary,
.fcta__btn--primary:link,
.fcta__btn--primary:visited {
    background: var(--accent, #024376);
    color: var(--accent-fg, #fff);
}
.fcta__btn--primary:hover,
.fcta__btn--primary:focus-visible {
    background: var(--accent-hover, #0060a9);
    color: var(--accent-fg-hover, #fff);
}
.fcta__btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.fcta__btn--ghost:hover { border-color: #fff; }

/* ============================================================
   12. АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
    .hero { height: auto; overflow: hidden; }
    .hero img { object-fit: contain; object-position: left center; }
}

@media (max-width: 992px) {
    .preim__grid     { grid-template-columns: repeat(2, 1fr); }
    .footer__top     { grid-template-columns: 1fr 1fr; gap: 32px; }
    .fbenefits__grid { grid-template-columns: repeat(2, 1fr); }
    .fsteps__grid    { grid-template-columns: repeat(2, 1fr); }
    .fhero__title    { font-size: 32px; }
    .fhero           { padding: 90px 0 70px; }
}

@media (max-width: 800px) {
    .hero h1 { font-size: 32px; }
    nav.menu { display: none; }
    header .container { flex-direction: column; gap: 10px; }
    .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
    .otzyvy__item  { width: 220px; }
    .otzyvy__track { gap: 16px; }
}

@media (max-width: 650px) {
    .hero { height: 300px; }
    .hero img { object-fit: cover; }
}

@media (max-width: 640px) {
    .fbenefits__grid { grid-template-columns: 1fr; }
    .fsteps__grid    { grid-template-columns: 1fr; }
    .frec__grid      { grid-template-columns: 1fr; }

    .fhero           { padding: 70px 0 60px; }
    .fhero__title    { font-size: 26px; }
    .fhero__subtitle { font-size: 16px; }

    .fintro          { padding: 50px 0 30px; }
    .fintro__title   { font-size: 21px; }

    .fcta__title     { font-size: 24px; }

    .fhero__btn,
    .fcta__btn,
    .fsteps__btn { width: 100%; text-align: center; }
    .fhero__actions,
    .fcta__actions { flex-direction: column; }
}

@media (max-width: 560px) {
    .preim__grid          { grid-template-columns: 1fr; }
    .autopark__grid       { grid-template-columns: 1fr; }
    .autopark__price-value { font-size: 20px; }
    .footer__top          { grid-template-columns: 1fr; gap: 28px; }
    .footer__bottom       { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer__legal        { gap: 16px; }
}



/* ===== Контакты ===== */
.contacts {
  --c-bg: #f6f8fb;
  --c-card: #ffffff;
  --c-text: #1d2433;
  --c-muted: #6b7485;
  --c-accent: #1a6bff;
  --c-border: #e4e8f0;
  --radius: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  padding: 48px 16px;
}

.contacts__container {
  max-width: 960px;
  margin: 0 auto;
}

.contacts__title {
  margin: 0 0 32px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Сетка карточек адрес/телефон */
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.contact-card:hover {
  box-shadow: 0 8px 24px rgba(29, 36, 51, .08);
  transform: translateY(-2px);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(26, 107, 255, .1);
  color: var(--c-accent);
  margin-bottom: 16px;
}

.contact-card__label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-muted);
}

.contact-card__value {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.contact-card__link {
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s ease;
}

.contact-card__link:hover {
  color: var(--c-accent);
}

/* ===== Маленькие иконки мессенджеров под телефоном ===== */
.contact-card__messengers {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.contact-card .messenger-icon,
.contact-card .messenger-icon:link,
.contact-card .messenger-icon:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}

.contact-card .messenger-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: #fff;
  color: #fff;
  stroke: none;
}

.contact-card .messenger-icon:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.contact-card .messenger-icon:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.contact-card .messenger-icon--max svg {
  width: 30px;
  height: 30px;
}
.contact-card .messenger-icon--max      { background: #6a5cff; }
.contact-card .messenger-icon--telegram { background: #2aabee; }
.contact-card .messenger-icon--whatsapp { background: #25d366; }

/* Соцсети */
.contacts__subtitle {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
}

.social-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--c-text);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.social-link:hover {
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(29, 36, 51, .1);
  transform: translateY(-2px);
}

.social-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  color: #fff;
}

.social-link__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.social-link__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.social-link__desc {
  font-size: 13px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-list .messenger-icon--max svg {
  width: 55px;
  height: 55px;
}

/* Цвета брендов */
.social-link--max .social-link__icon      { background: #6c5ce7; }
.social-link--telegram .social-link__icon { background: #229ed9; }
.social-link--whatsapp .social-link__icon { background: #25d366; }
.social-link--vk .social-link__icon       { background: #0077ff; }

.contacts__note {
  margin: 0;
  font-size: 14px;
  color: var(--c-muted);
}

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

/* Мобильная адаптация */
@media (max-width: 480px) {
  .contacts { padding: 32px 12px; }
  .contact-card { padding: 20px; }
  .social-link { padding: 14px; }
}



/* ===== Секция лицензии ===== */
.license-section {
  padding: 48px 0 64px;
}

.license-section__head {
  max-width: 760px;
  margin-bottom: 36px;
}

.license-section__title {
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
}

.license-section__lead {
  font-size: 17px;
  color: #5f6b7a;
  margin: 0;
}

/* ===== Сетка ===== */
.license-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* ===== Фото лицензии ===== */
.license-photo {
  margin: 0;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(31, 41, 51, 0.08);
  padding: 20px;
  position: sticky;
  top: 24px;
}

.license-photo__frame {
  position: relative;
  display: block;
  width: 100%;
  /* Ключевое: фиксируем пропорцию блока под фото 1491x1043 (~1.43) */
  aspect-ratio: 1491 / 1043;
  max-height: 520px;      /* ограничиваем высоту, чтобы блок не был огромным */
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid #e3e8ef;
  cursor: zoom-in;
  padding: 0;
  line-height: 0;
}

.license-photo__frame img {
  display: block;
  width: 100%;
  height: 100%;
  /* contain — фото целиком вписывается, без обрезки; cover — заполняет с обрезкой */
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.license-photo__frame:hover img {
  transform: scale(1.02);
}

.license-photo__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 90, 168, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  line-height: 1.2;
  pointer-events: none;
}

.license-photo__badge svg {
  flex: 0 0 auto;
}

.license-photo__caption {
  margin: 16px 0 0;
  font-size: 14px;
  color: #5f6b7a;
  text-align: center;
}

/* ===== Текстовый блок ===== */
.license-text {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(31, 41, 51, 0.08);
  padding: 28px 28px 32px;
}

.license-text h2 {
  font-size: 20px;
  margin: 0 0 14px;
}

.license-text p {
  margin: 0 0 14px;
  color: #3c4654;
}

.license-text p:last-child {
  margin-bottom: 0;
}

.license-text ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: grid;
  gap: 10px;
}

.license-text li {
  position: relative;
  padding-left: 28px;
  color: #3c4654;
}

.license-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1e5aa8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.license-text__note {
  margin-top: 20px;
  padding: 16px 18px;
  background: #f0f6ff;
  border-left: 4px solid #1e5aa8;
  border-radius: 8px;
  font-size: 14px;
  color: #5f6b7a;
}

/* ===== Лайтбокс ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 35, 0.88);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ===== Адаптив ===== */
@media (max-width: 860px) {
  .license-grid {
    grid-template-columns: 1fr;
  }
  .license-photo {
    position: static;
  }
  .license-section {
    padding: 32px 0 48px;
  }
  .license-text {
    padding: 24px 20px;
  }
  .license-photo__frame {
    max-height: none; /* на мобилке пусть пропорция сама определяет высоту */
  }
}