/* --- Секция Hero --- */
.hero {
    --color-white: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.75);
    --color-btn-bg: #f2f2f2; /* Светлая кнопка как на макете */
    --color-btn-text: #1a1a1a;
    position: relative;
    width: 100%;
    min-height: 100vh; /* На всю высоту экрана */
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Фоновое изображение (замените на свое) */
    background: url('img/hero-banner.png') center/cover no-repeat;
    margin-top: 20px;
}

/* Затемнение фона для читаемости текста */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
}

/* Контейнер для контента */
.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Выравнивание по нижнему краю */
    gap: 40px;
}

/* --- Левая часть: Контент --- */
.hero__content {
    max-width: 650px;
    padding-bottom: 20px; /* Отступ снизу для визуального баланса */
}

.hero__label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.hero__title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 600; /* Тонкий шрифт */
    margin: 0 0 25px 0;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.hero__description {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0 0 40px 0;
    max-width: 480px;
}

/* Кнопка */
.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: var(--color-btn-bg);
    color: var(--color-btn-text);
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 50px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 260px;
}

.hero__button:hover {
    opacity: 0.9;
    color: var(--color-btn-text);
    text-decoration: none;
    transform: translateY(-2px);
}

.hero__button-text {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.hero__button-icon {
    transition: transform 0.3s ease;
}

.hero__button:hover .hero__button-icon {
    transform: translateX(4px);
}

/* --- Правая часть: Навигация --- */
.hero__nav {
    padding-bottom: 20px;
}

.hero__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Расстояние между пунктами */
    align-items: flex-end; /* Выравнивание по правому краю */
}

.hero__list-link {
    display: inline-block;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-white);
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.hero__list-link:hover {
    color: var(--color-text-muted);
}

/* --- Секция Corporate --- */
.corporate {
    --color-bg: #f2f2f2; /* Светло-серый фон */
    --color-text-main: #1a1a1a;
    --color-text-muted: #666666;
    padding: 120px 0;
    background-color: var(--color-bg);
}

/* --- Верхняя часть (Заголовок + Текст) --- */
.corporate__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Выравнивание по нижнему краю */
    margin-bottom: 50px;
    gap: 40px;
}

.corporate__title-group {
    flex: 0 0 auto; /* Не растягивать заголовок */
}

.corporate__label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.corporate__title {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 600; /* Тонкий шрифт */
    margin: 0;
    letter-spacing: -0.02em;
}

.corporate__info {
    max-width: 380px; /* Ограничение ширины текста справа */
    padding-bottom: 8px; /* Микро-коррекция для выравнивания */
}

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

.corporate__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.corporate__link:hover {
    color: var(--color-text-main);
}

.corporate__icon {
    transition: transform 0.3s ease;
}

.corporate__link:hover .corporate__icon {
    transform: translateX(4px);
}

/* --- Сетка карточек --- */
.corporate__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 колонок */
    gap: 15px;
}

/* --- Карточка --- */
.corporate-card {
    display: flex;
    flex-direction: column;
}

.corporate-card__image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 3; /* Квадратные картинки */
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #ddd;
    border-radius: 20px;
}

.corporate-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.corporate-card:hover .corporate-card__image {
    transform: scale(1.05);
}

.corporate-card__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 0.02em;
}

.corporate-card__text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-muted);
    margin: 0;
}

/* Общие стили для всех баннеров */
.banner-dnr {
    --color-white: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);

    position: relative;
    width: 100%;
    min-height: 650px; /* Базовая высота */
    display: flex;
    align-items: center; /* Вертикальное центрирование контента */
    overflow: hidden;
    color: var(--color-white);
}

.banner-dnr__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Градиент для читаемости текста слева */
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
}

.banner-dnr__overlay--dark {
    /* Для второго баннера затемнение чуть плотнее */
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
}

.banner-dnr__container {
    position: relative;
    z-index: 2; /* Текст поверх затемнения */
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    padding: 60px 20px;
}

.banner-dnr__content {
    max-width: 600px; /* Ограничиваем ширину текста */
}

.banner-dnr__label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.banner-dnr__title {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 600; /* Тонкий шрифт */
    margin: 0 0 25px 0;
    color: #fff;
    letter-spacing: -0.02em;
}

.banner-dnr__text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 450px;
}

