:root {
    --bg: #050506;
    --panel: #101010;
    --card: #121212;
    --line: #2a2a2a;
    --gray: #d9d9d9;
    --gray2: #a8a8a8;
    --text: #fafafa;
    --muted: #b8b8b8;
    --img-bg: #0a0a0c; /* Единый фон для всех карточек и фотографий */
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    opacity: 0;
    animation: siteAppear .8s cubic-bezier(.22, 1, .36, 1) .05s forwards;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

@keyframes siteAppear {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
        opacity: 1;
    }
}

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

/* --- Upper Utility Bar --- */
.top {
    height: 29px;
    border-bottom: 1px solid #292929;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 7%;
    font-size: 11px;
    color: #898989;
}

/* --- Navigation --- */
.nav {
    height: 68px;
    border-bottom: 1px solid #292929;
    display: flex;
    align-items: center;
    gap: 44px;
    padding: 0 7%;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 5, 5, .92);
    backdrop-filter: blur(14px);
}

.logo {
    font-weight: 900;
    font-size: 26px;
    font-style: italic;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.logo i { color: var(--gray); font-style: normal; }

.menu {
    display: flex;
    gap: 34px;
    flex: 1;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.menu a { transition: color .18s ease; }
.menu a.active, .menu a:hover { color: #ffffff; }

.icons {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.cart-trigger {
    border: 1px solid #333;
    background: #111;
    color: #d9d9d9;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
    transition: .2s ease;
}

.cart-trigger:hover {
    border-color: #777;
    color: #ffffff;
    background: #181818;
}

.cart-count {
    color: #000000;
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    font-weight: 900;
}

/* --- Ticker --- */
.ticker {
    height: 32px;
    border-bottom: 1px solid #292929;
    background: #0b0b0b;
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    z-index: 19;
}

.ticker-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: tickerMove 22s linear infinite;
    transform: translate3d(0, 0, 0);
}

.ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding-right: 42px;
    color: #a8a8a8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ticker-item b { color: #ffffff; font-size: 12px; }
.ticker-item i { font-style: normal; color: #454545; }

@keyframes tickerMove {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

/* --- Hero Section --- */
.hero {
    min-height: 480px;
    margin: 0;
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    background: #000;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #000;
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity;
    filter: brightness(0.45) contrast(1.1);
}

.hero-slide.active { opacity: 1; }

.hero-slideshow:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 5, 6, 0.95) 0%, rgba(5, 5, 6, 0.6) 45%, rgba(5, 5, 6, 0.85) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 7%;
    max-width: 650px;
    animation: heroIn .9s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.eyebrow {
    color: #a8a8a8;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(38px, 4.5vw, 64px);
    line-height: .92;
    letter-spacing: -.05em;
    margin: 0 0 18px;
    text-transform: uppercase;
    font-weight: 900;
}

h1 span { color: #888; }

.hero p {
    color: #b3b3b3;
    font-size: 14px;
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 24px;
}

/* --- Buttons --- */
.btn, .buy-btn, .cart-checkout {
    display: inline-block;
    background: linear-gradient(135deg, #eeeeee 0%, #bdbdbd 48%, #8e8e8e 100%) !important;
    color: #090909 !important;
    border: 1px solid #f2f2f2 !important;
    padding: 14px 26px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .55);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease !important;
    cursor: pointer;
}

.btn:hover, .buy-btn:hover, .cart-checkout:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 12px 34px rgba(255, 255, 255, .15), inset 0 1px 0 rgba(255, 255, 255, .65) !important;
}

/* --- Layout Sections --- */
.section {
    max-width: 1400px;
    margin: auto;
    padding: 36px 6%;
}

.head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}

.head h2 {
    font-size: 22px;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -.04em;
    font-weight: 900;
}

.head h2 span { color: #777; }

.link {
    font-size: 11px;
    color: #8b8b8b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .05em;
}

/* --- Mini Carousel Rail --- */
.assort {
    position: relative;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 32px 46px 16px;
    background: linear-gradient(180deg, #121212, #0b0b0b);
    overflow: hidden;
}

.assort-title {
    position: absolute;
    left: 20px;
    top: 10px;
    color: #777;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px 8px;
    scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.mini {
    flex: 0 0 calc((100% - 70px) / 5);
    min-width: 180px;
    background: linear-gradient(180deg, #151515, #101010);
    border: 1px solid #272727;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s, border-color .2s;
    cursor: pointer;
}

.mini:hover {
    transform: translateY(-3px);
    border-color: #555;
}

/* Единый стиль фото в горизонтальном слайдере */
.media {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: var(--img-bg) !important;
    border-bottom: 1px solid #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 12px;
}

.mini-info { padding: 10px 12px; }
.mini b { display: block; font-size: 11px; line-height: 1.3; font-weight: 800; text-transform: uppercase; }
.mini small { display: block; margin-top: 4px; color: #a8a8a8; font-size: 10px; font-weight: 700; }

.arrow {
    position: absolute;
    top: 52%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 1px solid #444;
    background: rgba(10, 10, 12, .9);
    color: #fff;
    border-radius: 50%;
    z-index: 8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.arrow:hover { border-color: #888; background: #181818; }
.arrow.left { left: 8px; }
.arrow.right { right: 8px; }

/* --- Categories Grid --- */
.categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.cat {
    height: 110px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #101010;
    cursor: pointer;
    transition: border-color .2s ease;
}

.cat:hover { border-color: #555; }

.cat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .4;
    filter: grayscale(100%);
    transition: transform .3s ease, opacity .3s ease;
}

.cat:hover img { transform: scale(1.05); opacity: .55; }

.cat:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #070608 0%, rgba(7, 7, 7, .2) 80%);
}

.cat span {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 1;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.cat em {
    position: absolute;
    left: 14px;
    top: 10px;
    z-index: 1;
    color: #666;
    font-style: normal;
    font-size: 16px;
    font-weight: 800;
}

/* --- Catalog Grid & Product Cards --- */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product {
    background: #0b0b0d;
    border: 1px solid #222;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease;
    cursor: pointer;
}

.product:hover {
    transform: translateY(-4px);
    border-color: #444;
}

/* Единый квадратный формат и фон карточек каталога */
.product .photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background: var(--img-bg) !important;
    overflow: hidden;
    border-bottom: 1px solid #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product .photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 16px;
    transition: transform .3s ease;
}

.product:hover .photo img { transform: scale(1.04); }

.info { padding: 14px 14px 16px; }
.name { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.price { font-size: 12px; margin-top: 6px; font-weight: 800; color: #e0e0e0; }
.tag { font-size: 9px; color: #828282; text-transform: uppercase; margin-top: 6px; font-weight: 700; letter-spacing: .05em; }
.drop { font-size: 9px; color: #555; margin-top: 4px; font-weight: 600; }

/* --- Brand Story --- */
.story {
    margin-top: 16px;
    border: 1px solid #272727;
    border-radius: 12px;
    background: linear-gradient(135deg, #111113, #09090a);
    padding: 36px;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 32px;
    align-items: center;
}

.story h2 {
    margin: 0;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: -.05em;
    line-height: 1;
    font-weight: 900;
}

.story h2 span { color: #666; }

.story p {
    margin: 0;
    color: #a4a4a4;
    font-size: 13px;
    line-height: 1.8;
}

/* --- Benefits --- */
.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6% 40px;
}

.benefit {
    padding: 24px 20px;
    border-top: 1px solid #1e1e1e;
}

.benefit b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; display: block; }
.benefit span { display: block; color: #727272; font-size: 10px; margin-top: 6px; line-height: 1.5; }

/* --- Footer --- */
footer {
    border-top: 1px solid #1d1d1d;
    padding: 30px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c6c6c;
    font-size: 11px;
    background: #030304;
}

footer strong { color: #eee; }

/* --- Product Modal Window --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-card {
    position: relative;
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    max-height: min(88vh, 780px);
    background: linear-gradient(180deg, #0f0f11, #0a0a0c);
    border: 1px solid #3d3d3d;
    border-radius: 14px;
    transform: translateY(12px) scale(.98);
    transition: transform .22s ease;
    overflow: hidden;
}

.modal.open .modal-card { transform: translateY(0) scale(1); }

/* Единое фото в модальном окне */
.modal-photo {
    width: calc(100% - 40px);
    aspect-ratio: 1 / 1;
    margin: 20px;
    border-radius: 10px;
    background: var(--img-bg) !important;
    border: 1px solid #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 20px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border: 1px solid #555;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 36px 36px 32px 16px;
    overflow-y: auto;
}

.modal-name { font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.modal-price { margin-top: 8px; font-size: 20px; color: #ffffff; font-weight: 800; }
.modal-tag { margin-top: 6px; color: #888; font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; }
.modal-desc { margin-top: 16px; color: #a0a0a0; font-size: 12px; line-height: 1.7; border-top: 1px solid #222; padding-top: 14px; }

.sizes { margin-top: 20px; }
.sizes-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #888; margin-bottom: 10px; }
.sizes-list { display: flex; gap: 8px; flex-wrap: wrap; }

.size-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #121214;
    color: #eee;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: .18s;
}

.size-btn.active, .size-btn:hover { border-color: #fff; background: #fff; color: #000; }

.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }

.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #4a4a4a;
    border-radius: 6px;
    background: linear-gradient(180deg, #181818, #101010);
    color: #d2d2d2;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: .22s ease;
}

.cart-btn:hover { border-color: #888; background: #222; color: #fff; transform: translateY(-1px); }

/* --- Cart Drawer --- */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    justify-content: flex-end;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.cart-drawer.open { opacity: 1; visibility: visible; pointer-events: auto; }

.cart-panel {
    width: min(440px, 100%);
    height: 100%;
    background: linear-gradient(180deg, #0f0f11, #08080a);
    border-left: 1px solid #333;
    transform: translateX(30px);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open .cart-panel { transform: translateX(0); }

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px;
    border-bottom: 1px solid #222;
}

.cart-head h2 { margin: 0; font-size: 18px; text-transform: uppercase; font-weight: 900; letter-spacing: .05em; }

.cart-close {
    width: 32px;
    height: 32px;
    border: 1px solid #444;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }

.cart-empty {
    padding: 80px 20px;
    text-align: center;
    color: #777;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.cart-item {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #1c1c1c;
}

.cart-item img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    background: var(--img-bg);
    border-radius: 6px;
    padding: 4px;
    border: 1px solid #222;
}

.cart-item-name { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.cart-item-meta { margin-top: 4px; color: #888; font-size: 10px; }
.cart-item-price { font-size: 12px; color: #fff; font-weight: 900; white-space: nowrap; margin-top: 6px; }

.cart-remove {
    background: transparent;
    border: 0;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color .2s;
}

.cart-remove:hover { color: #fff; }

.cart-foot { padding: 20px; border-top: 1px solid #222; background: #0a0a0c; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.cart-total strong { color: #fff; font-size: 18px; }

/* --- Responsive Adaptations --- */
@media (max-width: 1050px) {
    .products { grid-template-columns: repeat(3, 1fr); }
    .categories { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 650px) {
    .top, .menu { display: none; }
    .nav { padding: 0 16px; height: 58px; }
    .logo { font-size: 20px; }
    .hero { min-height: 440px; }
    .hero-content { padding: 40px 20px; }
    .products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .categories { grid-template-columns: repeat(2, 1fr); }
    .story { grid-template-columns: 1fr; padding: 24px; }
    .modal-card { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
    .modal-photo { width: calc(100% - 24px); margin: 12px 12px 0; }
    .modal-body { padding: 20px; }
    .buy-row { grid-template-columns: 1fr; }
    .benefits { grid-template-columns: repeat(2, 1fr); padding: 0 5% 20px; }
}