@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../assets/fonts/CormorantGaramond-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../assets/fonts/CormorantGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../assets/fonts/CormorantGaramond-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f6f3ee;
    --bg-soft: #ecdfd0;
    --bg-card: #f0ebe2;
    --text: #1a1a1a;
    --text-muted: #6f6a64;
    --line: #d9d2c5;
    --line-soft: #e6e0d4;
    --accent: #c9b89b;
    --black: #1a1a1a;
    --white: #ffffff;

    --container: 1280px;
    --gap: 24px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ====== A11Y: focus & reduced motion ====== */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
    border-radius: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ====== LOADING STATE для CTA ====== */
.btn-checkout:disabled,
.btn-add:disabled,
.btn-secondary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-checkout.is-loading,
.btn-add.is-loading { pointer-events: none; opacity: 0.85; }
.btn-checkout.is-loading::after,
.btn-add.is-loading::after {
    content: '';
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-left: 12px;
    border: 1.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: nfn-spin 0.7s linear infinite;
    vertical-align: -1px;
}
@keyframes nfn-spin { to { transform: rotate(360deg); } }

/* ====== GALLERY ZOOM ====== */
.gallery-zoom {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(15, 12, 10, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}
.gallery-zoom.is-open { display: flex; }
.gallery-zoom__stage {
    width: 100%;
    height: 100%;
    max-width: 700px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
}
.gallery-zoom__close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
}
.gallery-zoom__close:hover { opacity: 0.6; }
.gallery-zoom__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
}
.gallery-zoom__nav:hover { opacity: 0.65; }
.gallery-zoom__nav--prev { left: 24px; }
.gallery-zoom__nav--next { right: 24px; }
.gallery-zoom__counter {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
@media (max-width: 640px) {
    .gallery-zoom { padding: 60px 12px; }
    .gallery-zoom__nav { width: 44px; height: 44px; }
    .gallery-zoom__nav--prev { left: 6px; }
    .gallery-zoom__nav--next { right: 6px; }
}

/* ====== MINI CART DRAWER ====== */
.mini-cart {
    position: fixed;
    inset: 0;
    z-index: 1500;
    visibility: hidden;
    pointer-events: none;
}
.mini-cart.is-open { visibility: visible; pointer-events: auto; }
.mini-cart__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.42);
    opacity: 0;
    transition: opacity .3s ease;
}
.mini-cart.is-open .mini-cart__backdrop { opacity: 1; }
.mini-cart__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: calc(100vw - 32px);
    background: var(--bg);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 40px rgba(0,0,0,0.08);
}
.mini-cart.is-open .mini-cart__panel { transform: translateX(0); }
.mini-cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line-soft);
}
.mini-cart__title {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
}
.mini-cart__count {
    color: var(--text-muted);
    margin-left: 4px;
}
.mini-cart__close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: opacity .2s;
}
.mini-cart__close:hover { opacity: 0.6; }
.mini-cart__shipping {
    padding: 16px 24px;
    background: var(--bg-soft);
    font-size: 12px;
}
.mini-cart__shipping:empty { display: none; }
.mini-cart__ship-text { margin-bottom: 8px; letter-spacing: 0.02em; }
.mini-cart__ship-text--free { color: var(--text); font-weight: 500; }
.mini-cart__bar {
    height: 3px;
    background: rgba(0,0,0,0.08);
    overflow: hidden;
}
.mini-cart__bar-fill {
    height: 100%;
    background: var(--text);
    transition: width .4s ease;
}
.mini-cart__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px;
}
.mini-cart__row {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-soft);
    align-items: center;
    opacity: 0;
    transform: translateX(20px);
    animation: nfn-mc-row-in .4s cubic-bezier(.22,.61,.36,1) forwards;
    animation-delay: calc(var(--mc-i, 0) * 60ms + 80ms);
}
@keyframes nfn-mc-row-in {
    to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .mini-cart__row { animation: none; opacity: 1; transform: none; }
}
.mini-cart__row:last-child { border-bottom: none; }
.mini-cart__img {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center top;
    background-color: #fff;
}
.mini-cart__name {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1.4;
}
.mini-cart__meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.mini-cart__price { font-size: 13px; }
.mini-cart__remove {
    width: 30px;
    height: 30px;
    color: var(--text-muted);
    align-self: start;
    transition: color .2s;
}
.mini-cart__remove:hover { color: var(--text); }
.mini-cart__footer {
    padding: 22px 24px 28px;
    border-top: 1px solid var(--line-soft);
}
.mini-cart__footer:empty { display: none; }
.mini-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.mini-cart__total strong {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
}
.mini-cart__cta {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--text);
    color: var(--bg);
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: opacity .2s;
}
.mini-cart__cta:hover { opacity: 0.85; }
.mini-cart__continue {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color .2s;
}
.mini-cart__continue:hover { color: var(--text); }
.mini-cart__empty {
    padding: 60px 24px;
    text-align: center;
}
.mini-cart__empty-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 10px;
}
.mini-cart__empty-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ====== TOAST ====== */
.nfn-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 20px);
    background: var(--text);
    color: var(--bg);
    padding: 14px 22px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 2000;
    opacity: 0;
    transition: transform .25s ease-out, opacity .25s;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}
