/* ==========================================================
   Джельмино — дизайн-система в цветах логотипа
   Тёмно-синий #232951 · коричневый #936037 · кремовый #FFF4E9
   Шрифты: M PLUS Rounded 1c (заголовки), Manrope (текст)
   ========================================================== */
:root {
  --cream: #FFFBF5;
  --paper: #FFF4E9;
  --ink: #232951;
  --ink-2: #565B7C;
  --ink-3: #8D90A8;
  --line: #EADBC8;
  --navy-tint: #DCDEEC;
  --navy-soft: #3B4275;
  --caramel: #EBD5BC;
  --brown: #936037;
  --gold: #E2C39A;
  --sand: #F4E6D5;
  --brown-deep: #6F4626;
  --ok: #3E7B27;
  --warn: #B26A00;
  --bad: #B3261E;
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 18px 50px -24px rgba(35, 41, 81, .35);
  --shadow-sm: 0 6px 20px -10px rgba(35, 41, 81, .25);
  --font-display: "M PLUS Rounded 1c", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1220px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--caramel); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; margin: 0 0 .5em; }
h3, h4 { font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 6vw, 84px); }
h2 { font-size: clamp(30px, 4.2vw, 56px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.center { text-align: center; }

.eyebrow { display: block; font: 700 15px/1.3 var(--font-body); color: var(--brown); margin-bottom: 12px; }


/* ---------- Кнопки ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font: 700 16px/1 var(--font-display); white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--accent { --bg: var(--h-pink); --fg: #fff; }
.btn--accent:hover { --bg: #CC2259; }
.btn--tint { --bg: var(--navy-tint); --fg: var(--ink); }
.btn--light { --bg: var(--paper); --fg: var(--ink); border-color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--caramel); padding-bottom: 1px; }
.link:hover { border-color: var(--ink); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-color: var(--line); }
.header__row { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 58px; width: auto; display: block; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:hover, .nav a.is-active { background: var(--paper); color: var(--ink); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header__phone { font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px solid var(--line); background: var(--paper); text-decoration: none; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.cart-btn { position: relative; }
.cart-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--brown); color: #fff; font: 700 12px/22px var(--font-body); text-align: center;
}
.cart-btn__count:empty, .cart-btn__count[data-count="0"] { display: none; }
.burger { display: none; }

@media (max-width: 1080px) {
  .nav, .header__phone { display: none; }
  .burger { display: inline-grid; }
  .header__row { height: 66px; gap: 12px; }
}
@media (max-width: 520px) {
  .logo img { height: 46px; }
  .header__actions { gap: 8px; }
  .header__account { display: none; }
  .icon-btn { width: 42px; height: 42px; }
  .header .btn--sm { padding: 0 14px; }
}
.mobile-nav {
  position: fixed; inset: 66px 0 0 0; z-index: 49; background: var(--cream);
  padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .3s var(--ease); overflow-y: auto;
}
.mobile-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-nav a:not(.btn) { font: 600 24px/1.2 var(--font-display); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 80px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 40px; }
.hero h1 { margin-bottom: 26px; }
.hero__lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); max-width: 560px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-soft); }

.hero__art { position: relative; aspect-ratio: 1 / 1.08; }
.hero__blob {
  position: absolute; inset: 6% 2% 4% 4%; background: var(--caramel);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  animation: blob 14s ease-in-out infinite;
}
.hero__blob--2 { inset: 20% 30% 14% -6%; background: var(--navy-tint); opacity: .9; animation-duration: 18s; animation-direction: reverse; }
.hero__cone { position: absolute; inset: 0; width: 100%; height: 100%; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(35, 41, 81, .18)); }
.badge-rotate { position: absolute; right: 2%; top: 4%; width: 132px; height: 132px; animation: spin 22s linear infinite; }
.badge-rotate text { font: 700 12px var(--font-body); letter-spacing: .12em; fill: var(--cream); text-transform: uppercase; }
.badge-rotate__dot { position: absolute; right: calc(2% + 46px); top: calc(4% + 46px); width: 40px; height: 40px; border-radius: 50%; background: var(--brown); display: grid; place-items: center; }
.badge-rotate__dot svg { width: 22px; height: 22px; }
.sprinkle { position: absolute; width: 22px; height: 8px; border-radius: 99px; animation: float 5s ease-in-out infinite; }

@keyframes blob { 0%, 100% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; } 50% { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero { padding: 24px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 360px; width: 78%; margin: 0 auto; }
  .badge-rotate { width: 96px; height: 96px; right: -4%; }
  .badge-rotate__dot { display: none; }
}

/* ---------- Бегущая строка ---------- */
.marquee { background: var(--ink); color: var(--cream); padding: 18px 0; transform: rotate(-1.6deg); margin: -10px -20px 0; overflow: hidden; position: relative; z-index: 2; }
.marquee--caramel { background: var(--brown); color: #fff; transform: rotate(1.2deg); margin-top: -30px; }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.marquee--caramel .marquee__track { animation-direction: reverse; }
.marquee__item { display: inline-flex; align-items: center; gap: 40px; font: italic 600 clamp(20px, 2.6vw, 32px)/1 var(--font-display); white-space: nowrap; }
.marquee__item::after { content: "✦"; color: var(--gold); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink .muted, .section--ink .eyebrow { color: #BFC2D9; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section__head h2 { margin: 0; max-width: 760px; }
.section__head p { max-width: 460px; margin: 0; }

/* Что такое джелато — сравнение */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.compare__card { padding: 30px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); position: relative; overflow: hidden; }
.compare__card:nth-child(1) { background: var(--sand); border-color: transparent; }
.compare__card:nth-child(2) { background: var(--gold); border-color: transparent; }
.compare__card:nth-child(3) { background: var(--caramel); border-color: transparent; }
.compare__num { font: 700 clamp(44px, 5vw, 68px)/1 var(--font-display); letter-spacing: -.04em; margin-bottom: 8px; }
.compare__label { font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.compare__vs { font-size: 15px; color: rgba(35, 41, 81, .72); padding-top: 14px; border-top: 1.5px dashed rgba(35, 41, 81, .25); margin: 0; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Карточки вкусов ---------- */
.tag { padding: 6px 12px; border-radius: 999px; background: var(--sand); font: 700 13px/1 var(--font-body); }
.price { font: 800 22px/1 var(--font-display); white-space: nowrap; }
.price small { font: 600 13px var(--font-body); color: var(--ink-3); margin-right: 4px; }
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.stock--in { color: var(--ok); }
.stock--low { color: var(--warn); }
.stock--out { color: var(--bad); }

.add-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--cream); display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--ease), background .2s; flex: none; }
.add-btn:hover { transform: rotate(90deg); background: var(--brown); }
.add-btn:disabled { background: var(--line); color: var(--ink-3); cursor: not-allowed; transform: none; }
.add-btn svg { width: 20px; height: 20px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); text-decoration: none; font-weight: 700; font-size: 15px; }
.filter.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Розница / Опт ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split__card { position: relative; border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 4vw, 48px); overflow: hidden; min-height: 460px; display: flex; flex-direction: column; }
.split__card--retail { background: var(--caramel); }
.split__card--opt { background: var(--navy-tint); }
.split__card h3 { font-size: clamp(28px, 3vw, 40px); max-width: 420px; }
.split__card ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.split__card li { display: flex; gap: 12px; font-weight: 600; }
.split__card li::before { content: "✦"; flex: none; }
.split__card .btn { margin-top: auto; align-self: flex-start; }
.split__deco { position: absolute; right: -40px; bottom: -40px; width: 230px; opacity: .95; pointer-events: none; }
.tiers { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; }
.tiers span { background: rgba(255, 255, 255, .55); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__card { min-height: 0; padding-bottom: 150px; } .split__deco { width: 170px; } }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); border: 1.5px solid rgba(255, 245, 232, .18); counter-increment: step; }
.step::before { content: "0" counter(step); display: block; font: 700 42px/1 var(--font-display); color: var(--gold); margin-bottom: 26px; }
.step h3 { font-size: 20px; }
.step p { color: #BFC2D9; margin: 0; font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 0 26px; transition: background .2s; }
.faq details[open] { background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 18px/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font: 400 24px/1 var(--font-body); transition: transform .3s var(--ease), background .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--caramel); }
.faq .faq__a { padding: 0 0 22px; color: var(--ink-2); }