/* --- Специфика БАННЕРА 1 (Атмосфера) --- */
.banner-dnr--atmosphere {
    /* Фоновое изображение (замените на свой путь) */
    background: url('https://images.unsplash.com/photo-1576013551627-0cc20b96c2a7?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
    align-items: flex-start;
}

/* --- Специфика БАННЕРА 2 (Команда) --- */
.banner-dnr--team {
    /* Фоновое изображение (замените на свой путь) */
    background: url('https://images.unsplash.com/photo-1543269865-cbf427effbad?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
}

.banner-dnr--atmosphere .banner-dnr__container {
    padding-top: 20px;
}

/* Сетка для второго баннера (Текст + Список) */
.banner-dnr__layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Выравнивание по нижнему краю */
    gap: 40px;
    width: 100%;
}

/* Список шагов */
.banner-dnr__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Расстояние между пунктами */
    min-width: 280px;
}

.banner-dnr-step {
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-dnr-step__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Круглая форма */
    color: var(--color-white);
}

.banner-dnr-step__icon::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
}

.banner-dnr-step:nth-child(1) .banner-dnr-step__icon::before {
    background: url("img/icon-story.svg") center / contain no-repeat;
}

.banner-dnr-step:nth-child(2) .banner-dnr-step__icon::before {
    background: url("img/icon-variants.svg") center / contain no-repeat;
}

.banner-dnr-step:nth-child(3) .banner-dnr-step__icon::before {
    background: url("img/icon-format.svg") center / contain no-repeat;
}

.banner-dnr-step:nth-child(4) .banner-dnr-step__icon::before {
    background: url("img/icon-org.svg") center / contain no-repeat;
}

.banner-dnr-step__text {
    font-size: 16px;
    line-height: 1.3;
    color: var(--color-white);
    margin: 0;
    opacity: 0.9;
}

/* --- Секция Pricing --- */
.pricing {
    --color-bg: #f2f2f2; /* Светло-серый фон */
    --color-text-main: #1a1a1a;
    --color-text-muted: #666666;
    --color-border: #dcdcdc; /* Цвет линий разделителей */

    padding: 120px 0;
    background-color: var(--color-bg);
}

/* Сетка: 2 колонки */
.pricing__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Левая колонка чуть уже правой */
    gap: 80px;
}

/* --- Левая колонка --- */
.pricing__header {
    max-width: 450px;
}

.pricing__label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.pricing__title {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 600;
    margin: 0 0 25px 0;
    letter-spacing: -0.02em;
}

.pricing__description {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 380px;
}

/* --- Правая колонка (Список) --- */
.pricing__list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(#dcdcdc); /* Верхняя линия */
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline; /* Выравнивание по базовой линии текста */
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border); /* Линия снизу */
}

.pricing-item__name {
    font-size: 16px;
    font-weight: 600; /* Полужирный */
    color: var(--color-text-main);
}

.pricing-item__value {
    text-align: right;
    font-size: 15px;
    color: var(--color-text-main);
    line-height: 1.3;
}

.pricing-item__prefix,
.pricing-item__suffix {
    font-size: 14px;
    color: var(--color-text-muted);
}

.pricing-item__note {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.pricing-item__value--custom {
    color: var(--color-text-muted);
    font-size: 15px;
}

/* --- Секция CTA --- */
.cta {
    --color-bg: #f2f2f2; /* Светло-серый фон */
    --color-text-main: #1a1a1a;
    --color-text-muted: #666666;
    --color-btn-bg: #1a1a1a; /* Почти черный */
    --color-btn-text: #ffffff;
    padding: 120px 0 0;
}

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

/* Сетка: 2 колонки */
.cta__grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Равные колонки */
    gap: 60px;
    align-items: flex-start; /* Выравнивание по верху */
}

/* --- Левая колонка (Текст) --- */
.cta__content {
    max-width: 500px;
}

.cta__label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.cta__title {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 600; /* Тонкий шрифт */
    margin: 0 0 30px 0;
    letter-spacing: -0.02em;
}

.cta__description {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 420px;
}

/* --- Правая колонка (Кнопка и контакты) --- */
.cta__sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Выравнивание по правому краю */
    gap: 40px;
    padding-top: 40px; /* Отступ сверху, чтобы кнопка была на уровне заголовка */
}

