/* =====================================================================
   Бизнес Партнер – основной CSS
   Раздел 2: верстка главной страницы
   ===================================================================== */

/* ===== Шрифты (локально, без внешних CDN) ===== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Дизайн-переменные ===== */
:root {
    --blue: #3498db;
    --yellow: #ffde03;
    --yellow-hover: #f2d200;
    --gray-bg: #f1f1f1;
    --dark: #272727;
    --white: #ffffff;
    --muted: #5f6672;
    --border: #e3e6ea;
}

/* ===== Сброс и базовые стили ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Manrope', 'Inter', Arial, sans-serif;
    line-height: 1.2;
    color: var(--dark);
    margin: 0 0 16px;
}

p {
    margin: 0 0 16px;
}

a {
    color: var(--blue);
    text-decoration: none;
}

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

/* Якорные секции с учетом фиксированной шапки */
[id] {
    scroll-margin-top: 88px;
}

/* ===== Контейнер и секции ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: var(--blue);
    margin: 0 0 40px;
}

.section-title--left {
    text-align: left;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 4px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn--primary {
    background: var(--yellow);
    color: var(--dark);
    border-color: var(--yellow);
}

.btn--primary:hover {
    background: var(--yellow-hover);
    border-color: var(--yellow-hover);
}

.btn--outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn--outline:hover {
    background: var(--blue);
    color: var(--white);
}

.btn--outline-yellow {
    background: transparent;
    color: var(--yellow);
    border-color: var(--yellow);
}

.btn--outline-yellow:hover {
    background: var(--yellow);
    color: var(--dark);
}

/* ===== Шапка ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--blue);
    transition: box-shadow .25s ease;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 80px;
    transition: height .25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.site-header.is-scrolled .site-header__inner {
    height: 64px;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header__logo img {
    width: 200px;
    height: auto;
}

/* --- Навигация --- */
.site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.site-nav__link {
    display: inline-block;
    padding: 8px 0;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s ease;
}

.site-nav__link:hover {
    color: rgba(255, 255, 255, .75);
}

.site-nav__item {
    position: relative;
}

.site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    white-space: nowrap;
    transition: color .2s ease;
}

.site-nav__toggle:hover {
    color: rgba(255, 255, 255, .75);
}

.site-nav__chevron {
    transition: transform .2s ease;
}

.site-nav__item.is-open .site-nav__chevron {
    transform: rotate(180deg);
}

.site-nav__dropdown {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 260px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 10;
}

.site-nav__item:hover .site-nav__dropdown,
.site-nav__item.is-open .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--blue);
    font-size: 15px;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}

.site-nav__dropdown a:hover {
    background: var(--gray-bg);
    color: #2c87c9;
}

/* --- Действия шапки --- */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.site-header__phone {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease;
}

.site-header__phone:hover {
    color: rgba(255, 255, 255, .75);
}

.site-header__cta {
    white-space: nowrap;
}

/* --- Мобильные элементы --- */
.site-header__phone-icon {
    display: none;
    margin-left: auto;
    color: var(--white);
}

.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.site-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.site-header__burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header__burger.is-active span:nth-child(2) {
    opacity: 0;
}

.site-header__burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Первый экран ===== */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    color: var(--white);
    background-color: #3a3f47;
    background-image:
        linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)),
        linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, 0) 70%),
        url('../img/hero.webp');
    background-size: cover;
    background-position: center;
}

.hero__content {
    max-width: 720px;
}

.hero__title {
    font-family: 'Manrope', sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--yellow);
    margin-bottom: 24px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.hero__subtitle {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 12px;
}

.hero__note {
    font-size: 15px;
    color: rgba(255, 255, 255, .92);
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__actions .btn {
    padding-left: 45px;
    padding-right: 45px;
}

/* ===== Лента преимуществ ===== */
.advantages {
    padding: 72px 0;
    background: var(--gray-bg);
}

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

.advantage {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 26px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: box-shadow .2s ease, transform .2s ease;
}

.advantage:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.advantage__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #eaf4fd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage__icon img {
    width: 32px;
    height: 32px;
}

.advantage__title {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.advantage__text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

/* ===== Услуги ===== */
.services {
    padding: 72px 0;
}

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

.service-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: box-shadow .25s ease, transform .25s ease;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    transform: translateY(-4px);
}

.service-card__title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card__title a {
    color: var(--blue);
}

.service-card__title a:hover {
    text-decoration: underline;
}

.service-card__subtitle {
    flex-grow: 1;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--muted);
}

