/* HERO */
.hero {
    width: 100%;
}

.hero__slider {
    width: 100%;
    height: clamp(520px, 80vh, 820px);
    position: relative;
    overflow: hidden;
}

/* Слайды */
.hero__slide {
    position: relative;
    height: 100%;
}

/* Картинка на весь слайд */
.hero__media,
.hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__media img {
    object-fit: cover;
}

/* Затемнение для читабельности текста (как на макете) */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(51, 39, 26, 0) 0%, rgba(51, 39, 26, 0.6) 100%);
    pointer-events: none;
}

/* Контент */
.hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: min(1196px, calc(100% - 48px));
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;

    color: var(--color-text-light);
    text-align: center;
}

.hero__title {
    margin: 0;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xxl);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    margin: 0;
    font-weight: var(--font-weight-regular);
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.45;
    opacity: 0.9;
}

.hero__actions {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

/* Пример базовой кнопки (если у тебя уже есть — можно убрать) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: transform var(--transition-fast), background var(--transition-fast);
    font-weight: var(--font-weight-medium);
}

.btn--primary {
    background: var(--color-button-primary-bg);
    color: var(--color-button-primary-text);
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* Кнопки-стрелки HERO (chevron как на скрине) */
.hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;

    width: 32px;
    height: 64px;

    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;

    /* чтобы легко кликалось, но без “пятна” */
    display: grid;
    place-items: center;
}

.hero__nav:hover {
    opacity: 0.9;
}

.hero__nav:active {
    opacity: 0.75;
}

/* позиционирование */
.hero__nav--prev {
    left: 24px;
}

.hero__nav--next {
    right: 24px;
}

/* убираем старую стрелку */
.hero__nav::before {
    content: none;
}

/* рисуем chevron через SVG (цвет #F6F3EA) */
.hero__nav::after {
    content: "";
    width: 32px;
    height: 64px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px 64px;

    /* ">" */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='64' viewBox='0 0 32 64'%3E%3Cpath d='M6 6 L26 32 L6 58' fill='none' stroke='%23F6F3EA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* "<" для prev */
.hero__nav--prev::after {
    transform: scaleX(-1);
}

/* адаптивные отступы как было */
@media (max-width: 1024px) {
    .hero__nav--prev {
        left: 16px;
    }

    .hero__nav--next {
        right: 16px;
    }
}

/* Пагинация полосками */
/* Пагинация */
.hero__pagination {
    position: absolute;
    left: 50% !important;
    bottom: 40px !important;
    transform: translateX(-50%);
    z-index: 3;

    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

/* Полоски фиксированной ширины */
.hero__pagination .swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    margin: 0 !important;

    background: #F6F3EA33;
    opacity: 1;
    transition: background 0.3s ease;
}

/* Активная */
.hero__pagination .swiper-pagination-bullet-active {
    background: #CA942C;
}


@media (min-width:1921px) {
    .hero__title {
        font-size: var(--font-size-banner);
    }

    .hero__subtitle {
        font-size: var(--font-size-xl);
    }

    .btn--primary {
        font-size: var(--font-size-lg);
    }
}

/* Адаптив */
@media (max-width: 1024px) {
    .hero__nav--prev {
        left: 16px;
    }

    .hero__nav--next {
        right: 16px;
    }

    .hero__content {
        width: min(900px, calc(100% - 40px));
    }
}

@media (max-width: 768px) {

    .hero__slider {
        height: clamp(520px, 78vh, 720px);
    }

    .hero__content {
        width: calc(100% - 32px);
        gap: 12px;
    }

    .hero__nav {
        width: 40px;
        height: 40px;
    }

    .hero__pagination {
        width: calc(100% - 32px);
        bottom: 16px;
    }
}


@media (max-width: 426px) {

    .hero__nav {
        display: none !important;
    }
}

/* =========================================
   PROJECTS GRID (FULL WIDTH, EQUAL TILES)
   ========================================= */

.projects {
    width: 100%;
    padding: 0;
    /* как на макете — без внутренних отступов */
}

/* убираем ограничение контейнера */
.projects__inner {
    width: 100%;
    margin: 0;
}

/* сетка 2 колонки на десктопе, плитки одинаковые */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    /* как на макете — стык плиток */
    width: 100%;
}

/* одинаковый размер всех карточек */
.projects-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text-light);

    /* одинаковая высота как у “плиток” */
    height: clamp(200px, 24vw, 360px);
    min-height: 200px;

    /* убираем “wide/tall” логику */
    aspect-ratio: auto;
    border-radius: 0;

    /* reveal (initial state) */
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    transition:
        opacity 700ms ease,
        transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

