:root {
    --hero-new-dark: #0A1B2B; /* Цвет фона сайта - совпадает с основным цветом */
    /* Акцент как на всём сайте (#A64200); hover темнее — как .button:hover */
    --hero-new-orange: #A64200;
    --hero-new-orange-hover: #8B3700;
}

html {
    font-size: 16px;
}

/* Контейнер только для hero-секции (position: relative для привязки УТП к правому краю) */
.hero-new .container {
    position: relative;
    max-width: 1840px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 1440: как на 1920 — padding 20px, margin auto */
@media (max-width: 1440px) {
    .hero-new .container {
        padding: 0 20px;
        margin: 0 auto;
        max-width: 1840px;
    }
}

/* 1441–1920: контейнер уже вьюпорта, margin: auto даёт отступы от краёв */
@media (min-width: 1441px) and (max-width: 1920px) {
    .hero-new .container {
        width: calc(100% - 48px);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Низ — плавная адаптация 60 → … → 40; верх 0 — фото привязано к хедеру */
/* min(100vh, 1200px) — при зуме 25% vh раздувается, без лимита получается огромный зазор до 2-й секции */
.hero-new {
    position: relative;
    min-height: min(100vh, 1000px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hero-new-dark);
    overflow: visible;
    padding-top: 0;
    padding-bottom: 60px;
}

/* min-height не меняем на auto — иначе секция сжимается по контенту и фото обрезается снизу */
@media (min-height: 769px) {
    .hero-new {
        align-items: flex-start;
    }
}

/* Плавная адаптация padding-bottom: 60 → … → 40 */
@media (max-width: 1440px) {
    .hero-new { padding-bottom: 56px; }
}
@media (max-width: 1280px) {
    .hero-new { padding-bottom: 52px; }
}
@media (max-width: 1024px) {
    .hero-new { padding-bottom: 48px; }
}
@media (max-width: 768px) {
    .hero-new { padding-bottom: 48px; }
}
@media (max-width: 480px) {
    .hero-new { padding-bottom: 44px; }
}
@media (max-width: 375px) {
    .hero-new { padding-bottom: 40px; }
}

/* Фоновый слой секции */
.hero-new__background {
    position: absolute;
    inset: 0;
    background-color: var(--hero-new-dark);
    z-index: 0;
}

/* Фотография привязана к хедеру: верх фото = низ хедера (--header-height из header.css) */
.hero-new__image-wrapper_desktop {
    position: absolute;
    top: var(--header-height, 72px);
    right: 1.5%;
    width: 35%;
    max-width: 35%;
    z-index: 3;
    pointer-events: none;
}

/* Фотография для мобильных */
.hero-new__image-wrapper_mobile {
    display: none;
}

/* Как в about: ширина 100%, высота авто, скругление — фото не растягивается, ведёт себя предсказуемо */
.hero-new__image-wrapper_desktop .hero-new__portrait {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.hero-new__portrait {
    opacity: 1;
}


/* Обработанное изображение с эффектом Screen blend mode (через Canvas) */
.hero-new__portrait-processed {
    position: absolute;
    top: clamp(0px, max(0px, calc(80px + (100vw - 1920px) * -0.0893)), 80px);
    right: clamp(20px, max(20px, calc(20px + (100vw - 1024px) * 0.1027)), 112px);
    z-index: 3;
    pointer-events: none;
    display: block;
    max-width: none;
    max-height: none;
}

/* Отступ от хедера — зазор между хедером и первым текстом */
.hero-new__content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: #fff;
    display: flex;
    align-items: flex-start;
    padding: 75px;
    padding: calc(var(--header-height, 72px) + clamp(75px, 4vh, 88px)) 0 0 0;
    box-sizing: border-box;
}

/* На 1920 и шире опускаем контент ниже, чтобы не был задран вверх */
@media (min-width: 1920px) {
    .hero-new__content {
        padding-top: calc(var(--header-height, 72px) + 140px);
    }
}

.hero-new__text-block {
    flex: 1;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-new__heading {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Label: fluid scale from 1920px (20px) down to 320px (13px) */
.hero-new__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-size: clamp(13px, max(13px, calc(13px + (100vw - 320px) * 0.004375)), 20px);
    font-weight: 400;
    text-transform: none;
    opacity: 0.9;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    margin-bottom: clamp(12px, max(12px, calc(12px + (100vw - 320px) * 0.0075)), 24px);
    display: flex;
    align-items: center;
    gap: 6px;
    gap: clamp(6px, max(6px, calc(6px + (100vw - 320px) * 0.00375)), 12px);
}

.hero-new__location-icon {
    color: var(--hero-new-orange);
}

/* Title: по шкале TYPOGRAPHY-SCALE — 64→48→40→32→28→24 (6 брейкпоинтов) */
.hero-new__title {
    font-family: 'Manrope', sans-serif;
    font-size: 64px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0;
    letter-spacing: 0.06em;
}

/* Стили для списка с галочками */
.hero-new__features {
    list-style: none;
    padding: 0;
    margin: 48px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Отступ между features и actions */
.hero-new__features + .hero-new__actions {
    margin-top: 80px;
}

.hero-new__feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.hero-new__feature-icon {
    color: var(--hero-new-orange);
    font-size: 20px;
    font-size: clamp(20px, max(20px, calc(20px + (100vw - 480px) * 0.0083)), 32px);
    line-height: 1;
    font-weight: 700;
}

/* Подзаголовок (буллеты): по шкале — 32→28→24→20→18→18 */
.hero-new__feature-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    letter-spacing: 0.02em;
}

/* Обертка для кнопок и УТП карточек — на всю ширину, карточки прижаты к правому краю (до паддингов) */
.hero-new__actions {
    display: flex;
    align-items: flex-end;
    gap: 80px;
    gap: clamp(40px, max(40px, calc(80px + (100vw - 1024px) * 0.0893)), 160px); /* Плавный переход от 80px (1024px) до 160px (1920px) для более явного разграничения */
    flex-wrap: nowrap; /* На десктопах всегда в одну строку */
    width: 100%;
}

/* Кнопки */
.hero-new__buttons {
    display: flex;
    gap: 24px;
    gap: clamp(16px, max(16px, calc(16px + (100vw - 1024px) * 0.0178)), 32px); /* Плавный переход от 16px (1024px) до 32px (1920px) */
    align-items: center;
    margin-bottom: 0;
}

.hero-new__expertise {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-new__expertise-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.86);
    letter-spacing: 0.01em;
}

.hero-new__expertise-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--hero-new-orange);
    flex: 0 0 8px;
}

.hero-new__button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.hero-new__button_primary {
    font-size: 20px;
    font-size: clamp(16px, max(16px, calc(16px + (100vw - 480px) * 0.0083)), 28px);
    padding: 15px 26px;
    padding: clamp(0.75rem, max(0.75rem, calc(0.75rem + (100vw - 1024px) * 0.0039)), 1.125rem) clamp(1.25rem, max(1.25rem, calc(1.25rem + (100vw - 1024px) * 0.0078)), 2.25rem); /* Плавный переход внутренних отступов */
    background-color: transparent;
    color: var(--hero-new-orange);
    border: 2px solid var(--hero-new-orange); /* Обводка по умолчанию */
    min-height: 56px;
    min-height: clamp(48px, max(48px, calc(48px + (100vw - 480px) * 0.0167)), 72px);
    white-space: nowrap;
    letter-spacing: 0.02em; /* Добавлено для лучшей читабельности */
}

.hero-new__button_primary:hover {
    background-color: var(--hero-new-orange-hover);
    color: #fff;
    border-color: var(--hero-new-orange-hover);
    transform: translateY(-2px);
}

/* Карточки УТП — привязаны к правому краю контента; плавные размеры и gap 1440→1920 */
.hero-new__usp-cards {
    display: flex;
    gap: 32px;
    gap: clamp(24px, max(24px, calc(24px + (100vw - 1440px) * 0.0542)), 50px); /* 24px на 1440 → 50px на 1920 */
    align-items: flex-end;
    flex-shrink: 0;
    position: absolute;
    right: 0;
    bottom: 0;
}

.hero-new__usp-card {
    width: 160px;
    width: clamp(150px, max(150px, calc(150px + (100vw - 1440px) * 0.0625)), 182px);   /* 150 на 1440 → 182 на 1920 (чуть шире под фото) */
    height: 96px;
    height: clamp(90px, max(90px, calc(90px + (100vw - 1440px) * 0.0417)), 112px);
    /* Линейный градиент по диагонали + эффект стекла */
    background: linear-gradient(to bottom right, #152331 0%, rgba(21, 35, 49, 0.4) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px;
    padding: clamp(0.875rem, max(0.875rem, calc(0.875rem + (100vw - 1440px) * 0.00026)), 1rem);
    box-sizing: border-box;
}

.hero-new__usp-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-size: clamp(1.4rem, max(1.4rem, calc(1.4rem + (100vw - 1440px) * 0.00042)), 1.6rem);
    font-weight: 500;
    color: var(--hero-new-orange);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.hero-new__usp-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-size: clamp(0.9rem, max(0.9rem, calc(0.9rem + (100vw - 1440px) * 0.00021)), 1rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.35;
    letter-spacing: 0.03em;
}

/* Фиксация размеров в 1920: заголовок 64, подзаголовок 32, кнопки 28, УТП крупнее */
@media (min-width: 1920px) {
    .hero-new__usp-cards {
        gap: 56px;
    }

    .hero-new__usp-card {
        width: 210px;
        height: 128px;
        padding: 1.125rem 1rem;
    }

    .hero-new__usp-number {
        font-size: 28px;
        margin-bottom: 0.5rem;
    }

    .hero-new__usp-label {
        font-size: 18px;
    }
}

/* Адаптив для 1440px — отступы от краёв */
@media (max-width: 1440px) {
    .hero-new .container {
        width: calc(100% - 48px);
        max-width: 1840px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-new__text-block {
        max-width: 100%;
    }
    
    .hero-new__features {
        max-width: 58%;
        margin: 40px 0 0 0;
        gap: 20px;
    }
    
    .hero-new__features + .hero-new__actions {
        margin-top: 60px;
    }
    
    .hero-new__label {
        margin-bottom: 20px;
    }
    
    .hero-new__button_primary {
        font-size: 22px;
        font-size: clamp(18px, max(18px, calc(18px + (100vw - 1440px) * 0.0174)), 28px);
        padding: 14px 24px;
        padding: clamp(0.875rem, max(0.875rem, calc(0.875rem + (100vw - 1440px) * 0.0039)), 1.125rem) clamp(1.5rem, max(1.5rem, calc(1.5rem + (100vw - 1440px) * 0.0156)), 2.25rem);
        min-height: 60px;
        min-height: clamp(56px, max(56px, calc(56px + (100vw - 1440px) * 0.0333)), 72px);
    }
}

/* Адаптив для 1280px */
@media (max-width: 1280px) {
    .hero-new__features {
        max-width: 55%;
    }
    
    .hero-new__button_primary {
        font-size: 17px;
        font-size: clamp(17px, max(17px, calc(17px + (100vw - 1280px) * 0.0417)), 18px);
        padding: 12px 20px;
        padding: clamp(0.75rem, max(0.75rem, calc(0.75rem + (100vw - 1280px) * 0.0047)), 0.875rem) clamp(1.25rem, max(1.25rem, calc(1.25rem + (100vw - 1280px) * 0.0094)), 1.5rem);
        min-height: 52px;
        min-height: clamp(52px, max(52px, calc(52px + (100vw - 1280px) * 0.104)), 56px);
    }
    
    .hero-new__usp-card {
        width: 135px;
        height: 80px;
        padding: 12px;
        padding: 0.75rem;
        padding: clamp(0.75rem, max(0.75rem, calc(0.75rem + (100vw - 1280px) * 0.00078)), 0.875rem);
    }
    
    .hero-new__usp-number {
        font-size: 1.2rem;
        margin-bottom: 0.375rem;
    }
    
    .hero-new__usp-label {
        font-size: 0.85rem;
    }

    .hero-new__expertise-item {
        font-size: 16px;
    }
}

/* Адаптив для 1100px — колонка раньше, чтобы на 1075 кнопки и карточки не смыкались */
@media (max-width: 1100px) {
    .hero-new__image-wrapper_desktop {
        width: 40%;
        max-width: 40%;
    }

    .hero-new__text-block {
        max-width: 100%;
    }
    
    .hero-new__features {
        max-width: 50%; /* уже, чтобы текст не заходил на фото (1024–1100) */
        margin: 32px 0 0 0;
        gap: 18px;
    }
    
    .hero-new__label {
        margin-bottom: 16px;
    }
    
    .hero-new__features + .hero-new__actions {
        margin-top: 48px;
    }
    
    .hero-new__feature-icon {
        font-size: 24px;
        font-size: clamp(24px, max(24px, calc(24px + (100vw - 1050px) * 0.0083)), 28px);
    }
    
    .hero-new__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        gap: clamp(32px, max(32px, calc(32px + (100vw - 768px) * 0.0313)), 40px);
    }
    
    .hero-new__usp-cards {
        position: static;
        right: auto;
        bottom: auto;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .hero-new__button_primary {
        font-size: 17px;
        font-size: clamp(17px, max(17px, calc(17px + (100vw - 1050px) * 0.004)), 18px);
        min-height: 52px;
        min-height: clamp(52px, max(52px, calc(52px + (100vw - 1050px) * 0.0083)), 56px);
    }
    
    .hero-new__usp-card {
        width: 135px;
        height: 80px;
        padding: 0.75rem;
    }
    
    .hero-new__usp-number {
        font-size: 1.2rem;
        margin-bottom: 0.375rem;
    }
    
    .hero-new__usp-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .hero-new__features {
        max-width: 50%;
    }
}

/* 1280–1100: фото чуть правее (в %), чтобы текст не заходил на изображение */
@media (max-width: 1280px) and (min-width: 1001px) {
    .hero-new__image-wrapper_desktop {
        right: 2.5%;
    }
}

@media (max-width: 1100px) and (min-width: 1001px) {
    .hero-new__image-wrapper_desktop {
        right: 3%;
    }
}

/* Адаптив для 1000px — мобильный layout: фото сверху, контент примыкает к хедеру */
@media (max-width: 1000px) {
    .hero-new .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-new__image-wrapper_desktop {
        display: none;
    }
    
    .hero-new__image-wrapper_mobile {
        display: block;
        width: 60%;
        max-width: 60%;
        margin: 0 auto 24px;
        z-index: 1;
    }
    
    .hero-new__image-wrapper_mobile .hero-new__portrait {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
    }
    
    /* На мобильных контент и фото должны начинаться под хедером, не под ним */
    .hero-new__content {
        flex-direction: column;
        position: relative;
        z-index: 10;
        padding-top: calc(var(--header-height, 52px) + 16px);
        padding-left: 16px;
        padding-right: 16px;
        text-align: center;
        justify-content: flex-start;
    }
    
    .hero-new__text-block {
        position: relative;
        z-index: 10;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-new__heading {
        position: relative;
        z-index: 10;
        max-width: 100%;
        align-items: center;
    }
    
    .hero-new__label {
        position: relative;
        z-index: 10;
        margin-bottom: 16px;
        justify-content: center;
    }
    
    .hero-new__title {
        position: relative;
        z-index: 10;
        text-align: center;
    }
    
    .hero-new__features {
        position: relative;
        z-index: 10;
        margin: 32px 0 0 0;
        gap: 16px;
        align-items: center;
        max-width: 100%;
    }
    
    .hero-new__features + .hero-new__actions {
        margin-top: 40px;
    }
    
    .hero-new__actions {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        gap: clamp(24px, max(24px, calc(24px + (100vw - 480px) * 0.0278)), 32px);
        width: 100%;
        position: relative;
        z-index: 10;
    }
    
    .hero-new__feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    
    .hero-new__feature-icon {
        font-size: 20px;
        font-size: clamp(20px, max(20px, calc(20px + (100vw - 768px) * 0.0083)), 24px);
    }
    
    .hero-new__feature-text {
        max-width: 100%;
    }
    
    .hero-new__usp-cards {
        position: static;
        right: auto;
        bottom: auto;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
        gap: clamp(10px, max(10px, calc(10px + (100vw - 480px) * 0.0069)), 12px);
    }
    
    /* Обе кнопки одной ширины, блок по ширине контента (ориентир — длинная строка текста выше), не растянуто и не обрубки */
    .hero-new__buttons {
        flex-direction: column;
        align-items: stretch;
        width: min(340px, 92%);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        gap: 12px;
        gap: clamp(12px, max(12px, calc(12px + (100vw - 480px) * 0.0139)), 16px);
    }

    .hero-new__expertise {
        width: 100%;
        margin-top: 16px;
    }

    .hero-new__expertise-item {
        justify-content: center;
        text-align: center;
        font-size: 15px;
        line-height: 1.35;
    }
    
    .hero-new__button {
        width: 100%;
    }
    
    .hero-new__button_primary {
        font-size: 16px;
        font-size: clamp(16px, max(16px, calc(16px + (100vw - 768px) * 0.0035)), 18px);
        min-height: 48px;
        min-height: clamp(48px, max(48px, calc(48px + (100vw - 768px) * 0.0087)), 52px);
    }
    
    .hero-new__usp-card {
        width: 100%;
        height: auto;
        min-height: 70px;
        padding: 14px;
        padding: 0.875rem;
        padding: clamp(0.875rem, max(0.875rem, calc(0.875rem + (100vw - 480px) * 0.0043)), 1rem);
    }
    
    .hero-new__usp-number {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-new__usp-label {
        font-size: 0.8rem;
    }
}

/* Заголовок hero: 64 (1920+) → 48 (1440) → 40 (1280) → 32 (1024) → 28 (768) → 24 (375) */
@media (max-width: 1440px) {
    .hero-new__title { font-size: 48px; }
    .hero-new__feature-text { font-size: 28px; }
}
@media (max-width: 1280px) {
    .hero-new__title { font-size: 40px; }
    .hero-new__feature-text { font-size: 24px; }
}
@media (max-width: 1024px) {
    .hero-new__title { font-size: 32px; }
    .hero-new__feature-text { font-size: 20px; }
}
@media (max-width: 768px) {
    .hero-new__title { font-size: 28px; }
    .hero-new__feature-text { font-size: 18px; }
}
@media (max-width: 375px) {
    .hero-new__title { font-size: 24px; }
    .hero-new__feature-text { font-size: 18px; }
}

/* Адаптив для 480px */
@media (max-width: 480px) {
    .hero-new__image-wrapper_mobile {
        max-width: 85%;
        width: 85%;
    }
}
