:root {
  --bg: #F5F1EB;
  --sand: #ECE5DA;
  --stone: #DDD3C5;
  --line: #D6CCBD;
  --text: #2F2A24;
  --text-2: #5C5248;
  --muted: #8A7F72;
  --bronze: #8C6B4F;
  --bronze-2: #A3825F;
  --dark: #3E342B;
  --deep: #2A231D;
  --cream: #EFE7DB;
  --green: #4E6B4F;
  --red: #9A4B3C;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 300; }
body { overflow-x: hidden; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--bronze); font-weight: 500; }
.h1 { margin: 0; font-family: var(--serif); font-weight: 300; text-transform: uppercase; letter-spacing: .06em; line-height: 1.02;
  font-size: clamp(44px, 7vw, 104px); }
.h2 { margin: 0; font-family: var(--serif); font-weight: 300; text-transform: uppercase; letter-spacing: .08em; line-height: 1.08;
  font-size: clamp(30px, 3.6vw, 52px); }
.h3 { margin: 0; font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: 22px; }
.lead { margin: 0; font-size: 16px; line-height: 1.75; color: var(--text-2); max-width: 520px; }
.rule { width: 48px; height: 1px; background: currentColor; opacity: .5; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px;
  border: 1px solid var(--dark); background: var(--dark); color: var(--cream); font-size: 12px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border-radius: 0; transition: background .2s, color .2s; }
