* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    /* outline: 1px solid red; */

}

html {
    scroll-behavior: smooth;
    /* overflow-y: hidden; */
}

@supports (-webkit-touch-callout: none) {
    body {
        overflow-y: hidden;
    }
}




body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #36140e;
    background-color: #f2ebe4;
    /* overflow-y: hidden; */
}




.zen-kurenaido-regular {
    font-family: "Zen Kurenaido", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* ======== CONTAINER ======== */
.container {
    width: 90%;
    margin: 0 auto;
}

:root {
    --main-color: #36140e;
    --bg-color: #f2ebe4;
    --text-light: #f2ebe4;
}

.hero {
    /* background-color: var(--bg-color); */
    min-height: 65vh;
    position: relative;
    display: flex;
    align-items: center;
}


.hero-inner {
    position: relative;
    overflow: visible;
}

.hero-dark {
    background-color: var(--main-color);
    border-radius: 150px;
    padding: 70px 120px;
    /* padding-bottom: 100px; */
    height: 540px;
    max-width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    /* align-items: center; */
}

.hero-text {
    color: var(--text-light);
    flex: 1;
    padding-right: 65px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    font-family: 'Alegreya Sans SC', sans-serif;
    font-weight: 300;

    /* gap: 8px; */
    /* font-family: 'Alegreya Sans SC', sans-serif; */
}

.hero-text h1 {
    font-size: 8rem;

    letter-spacing: 0px;
    font-weight: 200;
    line-height: 1.1;
    margin: 0;
}

.hero-text h2 {
    font-size: 8rem;
    letter-spacing: 0px;
    font-weight: 200;
    line-height: 1;
    margin: 0;
}

.hero-text p {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 400px;
    text-transform: none;
    /* background-color: rgba(255, 255, 255, 0.05); */
    padding: 0px 15px;
    border-radius: 8px;
}

.hero-image {
    position: absolute;
    bottom: -5px;
    right: 5px;
    width: 660px;

    z-index: 2;
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;

    border-bottom-right-radius: 150px;
}

@media (max-width: 768px) {
    .hero-dark {
        padding: 40px 30px;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: 2.4rem;
    }

    .hero-image {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 30px;
    }
}

.hero-info-block {
    display: flex;
    align-items: center;
    /* выравнивание по центру по вертикали */
    justify-content: space-between;
    gap: 20px;
    /* background-color: rgba(255, 255, 255, 0.08); */
    padding: 30px 30px;
    border-radius: 12px;
    max-width: 740px;
    margin-top: 20px;
}

.hero-info-block p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-light);
    text-transform: none;
    flex: 1;
}

.hero-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: 2px solid var(--text-light);
    padding: 14px 32px;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;

    /* сильный блюр */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}


@media (max-width: 2099px) {
    .hero-image {
        width: 600px;
        right: 5px;
    }

    .hero-dark {
        padding: 60px 100px;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: 7rem;
    }
}

@media (max-width: 1650px) {
    .hero-image {
        width: 520px;
        right: 5px;
    }

    .hero-dark {
        padding: 50px 80px;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: 6rem;
        letter-spacing: -2px;
    }

    .hero-image {
        /* position: absolute; */
        /* bottom: -5px; */
        right: 5px;
        width: 560px;
        z-index: 2;
        pointer-events: none;
    }

}

@media (max-width: 1550px) {
    .hero-info-block {
        flex-direction: column;
        align-items: flex-start;
        /* Выровнять по левому краю */
        /* gap: 16px; */
        padding: 0;
    }

    .hero-info-block p {
        text-align: left;
        width: 100%;
    }

    .hero-btn {
        align-self: flex-start;
        width: auto;
        margin-top: 10px;
    }

    .hero-text p {
        padding: 0px 0px 10px;
    }
}

@media (max-width: 1350px) {

    .hero-text h1,
    .hero-text h2 {
        font-size: 4.5rem;
    }
}

