:root {
    color-scheme: dark;
    --bg: #101413;
    --bg-soft: #171d1b;
    --panel: #1f2724;
    --panel-light: #2a3430;
    --text: #edf2ed;
    --muted: #aebbb2;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #c7a66a;
    --accent-soft: rgba(199, 166, 106, 0.14);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(199, 166, 106, 0.16), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(62, 83, 76, 0.52), transparent 42rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand__mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #050505;
    box-shadow: var(--shadow);
}

.brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
}

.site-nav {
    display: flex;
    gap: 10px;
    color: var(--muted);
}

.site-nav a,
.back-link,
.button {
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a {
    padding: 10px 16px;
}

.site-nav a:hover,
.back-link:hover {
    border-color: rgba(199, 166, 106, 0.42);
    color: var(--text);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: stretch;
    margin-top: 26px;
    padding: 38px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent),
        rgba(23, 29, 27, 0.82);
    box-shadow: var(--shadow);
}

.hero--compact {
    display: block;
    max-width: 760px;
}

.hero h1,
.product-info h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero p:not(.eyebrow),
.description {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero__content {
    align-self: center;
}

.hero__badge {
    position: relative;
    display: grid;
    min-height: 320px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(199, 166, 106, 0.18), transparent 56%),
        var(--panel);
}

.hero__badge::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(31, 39, 36, 0.92), rgba(31, 39, 36, 0.28)),
        linear-gradient(0deg, rgba(16, 20, 19, 0.55), transparent 55%);
}

.hero__badge img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    opacity: 0.5;
    filter: saturate(0.78) contrast(0.95);
}

.hero__badge-copy {
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
    color: var(--text);
    text-align: center;
    text-shadow: 0 14px 32px rgba(0, 0, 0, 0.72);
}

.hero__badge-copy span,
.hero__badge-copy strong,
.hero__badge-copy small {
    display: block;
}

.hero__badge-copy span {
    color: rgba(237, 242, 237, 0.92);
    font-size: 7rem;
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.12em;
}

.hero__badge-copy strong {
    margin-top: 8px;
    color: var(--accent);
    font-size: 1.7rem;
}

.hero__badge-copy small {
    margin-top: 8px;
    color: rgba(237, 242, 237, 0.76);
    font-weight: 700;
    letter-spacing: 0.12em;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    margin-top: 18px;
    padding: 13px 20px;
    background: var(--accent-soft);
    color: var(--text);
    font-weight: 700;
}

.button:hover {
    transform: translateY(-1px);
    border-color: rgba(199, 166, 106, 0.5);
    background: rgba(199, 166, 106, 0.22);
}

.catalog,
.product-page,
.contacts {
    margin-top: 68px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-heading h2,
.contacts h2,
.info-block h2 {
    margin: 0;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.7rem);
    letter-spacing: -0.05em;
}

.contacts h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
}

.carousel {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 14px;
    align-items: center;
}

.carousel__viewport {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.carousel__track {
    display: flex;
    gap: 18px;
    transition: transform 280ms ease;
}

.product-card {
    flex: 0 0 calc((100% - 36px) / 3);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel);
}

.product-card img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    opacity: 0.92;
}

.product-card__body {
    padding: 22px;
}

.product-card p {
    margin: 0 0 8px;
    color: var(--muted);
}

.subtitle {
    display: inline-flex;
    width: fit-content;
    margin: 14px 0 18px;
    padding: 7px 12px;
    border: 1px solid rgba(199, 166, 106, 0.24);
    border-radius: 999px;
    background: var(--accent-soft);
    color: #ead9b9;
    font-size: 1rem;
    font-style: italic;
}

.product-card h3 {
    min-height: 58px;
    margin: 0 0 18px;
    font-size: 1.32rem;
    line-height: 1.25;
}

.product-card span {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 800;
}

.carousel__control {
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.carousel__control:disabled {
    cursor: default;
    opacity: 0.35;
}

.back-link {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 10px 16px;
    color: var(--muted);
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
    gap: 34px;
    align-items: start;
}

.gallery,
.product-info,
.contacts {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(31, 39, 36, 0.78);
    box-shadow: var(--shadow);
}

.gallery {
    padding: 14px;
}

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

.gallery__main {
    width: 100%;
    max-height: 680px;
    border-radius: 24px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.gallery__thumb {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
}

.gallery__thumb img {
    width: 100%;
    height: 72px;
    object-fit: cover;
}

.product-info {
    padding: 34px;
}

.product-info h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
}

.soft-card,
.notice-card,
.price-panel,
.info-block {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.035);
}