.service-card__more {
    font-size: 15px;
    font-weight: 600;
    color: var(--blue);
}

.service-card__more:hover {
    text-decoration: underline;
}

/* ===== Условия сотрудничества ===== */
.conditions {
    padding: 72px 0;
    background: var(--gray-bg);
}

.conditions__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
}

.conditions__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 17px;
    font-weight: 500;
}

.conditions__item img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== О компании ===== */
.about {
    padding: 72px 0;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about__text {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 24px;
}

.about__media {
    position: relative;
}

.about__media::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translate(16px, 16px);
    border: 3px solid var(--yellow);
    border-radius: 8px;
    z-index: -1;
}

.about__media img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .1);
}

/* ===== Форма расчета ===== */
.calc {
    padding: 72px 0;
    background: var(--gray-bg);
}

.calc__subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 640px;
    margin: -24px auto 40px;
}

.calc__form {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

/* Форма расчёта: Имя/Email слева (полширины), загрузка файлов справа */
.calc__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.calc__fields {
    display: flex;
    flex-direction: column;
}

.calc__fields .form-row:last-child {
    margin-bottom: 0;
}

.calc__files {
    display: flex;
    flex-direction: column;
}

.calc__files .form-label {
    margin-bottom: 8px;
}

.calc__files .dropzone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.calc__files .dropzone__icon {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.calc__files .dropzone__types {
    line-height: 1.3;
}

/* Пустой список файлов не должен добавлять высоту */
.calc__files .dropzone__files:empty {
    display: none;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.form-required {
    color: #e74c3c;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    color: var(--dark);
    background: var(--white);
    transition: border-color .2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--blue);
}

.form-textarea {
    resize: vertical;
    min-height: 96px;
}

.dropzone {
    display: block;
    padding: 32px 24px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    text-align: center;
    color: var(--muted);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.dropzone:hover {
    border-color: var(--blue);
    background: #f6faff;
}

.dropzone__icon {
    color: var(--blue);
    margin-bottom: 8px;
}

.dropzone__text {
    font-size: 15px;
    margin-bottom: 4px;
}

.dropzone__types {
    font-size: 13px;
    color: var(--muted);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
}

.form-check input {
    margin-top: 3px;
    flex-shrink: 0;
}

.smart-captcha {
    margin: 16px 0;
    min-height: 100px;
}

.form-submit {
    width: 100%;
}

/* ===== Темный финальный блок ===== */
.cta {
    padding: 64px 0;
    background: var(--dark);
}

.cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta__text {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
    margin: 0;
}

/* Ширина кнопки CTA — как у кнопок первого экрана */
.cta__inner .btn {
    padding-left: 45px;
    padding-right: 45px;
}

/* Светлая плашка CTA (белый фон, тёмный текст) */
.cta--light {
    background: var(--white);
}
.cta--light .cta__text {
    color: var(--blue);
}

/* ===== Подвал ===== */
.site-footer {
    padding: 48px 0 24px;
    background: var(--dark);
    color: #cbd2d9;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 32px;
}

.site-footer__col h3 {
    font-family: 'Manrope', sans-serif;
    color: var(--white);
    font-size: 16px;
    margin-bottom: 14px;
}

.site-footer__col a,
.site-footer__col span {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.3;
    color: #cbd2d9;
}

.site-footer__col a:hover {
    color: var(--white);
}

.site-footer__bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    text-align: center;
    font-size: 14px;
    color: #9aa5b1;
}

@media (max-width: 992px) {
    .site-footer__grid {
        grid-template-columns: repeat(3, 1fr);
        justify-content: stretch;
    }
}

@media (max-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
        gap: 28px;
    }
}

/* ===== Кнопка «наверх» ===== */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
    z-index: 900;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: #2c87c9;
}

