:root {
  --bg: #FAF7F2;
  --ink: #1C1917;
  --ink-2: #57534E;
  --accent: #A16207;
  --accent-soft: #D9A441;
  --terra: #B4633E;
  --sand: #E9DFCF;
  --line: #DDD5C8;
  --card: #FFFFFF;
  --dark: #1C1917;
  --serif: "Cormorant", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; scrollbar-color: rgba(28, 25, 23, .48) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(28, 25, 23, .48); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(28, 25, 23, .68); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg, img { display: block; }
img { max-width: 100%; }
em { font-style: italic; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 150; background: var(--dark); color: var(--bg);
  display: grid; place-items: center; pointer-events: none;
  animation: pre-out .9s var(--ease) 1.1s forwards;
}
.preloader span { font: 500 clamp(48px, 9vw, 120px)/1 var(--serif); letter-spacing: .02em; animation: pre-in 1s var(--ease) both; }
@keyframes pre-in { from { opacity: 0; transform: translateY(40px); letter-spacing: .3em; } }
@keyframes pre-out { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); transition: transform .45s var(--ease), background .3s, box-shadow .3s, padding .3s;
}
.header.is-scrolled { background: rgba(250, 247, 242, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding-block: 12px; }
.logo { font: 600 30px/1 var(--serif); letter-spacing: .01em; }
.logo i { color: var(--accent); font-style: normal; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 14px; font-weight: 500; }
.nav a { position: relative; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.cart { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.cart:hover { background: var(--sand); }
.cart__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Shared ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.eyebrow--light { color: var(--accent-soft); }
.h2 { font: 500 clamp(36px, 5vw, 68px)/1.05 var(--serif); letter-spacing: -.01em; margin-top: 14px; text-wrap: balance; }
.lead { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); max-width: 54ch; margin-top: 22px; }
.section { padding: clamp(72px, 10vw, 150px) var(--pad); }
.section__head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .3s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn { transition: color .35s var(--ease), border-color .3s, transform .25s; } .btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; } .btn--dark::before { background: var(--accent); }
.btn--accent { background: var(--accent-soft); color: var(--ink); } .btn--accent::before { background: #fff; }
.btn--ghost { border: 1px solid var(--ink); } .btn--ghost::before { background: var(--ink); } .btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 120px var(--pad) 72px;
}
.hero__title { font: 500 clamp(52px, 8.2vw, 132px)/.95 var(--serif); letter-spacing: -.02em; margin: 18px 0 28px; }
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line > span { display: block; }
.hero__lead { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); max-width: 48ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats { display: flex; gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stats b { display: block; font: 500 clamp(32px, 3.6vw, 48px)/1 var(--serif); font-variant-numeric: lining-nums; min-width: 2ch; }
.hero__stats span { font-size: 13px; color: var(--ink-2); }

.hero__visual { position: relative; height: min(78vh, 720px); min-height: 440px; }
.arch { position: absolute; inset: 0 8% 0 8%; border-radius: 999px 999px 28px 28px; background: #E3CDB1; overflow: hidden; box-shadow: 0 40px 80px rgba(74, 50, 32, .18); }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1); transition: opacity 1.15s ease, transform 5.2s linear; }
.hero-slide.active { opacity: 1; transform: scale(1.07); }
.tag > div { transition: opacity .35s ease, transform .35s ease; }
.tag.is-swapping > div { opacity: 0; transform: translateY(4px); }
.kw { display: inline-grid; vertical-align: bottom; }
.hero-keyword { grid-area: 1 / 1; color: var(--ink); opacity: 0; animation: heroKeywordCycle 9s ease-in-out infinite; }
.hero-keyword:nth-child(2) { animation-delay: 3s; } .hero-keyword:nth-child(3) { animation-delay: 6s; }
@keyframes heroKeywordCycle { 0%, 28% { opacity: 1; transform: translateY(0); } 33%, 95% { opacity: 0; transform: translateY(-3px); } 96%, 100% { opacity: 0; transform: translateY(3px); } }
.tag { position: absolute; z-index: 2; left: 0; top: 22%; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); border-radius: 16px; box-shadow: 0 18px 40px rgba(28, 25, 23, .12); font-size: 13px; }
.tag strong { display: block; font-weight: 600; } .tag span { color: var(--ink-2); }
.tag__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 0 rgba(180, 99, 62, .5); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(180, 99, 62, 0); } }
.badge { position: absolute; z-index: 2; right: 0; top: 4%; width: clamp(110px, 12vw, 160px); animation: spin 18s linear infinite; }
.badge text { font: 500 13.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; fill: var(--ink); }
.badge { background: var(--bg); border-radius: 50%; padding: 6px; }
.badge circle { fill: var(--ink); } .badge path { stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint { position: absolute; left: var(--pad); bottom: 24px; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.scroll-hint span { width: 1px; height: 36px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint span::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font: 500 italic clamp(28px, 3.6vw, 52px)/1 var(--serif); white-space: nowrap; }
.marquee i { color: var(--accent); font-style: normal; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Collections ---------- */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 1.6vw, 24px); perspective: 1400px; }
.card { grid-column: span 2; position: relative; min-height: clamp(320px, 34vw, 480px); border-radius: 28px; background: var(--sand); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; cursor: pointer; }
.card--wide { grid-column: span 3; }
.card__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 25, 23, 0) 38%, rgba(28, 25, 23, .78) 100%); }
.card:hover .card__art, .card:focus-visible .card__art { transform: scale(1.06); }
.card__info { position: relative; z-index: 1; }
.card__info span { font-size: 12px; letter-spacing: .16em; opacity: .8; }
.card__info h3 { font: 500 clamp(28px, 2.8vw, 40px)/1.1 var(--serif); margin: 4px 0 2px; }
.card__info p { font-size: 14px; opacity: .88; }
.card__go { position: absolute; z-index: 1; right: 24px; bottom: 24px; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transform: scale(.7) rotate(-45deg); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.card:hover .card__go, .card:focus-visible .card__go { transform: scale(1) rotate(0); opacity: 1; }

/* ---------- Bestsellers ---------- */
.hscroll { background: #F2ECE2; padding: clamp(72px, 10vw, 150px) var(--pad); }
.hscroll__head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }
.hscroll__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 28px); }
.product { min-width: 0; scroll-snap-align: start; }
.product__art { position: relative; aspect-ratio: 1 / 1.05; border-radius: 24px; background: var(--sand); overflow: hidden; }
.product__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.product:hover .product__art img { transform: scale(1.06); }
.chip { position: absolute; z-index: 1; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; }
.product__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 18px 4px 14px; }
.product h3 { font: 500 26px/1.1 var(--serif); }
.product p { font-size: 13px; color: var(--ink-2); }
.product b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 4px; }
.add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.add:hover { background: var(--ink); color: #fff; }
.add.is-added { background: var(--accent); border-color: var(--accent); color: #fff; }
.add svg { transition: transform .4s var(--ease); } .add.is-added svg { transform: rotate(135deg); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__visual { position: relative; }
.about__frame { aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; background: var(--sand); overflow: hidden; }
.about__art { width: 100%; height: 100%; object-fit: cover; }
.about__note { position: absolute; right: -4%; bottom: 10%; max-width: 220px; padding: 20px 22px; border-radius: 20px; background: var(--ink); color: #fff; box-shadow: 0 24px 50px rgba(28, 25, 23, .25); }
.about__note b { font: 500 44px/1 var(--serif); color: var(--accent-soft); display: block; }
.about__note span { font-size: 13px; opacity: .85; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 44px; }
.features li { display: flex; gap: 16px; }
.features svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--sand); color: var(--accent); }
.features h3 { font-size: 16px; font-weight: 600; } .features p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* ---------- Process ---------- */
.process { background: var(--dark); color: #F5F1EA; padding: clamp(72px, 10vw, 150px) var(--pad); border-radius: 40px 40px 0 0; }
.process em { color: var(--accent-soft); }
.process__line { height: 1px; background: rgba(255, 255, 255, .16); margin-bottom: 40px; }
.process__line span { display: block; height: 100%; background: var(--accent-soft); transform-origin: left; }
.js .process__line span { transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
.js .process__line.visible span { transform: scaleX(1); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); }
.step__n { font: 400 italic clamp(56px, 6vw, 96px)/1 var(--serif); color: var(--accent-soft); display: block; }
.step h3 { font: 500 28px/1.1 var(--serif); margin: 14px 0 10px; }
.step p { font-size: 14px; color: #BFB8AE; max-width: 30ch; }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 2.6vw, 38px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; transition: transform .4s var(--ease), box-shadow .4s; }
.review:hover { box-shadow: 0 24px 50px rgba(28, 25, 23, .08); }
.review--accent { background: var(--sand); border-color: transparent; }
.review blockquote { font: 500 clamp(21px, 1.8vw, 26px)/1.3 var(--serif); }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.review figcaption span { color: var(--ink-2); display: block; font-size: 13px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff !important; display: grid !important; place-items: center; font: 500 20px var(--serif) !important; }

/* ---------- CTA ---------- */
.cta { position: relative; margin: 0 var(--pad); border-radius: 40px; background: var(--dark); color: #F5F1EA; overflow: hidden; }
.cta em { color: var(--accent-soft); }
.cta .lead { color: #BFB8AE; }
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(40px, 6vw, 96px); }
.form { display: grid; gap: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 28px; padding: clamp(22px, 2.6vw, 34px); backdrop-filter: blur(8px); }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: #D8D2C8; }
.field input { width: 100%; height: 54px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font: 400 16px var(--sans); transition: border-color .2s, background .2s; }
.field input::placeholder { color: #8F887E; }
.field input:focus { outline: none; border-color: var(--accent-soft); background: rgba(255, 255, 255, .1); }
.field input[aria-invalid="true"] { border-color: #F28B82; }
.error { display: block; min-height: 18px; margin-top: 4px; font-size: 12.5px; color: #F7A59E; }
.form .btn { justify-content: center; }
.form__ok { color: #BFE3B4; font-size: 14px; } .form__hint { font-size: 12px; color: #8F887E; }

/* ---------- Scroll to top ---------- */
.up { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(28, 25, 23, .25); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .4s var(--ease), visibility .3s, background .2s; }
.up.is-on { opacity: 1; visibility: visible; transform: none; }
.up:hover { background: var(--accent); }
.up svg { transform: rotate(-90deg); }

/* ---------- Footer ---------- */
.footer { padding: clamp(48px, 7vw, 96px) var(--pad) 28px; overflow: hidden; }
.footer__big { font: 500 clamp(90px, 23vw, 400px)/.8 var(--serif); letter-spacing: -.03em; text-align: center; color: var(--sand); user-select: none; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.footer__row nav { display: flex; gap: 24px; } .footer__row a { padding: 10px 0; } .footer__row a:hover { color: var(--ink); }

/* ---------- Reveal: появление при скролле в обе стороны ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease, box-shadow .4s; }
.js .reveal[data-from="top"] { transform: translateY(-20px); }
.js .reveal.visible { opacity: 1; transform: none; transition-delay: var(--d, 0s); }
.js .reveal.visible.lift:hover { transform: translateY(-6px); transition-delay: 0s; transition-duration: .7s, .3s, .4s; }
.js .hero__title .line > span { transform: translateY(112%); transition: transform 1.1s var(--ease); }
.js .hero__title.visible .line > span { transform: none; }
.js .hero__title.visible .line:nth-child(2) > span { transition-delay: .12s; }
.js .hero__title.visible .line:nth-child(3) > span { transition-delay: .24s; }
.cart__count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.6); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero__visual { height: 62vw; max-height: 560px; order: 2; }
  .scroll-hint { display: none; }
  .about { grid-template-columns: 1fr; } .about__visual { max-width: 460px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .hscroll__track { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 22px; background: var(--bg); font: 500 34px/1.1 var(--serif); opacity: 0; visibility: hidden; transform: translateY(-16px); transition: opacity .35s, transform .45s var(--ease), visibility .35s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .grid { grid-template-columns: 1fr; } .card, .card--wide { grid-column: auto; min-height: 340px; }
  .card__go { opacity: 1; transform: none; width: 44px; height: 44px; }
  .features { grid-template-columns: 1fr; }
  .hscroll { padding-inline: 0; } .hscroll__head { padding-inline: var(--pad); }
  .hscroll__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 0 var(--pad) 16px; scrollbar-width: none; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .product { flex: none; width: min(78vw, 320px); }
  .about__note { right: 0; }
  .cta { margin: 0 12px; border-radius: 28px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero__visual { height: 96vw; min-height: 0; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .badge { width: 96px; } .tag { top: 8%; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .preloader { display: none; }
  .js .reveal, .js .hero__title .line > span, .js .process__line span { opacity: 1; transform: none; }
  .hero-keyword { animation: none !important; } .hero-keyword:first-child { opacity: 1; }
}