.soft-card {
    padding: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.notice-card {
    padding: 16px 18px;
    border-color: rgba(199, 166, 106, 0.28);
    background: rgba(199, 166, 106, 0.1);
    color: #ead9b9;
    line-height: 1.65;
}

.price-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

.price-panel span {
    color: var(--muted);
}

.price-panel strong {
    color: var(--accent);
    font-size: 1.8rem;
}

.info-block {
    padding: 18px;
}

.info-block h2 {
    margin-bottom: 14px;
    font-size: 1rem;
}

.clean-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chips span {
    padding: 8px 10px;
    border: 1px solid rgba(199, 166, 106, 0.24);
    border-radius: 999px;
    background: var(--accent-soft);
    color: #ead9b9;
    font-size: 0.9rem;
}

.contacts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: start;
    margin-bottom: 28px;
    padding: 30px;
}

.contacts p {
    max-width: 660px;
    color: var(--muted);
    line-height: 1.7;
}

.contacts-address {
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px 18px;
    justify-content: start;
    align-items: start;
    color: var(--muted);
    font-style: normal;
}

.contacts-marketplaces {
    display: grid;
    gap: 10px;
    align-items: start;
    min-width: 0;
}

.contacts-messengers {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    font-weight: 700;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-link:hover {
    transform: translateY(-1px);
    border-color: rgba(199, 166, 106, 0.42);
    background: rgba(199, 166, 106, 0.12);
}

.contact-link svg,
.contact-link img {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.contact-link img {
    border-radius: 5px;
    object-fit: cover;
}

.contacts-address .contacts-messengers .contact-link img[src*="max-icon"] {
    border-radius: 9px;
}

@media (max-width: 380px) {
    .contacts-address {
        grid-template-columns: minmax(0, 1fr);
    }
}

.lightbox {
    width: min(96vw, 1280px);
    max-width: none;
    height: min(92vh, 900px);
    max-height: none;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(8, 10, 9, 0.94);
    box-shadow: var(--shadow);
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
}

.lightbox[open] {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 12px;
}

.lightbox img {
    width: 100%;
    max-height: 88vh;
    object-fit: contain;
}

.lightbox__close,
.lightbox__control {
    border: 1px solid var(--line);
    background: rgba(31, 39, 36, 0.82);
    color: var(--text);
    cursor: pointer;
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.7rem;
}

.lightbox__control {
    width: 48px;
    height: 72px;
    margin: 0 auto;
    border-radius: 999px;
    font-size: 2.2rem;
}

@media (max-width: 920px) {
    .hero,
    .product-layout,
    .contacts {
        grid-template-columns: 1fr;
    }

    .product-card {
        flex-basis: calc((100% - 18px) / 2);
    }

    .hero__badge {
        min-height: 230px;
    }

    .hero__badge img {
        min-height: 230px;
    }

    .hero__badge-copy span {
        font-size: 5.4rem;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
    }

    .site-header,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .product-info,
    .contacts {
        padding: 22px;
        border-radius: 24px;
    }

    .carousel {
        display: block;
    }

    .carousel__viewport {
        overflow: hidden;
    }

    .carousel__track {
        gap: 0;
    }

    .product-card {
        flex-basis: 100%;
    }

    .product-card img {
        height: 250px;
    }

    .carousel__control {
        position: absolute;
        top: 50%;
        z-index: 2;
        width: 44px;
        height: 44px;
        transform: translateY(-50%);
        background: rgba(31, 39, 36, 0.78);
        backdrop-filter: blur(8px);
    }

    .carousel__control--prev {
        left: 10px;
    }

    .carousel__control--next {
        right: 10px;
    }

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

    .hero__badge-copy span {
        font-size: 4.4rem;
    }

    .lightbox[open] {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 4px;
    }

    .lightbox__control {
        width: 38px;
        height: 58px;
    }
}