.nfn-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) {
    .nfn-toast { bottom: 90px; font-size: 11px; padding: 12px 18px; }
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

/* ====== HEADER ====== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
}
.header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 72px;
}
.header__nav {
    display: flex;
    gap: 32px;
    font-size: 13px;
    letter-spacing: 0.02em;
}
.header__nav a { transition: opacity .2s; }
.header__nav a:hover { opacity: 0.6; }
.header__logo {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.header__logo img { height: 18px; width: auto; display: block; }
.header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    font-size: 13px;
    letter-spacing: 0.02em;
}
.header__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: opacity .2s;
    position: relative;
}
.header__icon svg { display: block; width: 20px; height: 20px; }
.header__icon[href="cart.html"] svg { width: 24px; height: 24px; }
.header__icon:hover { opacity: 0.6; }
.cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--text);
    color: var(--bg);
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    font-weight: 500;
    letter-spacing: 0;
    pointer-events: none;
    transform: scale(0);
    transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.is-visible { transform: scale(1); }

/* ====== HERO (full bleed image with overlay) ====== */
.hero {
    position: relative;
    min-height: 64vh;
    max-height: 760px;
    background: var(--bg-soft);
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: #fff;
    image-rendering: -webkit-optimize-contrast;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 30%,
        rgba(0,0,0,0.35) 70%,
        rgba(0,0,0,0.55) 100%
    );
    pointer-events: none;
}
.hero__inner {
    position: relative;
    z-index: 1;
    padding: 0 40px 80px;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}
