/* ============ TOMALÉ ============ */
:root {
  --bg: #F4F2EF;          /* тон стіни студії на зйомці */
  --paper: #FAF9F7;
  --stone: #E9E5E0;
  --taupe: #C4BBB2;
  --ink: #1C1816;
  --cocoa: #3E2E2B;
  --gold: #B08D57;
  --muted: #8A827C;
  --line: rgba(28, 24, 22, .12);
  --display: 'Prata', 'Didot', 'Bodoni 72', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Tenor Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 3.4vw, 56px);
  --head: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.7 var(--sans); letter-spacing: .02em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -.005em; }
em { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: 0; }
body.lock { overflow: hidden; }

.eyebrow { display: inline-block; font: 400 10.5px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.dia { width: 5px; height: 5px; color: var(--gold); flex: none; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; width: 150px; margin: 26px auto; }
.ornament i { flex: 1; height: 1px; background: var(--gold); opacity: .55; }
.ornament svg { width: 5px; height: 5px; color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; height: 52px; padding: 0 40px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 400 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; position: relative; overflow: hidden; transition: color .6s var(--ease); isolation: isolate; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--paper); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: scaleY(1); }
.btn svg { width: 17px; height: 17px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn--block { width: 100%; }
.link { position: relative; display: inline-flex; align-items: center; gap: 12px; padding-bottom: 7px; font: 400 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .7s var(--ease); }
.link:hover::after { transform: scaleX(0); }
.link svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.link:hover svg { transform: translateX(4px); }

.icon-btn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }
.count { position: absolute; top: 5px; right: 3px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--gold); color: #fff; font: 400 8.5px/14px var(--sans); text-align: center; letter-spacing: 0; }
.count:empty { display: none; }