.projects-card.is-inview {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* модификаторы больше не нужны */
.projects-card--tall,
.projects-card--wide {
    height: clamp(200px, 24vw, 360px);
    min-height: 200px;
}

.projects-card__media,
.projects-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.projects-card__media img {
    object-fit: cover;
    transform: scale(1.02);
    transition: transform var(--transition-slow);
}

.projects-card__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 0% 100%, rgba(51, 39, 26, 0.78) 0%, rgba(51, 39, 26, 0) 55%),
        linear-gradient(180deg, rgba(51, 39, 26, 0) 0%, rgba(51, 39, 26, 0.55) 100%);
    pointer-events: none;
}

.projects-card:hover .projects-card__media img {
    transform: scale(1.05);
}

.projects-card__content {
    position: absolute;
    inset: 0;
    padding: clamp(14px, 2vw, 40px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.projects-card__title {
    margin: 0;
    font-weight: var(--font-weight-bold);
    font-size: clamp(22px, 2.2vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.projects-card__btn {
    position: relative;
    flex: 0 0 auto;
    height: 44px;
    width: 44px;
    border-radius: 12px;

    background: transparent;
    border: 1px solid #F6F3EA33;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0;

    overflow: hidden;

    transition:
        width 340ms cubic-bezier(0.2, 0.9, 0.2, 1),
        border-radius 340ms cubic-bezier(0.2, 0.9, 0.2, 1),
        background 260ms ease,
        border-color 260ms ease;
}


.projects-card__btn::after {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M6 3l5 5-5 5' fill='none' stroke='%23F6F3EA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transition:
        transform 340ms cubic-bezier(0.2, 0.9, 0.2, 1),
        background-image 260ms ease;
}

/* Текст внутри кнопки остаётся как у тебя (прячется/показывается) */
.projects-card__btn-text {
    max-width: 0;
    opacity: 0;
    transform: translateX(-6px);
    white-space: nowrap;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    transition:
        opacity 220ms ease,
        transform 340ms cubic-bezier(0.2, 0.9, 0.2, 1),
        max-width 340ms cubic-bezier(0.2, 0.9, 0.2, 1);
}


/* Hover: расширяем кнопку + заливка */
.projects-card:hover .projects-card__btn,
.projects-card:focus-visible .projects-card__btn {
    width: 186px;
    border-radius: 999px;
    justify-content: flex-start;
    padding: 0 14px;

    gap: 10px;


    background: rgba(246, 243, 234, 0.95);
    border-color: rgba(246, 243, 234, 0.95);
}

/* Hover: стрелка темнеет (как текст) */
.projects-card:hover .projects-card__btn::after,
.projects-card:focus-visible .projects-card__btn::after {
    transform: translateX(2px);

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M6 3l5 5-5 5' fill='none' stroke='%2333271A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.projects-card:hover .projects-card__btn-text,
.projects-card:focus-visible .projects-card__btn-text {
    max-width: 140px;
    opacity: 1;
    transform: translateX(0);
}

.projects-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* =========================================
   PROJECTS — фиксированная высота от 1920px
   ========================================= */

@media (min-width: 1920px) {

    .projects-card,
    .projects-card--tall,
    .projects-card--wide {
        height: 540px;
        min-height: 540px;
    }
}

@media (max-width: 1920px) {

    .projects-card,
    .projects-card--tall,
    .projects-card--wide {
        height: 460px;
        min-height: 460px;
    }

}

@media (max-width: 1440px) {

    .projects-card,
    .projects-card--tall,
    .projects-card--wide {
        height: 340px;
        min-height: 340px;
    }
}

/* мобилка — в колонку */
@media (max-width: 768px) {
    .projects__grid {
        grid-template-columns: 1fr;
    }

    .projects-card,
    .projects-card--tall,
    .projects-card--wide {
        height: clamp(200px, 55vw, 320px);
    }

    .projects-card__title {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .projects-card {
        transition: none;
        transform: none;
        opacity: 1;
    }

    .projects-card__media img {
        transition: none;
    }

    .projects-card__btn,
    .projects-card__btn-text {
        transition: none;
    }
}


/* ========= ABOUT (О компании) ========= */

.about {
    position: relative;
    overflow: hidden;

    /* Высота/плотность можно подстроить под макет */
    min-height: clamp(520px, 52vw, 720px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    /* На широких: 256px; плавно уменьшаем до 16px */
    --side-pad: clamp(16px, 10vw, 256px);
}

/* Правая часть — изображение/3D-рендер */
.about__media {
    position: absolute;
    inset: 0;
    background: url("../img/about-bg.jpg") right center / cover no-repeat;
    z-index: 0;
}

/* Градиент-оверлей слева (как в ТЗ) */
.about::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(273.33deg,
            rgba(246, 243, 234, 0) 13.11%,
            rgba(246, 243, 234, 0.95) 48.59%);
    pointer-events: none;
}

/* Контентная колонка */
.about__content {
    position: relative;
    z-index: 2;

    grid-column: 1 / 2;
    align-self: center;

    padding-left: var(--side-pad);
    padding-right: clamp(16px, 3vw, 64px);
    padding-block: clamp(24px, 5vw, 72px);

    max-width: 100%;
}

.about__tag {
    font-family: var(--font-family-primary, Inter, sans-serif);
    letter-spacing: 0.08em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-accent, #CA942C);
    margin-bottom: 16px;
    font-size: clamp(14px, 1vw, 22px);
}

.about__title {
    font-family: var(--font-family-primary, Inter, sans-serif);
    font-weight: 700;
    font-size: clamp(36px, 4.2vw, 72px);
    line-height: 1.05;
    color: var(--color-text-primary, #33271a);
    margin: 0 0 24px;
}

.about__text {
    font-family: var(--font-family-primary, Inter, sans-serif);
    font-size: clamp(16px, 1.6vw, 26px);
    line-height: 1.6;
    color: var(--color-text-secondary, #634626);
    display: grid;
    gap: 18px;
    max-width: 620px;
}

.about__text strong {
    color: var(--color-text-primary, #33271a);
}

.about__pill {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid rgba(202, 148, 44, 0.6);
    border-radius: 999px;
    color: var(--color-accent, #CA942C);
    white-space: nowrap;
}

/* ====== Адаптив ====== */
@media (max-width: 1024px) {
    .about {
        min-height: clamp(520px, 68vw, 760px);
    }
}

@media (max-width: 768px) {
    .about {
        grid-template-columns: 1fr;
        min-height: 560px;
    }

    /* На мобилке: полная заливка “белым” с альфой 20%,
     контент по центру */
    .about::before {
        background: rgba(246, 243, 234, 0.7);
    }

    .about__content {
        grid-column: 1 / -1;
        text-align: center;

        padding-left: 16px;
        padding-right: 16px;
        padding-block: 56px;

        margin: 0 auto;
        max-width: 560px;
    }

    .about__text {
        margin: 0 auto;
        font-size: 16px;
    }

    .about__media {
        background-position: center;
    }
}

/* =========================================
   WORKS (Наши работы) — REWRITE
   ========================================= */

.works {
    width: 100%;
    background: #2c241a;
    /* база под секцию */
    color: #F6F3EA;
}

.works__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50/50 */
    width: 100%;

    /* отступы по краям: 256 на широких, уменьшаем, минимум 16 */
    --side-pad: clamp(16px, 10vw, 256px);
}

.works__left {
    position: relative;
    padding-left: var(--side-pad);
    padding-right: clamp(16px, 4vw, 80px);
    padding-block: clamp(40px, 5vw, 88px);

    background:
        linear-gradient(273.33deg,
            rgba(44, 36, 26, 1) -56.89%,
            rgba(44, 36, 26, 0.95) 48.59%),
        url("../img/works-left-bg.jpg") center / cover no-repeat
}

.works__tag {
    font-family: var(--font-family-primary);
    letter-spacing: 0.08em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
    font-size: clamp(14px, 1vw, 22px);
}

.works__title {
    margin: 0 0 22px;
    font-family: var(--font-family-primary);
    font-weight: 700;
    font-size: clamp(40px, 4.2vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

/* Tabs */
.works__tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-bottom: 18px;
}

.works__tab {
    appearance: none;
    border: 1px solid rgba(246, 243, 234, 0.22);
    background: transparent;
    color: rgba(246, 243, 234, 0.75);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.works__tab.is-active {
    border-color: rgba(202, 148, 44, 0.75);
    color: #F6F3EA;
    background: rgba(202, 148, 44, 0.14);
}

.works__all {
    margin-left: 6px;
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    opacity: 0.95;
    white-space: nowrap;
}

/* Small badge */
.works__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--color-accent);
    color: #2b2217;
    font-weight: 600;
    margin: 8px 0 14px;
}

.works__lead {
    margin: 0 0 16px;
    font-size: clamp(16px, 1.35vw, 22px);
    line-height: 1.45;
    color: rgba(246, 243, 234, 0.95);
    max-width: 640px;
}

.works__text {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(246, 243, 234, 0.58);
    max-width: 640px;
}

.works__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.works__price-label {
    color: rgba(246, 243, 234, 0.65);
    margin-bottom: 6px;
}

.works__price-value {
    font-weight: 700;
    font-size: clamp(34px, 3.6vw, 52px);
    letter-spacing: -0.02em;
    line-height: 1;
}

.works__price-value span {
    font-size: 0.6em;
    opacity: 0.9;
}

.works__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 14px;
    background: var(--color-accent);
    color: #2b2217;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.works__cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* RIGHT (Slider) */
.works__right {
    position: relative;
    overflow: hidden;
    background: #2c241a;
}

/* Делает правый блок по высоте равным левому на десктопе */
.works__right,
.works__slider {
    min-height: 100%;
}

.works__slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Если контента слева мало — задаём приятную высоту секции */
@media (min-width: 769px) {
    .works__inner {
        min-height: clamp(560px, 46vw, 760px);
    }
}

.works__slide,
.works__slide img {
    width: 100%;
    height: 100%;
}

.works__slide img {
    object-fit: cover;
}

/* NAV ARROWS (градиенты/бордер как в ТЗ) */
.works__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 48px;
    height: 48px;
    padding: 0;
    cursor: pointer;

    border: 1px solid transparent;
    border-radius: 14px;

    background: radial-gradient(58.1% 126.4% at 56.04% 48.44%,
            rgba(99, 70, 38, 0.2) 0%,
            rgba(99, 70, 38, 0.2) 71.15%,
            rgba(99, 70, 38, 0.02) 100%);

    border-image-source: radial-gradient(87.22% 428.83% at 91.65% 27.44%,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(0, 0, 0, 0.1) 35.1%,
            rgba(255, 255, 255, 0.1) 96.99%);

    display: grid;
    place-items: center;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.works__nav:hover {
    opacity: 0.92;
}

.works__nav:active {
    opacity: 0.78;
    transform: translateY(-50%) scale(0.98);
}

.works__nav--prev {
    left: 24px;
}

.works__nav--next {
    right: 24px;
}

.works__nav::after {
    content: "";
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M7 4l6 5-6 5' fill='none' stroke='%23F6F3EA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.works__nav--prev::after {
    transform: scaleX(-1);
}

/* Pagination (полоски как hero) */
.works__pagination {
    position: absolute;
    left: 50% !important;
    bottom: 40px !important;
    transform: translateX(-50%);
    z-index: 5;

    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.works__pagination .swiper-pagination-bullet {
    width: 40px;
    height: 2px;
    border-radius: 999px;
    margin: 0 !important;

    background: #F6F3EA33;
    opacity: 1;
    transition: background 0.3s ease;
}

.works__pagination .swiper-pagination-bullet-active {
    background: #CA942C;
}

/* Adaptive */
@media (max-width: 1024px) {
    .works__nav--prev {
        left: 16px;
    }

    .works__nav--next {
        right: 16px;
    }
}

@media (max-width: 768px) {

    /* В колонку: сначала левый блок, ниже слайдер */
    .works__inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .works__left {
        text-align: center;
        padding-inline: 16px;
        padding-block: 48px;
    }

    .works__tabs {
        justify-content: center;
    }

    .works__lead,
    .works__text {
        margin-left: auto;
        margin-right: auto;
    }

    .works__bottom {
        justify-content: center;
    }

    /* Слайдер видимый и ниже */
    .works__right {
        display: block;
    }

    .works__slider {
        height: clamp(260px, 60vw, 420px);
    }

    .works__pagination {
        bottom: 16px !important;
    }
}


/* =========================================
   PROJECTS REVEAL: bottom -> top (visible)
   ========================================= */

.projects {
    overflow-x: clip;
}

@supports not (overflow-x: clip) {
    .projects {
        overflow-x: hidden;
    }
}

/* стартовое состояние задаём ТОЛЬКО когда JS добавил класс */
.projects-card.is-reveal-init {
    opacity: 0;
    transform: translateY(48px);
    transition:
        opacity 650ms ease,
        transform 900ms cubic-bezier(0.2, 0.9, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

/* когда вошла в viewport */
.projects-card.is-reveal-init.is-inview {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .projects-card.is-reveal-init {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


.works__left {
  /* ...твои текущие паддинги и т.д. */

  background:
    linear-gradient(273.33deg,
      rgba(44, 36, 26, 1) -56.89%,
      rgba(44, 36, 26, 0.95) 48.59%),
    var(--works-left-bg, none) center / cover no-repeat;
}