.hero__eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.9;
    color: #fff;
}
.hero__title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 72px;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: #fff;
    margin-bottom: 24px;
    max-width: 760px;
    text-shadow: 0 1px 30px rgba(0,0,0,0.18);
}
.hero__lead {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
    margin-bottom: 36px;
    max-width: 440px;
}
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all .2s;
    min-width: 200px;
    border: 1px solid transparent;
}
.hero__btn--primary {
    background: #fff;
    color: var(--text);
}
.hero__btn--primary:hover { background: var(--text); color: #fff; }
.hero__btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.hero__btn--ghost:hover { background: #fff; color: var(--text); border-color: #fff; }

/* HERO — светлый вариант: тёмный текст поверх светлого/воздушного фото (index) */
.hero--light { color: var(--text); background-image: url('../assets/images/hero-desktop.jpg'); }
.hero--light .hero__overlay {
    background: linear-gradient(180deg, rgba(236,223,208,0) 55%, rgba(236,223,208,0.42) 100%);
}
.hero--light .hero__eyebrow { color: var(--text); opacity: 0.7; }
.hero--light .hero__title { color: var(--text); text-shadow: 0 1px 28px rgba(246,243,238,0.55); }
.hero--light .hero__lead { color: rgba(26,26,26,0.78); }
.hero--light .hero__btn--primary { background: var(--text); color: #fff; }
.hero--light .hero__btn--primary:hover { background: transparent; color: var(--text); border-color: var(--text); }
.hero--light .hero__btn--ghost { color: var(--text); border-color: rgba(26,26,26,0.4); }
.hero--light .hero__btn--ghost:hover { background: var(--text); color: #fff; border-color: var(--text); }

/* ====== HOW IT WORKS ====== */
.how-it-works {
    background: var(--bg-soft);
    padding: 80px 0;
}
.how-it-works__head {
    text-align: center;
    margin-bottom: 60px;
}
.how-it-works__eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.how-it-works__title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.how-it-works__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}
.hiw-step {
    text-align: left;
    position: relative;
    padding-top: 14px;
}
.hiw-step__num {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.hiw-step__icon {
    margin-bottom: 22px;
    color: var(--text);
}
.hiw-step__title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: -0.005em;
}
.hiw-step__text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
}
@media (max-width: 1024px) {
    .how-it-works { padding: 60px 0; }
    .how-it-works__title { font-size: 36px; }
    .how-it-works__steps { gap: 40px; }
}
@media (max-width: 640px) {
    .how-it-works { padding: 48px 0; }
    .how-it-works__head { margin-bottom: 36px; }
    .how-it-works__title { font-size: 30px; }
    .how-it-works__steps { grid-template-columns: 1fr; gap: 32px; }
    .hiw-step__title { font-size: 20px; }
}

/* ====== SECTION TITLE ====== */
.section {
    padding: 80px 0;
}
.section__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
}
.section__title {
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}
.section__link {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
    transition: opacity .2s;
}
.section__link:hover { opacity: 0.6; }

/* ====== PRODUCT GRID ====== */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
/* ====== SKELETON LOADER ====== */
.product-skeleton {
    animation: nfn-skeleton-pulse 1.4s ease-in-out infinite;
}
.product-skeleton__media {
    aspect-ratio: 4/5;
    background: linear-gradient(110deg, #ece6d8 30%, #f3eee2 50%, #ece6d8 70%);
    background-size: 200% 100%;
    animation: nfn-skeleton-shimmer 1.6s linear infinite;
    margin-bottom: 16px;
}
.product-skeleton__line {
    height: 11px;
    background: linear-gradient(110deg, #ece6d8 30%, #f3eee2 50%, #ece6d8 70%);
    background-size: 200% 100%;
    animation: nfn-skeleton-shimmer 1.6s linear infinite;
    margin-bottom: 8px;
}
.product-skeleton__line--short { width: 40%; }
@keyframes nfn-skeleton-shimmer {
    to { background-position: -200% 0; }
}
@keyframes nfn-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
    .product-skeleton,
    .product-skeleton__media,
    .product-skeleton__line { animation: none; }
}

.product {
    cursor: pointer;
    min-width: 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
    animation: nfn-card-in .55s cubic-bezier(.22,.61,.36,1) both;
    animation-delay: calc(var(--stagger, 0) * 45ms);
}
@keyframes nfn-card-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .product { animation: none; }
}
.swatch { cursor: pointer; transition: transform .15s; }
.swatch:hover { transform: scale(1.25); }
.product__media { transition: background-image .25s ease; }
.product__media {
    aspect-ratio: 4/5;
    background-color: #fff;
    background-size: cover;
    background-position: center top;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}
/* Placeholder для товаров без фото — карточка в стиле бренда */
.product__media--placeholder {
    background-image: linear-gradient(180deg, var(--bg-card) 0%, #ecdfd0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    gap: 14px;
}
.product__placeholder-eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.product__placeholder-name {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 22px;
    line-height: 1.15;
    color: var(--text);
    max-width: 90%;
    word-wrap: break-word;
}
.product__placeholder-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
    margin-top: 6px;
}
@media (max-width: 640px) {
    .product__placeholder-name { font-size: 18px; }
    .product__placeholder-dot { width: 24px; height: 24px; }
}
/* Placeholder на странице товара (большой) */
.product-main--placeholder {
    background-image: linear-gradient(180deg, var(--bg-card) 0%, #ecdfd0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    gap: 18px;
}
.product-main--placeholder .product__placeholder-name {
    font-size: 44px;
    max-width: 70%;
}
.product-main--placeholder .product__placeholder-dot {
    width: 52px;
    height: 52px;
}
.product-main__photo-note {
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 340px;
}
.product-page.product-page--no-photo { grid-template-columns: 1fr 380px; }
.product-page.product-page--no-photo .product-thumbs { display: none; }
@media (max-width: 1024px) {
    .product-page.product-page--no-photo { grid-template-columns: 1fr; }
}
.product-main--placeholder { min-height: 480px; }
@media (max-width: 640px) {
    .product-main--placeholder { padding: 28px; }
    .product-main--placeholder .product__placeholder-name { font-size: 28px; max-width: 90%; }
    .product-main--placeholder .product__placeholder-dot { width: 36px; height: 36px; }
}
/* Placeholder для bundle */
.bundle__media--placeholder {
    background: linear-gradient(180deg, var(--bg-card) 0%, #ecdfd0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}
.bundle__media--placeholder span {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 18px;
    color: var(--text);
}
.product__media-hover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-color: #fff;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.product__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    background: var(--text);
    color: var(--bg);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
}
.product__badge--hit { background: #1a1a1a; }
.product__badge--sale { background: #b35353; }
.product__badge--low { background: transparent; color: var(--text); border: 1px solid var(--text); }
@media (hover: hover) {
    .product--has-hover:hover .product__media-hover { opacity: 1; }
    /* Активный swatch «перекрывает» hover-оверлей — иначе видно старое фото поверх выбранного цвета.
       Нужен и !important и transition:none чтобы не было даже fade-эффекта. */
    .product.product--swatch-active .product__media-hover,
    .product.product--swatch-active:hover .product__media-hover {
        opacity: 0 !important;
        transition: none !important;
    }
}
.product__name { transition: opacity .2s; }
.product:hover .product__name { opacity: 0.65; }
.product__name {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.product__price {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
}
.product__colors {
    display: flex;
    gap: 6px;
}
.swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
}

/* ====== ABOUT ====== */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0 100px;
    align-items: stretch;
}
.about__media {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
}
/* Высоту задаём padding-хаком (соотношение 4:5 = 125%), а не aspect-ratio:
   в Safari aspect-ratio на grid-элементе без контента схлопывался в 0 и фото не отображалось. */
.about__media::before {
    content: "";
    display: block;
    padding-top: 125%;
}
.about__content {
    padding: 20px 40px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about__label {
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 28px;
    font-weight: 500;
}
.about__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
}
.about__text p + p { margin-top: 18px; }

/* ====== INFO BAR ====== */
.info-bar {
    background: var(--bg-soft);
    padding: 40px 0;
}
.info-bar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px 80px;
    text-align: center;
}
.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: left;
}
.info-item__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    flex-shrink: 0;
}
.info-item__label {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 500;
}
.info-item__sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ====== FOOTER ====== */
.footer {
    background: var(--bg);
    padding: 60px 0 40px;
    border-top: 1px solid var(--line-soft);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer__logo {
    font-family: var(--font-serif);
    font-size: 20px;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}
.footer__logo img { height: 16px; width: auto; display: block; }
.footer__copy {
    font-size: 11px;
    color: var(--text-muted);
}
.footer__title {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
}
.footer__list li { margin-bottom: 10px; font-size: 13px; }
.footer__list a { color: var(--text); transition: opacity .2s; }
.footer__list a:hover { opacity: 0.6; }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.footer__social a:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* ====== BREADCRUMBS ====== */
.crumbs {
    padding: 28px 0 24px;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--text); }
.crumbs__sep { margin: 0 8px; }
.crumbs__current { color: var(--text); }

/* ====== PAGE TITLE ====== */
.page-title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 44px;
    letter-spacing: -0.01em;
    margin: 20px 0 36px;
}

