:root {
    --container-max: 1320px;
    --page-bg: rgba(255, 241, 231, 1);
    --orange: #F47A1F;
    --orange-light: #ff9637;
    --white: #FFFFFF;
    --black: #000000;
    --dark: #1c1c1a;
    --dark-grey: #2E2E2E;
    --grey: #878787;
    --cream: rgba(255, 241, 231, 1);
    --cream-dark: #f0e8de;
    --text-light: #f5f5f2;
    --text-muted: #a39e96;
    --dark-card: #2a2825;
    --dark-card2: #35322e;
    --fs-h1: 50px;
    --fs-h2: 32px;
    --radius: 16px;
    --radius-lg: 24px;
    --page-gutter: 6px;

    /* Размер надписи «ДОВЕРИЕ» в большой карточке клиентов — меняйте только это значение */
    --client-epigraph-font-size: 108px;

    /* Иконка Arrow 2.svg: круг и стрелка (как в .btn-more), масштаб 420px → 1440px */
    --btn-more-icon-circle: clamp(37px, calc(37px + 3 * (100vw - 420px) / 1020), 40px);
    --btn-more-icon-arrow: clamp(14px, calc(14px + 3 * (100vw - 420px) / 1020), 17px);

    /* Плавное масштабирование кнопок: 420px (min) → 1440px (max) */
    --btn-primary-height: clamp(45px, calc(45px + 10 * (100vw - 420px) / 1020), 55px);
    --btn-primary-font-size: clamp(16px, calc(16px + 2 * (100vw - 420px) / 1020), 18px);
    --btn-primary-radius: clamp(40px, calc(40px + 60 * (100vw - 420px) / 1020), 100px);
    --btn-primary-padding-x: clamp(25px, calc(25px + 5 * (100vw - 420px) / 1020), 30px);

    --btn-more-height: clamp(44px, calc(44px + 11 * (100vw - 420px) / 1020), 55px);
    --btn-more-font-size: clamp(14px, calc(14px + 4 * (100vw - 420px) / 1020), 18px);
    --btn-more-radius: clamp(40px, calc(40px + 60 * (100vw - 420px) / 1020), 100px);
    --btn-more-padding-top: clamp(5px, calc(5px + 10 * (100vw - 420px) / 1020), 15px);
    --btn-more-padding-right: clamp(5px, calc(5px + 25 * (100vw - 420px) / 1020), 30px);
    --btn-more-padding-bottom: clamp(5px, calc(5px + 10 * (100vw - 420px) / 1020), 15px);
    --btn-more-padding-left: clamp(15px, calc(15px + 15 * (100vw - 420px) / 1020), 30px);
    --btn-more-gap: clamp(11px, calc(13px - 2 * (100vw - 420px) / 1020), 13px);

    /* Цвет нумерации 2-й и 4-й карточек услуг (мобилка, оранжевый фон) */
    --service-card-num-accent: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    :root {
        --container-max: 100%;
        --page-gutter: 15px;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--page-bg);
    overflow-x: clip;
}

body {
    background: var(--page-bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: clip;
    font-family: inherit;
    width: 100%;
    max-width: 100%;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }
}

section {
    padding-top: 80px;
    padding-bottom: 80px;
}
.btn-primary {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 15px var(--btn-primary-padding-x);
    border-radius: var(--btn-primary-radius);
    font-size: var(--btn-primary-font-size);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    height: var(--btn-primary-height);
    min-height: var(--btn-primary-height);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    padding: 15px 0;
    padding-left: 30px;
    padding-right: 8px;
    font-size: 18px;
    border-radius: 100px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 55px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--btn-more-gap);
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    height: var(--btn-more-height);
    min-height: var(--btn-more-height);
    padding: var(--btn-more-padding-top) 8px var(--btn-more-padding-bottom) var(--btn-more-padding-left);
    background: rgba(244, 122, 31, 0.3);
    color: #fff;
    border: none;
    border-radius: var(--btn-more-radius);
    font-size: var(--btn-more-font-size);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.service-card--orange .btn-more {
    background: rgba(0, 0, 0, 0.3);
}

.btn-projects {
    box-sizing: border-box;
    width: 248px;
    height: 55px;
    padding: 0 18px 0 22px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    font-size: 18px;
    border: none;
    border-radius: 100px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    white-space: nowrap;
}

/* =========================================================
   Единое поведение кнопок при наведении
   - все кнопки: плавный подъём + тень
   - оранжевые: затемняются
   - тёмные / полупрозрачные: становятся плотнее
   ========================================================= */
.btn-primary,
.btn-secondary,
.btn-more,
.btn-projects,
.nav-cta,
.request-form__btn {
    transition: transform 0.18s ease, box-shadow 0.18s ease,
                background-color 0.18s ease, filter 0.18s ease;
    will-change: transform;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-more:hover,
.btn-projects:hover,
.nav-cta:hover,
.request-form__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(28, 28, 26, 0.18);
}

.btn-primary:active,
.btn-secondary:active,
.btn-more:active,
.btn-projects:active,
.nav-cta:active,
.request-form__btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(28, 28, 26, 0.15);
}

/* Сплошные оранжевые — затемняются */
.btn-primary:hover,
.nav-cta:hover,
.request-form__btn:hover {
    background: #e0691a;
}

/* Полупрозрачная оранжевая (btn-more на тёмных карточках) — плотнее */
.btn-more:hover {
    background: rgba(244, 122, 31, 0.5);
}

/* Тёмные / полупрозрачные тёмные — становятся плотнее */
.btn-secondary:hover,
.btn-projects:hover,
.service-card--orange .btn-more:hover {
    background: rgba(0, 0, 0, 0.55);
}

.section-title {
    font-size: clamp(30px, calc(21.76px + 1.96vw), 50px);
    font-weight: 600;
    color: #2E2E2E;
    line-height: 1.2;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    text-align: center;
    overflow-x: clip;
}

.section-title .underline {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--orange);
}

.section-subtitle {
    font-size: 20px;
    color: black;
    max-width: 360px;
    margin: 0 auto 48px;
    line-height: 1.6;
    font-weight: 500;
}


.mark {
    position: relative;
    /*padding-bottom: 20px;*/
}

.mark::after {
    content: '';
    position: absolute;
    right: -15px;
    bottom: -5px;
    width: 111px;
    max-width: 100%;
    height: 12px;
    background: url('../../img/header-stroke.svg') no-repeat left center / contain;
}

.mark-reverse {
    position: relative;
    /*padding-bottom: 20px;*/
}

.mark-reverse::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -10px;
    width: 111px;
    max-width: 100%;
    height: 12px;
    background: url('../../img/Vector%207orange.svg') no-repeat left center / contain;
}

.mark-reverse2 {
    position: relative;
    /*padding-bottom: 20px;*/
}

.mark-reverse2::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -12px;
    width: 111px;
    max-width: 100%;
    height: 12px;
    background: url('../../img/Vector%207black.svg') no-repeat left center / contain;
}
.mark-reverse-pr {
    position: relative;
    /*padding-bottom: 20px;*/
}

.mark-reverse-pr::after {
    content: '';
    position: absolute;
    right: -85px;
    bottom: -10px;
    width: 111px;
    max-width: 100%;
    height: 12px;
    background: url('../../img/Vector%207orange.svg') no-repeat left center / contain;
}

/* Круг + белая стрелка Arrow 2.svg (размеры как у .btn-more) */
/* <i class="arrow-icon arrow-icon--orange" aria-hidden="true"></i> */
.arrow-icon {
    display: inline-block;
    width: var(--btn-more-icon-circle);
    height: var(--btn-more-icon-circle);
    flex-shrink: 0;
    vertical-align: middle;
}

