/* Подключение шрифтов (файлы лежат в папке fonts относительно корня) */
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy Black';
    src: url('fonts/Gilroy-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Основные переменные */
:root {
    --color-bg: #0b1116;
    --color-white: #ffffff;
    --color-orange: #e65a00;
    --color-orange-grad: linear-gradient(90deg, #e65a00 0%, #ff7a00 100%);
    --color-card-bg: rgba(18, 26, 33, 0.8);
    --font-main: 'Gilroy', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-white);
    font-family: var(--font-main);
    font-weight: 300; /* Используем Light как базовый */
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px 0;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo-img {
    height: 40px; /* Примерная высота, подкорректируй под свой логотип */
    width: auto;
    object-fit: contain;
}

.header__burger {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 40px;
    padding-top: 100px;
    margin-bottom: 20px;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__bg::after {
    content: none;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 10px;
    border-radius: 47px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background:
        linear-gradient(180deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 0%) 100%), rgb(0 0 0 / 30%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(9px);
    box-shadow: 0 9px 7.6px rgba(0, 0, 0, 0.88);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11.5px;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1;
    gap: 10px;
    
}

.hero__badge::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.hero__badge::after {
    content: none;
}

.hero__title {
    font-family: 'Gilroy Black', 'Gilroy', sans-serif;
    font-size: 80px;
    font-weight: 900;
    margin-top: -6px;
    margin-bottom: 4px;
    background: linear-gradient(180deg, #FFFFFF 20%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 5px;
}

.hero__subtitle {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 26px;
    max-width: 300px;
}

.accent-orange {
    color: var(--color-orange);
    font-weight: 800; /* ExtraBold для акцента */
}

/* Features */
.hero__features {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
    width: 100%;
    align-items: stretch;
    margin-bottom: 30px;
}

.hero__features-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-card {
    background: var(--color-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-height: 56px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    text-align: left;
}

.feature-card--main {
    min-height: 122px;
    align-items: center;
    padding: 16px 14px;
}

.feature-card__text {
    font-size: clamp(12px, 3.2vw, 14px);
    line-height: 1.18;
    color: var(--color-white);
    font-weight: 300;
    text-wrap: balance;
    margin: 0;
}

.feature-card--main .feature-card__text {
    max-width: 18ch;
    line-height: 1.22;
}

.hero__features-group .feature-card__text {
    font-size: clamp(11.5px, 2.9vw, 13px);
    line-height: 1.15;
}

.feature-card__text--nowrap {
    white-space: nowrap;
}

@media (max-width: 420px) {
    .hero__features {
        gap: 8px;
    }

    .hero__features-group {
        gap: 8px;
    }

    .feature-card {
        min-height: 50px;
        padding: 12px 10px;
    }

    .feature-card--main {
        min-height: 110px;
        padding: 14px 12px;
    }

    .feature-card--main .feature-card__text {
        max-width: 17ch;
    }

    .feature-card__text--nowrap {
        font-size: clamp(10.5px, 3vw, 12px);
    }
}

/* Button */
.btn {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-main);
    font-weight: 800; /* ExtraBold для кнопки */
    cursor: pointer;
    transition: transform 0.2s;
}

.btn--primary {
    background: var(--color-orange-grad);
    color: white;
    box-shadow: 0 4px 20px rgba(230, 90, 0, 0.4);
}

.btn:active {
    transform: scale(0.98);
}
/* Дополнительные переменные для светлой секции */
:root {
    --color-light-bg: #ededed; /* Светло-серый фон секции */
    --color-dark-text: #1a1a1a;
    --color-stat-bg: #131b22; /* Темный фон карточек статистики */
}

/* =========================================
   Секция "Результаты" 
   ========================================= */
.results {
    background-color: var(--color-light-bg);
    border-radius: 24px; /* Скругление всех углов */
    padding: 40px 0 50px;
    margin-top: -20px; /* Слегка наезжаем на нижнюю часть hero, если нужно */
    position: relative;
    z-index: 2; /* Поверх фона Hero */
}

.results__container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Отступы между основными блоками секции */
}

.results__title {
    font-size: 32px;
    font-weight: 800; /* ExtraBold */
    line-height: 1.1;
    color: var(--color-dark-text);
    letter-spacing: -0.5px;
}

.results__image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 5px;
}

.results__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.results__text {
    font-size: 14px;
    font-weight: 300; /* Light */
    line-height: 1.5;
    color: #333333;
    margin-bottom: 10px;
}

/* Сетка статистики */
.results__grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки одинаковой ширины */
    gap: 12px;
}

.stat-card {
    background-color: var(--color-stat-bg);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Легкая тень */
}

.stat-card__value {
    color: var(--color-orange);
    font-size: 26px;
    font-weight: 800; /* ExtraBold */
    line-height: 1;
}

.stat-card__label {
    color: rgba(255, 255, 255, 0.6); /* Полупрозрачный белый */
    font-size: 12px;
    font-weight: 300; /* Light */
    line-height: 1.3;
}

/* =========================================
   Секция "Наши услуги" 
   ========================================= */
.services {
    padding: 60px 0;
    /* Фон остается темным от body, так как мы вышли из светлой секции */
}

.services__title {
    font-size: 32px;
    font-weight: 800; /* ExtraBold */
    color: var(--color-white);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.services__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Карточка услуги */
.service-card {
    background-color: var(--color-stat-bg); /* Темный фон #131b22 */
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card__header {
    position: relative;
    padding: 24px;
    min-height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Оранжево-красный градиент поверх картинки */
.service-card__header::before {
    content: '';
    position: absolute;
    inset: 0;
    
    z-index: 1;
}

.service-card__number {
    position: relative;
    z-index: 2;
    font-size: 28px;
    font-weight: 800; /* ExtraBold */
    color: var(--color-white);
    line-height: 1;
}

.service-card__title {
    position: relative;
    z-index: 2;
    font-size: 24px;
    font-weight: 800; /* ExtraBold */
    color: var(--color-white);
    line-height: 1.1;
    margin-top: 40px; /* Отталкиваем вниз, если нужно */
}

.service-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card__text {
    font-size: 14px;
    font-weight: 300; /* Light */
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Переопределение padding для кнопки внутри карточки, если она кажется слишком массивной */
.service-card__btn {
    padding: 16px;
    font-size: 15px;
}

/* =========================================
   Секция "Этапы возврата" 
   ========================================= */
.stages {
    padding: 50px 0;
}

.stages__title {
    font-size: 32px;
    font-weight: 800; /* ExtraBold */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.stages__image {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Небольшое скругление по макету */
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
}

.stages__intro {
    font-size: 15px;
    font-weight: 300; /* Light */
    color: rgba(255, 255, 255, 0.5); /* Серый оттенок текста */
    line-height: 1.5;
    margin-bottom: 35px;
}

.stages__list {
    display: flex;
    flex-direction: column;
}

/* Элемент списка (Этап) */
.stages__item {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Разделительная линия сверху */
}

/* Последнему элементу добавляем линию снизу */
.stages__item--last {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.stages__item-header {
    display: flex;
    align-items: center; /* Выравниваем номер и заголовок по центру оси */
    gap: 12px;
    margin-bottom: 12px;
}

.stages__item-number {
    color: var(--color-orange);
    font-size: 18px;
    font-weight: 800; /* ExtraBold */
}

.stages__item-title {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 800; /* ExtraBold */
}

.stages__item-text {
    font-size: 13px;
    font-weight: 300; /* Light */
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

.stages__btn {
    margin-top: 30px;
}

/* =========================================
   Секция "Опыт и профессионализм" 
   ========================================= */
.experience {
    background-color: var(--color-light-bg); /* #ededed */
    border-radius: 24px; /* Скругления для светлого блока */
    padding: 50px 0;
    margin: 20px 0; /* Отступ от темных блоков */
}

.experience__title {
    font-size: 32px;
    font-weight: 800; /* ExtraBold */
    color: var(--color-dark-text); /* #1a1a1a */
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.experience__subtitle {
    font-size: 16px;
    font-weight: 300; /* Light */
    color: #666666; /* Серый текст по макету */
    margin-bottom: 30px;
}

.experience__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.experience__item {
    position: relative;
    padding-left: 15px;
    font-size: 14px;
    font-weight: 300;
    color: #444444;
    line-height: 1.4;
}

/* Кастомный маркер списка (точка) */
.experience__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background-color: #666666;
    border-radius: 50%;
}

/* Слайдер */
.slider {
    position: relative;
    width: 100%;
    overflow: hidden; /* Прячем слайды, выходящие за пределы */
}

.slider__track {
    display: flex;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.slider__slide {
    min-width: 100%;
    padding: 0 10px; /* Отступы по бокам слайда */
    display: flex;
    justify-content: center;
}

.slider__img {
    width: 100%;
    max-width: 320px; /* Ограничение ширины документа */
    height: auto;
    border: 8px solid var(--color-white); /* Белая рамка вокруг документа */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    cursor: zoom-in; /* Курсор лупы */
}

/* Пагинация */
.slider__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.slider__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d1d1d1; /* Серая точка */
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.slider__dot--active {
    background-color: var(--color-orange);
    transform: scale(1.2);
}

/* =========================================
   Lightbox (Модальное окно для картинок)
   ========================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Темный полупрозрачный фон */
    backdrop-filter: blur(5px);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    padding: 10px;
}

.lightbox__img {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox__img {
    transform: scale(1); /* Анимация увеличения при открытии */
}

/* =========================================
   Consultation Popup
   ========================================= */
.consultation-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.consultation-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.consultation-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 10, 0.78);
    backdrop-filter: blur(5px);
}

.consultation-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(94vw, 360px);
    border-radius: 18px;
    border: 1px solid rgba(146, 163, 176, 0.45);
    background: #131a21;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.consultation-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(18, 26, 33, 0.7);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    z-index: 3;
    cursor: pointer;
}

.consultation-modal__media {
    height: 148px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.consultation-modal__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.consultation-modal__body {
    padding: 14px 14px 18px;
}

.consultation-modal__title {
    font-size: 35px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.07;
    letter-spacing: -0.2px;
}

.consultation-modal__title-accent {
    color: var(--color-orange);
}

.contact .form-container-main {
    width: 100%;
}

.contact .form-container-main .u-inner-form {
    padding: 0 !important;
}

.contact .form-container-main .u-form-group {
    margin-bottom: 8px;
}

.contact .form-container-main .u-form-submit {
    margin-bottom: 0;
}

.contact .form-container-main .rf-form-button.submit {
    width: 100%;
    min-height: 52px;
    margin-top: 6px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: var(--color-orange-grad);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    cursor: pointer;
}

.consultation-modal__text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.35;
    margin-bottom: 12px;
    text-transform: lowercase;
}

.consultation-modal__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.consultation-modal .form-container-main {
    width: 100%;
}

.consultation-modal .form-container-main .u-inner-form {
    padding: 0 !important;
}

.consultation-modal .form-container-main .u-form-group {
    margin-bottom: 8px;
}

.consultation-modal .form-container-main .u-form-submit {
    margin-bottom: 0;
}

.consultation-modal__input {
    width: 100%;
    height: 44px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #efefef;
    padding: 0 12px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 300;
    color: #333333;
}

.consultation-modal__input::placeholder {
    color: #8a8a8a;
}

.consultation-modal__action {
    margin-top: 6px;
    padding: 14px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1.1;
}

.consultation-modal .form-container-main .rf-form-button.submit {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: var(--color-orange-grad);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
}

@media (max-width: 360px) {
    .consultation-modal__title {
        font-size: 38px;
    }

    .consultation-modal__action {
        font-size: 16px;
    }
}

/* =========================================
   Секция "Почему выбирают нас" 
   ========================================= */
.reasons {
    padding: 50px 0;
    /* Фон секции темный, наследуется от body */
}

.reasons__title {
    font-size: 32px;
    font-weight: 800; /* ExtraBold */
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.reasons__title-main {
    color: var(--color-white);
}

.reasons__title-sub {
    color: rgba(255, 255, 255, 0.4); /* Серый цвет второй строки */
}

.reasons__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Карточка преимущества */
.reason-card {
    background-color: var(--color-stat-bg); /* #131b22 */
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reason-card__header {
    display: flex;
    align-items: flex-start; /* Выравнивание по верхнему краю для многострочных заголовков */
    gap: 14px;
}

.reason-card__number {
    color: var(--color-orange);
    font-size: 20px;
    font-weight: 800; /* ExtraBold */
    line-height: 1.2;
}

.reason-card__title {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 800; /* ExtraBold */
    line-height: 1.2;
}

.reason-card__text {
    font-size: 13px;
    font-weight: 300; /* Light */
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

.reasons__btn {
    margin-top: 30px;
}

/* =========================================
   Секция "Наша команда" 
   ========================================= */
.team {
    background-color: var(--color-light-bg); /* #ededed */
    border-radius: 24px;
    padding: 50px 0;
    margin: 20px 0;
    overflow: hidden; /* Чтобы скрыть вылезающий скролл карточек */
}

.team__title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-dark-text);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.team__intro {
    font-size: 15px;
    font-weight: 300;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Контейнер для горизонтального скролла карточек */
.team__carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    /* Нативный плавный скролл с привязкой */
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Скрываем стандартный скроллбар */
}

.team__carousel::-webkit-scrollbar {
    display: none;
}

/* =========================================
   Flip Card (Карточка сотрудника)
   ========================================= */
.team-card {
    flex: 0 0 85%; /* На мобилке карточка занимает 85% ширины, чтобы было видно кусочек следующей */
    max-width: 320px;
    aspect-ratio: 3 / 4; /* Пропорции карточки */
    perspective: 1000px; /* Для 3D эффекта переворота */
    scroll-snap-align: center; /* Центрируем при свайпе */
    cursor: pointer;
}

.team-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d; /* Сохраняем 3D контекст для дочерних элементов */
}

/* Класс, который будет добавляться по клику (через JS) */
.team-card.is-flipped .team-card__inner {
    transform: rotateY(180deg);
}

.team-card__front,
.team-card__back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    -webkit-backface-visibility: hidden; /* Прячем заднюю часть при перевороте */
    backface-visibility: hidden;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ЛИЦЕВАЯ СТОРОНА */
.team-card__front {
    background-color: var(--color-stat-bg);
}

.team-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__info-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 5px;
}

.team-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: white;
}

.team-card__name {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 5px;
}

.team-card__role {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

/* ОБРАТНАЯ СТОРОНА */
.team-card__back {
    background-color: var(--color-white);
    transform: rotateY(180deg);
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.team-card__back-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    background: #ffffff;
    color: var(--color-dark-text);
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.team-card__back-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-dark-text);
    margin-right: 34px;
    margin-bottom: 10px;
}

.team-card__back-role {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--color-orange);
    color: var(--color-dark-text);
    font-size: 11px;
    border-radius: 20px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.team-card__scroll-content {
    flex-grow: 1;
    overflow-y: auto; /* Включаем вертикальный скролл */
    margin-top: 4px;
    padding: 6px 12px 8px 2px;
}

/* Кастомный оранжевый скроллбар для текста внутри карточки */
.team-card__scroll-content::-webkit-scrollbar {
    width: 4px;
}
.team-card__scroll-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.team-card__scroll-content::-webkit-scrollbar-thumb {
    background: var(--color-orange);
    border-radius: 4px;
}

.team-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.team-card__list li {
    font-size: 12px;
    font-weight: 300;
    color: #333333;
    position: relative;
    padding-left: 12px;
    line-height: 1.4;
}

.team-card__text {
    margin: 0;
    font-size: 12px;
    font-weight: 300;
    color: #333333;
    line-height: 1.45;
}

.team-card__text-accent {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-dark-text);
}

.team-card__scroll-content h4,
.team-card__scroll-content p,
.team-card__scroll-content ul {
    margin: 0;
}

.team-card__scroll-content .mt-10 {
    margin-top: 10px;
}

.team-card__scroll-content .mb-10 {
    margin-bottom: 10px;
}

.team-card__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-dark-text);
}

/* =========================================
   Секция "Наши партнёры" 
   ========================================= */
.partners {
    padding: 50px 0;
}

.partners__wrapper {
    background-color: var(--color-light-bg, #ededed); /* Светлый фон плашки */
    border-radius: 24px;
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Легкая тень под блоком */
}

.partners__title {
    font-size: 32px;
    font-weight: 800; /* ExtraBold */
    color: var(--color-dark-text, #1a1a1a);
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.partners__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 12px; /* Отступ между ячейками */
}

.partners__item {
    background-color: #e8e8e8; /* Чуть темнее подложки для контраста */
    border-radius: 12px;
    aspect-ratio: 1 / 1; /* Строгий квадрат */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    /* Эффект объемной вдавленности (Neumorphism) из макета */
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.08), 
        inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.partners__img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    /* Лайфхак: если логотипы будут с белым фоном (jpg), 
       multiply сделает белый цвет прозрачным, сливая его с серым фоном ячейки */
    mix-blend-mode: multiply; 
}
/* =========================================
   Секция "Почему нам доверяют" (Аккордеон)
   ========================================= */
.trust {
    padding: 50px 0;
    /* Фон секции темный, наследуется от body */
}

.trust__title {
    font-size: 32px;
    font-weight: 800; /* ExtraBold */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.trust__accordion {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Расстояние между карточками */
}

.accordion-item {
    background-color: #171d24; /* Чуть светлее основного фона, как на макете */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05); /* Легкая рамка для объема */
    overflow: hidden; /* Важно для обрезки выезжающего контента */
}

.accordion-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    user-select: none; /* Запрещаем выделение текста при двойном клике */
    -webkit-tap-highlight-color: transparent; /* Убираем синюю подсветку на мобильных */
}

.accordion-item__title {
    font-size: 18px;
    font-weight: 800; /* ExtraBold */
    color: var(--color-white);
    padding-right: 15px; /* Чтобы длинный текст не наезжал на кнопку */
}

/* Квадратная кнопка с иконкой */
.accordion-item__toggle {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05); /* Полупрозрачный фон */
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Рисуем "Плюс" на чистом CSS (минус + вертикальная палочка) */
.accordion-item__icon {
    position: relative;
    width: 14px;
    height: 2px;
    background-color: var(--color-orange);
    border-radius: 2px;
}

.accordion-item__icon::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 6px;
    width: 2px;
    height: 14px;
    background-color: var(--color-orange);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* При открытии аккордеона вертикальная палочка исчезает (получается минус) */
.accordion-item.is-open .accordion-item__icon::after {
    transform: scaleY(0);
    opacity: 0;
}

/* Трюк с CSS Grid для плавной анимации высоты (от 0 до авто) */
.accordion-item__content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.accordion-item.is-open .accordion-item__content {
    grid-template-rows: 1fr;
}

.accordion-item__text {
    overflow: hidden; /* Обязательное условие для grid-анимации */
    padding: 0 20px;
    font-size: 13px;
    font-weight: 300; /* Light */
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

/* Добавляем нижний паддинг только когда открыто */
.accordion-item.is-open .accordion-item__text {
    padding-bottom: 20px;
}
/* =========================================
   Секция "Форма заявки" 
   ========================================= */
.contact {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.contact__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Затемняющий градиент поверх статуи Фемиды, чтобы текст лучше читался */
.contact__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 17, 22, 0.9) 0%, rgba(11, 17, 22, 0.5) 50%, rgba(11, 17, 22, 0.95) 100%);
}

.contact__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.contact__title {
    font-size: 28px;
    font-weight: 800; /* ExtraBold */
    color: var(--color-white);
    margin-bottom: 30px;
    line-height: 1.2;
    text-transform: uppercase;
}

.contact__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 250px; /* Большой отступ, чтобы было видно саму статую */
}

.contact__list-item {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.4;
}

/* Кастомный градиентный маркер списка */
.contact__list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc600 0%, #ff3b00 100%);
    box-shadow: 0 0 8px rgba(255, 90, 0, 0.5); /* Свечение */
}