/* ---------- Журнал ---------- */
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.acard { --c: var(--caramel); display: flex; flex-direction: column; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); overflow: hidden; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.acard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.acard__top { aspect-ratio: 16 / 8; background: var(--c); position: relative; overflow: hidden; }
.acard__top img { width: 100%; height: 100%; object-fit: cover; }
.acard__top .mound { position: absolute; right: 8%; bottom: -2px; width: 40%; height: auto; }
.acard__body { padding: 22px 24px 26px; }
.acard__body h3 { font-size: 21px; margin-bottom: 10px; }
.acard__body p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- CTA ---------- */
.cta { position: relative; border-radius: calc(var(--radius) + 12px); background: var(--ink); color: var(--cream); padding: clamp(36px, 6vw, 80px); overflow: hidden; }
.cta h2 { max-width: 700px; }
.cta p { color: #BFC2D9; max-width: 520px; font-size: 18px; margin-bottom: 30px; }
.cta__art { position: absolute; right: 4%; bottom: -12%; width: min(34%, 340px); }
.cta .btn--light:hover { background: var(--gold); border-color: var(--gold); }
@media (max-width: 760px) { .cta { padding-bottom: 220px; } .cta__art { width: 200px; right: 50%; transform: translateX(50%); } }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #BFC2D9; padding: 72px 0 36px; margin-top: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cream); }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 1100px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer .logo { margin-bottom: 18px; }
.footer .logo img { height: 84px; }
.footer h4 { font: 600 15px/1 var(--font-display); color: var(--cream); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 245, 232, .12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.footer__big { font: italic 600 clamp(56px, 13vw, 190px)/.9 var(--font-display); letter-spacing: -.02em; color: rgba(255, 245, 232, .06); margin-top: 48px; white-space: nowrap; overflow: hidden; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Текстовые страницы ---------- */
.page-hero { padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 68px); max-width: 980px; }
.page-hero .lead { font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-2); max-width: 760px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); margin-bottom: 22px; padding: 0; list-style: none; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.aside-card { position: sticky; top: 100px; border-radius: var(--radius); padding: 30px; background: var(--navy-tint); }
.aside-card--caramel { background: var(--caramel); }
.aside-card h3 { font-size: 22px; }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } .aside-card { position: static; } }

