/*Шапка сайта*/

.btn,
.btn--primary {
    text-decoration: none; /* Убираем подчеркивание */
    display: inline-flex;  /* Чтобы ссылка корректно выравнивалась как кнопка */
    align-items: center;
    justify-content: center;
}

html {
    scroll-behavior: smooth;
}

#about,
#cta {
    scroll-margin-top: 80px;
}

/* Базовые сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #121212;
    color: #FFFFFF;
    overflow-x: hidden;
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    padding: 13px 26px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: #20B2AA;
    color: #000000;
}

.btn--primary:hover {
    background-color: #00E5D1;
    box-shadow: 0 0 18px rgba(0, 229, 209, 0.4);
}

.btn--outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(32, 178, 170, 0.5);
    color: #20B2AA;
    backdrop-filter: blur(5px);
}

.btn--outline:hover {
    background: rgba(32, 178, 170, 0.15);
    border-color: #00E5D1;
    color: #00E5D1;
}

/* Модальное окно примера отчета */
.report-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.report-modal.is-open {
    display: flex;
}

.report-modal:target {
    display: flex;
}

.report-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
}

.report-modal__dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 38px;
    border: 1px solid rgba(32, 178, 170, 0.5);
    border-radius: 16px;
    background: #121212;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.report-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: transparent;
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.report-modal__close::before,
.report-modal__close::after {
    content: '';
    position: absolute;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: #FFFFFF;
}

.report-modal__close::before {
    transform: rotate(45deg);
}

.report-modal__close::after {
    transform: rotate(-45deg);
}

.report-modal__eyebrow,
.company-eyebrow {
    color: #20B2AA;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.report-modal__title {
    margin: 8px 0 24px;
    color: #FFFFFF;
    font-size: 28px;
}

.report-modal__countries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.report-country {
    padding: 18px 12px;
    border: 1px solid rgba(32, 178, 170, 0.4);
    border-radius: 10px;
    background: rgba(32, 178, 170, 0.08);
    color: #FFFFFF;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.report-country:hover,
.report-country.is-active {
    border-color: #20B2AA;
    background: #20B2AA;
    color: #000000;
}

.report-modal__viewer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.report-modal__viewer h3 {
    margin-bottom: 14px;
    color: #FFFFFF;
    font-size: 18px;
}

.report-modal__video {
    display: block;
    width: 100%;
    min-height: 180px;
    border-radius: 10px;
    background: #000000;
}

.report-modal__note {
    margin-top: 10px;
    color: #888888;
    font-size: 12px;
    line-height: 1.4;
}

/* Отдельная страница о компании */
.company-page {
    min-height: 100vh;
    background: #000000;
}

.company-hero {
    padding: 120px 0 70px;
    background: radial-gradient(circle at 80% 20%, rgba(32, 178, 170, 0.12), transparent 35%), #000000;
}

.company-back {
    display: inline-block;
    margin-bottom: 48px;
    color: #AAAAAA;
    font-size: 14px;
    text-decoration: none;
}

.company-back:hover {
    color: #20B2AA;
}

.company-title {
    max-width: 800px;
    margin: 8px 0 18px;
    color: #FFFFFF;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1;
    text-transform: uppercase;
}

.company-intro {
    max-width: 650px;
    color: #CCCCCC;
    font-size: 18px;
    line-height: 1.6;
}

.company-section {
    padding: 60px 0;
}

.company-section--tight {
    padding-top: 24px;
}

.company-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.how-to-buy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.how-to-buy-page .how-to-buy-step:last-child {
    grid-column: 1 / -1;
}

.company-inline-link {
    color: #20B2AA;
    text-decoration: none;
    white-space: nowrap;
}

.company-inline-link:hover {
    color: #00E5D1;
}

.company-panel,
.office-panel,
.requisites-grid {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: #121212;
}

.company-panel {
    padding: 36px;
}

.document-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: #121212;
}

.document-card h2 {
    margin: 10px 0 18px;
    color: #FFFFFF;
    font-size: 30px;
}

.document-card p {
    max-width: 680px;
    margin-top: 14px;
    color: #AAAAAA;
    line-height: 1.65;
}

.company-panel h2,
.company-section-heading h2,
.office-panel h2 {
    margin: 10px 0 18px;
    color: #FFFFFF;
    font-size: 30px;
}