@media (max-width: 1100px) {
    .hero-image {
        display: none;
    }

    .hero-dark {
        background-image: url('../img/scrapper/attr.png');
        /* путь к изображению */
        background-repeat: no-repeat;
        background-position: center calc(100% + 200px);
        /* <-- смещаем вниз */
        background-size: contain;
        padding-bottom: 140px;
        /* можешь увеличить если нужно больше места под текст */
    }
}

@media (max-width: 900px) {

    .hero-dark {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 50px 30px;
        background-position: 85% calc(100% + 200px);

    }

    .hero-text {
        padding: 20px;
        gap: 10px;
        padding-right: 0;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: 3.5rem;
    }


    .hero-image {
        position: static;
        width: 100%;
        max-width: 420px;
        margin: 30px auto 0;
    }

    .hero-info-block {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 900px) {

    .hero-dark {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 50px 30px;
        background-position: 90% calc(100% + 250px);

    }
}

@media (max-width: 600px) {

    body {
        margin: 0;
        padding: 0;
    }

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    header {
        margin: 0;
        /* max-width: 90%; */
        max-height: 90%;
        padding: 0;
    }

    header#header {
        margin: 0;
        width: 100%;
        /* max-width: 90%; */
        max-height: 90%;
        padding: 0;
        position: fixed;
    }

    .container {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    section.hero {
        padding: 0;
        margin: 0;
        width: 100%;
    }



    .hero-text {
        /* padding: 20px; */
        /* gap: 10px; */
        padding-right: 0;
        font-size: 1rem;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: 3rem;
    }

    .hero-text h2 {
        font-size: 3rem;
    }

    .hero-dark {

        border-radius: 0;

        flex-direction: column;
        align-items: flex-start;
        height: auto;

        background-position: center 190%;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 100% calc(100% + 400px);
        padding-bottom: 100px;
        /* чтобы текст не перекрывался фоном */
    }
}

@media (max-width: 440px) {

    .hero-text {
        /* padding: 20px; */
        /* gap: 10px; */
        padding-right: 0;
        font-size: 1rem;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: 2rem;
    }

    /* .hero-text h2 {
    font-size: 2.rem;
  } */
    .hero-btn {
        font-size: 1rem
    }

    .hero-info-block p {
        margin-bottom: 15px;
    }

}



/* ======== ANIMATION APPEAR ======== */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
    header nav ul {
        display: none;
        /* Потом можно бургер-меню */
    }

    #stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* ======== БУРГЕР ======== */
.burger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #36140e;
    cursor: pointer;
    position: relative;
    z-index: 2000;
    /* бургер всегда выше */
}

/* ======== Мобильное меню ======== */
#nav {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    #nav {
        position: absolute;
        top: 60px;
        left: 0;
        background: #f2ebe4;
        width: 100%;
        transform: translateY(-100%);
        opacity: 0;
        z-index: 999;
        border-bottom: 1px solid rgba(54, 20, 14, 0.1);
    }

    #nav.open {
        transform: translateY(0);
        opacity: 1;
    }

    #nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
    }

    #nav ul li {
        margin: 10px 0;
    }
}

header {
    background: rgba(242, 235, 228, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(54, 20, 14, 0.1);
    box-shadow: 0 2px 6px rgba(54, 20, 14, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #36140e;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: #36140e;
    font-weight: 500;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #5a2015;
}

#lang-toggle {
    background: #36140e;
    color: #f2ebe4;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

#lang-toggle:hover {
    background: #5a2015;
}

/* Лого как ссылка + картинка */
header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    /* убирает лишние просветы вокруг img */
}

header .logo img {
    display: block;
    height: 80px;
    /* высота логотипа на десктопе */
    width: auto;
    max-width: 220px;
    /* на всякий случай, чтобы не расползался */
}

/* Чуть плотнее контейнер, если нужно */
header .container {
    gap: 16px;
    padding: 10px 0;
    /* можно вернуть 15px если так лучше по макету */
}

/* Адаптив: на мобильных логотип поменьше */
@media (max-width: 768px) {
    header .logo img {
        height: 32px;
    }
}