.btn:hover { background: var(--deep); }
.btn.ghost { background: transparent; color: var(--dark); }
.btn.ghost:hover { background: var(--dark); color: var(--cream); }
.btn.light { background: var(--cream); color: var(--dark); border-color: var(--cream); }
.btn.light:hover { background: #fff; }
.btn.line-light { background: transparent; color: var(--cream); border-color: rgba(239,231,219,.6); }
.btn.line-light:hover { background: var(--cream); color: var(--dark); }
.btn.tg { background: #2AABEE; border-color: #2AABEE; color: #fff; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 11px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 6px 0; color: var(--bronze); font-size: 13px; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 4px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(245,241,235,.94); border-bottom: 1px solid var(--line); }
.hdr.dark { position: absolute; left: 0; right: 0; background: transparent; border-color: rgba(239,231,219,.14); color: var(--cream); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo img { height: 40px; width: auto; }
.logo span { font-family: var(--serif); font-size: 19px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.logo small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .3em; opacity: .7; margin-top: 2px; }
.nav { display: flex; gap: 30px; }
.nav a, .nav button { background: none; border: 0; color: inherit; text-decoration: none; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid transparent; font-weight: 400; }
.nav a:hover, .nav button:hover, .nav .on { border-color: currentColor; }
.hdr-act { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid currentColor; background: none; color: inherit; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 18px; height: 1px; background: currentColor; }
.nav-mobile-only { display: none !important; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--deep); color: var(--cream); display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 50%, rgba(140,107,79,.28), rgba(42,35,29,0) 60%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding-top: 120px; padding-bottom: 80px; }
.hero .eyebrow { color: #C9AE8F; }
.hero .lead { color: rgba(239,231,219,.78); }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img { width: min(420px, 80%); opacity: .95; }
.hero-side { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--serif); letter-spacing: .5em; font-size: 14px; color: rgba(239,231,219,.45); text-transform: uppercase; }

.strip { background: var(--sand); border-bottom: 1px solid var(--line); }
.strip-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { display: flex; gap: 16px; align-items: center; padding: 28px 24px; border-left: 1px solid var(--line); }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item b { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.strip-item span { font-size: 13px; color: var(--text-2); }
.strip-ico { width: 38px; height: 38px; flex: none; border: 1px solid var(--bronze); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--bronze); }

.sec { padding: 120px 0; }
.sec.sand { background: var(--sand); }
.sec.dark { background: var(--deep); color: var(--cream); }
.sec.dark .lead { color: rgba(239,231,219,.75); }
.sec.dark .eyebrow { color: #C9AE8F; }
.sec-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 64px; }
.sec-head.center { align-items: center; text-align: center; }
.sec-head.center .lead { text-align: center; }

/* 01 / 02 / 03 */
.rows { display: flex; flex-direction: column; gap: 80px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.row:nth-child(even) .row-pic { order: 2; }
.row-pic { background: var(--sand); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.row-pic img { width: 100%; height: 100%; object-fit: cover; }
.row-txt { display: flex; flex-direction: column; gap: 18px; }
.num { font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: 1; color: var(--bronze); }

/* catalog */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tab { border: 1px solid var(--line); background: transparent; color: var(--text-2); padding: 10px 18px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.tab.on { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 24px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card-pic { position: relative; background: var(--sand); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.sec.sand .card-pic { background: var(--bg); }
.card-pic img { width: 82%;  }
.card:hover .card-pic img { transform: scale(1.04); }
.card-cat { position: absolute; left: 12px; top: 12px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); }
.card-stock { position: absolute; right: 12px; top: 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.card-stock.low { color: var(--bronze); }
.card-stock.out { color: var(--red); }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .04em; line-height: 1.15; }
.card-meta { font-size: 13px; color: var(--muted); }
.card-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-price b { font-size: 18px; font-weight: 500; }
.card-price s { font-size: 13px; color: var(--muted); }
.card-price small { font-size: 12px; color: var(--muted); }
.card-lock { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.qty { display: flex; align-items: center; border: 1px solid var(--dark); height: 42px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 18px; color: var(--dark); }
.qty span { flex: 1; text-align: center; font-weight: 500; }
.card .btn { min-height: 42px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(239,231,219,.2); }
.step { padding: 36px 32px 0 0; display: flex; flex-direction: column; gap: 14px; }
.step + .step { padding-left: 32px; border-left: 1px solid rgba(239,231,219,.2); }
.step .num { font-size: 48px; color: #C9AE8F; }
.step p { margin: 0; font-size: 14px; line-height: 1.7; color: rgba(239,231,219,.75); }

.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.contacts { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.contacts a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.contacts small { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.contacts span { font-family: var(--serif); font-size: 24px; }

.ftr { background: var(--deep); color: rgba(239,231,219,.7); padding: 48px 0 40px; font-size: 12px; }
.ftr-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.ftr .logo { color: var(--cream); }
.ftr nav { display: flex; gap: 24px; flex-wrap: wrap; }
.ftr nav a { text-decoration: none; letter-spacing: .2em; text-transform: uppercase; font-size: 10px; }
.ftr nav a:hover { color: var(--cream); }
.made { opacity: .55; text-decoration: none; }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--deep); color: var(--cream); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; padding: 48px; text-align: center; }
.auth-art img { width: 200px; }
.auth-main { display: flex; flex-direction: column; padding: 28px 40px 40px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-box { width: 100%; max-width: 440px; margin: auto; padding-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.or { display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-2); font-weight: 500; }
.input { height: 50px; border: 1px solid var(--line); background: #FBF9F5; color: var(--text); padding: 0 16px; font-size: 15px; width: 100%; border-radius: 0; font-weight: 400; }
textarea.input { height: 96px; padding: 12px 16px; resize: vertical; }
.input:focus { outline: 1px solid var(--bronze); border-color: var(--bronze); }
.input[readonly] { background: var(--sand); color: var(--text-2); }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.pw button[aria-pressed=true] { color: var(--bronze); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { padding: 14px 16px; border: 1px solid var(--line); background: var(--sand); font-size: 13px; line-height: 1.55; color: var(--text-2); }
.note.err { border-color: rgba(154,75,60,.4); background: #F6E9E4; color: #7A3A2E; }
.who { padding: 14px 16px; background: var(--sand); display: flex; flex-direction: column; gap: 2px; }
.who b { font-weight: 500; font-size: 15px; }
.who span { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--text-2); }
.check input { accent-color: var(--dark); margin-top: 2px; }
.links { display: flex; justify-content: space-between; gap: 12px; }

/* cabinet */
.cab-main { padding-top: 40px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; min-height: calc(100vh - 78px - 140px); }
.cab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.cab-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.panel { background: #FBF9F5; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.panel.sticky { position: sticky; top: 100px; }
.panel h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; text-transform: uppercase; letter-spacing: .1em; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cart-line small { color: var(--muted); font-size: 12px; grid-column: 1; }
.cart-line b { font-weight: 500; text-align: right; }
.cart-line .rm { grid-column: 2; grid-row: 2; justify-self: end; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--dark); padding-top: 14px; }
.total span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.total b { font-family: var(--serif); font-size: 32px; font-weight: 400; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.55; }
.order { border: 1px solid var(--line); background: #FBF9F5; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.order-head b { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: .04em; }
.chip { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding: 6px 10px; border: 1px solid currentColor; }
.chip.new { color: var(--bronze); }
.chip.confirmed { color: var(--green); }
.chip.declined { color: var(--red); }
.order ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; font-size: 14px; }
.kv dt { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.kv dd { margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.mobile-cart { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80; background: var(--dark); color: var(--cream); padding: 16px 24px; font-size: 14px; max-width: calc(100vw - 32px); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(42,35,29,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 40px); overflow: auto; background: var(--bg); display: grid; grid-template-columns: 1fr 1fr; }
.modal-pic { background: var(--sand); display: flex; align-items: center; justify-content: center; min-height: 320px; }
.modal-pic img { width: 82%; }
.modal-txt { padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; color: var(--text); }

@media (max-width: 1000px) {
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 20px; background: var(--bg); color: var(--text); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a, .nav button { padding: 14px 0; text-align: left; border-bottom: 1px solid var(--line); }
  .nav-mobile-only { display: block !important; }
  .burger { display: flex; }
  .hide-m { display: none !important; }
  .hero-in { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-art { order: -1; }
  .hero-art img { width: 180px; }
  .hero-side { display: none; }
  .row { grid-template-columns: 1fr; gap: 28px; }
  .row:nth-child(even) .row-pic { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-left: 0; border-bottom: 1px solid rgba(239,231,219,.2); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .cab-grid { grid-template-columns: 1fr; }
  .cab-grid > .panel.sticky { display: none; }
  .mobile-cart { display: flex; position: sticky; bottom: 0; z-index: 25; background: var(--dark); color: var(--cream); padding: 14px 20px; justify-content: space-between; align-items: center; gap: 16px; margin: 0 -24px -80px; }
  .mobile-cart b { font-family: var(--serif); font-size: 24px; font-weight: 400; }
  .cols { grid-template-columns: 1fr; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-pic { min-height: 220px; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 18px; }
  .hdr-in { height: 66px; }
  .nav { top: 66px; }
  .logo span { font-size: 13px; letter-spacing: .16em; }
  .logo img { height: 32px; }
  .logo small { display: none; }
  .hdr-act .btn.small { padding: 0 12px; letter-spacing: .14em; }
  .strip-in { grid-template-columns: 1fr; }
  .strip-item, .strip-item:first-child { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .strip-item:first-child { border-top: 0; }
  .sec { padding: 80px 0; }
  .sec-head { margin-bottom: 40px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .card h3 { font-size: 18px; }
  .num { font-size: 48px; }
  .auth-main { padding: 20px 18px 32px; }
  .two { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .mobile-cart { margin: 0 -18px -80px; }
  .panel { padding: 20px; }
}

/* ===== фон-картинка и скруглённые кнопки (07.10, по просьбе) ===== */
html { background: var(--bg); }
body { background: transparent; }
.bg { position: fixed; inset: 0; z-index: -1; background: #EDE6DC url(/i/bg.jpg) 60% 50% / cover no-repeat; }
@media (max-width: 700px) { .bg { background-image: url(/i/bg-m.jpg); background-position: 66% 50%; } }

.btn, .tab, .burger, .qty, .chip, .x, .pw button { border-radius: 999px; }
.qty { overflow: hidden; }

/* шапка — светлая, полупрозрачная; разделы меню — кнопки */
.hdr { background: rgba(245,241,235,.72); border-color: rgba(214,204,189,.7); }
.nav { gap: 8px; }
.nav a, .nav button { padding: 10px 18px; border: 1px solid rgba(62,52,43,.28); border-radius: 999px; background: rgba(255,255,255,.35);
  letter-spacing: .18em; transition: background .2s, color .2s, border-color .2s; }
.nav a:hover, .nav button:hover { border-color: var(--dark); background: rgba(255,255,255,.7); }
.nav .on, .nav .on:hover { background: var(--dark); border-color: var(--dark); color: var(--cream); }

/* первый экран — прозрачный, видна картинка; текст на светлой стене */
.hero { background: transparent; color: var(--text); min-height: calc(100vh - 78px); min-height: calc(100svh - 78px); }
.hero::before { display: none; }
.hero-in { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 60px; }
.hero-text { max-width: 560px; margin-left: clamp(0px, 16vw, 260px); padding: 36px 40px; border-radius: 28px;
  background: rgba(245,241,235,.35); }
.hero .eyebrow { color: var(--bronze); }
.hero .lead { color: var(--text-2); }
.hero .h1 { font-size: clamp(42px, 5.6vw, 88px); }

/* разделы поверх фона — плотные полупрозрачные слои, фон не двигается */
.strip { background: rgba(236,229,218,.9); }
.sec { background: rgba(245,241,235,.92); }
.sec.sand { background: rgba(236,229,218,.94); }
.sec.dark { background: rgba(42,35,29,.9); }
.reveal { min-height: 60vh; display: flex; align-items: center; }
.reveal-txt { display: inline-block; font-family: var(--serif); font-weight: 300; text-transform: uppercase; letter-spacing: .14em; line-height: 1.15;
  font-size: clamp(30px, 4vw, 56px); color: var(--text); padding: 28px 36px; border-radius: 28px; background: rgba(245,241,235,.55); margin-left: clamp(0px, 16vw, 260px); }
.shell { background: rgba(245,241,235,.93); }

/* вход: слева видна картинка */
.auth-art { background: transparent; color: var(--text); }
.auth-art .h2 { padding: 22px 28px; border-radius: 24px; background: rgba(245,241,235,.55); }
.auth-art img { width: 150px; }
.auth-main { background: rgba(245,241,235,.94); }
.input { border-radius: 14px; }
.panel, .order, .note, .who, .empty { border-radius: 18px; }
.card-pic, .row-pic, .modal-box { border-radius: 20px; }
.modal-pic { border-radius: 20px 0 0 20px; }

@media (max-width: 1000px) {
  .nav { background: rgba(245,241,235,.97); gap: 8px; padding: 14px 24px 20px; }
  .nav a, .nav button { text-align: center; border-bottom: 1px solid rgba(62,52,43,.28); }
  .hero-text { margin-left: 0; }
  .reveal-txt { margin-left: 0; }
  .modal-pic { border-radius: 20px 20px 0 0; }
}
@media (max-width: 700px) {
  .hero { align-items: flex-end; }
  .hero-text { padding: 24px 22px; background: rgba(245,241,235,.78); }
  .reveal { min-height: 45vh; }
}
/* текст первого экрана — прямо на стене, между окном и чашей */
.hero-text { max-width: 430px; margin-left: 22vw; padding: 0; background: none; border-radius: 0; gap: 22px; }
.hero .h1 { font-size: clamp(40px, 4.4vw, 72px); }
.hero .lead { font-size: 15px; }
.hero-btns { flex-direction: column; align-items: flex-start; }
@media (max-width: 1000px) {
  .hero-text { margin-left: 0; max-width: 520px; padding: 26px 24px; border-radius: 24px; background: rgba(245,241,235,.82); }
  .hero-btns { flex-direction: row; }
}
.hero-text { margin-left: 22.5vw; max-width: min(400px, 27vw); }
.hero .h1 { font-size: clamp(36px, 3.3vw, 64px); }
.hero .lead { font-size: 14px; }
.bg { background-position: 45% 50%; }
@media (max-width: 1000px) { .hero-text { margin-left: 0; max-width: 520px; } .hero .h1 { font-size: clamp(38px, 9vw, 60px); } }
.hero > .wrap { max-width: none; padding-left: 0; padding-right: 0; }
@media (max-width: 1000px) { .hero > .wrap { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 700px) { .hero > .wrap { padding-left: 18px; padding-right: 18px; } }
/* плавная прокрутка: без размытия на больших блоках, фон — отдельный слой видеокарты */
.bg { will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
.strip, .sec, .shell, .auth-main, .hero-text, .reveal-txt, .auth-art .h2, .card-pic { }
.strip { background: rgba(236,229,218,.96); }
.sec { background: rgba(245,241,235,.97); }
.sec.sand { background: rgba(236,229,218,.97); }
.sec.dark { background: rgba(42,35,29,.95); }
.shell { background: rgba(245,241,235,.97); }
.auth-main { background: rgba(245,241,235,.97); }
.reveal-txt { background: rgba(245,241,235,.7); }
.auth-art .h2 { background: rgba(245,241,235,.7); }
.hdr { background: rgba(245,241,235,.9); }
@media (max-width: 1000px) { .hero-text { background: rgba(245,241,235,.88); } .hdr { background: rgba(245,241,235,.97); } }
/* без «умножения» и размытия: прокрутка без пересчёта картинок над фоном */
.card-pic, .modal-pic, .sec.sand .card-pic { background: #fff; }
.card-pic img, .modal-pic img, .row-pic img { }
.card-pic img { width: 88%; }
.row-pic { background: #fff; }
.row-pic img { width: 78%; height: auto; object-fit: contain; }
.card:hover .card-pic img { transform: none; }
.sec, .sec.sand, .strip, .shell, .auth-main { background-color: var(--bg); }
.sec.sand, .strip { background-color: var(--sand); }
.sec.dark { background-color: var(--deep); }
.hdr { background: rgba(245,241,235,.97) !important; }

/* каталог: 4 позиции в ряд (на ноутбуке 3, на телефоне 2) */
.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.cab-grid .grid { gap: 24px 16px; }
.card h3 { font-size: 20px; }
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }
/* фон — отдельный слой, остальное непрозрачное: прокрутка не пересчитывает картинку */
.bg { contain: strict; }
.hdr { box-shadow: none; }

/* исходные фото товаров: заполняют карточку целиком */
.card-pic, .modal-pic { background: var(--sand); }
.card-pic img { width: 100%; height: 100%; object-fit: cover; }
.modal-pic img { width: 100%; height: 100%; object-fit: cover; }
.row-pic { background: var(--sand); }
.row-pic img { width: 100%; height: 100%; object-fit: cover; }

/* без белых квадратов: мягкая подложка в тон страницы, фото без фона «лежат» на ней */
.card-pic, .modal-pic, .row-pic, .sec .card-pic, .sec.sand .card-pic { background: rgba(62,52,43,.045); }
.card-pic img[src$=".webp"], .modal-pic img[src$=".webp"] { width: 84%; height: 84%; object-fit: contain; }
.row-pic img[src$=".webp"] { width: 80%; height: 80%; object-fit: contain; margin: auto; }
.row-pic { display: flex; align-items: center; justify-content: center; }
.card-cat { z-index: 1; background: rgba(245,241,235,.9); padding: 5px 9px; border-radius: 999px; left: 10px; top: 10px; }

/* ===== главная: коллекция, выбор заведений, шаги (редизайн 07.10) ===== */
.coll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.coll-item { display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; background: var(--sand); border-radius: 24px; overflow: hidden; cursor: pointer; color: var(--text); font: inherit; transition: background-color .25s; }
.coll-item:hover { background: var(--stone); }
.coll-pic { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.coll-pic img { width: 62%; height: 82%; object-fit: contain; }
.coll-pic img:not([src$=".webp"]) { width: 100%; height: 100%; object-fit: cover; }
.coll-txt { display: flex; flex-direction: column; gap: 8px; padding: 6px 28px 28px; }
.coll-name { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.coll-desc { font-size: 14px; line-height: 1.6; color: var(--text-2, #6B6157); min-height: 44px; }
.coll-n { margin-top: 6px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--bronze); }
.sec-head.row-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head.row-head > div { display: flex; flex-direction: column; gap: 18px; }
#picks .card-pic { background: var(--bg); }
.steps2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step2 { background: var(--sand); border-radius: 24px; padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; }
.step2 .num { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--bronze); font-weight: 300; }
.step2 p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-2, #6B6157); }
.center-btns { margin-top: 48px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.page-top { min-height: 70vh; }
@media (max-width: 1000px) { .coll, .steps2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .steps2 { grid-template-columns: 1fr; gap: 16px; }
  .coll { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .coll-item { border-radius: 18px; }
  .coll-pic { aspect-ratio: 1; }
  .coll-pic img { width: 78%; height: 78%; }
  .coll-txt { padding: 0 16px 18px; gap: 4px; }
  .coll-name { font-size: 20px; }
  .coll-desc { display: none; }
  .step2 { padding: 28px 24px; }
}

/* ===== полировка главной (07.10, вечер) ===== */
/* 1–2. первый экран целиком, преимущества — карточкой поверх нижнего края фото */
.hero { min-height: calc(100vh - 78px); min-height: calc(100svh - 78px); }
.strip { position: relative; z-index: 2; margin-top: -58px; border: 0; background: linear-gradient(transparent 58px, var(--bg) 58px) !important; }
.strip-in { background: var(--bg); border-radius: 24px; box-shadow: 0 18px 48px rgba(62,52,43,.13); padding: 0 34px; }
.strip-item { padding: 26px 24px; }
/* 3. акцентная кнопка и стрелки */
.btn.accent { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.btn.accent:hover { background: #765940; border-color: #765940; }
.btn .arr { display: inline-block; transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }
/* 4. разделитель-орнамент */
.orn { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 6px; }
.orn span { width: 64px; height: 1px; background: var(--bronze); opacity: .45; }
.orn img { width: 26px; height: auto; opacity: .85; }
.sec.dark .orn span { background: #C9AE8F; }
/* 5. реакция на наведение (только transform — без нагрузки на прокрутку) */
.coll-pic img, .card-pic img { transition: transform .5s ease; }
.coll-item:hover .coll-pic img { transform: scale(1.06); }
.card .card-pic:hover img { transform: scale(1.05); }
.coll-n i { font-style: normal; display: inline-block; transition: transform .25s ease; }
.coll-item:hover .coll-n i { transform: translateX(5px); }
/* 6. мягкое появление при прокрутке */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
.coll-item.rv:nth-child(3n+2), .step2.rv:nth-child(2) { transition-delay: .08s; }
.coll-item.rv:nth-child(3n), .step2.rv:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
/* 7. шаги заказа — путь */
.steps2 { position: relative; }
.steps2::before { content: ''; position: absolute; left: 12%; right: 12%; top: 72px; border-top: 1px dashed var(--bronze); opacity: .55; }
.step2 { position: relative; z-index: 1; align-items: flex-start; }
.step2 .num { width: 64px; height: 64px; border: 1px solid var(--bronze); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--bg); margin-bottom: 6px; }
/* 8. дегустация — та же сцена, затемнённая */
.sec.dark#contacts { background: linear-gradient(rgba(36,30,25,.86), rgba(36,30,25,.9)), url(/i/bg.jpg) 60% 70% / cover no-repeat; padding: 140px 0; }
#contacts .contacts span { color: var(--cream); }
#contacts .contacts small { color: rgba(239,231,219,.55); }
/* 9. кнопка «Заказать» внизу экрана на телефоне */
.m-cta { display: none; }
@media (max-width: 700px) {
  .m-cta { display: inline-flex; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; min-height: 52px; box-shadow: 0 10px 30px rgba(62,52,43,.28); }
  .ftr { padding-bottom: 96px; }
  .strip { margin-top: -40px; background: linear-gradient(transparent 40px, var(--bg) 40px) !important; }
  .strip-in { padding: 4px 20px; border-radius: 20px; }
  .strip-item, .strip-item:first-child { padding: 16px 0; }
  .steps2::before { display: none; }
  .sec.dark#contacts { padding: 100px 0; }
}
@media (max-width: 700px) { .hdr-act .btn.accent { display: none; } }
/* описание сорта в карточке товара */
.modal-box { max-width: 880px; border-radius: 24px; }
.modal-txt { gap: 14px; }
.m-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.m-lbl { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--bronze); font-weight: 500; }
.m-sec p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-2); }
@media (max-width: 700px) { .modal-box { grid-template-columns: 1fr; } .modal-pic { min-height: 220px; } .modal-txt { padding: 26px 22px; } }
/* карточка товара: основная карточка + отдельная колонка «История» справа */
.modal { overflow-y: auto; }
.modal-wrap { display: flex; align-items: stretch; justify-content: center; gap: 20px; width: 100%; max-width: 1240px; margin: auto; }
.modal-wrap .modal-box { max-width: 820px; flex: 1 1 820px; max-height: none; overflow: hidden; box-shadow: 0 30px 80px rgba(20,15,10,.35); }
.modal-pic { position: relative; overflow: hidden; }
.modal-pic img { position: absolute; inset: 0; margin: auto; }
.modal-pic img[src$=".webp"] { width: 84%; height: 84%; object-fit: contain; }
.modal-txt { padding: 44px 36px 40px; }
.modal-box .x { z-index: 2; }
.modal-story { flex: 0 0 380px; position: relative; display: flex; flex-direction: column; gap: 22px; padding: 44px 38px 34px;
  background: var(--deep); color: var(--cream); border-radius: 24px; box-shadow: 0 30px 80px rgba(20,15,10,.35); }
.modal-story::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(201,174,143,.28); border-radius: 16px; pointer-events: none; }
.ms-head { display: flex; align-items: center; gap: 16px; }
.ms-eyebrow { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: #C9AE8F; font-weight: 500; white-space: nowrap; }
.ms-rule { flex: 1; height: 1px; background: rgba(201,174,143,.4); }
.ms-text { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.6; font-weight: 400; color: rgba(239,231,219,.9); }
.ms-text::first-letter { float: left; font-size: 64px; line-height: .82; padding: 6px 10px 0 0; color: #C9AE8F; font-weight: 300; }
.ms-foot { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 8px; }
.ms-foot span { flex: 1; height: 1px; background: rgba(201,174,143,.3); }
.ms-foot img { width: 26px; opacity: .7; }
@media (max-width: 1100px) {
  .modal { align-items: flex-start; }
  .modal-wrap { flex-direction: column; max-width: 820px; gap: 14px; }
  .modal-wrap .modal-box { flex: none; }
  .modal-story { flex: none; }
}
@media (max-width: 700px) {
  .modal { padding: 12px; }
  .modal-pic { min-height: 240px; }
  .modal-txt { padding: 26px 22px; }
  .modal-story { padding: 32px 26px 26px; border-radius: 20px; }
  .ms-text { font-size: 17px; }
  .ms-text::first-letter { font-size: 54px; }
}
.modal-box .x { background: rgba(245,241,235,.92); border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }
/* «История сорта» — отдельная панель во всю высоту у правого края экрана */
@media (min-width: 1300px) {
  .modal-wrap.has-story { max-width: none; padding-right: 440px; justify-content: center; }
  .modal-wrap.has-story .modal-box { max-width: 820px; }
  .modal-story { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; border-radius: 28px 0 0 28px; padding: 0 48px; justify-content: center; gap: 28px; overflow-y: auto; }
  .modal-story::before { inset: 16px 16px 16px 16px; border-radius: 18px; }
  .ms-text { font-size: 20px; line-height: 1.65; }
  .ms-foot { margin-top: 0; padding-top: 4px; }
}