.arrow-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url('../../img/Arrow%202.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--btn-more-icon-arrow) var(--btn-more-icon-arrow);
}

.arrow-icon--orange::before {
    background-color: var(--orange);
}

.arrow-icon--black::before {
    background-color: var(--black);
}

/* Кнопки «Подробнее» на оранжевых карточках: тёмный круг + Arrow 2.svg */
.btn-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--btn-more-icon-circle);
    height: var(--btn-more-icon-circle);
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(46, 46, 46, 1);
}

.btn-more-icon::after {
    content: '';
    width: var(--btn-more-icon-arrow);
    height: var(--btn-more-icon-arrow);
    background: url('../../img/Arrow%202.svg') center / contain no-repeat;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 300;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    margin-top: 15px;
    min-height: 60px;
    margin-bottom: 22px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.nav-logo {
    font-size: 20px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
    align-items: center;
}

.nav-links__cta {
    list-style: none;

}

@media (min-width: 769px) {
    .nav-links {
        flex: 1;
        justify-content: center;
    }

    .nav-links__cta {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links a .arrow-icon {
        display: none;
    }
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-links a:not(.active):hover {
    color: var(--orange);
}

.nav-links a.active {
    background: var(--orange);
    color: #fff;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav.is-menu-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav.is-menu-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.site-nav.is-menu-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-group {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 730px;
    min-height: 730px;
    padding: 0;
    background-color: #1c1c1a;
    background-image: url('../../img/hero-bg.webp');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
    border-radius: 40px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(28, 28, 26, 0.92) 0%,
        rgba(28, 28, 26, 0.6) 50%,
        rgba(28, 28, 26, 0.1) 100%
    );
    z-index: 1;
}

.hero-photo {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    z-index: 0;
    border-radius: 40px;
}

.hero-img {
    position: absolute;
    right: 0;
    top: 0;
    width: 65%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    align-self: flex-start;
    width: min(65%, 787px);
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 130px 87px 244px 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 40px;
}

.hero-title {
    font-size: 50px;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.2;
}

.hero-title .accent {
    color: var(--orange);
}

/* ПК: подчёркивание под «альпинизм», мобилка — под «промышленный» */
.hero-mark--prom::after {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --site-nav-block: 85px;
        --hero-screen-h: calc(100svh - var(--site-nav-block));
    }

    .hero-screen {
        height: var(--hero-screen-h);
        min-height: var(--hero-screen-h);
        max-height: var(--hero-screen-h);
        display: flex;
        flex-direction: column;
    }

    .hero-screen .hero-group {
        flex: 1;
        min-height: 0;
        height: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }

    .hero-screen .hero {
        flex: 1;
        height: 100%;
        min-height: 100%;
        max-height: 100%;
        background-image: none;
    }

    .hero-photo {
        background-image: url('../../img/hero-bg.webp');
        background-position: 65% 50%;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

@media (max-width: 430px) {
    .hero-mark--prom::after {
        display: block;
    }

    .hero-mark--alp::after {
        display: none;
    }
}

.hero-subtitle {
    padding-top: 30px;
    font-size: 20px;
    color: rgba(255, 255, 255, 1);
    line-height: 1.65;
    font-weight: 500;
}

.hero-btns {
    padding-top: 81px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* ПК: три карточки 308×233, наложение 12.5% (в диапазоне 10–15%) */
@media (min-width: 769px) {
    .stats-row {
        position: absolute;
        right: 0;
        bottom: -50px;
        width: auto;
        max-width: none;
        z-index: 10;
        isolation: isolate;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .stats-row__inner {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        width: auto;
        --stat-card-w: 308px;
        --stat-card-h: 233px;
        --stat-overlap: calc(var(--stat-card-w) * 0.125);
    }

    .stat-item {
        position: relative;
        box-sizing: border-box;
        flex: 0 0 var(--stat-card-w);
        width: var(--stat-card-w);
        height: var(--stat-card-h);
        min-height: var(--stat-card-h);
        max-height: var(--stat-card-h);
        padding: 0 20px 38px;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 10px;
        color: white;
        background: rgba(15, 15, 15, 0.3);
        backdrop-filter: blur(10px);
        border-radius: 30px;
    }

    .stat-item:not(:first-child) {
        margin-left: calc(-1 * var(--stat-overlap));
    }

    .stat-item:nth-child(1) {
        z-index: 1;
    }

    .stat-item:nth-child(2) {
        z-index: 2;
    }

    .stat-item:nth-child(3) {
        z-index: 3;
    }

    .stat-item:last-child {
        border-right: none;
    }

    .stat-item--highlight {
        background: var(--orange);
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        padding: 20px;
        gap: 4px;
        text-align: center;
    }

    .stat-item--highlight .stat-label {
        margin-bottom: 0;
        letter-spacing: 0.08em;
    }
}

/* Иконка Arrow 2.svg в 3-й карточке (только ПК) */
@media (min-width: 769px) {
    .stat-item--arrow::after {
        content: '';
        position: absolute;
        top: 16px;
        right: 16px;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background-color: var(--orange);
        background-image: url('../../img/Arrow%202.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: calc(64px * var(--btn-more-icon-arrow) / var(--btn-more-icon-circle)) calc(64px * var(--btn-more-icon-arrow) / var(--btn-more-icon-circle));
        pointer-events: none;
    }
}

.stat-num {
    font-size: 130px;
    font-weight: 400;
    color: rgba(244, 122, 31, 1);
    line-height: 1;
}

.stat-item--highlight .stat-num {
    color: white;
}

.stat-label {
    font-size: 20px;
    font-weight: 500;
}

.stat-item--highlight .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.stat-caption {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeUp 0.6s ease both;
}

.hero-content > *:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.3s;
}

.services {
    background: transparent;
    width: 100%;
    max-width: 100%;
}

.services-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 29px);
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.services-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.services-heading {
    padding-top: 0;
    text-align: center;
}

.services-heading .section-title {
    margin: 0;
}

.service-card {
    background: rgba(46, 46, 46, 1);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.service-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.service-card--t1 {
    height: 405px;
    min-height: 405px;
}
.services-col--left .service-card {
    margin-top: auto;
}
.service-card--t2 {
    height: 264px;
    min-height: 264px;
}

.service-card--orange {
    background: var(--orange);
}

.service-card-tag {
    font-size: 12px;
    font-weight: 500;
    /*letter-spacing: 0.08em;*/
    color: #FFFFFF;
    /*margin-bottom: 12px;*/
    text-align: right;
}

.service-card--orange .service-card-tag {
    color: rgba(255, 255, 255, 0.6);
}

.service-card-title {
    font-size: clamp(26px, calc(23.53px + 0.59vw), 32px);
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.25;
    margin-bottom: 20px;
}

.service-card--t2 .service-card-title {
    margin-bottom: 8px;
}

.service-card-desc {
    font-size: clamp(16px, calc(15.18px + 0.2vw), 18px);
    color: white;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 400;
}

.service-card--t2 .service-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card--orange .service-card-desc {
    color: rgba(255, 255, 255, 0.75);
}

/* ПК: фиксированные отступы tag / title / desc от краёв карточки */
@media (min-width: 901px) {
    .service-card {
        padding: 0;
        justify-content: flex-end;
    }

    .service-card-body {
        flex: 1;
        min-height: 0;
    }

    .service-card-tag {
        position: absolute;
        top: 15px;
        right: 28px;
        left: auto;
        margin: 0;
        text-align: right;
        z-index: 2;
    }

    .service-card-title {
        position: absolute;
        top: 30px;
        left: 28px;
        right: 28px;
        margin: 0;
        z-index: 2;
    }

    .service-card--t2 .service-card-title {
        margin-bottom: 0;
    }

    .service-card-desc {
        position: absolute;
        top: 138px;
        left: 28px;
        right: 28px;
        margin: 0;
        z-index: 2;
    }

    .service-card-footer {
        padding: 0 28px 28px;
        margin-top: 0;
    }
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    margin-top: 16px;
}

.service-card-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.service-card-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08));
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.text-orange {
    color: var(--orange);
}
.text-black {
    color: var(--black);
}

/* Полупрозрачные номера на фоне – прижаты к левому краю */
.service-card--num-01::before,
.service-card--num-02::before,
.service-card--num-03::before {
    position: absolute;
    left: -18px;                     /* одинаковый отступ от левого края */
    bottom: 50px;                      /* прижаты к низу */
    font-size: 300px;
    font-weight: 200;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    user-select: none;
}

.service-card--num-01::before { content: "01"; }
.service-card--num-02::before { content: "02"; }
.service-card--num-03::before { content: "03"; }

/* Контент карточки поверх номера (уже было, оставь как есть) */
.service-card--num-01 .service-card-body,
.service-card--num-01 .service-card-footer,
.service-card--num-02 .service-card-body,
.service-card--num-02 .service-card-footer,
.service-card--num-03 .service-card-body,
.service-card--num-03 .service-card-footer {
    position: relative;
    z-index: 1;
}

/* Мобильная версия: порядок карточек и чередование тёмная / оранжевая */
@media (max-width: 900px) {
    .services-layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .services-col {
        display: contents;
    }

    .services-heading {
        order: 0;
        width: 100%;
        position: relative;
        z-index: 2;
    }

    .services-heading .section-title {
        overflow: visible;
        text-align: left;
    }

    .services-heading .mark {
        position: relative;
        display: inline;
        overflow: visible;
    }

    .services-heading .mark::after {
        right: -8px;
        bottom: -4px;
        width: 72px;
        height: 10px;
    }

    .service-card--m1 { order: 1; }
    .service-card--m2 { order: 2; }
    .service-card--m3 { order: 3; }
    .service-card--m4 { order: 4; }
    .service-card--m5 { order: 5; }

    .service-card--t1 {
        width: 100%;
        max-width: 390px;
        height: 340px;
        min-height: 340px;
        max-height: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .service-card--t2 {
        width: 100%;
        max-width: 390px;
        height: 217px;
        min-height: 217px;
        max-height: 217px;
        margin-left: auto;
        margin-right: auto;
    }

    .services-col--left .service-card {
        margin-top: 0;
    }

    .services-layout .service-card.service-card--orange {
        background: rgba(46, 46, 46, 1);
    }

    .services-layout .service-card.service-card--m-dark {
        background: rgba(46, 46, 46, 1);
    }

    .services-layout .service-card.service-card--m-dark .service-card-tag {
        color: #fff;
    }

    .services-layout .service-card.service-card--m-dark .service-card-desc {
        color: #fff;
    }

    .services-layout .service-card.service-card--m-dark .text-orange,
    .services-layout .service-card.service-card--m-dark .text-black {
        color: var(--orange);
    }

    .services-layout .service-card.service-card--m-dark .btn-more {
        background: rgba(244, 122, 31, 0.3);
    }

    .services-layout .service-card.service-card--m-dark .btn-more-icon {
        background: var(--orange);
    }

    .services-layout .service-card.service-card--m-dark .arrow-icon--orange::before {
        background-color: var(--orange);
    }

    .services-layout .service-card.service-card--m-orange {
        background: var(--orange);
    }

    .services-layout .service-card.service-card--m-orange .service-card-tag {
        color: rgba(255, 255, 255, 0.6);
    }

    .services-layout .service-card.service-card--m-orange .service-card-desc {
        color: rgba(255, 255, 255, 0.75);
    }

    .services-layout .service-card.service-card--m-orange .text-orange,
    .services-layout .service-card.service-card--m-orange .text-black {
        color: var(--black);
    }

    .services-layout .service-card.service-card--m-orange .btn-more {
        background: rgba(0, 0, 0, 0.3);
    }

    .services-layout .service-card.service-card--m-orange .btn-more-icon,
    .services-layout .service-card.service-card--m-orange .arrow-icon--orange::before,
    .services-layout .service-card.service-card--m-orange .arrow-icon--black::before {
        background-color: rgba(46, 46, 46, 1);
    }

    /* Кнопки «Подробнее» на мобилке */
    .services-layout .btn-more {
        font-weight: 600;
    }

    /* Нумерация всех 5 карточек */
    .service-card--m1::before,
    .service-card--m2::before,
    .service-card--m3::before,
    .service-card--m4::before,
    .service-card--m5::before {
        position: absolute;
        left: -18px;
        font-weight: 200;
        line-height: 1;
        color: rgba(255, 255, 255, 0.03);
        pointer-events: none;
        z-index: 0;
        white-space: nowrap;
        user-select: none;
    }

    .service-card--m1::before { content: "01"; }
    .service-card--m2::before { content: "02"; }
    .service-card--m3::before { content: "03"; }
    .service-card--m4::before { content: "04"; }
    .service-card--m5::before { content: "05"; }

    /* 2-я и 4-я карточки — полубелая нумерация */
    .service-card--m2::before,
    .service-card--m4::before {
        color: var(--service-card-num-accent);
    }

    /* t1 (340px): номер по центру по вертикали */
    .service-card--t1.service-card--m1::before,
    .service-card--t1.service-card--m3::before,
    .service-card--t1.service-card--m5::before {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        height: auto;
        font-size: 300px;
    }

    /* t2 (217px): номер на всю высоту карточки */
    .service-card--t2.service-card--m2::before,
    .service-card--t2.service-card--m4::before {
        top: -45px;
        bottom: auto;
        transform: none;
        height: 217px;
        font-size: 295px;
        right: -18px;
        left: auto;
    }

    .service-card--m1 .service-card-body,
    .service-card--m1 .service-card-footer,
    .service-card--m2 .service-card-body,
    .service-card--m2 .service-card-footer,
    .service-card--m3 .service-card-body,
    .service-card--m3 .service-card-footer,
    .service-card--m4 .service-card-body,
    .service-card--m4 .service-card-footer,
    .service-card--m5 .service-card-body,
    .service-card--m5 .service-card-footer {
        position: relative;
        z-index: 1;
    }
}
.how {
    background: transparent;
    width: 100%;
    max-width: 100%;
}

.how-title-row {
    text-align: center;
    margin-bottom: 48px;
}

.steps-row {
    --step-overlap: 0.46;
    --step-card-w: calc(100% / (1 + 4 * (1 - var(--step-overlap))));
    --step-duration: 0.45s;
    --step-ease: cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 12px 20px 8px;
    isolation: isolate;
    overflow: visible;
}

.step-card {
    width: var(--step-card-w);
    height: 264px;
    min-height: 264px;
    max-height: 264px;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 30px;
    padding: 0 20px 24px 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    cursor: default;
    transform-origin: center bottom;
    transition: transform var(--step-duration) var(--step-ease);
    overflow: hidden;
}

.step-card:not(:first-child) {
    margin-left: calc(-1 * var(--step-card-w) * var(--step-overlap));
}

/* Боковые карточки разъезжаются, активная — без увеличения */
.steps-row.is-expanded .step-card.is-before {
    transform: translateX(-44px);
}

.steps-row.is-expanded .step-card.is-after {
    transform: translateX(44px);
}

.step-card.active {
    z-index: 10;
    transform: none;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.step-card:nth-child(1) {
    background: rgba(244, 122, 31, 1);
}

.step-card:nth-child(2) {
    background: rgba(255, 255, 255, 1);
}

.step-card:nth-child(3) {
    background: rgba(46, 46, 46, 1);
}

.step-card:nth-child(4) {
    background: rgba(135, 135, 135, 1);
}

.step-card:nth-child(5) {
    background: rgba(0, 0, 0, 1);
}

.step-card:nth-child(2) .step-num,
.step-card:nth-child(2) .step-title,
.step-card:nth-child(2) .step-desc,
.step-card:nth-child(4) .step-num,
.step-card:nth-child(4) .step-title,
.step-card:nth-child(4) .step-desc {
    color: #000;
}

.step-card .step-num {
    color: rgba(255, 255, 255, 0.65);
}

.step-card .step-title {
    color: #fff;
}

.step-card .step-desc {
    color: rgba(255, 255, 255, 0.8);
}

.step-num {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.step-title {
    margin: 75px 0 0 0;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
    flex-shrink: 0;
}

.step-desc {
    margin: 20px 0 0 0;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.65;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.how-note {
    text-align: center;
    margin-top: 28px;
    font-size: 15px;
    color: black;
    font-weight: 500;
}

.how-note a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 900px) {
    .how-title-row {
        margin-bottom: 24px;
        padding: 0 2px;
    }

    .how-note {
        padding: 0 2px;
        margin-top: 20px;
    }

    .steps-row {
        --step-overlap-v: 0.22;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        max-width: 100%;
        padding: 12px 0 8px;
        overflow: visible;
        scroll-snap-type: none;
    }

    .step-card,
    .step-card:not(:first-child) {
        width: 100%;
        max-width: 390px;
        height: 217px;
        min-height: 217px;
        max-height: 217px;
        aspect-ratio: auto;
        flex: none;
        margin-left: auto;
        margin-right: auto;
        padding: 0 15px 20px;
        border-radius: 30px;
        box-shadow: none;
        transform: none !important;
        transition: none;
        cursor: default;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .step-card:not(:first-child) {
        margin-top: calc(-1 * var(--step-overlap-v) * 217px);
    }

    .step-card:nth-child(1) { z-index: 1; }
    .step-card:nth-child(2) { z-index: 2; }
    .step-card:nth-child(3) { z-index: 3; }
    .step-card:nth-child(4) { z-index: 4; }
    .step-card:nth-child(5) { z-index: 5; }

    .step-card:nth-child(1) {
        background: rgba(244, 122, 31, 1);
    }

    .step-card:nth-child(2) {
        background: rgba(255, 255, 255, 1);
    }

    .step-card:nth-child(3) {
        background: rgba(46, 46, 46, 1);
    }

    .step-card:nth-child(4) {
        background: rgba(135, 135, 135, 1);
    }

    .step-card:nth-child(5) {
        background: rgba(0, 0, 0, 1);
    }

    .step-card.active,
    .steps-row.is-expanded .step-card,
    .steps-row.is-expanded .step-card.is-before,
    .steps-row.is-expanded .step-card.is-after,
    .steps-row.is-expanded .step-card:not(.active) {
        transform: none !important;
    }

    .step-num {
        position: absolute;
        top: 15px;
        left: 15px;
        transform: none;
        margin: 0;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.05em;
        white-space: nowrap;
        color: rgba(255, 255, 255, 0.65);
    }

    .step-title {
        width: 100%;
        margin: 60px 0 0;
        font-size: clamp(22px, 5vw, 28px);
        font-weight: 500;
        line-height: 1.3;
        color: #fff;
        text-align: center;
        transition: none;
    }

    .steps-row.is-expanded .step-card:not(.active) .step-title {
        margin-top: 60px;
        font-size: clamp(22px, 5vw, 28px);
    }

    .step-desc {
        width: 100%;
        margin: 20px 0 0;
        padding-left: 0;
        font-size: clamp(14px, 3.5vw, 16px);
        line-height: 1.5;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.8);
        text-align: center;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .step-card:nth-child(2) .step-num,
    .step-card:nth-child(2) .step-title,
    .step-card:nth-child(2) .step-desc,
    .step-card:nth-child(4) .step-num,
    .step-card:nth-child(4) .step-title,
    .step-card:nth-child(4) .step-desc {
        color: #000;
    }
}

@media (prefers-reduced-motion: reduce) {
    .step-card,
    .step-title,
    .step-desc {
        transition-duration: 0.01ms;
    }
}

.projects {
    background: transparent;
    width: 100%;
    max-width: 100%;
}

.projects-layout {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 24px);
    margin-top: 40px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

.projects-layout > * {
    min-width: 0;
}

.projects-heading {
    text-align: center;
}

.projects-heading p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr 1fr;
    gap: clamp(12px, 2vw, 20px);
    column-gap: clamp(12px, 2.5vw, 34px);
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    aspect-ratio: 874 / 548;
}

.project-card {
    width: 100%;
    min-width: 0;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}


.project-card.large {
    grid-row: 1 / 3;
    height: 100%;
    min-height: 0;
}

.project-bg {
    width: 100%;
    height: 100%;
    background: var(--dark-card2);
    position: absolute;
    inset: 0;
}

.project-bg-1 {
    background-image: url("../../img/Mask%20group/Mask%20group1.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.project-bg-2 {
    background-image: url("../../img/Mask%20group/Mask%20group2.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.project-bg-3 {
    background-image: url("../../img/Mask%20group/Mask%20group3.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.project-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
}

/* Вырез оверлея 258×68 у правого нижнего угла, скругление 30px у top-left выреза — см. img/project-cta-overlay-cutout.svg */
.project-card--has-cta .project-overlay {
    -webkit-mask-image: url('../../img/project-cta-overlay-cutout.svg');
    mask-image: url('../../img/project-cta-overlay-cutout.svg');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.project-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: white;
}

.project-info {
    position: absolute;
    inset: 0;                        /* растягиваем на всю карточку */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;     /* контент начинается сверху */
    align-items: center;
    text-align: center;
    padding: 20px;                   /* горизонтальные отступы, вертикальные зададим отдельно */
    gap: 5px;                        /* расстояние между заголовком и подзаголовком */
}
/* Большая карточка – 392px от верха */
.project-card.large .project-info {
    padding-top: 392px;
}

/* Вторая карточка (верхняя правая) – 149px */
.project-card:nth-child(2) .project-info {
    padding-top: 149px;
}

/* Третья карточка (нижняя правая) – 108px */
.project-card:nth-child(3) .project-info {
    padding-top: 108px;
}
.project-title {
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    line-height: 1.25;
    width: 100%;
    z-index: 3;
}

.project-subtitle {
    font-size: 18px;
    color: rgba(252, 252, 252, 1);
    width: 100%;
    font-weight: 400;
    z-index: 3;
}

.projects-cta {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    margin: 0;
    padding: 0;
    line-height: 0;
}
.projects-cta:before {
    display: block;
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 258px;
    height: 63px;
    background: rgba(255, 241, 231, 1);
    z-index: -1;
    border-top-left-radius: 30px;
}
/* Whole project card is a link into the objects catalog (filtered by type);
   the "Смотреть проекты" CTA sits above it and goes to all objects. */
.project-card__link {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
}
.project-card { cursor: pointer; }
.projects-cta { z-index: 5; }

/* ===========================
   БЛОК "НАМ ДОВЕРЯЮТ"
   =========================== */

.clients {
    background: transparent;
    width: 100%;
    max-width: 100%;
}

.clients-header {
    text-align: center;
    margin-bottom: 16px;
}

.clients-subtitle {
    text-align: center;
    font-size: 15px;
    color: black;
    max-width: 360px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.city {
    color: rgba(244, 122, 31, 1);
    font-weight: 600;
}

.clients-note {
    text-align: center;
    margin-top: 28px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #000;
}

/* Сетка */
.clients-grid {
    display: grid;
    grid-template-columns: minmax(0, 645fr) repeat(2, minmax(0, 308fr));
    grid-template-rows: repeat(3, 1fr);
    gap: clamp(12px, 2.5vw, 34px);
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 600px;
}

/* Общие стили карточек */
.client-card {
    position: relative;                /* для ::before */
    background: rgba(46, 46, 46, 1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-weight: 700;
    color: var(--text-light);
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;                  /* чтобы номер не вылезал */
}

/* Большая карточка */
.client-card.large {
    grid-column: 1;
    grid-row: 1 / 4;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.client-card-epigraph {
    position: absolute;
    inset: 0;
    display: flex;
    top: -15px;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 12px;
    font-size: 153px;
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-align: center;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.05);
    user-select: none;
}

/* Текст профессии */
.client-text {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    position: relative;
    z-index: 1; /* поверх номера */
}

/* ===========================
   НУМЕРАЦИЯ НА ФОНЕ
   =========================== */

.client-card--num-01::before,
.client-card--num-02::before,
.client-card--num-03::before,
.client-card--num-04::before,
.client-card--num-05::before,
.client-card--num-06::before {
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 200px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    user-select: none;
}

.client-card--num-01::before { content: "01"; }
.client-card--num-02::before { content: "02"; }
.client-card--num-03::before { content: "03"; }
.client-card--num-04::before { content: "04"; }
.client-card--num-05::before { content: "05"; }
.client-card--num-06::before { content: "06"; }

/* ПК: ритм и акценты как в services */
@media (min-width: 901px) {
    .clients-subtitle {
        font-size: clamp(14px, calc(14px + 4 * (100vw - 420px) / 1020), 18px);
        font-weight: 500;
        letter-spacing: 0.12em;
        max-width: none;
    }

    .client-card {
        border-radius: var(--radius-lg);
        align-items: flex-start;
        justify-content: flex-start;
        padding: 40px 28px 28px;
    }

    .client-card::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 45%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08));
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        pointer-events: none;
        z-index: 0;
    }

    .client-card--num-01::before,
    .client-card--num-02::before,
    .client-card--num-03::before,
    .client-card--num-04::before,
    .client-card--num-05::before,
    .client-card--num-06::before {
        top: auto;
        bottom: 10px;
        left: auto;
        right: 15px;
        transform: none;
        font-size: 100px;
        color: rgba(255, 255, 255, 0.06);
    }

    .client-text {
        font-size: clamp(22px, calc(20px + 0.59vw), 28px);
        font-weight: 500;
        text-align: left;
        line-height: 1.25;
        max-width: 72%;
        color: #fff;
    }

    .client-card.large {
        border-color: rgba(0, 0, 0, 0.2);
        padding: 0;
        align-items: stretch;
        justify-content: center;
    }

    .client-card.large::after {
        width: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.06));
        border-radius: var(--radius-lg);
    }

    .client-card-epigraph {
        font-size: var(--client-epigraph-font-size);
        align-items: center;
        top: 0;
    }
}

/* Мобилка: как на ПК, все карточки тёмные */
@media (max-width: 900px) {
    .clients-subtitle {
        font-size: clamp(14px, calc(14px + 4 * (100vw - 420px) / 1020), 18px);
        font-weight: 500;
        letter-spacing: 0.12em;
        margin-bottom: 24px;
        max-width: none;
    }

    .clients-note {
        margin-top: 20px;
        padding: 0 2px;
    }

    .client-card:not(.large) {
        width: 100%;
        max-width: 390px;
        min-height: 120px;
        margin-left: auto;
        margin-right: auto;
        background: rgba(46, 46, 46, 1);
        border-radius: var(--radius-lg);
        align-items: flex-start;
        justify-content: flex-start;
        padding: 20px 20px 20px;
    }

    .client-card::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 45%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08));
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        pointer-events: none;
        z-index: 0;
    }

    .client-card--num-01::before,
    .client-card--num-02::before,
    .client-card--num-03::before,
    .client-card--num-04::before,
    .client-card--num-05::before,
    .client-card--num-06::before {
        top: auto;
        bottom: 8px;
        left: auto;
        right: 17px;
        transform: none;
        font-size: 64px;
        color: rgba(255, 255, 255, 0.06);
    }

    .client-text {
        font-size: clamp(18px, calc(16px + 1.2vw), 22px);
        font-weight: 500;
        text-align: left;
        line-height: 1.3;
        max-width: 72%;
        color: #fff;
    }

    .client-card.large {
        padding: 0;
        align-items: stretch;
        justify-content: center;
    }

    .client-card.large::after {
        width: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.06));
        border-radius: var(--radius-lg);
    }
}

/* ===========================
   Интерактивная команда: картинка слева + кнопки справа
   =========================== */
.client-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 2;
}
.client-card.large.has-image .client-card-epigraph,
.client-card.large.has-image::after {
    opacity: 0;
}