.company-panel p,
.office-panel p {
    margin-top: 14px;
    color: #AAAAAA;
    line-height: 1.65;
}

.company-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding: 0;
    color: #CCCCCC;
    list-style: none;
}

.company-list li::before {
    content: '01';
    display: inline-block;
    width: 30px;
    color: #20B2AA;
    font-weight: 700;
}

.company-list li:nth-child(2)::before { content: '02'; }
.company-list li:nth-child(3)::before { content: '03'; }
.company-list li:nth-child(4)::before { content: '04'; }

.company-section-heading {
    margin-bottom: 24px;
}

.requisites-grid {
    overflow: hidden;
}

.requisite-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.requisite-row:last-child {
    border-bottom: 0;
}

.requisite-row span {
    color: #777777;
}

.requisite-row strong {
    color: #FFFFFF;
    font-weight: 600;
    text-align: right;
}

.office-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 36px;
}

.company-footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777777;
}

.company-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.company-footer a {
    color: #20B2AA;
    text-decoration: none;
}

/* Исходная шапка */
header {
  position: fixed; /* Фиксируем шапку */
  top: 0;
  left: 0;
  width: 100%;
    min-height: 70px;
  z-index: 1000; /* Чтобы шапка была поверх остальных элементов */
    background: rgba(0, 0, 0, 0.92); /* Черно-прозрачный фон в стиле сайта */
  backdrop-filter: blur(10px); /* Эффект размытия фона под шапкой (очень круто смотрится на мобилках) */
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease; /* Плавность анимации для выплывания */
}

/* При скролле вниз скрываем шапку */
.header--hidden {
    transform: translateY(-100%);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.logo {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 1.5px;
}

.nav {
    display: flex;
    gap: 30px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__link {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: #20B2AA;
}

.nav__link--hub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 10px;
    background: #20B2AA;
    color: #111;
    font-weight: 800;
    white-space: nowrap;
}

.nav__link--hub:hover { color: #111; background: #47c7bf; }

/* Первый экран (Hero) */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: none;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/car-bg.png');
    background-repeat: no-repeat;
    background-position: center 85%;
    background-size: 75% auto;
    z-index: 1;
}

.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
    pointer-events: none;
}

#headlight-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    margin-top: -10px;
}

.hero__label {
    display: inline-block;
    color: #20B2AA;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hero__title {
    font-size: 50px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.hero__title-accent {
    color: #20B2AA;
    text-shadow: 0 0 25px rgba(0, 229, 209, 0.3);
}

.hero__subtitle {
    font-size: 16px;
    color: #D0D0D0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 780px;
    margin: 0 auto 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

/* Карточки доказательств экспертности */
.hero__proofs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.proof-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 16px 12px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.proof-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 209, 0.4);
}

.proof-card__val {
    font-size: 26px;
    font-weight: 900;
    color: #20B2AA;
    margin-bottom: 4px;
}

.proof-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.proof-card__desc {
    font-size: 11px;
    color: #999999;
    line-height: 1.35;
}
/* Базовый шрифт для всего сайта — Inter Regular (400) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
}

/* Заголовки — Inter SemiBold (600) */
h1, h2, h3, h4, h5, h6,
.hero__title,
.hero__title-accent {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
}

/* Кнопки — Inter SemiBold (600) */
.btn,
button {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
}

/* Пункты меню — Inter SemiBold (600) */
.nav__link,
.logo {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
}

/* Заголовки и цифры в карточках/преимуществах — Inter SemiBold (600) */
.proof-card__val,
.proof-card__title,
.stat-item__num {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
}

/* Основной описательный текст — Inter Regular (400) */
p,
.hero__subtitle,
.proof-card__desc,
.stat-item__text {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
}
/* --- Секция НАШИ ПРЕИМУЩЕСТВА --- */
.why-us {
    padding: 80px 0;
    background-color: #000000;
}

.why-us__title {
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    margin-bottom: 35px;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    position: relative;
    height: 490px; /* Уменьшили высоту карточки, срезав пустоту сверху */
    border-radius: 16px;
    overflow: hidden;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    border-color: rgba(32, 178, 170, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
}

/* Сдвигаем картинку ближе к верхнему краю */
.why-card__img {
    position: absolute;
    top: -15px; /* Подтянули графику выше */
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    z-index: 0;
}

/* Градиент затемняет нижнюю треть карточки, не трогая верх с машиной */
.why-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.2) 45%, 
        rgba(0, 0, 0, 0.9) 75%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 1;
}

