/* Фирменный стиль «Примагнить» — design/brand.md. Цвета и шрифты — только здесь. */
/* Шрифты лежат на сайте (fonts/, SIL OFL): не грузим их из Google, чтобы не передавать IP посетителей за рубеж. */
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/GolosText-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/GolosText-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("fonts/GolosText-Bold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/Caveat-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* палитра бренда */
  --orange: #F2622E; /* Хурма — логотип, кнопки, акценты */
  --plum: #2A1F2D;   /* Чернослив — текст */
  --paper: #FBF6EE;  /* Молоко — фон */
  --mint: #A8DCC8;   /* Мята */
  --yolk: #FFC94A;   /* Желток — выделения */
  --sky: #BFD9F2;    /* Небо */

  --bg: var(--paper);
  --card: #ffffff;
  --ink: var(--plum);
  --muted: #6B5F6C;
  --line: #EAE1D4;
  --accent: var(--orange);
  --accent-ink: #ffffff;
  --accent-soft: #FDE7DC;
  --ok: #2E7D5B;
  --warn: #8A5A00;
  --warn-bg: #FFF1CC;
  --bad: #B3261E;
  --bad-bg: #FDECEA;
  --radius: 16px;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Nunito", "Golos Text", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --shadow: 0 6px 24px rgba(42, 31, 45, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-weight: 900 !important; }
h2, h3 { font-weight: 800 !important; }
.slogan { font-family: var(--font-hand); font-weight: 700; font-size: 1.6rem; color: var(--orange); margin: -.2em 0 .5em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 8.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1em; }
a { color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
main > section, .top, .foot { max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 800 1rem/1 var(--font-head); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, opacity .15s ease;
  touch-action: manipulation; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 1.1rem; }
.btn-wide { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-dark { background: rgba(255, 255, 255, .14); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 28px; width: auto; }
@media (max-width: 360px) { .logo img { height: 22px; } }
.top-nav { display: flex; align-items: center; gap: 14px; font-size: .9rem; }
.top-nav a:not(.btn) { color: var(--muted); text-underline-offset: 3px; }

/* Первый экран */
.hero { display: grid; gap: 28px; padding-top: 16px; padding-bottom: 40px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "•"; color: var(--accent); margin-right: .5em; }
.hero-visual { max-width: 420px; width: 100%; margin: 0 auto; }

/* «Холодильник» — общий компонент для первого экрана и предпросмотра */
.fridge {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  background: linear-gradient(120deg, #f6f7f9 0%, #e4e8ec 55%, #d6dbe1 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), inset -14px 0 28px rgba(0, 0, 0, .05), var(--shadow);
  overflow: hidden;
}
.fridge::before { /* ручка */
  content: ""; position: absolute; left: 3.2cqw; top: 14%; bottom: 14%; width: 2cqw;
  border-radius: 2cqw; background: linear-gradient(90deg, #c3c9d0, #eef0f3 45%, #aab1ba);
  box-shadow: 1px 2px 4px rgba(0, 0, 0, .15);
}
.fridge-grid {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  grid-template-columns: repeat(var(--cols, 3), var(--m, 16.67cqw));
  gap: 2.4cqw;
}
.magnet {
  width: var(--m, 16.67cqw); aspect-ratio: 1;
  position: relative; display: block; padding: 0; border: 0;
  border-radius: 5%;
  background: #cfd5db center / cover;
  box-shadow: 0 .4cqw .6cqw rgba(0, 0, 0, .18), 0 1.4cqw 2.4cqw rgba(0, 0, 0, .16);
  transform: rotate(var(--r, 0deg)) translate(var(--dx, 0), var(--dy, 0));
  overflow: hidden;
}
button.magnet { cursor: pointer; }
.magnet canvas { display: block; width: 100%; height: 100%; }
.magnet::after { /* глянец */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .05) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.fridge-hero { aspect-ratio: 1; }
.fridge-preview { max-width: 440px; margin: 0 auto 16px; aspect-ratio: auto; }
.fridge-preview .fridge-grid { position: relative; inset: auto; padding: 15cqw 0; }

/* Как это работает */
.how { padding-top: 24px; padding-bottom: 32px; }
.how-list { counter-reset: how; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.how-list li { counter-increment: how; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 56px; position: relative; }
.how-list li::before {
  content: counter(how); position: absolute; left: 14px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}

/* Конструктор */
.constructor { padding-top: 24px; scroll-margin-top: 8px; }
.steps-nav { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 8px; font-size: .8rem; color: var(--muted); }
.steps-nav li { flex: 1; display: flex; align-items: center; gap: 6px; padding: 8px 0; border-top: 3px solid var(--line); white-space: nowrap; }
.steps-nav li.is-current { color: var(--ink); font-weight: 700; border-color: var(--accent); }
.steps-nav li.is-done { border-color: var(--ink); color: var(--ink); cursor: pointer; }
.step { padding-bottom: 24px; min-height: 40vh; }

.size-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.count-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px 12px; text-align: center;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--radius);
  font: inherit; cursor: pointer; touch-action: manipulation;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card b { font-size: 1rem; line-height: 1.2; }
.card small { color: var(--muted); font-size: .78rem; line-height: 1.25; }
.card .price { font-weight: 800; font-family: var(--font-head); }
.card .badge { position: absolute; top: -9px; right: 8px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.size-box { height: 52px; display: grid; place-items: end center; }
.size-box i { display: block; border-radius: 4px; background: linear-gradient(135deg, var(--yolk), var(--orange)); box-shadow: 0 2px 5px rgba(0, 0, 0, .2); }
.count-box { display: grid; gap: 3px; height: 44px; align-content: center; }
.count-box i { width: 11px; height: 11px; border-radius: 2px; background: var(--ink); opacity: .8; }

/* Доводы, отзывы, «кто делает» */
.point { margin: 12px 0 0; font-weight: 600; color: var(--ok); }
.point::before { content: "✓ "; }
.reviews-link { display: inline-block; margin-top: 14px; font-weight: 600; text-underline-offset: 3px; }
.reviews { padding-top: 8px; padding-bottom: 32px; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.reviews-head h2 { margin-bottom: .3em; }
.reviews-price { margin: 0 0 12px; color: var(--muted); }
.reviews-price b { color: var(--ink); }
.reviews-empty { border: 1.5px dashed #d9cfc2; border-radius: var(--radius); padding: 18px 16px; color: var(--muted); }
.reviews-empty p { margin: 0; }
.reviews-empty p + p { margin-top: 6px; }
.reviews-empty b { color: var(--ink); }
.reviews-list { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; overscroll-behavior-x: contain; }
.review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; }
.review img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.review figcaption { padding: 12px 14px; }
.review p { margin: 0 0 6px; }
.review small { color: var(--muted); }
.maker { display: grid; gap: 16px; padding-top: 8px; padding-bottom: 32px; }
.maker-text { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.maker-text p { margin: 0; }
.maker-photo img { display: block; width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; }

/* Упаковка */
.pack { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.pack-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; text-align: left; background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius); font: inherit; cursor: pointer; touch-action: manipulation; }
.pack-card[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pack-card b { font-size: .95rem; line-height: 1.25; }
.pack-price { font-weight: 800; font-size: 1.1rem; }
.pack-price small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.pack-card > small { color: var(--muted); font-size: .78rem; line-height: 1.3; }

/* Количество наборов */
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.qty-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.qty-text small { color: var(--muted); font-size: .82rem; }
.qty-ctl { display: flex; align-items: center; gap: 4px; flex: none; }
.qty-ctl button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 400 1.4rem/1 var(--font); cursor: pointer; touch-action: manipulation; }
.qty-ctl button:disabled { opacity: .25; cursor: default; }
.qty-ctl output { min-width: 32px; text-align: center; font-weight: 800; font-size: 1.2rem; }

/* Ячейки фото */
.counter { color: var(--muted); font-weight: 500; font-size: .95rem; margin-left: .3em; }
.slots { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 8px; margin: 10px 0 14px; max-width: 420px; } /* набор целиком: 3×3 */
.slots-title { margin: 14px 0 0; font-weight: 700; font-size: .9rem; }
.slot {
  position: relative; aspect-ratio: 1; padding: 0; overflow: hidden;
  border-radius: 10px; border: 2px dashed #cfc5b7; background: var(--card);
  color: var(--muted); font: 600 .8rem/1.2 var(--font); cursor: pointer;
  display: grid; place-items: center; touch-action: manipulation;
}
.slot .plus { font-size: 1.5rem; font-weight: 300; line-height: 1; display: block; }
.slot.is-filled { border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.slot.is-loading { border-style: solid; }
.slot.is-loading::after { content: ""; width: 40%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.slot canvas { display: block; width: 100%; height: 100%; }
.slot .num { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.slot .q { position: absolute; right: 3px; bottom: 3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; box-shadow: 0 0 0 2px #fff; }
.slot .q-warn { background: #c57a00; }
.slot .q-bad { background: var(--bad); }
#slots.is-drop .slot:not(.is-filled) { border-color: var(--accent); background: var(--accent-soft); }

.notice { border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.notice-demo { background: #eef2ff; color: #2d3a8c; text-align: left; }

/* Форма */
.field { display: block; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field i { font-style: normal; font-weight: 400; }
input[type="text"], input[type="tel"], textarea {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid #d9cfc2; border-radius: 12px; background: var(--card);
  font: 16px/1.4 var(--font); color: var(--ink); /* 16px — чтобы iOS не увеличивал страницу */
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.is-invalid input, .is-invalid textarea { border-color: var(--bad); }
.err { display: block; min-height: 0; color: var(--bad); font-style: normal; font-size: .85rem; margin-top: 4px; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label, .radios label { cursor: pointer; }
.chips input, .radios input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #d9cfc2; border-radius: 999px; background: var(--card); font-weight: 600; }
.chips input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chips input:focus-visible + span, .radios input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.radios { display: grid; gap: 8px; }
.radios span { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border: 1.5px solid #d9cfc2; border-radius: 12px; background: var(--card); }
.radios span b { font-weight: 600; }
.radios span small { grid-column: 1; color: var(--muted); }
.radios span em { grid-row: 1; grid-column: 2; font-style: normal; font-weight: 700; white-space: nowrap; }
.radios input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 8px 0 16px; text-align: left; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.summary-row span:first-child { color: var(--muted); }
.summary-row span:last-child { text-align: right; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 800; font-size: 1.15rem; }
.summary-total span:first-child { color: var(--ink); }
.summary-note { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }

.check + .check { margin-top: 12px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .9rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }

/* Экран «заказ принят» */
.step-done { text-align: center; padding-top: 16px; }
.done-mark { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; background: var(--orange); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.done-id { font-size: 1.1rem; }

/* Нижняя панель */
.bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 247, 241, .94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.bar-back { width: 44px; height: 44px; flex: none; border: 1.5px solid var(--line); border-radius: 50%; background: var(--card); font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.bar-set { font-size: .8rem; color: var(--muted); }
.bar-price { font-size: 1.15rem; }
.bar-next { flex: none; max-width: 58%; padding: 0 18px; }

/* FAQ и подвал */
.faq { padding-top: 40px; padding-bottom: 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.foot { display: flex; flex-direction: column; gap: 6px; padding-top: 24px; padding-bottom: 32px; font-size: .9rem; border-top: 1px solid var(--line); }

/* Редактор кадра */
.editor {
  position: fixed; inset: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background: #171411; color: #fff;
  overscroll-behavior: contain;
}
.editor-head { display: flex; align-items: center; justify-content: space-between; width: min(100%, 560px); font-weight: 700; }
.ed-nav { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.ed-nav:disabled { opacity: .25; cursor: default; }
.crop {
  position: relative; flex: none;
  width: min(100vw - 24px, 100vh - 300px, 560px);
  width: min(100vw - 24px, 100dvh - 300px, 560px);
  min-width: 200px;
  aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #000;
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  outline: none;
}
.crop:active { cursor: grabbing; }
.crop img { position: absolute; left: 0; top: 0; max-width: none; pointer-events: none; will-change: transform; -webkit-user-drag: none; }
.crop-trim { position: absolute; border: 1.5px dashed rgba(255, 255, 255, .95); border-radius: 4px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .42); pointer-events: none; }
.ed-hint { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .65); text-align: center; }
.ed-quality { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: .85rem; text-align: center; max-width: 560px; }
.ed-quality.q-warn { background: #5a3d00; color: #ffd98a; }
.ed-quality.q-bad { background: #5c1a14; color: #ffc2bb; }
.zoom { display: flex; align-items: center; gap: 12px; width: min(100%, 420px); font-size: 1.4rem; }
.zoom input { flex: 1; height: 32px; accent-color: var(--accent); }
.editor-actions { display: flex; gap: 8px; width: min(100%, 560px); }
.editor-actions .btn { flex: 1; padding: 0 10px; }

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: .92rem; text-align: center; box-shadow: var(--shadow);
}

body.is-locked { overflow: hidden; }

/* Планшет и десктоп */
@media (min-width: 760px) {
  .reviews-list { grid-auto-columns: calc((100% - 24px) / 3); }
  .maker { grid-template-columns: 1fr 1fr; align-items: center; }
  .maker:has(.maker-photo[hidden]) { grid-template-columns: 1fr; max-width: 720px; }
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 40px; padding-bottom: 64px; gap: 48px; }
  .how-list { grid-template-columns: repeat(4, 1fr); }
  .how-list li { padding: 56px 16px 16px; }
  .constructor { max-width: 720px !important; }
  .steps-nav { font-size: .9rem; }
  .size-cards, .count-cards { gap: 14px; }
  .card { padding: 20px 10px 16px; }
  .slots { gap: 10px; }
  .how-list { grid-template-columns: repeat(4, 1fr); }
  .bar { margin: 0; border: 1px solid var(--line); border-radius: 18px 18px 0 0; }
  .faq { max-width: 720px !important; }
  .foot { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* Страница опта */
.opt { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; }
.opt section { padding-bottom: 24px; }
.opt-title { font-size: clamp(1.9rem, 7.5vw, 3rem); }
.tiers { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; }
.tiers th, .tiers td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.tiers th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.tiers tr:last-child td { border-bottom: 0; }
.tiers td:last-child { font-size: .85rem; }
.tiers tr.is-active td { background: var(--accent-soft); }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.calc-row { display: flex; gap: 8px; align-items: center; }
.calc-row input { flex: 1; min-width: 0; text-align: center; font-size: 1.3rem !important; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-step { flex: none; min-width: 56px; height: 50px; border: 1.5px solid var(--ink); border-radius: 12px; background: transparent; color: var(--ink); font: 700 .95rem/1 var(--font); cursor: pointer; touch-action: manipulation; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.calc-presets button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: 600 .85rem/1 var(--font); cursor: pointer; }
.calc-result p { margin: 8px 0 0; }
.calc-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.calc-sum span { color: var(--muted); }
.calc-sum b { font-size: 1.6rem; }
.calc-contact { margin-top: 16px; }
.calc-links { display: flex; flex-wrap: wrap; gap: 8px; }
input[type="number"] { width: 100%; padding: 12px 14px; border: 1.5px solid #d9cfc2; border-radius: 12px; background: var(--card); font: 16px/1.4 var(--font); color: var(--ink); -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.summary-discount span:last-child { color: var(--ok); font-weight: 700; }
.field-hint { display: block; margin-top: 4px; }

.fridge-preview .fridge-grid + .fridge-grid { padding-top: 0; margin-top: -6cqw; }

/* Пункт выдачи СДЭК и оплата */
.cdek-label { display: block; font-weight: 600; margin-bottom: 6px; }
.cdek-search { display: flex; gap: 8px; }
.cdek-search input { flex: 1; min-width: 0; }
.cdek-search .btn { min-height: 48px; flex: none; }
#cdekInfo { margin: 8px 0; }
#cdekFilter { width: 100%; padding: 11px 14px; margin-bottom: 8px; border: 1.5px solid #d9cfc2; border-radius: 12px; background: var(--card); font: 16px/1.4 var(--font); }
.cdek-list { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.cdek-picked { padding: 12px 14px; border: 1.5px solid var(--accent); border-radius: 12px; background: var(--accent-soft); }
button.link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
input[type="email"], input[type="search"] { width: 100%; padding: 13px 14px; border: 1.5px solid #d9cfc2; border-radius: 12px; background: var(--card); font: 16px/1.4 var(--font); color: var(--ink); }
input[type="email"]:focus, input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.notice-ok { background: #e6f4ea; color: #1e5e37; text-align: left; }
#donePay { text-align: left; }
#donePayBtn { margin-bottom: 12px; }

/* Доставка: расчёт СДЭК недоступен */
.cdek-down-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cdek-down-actions .btn-ghost { border-color: var(--warn); color: var(--warn); }
#cdekDown p { margin: 0; }
#cdekQuote { margin: 8px 0 0; font-weight: 600; color: var(--ink); }
#cdekQuote:empty { display: none; }

/* Заявка на тираж */
.lead-form { margin-top: 24px; }
.lead-form .err:empty { display: none; }
.bar-price, .pack-price, .calc-sum b, .summary-total { font-family: var(--font-head); }

/* Шапка на узком экране */
.top-nav a:not(.btn) { white-space: nowrap; }
@media (max-width: 420px) {
  .hide-sm { display: none; }
  .logo img { height: 24px; }
  .top-nav { gap: 10px; }
  .top .btn-small { padding: 0 14px; }
}

/* Подвал: реквизиты и документы */
.foot { display: grid; gap: 10px; font-size: .88rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.foot-docs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-docs a { color: var(--muted); }
.foot-seller { margin: 0; color: var(--muted); font-size: .8rem; }

/* Юридические страницы */
.doc-main { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; }
.doc-main h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
.doc-main h2 { font-size: 1.2rem; margin-top: 1.6em; }
.draft { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 12px 14px; }

/* =====================================================================
   Правки по design/site-review.md (29.11.2026). Номера — пункты ревью.
   ===================================================================== */

/* 1.1 — доводы с галочкой в цветах бренда (оранжевый кружок, текст «Чернослив») */
.point { color: var(--plum); font-weight: 700; display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; }
.point::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.hero-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; color: var(--plum); }
.hero-points li.point { margin: 0; font-weight: 600; }
.hero-points li.point::before { content: ""; margin-right: 0; }
.hero-note { margin: 12px 0 0; color: var(--plum); font-weight: 600; }

/* 2.2 — фото продукта / образцы; подпись «Образцы» — честно, что это не фото покупателей */
.hero-visual { margin: 0; position: relative; }
.hero-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.samples-note { margin-top: 6px; text-align: right; font-size: .78rem; color: var(--muted); }
.magnet { background-size: cover; background-position: center; background-color: #fff; }
.magnet-blank { background: linear-gradient(160deg, var(--yolk) 0 50%, var(--orange) 50% 100%); }

/* 2.3 — главная кнопка без разъехавшихся слов */
#heroPick { display: inline-block; line-height: 56px; white-space: nowrap; }

/* 2.5 */
.slogan { font-size: clamp(1.5rem, 3vw, 2rem); }

/* 2.1 — телефон: заголовок → картинка → кнопка на первом экране */
@media (max-width: 759px) {
  .hero { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
  .hero-text { display: contents; }
  .hero h1 { order: 1; margin-bottom: 0; }
  .hero .slogan { order: 2; margin: 0; }
  .hero-visual { order: 3; max-width: none; }
  .hero .lead { order: 4; font-size: 1rem; margin: 0; }
  .hero #heroPick { order: 5; width: 100%; text-align: center; }
  .hero .hero-note { order: 6; margin: 0; }
  .hero .hero-points { order: 7; margin-top: 4px; }
  .hero .reviews-link { order: 8; }
  .fridge-hero { aspect-ratio: 16 / 10; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .samples-note { margin-top: 2px; }
}

/* 3.1 + 3.2 — единая сетка (1080 от одного левого края, узкое содержимое 720) и ритм отступов */
:root { --section: 40px; --radius-s: 12px; }
@media (min-width: 760px) { :root { --section: 72px; } }
main > section { padding-top: var(--section); padding-bottom: 0; }
main > section:last-child { padding-bottom: var(--section); }
main > section.hero { padding-top: 16px; }
@media (min-width: 760px) {
  main > section.hero { padding-top: 40px; padding-bottom: 0; }
  .constructor, .faq { max-width: 1080px !important; }
  .constructor > *, .faq > *, .reviews > *, .how > .how-list { max-width: 720px; }
  .constructor > .bar { max-width: 720px; }
  .maker { grid-template-columns: 1fr 1fr; }
  .maker:has(.maker-photo[hidden]) { max-width: 1080px; grid-template-columns: minmax(0, 720px); }
}

/* 3.4 — «Как это работает»: 3 шага, номер крупно цветом «Хурма», без кружка */
.how-list li { font-size: 1.05rem; padding: 16px 16px 16px 60px; }
.how-list li b { display: block; font-family: var(--font-head); font-weight: 800; margin-bottom: 2px; }
.how-list li::before { background: none; width: auto; height: auto; left: 18px; top: 10px; font: 900 2.2rem/1 var(--font-head); color: var(--orange); }
@media (min-width: 760px) {
  .how-list { grid-template-columns: repeat(3, 1fr) !important; max-width: none !important; }
  .how-list li { padding: 64px 20px 20px; }
  .how-list li::before { left: 20px; top: 16px; }
}

/* Блок «Куда повесить и кому подарить» */
.gifts-intro { color: var(--muted); max-width: 40em; }
.where-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.where-list li { background: #EAF6F0; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .92rem; }
.gift-cards { display: grid; gap: 10px; }
.gift-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.gift-card h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--orange); }
.gift-card p { margin: 0; }
@media (min-width: 760px) { .gift-cards { grid-template-columns: repeat(3, 1fr); } }

/* 4.1 — реакция на наведение */
@media (hover: hover) {
  .btn:hover { background: #E0541F; }
  .btn-ghost:hover { background: var(--plum); color: #fff; }
  .card:hover, .pack-card:hover { border-color: #e9b9a3; }
  .slot:not(.is-filled):hover { border-color: var(--orange); background: var(--accent-soft); color: var(--orange); }
  .faq summary:hover { color: var(--orange); }
}
/* 4.2 */
.btn:disabled { opacity: 1; background: #E6DDD1; color: #9A8F9C; }
/* 4.3 */
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 900 1.4rem/1 var(--font-head); color: var(--orange); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
/* 4.4 */
.calc-step { border-radius: 999px; }

/* 5.1 — главная кнопка на шаге «Фото» — на плашке; в блоке — второстепенная */
#addPhotos { background: var(--card); color: var(--orange); border: 2px dashed var(--orange); }
@media (hover: hover) { #addPhotos:hover { background: var(--accent-soft); } }
/* 5.2, 5.3, 1.3 */
.bar { background: rgba(251, 246, 238, .94); box-shadow: 0 -8px 24px rgba(42, 31, 45, .08); }
.bar-price { font-size: 1.35rem; font-weight: 900; }
/* 1.4 */
.notice-demo { background: #E3F0FA; color: var(--plum); }

/* 6.1 — пустые отзывы: спокойная карточка без пунктира (светлая «Мята») */
.reviews-empty { border: 0; background: #EAF6F0; border-radius: var(--radius); padding: 20px; color: var(--plum); }

/* 6.3 — подвал: логотип и слоган / контакты / документы и реквизиты */
.foot { display: grid; gap: 16px; padding-top: 32px; padding-bottom: 40px; font-size: .9rem; color: var(--muted); }
.foot img { height: 24px; width: auto; display: block; }
.foot a { color: var(--plum); }
.foot-col { display: grid; gap: 6px; align-content: start; }
.foot-col .foot-slogan { font-family: var(--font-hand); font-size: 1.25rem; color: var(--orange); }
@media (min-width: 760px) { .foot { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }

/* 7.2 — таблица цен на телефоне; 7.3 — активная строка */
@media (max-width: 420px) {
  .tiers th, .tiers td { padding: 10px 8px; }
  .tiers td:first-child, .tiers td:nth-child(2), .tiers th:nth-child(2) { white-space: nowrap; }
  .tiers td:last-child { font-size: .8rem; }
}
.tiers tr.is-active td:first-child { box-shadow: inset 4px 0 0 var(--orange); }

/* Опт: пункты и кнопка первого экрана, строка под калькулятором */
.opt-points { margin-bottom: 18px; }
.opt-cta { margin-bottom: 8px; }
.calc-after { font-weight: 700; color: var(--plum); margin: 12px 0 4px; }
@media (max-width: 759px) { .opt-cta { width: 100%; } }
/* 2.1 — в низком холодильнике 16:10 сетка 3×3 должна помещаться целиком */
@media (max-width: 759px) {
  .fridge-hero .fridge-grid { --m: 16.5cqw !important; gap: 2cqw; }
}
/* Шапка опта на телефоне: кнопка «Рассчитать тираж» есть на первом экране — в шапке её прячем */
.top .btn-small { white-space: nowrap; }
@media (max-width: 420px) { .top .top-cta { display: none; } }