/* Карточки-кнопки специальностей */
button.client-card {
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: inherit;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
/* Ховер — лишь слегка затемняем тёмную карточку, текст остаётся читаемым */
.client-card[data-team-image]:not(.is-active):hover {
    background: rgba(34, 34, 32, 1);
}
.client-card.is-active {
    background: var(--orange);
}
.client-card.is-active .client-text {
    color: #fff;
}
.client-card.is-active::before {
    color: rgba(255, 255, 255, 0.16);
}

/* Мобилка: только текстовые блоки — без большой картинки и без интерактива */
@media (max-width: 900px) {
    .client-card.large {
        display: none;
    }
    button.client-card {
        cursor: default;
    }
    .client-card[data-team-image]:hover,
    .client-card.is-active {
        background: rgba(46, 46, 46, 1);
    }
    .client-card.is-active .client-text {
        color: #fff;
    }
}

.faq {
    background: transparent;
    width: 100%;
    max-width: 100%;
}

.faq-title {
    margin-bottom: 32px;
    text-align: center;
}

.faq-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid transparent;
}

.faq-item__panel {
    display: none;
}

.faq-item__trigger {
    width: 100%;
    margin: 0;
    border: none;
    background: rgba(46, 46, 46, 1);
    border-radius: clamp(40px, calc(40px + 60 * (100vw - 420px) / 1020), 100px);
    padding: clamp(12px, calc(12px + 12 * (100vw - 420px) / 1020), 24px) clamp(16px, calc(16px + 16 * (100vw - 420px) / 1020), 32px);
    height: clamp(56px, calc(56px + 24 * (100vw - 420px) / 1020), 80px);
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    font-size: clamp(16px, calc(16px + 6 * (100vw - 420px) / 1020), 22px);
    font-weight: 500;
    color: white;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.faq-item__label {
    flex: 1;
}

.faq-item.active .faq-item__trigger {
    background: var(--orange);
    color: #fff;
}

.faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.faq-item.active .faq-chevron {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.faq-answer {
    position: relative;
    overflow: hidden;
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-sizing: border-box;
    height: 508px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

/* «АСМ» на весь блок, под текстом ответа */
.faq-answer-brand {
    position: absolute;
    inset: 0;                        /* растягиваем на всю карточку */
    display: flex;
    align-items: center;             /* вертикально по центру */
    justify-content: center;         /* горизонтально по центру */
    font-size: 310px;  /* огромный шрифт, чтобы точно заполнить ширину */
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 0;
    user-select: none;
    white-space: nowrap;             /* не переносить текст */
    width: auto;                     /* сбрасываем фиксированную ширину */
    height: auto;                    /* сбрасываем фиксированную высоту */
}

.faq-answer p {
    position: relative;
    z-index: 1;
    width: 100%;
    font-size: 22px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Мобильный аккордеон: ответ выезжает из выбранной кнопки */
@media (max-width: 900px) {
    .faq-title {
        margin-bottom: 28px;
    }

    .faq-title.section-title {
        font-size: clamp(32px, calc(28px + 2.2vw), 42px);
    }

    .faq-list {
        gap: 14px;
    }

    .faq-item {
        overflow: visible;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .faq-item__trigger {
        justify-content: space-between;
        width: 100%;
        background: rgba(46, 46, 46, 1);
        font-size: clamp(17px, calc(17px + 5 * (100vw - 390px) / 510), 22px);
        height: auto;
        min-height: clamp(60px, calc(60px + 20 * (100vw - 390px) / 510), 80px);
        padding: clamp(14px, calc(14px + 10 * (100vw - 390px) / 510), 24px) clamp(18px, calc(18px + 14 * (100vw - 390px) / 510), 32px);
        border-radius: clamp(44px, calc(44px + 56 * (100vw - 390px) / 510), 100px);
    }

    .faq-item.active .faq-item__trigger,
    .faq-item.is-open .faq-item__trigger {
        background: var(--orange);
        color: #fff;
    }

    .faq-item__trigger::after {
        content: '';
        flex-shrink: 0;
        width: 12px;
        height: 12px;
        margin-left: 10px;
        border-right: 2.5px solid currentColor;
        border-bottom: 2.5px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.25s ease;
    }

    .faq-item.is-open .faq-item__trigger {
        border-radius: clamp(44px, calc(44px + 56 * (100vw - 390px) / 510), 100px) clamp(44px, calc(44px + 56 * (100vw - 390px) / 510), 100px) 0 0;
    }

    .faq-item.is-open .faq-item__trigger::after {
        transform: rotate(-135deg) translateY(2px);
    }

    .faq-item__panel {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease;
    }

    .faq-item__panel[hidden] {
        display: none;
    }

    .faq-item.is-open .faq-item__panel {
        display: grid;
        grid-template-rows: 1fr;
    }

    .faq-item__panel-inner {
        overflow: hidden;
        background: rgba(28, 28, 26, 1);
        border-radius: 0 0 clamp(44px, calc(44px + 56 * (100vw - 390px) / 510), 100px) clamp(44px, calc(44px + 56 * (100vw - 390px) / 510), 100px);
    }

    .faq-item__panel-inner p {
        margin: 0;
        padding: 18px 20px 20px;
        font-size: clamp(16px, calc(16px + 6 * (100vw - 390px) / 510), 22px);
        font-weight: 400;
        line-height: 1.65;
        color: var(--text-light);
    }

    .faq-answer--desktop {
        display: none;
    }
}

@media (min-width: 901px) {
    .faq-item.is-open .faq-item__panel {
        display: none;
    }
}

/* ===========================
   ФУТЕР И ФОРМА ЗАЯВКИ
   =========================== */

/* ---------- Секция запроса расчёта ---------- */
.request-form {
    margin: 80px 0 40px;
    background: rgba(46, 46, 46, 1);
    border-radius: var(--radius-lg);
    padding: 48px clamp(20px, 6vw, 60px);
    color: #fff;
    box-sizing: border-box;
}

.request-form__inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.request-form__title {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    text-transform: uppercase;
    color: var(--orange);
}

.request-form__subtitle {
    font-size: clamp(14px, 2vw, 16px);
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
}

.request-form__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.request-form__field {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    text-align: left;
}

.request-form__label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

.request-form__input {
    width: 100%;
    max-width: 480px;
    height: 56px;
    padding: 0 20px;
    border: none;
    border-radius: 30px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    outline: none;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
}

.request-form__input::placeholder {
    color: rgba(255,255,255,0.5);
}

.request-form__input:focus {
    box-shadow: 0 0 0 2px var(--orange);
}

.request-form__btn {
    width: 100%;
    max-width: 480px;
    height: 56px;
    border: none;
    border-radius: 100px;
    background: var(--orange);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.request-form__btn:hover {
    background: #e0691a;
}

.request-form__agreement {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    line-height: 1.5;
}

/* ---------- Футер (центрированный, с соцсетями) ---------- */
.site-footer {
    margin: 15px 0 clamp(24px, 4vw, 48px);
    background: rgba(46, 46, 46, 1);
    border-radius: 30px;
    padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 48px);
    color: #fff;
    box-sizing: border-box;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.site-footer__logo {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.site-footer__tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: -16px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 32px;
}

.site-footer__nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.site-footer__nav a:hover {
    color: var(--orange);
}

.site-footer__socials {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.social:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.social svg {
    width: 20px;
    height: 20px;
}

.site-footer__copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin: 4px 0 0;
}

/* Оранжевый пин (используется в блоке «Контакты») */
.footer-pin {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    background: url('../../img/pin-orange.svg') center / contain no-repeat;
}

/* ---------- Отдельный блок «Контакты» (структура как в референсе, светлая тема) ---------- */
.contacts {
    margin: clamp(60px, 8vw, 110px) 0;
}
.contacts__heading {
    margin-bottom: clamp(28px, 4vw, 48px);
}
.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 90px);
    align-items: start;
}

/* Подписи разделов СВЯЗЬ / АДРЕСА */
.contacts__label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    margin: 0 0 16px;
}
.contacts__label--addr {
    margin-top: 40px;
}

/* Телефон с иконкой */
.contacts__phone {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}
.contacts__phone:hover {
    color: var(--orange);
}
.contacts__phone-ic {
    color: var(--orange);
    flex-shrink: 0;
}
.contacts__schedule {
    font-size: 16px;
    color: var(--grey);
    margin: 14px 0 0;
}

/* Адреса: город жирным + улица ниже */
.contacts__addresses {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.contacts__address {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.contacts__address .footer-pin {
    width: 20px;
    height: 20px;
    margin-top: 4px;
}
.contacts__address-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.contacts__city {
    font-size: 21px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.2;
}
.contacts__street {
    font-size: 15px;
    color: var(--grey);
}

/* Правая часть — карточка формы */
.contacts__form {
    background: #fff;
    border: 1px solid rgba(28, 28, 26, 0.12);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 44px);
}
.contacts__form-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    margin: 0 0 12px;
}
.contacts__form-heading {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
    margin: 0 0 28px;
}

/* Поля: подпись сверху + инпут-подчёркивание */
.contacts .request-form__form {
    align-items: stretch;
    gap: 24px;
    max-width: none;
}
.contacts__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.contacts__field-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey);
}
.contacts .request-form__input {
    width: 100%;
    height: auto;
    max-width: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(28, 28, 26, 0.18);
    border-radius: 0;
    padding: 8px 2px;
    color: var(--dark);
    font-size: 18px;
}
.contacts .request-form__input::placeholder {
    color: rgba(28, 28, 26, 0.35);
}
.contacts .request-form__input:focus {
    box-shadow: none;
    border-bottom-color: var(--orange);
}

/* Кнопка — как везде на сайте: сплошной оранжевый, скруглённая (pill) */
.contacts .request-form__btn.contacts__btn {
    height: 60px;
    max-width: none;
    margin-top: 8px;
    border-radius: 100px;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.contacts__agreement {
    font-size: 13px;
    color: var(--grey);
    margin: 10px 0 0;
    line-height: 1.5;
    white-space: nowrap;
}
@media (max-width: 520px) {
    .contacts__agreement { white-space: normal; }
}
.contacts .request-form__notice {
    max-width: none;
    text-align: left;
    margin: 0 0 18px;
}

@media (max-width: 768px) {
    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

/* Inner content pages (e.g. service / project detail pages). */
.page {
    padding: 80px 40px 90px;
}

.page__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.page__title {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    margin-bottom: 32px;
    font-weight: 700;
}

.page__body {
    font-size: 18px;
    line-height: 1.7;
}

/* Text blocks stay at a comfortable reading width... */
.page__body p,
.page__body ul,
.page__body ol,
.page__body h2,
.page__body h3 {
    max-width: 760px;
}

/* ...while the hero image spans the full content width. */
.page__body > img:first-child {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 36px;
    border-radius: 14px;
}

.page__body h2 {
    font-size: 26px;
    margin: 32px 0 12px;
    font-weight: 600;
}

.page__body h3 {
    font-size: 21px;
    margin: 24px 0 10px;
    font-weight: 600;
}

.page__body p {
    margin: 0 0 16px;
}

.page__body ul,
.page__body ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.page__body li {
    margin-bottom: 6px;
}

.page__body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}

.page__body a {
    color: var(--color-accent, #ff6a00);
}

/* Request-form submission notice */
.request-form__notice {
    margin: 0 auto 18px;
    max-width: 520px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
}
.request-form__notice--ok {
    background: rgba(46, 204, 113, .15);
    border: 1px solid rgba(46, 204, 113, .5);
    color: #1c7a45;
}
.request-form__notice--error {
    background: rgba(255, 92, 92, .15);
    border: 1px solid rgba(255, 92, 92, .5);
    color: #b22;
}

@media (max-width: 768px) {
    .page { padding: 64px 16px 64px; }
    .page__body p,
    .page__body ul,
    .page__body ol,
    .page__body h2,
    .page__body h3 { max-width: none; }
}

/* ============ Objects list ============ */
.objects,
.object {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 40px 90px;
}

.objects__head {
    margin-bottom: 32px;
}

.objects__title {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 10px;
    color: var(--dark);
}

.objects__title .mark {
    color: var(--orange);
}

.objects__subtitle {
    font-size: 18px;
    color: var(--grey);
    margin: 0;
}

/* Filter */
.objects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-chip {
    border: 1px solid rgba(28, 28, 26, 0.15);
    background: transparent;
    color: var(--dark);
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.filter-chip:hover {
    border-color: var(--orange);
}

.filter-chip.is-active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

/* Grid */
.objects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.object-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--dark);
    box-shadow: 0 6px 24px rgba(28, 28, 26, 0.06);
    transition: transform .18s, box-shadow .18s;
}

/* The explicit display above would otherwise override the [hidden] attribute
   the filter sets, so re-assert it. */
.object-card[hidden] {
    display: none;
}

.object-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(28, 28, 26, 0.12);
}

.object-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--dark-card) center/cover no-repeat;
}