/* Текстовый блок снизу с фиксированной высотой */
.why-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Фиксируем высоту текстовой зоны */
    z-index: 2;
    padding: 0 20px 28px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.why-card__title {
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    color: #FFFFFF;
    letter-spacing: 0.8px;
    line-height: 1.3;
    height: 48px; /* Выделенный блок под заголовок */
    display: flex;
    align-items: center; /* Центрирует однострочные заголовки по вертикали (+8px вниз) */
    justify-content: center;
    margin-bottom: 10px;
}

.why-card__desc {
    font-size: 13px;
    font-weight: 400;
    color: #CCCCCC;
    line-height: 1.45;
    margin: 0 auto;
    
    /* Автоматически балансирует строки и убирает одинокие слова в конце */
    text-wrap: pretty; 
}

@media (max-width: 992px) {
    .why-us__grid {
        grid-template-columns: 1fr;
    }
    .why-card {
        height: 500px;
    }
}

/* --- Секция КАК МЫ РАБОТАЕМ --- */
.how-it-works {
    padding: 100px 0;
    background-color: #000000;
}

.how-it-works__title {
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    margin-bottom: 45px;
}

.how-it-works__wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
    align-items: stretch;
}

/* Левая колонка с фоновым авто */
.how-it-works__promo {
    position: relative;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works__promo-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.how-it-works__promo-img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Правая колонка — списки карточек */
.how-it-works__steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateX(6px);
    border-color: rgba(32, 178, 170, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Цифра шага */
.step-card__number {
    font-size: 24px;
    font-weight: 700;
    color: #20B2AA; /* Наш акцентный бирюзовый */
    background: rgba(32, 178, 170, 0.1);
    border: 1px solid rgba(32, 178, 170, 0.25);
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-card__content {
    flex-grow: 1;
}

.step-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.step-card__desc {
    font-size: 13px;
    color: #AAAAAA;
    line-height: 1.45;
    margin: 0;
}

.step-card__desc a {
    color: #20B2AA;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.step-card__desc a:hover {
    color: #00E5D1;
}

/* Адаптив для планшетов и телефонов */
@media (max-width: 992px) {
    .how-it-works__wrapper {
        grid-template-columns: 1fr;
    }
    .how-it-works__promo {
        min-height: 300px;
    }
}

/* --- Секция О НАС --- */
.about {
    padding: 100px 0;
    background-color: #000000;
}

.about__title {
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    margin-bottom: 45px;
}

.about__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.about__content {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about__lead {
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.5;
    margin-bottom: 20px;
}

.about__text {
    font-size: 14px;
    color: #AAAAAA;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item__num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #20B2AA;
    margin-bottom: 4px;
}

.stat-item__label {
    font-size: 12px;
    color: #888888;
}

.about__contacts-info p {
    font-size: 14px;
    color: #CCCCCC;
    margin: 6px 0;
}

.about__contacts-info a {
    color: #20B2AA;
    text-decoration: none;
}

/* Блок с картой */
.about__map-box {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 450px;
    background: #121212;
}

.map-container {
    width: 100%;
    height: 100%;
}

/* Инвертируем стандартную светлую карту Яндекса в Dark Mode */
.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    filter: invert(90%) hue-rotate(180deg) brightness(90%) contrast(110%);
}

/* Секция заявки */
.cta-section {
    padding: 80px 0;
    background-color: #000000;
}

.cta-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* Левая карточка с фоновой картинкой (машиной) */
.calc-form_info {
    position: relative;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 420px;
    overflow: hidden;
}

/* Картинка как фон на всю карточку */
.calc-form_info__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

/* Текст поверх картинки с легким притемнением для читаемости */
.calc-form_info__content {
    position: relative;
    z-index: 2;
}

.calc-form_info__title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.calc-form_info__descr {
    font-size: 15px;
    color: #cccccc;
    line-height: 1.6;
    max-width: 90%;
}

/* Правая карточка с формой */
.calc-form-card {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calc-form_title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.calc-form_title span {
    color: #20B2AA; /* Наш бирюзовый акцент */
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px 20px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input::placeholder {
    color: #666666;
}

.form-input:focus {
    border-color: #20B2AA;
}

.form-input:user-invalid {
    border-color: #20B2AA;
}

.form-input.is-invalid {
    border-color: #20B2AA;
    box-shadow: 0 0 0 2px rgba(32, 178, 170, 0.12);
}

.form-error {
    display: none;
    padding: 9px 12px;
    border-left: 2px solid #20B2AA;
    border-radius: 0 6px 6px 0;
    background: rgba(32, 178, 170, 0.1);
    color: #9be9e4;
    font-size: 12px;
    line-height: 1.35;
}

.form-error.is-visible {
    display: block;
}

.form-textarea {
    resize: none;
    height: 90px;
}

.cta-submit-btn {
    width: 100%;
    background-color: #20B2AA !important;
    color: #000000 !important;
    font-weight: 700;
    padding: 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.cta-submit-btn:hover {
    opacity: 0.9;
}

.cta-submit-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.form-status {
    margin: 10px 0 0;
    color: #AAAAAA;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.form-status.is-success {
    color: #9be9e4;
}

.form-status.is-error {
    color: #ff9d9d;
}

.privacy-txt {
    font-size: 11px;
    color: #666666;
    text-align: center;
    line-height: 1.4;
    margin-top: 8px;
}

.privacy-txt a {
    color: #888888;
    text-decoration: underline;
}

/* Адаптив для мобильных */
@media (max-width: 992px) {
    .cta-wrapper {
        grid-template-columns: 1fr;
    }
}

/* --- СУПЕР-ФУТЕР В СТИЛЕ САКУРЫ --- */
.footer {
    background-color: #000000;
    padding: 60px 0 40px;
    color: #FFFFFF;
    font-family: inherit; /* Наследуем глобальный шрифт сайта */
}

/* Верхняя полоса с контактами */
.footer-top-bar {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 32px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.footer__logo {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF; /* Весь текст логотипа белый */
    text-decoration: none;
    letter-spacing: 1px;
}

.footer__logo span {
    color: #20B2AA; /* Зеленый только на DD */
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
}

.footer-contact-label {
    font-size: 11px;
    color: #777777;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-val {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-val:hover {
    color: #20B2AA;
}

/* Основной большой темный блок */
.footer-main-card {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 45px 40px;
    margin-bottom: 24px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer__heading {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__menu li {
    margin-bottom: 12px;
}

.footer__menu a {
    color: #999999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer__menu a:hover {
    color: #20B2AA;
}

/* Блок адресов */
.footer-address-block {
    margin-bottom: 20px;
}

.footer-address-title {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 4px 0;
}

.footer-address-sub {
    font-size: 13px;
    color: #888888;
    margin: 0;
}

/* Переключатель городов */
.city-switcher {
    display: inline-flex;
    background: #0A0A0A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 3px;
}

.city-btn {
    background: transparent;
    border: none;
    color: #888888;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-btn.active {
    background: #20B2AA;
    color: #FFFFFF;
}

/* Нижняя сетка карточек соцсетей */

.footer-bottom-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.footer-social-card {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.footer-social-card:hover {
    transform: translateY(-4px);
    border-color: rgba(32, 178, 170, 0.5);
}

.soc-title {
    display: block;
    font-size: 12px;
    color: #AAAAAA;
    line-height: 1.3;
}

.soc-sub {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
}

.soc-icon {
    align-self: flex-end;
    color: #20B2AA;
    font-size: 14px;
}

.soc-consultant {
    align-self: flex-end;
    width: 24px;
    height: 24px;
    background: #20B2AA;
    border-radius: 50%;
    display: inline-block;
}

/* Адаптив для планшетов и мобилок */
@media (max-width: 1024px) {
    .footer-top-bar {
        grid-template-columns: 1fr 1fr;
    }
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-top-bar, .footer-bottom-grid {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

/* Обновленный стиль карточек в футере */
.footer-social-card {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 110px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.footer-social-card:hover {
    transform: translateY(-4px);
    border-color: rgba(32, 178, 170, 0.5);
}

.footer-card-content {
    display: flex;
    flex-direction: column;
}

.soc-title {
    font-size: 11px;
    color: #888888;
    line-height: 1.2;
    text-transform: uppercase;
}

.soc-sub {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.soc-handle {
    font-size: 12px;
    color: #20B2AA;
}

/* Контейнер под иконку */
.footer-icon-box {
    align-self: flex-end;
    margin-top: 8px;
}

.brand-icon {
    width: 20px;
    height: 20px;
    color: #FFFFFF;
    transition: color 0.2s;
}

.footer-social-card:hover .brand-icon {
    color: #20B2AA;
}

/* Круглое фото менеджера в последней карточке */
.footer-manager-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(32, 178, 170, 0.5);
}

.footer-manager-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-map-container {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Инвертируем стандартную карту Яндекса под темную тему сайта */
.footer-map-container iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(90%) contrast(110%);
    display: block;
}

.sub-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    font-size: 14px;
    color: #888888;
}

.sub-footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sub-footer__dev a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.sub-footer__dev a:hover {
    color: #20B2AA;
}

.sub-footer__policy a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sub-footer__policy a:hover {
    color: #ffffff;
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .sub-footer__container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Анимация въезда главного фона-машины */
.hero {
    position: relative;
    overflow: hidden; /* Обязательно, чтобы не было скролла во время движения */
}

/* Если картинка задана как тег <img> внутри хیرو */
.hero__bg, .hero img {
    animation: heroCarDrive 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Либо если она прописана через background-image в CSS секции .hero */
.hero {
    animation: heroCarDrive 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroCarDrive {
    0% {
        opacity: 0;
        transform: scale(1.08); /* Чуть приближена и скрыта */
    }
    100% {
        opacity: 1;
        transform: scale(1); /* Встает в исходный размер */
    }
}

@media screen and (max-width: 768px) {
  /* Уменьшаем логотип, чтобы он не занимал полэкрана */
  header .logo, header img, header .brand {
    max-width: 110px;
    font-size: 14px !important;
  }

  /* Делаем навигацию в шапке прокручиваемой по горизонтали, чтобы ничего не обрезалось */
  header nav, header .menu, header ul {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Скрываем скроллбар в Firefox */
  }
  
  header nav::-webkit-scrollbar {
    display: none; /* Скрываем скроллбар в Chrome/Safari */
  }

  /* Уменьшаем отступы между пунктами меню на телефоне */
  header nav a, header .menu a, header ul li {
    font-size: 13px !important;
    margin-left: 10px;
    margin-right: 10px;
  }

  /* Находим контейнер, где лежат блок «О нас» и карта, и выстраиваем их в колонку */
  .about-container, 
  .about-section, 
  .contacts-wrapper, 
  .map-block {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Делаем карточку «О нас» на всю ширину экрана */
  .about-card, 
  .about-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
  }

  /* Фиксируем карту, чтобы она не вылезала за границы экрана и нормально прогружалась */
  iframe, object, embed, .map {
    width: 100% !important;
    max-width: 100% !important;
    height: 350px !important; /* Задаем комфортную высоту для телефона */
    border-radius: 12px;
  }
}

/* Финальная адаптация для телефонов */
@media (max-width: 600px) {
    body {
        padding-top: 70px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header__container {
        min-height: 70px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo {
        font-size: 14px;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .header .btn {
        display: none;
    }

    .nav {
        position: absolute;
        top: 70px;
        left: 16px;
        right: 16px;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 8px 16px;
        background: rgba(10, 10, 10, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav__link {
        padding: 13px 0;
        font-size: 14px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav__link:last-child {
        border-bottom: 0;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        margin-right: 10px;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        min-height: 760px;
        height: auto;
        padding: 72px 0 42px;
        align-items: flex-start;
        animation: none;
    }

    .hero__bg {
        animation: none;
        background-position: center 24%;
        background-size: 128% auto;
    }

    .hero__content {
        width: 100%;
        padding: 0 16px;
        margin-top: 0;
    }

    .hero__label {
        font-size: 12px;
        line-height: 1.4;
    }

    .hero__title {
        font-size: clamp(30px, 9vw, 42px);
        line-height: 1.08;
    }

    .hero__subtitle {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .hero__actions {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 28px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__proofs {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 20px;
    }

    .proof-card {
        padding: 13px 12px;
    }

    .why-us,
    .how-it-works,
    .about {
        padding: 58px 0;
    }

    .why-us__title,
    .how-it-works__title,
    .about__title {
        font-size: 25px;
        margin-bottom: 28px;
    }

    .why-card {
        height: 410px;
    }

    .how-it-works__promo {
        min-height: 220px;
    }

    .step-card {
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .step-card__number {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .step-card__title {
        font-size: 13px;
        line-height: 1.35;
    }

    .step-card__desc {
        font-size: 12px;
    }

    .about__wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about__content {
        padding: 22px 18px;
    }

    .about__stats {
        gap: 8px;
    }

    .stat-item__num {
        font-size: 20px;
    }

    .stat-item__label {
        font-size: 11px;
        line-height: 1.35;
    }

    .about__map-box {
        min-height: 320px;
        height: 320px;
    }

    .map-container iframe {
        height: 100% !important;
        min-height: 0;
    }

    .cta-section {
        padding: 58px 0;
    }

    .calc-form_info,
    .calc-form-card {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .calc-form_info {
        min-height: 280px;
    }

    .calc-form_info__title {
        font-size: 25px;
    }

    .footer {
        padding: 42px 0 24px;
    }

    .footer-top-bar,
    .footer-main-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .footer-top-bar {
        gap: 18px;
    }

    .footer-main-card {
        padding-top: 28px;
        padding-bottom: 28px;
    }
}

/* Не сдвигать первый экран относительно фиксированной шапки */
.hero {
    animation: none;
}

@media (max-width: 600px) {
    .report-modal {
        padding: 14px;
    }

    .report-modal__dialog {
        padding: 30px 18px 20px;
    }

    .report-modal__countries {
        grid-template-columns: 1fr;
    }

    .company-hero {
        padding: 100px 0 48px;
    }

    .company-back {
        margin-bottom: 34px;
    }

    .company-intro {
        font-size: 15px;
    }

    .company-section {
        padding: 36px 0;
    }

    .company-grid {
        grid-template-columns: 1fr;
    }

    .how-to-buy-grid {
        grid-template-columns: 1fr;
    }

    .how-to-buy-page .how-to-buy-step:last-child {
        grid-column: auto;
    }

    .company-panel {
        padding: 24px 20px;
    }

    .document-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 20px;
    }

    .company-panel h2,
    .company-section-heading h2,
    .office-panel h2 {
        font-size: 24px;
    }

    .requisite-row {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 15px 18px;
    }

    .requisite-row strong {
        text-align: left;
        overflow-wrap: anywhere;
    }

    .office-panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 20px;
    }

    .company-footer .container {
        align-items: flex-start;
        flex-direction: column;
    }
}

.page-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
}

.page-modal.is-open {
    display: flex;
}

.page-modal.is-closed {
    display: none !important;
}

.page-modal:target {
    display: flex;
}

.page-modal[aria-hidden="true"]:not(:target) {
    display: none;
}

.report-modal[aria-hidden="true"]:not(:target) {
    display: none;
}

.page-modal:target,
.report-modal:target {
    display: flex;
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

.page-modal:target[aria-hidden="false"] {
    display: flex;
}

.page-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 0;
    background: transparent;
    cursor: default;
}

.page-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    height: min(86vh, 780px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(32, 178, 170, 0.5);
    border-radius: 16px;
    background: #121212;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.page-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.9);
    color: #FFFFFF;
    font-size: 24px;
    line-height: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-2px);
}

.page-modal__download {
    position: absolute;
    top: 17px;
    right: 62px;
    z-index: 1;
    padding: 8px 12px;
    border: 1px solid rgba(32, 178, 170, 0.55);
    border-radius: 6px;
    background: rgba(18, 18, 18, 0.92);
    color: #20B2AA;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.page-modal__download:hover {
    background: #20B2AA;
    color: #000000;
}

.page-modal__frame {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #FFFFFF;
}

body.modal-is-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .page-modal {
        padding: 12px;
    }

    .page-modal__dialog {
        width: 100%;
        height: calc(100dvh - 24px);
        max-height: none;
        border-radius: 12px;
    }

    .page-modal__close {
        top: 8px;
        right: 8px;
    }
}
.nav__link--disabled{position:relative;cursor:not-allowed!important;opacity:.62}
.nav__link--disabled::after{content:attr(data-tooltip);position:absolute;z-index:20;left:50%;top:calc(100% + 8px);transform:translate(-50%,-4px);padding:6px 9px;border-radius:999px;background:#151a1b;color:#fff;font-size:11px;font-weight:800;line-height:1;opacity:0;pointer-events:none;white-space:nowrap;transition:opacity .16s,transform .16s}
.nav__link--disabled:hover::after,.nav__link--disabled:focus-visible::after{opacity:1;transform:translate(-50%,0)}