/* ====== CATALOG ====== */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}
.catalog-search {
    flex: 1;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text-muted);
}
.catalog-search input {
    flex: 1;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 16px;
    color: var(--text);
    outline: none;
}
.catalog-search input::placeholder { color: var(--text-muted); }
.catalog-search:focus-within { border-color: var(--text); color: var(--text); }

.catalog-empty {
    padding: 80px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.catalog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 18px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}
.filters__list {
    display: flex;
    gap: 28px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.filters__list button { transition: opacity .2s; padding: 4px 0; }
.filters__list button:hover { opacity: 0.6; }
.filters__list button.is-active {
    border-bottom: 1px solid var(--text);
    padding-bottom: 3px;
}
.sort {
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort__label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.sort__select {
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    color: var(--text);
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 28px;
    margin-bottom: 60px;
}
.load-more {
    display: block;
    margin: 0 auto 80px;
    padding: 14px 40px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
    transition: all .2s;
}
.load-more:hover { background: var(--text); color: var(--bg); }

/* ====== PRODUCT PAGE ====== */
.product-page {
    display: grid;
    grid-template-columns: 80px 1fr 380px;
    gap: 40px;
    padding-bottom: 80px;
    align-items: start;
}
.product-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-thumbs__item {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center top;
    background-color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity .2s;
}
.product-thumbs__item:hover,
.product-thumbs__item.is-active { opacity: 1; }
.product-main {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center top;
    background-color: #fff;
}
.product-info { padding-left: 8px; }
.product-info__sku {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.product-info__title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 40px;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}
.product-info__price {
    font-size: 18px;
    margin-bottom: 30px;
}
.product-info__label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.product-info__colors {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}
.color-opt {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
    position: relative;
    transition: transform .15s;
}
.color-opt:hover { transform: scale(1.1); }
.color-opt.is-active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--text);
    border-radius: 50%;
}
.size-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.size-guide {
    font-size: 11px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 1px;
    transition: color .2s;
}
.size-guide:hover { color: var(--text); }
.sizes {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.size-opt {
    flex: 1;
    padding: 14px 0;
    border: 1px solid var(--line);
    font-size: 13px;
    letter-spacing: 0.05em;
    background: transparent;
    transition: all .2s;
}
.size-opt:hover { border-color: var(--text); }
.size-opt.is-active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
.size-opt.is-disabled {
    color: var(--text-muted);
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.5;
}
.size-hint {
    font-size: 11px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--text-muted);
    display: inline-block;
    padding-bottom: 1px;
    margin-bottom: 24px;
    cursor: pointer;
}
.btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}
.btn-add {
    width: 100%;
    padding: 18px 10px;
    background: var(--text);
    color: var(--bg);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: opacity .2s;
}
.btn-add:hover { opacity: 0.85; }
.btn-secondary {
    width: 100%;
    padding: 18px 10px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: all .2s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-secondary:hover {
    background: var(--text);
    color: var(--bg);
}
@media (max-width: 1024px) {
    .btn-row { grid-template-columns: 1fr; }
}
.delivery-info {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 16px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 8px;
}
.delivery-info__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 4px 0;
}
.delivery-info__row svg { flex-shrink: 0; margin-top: 2px; }
.delivery-info__row--stock { color: var(--text); font-weight: 500; }
.delivery-info__dot {
    flex-shrink: 0;
    margin-top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6ba368;
    box-shadow: 0 0 0 3px rgba(107, 163, 104, 0.18);
    animation: nfn-pulse 2s ease-in-out infinite;
}
@keyframes nfn-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(107, 163, 104, 0.18); }
    50%      { box-shadow: 0 0 0 5px rgba(107, 163, 104, 0.08); }
}
@media (prefers-reduced-motion: reduce) {
    .delivery-info__dot { animation: none; }
}
.accordion {
    border-bottom: 1px solid var(--line-soft);
}
.accordion__btn {
    width: 100%;
    text-align: left;
    padding: 18px 0;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion__btn::after {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    transition: transform .2s;
}
.accordion.is-open .accordion__btn::after {
    content: '−';
}
.accordion__body {
    display: none;
    padding: 0 0 18px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
}
.accordion.is-open .accordion__body { display: block; }

/* ====== CART ====== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 60px;
    padding-bottom: 80px;
    align-items: start;
}
.cart-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 28px;
    transition: color .2s;
}
.cart-back:hover { color: var(--text); }
.cart-table {
    width: 100%;
}
.cart-table__head {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.cart-table__head > div:not(:first-child) { text-align: center; }
.cart-table__head > div:last-child { text-align: right; }

.cart-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    padding: 24px 0;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    gap: 16px;
}
.cart-row__product {
    display: flex;
    align-items: center;
    gap: 18px;
}
.cart-row__img {
    width: 70px;
    height: 88px;
    background-size: cover;
    background-position: center top;
    background-color: #fff;
    flex-shrink: 0;
}
.cart-row__name {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.cart-row__color {
    font-size: 12px;
    color: var(--text-muted);
}
.cart-row__cell {
    text-align: center;
    font-size: 13px;
}
.cart-row__cell--right { text-align: right; }
.cart-row__remove {
    color: var(--text-muted);
    font-size: 18px;
    margin-left: 8px;
}
.cart-row__remove:hover { color: var(--text); }

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
}
.qty button {
    width: 32px;
    height: 32px;
    font-size: 14px;
    color: var(--text);
}
.qty input {
    width: 36px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: transparent;
    font: inherit;
    color: var(--text);
}
.qty input:focus { outline: none; }

.cart-summary {
    background: var(--bg-card);
    padding: 32px;
    position: sticky;
    top: 92px;
}
.cart-summary__title {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 500;
}
.cart-summary__total {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 6px;
}
.cart-summary__sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.promo {
    display: flex;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    background: var(--bg);
}
.promo input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 16px;
    color: var(--text);
}
.promo input::placeholder { color: var(--text-muted); }
.promo input:focus { outline: none; }
.promo button {
    padding: 0 14px;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color .2s;
}
.promo button:hover { color: var(--text); }
.cart-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.cart-form__title {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.cart-form .field { gap: 4px; margin: 0; }
.cart-form .field label {
    font-size: 11px;
    letter-spacing: 0.06em;
}
.cart-form .field__hint {
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    font-size: 10px;
    margin-left: 4px;
}
.cart-form .field input,
.cart-form .field textarea {
    padding: 12px 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    font: inherit;
    font-size: 16px;
    color: var(--text);
    outline: none;
    transition: border-color .15s;
}
.cart-form .field input:focus,
.cart-form .field textarea:focus { border-color: var(--text); }
.cart-form .field textarea { min-height: 60px; resize: vertical; }
.cart-form .btn-checkout { margin-top: 8px; margin-bottom: 0; }

.trust-list {
    margin: 6px 0 4px;
    padding: 14px 0;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}
.trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
}
.trust-list svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-muted);
}
.trust-list a {
    border-bottom: 1px solid var(--text-muted);
    transition: color .2s;
}
.trust-list a:hover { color: var(--text); border-bottom-color: var(--text); }

.btn-checkout {
    width: 100%;
    padding: 18px;
    background: var(--text);
    color: var(--bg);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: opacity .2s;
    margin-bottom: 20px;
}
.btn-checkout:hover { opacity: 0.85; }
.cart-summary__note {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.7;
}
.cart-help {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-size: 12px;
    color: var(--text-muted);
}
.cart-help a {
    color: var(--text);
    border-bottom: 1px solid var(--text);
    padding-bottom: 1px;
}

.checkout-info {
    background: var(--bg-soft);
    padding: 50px 0;
    margin-top: 40px;
}
.checkout-info__title {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 32px;
    font-weight: 500;
}
.checkout-info__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.checkout-info__step h4 {
    font-size: 13px;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.checkout-info__step p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ====== BUNDLE («Собери комплект») ====== */
.bundle {
    background: var(--bg-soft);
    padding: 56px 48px;
    margin: 60px 0 0;
}
.bundle__head { text-align: center; margin-bottom: 36px; }
.bundle__eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.bundle__title {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 8px;
}
.bundle__sub { font-size: 13px; color: var(--text-muted); }
.bundle__row {
    display: grid;
    grid-template-columns: 1fr 24px 1fr 260px;
    gap: 20px;
    align-items: center;
}
.bundle__item {
    display: block;
    background: #fff;
    padding: 16px;
    transition: opacity .2s;
}
.bundle__item:hover { opacity: 0.85; }
.bundle__media {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center top;
    background-color: #fff;
    margin-bottom: 12px;
}
.bundle__name {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.bundle__price { font-size: 13px; }
.bundle__plus {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 300;
    color: var(--text-muted);
    text-align: center;
}
.bundle__summary {
    background: var(--bg);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--line);
}
.bundle__total-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 4px;
}
.bundle__total {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 8px;
}
.bundle__save {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    background: #f0e3c4;
    padding: 5px 10px;
    display: inline-block;
    margin-bottom: 16px;
}
.bundle__btn {
    width: 100%;
    padding: 14px;
    font-size: 11px;
    letter-spacing: 0.18em;
}
@media (max-width: 1024px) {
    .bundle { padding: 40px 24px; }
    .bundle__row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .bundle__plus { display: none; }
    .bundle__summary { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .bundle__row { grid-template-columns: 1fr; }
    .bundle__title { font-size: 24px; }
}

/* ====== UPSELL / SIMILAR ====== */
.upsell {
    padding: 60px 0 80px;
    border-top: 1px solid var(--line-soft);
}
.upsell__title {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: 500;
}
.upsell__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* ====== BURGER + MOBILE MENU ====== */
.burger {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    margin-left: -8px;
}
.burger span {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 1.6px;
    background: var(--text);
    transition: transform .3s, opacity .3s, top .3s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 60px 0 0 0;
    background: var(--bg);
    z-index: 90;
    display: none;
    flex-direction: column;
    padding: 32px 24px;
    overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--line-soft);
}
.mobile-menu__group {
    margin-top: 28px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
body.menu-open { overflow: hidden; }

/* ====== STICKY ADD-TO-CART (mobile only, product page) ====== */
.sticky-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    z-index: 80;
    gap: 10px;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    box-shadow: 0 -6px 18px rgba(0,0,0,0.06);
}
.sticky-cta__price {
    font-size: 14px;
    font-weight: 500;
}
.sticky-cta__btn {
    padding: 14px 16px;
    background: var(--text);
    color: var(--bg);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

/* ====== FORM FIELDS (used in cart form) ====== */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.field input,
.field textarea,
.field select {
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--bg);
    font: inherit;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color .2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--text); }