.contact__form-block {
    position: relative;
    z-index: 2;
}

.contact__form-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 20px;
    text-align: left;
}

/* Форма */
.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form__group {
    position: relative;
    width: 100%;
}

.form__input {
    width: 100%;
    background-color: rgba(33, 38, 43, 0.85); /* Полупрозрачный темный фон */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Тонкая светлая рамка */
    border-radius: 8px;
    padding: 16px 20px;
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s;
}

.form__input:focus {
    border-color: var(--color-orange);
}

/* Кастомный плейсхолдер с красной звездочкой */
.form__label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 300;
    pointer-events: none; /* Пропускает клики сквозь себя на input */
    transition: opacity 0.2s;
}

.form__asterisk {
    color: #ff3b00; /* Красная звездочка */
}

/* Прячем наш кастомный плейсхолдер, если инпут в фокусе или в него что-то вписано */
.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
    opacity: 0;
}

/* Кнопка */
.form__submit {
    background: linear-gradient(90deg, #ff2a00 0%, #ffc600 100%);
    color: var(--color-white);
    text-transform: uppercase;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
    font-weight: 800; /* Делаем текст на кнопке жирнее */
}

/* =========================================
   Футер (Подвал)
   ========================================= */
.footer {
    background-color: #0b1116; /* Темный фон, как у body */
    padding: 40px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Легкая граница сверху, если нужна */
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.footer__logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* Модификатор кнопки для футера (текст в две строки) */
.footer__btn {
    padding: 12px 20px;
    font-size: 13px;
    line-height: 1.2;
    max-width: 180px;
}

.footer__main {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 20px;
    margin-bottom: 30px;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__text {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.4;
}

.footer__label {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4); /* Серый цвет для подписей */
    display: block;
    line-height: 1.4;
}

.footer__link {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-white);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}

.footer__link:hover {
    color: var(--color-orange);
}

.footer__block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Утилиты для отступов (если еще не добавлены) */
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }

.footer__divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__company {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-white);
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px; /* Отступы между ссылками */
}

.footer__legal-link {
    font-size: 11px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__legal-link:hover {
    color: var(--color-white);
}