/* Если логотип тёмный и фон полупрозрачный — можно слегка «подсветить» */
@media (prefers-color-scheme: light) {
    header .logo img {
        filter: none;
        /* убери, если не нужно */
    }
}

/* 1) Убрать кнопку языка */
#lang-toggle {
    display: none !important;
}

/* 2) Контейнер: логотип слева, меню по центру, бургер справа */
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* 3) Меню растягиваем и центрируем пункты */
header nav {
    flex: 1 1 auto;
}

header nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    /* вместо margin-left на <li> */
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0;
}

/* 4) Увеличиваем шрифт пунктов меню */
header nav ul li a {
    font-size: 1.18rem;
    /* было меньше */
    font-weight: 600;
}

/* 5) Бургер всегда справа */
.burger {
    margin-left: auto;
    /* уезжает в край */
    order: 3;
    /* после меню */
}

/* 6) Лого слева, не даём ему растягиваться */
header .logo {
    flex: 0 0 auto;
}

/* 7) Мобильное меню (как было), добавим центрирование ссылок чуть крупнее */
@media (max-width: 768px) {
    header nav {
        flex: none;
    }

    header nav ul {
        flex-direction: column;
        gap: 14px;
    }

    header nav ul li a {
        font-size: 1.05rem;
    }
}

/* --- Мобильное меню: по-настоящему скрыто, пока закрыто --- */
@media (max-width: 768px) {
    #nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #f2ebe4;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        /* ⚠️ не ловим клики */
        z-index: 999;
        border-bottom: 1px solid rgba(54, 20, 14, .1);
        transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
    }

    #nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        /* теперь кликабельно */
        transition: transform .3s ease, opacity .3s ease;
    }

    /* Крупнее бургер + удобная зона касания */
    .burger {
        display: block;
        font-size: 2.2rem;
        line-height: 1;
        padding: 8px;
        /* hit-area */
        min-width: 44px;
        min-height: 44px;
    }

    /* Лого крупнее на мобилке */
    header .logo img {
        height: 44px;
        /* было меньше */
    }

    /* Вертикальное меню по центру */
    #nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 16px 0 20px;
        margin: 0;
    }

    #nav ul li a {
        font-size: 1.1rem;
    }
}

/* Когда меню открыто — блокируем прокрутку фона */
body.nav-open {
    overflow: hidden;
}



/*  ----------- services ---------------- */
#offer {
    background-color: var(--bg-color);
    padding: 0px 0;
}

.offer-wrapper {
    display: flex;
    align-items: flex-end;
    /* ВЫРАВНИВАНИЕ ПО НИЗУ */
    height: 600px;
    gap: 40px;
}

.offer-image-box {
    position: relative;
    flex: 0 0 33%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0px;
    box-sizing: border-box;
}

.offer-box-bg {
    background-color: var(--main-color);
    min-width: 350px;
    max-width: 75%;
    min-height: 400px;
    border-radius: 6px;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.hand-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
}

.offer-text {
    flex: 1;
    height: 400px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-image:
        linear-gradient(to bottom, rgba(54, 20, 14, 0.8), rgba(54, 20, 14, 0.8)),
        url('../img/sky_scraper_ground.jpg');
    /* ✅ Заменить на путь к нужной картинке */
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    overflow: hidden;
}

/* Обёртка для всего контента внутри затемнённого блока */
.offer-text-bg {
    padding: 30px 40px;
    color: var(--text-light);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.offer-text-bg h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.1;
    font-family: 'Alegreya Sans SC', sans-serif;
    font-weight: 300;
    width: 100%;
    /* Заголовок по всей ширине */
}

.offer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    flex-wrap: wrap;
}

/* Левая колонка — текст */
.offer-text-left {
    flex: 1;
    min-width: 250px;
}

.offer-text-left p {
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.6;
    font-family: 'Alegreya Sans SC', sans-serif;
    font-weight: 400;
}

/* Правая колонка — кнопка */
.offer-text-right {
    align-self: flex-end;
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
    background: none;
    padding: 12px 26px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s ease;
    white-space: nowrap;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--main-color);
}