.field textarea { min-height: 80px; resize: vertical; }
.checkout-success {
    text-align: center;
    padding: 80px 24px;
    max-width: 540px;
    margin: 0 auto;
}
.checkout-success__icon {
    width: 64px;
    height: 64px;
    border: 1.5px solid var(--text);
    border-radius: 50%;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkout-success h1 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 14px;
}
.checkout-success__sub {
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
}
.checkout-success__order {
    background: var(--bg-card);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 13px;
    letter-spacing: 0.04em;
}
.checkout-success__order strong { font-family: var(--font-serif); font-size: 18px; }
.checkout-success__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.success-channels {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 24px;
    align-items: flex-start;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}
.success-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    width: 100%;
    font-size: 13px;
    text-align: left;
}
.success-channel__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #229ED9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tg-bot-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #229ED9 !important;
    color: #fff !important;
    padding: 16px 28px !important;
    text-decoration: none !important;
    font-size: 13px;
    letter-spacing: 0.16em;
    margin: 8px 0 12px;
    transition: opacity .2s;
}
.tg-bot-cta:hover { opacity: 0.9; }
.tg-bot-hint {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.6;
}
@media (max-width: 1024px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}
@media (max-width: 640px) {
    .field-row { grid-template-columns: 1fr; }
}

/* ====== COOKIE BANNER ====== */
.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    right: 20px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    background: var(--text);
    color: var(--bg);
    padding: 18px 22px;
    z-index: 900;
    display: none;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
    animation: slide-up .3s ease-out;
}
.cookie-banner.is-open { display: grid; }
.cookie-banner__text {
    font-size: 12px;
    line-height: 1.55;
}
.cookie-banner__text a {
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}
.cookie-banner__btn {
    padding: 12px 22px;
    background: var(--bg);
    color: var(--text);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
}
.cookie-banner__btn:hover { opacity: 0.85; }
@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
    .cookie-banner {
        grid-template-columns: 1fr;
        bottom: 12px;
        left: 12px;
        right: 12px;
    }
}

