@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/Manrope-Variable.ttf") format("truetype-variations");
}

:root {
    --accent: #ff623b;
    --accent-hover: #ff5429;
    --gray: #e8e8e8;
    --text: #000;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 350;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-weight: 550;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.container--narrow {
    max-width: 760px;
}

.text-center {
    text-align: center;
}

.button {
    display: inline-flex;
    min-height: 54px;
    padding: 0 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 550;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--orange {
    color: #fff;
    background: var(--accent);
}

.button--orange:hover {
    background: var(--accent-hover);
}

.button--light {
    color: #000;
    background: #e0e0e0;
}

.button--light:hover {
    color: #fff;
    background: var(--accent-hover);
}

/* Первый экран: полноэкранное фото и затемнение 40% для читаемого текста. */
.hero {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: url("../images/hero.jpg") center center / cover no-repeat;
}

.hero__shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 840px;
    padding-block: 80px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(46px, 6vw, 76px);
    font-weight: 550;
    line-height: 1.08;
}

.hero p {
    max-width: 740px;
    margin: 30px auto 0;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.45;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 38px;
}

.hero__arrow {
    position: absolute;
    z-index: 1;
    bottom: 34px;
    left: 50%;
    width: 30px;
    height: 30px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translateX(-50%) rotate(45deg);
    animation: arrow-pulse 1.8s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% { opacity: .45; transform: translate(-50%, -6px) rotate(45deg); }
    50% { opacity: 1; transform: translate(-50%, 4px) rotate(45deg); }
}

.notice {
    padding: 60px 0;
    background: #e0e0e0;
}

.notice h2 {
    margin: 0 0 18px;
    font-size: 34px;
    line-height: 1.2;
}

.notice p {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
}

.saga {
    padding: 90px 0 75px;
    background: var(--gray);
}

.saga__lead {
    margin: 0 0 42px;
    font-size: 20px;
    font-weight: 550;
    line-height: 1.4;
    text-transform: uppercase;
}

.saga h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.3;
}

.saga__proof,
.saga__time {
    margin: 34px 0 0;
    font-size: 26px;
    line-height: 1.42;
}

.catalog-heading {
    padding-top: 60px;
}

.catalog-heading h2 {
    margin: 0;
    font-size: clamp(40px, 5vw, 52px);
    font-weight: 550;
    line-height: 1.2;
}

.catalog-message {
    padding: 90px 0;
    text-align: center;
}

.catalog-message h3 {
    margin: 0 0 14px;
    font-size: 32px;
}

.catalog-message p {
    font-size: 18px;
    line-height: 1.5;
}

.product {
    padding: 120px 0 60px;
}

.product--gray {
    background: var(--gray);
}

.product__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.product__gallery {
    min-width: 0;
}

.product__inner--image-right .product__gallery {
    order: 2;
}

.product__inner--image-right .product__info {
    order: 1;
}

.product__image-button {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.product__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .35s ease;
}

.product__image-button:hover .product__image {
    transform: scale(1.015);
}

.product__placeholder {
    display: grid;
    width: 100%;
    aspect-ratio: 1 / 1;
    place-items: center;
    color: #777;
    background: #ddd;
    font-size: 22px;
    text-align: center;
}

.product__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}

.product__thumb {
    flex: 0 0 76px;
    padding: 2px;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
}

.product__thumb.is-active {
    border-color: #222;
}

.product__thumb img {
    width: 68px;
    height: 68px;
    object-fit: cover;
}

.product__info {
    padding: 25px 40px;
}

.product__info h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 550;
    line-height: 1.25;
}

.product__buy {
    margin-top: 30px;
}

.product__description {
    margin-top: 32px;
    font-size: 20px;
    line-height: 1.55;
}

.features {
    padding: 150px 0 165px;
    background: var(--gray);
}

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

.feature {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 24px;
}

.feature__dot {
    width: 28px;
    height: 28px;
    margin-top: 3px;
    border-radius: 50%;
    background: #000;
}

.feature h2 {
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.25;
}

.feature p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}

.free-patterns {
    padding: 60px 0 135px;
}

.free-patterns__label {
    margin: 0 0 15px;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: .18em;
}

.free-patterns h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.2;
}

.free-patterns__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.free-card {
    position: relative;
    display: block;
    overflow: hidden;
}

.free-card > span {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 7px 12px;
    color: #fff;
    background: #ff4a4a;
    font-size: 14px;
}

.free-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .35s ease;
}

.free-card:hover img {
    transform: scale(1.025);
}

.contacts {
    position: relative;
    display: grid;
    min-height: 90vh;
    place-items: center;
    background: url("../images/contacts.jpg") center center / cover no-repeat;
}

.contacts__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.contacts__email {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 550;
}

.contacts__vk {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #000;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.lightbox {
    max-width: min(94vw, 1200px);
    max-height: 94vh;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, .88);
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: -42px;
    right: 0;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 38px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .product {
        padding: 75px 0 55px;
    }

    .product__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product__inner--image-right .product__gallery,
    .product__inner--image-right .product__info {
        order: initial;
    }

    .product__info {
        padding: 0;
    }

    .features {
        padding: 90px 0;
    }

    .features__grid,
    .free-patterns__grid {
        grid-template-columns: 1fr;
    }

    .free-patterns__grid {
        max-width: 560px;
        margin-inline: auto;
        margin-top: 45px;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(calc(100% - 30px), var(--container));
    }

    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin-inline: auto;
        margin-top: 34px;
    }

    .notice,
    .saga {
        padding: 55px 0;
    }

    .saga__lead br,
    .saga__proof br {
        display: none;
    }

    .saga__proof,
    .saga__time {
        font-size: 21px;
    }

    .catalog-heading {
        padding-top: 50px;
    }

    .product__info h3 {
        font-size: 28px;
    }

    .product__description {
        font-size: 18px;
    }

    .free-patterns {
        padding-bottom: 80px;
    }

    .free-patterns h2 {
        font-size: 34px;
    }

    .contacts {
        min-height: 70vh;
    }

    .contacts__email {
        font-size: 33px;
    }
}