/* ======= OFFER BLOCK RESPONSIVE STYLES ======= */

/* Up to 1450px */
@media (max-width: 1450px) {
    .offer-wrapper {
        gap: 30px;
        height: 550px;
    }

    .offer-box-bg {
        min-width: 320px;
        min-height: 370px;
    }

    .offer-text h2 {
        font-size: 3.2rem;
    }

    .offer-text p {
        font-size: 1.2rem;
    }
}

@media (max-width: 1070px) {
    .offer-image-box {
        display: none;
    }

    .offer-wrapper {
        justify-content: center;
    }
}

@media (max-width: 1370px) {
    .offer-box-bg {
        min-width: 250px;
        min-height: 300px;
    }
}

/* Up to 1070px */
@media (max-width: 1070px) {
    .offer-image-box {
        display: none;
    }

    .offer-wrapper {
        justify-content: center;
    }

    .offer-box-bg {
        position: absolute;
        right: 20px;
        bottom: 0;
        min-width: 250px;
        min-height: 250px;
    }

    .hand-image {
        height: 100%;
        object-position: bottom center;
    }

    .offer-text {
        width: 100%;
        height: auto;
        min-height: 400px;
    }

    .offer-text-bg {
        padding: 30px;
    }

    .offer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .btn-outline {
        align-self: flex-start;
    }
}

/* Up to 700px */
@media (max-width: 700px) {
    .offer-box-bg {
        display: none;
    }

    .offer-wrapper {
        gap: 20px;
    }

    .offer-text h2 {
        font-size: 2.2rem;
    }

    .offer-text p {
        font-size: 1.1rem;
    }

    .offer-text-bg {
        padding: 20px;
    }

    .btn-outline {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .offer-text {
        border-radius: 0px;
    }
}


/* -------------FEATURES ---------------- */

/* ===== FEATURES (grid + responsive) ===== */
#features {
    padding: 80px 0;
    background: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "heading heading"
        "left    right";
    gap: 40px;
    align-items: start;
}

.features-heading {
    grid-area: heading;
}

.features-heading h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    color: var(--main-color);
    font-family: 'Alegreya Sans SC', sans-serif;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(54, 20, 14, .15);
}

.features-left {
    grid-area: left;
}

.features-right {
    grid-area: right;
    display: flex;
    justify-content: center;
    align-items: center;
}

.features-right img {
    width: 100%;
    height: min(520px, 48vw);
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(54, 20, 14, .12);
}

.features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* justify-content: space-between; */
    gap: 22px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 12px 4px;
    border-bottom: 1px dashed rgba(54, 20, 14, .12);
}

.features-left .icon {
    color: var(--main-color);
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
}

.features-left .icon svg {
    width: 42px;
    height: 42px;
    display: block;
}

.features-list p {
    margin-top: 2px;
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    line-height: 1.5;
    color: var(--main-color);
}

/* ——— breakpoints ——— */

/* <= 1200: немного компактнее, картинка пониже */
@media (max-width: 1200px) {
    .features-right img {
        height: min(460px, 56vw);
    }
}

/* <= 992: одна колонка, картинка под списком */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "left"
            "right";
        gap: 28px;
    }

    .features-right img {
        height: 340px;
    }
}

/* <= 700: ещё компактнее иконки/текст */
@media (max-width: 700px) {
    #features {
        padding: 56px 0;
    }

    .features-left .icon {
        width: 40px;
        height: 40px;
    }

    .features-left .icon svg {
        width: 36px;
        height: 36px;
    }

    .features-list li {
        gap: 14px;
    }

    .features-right img {
        height: 280px;
        border-radius: 8px;
    }
}

@media (max-width: 992px) {
    .features-right {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "left";
    }
}

/* -------- section working with formats --------- */

/* ====== VARIABLES (если уже есть — можно убрать) ====== */
:root {
    --main-color: #36140e;
    --bg-color: #f2ebe4;
    --text-dark: #1e1a18;
    --text-light: #fff;
    --radius-lg: 28px;
    --radius-md: 18px;

    /* единое межрядье для блока Этап 2–3 */
    --steps-row-gap: 26px;
}