/* ===== Анимации появления ===== */
.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .25s ease, transform .25s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Адаптив ===== */
@media (max-width: 992px) {
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .site-nav {
        gap: 18px;
    }

    .site-header__cta {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-header__actions {
        display: none;
    }

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

    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .site-header__phone-icon {
        display: inline-flex;
    }

    .site-header__burger {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 12px 20px 24px;
        background: var(--blue);
        border-top: 1px solid rgba(255, 255, 255, .2);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
        display: none;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav__link,
    .site-nav__toggle {
        padding: 14px 0;
        font-size: 18px;
    }

    .site-nav__item {
        border-bottom: 1px solid rgba(255, 255, 255, .2);
    }

    .site-nav__dropdown {
        position: static;
        min-width: 0;
        padding: 0 0 8px;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .site-nav__item.is-open .site-nav__dropdown {
        display: block;
    }

    .site-nav__dropdown a {
        padding: 10px 0 10px 16px;
        font-size: 16px;
        color: var(--white);
    }

    .hero {
        min-height: 0;
        padding: 110px 0 56px;
    }

    .hero__title {
        font-size: 30px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 28px;
    }

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

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

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

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        min-height: 48px;
    }

    .hero__actions .btn {
        width: auto;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 26px;
    }

    .container {
        padding: 0 16px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .calc__form {
        padding: 24px 20px;
    }
}

/* ===== Внутренние страницы (раздел 3) ===== */

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease;
}

.breadcrumbs a:hover {
    color: var(--blue);
}

.breadcrumbs__sep {
    color: #b6bcc4;
}

.breadcrumbs__current {
    color: var(--dark);
}

/* Компактный герой */
.page-hero {
    padding: 128px 0 48px;
    background: var(--gray-bg);
}

.page-hero__title {
    font-family: 'Manrope', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--blue);
    margin: 16px 0 12px;
}

.page-hero__subtitle {
    max-width: 720px;
    margin: 0 0 24px;
    font-size: 18px;
    color: var(--muted);
}

/* Секции контента */
.content-section {
    padding: 56px 0;
}

.content-section--gray {
    background: var(--gray-bg);
}

.content-section h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--blue);
    margin: 0 0 20px;
}

.content-section p {
    max-width: 760px;
}

/* Форматирование для текста, введённого через админку (обычный HTML) */
.content-section ul:not(.checklist):not(.why-list):not(.contacts-list),
.content-section ol {
    margin: 0 0 16px;
    padding-left: 22px;
    max-width: 760px;
}

.content-section ul:not(.checklist):not(.why-list):not(.contacts-list) li,
.content-section ol li {
    margin-bottom: 6px;
}

.content-section h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 22px 0 12px;
}

.content-section strong,
.content-section b {
    font-weight: 700;
}

.lead {
    font-size: 18px;
    color: var(--muted);
}

/* Список с галочками */
.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    max-width: 760px;
}

.checklist li {
    position: relative;
    padding-left: 34px;
    font-size: 16px;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: url('../img/icons/check.svg') no-repeat center / contain;
}

/* Список «Почему мы» */
.why-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    max-width: 760px;
}

.why-list li {
    position: relative;
    padding-left: 28px;
    font-size: 16px;
}

.why-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
}

/* Таблица цен */
.price-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}

.price-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Первый столбец — шире, остальные распределены по ширине равномерно */
.price-table th:first-child,
.price-table td:first-child {
    width: 40%;
}

.price-table th,
.price-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.price-table th {
    background: var(--gray-bg);
    font-weight: 700;
    font-size: 15px;
}

.price-table td {
    font-size: 15px;
}

/* Все столбцы, кроме первого, — по центру (заголовки и ячейки) */
.price-table th:not(:first-child),
.price-table td:not(:first-child) {
    text-align: center;
}

/* Вертикальные разделители: все столбцы, включая правую внешнюю границу */
.price-table th,
.price-table td {
    border-right: 1px solid var(--border);
}

.price-table__merged {
    text-align: center;
}

.price-note {
    font-size: 14px;
    color: var(--muted);
}

/* Контакты */
.contacts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 560px;
}

.contacts-list li {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
}

.contacts-list__label {
    width: 140px;
    flex-shrink: 0;
    color: var(--muted);
    font-weight: 500;
}

.contacts-list a {
    color: var(--blue);
    font-weight: 600;
}

.contacts-list__action {
    margin-top: 28px;
}