/* Кнопка */
.cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: var(--color-btn-bg);
    color: var(--color-btn-text);
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 50px; /* Скругленные углы */
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 280px;
}

.cta__button:hover {
    color: var(--color-btn-text);
    opacity: 0.85;
    transform: translateY(-2px);
    text-decoration: none;
}

.cta__button-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.cta__button-icon {
    transition: transform 0.3s ease;
}

.cta__button:hover .cta__button-icon {
    transform: translateX(4px);
}

/* Контакты */
.cta__contacts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start; /* Текст внутри контактов по левому краю */
    width: 100%;
    max-width: 280px; /* Ширина как у кнопки */
}

.cta-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-contact__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    flex-shrink: 0;
}

.cta-contact__text {
    font-size: 16px;
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
}

.cta-contact__text--link {
    transition: color 0.3s ease;
}

.cta-contact__text--link:hover {
    color: var(--color-text-muted);
}

/* ==================================================================
   Адаптивность (все медиа-запросы файла объединены здесь)
   ================================================================== */

@media (max-width: 1024px) {
    /* Hero */
    .hero__title {
        font-size: 42px;
    }

    .hero__container {
        align-items: flex-start; /* На планшетах выравниваем по верху */
    }

    /* Corporate */
    .corporate__grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    }

    .corporate__title {
        font-size: 36px;
    }

    .corporate__header {
        align-items: flex-start; /* На планшетах лучше выровнять по верху */
    }

    /* Banner DNR */
    .banner-dnr__title {
        font-size: 36px;
    }

    .banner-dnr__layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-dnr__steps {
        margin-top: 30px;
        min-width: auto;
        width: 100%;
        /* На планшетах можно сделать список в 2 колонки */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    /* Pricing */
    .pricing__grid {
        gap: 50px;
    }

    .pricing__title {
        font-size: 34px;
    }

    /* CTA */
    .cta__grid {
        gap: 40px;
    }

    .cta__title {
        font-size: 34px;
    }

    .cta__sidebar {
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero__container {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 50px;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__description {
        font-size: 14px;
    }

    .hero__button {
        width: 100%;
        min-width: auto;
    }

    /* На мобильных список услуг перестраивается в строку или скрывается */
    .hero__nav {
        width: 100%;
        padding-bottom: 0;
    }

    .hero__list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
        align-items: flex-start;
    }

    .hero__list-link {
        font-size: 13px;
        padding: 8px 15px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
    }

    /* Corporate */
    .corporate {
        padding: 50px 0;
    }
    .corporate__header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
        gap: 20px;
    }

    .corporate__info {
        max-width: 100%;
    }

    .corporate__grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
        row-gap: 25px;
    }

    /* Banner DNR */
    .banner-dnr {
        min-height: auto;
    }

    .banner-dnr__container {
        padding: 40px 20px;
    }

    .banner-dnr__layout {
        gap: 0;
    }

    .banner-dnr__title {
        font-size: 28px;
    }

    .banner-dnr__overlay {
        /* На мобильных затемняем сильнее, так как текст занимает весь экран */
        background: rgba(0,0,0,0.6);
    }

    .banner-dnr__steps {
        grid-template-columns: 1fr; /* В одну колонку на телефонах */
    }

    /* Pricing */
    .pricing {
        padding: 50px 0;
    }
    .pricing__grid {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 40px;
    }

    .pricing__header {
        max-width: 100%;
    }

    .pricing__title {
        font-size: 28px;
    }

    .pricing-item {
        padding: 15px 0;
    }

    /* CTA */
    .cta {
        padding: 50px 0 0;
    }

    .cta__grid {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 40px;
    }

    .cta__content {
        max-width: 100%;
    }

    .cta__title {
        font-size: 28px;
    }

    .cta__sidebar {
        align-items: flex-start; /* На мобильных выравниваем по левому краю */
        padding-top: 0;
    }

    .cta__button {
        width: 100%; /* Кнопка на всю ширину */
        min-width: auto;
    }

    .cta__contacts {
        max-width: 100%;
    }

    .formModalWrap .uk-modal-body.corp-form-feedback {
        padding: 50px 20px 30px;
    }
}

@media (max-width: 480px) {
    /* Corporate */
    .corporate__grid {
        grid-template-columns: 1fr; /* 1 колонка */
    }

    .corporate__title {
        font-size: 28px;
    }
}