:root {
    --main-color: #36140e;
    --bg-color: #f2ebe4;
    --text-dark: #1e1a18;
    --text-light: #fff;
    --radius-lg: 28px;
    --radius-md: 18px;
    --steps-row-gap: 26px;

}

/* ====== SECTION ====== */
.how {
    background: var(--bg-color);
    padding: 80px 0 90px;
}

/* Заголовок раздела */
.how .section-title {
    font-family: "Zen Kurenaido", sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--text-dark);
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    margin: 0 0 28px;
}

/* ====== ROW 1 (Этап 1) ====== */
.how .row-1 {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 42px;
    align-items: center;
    margin-bottom: 64px;
}

/* карточка-фото */
.how .img-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 12;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.how .img-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(54, 20, 14, .35);
    pointer-events: none;
}

/* Заголовок шага */
.how .step-title {
    font-family: "Zen Kurenaido", sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 1.12;
    color: var(--text-dark);
    font-size: clamp(2rem, 3.6vw, 3rem);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 14px;
}

/* Ссылка под шагом */
.how .cta-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    font-size: clamp(.9rem, 1.2vw, 1rem);
    opacity: .85;
}

.how .cta-link:hover {
    opacity: 1;
}

/* ====== ROW 2–3 (Этап 2 и Этап 3) ====== */
.how .row-23 {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr;
    align-items: start;
    column-gap: 42px;
}


.how .row-23 .col-text {
    display: grid;
    grid-template-rows: 1fr 1fr;
    row-gap: var(--steps-row-gap);
}

.how .row-23 .col-images {
    display: grid;
    grid-template-rows: 1fr 1fr;
    row-gap: var(--steps-row-gap);
}

.how .row-23 .col-images .img-card {
    aspect-ratio: 5/4;
    border-radius: var(--radius-md);
}

.how .row-23 .col-images .img-card::after {
    background: rgba(54, 20, 14, .28);
}

/* Строка-этап */
.how .step-line {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px 18px;
    align-items: start;
    margin: 0;
}

.how .step-line .num {
    font-family: "Zen Kurenaido", sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: .02em;
    font-size: clamp(1.6rem, 1.8vw, 1.9rem);
    line-height: 1.1;
    white-space: nowrap;
}

.how .step-line .txt {
    font-family: "Zen Kurenaido", sans-serif;
    color: var(--text-dark);
    font-size: clamp(1.6rem, 1.8vw, 1.9rem);
    line-height: 1.45;
}

@media (min-width:1400px) {
    .how .step-line .num {
        font-size: 2.7rem;
    }

    .how .step-line .txt {
        font-size: 2.7rem;
    }
}





/* ====== ROW 4 ====== */
.how .row-4 {
    margin-top: 64px;
}

.how .banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 28px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.how .banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(54, 20, 14, .85), rgba(54, 20, 14, .85));
}

.how .banner .badge {
    position: absolute;
    top: 22px;
    left: 24px;
    z-index: 1;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    color: #fff;
    font-family: "Zen Kurenaido", sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: .9rem;
    letter-spacing: .04em;
    backdrop-filter: saturate(140%) blur(2px);
}

.how .banner h3 {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    font-family: "Zen Kurenaido", sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: .02em;
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    line-height: 1.22;
    max-width: 1100px;
}

/* ====== RESPONSIVE ====== */
@media (max-width:1450px) {
    .how .row-1 {
        gap: 32px;
    }

    .how .row-23 {
        gap: 32px;
    }
}