.prose { font-size: 18px; line-height: 1.75; max-width: 760px; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 22px; margin: 1.5em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brown); }
.prose a { font-weight: 700; text-decoration-color: var(--caramel); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; border-radius: 20px; background: var(--paper); border-left: 6px solid var(--navy-soft); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0; font-size: 16px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); display: block; overflow-x: auto; }
.prose th, .prose td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--ink); color: var(--cream); font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.prose tbody tr:nth-child(even) td { background: var(--paper); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose img { border-radius: 20px; }
.prose hr { border: 0; height: 2px; background: var(--line); margin: 2em 0; }

/* ---------- Карточка товара ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding: 32px 0 80px; }
.product__art { position: sticky; top: 100px; border-radius: 36px; aspect-ratio: 1; display: grid; place-items: end center; background: var(--h-navy); padding: 12% 10% 0; overflow: hidden; }
.product__art .mound { width: 100%; height: auto; display: block; }
.product__art--photo { padding: 0; place-items: stretch; }
.product__art--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__art img { width: 100%; height: 100%; object-fit: cover; }
.product h1 { font-size: clamp(36px, 5vw, 64px); }
.variants { display: grid; gap: 12px; margin: 26px 0; }
.variant { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.variant__name { font-weight: 700; }
.variant .stock { grid-column: 1; }
.meta-list { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid var(--line); }
.meta-list dt { font: 700 17px var(--font-display); color: var(--ink); margin-bottom: 4px; }
.meta-list dd { margin: 0 0 14px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product__art { position: relative; top: 0; } }

/* ---------- Формы ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; position: relative; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(35, 41, 81, .08); }
.field.has-error input, .field.has-error select { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.field__error { color: var(--bad); font-size: 13px; font-weight: 600; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-bottom: 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--ink); }
.check.has-error { color: var(--bad); }
.check a { font-weight: 700; }
.form-error { background: #FBE3E1; color: var(--bad); padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.form-note { font-size: 14px; color: var(--ink-2); background: var(--cream); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }

.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 4px); background: #fff; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.suggest button { display: block; width: 100%; text-align: left; padding: 12px 16px; border: 0; background: none; cursor: pointer; font-size: 15px; }
.suggest button:hover, .suggest button.is-active { background: var(--cream); }
.suggest small { display: block; color: var(--ink-3); }

/* ---------- Страница заказа ---------- */
.order-hero { padding: 36px 0 22px; }
.order-hero h1 { font-size: clamp(32px, 4.4vw, 58px); margin-bottom: 14px; }
.tabs { display: inline-flex; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; gap: 4px; margin-top: 10px; }
.tabs a { padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 15px; color: var(--ink-2); }
.tabs a.is-active { background: var(--ink); color: var(--cream); }

.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 28px; align-items: start; padding-bottom: 100px; }
.order-list { display: grid; gap: 12px; }
.orow { --c: #F6E7C8; --a: #C9A46A; display: grid; grid-template-columns: 84px 1fr; gap: 18px; padding: 16px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.orow__art { width: 84px; height: 84px; border-radius: 20px; background: var(--h-navy); display: grid; place-items: end center; padding: 14px 8px 0; overflow: hidden; }
.orow__art svg { width: 100%; height: auto; display: block; }
.orow__art--photo { padding: 0; }
.orow__art img { width: 100%; height: 100%; object-fit: cover; }
.orow__title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.orow__title a { font: 600 19px/1.2 var(--font-display); text-decoration: none; }
.orow__title span { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.orow__short { font-size: 14px; color: var(--ink-2); margin: 0 0 10px; }
.ovar { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--line); }
.ovar__name { font-weight: 700; font-size: 15px; }
.ovar__name .stock { margin-left: 8px; font-size: 12px; }
.ovar__price { font: 700 17px/1 var(--font-display); white-space: nowrap; text-align: right; }
.ovar__price small { display: block; font: 600 12px var(--font-body); color: var(--ink-3); margin-top: 4px; }
.ovar__locked { font-size: 13px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 600px) {
  .orow { grid-template-columns: 56px 1fr; gap: 12px; padding: 14px; }
  .orow__art { width: 56px; height: 56px; border-radius: 14px; }
  .ovar { grid-template-columns: 1fr auto; }
  .ovar__price { grid-row: 1; grid-column: 2; }
  .ovar .stepper { grid-column: 1 / -1; justify-self: start; }
}

.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); height: 44px; }
.stepper button { width: 42px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 20px; font-weight: 700; border-radius: 50%; }
.stepper button:hover:not(:disabled) { background: var(--cream); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper input { width: 46px; border: 0; text-align: center; font-weight: 800; background: none; -moz-appearance: textfield; appearance: textfield; outline: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper.is-active { border-color: var(--ink); background: var(--gold); }
.stepper.is-active input { color: var(--ink); }

.panel { position: sticky; top: 96px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px; }
.panel h2 { font-size: 24px; margin-bottom: 18px; }
.panel h3 { font-size: 17px; margin: 22px 0 12px; }
.cart-lines { display: grid; gap: 8px; margin-bottom: 16px; max-height: 260px; overflow-y: auto; }
.cart-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.cart-line b { white-space: nowrap; }
.cart-empty { color: var(--ink-3); font-size: 15px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 16px; text-align: center; margin-bottom: 16px; }
.totals { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font: 700 22px/1.2 var(--font-display); padding-top: 8px; }
.totals .discount { color: var(--ok); font-weight: 700; }
.progress { margin: 6px 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--cream); font-size: 14px; }
.progress__bar { height: 8px; border-radius: 99px; background: var(--line); margin-top: 10px; overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--navy-soft), var(--navy-tint)); border-radius: inherit; transition: width .4s var(--ease); }
.delivery-box { padding: 12px 16px; border-radius: 14px; font-size: 14px; margin: -4px 0 14px; }
.delivery-box--ok { background: #E7F3DD; }
.delivery-box--bad { background: #FBE3E1; color: var(--bad); font-weight: 600; }
.delivery-box--wait { background: var(--cream); color: var(--ink-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.seg label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; font-size: 14px; }
.seg input { display: none; }
.seg input:checked + span { color: var(--ink); }
.seg label:has(input:checked) { border-color: var(--ink); background: var(--gold); }

.mobile-bar { display: none; }
@media (max-width: 1000px) {
  .order-grid { grid-template-columns: 1fr; }
  .panel { position: static; }
  .mobile-bar {
    display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; gap: 12px; align-items: center; justify-content: space-between;
    padding: 10px 10px 10px 22px; border-radius: 999px; background: var(--ink); color: var(--cream); box-shadow: var(--shadow);
    transform: translateY(140%); transition: transform .35s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar b { font: 700 18px var(--font-display); }
}

.optin { border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); background: var(--h-pistachio); margin-bottom: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.optin h2 { font-size: clamp(24px, 3vw, 34px); }
.optin ul { padding-left: 1.1em; margin: 0 0 20px; font-weight: 600; }
.optin form { background: #fff; padding: 24px; border-radius: 22px; }
@media (max-width: 860px) { .optin { grid-template-columns: 1fr; } }

/* ---------- Спасибо / кабинет ---------- */
.thanks { max-width: 760px; margin: 0 auto; padding: 64px 0 100px; text-align: center; }
.thanks__art { width: 180px; margin: 0 auto 26px; animation: float 5s ease-in-out infinite; }
.pay-state { margin: 8px auto 18px; padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-size: 17px; }
.pay-state p { margin: 0 0 16px; }
.pay-state--ok { background: #E7F3DD; border-color: transparent; color: var(--ok); font-weight: 700; padding: 16px 22px; }
.pay-state__error { color: #B3261E; font-weight: 600; }
.receipt { text-align: left; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; margin: 34px 0; }
.receipt table { width: 100%; border-collapse: collapse; font-size: 15px; }
.receipt td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.receipt td:last-child { text-align: right; white-space: nowrap; }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.status--new { background: var(--gold); }
.status--confirmed { background: var(--navy-tint); }

.auth { max-width: 460px; margin: 0 auto; padding: 56px 0 100px; }
.auth .panel { position: static; }

/* ---------- Мелочи ---------- */
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 140%); background: var(--ink); color: var(--cream); padding: 14px 16px 14px 22px; border-radius: 999px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); transition: transform .4s var(--ease); font-weight: 600; max-width: calc(100% - 24px); }
.toast.is-visible { transform: translate(-50%, 0); }
.toast a { color: var(--ink); background: var(--gold); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 800; white-space: nowrap; }

.cookie { position: fixed; z-index: 90; left: 16px; bottom: 16px; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); font-size: 14px; display: none; }
.cookie.is-visible { display: block; }
.cookie p { margin: 0 0 12px; color: var(--ink-2); }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

.demo-bar { background: var(--gold); color: var(--ink); text-align: center; font: 700 13px/1.3 var(--font-body); padding: 8px 16px; letter-spacing: .02em; }

/* ==========================================================
   Общие элементы бренда (перенесены с главной)
   ========================================================== */
:root {
  --h-navy: #232951;
  --h-navy-deep: #1A1E3E;
  --h-milk: #FFFBF5;
  --h-cream: #FFF4E9;
  --h-brown: #936037;
  --h-pink: #E5336A;
  --h-pistachio: #9CC152;
  --h-mango: #FFB000;
  --h-lemon: #FFE45A;
  --h-muted: #5B6080;
  --h-round: "M PLUS Rounded 1c", "Manrope", system-ui, sans-serif;
  --h-hand: "Bad Script", cursive;
}

/* ---------- Кнопки ---------- */
.hbtn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent;
  font: 700 17px/1 var(--h-round); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease;
}
.hbtn:active { transform: scale(.97); }
.hbtn:focus-visible, .hlink:focus-visible, .tray__link:focus-visible, .tile a:focus-visible, .tile__add:focus-visible, .mag__item:focus-visible {
  outline: 3px solid var(--h-lemon); outline-offset: 4px;
}
.hbtn--pink { background: var(--h-pink); color: #fff; }
.hbtn--pink:hover { background: #CC2259; }
.hbtn--line { border-color: rgba(255, 251, 245, .55); color: var(--h-milk); }
.hbtn--line:hover { border-color: var(--h-milk); }
.hbtn--navy { background: var(--h-navy); color: var(--h-milk); }
.hbtn--navy:hover { background: var(--h-navy-deep); }
.hbtn--pistachio { background: var(--h-pistachio); color: var(--h-navy); }
.hbtn--pistachio:hover { background: #B1D46A; }

.hlink {
  font-weight: 700; color: var(--h-navy); text-decoration: underline;
  text-decoration-color: var(--h-pink); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.hlink:hover { text-decoration-color: var(--h-navy); }

/* ---------- Плитки вкусов ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile {
  display: flex; flex-direction: column; border-radius: 28px; padding: 14px 14px 18px;
  background: var(--c); color: var(--on);
}
.tile__link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; border-radius: 20px; }
.tile__art { display: block; border-radius: 20px; background: var(--h-navy); padding: 26px 18px 0; margin-bottom: 16px; overflow: hidden; }
.tile__art--photo { padding: 0; }
.tile__art--photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.tile__art .mound { width: 100%; height: auto; display: block; }
.tile__kind, .tile__name, .tile__short { padding: 0 6px; }
.tile__kind { font-size: 13px; font-weight: 700; opacity: .72; }
.tile__name { font: 800 26px/1.08 var(--h-round); margin: 2px 0 6px; color: inherit; }
.tile__short { font-size: 15px; line-height: 1.45; opacity: .88; }
.tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 0 6px; }
.tile__price { font: 800 20px/1.1 var(--h-round); }
.tile__price small { display: block; font: 600 13px var(--font-body); opacity: .72; }
.tile__add {
  border: 0; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: var(--on); color: var(--c); font: 700 15px var(--h-round); text-decoration: none;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.tile__add:active { transform: scale(.96); }
.tile__out { font-size: 14px; font-weight: 700; opacity: .75; }


/* Подвал главной — тем же округлым шрифтом */
.footer h4 { font: 700 16px var(--h-round); }
.footer__big { font: 800 clamp(56px, 12vw, 180px)/.9 var(--h-round); letter-spacing: -.03em; }

/* Фото внутри текстов */
.pfig { margin: 1.4em 0 1.6em; }
.pfig img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; border-radius: 24px; }
.pfig figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.pfig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.4em 0 1.6em; }
.pfig-pair .pfig { margin: 0; }
.pfig-pair .pfig img { aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 520px) { .pfig-pair { grid-template-columns: 1fr; } }

/* Фото-обложка страниц и статей */
.page-cover { margin-bottom: clamp(36px, 5vw, 56px); }
.page-cover img { width: 100%; height: clamp(240px, 38vw, 520px); object-fit: cover; display: block; border-radius: 32px; }

/* SEO-страницы */
.landing-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.landing-block { padding-bottom: clamp(48px, 6vw, 80px); }
.landing-block--last { padding-bottom: 100px; }
.landing-block > h2, .landing-head h2 { font-size: clamp(28px, 3.4vw, 44px); }
.landing-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.landing-head h2 { margin: 0; }
.landing-block .faq { max-width: 900px; }
.see-also { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.see-also a { display: block; height: 100%; padding: 18px 20px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); font: 700 17px/1.3 var(--font-display); color: var(--ink); text-decoration: none; }
.see-also a:hover { border-color: var(--ink); }
.field.has-error .seg label { border-color: var(--bad); }

/* Личный кабинет */
.cabinet { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.cabinet__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cabinet__card h2 { font-size: 22px; margin-bottom: 14px; }
.cabinet__card--promo { background: var(--h-pink); color: #fff; border-color: transparent; }
.cabinet__card--promo .muted { color: rgba(255, 255, 255, .85); }
.promo-chip { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: rgba(255, 255, 255, .16); border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
.promo-chip b { font: 800 20px var(--font-display); letter-spacing: .04em; }
.reg-tabs { margin: 0 0 22px; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; text-transform: uppercase; }
.manager-line { font-size: 15px; line-height: 1.4; margin: 0 0 16px; }
.manager-line a { font: 800 20px var(--font-display); color: inherit; text-decoration: none; }