/* ====== 404 PAGE ====== */
.page-404 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}
.page-404__code {
    font-family: var(--font-serif);
    font-size: 140px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.page-404__title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 14px;
}
.page-404__sub {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 380px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.page-404__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
@media (max-width: 640px) {
    .page-404__code { font-size: 96px; }
}

/* ====== NEWSLETTER POPUP ====== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 16, 0.5);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fade-in .25s ease-out;
}
.popup-overlay.is-open { display: flex; }
.popup {
    background: var(--bg);
    max-width: 460px;
    width: 100%;
    padding: 56px 44px 44px;
    position: relative;
    text-align: center;
    animation: pop-in .35s ease-out;
}
.popup__close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 28px;
    height: 28px;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 28px;
    cursor: pointer;
}
.popup__close:hover { color: var(--text); }
.popup__eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.popup__title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 14px;
}
.popup__sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}
.popup__form { display: flex; flex-direction: column; gap: 10px; }
.popup__input {
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--bg);
    font: inherit;
    font-size: 14px;
    color: var(--text);
    outline: none;
    text-align: center;
}
.popup__input:focus { border-color: var(--text); }
.popup__btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--text);
    color: var(--bg);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
}
.popup__btn:hover { opacity: 0.85; }
.popup__skip {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
}
.popup__skip:hover { color: var(--text); }
.popup__success {
    padding: 20px 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}
.popup__success strong { display: block; font-size: 16px; margin-bottom: 8px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ====== CHAT WIDGET ====== */
.chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.chat-widget__bubble {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 240px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    position: relative;
    animation: chat-pop .35s ease-out;
}
.chat-widget__bubble::after {
    content: '';
    position: absolute;
    right: 22px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: var(--bg);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transform: rotate(45deg);
}
.chat-widget__close {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
}
.chat-widget__close:hover { color: var(--text); }
.chat-widget__btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #229ED9; /* Telegram blue */
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(34, 158, 217, 0.4);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    position: relative;
}
.chat-widget__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(34, 158, 217, 0.5);
}
.chat-widget__btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(34, 158, 217, 0.4);
    animation: chat-pulse 2.4s ease-out infinite;
}
@keyframes chat-pulse {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}
@keyframes chat-pop {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
    .chat-widget { right: 14px; bottom: 14px; }
    .chat-widget__bubble { display: none; }
}

/* ====== INFO PAGES ====== */
.info-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 0 100px;
}
.info-page__title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 56px;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 16px;
}
.info-page__lead {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    max-width: 540px;
    margin: 0 auto 56px;
    line-height: 1.7;
}
.info-page__content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}
.info-page__content h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 28px;
    letter-spacing: 0.01em;
    margin: 48px 0 18px;
}
.info-page__content h2:first-child { margin-top: 0; }
.info-page__content h3 {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 36px 0 14px;
    font-weight: 500;
}
.info-page__content p { margin-bottom: 16px; }
.info-page__content ul { padding-left: 0; margin-bottom: 20px; }
.info-page__content li { padding: 6px 0 6px 22px; position: relative; }
.info-page__content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 12px;
    height: 1px;
    background: var(--text);
}
.info-page__content a.tg-link,
.info-page__content a.inline-link {
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: opacity .2s;
}
.info-page__content a.tg-link:hover,
.info-page__content a.inline-link:hover { opacity: 0.6; }
.info-page__note {
    background: var(--bg-soft);
    padding: 28px 32px;
    margin: 32px 0;
    font-size: 14px;
    line-height: 1.7;
}
.info-page__note strong {
    display: block;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 500;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 36px;
    font-size: 13px;
}
.size-table th, .size-table td {
    padding: 14px 10px;
    text-align: center;
    border-bottom: 1px solid var(--line-soft);
}
.size-table th {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-soft);
}
.size-table td:first-child {
    font-weight: 500;
    letter-spacing: 0.08em;
}