.object-card__count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 100px;
}

.object-card__body {
    padding: 18px 20px 22px;
}

.object-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.object-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--orange);
    background: rgba(244, 122, 31, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
}

.object-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.object-card__location {
    font-size: 14px;
    color: var(--grey);
}

.objects-empty {
    color: var(--grey);
    font-size: 17px;
    padding: 30px 0;
}

/* ============ Object detail ============ */
.object__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.object__back {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
}

.object__back:hover {
    text-decoration: underline;
}

.object__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.object__title {
    font-size: clamp(30px, 4.5vw, 50px);
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 8px;
    color: var(--dark);
}

.object__location {
    font-size: 18px;
    color: var(--grey);
    margin: 0 0 32px;
}

.object-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 44px;
}

.object-gallery__item {
    aspect-ratio: 4 / 3;
    border: none;
    padding: 0;
    border-radius: 12px;
    background: var(--dark-card) center/cover no-repeat;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}

.object-gallery__item:hover {
    opacity: .92;
    transform: scale(1.01);
}

.object__section {
    margin-bottom: 32px;
    max-width: 820px;
}

.object__section h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--dark);
}

.object__text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--dark-grey);
}

.object__text p {
    margin: 0 0 14px;
}

.object__text ul {
    margin: 0 0 14px;
    padding-left: 22px;
}