/* ============ Announce + header ============ */
/* Бігучий рядок: дві однакові групи, зсув на -50% = безшовний цикл */
.announce { height: 34px; display: flex; align-items: center; background: var(--ink); color: var(--stone); font: 400 9.5px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.announce__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.announce:hover .announce__track { animation-play-state: paused; }
.announce__group { display: flex; align-items: center; gap: 22px; padding-right: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.header { position: sticky; top: 0; z-index: 50; background: rgba(244, 242, 239, .9); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .4s; }
.header.scrolled { border-bottom-color: var(--line); }
.header__inner { height: var(--head); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter); }
.header__nav { display: flex; align-items: center; gap: 36px; }
.header__nav--r { justify-content: flex-end; gap: 4px; }
.nav-link { position: relative; font: 400 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; padding: 8px 0; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.burger { display: none; margin-left: -10px; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.logo__word { font: 400 25px/1 var(--display); letter-spacing: .42em; margin-right: -.42em; color: var(--cocoa); }
.logo__rule { display: flex; align-items: center; gap: 6px; width: 78%; }
.logo__rule i { flex: 1; height: 1px; background: var(--gold); opacity: .6; }
.logo__rule svg { width: 4px; height: 4px; color: var(--gold); }
.lang { display: flex; gap: 12px; margin-right: 14px; font: 400 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.lang__btn { color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .3s; }
.lang__btn.active { color: var(--ink); border-bottom-color: var(--gold); }

/* Mobile menu */
.mmenu { position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: 0 24px 32px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.mmenu.open { opacity: 1; visibility: visible; }
.mmenu__head { height: var(--head); display: flex; justify-content: space-between; align-items: center; }
.mmenu__head .logo__word { font-size: 20px; }
.mmenu__nav { display: flex; flex-direction: column; gap: 6px; margin-top: 32px; }
.mmenu__nav a { font: 400 30px/1.35 var(--display); opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mmenu.open .mmenu__nav a { opacity: 1; transform: none; }
.mmenu.open .mmenu__nav a:nth-child(2) { transition-delay: .04s } .mmenu.open .mmenu__nav a:nth-child(3) { transition-delay: .08s }
.mmenu.open .mmenu__nav a:nth-child(4) { transition-delay: .12s } .mmenu.open .mmenu__nav a:nth-child(5) { transition-delay: .16s }
.mmenu.open .mmenu__nav a:nth-child(6) { transition-delay: .2s } .mmenu.open .mmenu__nav a:nth-child(7) { transition-delay: .24s } .mmenu.open .mmenu__nav a:nth-child(8) { transition-delay: .28s }
.mmenu__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .1em; }
.mmenu__foot .lang { margin: 0; }

/* ============ Page ============ */
.page { animation: pageIn .9s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.section { padding: clamp(80px, 11vw, 160px) var(--gutter); }

/* ============ Hero ============ */
.hero { position: relative; display: grid; grid-template-columns: 1.08fr 1fr 1fr; height: calc(100svh - var(--head) - 34px); min-height: 600px; max-height: 1000px; }
.hero__text { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 0 clamp(24px, 4vw, 64px) clamp(48px, 8vh, 90px); }
.hero__title { font-size: clamp(56px, 6.4vw, 108px); line-height: .98; margin: 26px 0 30px; }
.hero__title em { display: inline-block; font-size: 1.12em; color: var(--cocoa); }
.hero__lead { max-width: 360px; margin: 0 0 42px; color: var(--muted); font-size: 14px; }
.hero__media { position: relative; overflow: hidden; background: var(--stone); }
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { transform: scale(1.08); animation: heroZoom 2.6s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero .anim { opacity: 0; transform: translateY(26px); animation: up 1.3s var(--ease) forwards; }
.hero .d1 { animation-delay: .3s } .hero .d2 { animation-delay: .45s } .hero .d3 { animation-delay: .6s } .hero .d4 { animation-delay: .75s }
@keyframes up { to { opacity: 1; transform: none; } }
.sound { position: absolute; right: 18px; bottom: 18px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: rgba(250,249,247,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; }
.sound svg { width: 20px; height: 20px; }

/* ============ Manifesto ============ */
.manifesto { text-align: center; max-width: 1080px; margin: 0 auto; }
.manifesto p { margin: 30px 0 0; font: 400 clamp(26px, 3.5vw, 52px)/1.3 var(--display); }
.manifesto p em { font-size: 1.12em; color: var(--cocoa); }

/* ============ Product card with gallery ============ */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(36px, 4.4vw, 64px); margin-top: 16px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 14px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 1180px; }
.card { position: relative; min-width: 0; }
.gal { position: relative; aspect-ratio: 2/3; background: var(--stone); overflow: hidden; }
.gal__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: block; }
.gal__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .gal__slide img { transform: scale(1.025); }
.gal__arrow { position: absolute; top: 50%; z-index: 3; width: 38px; height: 38px; margin-top: -19px; display: grid; place-items: center; background: rgba(250,249,247,.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s, transform .4s var(--ease); }
.gal__arrow svg { width: 17px; height: 17px; }
.gal__arrow.prev { left: 10px; transform: translateX(-6px); }
.gal__arrow.next { right: 10px; transform: translateX(6px); }
.card:hover .gal__arrow { opacity: 1; transform: none; }
.gal__arrow[disabled] { opacity: 0 !important; pointer-events: none; }
.gal__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gal__dots i { width: 18px; height: 1px; background: rgba(28,24,22,.22); transition: background .4s, width .4s var(--ease); }
.gal__dots i.on { background: var(--ink); width: 30px; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 3; padding: 6px 10px 5px; background: var(--paper); font: 400 9px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; pointer-events: none; }
.badge.limited { background: var(--ink); color: var(--paper); }
.card__wish { position: absolute; top: 6px; right: 6px; z-index: 3; }
.card__wish.on { color: var(--gold); }
.card__info { padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.card__name { font: 400 16px/1.3 var(--display); }
.card__price { font-size: 12.5px; letter-spacing: .1em; color: var(--muted); }

/* ============ Editorial (video + text) ============ */
.editorial { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.editorial__media { position: relative; aspect-ratio: 4/5; max-height: 92vh; width: 100%; overflow: hidden; background: var(--stone); }
.editorial__media video, .editorial__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.editorial__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 8vw, 140px); }
.editorial__text h2 { font-size: clamp(34px, 3.6vw, 58px); line-height: 1.12; margin: 26px 0 30px; }
.editorial__text h2 em { font-size: 1.12em; color: var(--cocoa); }
.editorial__text p { max-width: 420px; margin: 0 0 44px; color: var(--muted); font-size: 15px; }
.editorial__text .link { align-self: flex-start; }

/* ============ Values ============ */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.value figure { margin: 0; aspect-ratio: 3/4; overflow: hidden; background: var(--stone); }
.value img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.value:hover img { transform: scale(1.04); }
.value__n { display: block; margin: 26px 0 12px; font: italic 300 18px/1 var(--serif); color: var(--gold); }
.value h3 { font-size: 24px; margin-bottom: 12px; }
.value p { margin: 0; max-width: 360px; color: var(--muted); }

/* ============ Quote ============ */
.quote { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--stone); overflow: hidden; }
.quote__media { position: relative; aspect-ratio: 4/5; max-height: 100vh; width: 100%; }
.quote__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote__text { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 8vw, 140px); }
.quote .eyebrow { color: var(--taupe); }
.quote blockquote { position: relative; margin: 28px 0 0; font: 400 clamp(26px, 3vw, 46px)/1.3 var(--display); }
.quote .ornament { margin: 40px 0 0; }

/* ============ Final CTA ============ */
.final { text-align: center; }
.final h2 { font-size: clamp(32px, 4.6vw, 70px); line-height: 1.14; }
.final h2 em { font-size: 1.1em; color: var(--cocoa); }
.final .btn { margin-top: 48px; }

/* ============ Instagram ============ */
.insta { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.insta a { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--stone); }
.insta img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .5s; }
.insta a:hover img { transform: scale(1.05); opacity: .85; }
.insta-handle { font: italic 300 clamp(28px, 3vw, 40px)/1 var(--serif); color: var(--cocoa); display: block; margin-top: 14px; }

/* ============ Newsletter ============ */
.news { text-align: center; background: var(--stone); padding: clamp(80px, 10vw, 130px) var(--gutter); }
.news h2 { font-size: clamp(34px, 4vw, 56px); margin: 20px 0 16px; }
.news p { max-width: 460px; margin: 0 auto 40px; color: var(--muted); }
.news form { display: flex; max-width: 480px; margin: 0 auto; border-bottom: 1px solid var(--ink); }
.news input { flex: 1; min-width: 0; padding: 16px 0; border: 0; outline: 0; background: transparent; font-size: 14px; letter-spacing: .06em; }
.news input::placeholder { color: var(--muted); }
.news button { display: flex; align-items: center; gap: 10px; font: 400 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.news button svg { width: 17px; height: 17px; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: var(--taupe); padding: 90px var(--gutter) 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
/* Wordmark — як на брендбуці: TOMALÉ + лінія з ромбом */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: var(--cocoa); }
.wordmark > span { font: 400 26px/1 var(--display); letter-spacing: .42em; margin-right: -.42em; }
.wordmark > i { display: flex; align-items: center; gap: 7px; width: 80%; }
.wordmark > i b { flex: 1; height: 1px; background: var(--gold); opacity: .6; }
.wordmark > i svg { width: 5px; height: 5px; color: var(--gold); }
.wordmark--light { color: var(--stone); }
.wordmark--xl > span { font-size: clamp(34px, 3.6vw, 52px); }
.wordmark--xl { gap: 16px; margin-bottom: 30px; }
.footer__brand p { max-width: 300px; margin: 22px 0 0; font-size: 13px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.footer__col h6 { margin: 0 0 12px; font: 400 10px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--stone); }
.footer__col a { transition: color .3s; }
.footer__col a:hover { color: var(--paper); }
.footer__word { margin: 90px 0 36px; text-align: center; white-space: nowrap; font: 400 clamp(56px, 16vw, 290px)/.8 var(--display); letter-spacing: .14em; margin-right: -.14em; color: rgba(233,229,224,.06); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; letter-spacing: .12em; }

/* ============ Shop ============ */
.page-hero { padding: clamp(56px, 7vw, 100px) var(--gutter) 36px; text-align: center; }
.page-hero h1 { font-size: clamp(44px, 6vw, 92px); margin-top: 18px; }
.crumbs { font: 400 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.toolbar { position: sticky; top: var(--head); z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px var(--gutter); background: rgba(244,242,239,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { padding: 8px 0; white-space: nowrap; border-bottom: 1px solid transparent; font: 400 10.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); transition: color .3s, border-color .3s; }
.chips a.active, .chips a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.toolbar__r { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.toolbar__r span { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.toolbar select { border: 0; background: transparent; outline: 0; cursor: pointer; font: 400 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.shop-grid { padding: 44px var(--gutter) 130px; }
.empty { text-align: center; padding: 100px 20px 140px; }
.empty h2 { font-size: 32px; margin-bottom: 30px; }

/* ============ Product page ============ */
.pdp { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); padding: 28px var(--gutter) 100px; }
.pdp__gal { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-self: start; position: sticky; top: calc(var(--head) + 20px); }
.pdp__thumbs { display: flex; flex-direction: column; gap: 10px; }
.pdp__thumbs button { aspect-ratio: 2/3; overflow: hidden; opacity: .45; transition: opacity .4s; outline: 1px solid transparent; outline-offset: 2px; }
.pdp__thumbs button.on { opacity: 1; outline-color: var(--ink); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__main { position: relative; aspect-ratio: 2/3; max-height: calc(100svh - var(--head) - 60px); width: 100%; margin: 0 auto; }
.pdp__main .gal__track { cursor: zoom-in; }
.pdp__main .gal__arrow { opacity: 1; transform: none; width: 44px; height: 44px; margin-top: -22px; }
.pdp__count { position: absolute; left: 16px; bottom: 14px; z-index: 3; font-size: 11px; letter-spacing: .2em; }
.pdp__info { padding-top: 12px; }
.pdp__info .crumbs { display: block; margin-bottom: 34px; }
.pdp__info .badge { position: static; display: inline-block; margin-bottom: 20px; }
.pdp__name { font-size: clamp(34px, 3.6vw, 54px); }
.pdp__price { margin: 20px 0 36px; font-size: 16px; letter-spacing: .12em; }
.pdp__row { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; font: 400 10.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.pdp__row b { font-weight: 400; color: var(--muted); letter-spacing: .1em; text-transform: none; margin-left: 8px; }
.pdp__row button { text-decoration: underline; text-underline-offset: 4px; color: var(--muted); letter-spacing: .14em; }
.swatches { display: flex; gap: 12px; margin-bottom: 30px; }
.swatches i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); outline: 1px solid var(--ink); outline-offset: 3px; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
.sizes button { height: 50px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .16em; transition: all .3s; }
.sizes button:hover { border-color: var(--ink); }
.sizes button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sizes.shake { animation: shake .45s; }
@keyframes shake { 25% { transform: translateX(-6px) } 50% { transform: translateX(6px) } 75% { transform: translateX(-3px) } }
.pdp__actions { display: grid; grid-template-columns: 1fr 52px; gap: 8px; }
.wish-big { border: 1px solid var(--ink); display: grid; place-items: center; }
.wish-big svg { width: 21px; height: 21px; }
.wish-big.on { color: var(--gold); }
.pdp__notes { display: flex; gap: 24px; flex-wrap: wrap; margin: 24px 0 30px; font: 400 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.pdp__notes span { display: inline-flex; align-items: center; gap: 9px; }
.pdp__help { display: block; margin: 0 0 30px; padding: 18px 22px; background: var(--paper); font-size: 13px; transition: background .3s; }
.pdp__help:hover { background: var(--stone); }
.pdp__help svg { width: 15px; height: 15px; vertical-align: -3px; margin-left: 8px; }
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; font: 400 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.acc[open] summary svg { transform: rotate(45deg); }
.acc p { margin: 0 0 22px; color: var(--muted); font-size: 13.5px; }

/* ============ About ============ */
.about-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--head) - 34px); }
.about-hero__media { position: relative; overflow: hidden; background: var(--stone); }
.about-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-hero__text { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 60px var(--gutter); }
.about-hero__text h1 { font-size: clamp(38px, 4.4vw, 68px); margin-top: 30px; line-height: 1.12; }
.about-hero__text h1 em { font-size: 1.1em; color: var(--cocoa); }
.story { max-width: 840px; margin: 0 auto; }
.story p { margin: 0 0 36px; font: 400 clamp(19px, 2vw, 28px)/1.6 var(--display); }
.story p:first-child::first-letter { float: left; font-size: 3.4em; line-height: .8; margin: 8px 14px 0 0; color: var(--gold); }
.story .final-line { text-align: center; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.35; color: var(--cocoa); }
.diff { text-align: center; max-width: 900px; margin: 0 auto; }
.diff__tags { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; font: 400 11px/1.6 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
.diff h2 { font-size: clamp(32px, 3.6vw, 52px); margin: 34px 0 24px; }
.diff p { color: var(--muted); font-size: 15px; max-width: 620px; margin: 0 auto; }

/* ============ Drawer ============ */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(28,24,22,.35); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.overlay.show { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(440px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .7s var(--ease); }
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 24px; }
.drawer__head sup { font: 400 11px var(--sans); color: var(--gold); }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px 26px; }
.drawer__foot { padding: 22px 26px 28px; border-top: 1px solid var(--line); }
.drawer__foot:empty { display: none; }
.line { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line img { width: 90px; height: 135px; object-fit: cover; }
.line__top { display: flex; justify-content: space-between; gap: 10px; }
.line__name { font: 400 15px/1.3 var(--display); }
.line__meta { margin-top: 6px; font-size: 11.5px; color: var(--muted); letter-spacing: .08em; }
.line__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; }
.qty button svg { width: 13px; height: 13px; }
.qty span { width: 24px; text-align: center; font-size: 12px; }
.line__rm { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; font: 400 20px/1 var(--display); }
.sum span:first-child { font: 400 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.drawer .empty { padding: 80px 0; }
.drawer .empty h2 { font-size: 24px; }

/* ============ Search ============ */
.search { position: fixed; inset: 0; z-index: 95; background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.search.open { opacity: 1; visibility: visible; }
.search__inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 96px var(--gutter) 60px; }
.search__close { position: absolute; top: 24px; right: var(--gutter); }
.search input { width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); outline: 0; background: transparent; font: 400 clamp(30px, 4.4vw, 58px)/1.3 var(--display); }
.search input::-webkit-search-cancel-button { display: none; }
.search__results { margin-top: 48px; }

/* ============ Lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 120; background: var(--paper); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__track figure { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; display: grid; place-items: center; }
.lightbox__track img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox__x { position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--paper); }
.lightbox__nav { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; display: grid; place-items: center; }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__nav.prev { left: 12px; } .lightbox__nav.next { right: 12px; }
.lightbox__count { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 11px; letter-spacing: .24em; }

/* ============ Modal / forms ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(28,24,22,.45); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.modal.open { opacity: 1; visibility: visible; }
.modal__box { position: relative; width: min(580px, 100%); max-height: 92vh; overflow-y: auto; padding: 54px clamp(22px, 5vw, 56px) 44px; background: var(--bg); transform: translateY(18px); transition: transform .6s var(--ease); }
.modal.open .modal__box { transform: none; }
.modal__x { position: absolute; top: 12px; right: 12px; }
.modal h2 { font-size: 34px; text-align: center; margin-bottom: 30px; }
table.sizes-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sizes-t th, .sizes-t td { padding: 14px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.sizes-t th { font-weight: 400; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.form { display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.field input { height: 44px; border: 0; border-bottom: 1px solid var(--line); background: transparent; outline: 0; font-size: 14px; transition: border-color .3s; }
.field input:focus { border-bottom-color: var(--ink); }
.form small { text-align: center; color: var(--muted); font-size: 11.5px; }
.success { text-align: center; }
.success p { max-width: 380px; margin: 0 auto 30px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 130; display: flex; align-items: center; gap: 12px; padding: 15px 24px; background: var(--ink); color: var(--stone); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; transform: translate(-50%, 24px); opacity: 0; transition: all .5s var(--ease); pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.info { max-width: 720px; margin: 0 auto; padding: 20px var(--gutter) 130px; text-align: center; color: var(--muted); font-size: 15px; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .insta { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1.2fr 1fr; }
  .hero__media--photo { display: none; }
}
@media (max-width: 860px) {
  :root { --head: 62px; }
  .nav-link, .hide-sm { display: none !important; }
  .burger { display: inline-grid; }
  .logo__word { font-size: 19px; }
  .logo { gap: 5px; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 8px; }

  /* Мобільний hero: відео на весь екран */
  .hero { display: block; height: calc(100svh - var(--head) - 34px); min-height: 520px; }
  .hero__media--video { position: absolute; inset: 0; }
  .hero__media--video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,24,22,0) 38%, rgba(28,24,22,.66) 100%); }
  .hero__text { position: absolute; inset: auto 0 0 0; z-index: 2; color: var(--paper); padding: 0 22px 44px; text-align: center; align-items: center; }
  .hero__text .eyebrow { color: rgba(250,249,247,.8); }
  .hero__title { font-size: clamp(46px, 13vw, 64px); margin: 16px 0 18px; }
  .hero__title em { color: var(--paper); }
  .hero__lead { color: rgba(250,249,247,.85); margin-bottom: 28px; font-size: 13px; }
  .hero__text .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); width: 100%; max-width: 340px; }
  .hero__text .btn::before { background: var(--ink); }
  .hero__text .btn:hover { color: var(--paper); }
  .sound { top: 14px; bottom: auto; right: 14px; width: 38px; height: 38px; }

  .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); gap: 40px 8px; }
  .gal__arrow { display: none; }
  .gal__dots { bottom: 10px; gap: 4px; }
  .gal__dots i { width: 12px; } .gal__dots i.on { width: 20px; }
  .card__name { font-size: 14px; }
  .card__price { font-size: 11.5px; }
  .card__wish { top: 2px; right: 2px; }
  .badge { top: 10px; left: 10px; }

  .editorial, .quote, .about-hero { grid-template-columns: 1fr; }
  .editorial__media { aspect-ratio: 4/5.4; max-height: none; }
  .editorial__text, .quote__text { padding: 64px 22px 80px; }
  .values { grid-template-columns: 1fr; gap: 56px; }
  .value figure { aspect-ratio: 4/5; }
  .about-hero__media { aspect-ratio: 9/14; }
  .about-hero__text { order: -1; padding: 56px 22px; }

  .pdp { grid-template-columns: 1fr; padding: 0 0 80px; gap: 28px; }
  .pdp__gal { position: static; grid-template-columns: 1fr; }
  .pdp__thumbs { display: none; }
  .pdp__main { max-height: none; }
  .pdp__main .gal__arrow { display: none; }
  .pdp__info { padding: 0 var(--gutter); }
  .pdp__info .crumbs { margin-bottom: 22px; }

  .form .two { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer__brand { grid-column: span 2; }
  .footer__bottom { flex-direction: column; }
  .announce { font-size: 8.5px; gap: 12px; letter-spacing: .26em; }
  .lightbox__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .announce__track { animation: none !important; }
}

/* ============ v2: дані з БД — варіанти, оформлення, замовлення ============ */
.muted { color: var(--muted); }
.center { text-align: center; }
.page-loading { min-height: 70vh; }
.preview-bar { position: sticky; top: 0; z-index: 60; background: var(--gold); color: #fff; text-align: center; padding: 8px 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.preview-bar[hidden], .announce[hidden] { display: none; }
.logo__img { max-height: 46px; width: auto; }
.old-price { color: var(--muted); text-decoration: line-through; margin-right: 6px; }
.sale-price { color: #8E2B2B; }
.badge.sale { background: #8E2B2B; color: #fff; }
.badge.hit { background: var(--gold); color: #fff; }
/* товар без залишку: фото не приглушуємо — лише підпис «Немає в наявності» під ціною */
.gal__empty { background: var(--stone); }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .3s; }
.swatches button.on { outline-color: var(--ink); }
.sizes button { position: relative; }
.sizes button.off { color: var(--taupe); background: transparent; cursor: not-allowed; text-decoration: line-through; }
.sizes button .low { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.pdp__short { margin: -14px 0 30px; color: var(--muted); }
.acc p + p { margin-top: -10px; }
.chips--sub { padding: 14px var(--gutter) 0; gap: 22px; }
.page-hero__desc { max-width: 620px; margin: 18px auto 0; color: var(--muted); }
.line--out { opacity: .7; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { flex: 1 1 140px; position: relative; display: block; border: 1px solid var(--line); padding: 13px 14px; font-size: 12.5px; letter-spacing: .04em; text-transform: none; color: var(--ink); cursor: pointer; transition: border-color .3s, background .3s; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row label:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.form-error { margin: 0; padding: 12px 14px; background: #F6E7E4; color: #8E2B2B; font-size: 13px; }
.form-error[hidden] { display: none; }
.promo { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.promo img { width: 100%; height: 100%; max-height: 80vh; object-fit: cover; }
.promo__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(48px, 7vw, 120px); gap: 22px; }
.promo__text h2 { font-size: clamp(32px, 3.4vw, 54px); }
.promo__text p { margin: 0; color: var(--muted); max-width: 420px; }
.order-page { max-width: 720px; margin: 0 auto; padding: 10px var(--gutter) 120px; }
.order-msg { padding: 16px 20px; margin-bottom: 26px; background: var(--paper); border-left: 2px solid var(--gold); }
.order-msg.paid { border-color: #4E7A55; }
.order-msg.failed { border-color: #8E2B2B; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 26px; }
.order-grid > div { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--paper); }
.order-grid b { font: 400 20px/1.2 var(--display); }
.order-grid small { color: var(--muted); }
.order-items { border-top: 1px solid var(--line); margin-bottom: 20px; }
.order-page .btn { margin-top: 10px; }
.rich p { text-align: left; }
@media (max-width: 860px) {
  .promo { grid-template-columns: 1fr; }
  .promo__text { padding: 48px 22px 64px; }
}
