:root {
    --bg: #ffffff;
    --ink: #171717;
    --muted: #6f6f6f;
    --line: #eaeaea;
    --paper: #ffffff;
    --accent: #e6c4af; /* тёплый бежевый */
    --accent-ink: #2b1a12;
    --radius: 18px;
}

@font-face {
    font-display: swap;
    font-family: 'SF Pro Display';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/sf-pro-display_regular.woff') format('woff');
    src: url('../fonts/sf-pro-display_regular.otf') format('opentype');
}

@font-face {
    font-display: swap;
    font-family: 'SF Pro Display';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/sf-pro-display_semibold.woff') format('woff');
    src: url('../fonts/sf-pro-display_semibold.otf') format('opentype');
}

@font-face {
    font-display: swap;
    font-family: 'SF Pro Display';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/sf-pro-display_bold.woff') format('woff');
    src: url('../fonts/sf-pro-display_bold.otf') format('opentype');
}

@font-face {
    font-display: swap;
    font-family: 'Bebas';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/BebasNeue.ttf') format('truetype');
}

/* @font-face {
    font-display: swap;
    font-family: 'Bebas';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/Bebas-Regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Bebas';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Bebas-Bold.woff2') format('woff2');
} */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    border: none;
    font-weight: normal;
    &::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }
    &::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }

    &::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
    }

    &::-webkit-scrollbar-thumb:hover {
        background: var(--corp);
    }
}

html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family: 'SF Pro Display', system-ui, -apple-system, Segoe UI, Roboto,
        Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}

/* header */
.header {
    .container {
        height: 72px;
        display: flex;
        align-items: center;
        gap: 24px;
        padding: 0 24px;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        position: sticky;
        top: 0;
        z-index: 10;
        .logo {
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }
}

.pc {
    display: block !important;
}

.mobile {
    display: none !important;
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-link {
    color: var(--ink);
    text-decoration: none;
}
.nav-link.phone {
    white-space: nowrap;
}
.nav-btn {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}

h1 {
    font-size: 70px;
    margin: 0;
}

h1,
h2 {
    font-family: 'Bebas';
    font-weight: 900;
}

/* sections */
section {
    padding-top: 80px;
}
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}
.h2 {
    font-size: 44px;
    line-height: 1.1;
}

.flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    p {
        font-size: 16px;
        color: #000;
        max-width: 40%;
    }
}

.grid {
    display: grid;
    gap: 18px;
}
.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.card img {
    display: block;
    width: 100%;
    height: auto;
}
.card figcaption {
    color: #444;
    font-size: 14px;
}

/* tiles (Find Your Style) */
.tile {
    overflow: hidden;
    background: #fff;
}
.tile-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
}
.t-title {
    font-weight: 700;
    padding: 12px 0 2px;
}
.t-sub {
    color: #9a9a9a;
    font-size: 13px;
}

a {
    text-decoration: none;
    color: #000;
}

/* pager */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    div {
        display: flex;
        align-items: center;
        /* justify-content: center; */
        gap: 12px;
        width: 100%;
        max-width: 500px;
    }
}
.progress {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
}
.progress i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #d9c0af, #c79f7c);
}

/* new collection */
.sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 42px;
    p {
        max-width: 50%;
    }
}

.tall img {
    aspect-ratio: 16/10;
    object-fit: cover;
}
.tall.slim img {
    aspect-ratio: 3/4;
}

/* history */
.hist-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.2fr 1fr;
}
.hist-left {
    .muted {
        font-family: 'Bebas';
        padding-left: 60px;
    }
    .mark {
        width: 38px;
        height: 38px;
        border: 1px solid var(--ink);
        border-radius: 8px;
        display: grid;
        place-items: center;
        font-weight: 700;
        margin-bottom: 12px;
    }
}
.quote {
    font-size: 54px;
    color: var(--accent);
    line-height: 1;
    margin-top: 50px;
    margin-bottom: 10px;
}
.ceo {
    margin-top: 14px;
}

