@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/eb-garamond-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/eb-garamond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "Anticva"; src: url("../fonts/anticva.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 300; src: url("../fonts/inter-300.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 400; src: url("../fonts/inter-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plex Serif"; font-style: italic; src: url("../fonts/plex-italic.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --ink: #242424;
  --wine: #242424;
  --muted: #70706a;
  --line: #e4e4e0;
  --dark: #161616;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Anticva", "Times New Roman", serif;
  --accent: "Plex Serif", Georgia, serif;
  --text: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 300 16px/1.6 var(--text); }
img { display: block; max-width: 100%; }
main { flex: 1; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.nav { display: flex; gap: 24px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--wine); }
.nav--right { justify-content: flex-end; }
.only-mobile { display: none; }
.logo { display: block; width: clamp(150px, 22vw, 230px); color: var(--wine); }
.logo svg { display: block; width: 100%; height: auto; }
.logo--small { width: 160px; }

/* ---------- типографика ---------- */
.display { font: 400 clamp(52px, 9vw, 120px)/.95 var(--display); text-transform: uppercase; color: var(--wine); margin: 0; letter-spacing: .01em; }
.title { font: 400 clamp(28px, 4vw, 44px)/1.05 var(--display); text-transform: uppercase; color: var(--wine); margin: 0; }
.title--page { font-size: clamp(32px, 5vw, 56px); }
.title--light { color: #fff; }
.num { font-size: .75em; }
.accent { font: italic 400 clamp(18px, 2vw, 22px)/1.3 var(--accent); color: var(--wine); margin: 6px 0 0; }
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.muted { color: var(--muted); }
.link { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-underline-offset: 4px; }
.link:hover { color: var(--wine); }

/* ---------- кнопки ---------- */
.btn { display: inline-block; padding: 15px 34px; border: 1px solid var(--wine); background: var(--wine); color: #fff; border-radius: 0;
       font: 400 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--dark); border-color: var(--dark); }
.btn--outline { background: transparent; color: var(--wine); }
.btn--outline:hover { background: var(--wine); color: #fff; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- главная ---------- */

.section { padding: clamp(56px, 8vw, 110px) var(--gutter); }
.section--page { padding-top: clamp(32px, 5vw, 64px); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 36px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.section--page .title--page { margin-bottom: 36px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 40px 24px; }
.card { text-decoration: none; display: block; }
.card__img { aspect-ratio: 4 / 5; background: var(--bg-soft); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__img img { transform: scale(1.04); }
.card__title { font: 400 20px/1.15 var(--display); text-transform: uppercase; color: var(--wine); margin: 16px 0 0; letter-spacing: .02em; }
.card__sub { font-size: 16px; }
.card__price { margin: 8px 0 0; font-weight: 400; }

.band { position: relative; min-height: 520px; display: grid; align-items: center; overflow: hidden; background: var(--dark); }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.band__text { position: relative; padding: 64px var(--gutter); max-width: 620px; color: #eee; }
.band__text p { font-size: 18px; margin: 20px 0 0; }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.split__text p:not(.accent) { margin: 20px 0 28px; max-width: 440px; }

/* ---------- товар ---------- */
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(56px, 8vw, 110px); }
.gallery__main { aspect-ratio: 4 / 5; background: var(--bg-soft); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.thumb { flex: 0 0 76px; height: 95px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active { border-color: var(--wine); }
.product__info { align-self: start; position: sticky; top: 96px; }
.back { display: inline-block; margin-bottom: 20px; text-decoration: none; color: var(--muted); }
.product__price { font: 400 24px/1 var(--text); margin: 24px 0 28px; }

.buy { border-top: 1px solid var(--line); padding-top: 24px; }
.opts { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.opts legend { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.chip input:checked + span { border-color: var(--wine); background: var(--wine); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.pers { margin: 4px 0 24px; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { accent-color: var(--wine); width: 18px; height: 18px; }
.input { width: 100%; margin-top: 12px; padding: 13px 14px; border: 1px solid var(--line); background: var(--bg-soft); font-weight: 400; }
.input:focus { outline: none; border-color: var(--wine); }
.buy__note { color: var(--wine); margin: 0 0 12px; font-size: 14px; }
.prose { margin-top: 36px; }
.prose p { margin: 0 0 14px; }
.product__links { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: flex; gap: 28px; }

.empty { text-align: center; min-height: 50vh; }
.empty .btn { margin-top: 32px; }

/* ---------- корзина и оформление ---------- */
.narrow { max-width: 760px; margin: 0 auto; }
.small { font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: var(--muted); }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--wine); color: #fff; font-size: 11px; letter-spacing: 0; }
.line { display: grid; grid-template-columns: 88px 1fr auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__img { aspect-ratio: 4 / 5; background: var(--bg-soft); }
.line__img img { width: 100%; height: 100%; object-fit: contain; }
.line__title { font: 400 18px/1.15 var(--display); text-transform: uppercase; color: var(--wine); text-decoration: none; }
.line__info p { margin: 4px 0 0; }
.line__qty { display: grid; gap: 6px; justify-items: center; }
.qty { width: 70px; margin: 0; text-align: center; }
.line__sum { margin: 0; min-width: 90px; text-align: right; font-weight: 400; }
.cart > .linkbtn { margin-top: 12px; }
.promo { display: flex; gap: 10px; align-items: center; margin: 28px 0; }
.promo .input { margin: 0; max-width: 240px; }
.promo p { margin: 0; }
.summary { background: var(--bg-soft); padding: 24px; margin: 28px 0; }
.summary > p { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 10px; }
.summary > p span:last-child { text-align: right; flex: none; max-width: 50%; }
.summary__total { font: 400 20px/1.3 var(--text); padding-top: 12px; border-top: 1px solid var(--line); }
.summary .btn { margin-top: 12px; }

.checkout fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.checkout legend { font: 400 22px/1 var(--display); text-transform: uppercase; color: var(--wine); margin-bottom: 16px; }
.field { display: block; margin-bottom: 16px; font-size: 14px; }
.field .input { margin-top: 6px; }
textarea.input { resize: vertical; }
.radio { display: flex; gap: 10px; align-items: baseline; margin-bottom: 12px; cursor: pointer; }
.radio input { accent-color: var(--wine); }
.err { display: block; color: #b3261e; font-size: 13px; margin-top: 4px; }
.consent { align-items: flex-start; font-size: 14px; margin: 16px 0 4px; }
.consent input { flex: none; margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.prose--page h2 { font: 400 24px/1.15 var(--display); text-transform: uppercase; color: var(--wine); margin: 36px 0 12px; }
.prose--page ul { padding-left: 20px; margin: 0 0 14px; }
.prose--page a { color: var(--wine); }
.messengers { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 48px; }
#form { margin: 48px 0 20px; }

.toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 20; margin: 0; padding: 12px 20px; background: var(--dark); color: #fff; font-size: 14px; transition: opacity .4s; max-width: calc(100% - 32px); }
.toast.is-hidden { opacity: 0; pointer-events: none; }
.float-chat { position: fixed; right: 16px; bottom: 16px; z-index: 15; display: flex; flex-direction: column; gap: 8px; }
.float-chat a { padding: 10px 16px; background: var(--wine); color: #fff; text-decoration: none; font-size: 13px; letter-spacing: .06em; box-shadow: 0 6px 20px rgba(43, 21, 23, .25); }

.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 30; max-width: 420px; display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--dark); color: #eee; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 30px rgba(26, 13, 14, .3); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: inherit; }
.cookie .btn { flex: none; padding: 11px 18px; background: #fff; color: var(--dark); border-color: #eee; }
@media (max-width: 820px) { .cookie { right: 16px; max-width: none; } }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr) !important; gap: 28px 12px; } }

/* ---------- подвал ---------- */
.footer { background: var(--dark); color: #eee; padding: 64px var(--gutter) 28px; margin-top: 0; }
.footer__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer .logo { color: #eee; }
.footer .accent { color: #ddd; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__nav a { text-decoration: none; opacity: .85; }
.footer__nav a:hover { opacity: 1; }
.footer__copy { margin: 48px 0 0; font-size: 12px; opacity: .5; }

/* ---------- телефон ---------- */
@media (max-width: 820px) {
  .header__in { grid-template-columns: 1fr auto; }
  .logo { grid-row: 1; grid-column: 1; width: 160px; }
  .nav--left { display: none; }
  .nav--right { gap: 16px; }
  .hide-mobile { display: none; }
  .only-mobile { display: inline; }
  .section__head { flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 28px 14px; }
  .card__title { font-size: 16px; }
  .split, .product { grid-template-columns: 1fr; }
  .product__info { position: static; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .line { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .line__sum { grid-column: 2 / -1; text-align: left; }
  .promo { flex-wrap: wrap; }
}

[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
textarea, select { font: inherit; color: inherit; }
.checkout-back { display: inline-block; margin: -12px 0 32px; }
.checkout-options { display: block; color: var(--muted); font-size: 13px; }
.checkout-errors { padding: 14px 16px; border: 1px solid #b3261e; color: #8d211b; margin: 0 0 28px; }
.product__price, .line__sum, .summary { font-variant-numeric: tabular-nums; }
.pers .field { margin-top: 14px; }
.summary > p span:first-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .header__in { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .header .logo { width: 130px; }
  .nav--right { gap: 12px; font-size: 11px; letter-spacing: .02em; }
  .gallery__main { aspect-ratio: 1 / 1; }
  .gallery__main img { object-fit: contain; }
  .gallery__thumbs .thumb { flex-basis: 56px; height: 64px; }
  .summary { padding: 18px; }
  .consent { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .card__img img, .btn, .toast { transition: none; } }

/* Нейтральная витрина по референсу клиента. */
body { font-weight: 400; }
.header { backdrop-filter: none; }
.header__in { padding-top: 18px; padding-bottom: 18px; }
.nav { font-size: 11px; letter-spacing: .06em; gap: 24px; }
.logo { width: clamp(160px, 21vw, 220px); }
.title { font: 400 clamp(24px, 3vw, 38px)/1.15 var(--text); text-transform: none; letter-spacing: -.025em; }
.title--page { font-size: clamp(28px, 4vw, 42px); }
.display { font: 400 clamp(32px, 4.5vw, 64px)/1.04 var(--text); text-transform: none; letter-spacing: -.04em; }
.accent { font: 400 16px/1.5 var(--text); color: var(--muted); }
.btn { font-size: 11px; padding: 15px 26px; letter-spacing: .08em; }
.section__head { border: 0; margin-bottom: 30px; padding-bottom: 0; }
.card__title { font: 400 16px/1.4 var(--text); text-transform: none; letter-spacing: 0; }
.card__sub { font-size: 13px; }
.card__price { font-size: 14px; }
.card__img img { object-fit: contain; }
.product__info .title { font-size: clamp(28px, 3.4vw, 44px); }
.product__price { font-size: 22px; }
.footer { background: #f6f6f4; color: var(--ink); border-top: 1px solid var(--line); }
.footer .logo { color: var(--ink); }
@media (max-width: 820px) {
 .header__in { padding-top: 13px; padding-bottom: 13px; }
}
@media (max-width: 560px) {
 .header .logo { width: 130px; }
 .nav--right { gap: 12px; font-size: 10px; }
 .section { padding-top: 44px; padding-bottom: 44px; }
 .card__title { font-size: 14px; }
}

/* Композиция референса: компактная шапка, крупные фото, небольшие подписи. */
.header__in { min-height: 60px; padding: 8px 24px; grid-template-columns: 1fr auto 1fr; }
.header .logo { width: 186px; }
.nav { font-size: 10px; letter-spacing: .07em; gap: 20px; align-items: center; }
.nav--right { justify-content: flex-end; }
.customer-menu { position: relative; }
.customer-menu summary { cursor: pointer; list-style: none; }
.customer-menu summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.customer-menu summary::after { content: '+'; padding-left: 5px; }
.customer-menu[open] summary::after { content: '−'; }
.customer-menu__links { position: absolute; top: 30px; left: -18px; min-width: 190px; display: grid; background: #fff; border: 1px solid var(--line); padding: 10px 18px; gap: 0; }
.customer-menu__links a { padding: 10px 0; }
.mobile-menu { display: none; }
.campaign { position: relative; min-height: 600px; height: calc(100svh - 60px); max-height: 960px; background: #fafafa; overflow: hidden; isolation: isolate; }
.campaign__image { width: 64%; height: 100%; object-fit: contain; display: block; mix-blend-mode: darken; }
.campaign__identity { position: absolute; left: 61%; right: 5%; top: 42%; text-align: center; }
.campaign__wordmark { margin: 0; color: var(--ink); }
.campaign__wordmark svg { display: block; width: 100%; height: auto; }
.campaign__identity p { margin: 20px 0 32px; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.editorial-link { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; text-decoration-thickness: 1px; text-underline-offset: 5px; line-height: 1.8; }
.campaign__down { position: absolute; bottom: 20px; left: calc(50% - 22px); width: 44px; height: 44px; display: grid; place-items: center; font-size: 21px; text-decoration: none; }
.editorial-heading { text-align: center; padding: 82px 20px 64px; }
.editorial-heading h2, .brand-story h2 { margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.5; text-transform: uppercase; font-weight: 400; letter-spacing: .13em; }
.showcase { scroll-margin-top: 60px; }
.showcase__grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 2px; }
.showcase__item { min-width: 0; text-decoration: none; }
.showcase__image { aspect-ratio: 3 / 4; background: #f6f6f4; overflow: hidden; }
.showcase__image img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.showcase__item:hover img { transform: translateY(-3px); }
.showcase__caption { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 22px 0; gap: 12px; font-size: 11px; }
.showcase__caption h3 { margin: 0; font-size: 11px; font-weight: 400; }
.showcase__caption span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.showcase__empty { text-align: center; padding: 0 20px 60px; }
.palette { margin-top: 36px; }
.palette__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; }
.palette figure a { color: inherit; text-decoration: none; }
.collection-intro { max-width: 640px; margin: 0 auto; font-size: 14px; line-height: 1.8; text-wrap: pretty; }
.catalog-page__intro { margin: 0 auto 48px; text-align: center; }
.palette figure { margin: 0; min-width: 0; background: #fafafa; isolation: isolate; }
.palette img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: transparent; mix-blend-mode: darken; }
.palette figcaption { background: #fff; text-align: center; text-transform: uppercase; font-size: 10px; letter-spacing: .12em; padding: 22px 10px; }
.palette__action { text-align: center; margin: 28px 0 80px; }
.brand-story { display: grid; grid-template-columns: 1fr 1fr; background: #f6f6f4; }
.brand-story__copy { align-self: center; padding: 64px clamp(24px,6vw,100px); }
.brand-story__copy > p { font-size: 14px; line-height: 1.8; max-width: 350px; margin: 0 0 28px; }
.brand-story__copy > .brand-story__name { font-family: var(--display); font-size: clamp(24px,3vw,44px); line-height: 1.2; margin-bottom: 22px; }
.brand-story > img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.footer { border-top: 0; padding-top: 70px; }
@media (max-width: 820px) {
 .header__in { min-height: 56px; grid-template-columns: 1fr auto 1fr; padding: 6px 16px; gap: 10px; }
 .header .logo { grid-column: 2; grid-row: 1; width: 160px; }
 .nav--left { display: none; }
 .nav--right { grid-column: 3; grid-row: 1; font-size: 9px; letter-spacing: .02em; }
 .mobile-menu { display: block; grid-column: 1; grid-row: 1; }
 .mobile-menu summary { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; cursor: pointer; list-style: none; }
 .mobile-menu summary span { display: block; width: 20px; height: 1px; background: var(--ink); }
 .mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 20px 24px; display: grid; gap: 0; }
 .mobile-menu nav a { padding: 12px 0; text-decoration: none; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
 .campaign { min-height: 560px; height: calc(100svh - 56px); max-height: 850px; }
 .campaign__image { width: 100%; height: 74%; object-fit: contain; }
 .campaign__identity { top: auto; left: 12%; right: 12%; bottom: 11%; }
 .campaign__identity p { margin: 14px 0 22px; font-size: 9px; }
 .campaign__wordmark { max-width: 330px; margin: auto; }
 .campaign__down { bottom: 10px; }
 .editorial-heading { padding: 60px 16px 42px; }
 .showcase__grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 30px; }
 .showcase__caption { display: block; padding: 14px 12px 0; font-size: 10px; }
 .showcase__caption h3 { font-size: 10px; margin-bottom: 5px; }
 .palette { margin-top: 12px; }
 .palette__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .palette img { aspect-ratio: 1; }
 .palette figcaption { padding: 16px 10px 32px; }
 .palette__action { margin: 10px 0 60px; }
 .brand-story { grid-template-columns: 1fr; }
 .brand-story > img { grid-row: 1; }
 .brand-story__copy { padding: 48px 24px 56px; }
 .brand-story__copy > .brand-story__name { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .showcase__image img { transition: none; } }

/* Белая подложка предметного фото совпадает с фоном своего контейнера. */
.card__img, .showcase__image, .gallery__main, .line__img, .brand-story { isolation: isolate; }
.card__img img, .showcase__image img, .gallery__main img, .line__img img, .brand-story > img { mix-blend-mode: darken; }
.gallery__thumbs .thumb { background: var(--bg-soft); isolation: isolate; }
.gallery__thumbs .thumb img { mix-blend-mode: darken; }

/* Каталог и карточка: сетка и типографика референса. */
.catalog-page { padding: 0 40px 80px; }
.catalog-page__head { min-height: 60px; margin: 0 -40px 40px; padding: 20px 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.catalog-page__head h1, .catalog-page__head p { margin: 0; font-size: 10px; line-height: 1.5; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; }
.catalog-page__head p { color: var(--muted); }
.catalog-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 42px 20px; }
.catalog-grid .card { min-width: 0; }
.catalog-grid .card__img { aspect-ratio: 3 / 4; }
.catalog-grid .card__title { font: 400 25px/1.02 'EB Garamond',Georgia,serif; letter-spacing: -.025em; margin-top: 18px; }
.catalog-grid .card__price { font-size: 14px; margin-top: 12px; }
.catalog-page__empty { text-align: center; padding: 80px 0; }
.product { max-width: 1520px; margin: auto; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; padding: 60px 40px 90px; }
.product__info { max-width: 560px; top: 88px; }
.product__info .title { font: 400 36px/1.04 'EB Garamond',Georgia,serif; letter-spacing: -.025em; }
.product__info .accent { margin-top: 12px; font-size: 13px; line-height: 1.5; }
.product .back { font-size: 10px; letter-spacing: .07em; margin-bottom: 22px; }
.product__price { font-size: 20px; margin: 22px 0 28px; }
.product .buy { border-top: 0; padding-top: 0; }
.product .opts { margin-bottom: 22px; }
.product .opts legend { font-size: 10px; letter-spacing: .1em; }
.product .chip span { min-width: 44px; min-height: 42px; text-align: center; padding: 10px 14px; font-size: 12px; }
.product .pers { font-size: 13px; margin: 28px 0; }
.product .check { align-items: start; }
.product .check input { flex-shrink: 0; margin-top: 2px; }
.product .buy .btn { max-width: 360px; text-transform: none; letter-spacing: 0; font-size: 13px; padding: 16px 28px; }
.product .prose { font-size: 14px; line-height: 1.65; margin-top: 30px; }
.product__links { padding-top: 22px; margin-top: 26px; }
.product__links .link { font-size: 10px; }
.gallery { min-width: 0; }
.gallery__thumbs { gap: 8px; }
.gallery__thumbs .thumb { flex-basis: 64px; height: 80px; }
@media (max-width: 1050px) and (min-width: 821px) {
 .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .catalog-page { padding-left: 28px; padding-right: 28px; }
 .catalog-page__head { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; }
 .product { gap: 28px; padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 820px) {
 .catalog-page { padding: 0 16px 60px; }
 .catalog-page__head { margin: 0 -16px 24px; min-height: 52px; padding: 16px; }
 .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 12px; }
 .catalog-grid .card__title { font-size: 22px; line-height: 1.05; margin-top: 13px; }
 .catalog-grid .card__price { font-size: 12px; margin-top: 9px; }
 .product { grid-template-columns: 1fr; gap: 28px; padding: 24px 16px 60px; }
 .product__info { max-width: none; position: static; }
 .product__info .title { font-size: 34px; }
 .product .back { margin-bottom: 18px; }
 .product .buy .btn { max-width: none; }
 .product .gallery__main { aspect-ratio: 1; }
 .product .gallery__thumbs .thumb { flex-basis: 56px; height: 70px; }
}

/* Небольшой выступ скрывает срез ремня и оставляет чехол подвешенным под краем. */
.brand-story { position: relative; }
.brand-story::before { content: ''; position: absolute; z-index: 1; inset: 0 0 auto; height: 18px; background: var(--bg-soft); border-bottom: 1px solid rgba(36,36,36,.06); box-shadow: 0 8px 12px -10px rgba(36,36,36,.4); pointer-events: none; }
@media (max-width: 820px) {
 .brand-story::before { height: 14px; }
}

/* Корзина и заказ продолжают типографику каталога. */
.purchase-page { max-width: 1120px; margin: 0 auto; padding: 56px 40px 80px; font-size: 14px; }
.purchase-page .title--page { font: 400 42px/1.08 'EB Garamond',Georgia,serif; letter-spacing: -.025em; margin-bottom: 36px; }
.purchase-page .btn { font-size: 13px; letter-spacing: 0; text-transform: none; line-height: 1.3; padding: 15px 24px; }
.purchase-page .link { font-size: 11px; letter-spacing: .04em; }
.purchase-page .input { background: #fff; border-radius: 0; min-height: 46px; }
.purchase-page .input:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.purchase-page .line { grid-template-columns: 104px minmax(0,1fr) 90px 110px; padding: 24px 0; gap: 24px; }
.purchase-page .line__title { font: 400 25px/1.08 'EB Garamond',Georgia,serif; text-transform: none; letter-spacing: -.02em; }
.purchase-page .line__info { min-width: 0; overflow-wrap: anywhere; }
.purchase-page .line__info p { font-size: 13px; margin-top: 8px; }
.purchase-page .line__sum { font-size: 15px; }
.purchase-page .line__qty .linkbtn { min-height: 32px; }
.purchase-page .summary { padding: 28px; margin: 0; }
.purchase-page .summary > p { margin-bottom: 16px; }
.purchase-page .summary__total { font-size: 21px; margin-top: 22px; padding-top: 20px; }
.cart-page .summary { max-width: 400px; margin: 36px 0 0 auto; }
.cart-page .promo { margin-top: 32px; }
.purchase-page .checkout { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,380px); gap: 0 56px; align-items: start; }
.purchase-page .checkout fieldset { grid-column: 1; margin-bottom: 36px; min-width: 0; }
.purchase-page .checkout legend { font: 400 28px/1.1 'EB Garamond',Georgia,serif; text-transform: none; margin-bottom: 24px; }
.purchase-page .checkout .summary { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 88px; }
.purchase-page .checkout-errors { grid-column: 1 / -1; }
.purchase-page .checkout:has(.checkout-errors) .summary { grid-row: 2 / span 3; }
.purchase-page .radio { font-size: 13px; align-items: start; }
.purchase-page .radio input { margin-top: 4px; flex-shrink: 0; }
.purchase-page .radio em { display: block; font-style: normal; margin-top: 3px; }
.purchase-page .consent { font-size: 12px; line-height: 1.6; }
.purchase-page .checkout-back { margin-bottom: 32px; }
@media (max-width: 820px) {
 .purchase-page { padding: 36px 16px 60px; }
 .purchase-page .title--page { font-size: 36px; margin-bottom: 28px; }
 .purchase-page .checkout { grid-template-columns: minmax(0,1fr); }
 .purchase-page .checkout .summary, .purchase-page .checkout:has(.checkout-errors) .summary { grid-column: 1; grid-row: auto; position: static; }
 .purchase-page .summary { padding: 22px; }
 .cart-page .summary { max-width: none; }
 .purchase-page .line { grid-template-columns: 72px minmax(0,1fr) 64px; gap: 12px; padding: 20px 0; }
 .purchase-page .line__title { font-size: 22px; }
 .purchase-page .line__sum { grid-column: 2 / -1; text-align: left; }
 .purchase-page .qty { width: 64px; padding: 10px 6px; }
 .purchase-page .promo .input { max-width: none; flex: 1 1 140px; width: 0; }
 .purchase-page .promo .btn { flex: 0 0 auto; }
}

/* Текстовые страницы, контакты и подтверждение продолжают стиль витрины. */
.content-page { max-width: 840px; margin: 0 auto; padding: 56px 40px 80px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.content-page .title--page { font: 400 42px/1.08 'EB Garamond',Georgia,serif; letter-spacing: -.025em; margin-bottom: 36px; }
.content-page .prose--page { margin-top: 0; }
.content-page .prose--page h2, .content-page #form { font: 400 28px/1.15 'EB Garamond',Georgia,serif; text-transform: none; letter-spacing: -.02em; }
.content-page .prose--page h2 { margin: 36px 0 16px; }
.content-page .prose--page p, .content-page .prose--page ul { margin-bottom: 20px; }
.content-page .prose--page li + li { margin-top: 8px; }
.content-page .prose--page a, .content-page .consent a { text-underline-offset: 3px; }
.content-page .btn { font-size: 13px; letter-spacing: 0; text-transform: none; line-height: 1.3; padding: 15px 24px; }
.content-page .input { background: #fff; border-radius: 0; min-height: 46px; }
.content-page .input:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.content-page .consent { font-size: 12px; line-height: 1.6; margin: 24px 0; }
.content-page .check input { flex-shrink: 0; }
.content-page .checkout { padding-top: 8px; }
.content-page .messengers { margin: 28px 0 40px; }
.content-page .accent { font: 400 14px/1.7 var(--text); }
.order-page .eyebrow { font-size: 10px; letter-spacing: .1em; margin: 0 0 14px; }
.order-page > p:not(.eyebrow) { margin-bottom: 24px; }
.order-page .summary { padding: 28px; margin: 32px 0; }
.order-page .summary > p { margin-bottom: 16px; }
.order-page .summary em { display: block; font-size: 12px; font-style: normal; }
.order-page .summary__total { font-size: 21px; padding-top: 20px; }
@media (max-width: 820px) {
 .content-page { padding: 36px 16px 60px; }
 .content-page .title--page { font-size: 36px; margin-bottom: 28px; }
 .content-page .prose--page h2, .content-page #form { font-size: 26px; }
 .order-page .summary { padding: 22px; }
}

@media (max-width: 820px) {
 .content-page input.input, .content-page textarea.input, .purchase-page input.input, .purchase-page textarea.input, .product input.input { font-size: 16px; }
}

.content-page--about { max-width: 1160px; }
.founder-story { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); gap: clamp(32px,5vw,64px); align-items: start; }
.founder-story__portrait { margin: 0; }
.founder-story__portrait img { display: block; width: 100%; height: auto; }
.founder-story__portrait figcaption { margin-top: 16px; font-size: 11px; line-height: 1.6; letter-spacing: .04em; }
.founder-story .prose--page > :first-child { margin-top: 0; }
@media (max-width: 820px) {
 .founder-story { grid-template-columns: 1fr; gap: 32px; }
 .founder-story__portrait { width: 100%; max-width: 440px; margin: 0 auto; }
}

.shipping-fields { margin: 20px 0; }
.shipping-search { display: flex; align-items: end; gap: 12px; }
.shipping-search .field { flex: 1; min-width: 0; margin-bottom: 0; }
.shipping-search .btn { white-space: nowrap; }
#shipping-result { font-size: 13px; line-height: 1.7; margin: 16px 0; }
@media (max-width: 540px) { .shipping-search { display: block; } .shipping-search .btn { margin: 12px 0 20px; } }
