* { box-sizing: border-box; }

:root {
    --bg: #e8e6df;
    --text: #1c1c1c;
    --accent: #8e0029;
    --card: #efede7;
    --black: #050505;
    --container: min(1920px, 100vw);
    --content: min(1680px, calc(100vw - 96px));
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter Regular', sans-serif;
    /*font-family: 'Bounded';*/
    /*font-family: Arial, Helvetica, sans-serif;*/
}

body {
    min-height: 100vh;
}

.page {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    background: var(--bg);
    overflow: hidden;
}

.hero-header {
    background: var(--black);
    color: #fff;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: start;
    padding: 44px clamp(36px, 4vw, 72px) 38px;
    min-height: 220px;
}

.brand h1 {
    font-family: Bounded, serif;
    margin: 0 0 10px;
    color: var(--accent);
    font-size: clamp(48px, 3vw, 92px);
    line-height: 0.92;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand p {
    font-family: Bounded, serif;
    margin: 0;
    font-size: clamp(34px, 2.3vw, 56px);
    line-height: 1.02;
    font-weight: 500;
}

.hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 22px;
    padding-top: 6px;
    height: 100%;
}

.socials {
    display: flex;
    gap: 10px;
      position: absolute;
  right: 20px;
  top: 10px;
}

.socials a i {
  color: #FFF;
  font-size: 2rem;
}

.socials a i:hover {
  color: var(--accent);
}


.social-box {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(255,255,255,0.85);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stats {
    list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.stats li {
    font-size: clamp(20px, 1vw, 28px);
    line-height: 1.32;
    margin-bottom: 12px;
    white-space: nowrap;
}

.offer {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: end;
    padding: 54px clamp(36px, 4vw, 72px) 50px;
}

.offer-copy h2 {
    margin: 0 0 26px;
    font-size: clamp(42px, 3vw, 82px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.offer-list {
    margin: 50px 0;
    padding-left: 22px;
    max-width: 900px;
}

.offer-list li {
    margin-bottom: 14px;
    font-size: clamp(24px, 1.65vw, 34px);
    line-height: 1.16;
}

.offer-list li::marker {
    color: var(--accent);
}

.offer-result {
    margin: 18px 0 0;
    font-size: clamp(40px, 2.5vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
    max-width: 920px;
}

.price {
    text-align: right;
    padding-bottom: 8px;
}

.price-old {
    font-size: clamp(34px, 2vw, 52px);
    color: #4a4a4a;
    text-decoration: line-through;
    line-height: 1;
    transform: translateY(18px);
}

.price-new {
    font-size: clamp(96px, 6vw, 178px);
    line-height: 0.9;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.06em;
}

.photo-section {
    position: relative;
    background: var(--black);
    min-height: 1040px;
}

.photo {
    height: 1040px;
    background-image: url("../images/pavel.png");
    background-size: cover;
    background-position: center 1370px;
    filter: grayscale(100%);
}

.cards {
    position: absolute;
    left: clamp(36px, 4vw, 72px);
    right: clamp(36px, 4vw, 72px);
    top: 58%;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr);
    gap: 24px;
    max-width: 980px;
}

.info-card {
    background: rgba(239, 237, 231, 0.96);
    border-radius: 28px;
    padding: 34px 36px 30px;
}

.info-card h3 {
    margin: 0 0 20px;
    font-size: clamp(30px, 2vw, 48px);
    line-height: 1.06;
    font-weight: 800;
}

.info-card p {
    margin: 0 0 12px;
    font-size: clamp(22px, 1.45vw, 30px);
    line-height: 1.18;
    color: #363636;
}

.start-word {
    position: absolute;
    left: -25px;
    bottom: -43px;
    width: calc(100% + 24px);
    color: var(--accent);
    font-size: clamp(140px, 16vw, 305px);
    line-height: 0.88;
    font-weight: 500;
    letter-spacing: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
    font-family: Bounded, serif;
}



/*.gallery {*/
/*    background: var(--bg);*/
/*    padding: 140px 10px 0 10px;*/
/*    display: grid;*/
/*    grid-template-columns: repeat(9, 1fr);*/
/*    gap: 10px;*/
/*    align-items: end;*/
/*    overflow: hidden;*/
/*}*/



    .gallery {
        padding: 140px 0 0 0;
        width: 100%;
        overflow: hidden;
        position: relative;
    }

    .gallery-track {
        display: flex;
        align-items: flex-end;
        gap: 4px;
        width: max-content;
        will-change: transform;
    }


.gallery img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    filter: grayscale(100%);
    border-radius: 1rem;
}

.gallery img:nth-child(2),
.gallery img:nth-child(4),
.gallery img:nth-child(7),
.gallery img:nth-child(10),
.gallery img:nth-child(12),
.gallery img:nth-child(16){
    height: 200px;
}

.gallery img:nth-child(9) {
    height: 250px;
}

@media (max-width: 1440px) {
    .photo-section {
        min-height: 860px;
    }

    .photo {
        height: 860px;
    }

    .gallery {
        padding-top: 112px;
    }

    .gallery img {
        height: 220px;
    }

    .gallery img:nth-child(2),
    .gallery img:nth-child(6),
    .gallery img:nth-child(8) {
        height: 188px;
    }

    .gallery img:nth-child(9) {
        height: 198px;
    }
}

@media (max-width: 1024px) {
    .hero-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-side {
        align-items: flex-start;
    }

    .stats {
        text-align: left;
    }

    .stats li {
        white-space: normal;
    }

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

    .price {
        text-align: left;
    }

    .photo-section {
        min-height: auto;
        padding-bottom: 80px;
    }

    .photo {
        height: 720px;
    }

    .cards {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        grid-template-columns: 1fr;
        max-width: none;
        margin: -140px 32px 0;
    }

    .start-word {
        bottom: -8px;
    }


    .gallery {
        grid-template-columns: repeat(3, 1fr);
        padding-top: 86px;
    }

    .gallery img,
    .gallery img:nth-child(2),
    .gallery img:nth-child(6),
    .gallery img:nth-child(8),
    .gallery img:nth-child(9) {
        height: 220px;
    }
}

@media (max-width: 640px) {
    :root {
        --content: calc(100vw - 32px);
    }

    .hero-header {
        padding: 24px 16px 22px;
        min-height: 0;
    }

    .social-box {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        font-size: 12px;
    }

    .offer {
        padding: 28px 16px 32px;
    }

    .offer-list {
        margin-left: 10px;
        padding-left: 18px;
    }

    .photo {
        height: 460px;
    }

    .cards {
        margin: -78px 16px 0;
        gap: 16px;
    }

    .info-card {
        padding: 24px 22px 22px;
        border-radius: 20px;
    }

    .start-word {
        left: -4px;
        bottom: 4px;
        font-size: 82px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
        padding-top: 42px;
    }

    .gallery img,
    .gallery img:nth-child(2),
    .gallery img:nth-child(6),
    .gallery img:nth-child(8),
    .gallery img:nth-child(9) {
        height: 160px;
    }
}