.hist-right {
    position: relative;
    min-height: 520px;
}
.stack {
    position: absolute;
    margin: 0;
}
.stack.top {
    top: 0;
    right: 0;
    width: min(62%, 520px);
}
.stack.bottom {
    bottom: 0;
    left: 10%;
    width: min(55%, 480px);
}
.stack img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f6f6f6;
}
.note {
    position: absolute;
    top: -14px;
    right: -14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    color: #666;
}

/* footer */
.footer {
    margin-top: 100px;
    padding: 28px;
    text-align: center;
    color: #8a8a8a;
    border-top: 1px solid var(--line);
}

/* responsive */
@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: 1fr;
        align-items: flex-end;
    }
    .hero-title {
        font-size: 48px;
    }
    .hero-help {
        justify-self: start;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .mosaic-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hist-grid {
        grid-template-columns: 1fr;
    }
    .hist-right {
        min-height: 480px;
    }
}
@media (max-width: 720px) {
    .header {
        gap: 14px;
    }
    .logo {
        font-size: 14px;
    }
    .nav-link.phone {
        display: none;
    }
    .hero-bg {
        aspect-ratio: 9/11;
    }
    .hero-inner {
        padding: 18px;
    }
    .hero-title {
        font-size: 38px;
    }
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .mosaic-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    .stack.top {
        position: relative;
        width: 100%;
        right: auto;
    }
    .stack.bottom {
        position: relative;
        width: 85%;
        left: auto;
        margin-top: 16px;
    }
    .hero-dots {
        bottom: 14px;
    }
}

/* сетка как в макете */
.grid.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 16px;
    grid-auto-rows: 360px;
    .caption {
        margin: 0;
        font: 600 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Arial,
            sans-serif;
    }

    .card {
        display: flex;
        border: none;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none;
        /* &:nth-child(1) {
            grid-column: 1/3;
        }
        &:nth-child(6) {
            grid-column: 3/5;
        } */
        img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            background: #e9e9e9; /* плейсхолдер */
            aspect-ratio: 3/4; /* по умолчанию «высокая» */
        }
    }
}

.close {
    cursor: pointer;
    background-color: var(--bg);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 8px;
    top: 8px;
    padding: 8px;
    transition: 0.3s ease;
    border: 2px solid transparent;
    img {
        width: 16px;
        height: 16px;
        transition: 0.3s ease;
    }
    &:hover {
        background-color: var(--bg);
    }
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 6px;
    gap: 6px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* затемнённый фон */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.5);
    .modal-content {
        /* background: #fff; */
        position: relative;
        max-width: 90%;
        max-height: 80%;
        margin: auto;
    }

    .buttons {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 12px 0;
    }

    .modal-content img {
        width: 100%;
        height: auto;
        display: block;
        max-width: 50vw;
    }

    /* Кнопки навигации */
    .prev,
    .next {
        font-size: 40px;
        font-weight: bold;
        color: #000;
        background-color: var(--bg);
        cursor: pointer;
        padding: 10px;
        user-select: none; /* чтобы текст не выделялся */
        border-radius: 4px;
    }
    .prev {
        left: 10px;
    }
    .next {
        right: 10px;
    }

    /* При наведении делаем стрелки чуть ярче */
    .prev:hover,
    .next:hover,
    .close:hover {
        color: #ccc;
    }
}

/* адаптив */
@media (max-width: 1199.98px) {
    .grid.products {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 719.98px) {
    .grid.products {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid.products .card.wide {
        grid-column: span 2;
    }
}
@media (max-width: 439.98px) {
    .grid.products {
        grid-template-columns: 1fr;
    }
    .grid.products .card {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    body {
        .pc {
            display: none !important;
        }
        .mobile {
            display: block !important;
        }
        .modal-content img {
            max-width: 90vw !important;
        }
        h1 {
            font-size: 40px !important;
        }
        .h2 {
            font-size: 40px;
        }
        .btn {
            font-size: 14px;
            padding: 10px 20px;
        }
        .sec-head {
            margin-bottom: 12px;
            p {
                display: none;
            }
        }
        section {
            padding-top: 50px;
        }
        .t-title {
            padding-top: 10px;
            padding-bottom: 0;
        }
        .grid.products {
            grid-auto-rows: 200px;
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
            grid-gap: 6px;
        }
        .footer {
            padding: 14px;
            margin-top: 40px;
        }
    }
}