.object__text li {
    margin-bottom: 6px;
}

.object__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 12px;
}

/* ============ Lightbox ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 86vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox__close {
    top: 24px;
    right: 24px;
    font-size: 26px;
}

.lightbox__nav--prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav--next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 900px) {
    .objects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .objects,
    .object {
        padding: 56px 16px 64px;
    }

    .objects-grid {
        grid-template-columns: 1fr;
    }

    .object-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .lightbox__nav {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 1100px) and (min-width: 901px) {
    .service-card--t1,
    .service-card--t2 {
        height: auto;
        min-height: 240px;
    }
}

@media (max-width: 1100px) {
    .services-layout {
        grid-template-columns: 1fr;
    }

    .projects-layout {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        aspect-ratio: auto;
        grid-template-rows: auto;
    }

    .project-card.large {
        grid-row: auto;
        height: auto;
        min-height: 400px;
    }

    .project-card:not(.large) {
        min-height: 264px;
    }

    .clients-grid {
        aspect-ratio: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .client-card.large {
        grid-row: auto;
        aspect-ratio: 645 / 420;
        height: auto;
    }

    .client-card:not(.large) {
        min-height: 90px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .site-nav {
        flex-wrap: nowrap;
        align-items: center;
        overflow: visible;
        padding: 10px 16px 10px 20px;
        margin-top: 15px;
        margin-bottom: 10px;
        border-radius: 100px;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav-toggle {
        position: relative;
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-left: 4px;
        border: none;
        border-radius: 20px;
        overflow: hidden;
        background: url('../../img/toggle.svg') center / cover no-repeat;
    }

    .site-nav.is-menu-open .nav-toggle {
        overflow: hidden;
        background: url('../../img/Right.svg') center / cover no-repeat;
    }

    .nav-toggle__bar {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        z-index: 201;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
        margin: 0;
        padding: 0 10px;
        box-sizing: border-box;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 24px;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.28s ease,
        padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0.35s;
    }

    .site-nav.is-menu-open .nav-links {
        max-height: min(80vh, 480px);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 15px 10px;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.28s ease,
        padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s;
    }

    .nav-links li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-links a {
        position: relative;
        display: flex;
        align-items: center;
        width: min(720px, 100%);
        max-width: 720px;
        height: 50px;
        box-sizing: border-box;
        margin: 0 auto;
        border-radius: 28px;
        font-size: 16px;
        font-weight: 600;
        color: #fff;
        text-align: center;
        text-decoration: none;
        background: rgba(0, 0, 0, 0.2);
    }

    .nav-links a.active {
        background: rgba(244, 122, 31, 0.6);
        color: #fff;
    }

    .nav-links a .arrow-icon {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: var(--btn-more-icon-circle);
        height: var(--btn-more-icon-circle);
    }

    .nav-links a:not(.active) .arrow-icon::before {
        background-color: var(--orange);
        background-image: url('../../img/Arrow%202.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: var(--btn-more-icon-arrow) var(--btn-more-icon-arrow);
        border-radius: 50%;
    }

    .nav-links a.active .arrow-icon {
        display: none;
    }

    .nav-links a.active::after {
        content: '';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: url('../../img/Button.svg') center / contain no-repeat;
        pointer-events: none;
    }

    .nav-links__cta {
        width: 100%;
        margin-top: 0;
    }

    .nav-links__cta .nav-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        width: min(720px, 100%);
        max-width: 720px;
        height: 50px;
        margin: 0 auto;
        padding: 0 22px;
        box-sizing: border-box;
        border-radius: 25px;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
    }

    @media (prefers-reduced-motion: reduce) {
        .nav-links,
        .site-nav.is-menu-open .nav-links {
            transition-duration: 0.01ms;
        }
    }

    section {
        padding: 48px 0;
        width: 100%;
        box-sizing: border-box;
    }

    section.hero {
        padding: 0;
    }

    .hero-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 0;
    }

    .hero {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        flex: 1;
        min-height: 0;
        height: auto;
        border-radius: 24px;
        margin-bottom: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .hero-photo {
        position: absolute;
        inset: 0;
        height: 100%;
        width: 100%;
        min-height: 0;
        z-index: 0;
        border-radius: 24px;
        transform: translateZ(0);
    }

    .hero-content {
        position: relative;
        z-index: 2;
        flex: 1;
        width: 100%;
        min-height: 0;
        height: 100%;
        padding: 20px 16px 0;
        border-radius: 24px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        background: rgba(0, 0, 0, 0.5);
    }

    .hero-title {
        font-size: clamp(22px, 5.5vw, 30px);
    }

    .hero-subtitle {
        font-size: 13px;
        padding-top: 12px;
    }

    .hero-subtitle br,
    .hero-subtitle__extra {
        display: none;
    }

    .hero-btns {
        padding-top: 12px;
        margin-bottom: 0;
        gap: 6px;
    }

    /* stats-row на планшете/мобилке скрыт — вертикальный стек ломал вёрстку */
    .stats-row {
        display: none;
    }

    .services,
    .how,
    .projects,
    .clients,
    .faq {
        width: 100%;
    }

    .services-layout,
    .projects-layout,
    .faq-layout,
    .how-title-row,
    .how-note,
    .clients-header,
    .clients-subtitle,
    .clients-note {
        width: 100%;
        max-width: 100%;
    }

    .section-title {
        max-width: 100%;
    }

    .projects-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-heading {
        width: 100%;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .project-card {
        width: 100%;
        max-width: 100%;
        height: 264px;
    }

    .project-card.large {
        grid-row: auto;
        height: 400px;
    }

    .project-card.large .project-info {
        padding-top: 300px;
    }

    .project-card:nth-child(2) .project-info,
    .project-card:nth-child(3) .project-info {
        padding-top: 120px;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .faq-list,
    .faq-answer {
        width: 100%;
        max-width: 100%;
    }

    .clients-grid {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .client-card.large {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 645 / 420;
        height: auto;
        min-height: 0;
        grid-column: 1;
        grid-row: auto;
    }

    .client-card.large .client-card-epigraph {
        font-size: min(var(--client-epigraph-font-size, 108px), 22vw);
    }

    .clients-subtitle {
        max-width: 100%;
        padding: 0 4px;
    }

    .site-footer {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 280px;
        margin: 12px 0 0;
        border-radius: 24px;
    }

    /* Типографика: уменьшенные размеры на мобильных */
    .nav-logo {
        font-size: 18px;
    }

    .section-title {
        font-size: clamp(28px, 6vw, 36px);
    }

    .section-subtitle {
        font-size: 16px;
    }

    .nav-cta {
        font-size: 14px;
        padding: 8px 16px;
    }

    .service-card-tag {
        font-size: 11px;
    }

    .service-card-title {
        font-size: 26px;
    }

    .service-card-desc {
        font-size: 15px;
    }

    .how-note {
        font-size: 12px;
    }

    .project-tag {
        font-size: 11px;
    }

    .project-title {
        font-size: 26px;
    }

    .project-subtitle {
        font-size: 15px;
    }

    .clients-subtitle {
        font-size: 13px;
    }

    .client-card {
        font-size: 17px;
    }

    .mark {
        position: relative;
        /*padding-bottom: 20px;*/
    }

    .mark::after {
        content: '';
        position: absolute;
        right: -15px;
        bottom: -5px;
        width: 50px;
        max-width: 100%;
        height: 12px;
        background: url('../../img/header-stroke.svg') no-repeat left center / contain;
    }

    .hero-title .mark::after {
        right: -10px;
        bottom: 0;
        width: 42px;
        height: 9px;
        transform: rotate(-2.5deg);
        transform-origin: left bottom;
    }
}

@media (max-width: 430px) {
    .site-nav,
    .hero-group,
    section,
    .services,
    .how,
    .projects,
    .clients,
    .faq,
    .site-footer {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .nav-links {
        left: 0;
        right: 0;
        width: 100%;
    }

    .nav-links a,
    .nav-links__cta .nav-cta {
        width: 100%;
        max-width: 100%;
    }

    .hero {
        overflow: hidden;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly; /* равномерно распределяет группу текста и кнопку */
        padding: 24px 16px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        border-radius: 24px;
    }

    /* Группа заголовок + подзаголовок — идут плотно друг за другом */
    .hero-text-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px; /* расстояние между заголовком и подзаголовком */
        text-align: center;
    }

    .hero-title {
        width: 100%;
        margin: 0;
        font-size: 32px;
        font-weight: 600;
        line-height: 1.2;
    }

    .hero-subtitle {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.5;
        color: rgba(255, 255, 255, 1);
    }

    .hero-btns {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 0;
        /* убираем position: absolute и bottom */
    }

    .hero-btns .btn-secondary {
        display: none;
    }

    .section-title {
        font-size: clamp(24px, 5.5vw, 30px);
    }

    .section-subtitle {
        font-size: 14px;
    }

    .stat-num {
        font-size: 25px;
    }

    .stat-label,
    .stat-caption {
        font-size: 11px;
    }

    .service-card-title {
        font-size: 26px;
    }

    .service-card-desc {
        font-size: 16px;
    }

    /* Отступ от hero – обнуляем лишние верхние марджины и задаём нужный */
    .services {
        margin-top: 47px;
    }

    .services-layout {
        margin-top: 0; /* убираем десктопный отступ, чтобы не суммировался */
    }

    /* Заголовок с подчерком – нужный шрифт */
    .section-title--header-stroke {
        font-size: 30px;
        font-weight: 600;
        text-align: left;
        overflow: visible;
    }

    .services-heading .mark::after {
        right: -10px;
        bottom: -5px;
        width: 80px;
        height: 10px;
    }

    .project-title {
        font-size: 22px;
    }

    .project-subtitle {
        font-size: 14px;
    }

    .step-title {
        font-size: 26px;
    }

    .step-desc {
        font-size: 16px;
    }

    .step-num {
        font-size: 10px;
    }

    .client-card {
        font-size: 15px;
    }

    .btn-primary {
        font-weight: 500;
        width: 205px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .nav-cta {
        padding: 7px 12px;
        font-size: 13px;
    }

    .nav-logo {
        font-size: 20px;
        font-weight: 600;
    }

    .mark {
        position: relative;
        padding-bottom: 5px;
    }

    .mark::after {
        content: '';
        position: absolute;
        right: -25px;
        bottom: -5px;
        width: 110px;
        max-width: 100%;
        height: 12px;
        background: url('../../img/header-stroke.svg') no-repeat left center / contain;
    }

    .hero-title .mark::after {
        right: -18px;
        bottom: -2px;
        width: 86px;
        height: 10px;
        transform: rotate(-2.5deg);
        transform-origin: left bottom;
    }
}