.contacts-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0 24px;
}
.contact-card {
    border: 1px solid var(--line);
    padding: 48px 36px;
    text-align: center;
    transition: all .2s;
    display: block;
    background: var(--bg);
}
.contact-card:hover {
    border-color: var(--text);
    background: var(--bg-soft);
}
.contact-card__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.contact-card__title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
}
.contact-card__sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}
.contact-card__link {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
}

/* ====== RESPONSIVE ====== */
/* ===== Tablet (≤1024) ===== */
@media (max-width: 1024px) {
    .container { padding: 0 28px; }
    .grid, .catalog-grid, .upsell__grid { grid-template-columns: repeat(2, 1fr); }
    .hero { min-height: 70vh; }
    .hero__inner { padding: 0 28px 60px; }
    .hero__title { font-size: 52px; }
    .hero__lead { font-size: 14px; }
    .about { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 60px; }
    .about__content { padding: 0; }
    .product-page { grid-template-columns: 1fr; }
    .product-thumbs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
    .product-thumbs__item { width: 80px; flex-shrink: 0; }
    .cart-layout { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .info-bar__inner { gap: 24px; }
    .checkout-info__steps { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .page-title { font-size: 38px; margin: 16px 0 28px; }
}

/* ===== Mid-tablet (≤880): шапка переключается на бургер ===== */
@media (max-width: 880px) {
    .header__inner { height: 64px; grid-template-columns: auto 1fr auto; }
    .header__nav { display: none; }
    .header__actions a:not(.header__icon) { display: none; }
    .burger { display: block; }
    .mobile-menu { inset: 64px 0 0 0; }
    .catalog-toolbar {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        align-items: center;
    }
    .catalog-search { max-width: none; padding: 9px 12px; }
    .catalog-search svg { width: 14px; height: 14px; }
    .catalog-search input { font-size: 16px; }
    .sort {
        flex-shrink: 0;
        gap: 6px;
        font-size: 11px;
    }
    .sort__label { display: none; }
    .sort__select {
        padding: 9px 22px 9px 12px;
        border: 1px solid var(--line);
        background: var(--bg);
        font-size: 12px;
        letter-spacing: 0.04em;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>");
        background-repeat: no-repeat;
        background-position: right 8px center;
    }
}

/* ===== Mobile (≤640) ===== */
@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .info-page__title { font-size: 34px; }
    .info-page { padding: 24px 0 60px; }
    .info-page__lead { margin-bottom: 36px; }
    .contacts-cards { grid-template-columns: 1fr; }
    .size-table { font-size: 11px; }
    .size-table th, .size-table td { padding: 10px 6px; }
    .header__inner { height: 60px; }
    .header__logo { font-size: 20px; }
    .header__logo img { height: 14px; }
    .header__actions { gap: 12px; }
    .header__icon { width: 44px; height: 44px; }
    .header__icon svg { width: 19px; height: 19px; }
    .header__icon[href="cart.html"] svg { width: 22px; height: 22px; }
    .cart-count { top: 0; right: -2px; min-width: 16px; height: 16px; font-size: 9px; line-height: 16px; }
    .sticky-cta { display: grid; }
    body.has-sticky-cta { padding-bottom: 80px; }
    body.has-sticky-cta .cookie-banner { bottom: 90px; }
    body.has-sticky-cta .chat-widget { bottom: 90px; }
    body.has-cookie .chat-widget { bottom: 180px; }
    body.has-cookie.has-sticky-cta .chat-widget { bottom: 260px; }
    .chat-widget { bottom: 16px; right: 16px; }
    .grid, .catalog-grid, .upsell__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .hero { min-height: 82vh; align-items: flex-end; }
    /* Мобилка: отдельное вертикальное фото — обычный cover, без зума (резко) */
    .hero--light { background-image: url('../assets/images/hero-mobile.jpg'); background-size: cover; background-position: center; }
    .hero__inner { padding: 0 18px 44px; }
    .hero__eyebrow { font-size: 10px; margin-bottom: 16px; }
    .hero__title { font-size: 36px; line-height: 1.1; margin-bottom: 16px; }
    .hero__lead { font-size: 13px; margin-bottom: 24px; }
    .hero__actions { flex-direction: column; gap: 10px; }
    .hero__btn { width: 100%; min-width: 0; padding: 15px 24px; }
    .hero__overlay { background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%); }
    .hero--light .hero__overlay { background: linear-gradient(180deg, rgba(236,223,208,0) 30%, rgba(236,223,208,0.5) 72%, rgba(236,223,208,0.72) 100%); }
    /* Инфо-бар на мобилке: отступ сверху + иконки/текст по левому краю */
    .info-bar { margin-top: 28px; }
    .info-bar__inner { justify-content: flex-start; text-align: left; }
    .info-item { justify-content: flex-start; }
    .page-title { font-size: 30px; margin: 14px 0 22px; }
    .product-info__title { font-size: 28px; }
    .product-info__price { font-size: 16px; margin-bottom: 24px; }
    .product-info { padding-left: 0; }
    .footer { padding: 40px 0 28px; }
    .footer__grid { grid-template-columns: 1fr; gap: 28px; }

    /* Корзина: вертикальный стек с подписями */
    .cart-table__head { display: none; }
    .cart-row {
        grid-template-columns: 1fr;
        row-gap: 10px;
        padding: 20px 0;
    }
    .cart-row__cell { text-align: left; display: flex; align-items: center; gap: 8px; }
    .cart-row__cell:last-child { border-top: 1px solid var(--line-soft); padding-top: 10px; }
    .cart-row__cell::before {
        color: var(--text-muted);
        font-size: 11px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        min-width: 90px;
    }
    .cart-row__cell:nth-child(2)::before { content: 'Цена'; }
    .cart-row__cell:nth-child(3)::before { content: 'Размер'; }
    .cart-row__cell:nth-child(4)::before { content: 'Кол-во'; }
    .cart-row__cell:nth-child(5)::before { content: 'Итого'; }
    .cart-help { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 24px; margin-top: 24px; }
    .cart-summary { padding: 24px; }
    .cart-summary__total { font-size: 30px; }

    /* Чекаут */
    .checkout-summary { padding: 24px; }
    .field-row { grid-template-columns: 1fr; }

    /* Каталог: pill-фильтры с горизонтальным скроллом */
    .catalog-filters {
        border-bottom: none;
        padding: 0;
        margin: 14px -18px 22px;
        position: relative;
    }
    .catalog-filters::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 28px;
        pointer-events: none;
        background: linear-gradient(to left, var(--bg), transparent);
    }
    .filters__list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 4px 18px;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .filters__list::-webkit-scrollbar { display: none; }
    .filters__list button {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 9px 16px;
        border: 1px solid var(--line);
        background: var(--bg);
        color: var(--text);
        font-size: 11px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        border-radius: 999px;
        transition: all .2s;
    }
    .filters__list button.is-active {
        background: var(--text);
        color: var(--bg);
        border-color: var(--text);
        padding-bottom: 9px;
    }

    /* Карточки товара */
    .product__name { font-size: 11px; }
    .product__price { font-size: 12px; }
    .swatch { width: 10px; height: 10px; }
    .product-thumbs__item { width: 64px; }

    /* Bundle */
    .bundle { padding: 32px 18px; margin-top: 40px; }
    .bundle__head { margin-bottom: 24px; }
    .bundle__title { font-size: 22px; }
    .bundle__total { font-size: 26px; }

    /* Popup подписки */
    .popup { padding: 44px 28px 28px; max-height: calc(100vh - 40px); overflow-y: auto; }
    .popup__title { font-size: 26px; }

    /* Footer logo */
    .footer__logo img { height: 14px; }
}