/* Шаги */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    padding: 24px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.step__title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step__text {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

/* Реквизиты */
.requisites {
    margin: 0;
    max-width: 760px;
}

.requisites__row {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.requisites__row dt {
    width: 240px;
    flex-shrink: 0;
    color: var(--muted);
    font-weight: 500;
}

.requisites__row dd {
    margin: 0;
    font-weight: 600;
}

/* Текстовая колонка (политики) */
.text-column {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.text-column h2 {
    font-size: 24px;
    margin: 32px 0 14px;
}

.text-column h2:first-child {
    margin-top: 0;
}

.text-column p {
    margin-bottom: 12px;
}

/* 404 */
.not-found {
    padding: 120px 0 80px;
    text-align: center;
}

.not-found__title {
    font-family: 'Manrope', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 16px;
}

.not-found__text {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 24px;
}

.not-found__links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.not-found__links a {
    font-weight: 600;
}

/* ===== Адаптив внутренних страниц ===== */
@media (max-width: 768px) {
    .page-hero {
        padding: 110px 0 40px;
    }

    .page-hero__title {
        font-size: 28px;
    }

    .content-section {
        padding: 40px 0;
    }

    .content-section h2 {
        font-size: 22px;
    }

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

    .requisites__row {
        flex-direction: column;
        gap: 4px;
    }

    .requisites__row dt {
        width: auto;
    }

    .contacts-list li {
        flex-direction: column;
        gap: 4px;
    }

    .contacts-list__label {
        width: auto;
    }
}

/* ===== Блок «Другие услуги» и плашка CTA (раздел 4) ===== */

.other-services {
    padding: 64px 0;
    border-top: 1px solid var(--border);
}

.other-services__title {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: var(--blue);
    margin: 0 0 40px;
}

.carousel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.carousel__track {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.carousel__track::-webkit-scrollbar {
    display: none;
}

.carousel__card {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    text-decoration: none;
}

.carousel .service-card__title {
    color: var(--blue);
}

.service-card__text {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.5;
}

.carousel__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    transition: background-color .2s ease, color .2s ease;
}

.carousel__arrow:hover {
    background: var(--blue);
    color: var(--white);
}

.carousel__arrow.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--border);
    cursor: pointer;
    transition: background-color .2s ease;
}

.carousel__dot.is-active {
    background: var(--blue);
}

/* Плашка CTA */
.cta-bar-section {
    padding: 56px 0;
}

.cta-bar-section--gray {
    background: var(--gray-bg);
}

.cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--blue);
    border-radius: 8px;
    padding: 24px 32px;
}

.cta-bar__text {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
}

.cta-bar__btn {
    flex-shrink: 0;
    padding-left: 45px;
    padding-right: 45px;
}

@media (max-width: 992px) {
    .carousel__card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 768px) {
    .carousel__card {
        flex: 0 0 85%;
    }

    .carousel__arrow {
        display: none;
    }

    .cta-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 24px 20px;
    }

    .cta-bar__btn {
        width: 100%;
    }
}

/* ===== Статьи (раздел 6) ===== */

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

.articles-empty {
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    color: var(--dark);
    text-decoration: none;
    transition: box-shadow .25s ease, transform .25s ease;
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    transform: translateY(-4px);
}

.article-card__media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.article-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.article-card__date {
    font-size: 13px;
    color: var(--muted);
}

.article-card__title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--blue);
    margin: 0;
    line-height: 1.3;
}

/* Заголовок карточки статьи — brand-синий (перебивает .content-section h3) */
.content-section .article-card__title {
    color: var(--blue);
}

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

/* Страница статьи */
.article__date {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 12px;
}

.article__cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

.article__body {
    max-width: 800px;
    line-height: 1.7;
    font-size: 17px;
}

.article__body h2 {
    font-size: 24px;
    margin: 28px 0 14px;
}

.article__body p {
    margin-bottom: 14px;
}

.article__body ul,
.article__body ol {
    padding-left: 22px;
    margin-bottom: 14px;
}

.article__body img {
    max-width: 100%;
    height: auto;
}

/* Пагинация */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.pagination__link {
    font-weight: 600;
}

.pagination__info {
    color: var(--muted);
    font-size: 14px;
}

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

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

    .article__body {
        font-size: 16px;
    }
}

/* ===== Форма расчета (раздел 7) ===== */

.form-error {
    background: #fdecea;
    color: #e74c3c;
    border: 1px solid #f5c6c0;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.dropzone.is-dragover {
    border-color: var(--blue);
    background: #f6faff;
}

.dropzone__files {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.dropzone__file {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f6f8;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
}

.dropzone__file-name {
    flex: 1;
    word-break: break-all;
}

.dropzone__file-size {
    color: var(--muted);
    white-space: nowrap;
}

.dropzone__file-remove {
    border: none;
    background: none;
    color: #e74c3c;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.form-progress {
    margin-top: 12px;
    height: 6px;
    background: #eef1f4;
    border-radius: 3px;
    overflow: hidden;
}

.form-progress__bar {
    height: 100%;
    width: 0;
    background: var(--blue);
    transition: width .2s ease;
}

/* Всплывающее окно */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.modal__box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

.modal__text {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
}

/* ===== Cookie-баннер ===== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--dark);
    color: #cbd2d9;
    padding: 16px 20px;
    font-size: 14px;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__text {
    margin: 0;
    flex: 1;
    min-width: 220px;
}

.cookie-banner__text a {
    color: var(--yellow);
}

.cookie-banner__btn {
    flex-shrink: 0;
}