@media (max-width:1070px) {
    .how {
        padding: 64px 0 72px;
    }

    .how .row-1 {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .how .row-23 {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .how .col-images {
        grid-template-rows: none;
        grid-template-columns: 1fr 1fr;
    }

    .how .col-images .img-card {
        aspect-ratio: 3 / 2;
    }

    .how .banner {
        min-height: 300px;
    }
}

@media (max-width:700px) {
    .how {
        padding: 52px 0 60px;
    }

    .how .section-title {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .how .img-card {
        aspect-ratio: 16 / 11;
    }

    .how .col-images {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .how .step-line {
        gap: 10px 14px;
    }

    .how .banner {
        min-height: 260px;
        border-radius: 16px;
        padding: 26px 20px;
    }

    .how .banner .badge {
        display: none;
    }
}

/* сетка по умолчанию: текст слева, картинка справа — в две строки */
.how .row-23 {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr;
    grid-template-rows: auto auto;
    column-gap: 42px;
    row-gap: 26px;
    align-items: start;
}

/* элементы */
.how .step-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.how .row-23 .img-card {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    position: relative;
    background-size: cover;
    background-position: center;
}

.how .row-23 .img-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(54, 20, 14, .28);
}

/* ===== мобильное переупорядочивание ===== */
@media (max-width: 700px) {
    .how .row-23 {
        grid-template-columns: 1fr 1fr;
        /* две колонки для картинок */
        grid-auto-rows: auto;
        column-gap: 18px;
        row-gap: 18px;
    }

    /* два шага — сверху, каждый на всю ширину (занимают обе колонки) */
    .how .row-23 .step2 {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .how .row-23 .step3 {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    /* картинки — ниже, в две колонки */
    .how .row-23 .img1 {
        grid-column: 1;
        grid-row: 3;
    }

    .how .row-23 .img2 {
        grid-column: 2;
        grid-row: 3;
    }

    /* чуть компактнее типографику на мобилке при желании */
    .how .step-line .num {
        font-size: 1.1rem;
    }

    .how .step-line .txt {
        font-size: 1.7rem;
    }
}

:root {
    --main-rgb: 54, 20, 14;
}

/* #36140e */

/* БАЗА для карточек-изображений */
.how .row-23 .img-card {
    position: relative;
    /* обязательно, чтобы псевдоэлементы легли поверх */
    overflow: hidden;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
    /* отдельный стек для корректного blend */
}

/* Плотное затемнение основным цветом */
.how .row-23 .img-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--main-rgb), .48);
    /* .35–.6 по вкусу */
    mix-blend-mode: multiply;
    /* “вплавляем” в фото */
    pointer-events: none;
}

/* Лёгкие “вкрапления” (grain) без svg/фильтров */
.how .row-23 .img-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background-image:
        radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.6px),
        radial-gradient(rgba(0, 0, 0, .16) 1px, transparent 1.8px);
    background-size: 3px 3px, 4px 4px;
    background-position: 0 0, 1px 1px;
    mix-blend-mode: overlay;
    opacity: .4;
    /* усилить/ослабить зерно */
    pointer-events: none;
}

/* Если у тебя где-то выше было правило только с background на ::after — жёстко перекрываем */
.how .row-23 .col-images .img-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--main-rgb), .48) !important;
    mix-blend-mode: multiply;
}

/* ----- Career part ----- */


/* ===== Careers (фон и контейнер остаются как были) ===== */
.careers {
    background: var(--main-color);
    color: var(--text-light);
    padding: 72px 0 84px;
    /* font-family: "Zen Kurenaido", sans-serif; */
    font-family: 'Alegreya Sans SC', sans-serif;
}

.careers header {
    position: static;
}

.careers-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.careers-head {
    background: var(--main-color);
}

.careers-head h2 {
    font-family: 'Alegreya Sans SC', sans-serif;
    /* font-family: "Zen Kurenaido", sans-serif; */
    font-weight: 700;
    font-size: 48px;
    line-height: 1.15;
    margin: 0 0 12px;
}

.careers-lead {
    margin: 0 0 28px;
    font-weight: 700;
}

.careers-about {
    max-width: 740px;
    margin-bottom: 36px;
}

.careers-about p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(242, 235, 228, .92);
}

.careers-about h3 {
    margin: 22px 0 12px;
    font-weight: 700;
    font-size: 20px;
}