/* ===== Tiny mobile (≤380): убираем 2 колонки если совсем узко ===== */
@media (max-width: 380px) {
    .container { padding: 0 14px; }
    .grid, .catalog-grid, .upsell__grid { grid-template-columns: 1fr; gap: 24px; }
    .hero__title { font-size: 26px; }
    .page-title { font-size: 26px; }
    .product-info__title { font-size: 24px; }
    .header__actions { gap: 8px; }
}

/* ===== iPhone SE 1st gen и подобное (320px) ===== */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .header__logo img { height: 12px; }
    .header__actions { gap: 6px; }
    .header__icon { width: 36px; height: 36px; }
    .hero__title { font-size: 22px; }
    .hero__lead { font-size: 12px; }
    .hero__btn { padding: 13px 18px; font-size: 10px; min-width: 0; }
    .product-info__title { font-size: 22px; }
    .product-info__price { font-size: 15px; }
    .how-it-works__title { font-size: 26px; }
    .mini-cart__panel { width: 100vw; max-width: 100vw; }
    .mini-cart__row { grid-template-columns: 56px 1fr auto; gap: 10px; padding: 14px 0; }
    .mini-cart__img { width: 56px; }
    .mini-cart__name { font-size: 11px; }
    .cart-summary { padding: 24px 18px; }
    .filters__list button { padding: 8px 14px; font-size: 10px; }
}

/* ===== Landscape на мобильных (низкий вьюпорт) ===== */
@media (max-width: 880px) and (orientation: landscape) {
    .hero { min-height: 100vh; }
    .hero__inner { padding: 0 40px 32px; }
    .hero__title { font-size: 36px; line-height: 1.1; margin-bottom: 14px; }
    .hero__lead { font-size: 13px; margin-bottom: 20px; max-width: 380px; }
    .hero__eyebrow { margin-bottom: 12px; }
    .hero__actions { flex-direction: row; gap: 12px; }
    .hero__btn { width: auto; min-width: 0; }
    .mobile-menu { padding: 60px 40px 40px; overflow-y: auto; }
    .popup { max-height: 92vh; overflow-y: auto; }
    .gallery-zoom { padding: 24px 60px; }
}