.careers-about h4 {
    margin: 22px 0 12px;
    font-weight: 700;
    font-size: 20px;
}

.careers-list {
    margin: 0;
    padding-left: 20px;
}

.careers-list li {
    margin: 8px 0;
    line-height: 1.5;
    color: rgba(242, 235, 228, .92);
}

/* ===== Сетка карточек ===== */
:root {
    --card-w: 360px;
    /* ширина карточки */
    --card-h: 219px;
    /* высота карточки и фото */
    --gap: 28px;
    /* межкарточный отступ */
}

/* Контейнер с карточками */
.career-cards {
    display: grid;
    grid-template-columns: repeat(3, var(--card-w));
    /* 3 в ряд на больших */
    gap: var(--gap);
    justify-content: start;
    /* прижать к левому краю */
    align-items: start;
}

/* Карточка */
.career-card {
    display: flex;
    width: var(--card-w);
    height: var(--card-h);
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

/* Левая колонка — фото (35%), обрезка справа */
.career-media {
    flex: 0 0 35%;
    height: var(--card-h);
    /* фиксируем по высоте */
    overflow: hidden;
    border-radius: 8px;
    background: var(--main-color);
    /* фон как у родителя */
}

.career-media img {
    width: 120%;
    /* даём “запас” для кропа справа ~20% */
    height: 100%;
    object-fit: cover;
    object-position: left center;
    /* фокус слева, режем справа */
    display: block;
}

/* Правая колонка — текст (65%), по верхнему краю */
.career-body {
    flex: 0 0 65%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.career-body h4 {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.25;
    color: var(--text-light);
}

.career-body p {
    padding-top: 6px;
    margin: 0;
    color: rgba(242, 235, 228, 0.661);
    font-size: 14px;
    line-height: 1.5;
    max-width: 36ch;
}

/* ---------- Адаптив ---------- */
/* Крупные ноутбуки / планшеты в альбомной — 2 в ряд */
@media (max-width: 1200px) {
    .career-cards {
        grid-template-columns: repeat(2, var(--card-w));
        gap: 24px;
    }
}

/* Планшеты / большие телефоны — 1 в ряд, карточка растягивается на ширину контейнера */
@media (max-width: 820px) {
    .career-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .career-card {
        width: 100%;
    }
}

/* --- Мобильная лента карточек (горизонтальная) --- */
/* ----- Mobile ≤640px: одна колонка, карточка горизонтальная ----- */
@media (max-width: 640px) {

    /* один столбец, без горизонтального скролла */
    .career-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: stretch;
        overflow: visible;
        /* убираем скролл-ленту, если была */
        padding: 0;
    }

    /* карточка на всю ширину контейнера, горизонтальная */
    .career-card {
        width: 100%;
        height: 170px;
        /* подгони при желании: 160–190 */
        display: flex;
        flex-direction: row;
        /* важно: горизонтально */
        align-items: stretch;
        border-radius: 10px;
        overflow: hidden;
    }

    /* фото слева, фиксированная доля ширины */
    .career-media {
        flex: 0 0 38%;
        /* 35–40% оптимально */
        height: 100%;
        border-radius: 10px 0 0 10px;
        overflow: hidden;
        background: var(--main-color);
    }

    .career-media img {
        width: 115%;
        /* лёгкий кроп справа ≈15% */
        height: 100%;
        object-fit: cover;
        object-position: left center;
        display: block;
    }

    /* текст справа, выравнивание по верхнему краю */
    .career-body {
        flex: 1 1 auto;
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        text-align: left;
    }

    .career-body h4 {
        font-size: 16px;
        line-height: 1.25;
        margin: 0 0 6px;
    }

    .career-body p {
        font-size: 13px;
        line-height: 1.45;
        margin: 0;
        /* ограничим до 2 строк, чтобы карточка была аккуратной */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* address part ---------------------- */


.address-block {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.address-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 18px;
}

.address-item {
    font-size: 16px;
    color: #000;
    margin: 10px 0;
}

/* ---------------- map part ---------------------- */
:root {
    --main-color: #36140e;
    /* твой цвет */
}

/* Обёртка с позиционированием */
.map-wrap {
    position: relative;
    width: 100vw;
    height: 500px;
    /* можешь сделать адаптивно через vh */
    overflow: hidden;
}

/* Сама карта */
.map {
    width: 100%;
    height: 100%;
}

/* Два слоя-тонировки «как в Тильде» */
.map-tint {
    position: absolute;
    inset: -2500px;
    /* большой «ковёр», как у Тильды */
    pointer-events: none;
    z-index: 5;
    /* поверх тайлов карты, но под попапами */
    background-color: var(--main-color);
}

/* Нижний слой — даёт основной оттенок через смешение цвета */
.map-tint--color {
    opacity: .5;
    mix-blend-mode: color;
}

/* Верхний слой — лёгкая вуаль, выравнивает тона */
.map-tint--veil {
    opacity: .15;
}

/* Опционально: на очень узких экранах ниже высоту */
@media (max-width: 600px) {
    .map-wrap {
        height: 380px;
    }
}

/* --------- contacts ------------- */

/* ===== Contacts ===== */
.contacts {
    background: var(--bg-color, #f2ebe4);
    color: var(--main-color, #36140e);
    padding: clamp(48px, 6vw, 96px) 0 clamp(36px, 5vw, 72px);
    border-top: 1px solid rgba(54, 20, 14, .06);
}

.contacts__inner {
    width: min(1160px, 92%);
    margin: 0 auto;
    position: relative;
}

/* маленький CTA справа сверху */
.contacts__cta {
    position: absolute;
    top: 0;
    right: 0;
    text-decoration: none;
    text-align: right;
    color: rgba(54, 20, 14, .75);
    font-size: clamp(12px, 1.3vw, 14px);
    line-height: 1.3;
}

.contacts__cta strong {
    font-weight: 700;
    letter-spacing: .02em;
}

/* заголовок */
.contacts__title {
    margin: 0 0 clamp(16px, 2vw, 28px);
    font-family: 'Alegreya Sans SC', sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 3vw, 36px);
    text-transform: uppercase;
    letter-spacing: .02em;
}

/* большой телефон */
.contacts__phone {
    display: inline-block;
    margin: 0 0 .35em;
    text-decoration: none;
    color: #8b8b8b;
    /* как на рефе — приглушённый */
    font-weight: 300;
    font-size: clamp(34px, 8vw, 86px);
    letter-spacing: .01em;
    line-height: 1.05;
}

/* email */
.contacts__mail {
    display: inline-block;
    text-decoration: none;
    color: #8b8b8b;
    font-size: clamp(16px, 2.4vw, 28px);
    margin: .1em 0 .4em;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* часы работы */
.contacts__time {
    margin: .6em 0 0;
    color: rgba(54, 20, 14, .55);
    font-size: clamp(14px, 1.8vw, 18px);
}

/* нижнее спокойное меню */
.contacts__nav {
    display: flex;
    gap: clamp(18px, 5vw, 40px);
    margin-top: clamp(28px, 6vw, 56px);
    flex-wrap: wrap;
    justify-content: center;
}

.contacts__nav a {
    color: rgba(54, 20, 14, .55);
    text-decoration: none;
    font-size: clamp(12px, 1.6vw, 14px);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.contacts__nav a:hover {
    color: rgba(54, 20, 14, .8);
}

/* адаптация — уводим CTA вниз, когда не помещается справа */
@media (max-width: 720px) {
    .contacts__cta {
        position: static;
        text-align: left;
        margin-bottom: 16px;
    }
}


/*  --- company block ------- */

.company-block {
    background-color: #111;
    /* черный фон */
    padding: 40px 20px;
    text-align: center;
}

.company-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.company-name {
    color: #ccc;
    font-size: 14px;
    margin: 0;
}

.company-name span {
    color: #fff;
    /* выделение названия */
}

.company-info {
    color: #ccc;
    font-size: 14px;
    margin-top: 6px;
}