/* Оформление сайта NSP: глубокий лесной зелёный, тёплая бумага и солнечный акцент.
   Медиазапросы собраны в конце файла, от широких экранов к узким. */

/* Основа: цвета, сброс, текст */
:root {
  --forest: #17352a; --moss: #3f6f57; --sun: #f5a623; --clay: #b5532f; --brand: #007f6e;
  --paper: #fffdf8; --cream: #f6f0e3; --ink: #1b2a23; --muted: #5d6b63; --line: #e5ddcb;
  --tone-sun: #fbeccb; --tone-sun-ink: #8a5a07; --tone-moss: #dfecdf; --tone-moss-ink: #2c5c44;
  --tone-night: #dfe4ec; --tone-night-ink: #33466b; --tone-clay: #f7e0d5; --tone-clay-ink: #9a4423;
  --tone-sand: #eee6d2; --tone-sand-ink: #6a5a30;
  --forest-2: color-mix(in srgb, var(--forest) 70%, var(--moss)); --sun-dark: color-mix(in srgb, var(--sun) 90%, black);
  --sun-light: color-mix(in srgb, var(--sun) 50%, white); --sun-ink: color-mix(in srgb, var(--sun) 14%, black);
  --highlight: color-mix(in srgb, var(--sun) 35%, white); --cream-2: color-mix(in srgb, var(--cream) 50%, var(--line));
  --placeholder: color-mix(in srgb, var(--muted) 70%, white);
  --radius: 18px; --radius-sm: 12px; --shadow: 0 18px 50px -24px color-mix(in srgb, var(--forest) 35%, transparent);
  --font: 'Golos Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --accent-font: 'Lora', Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 18px; letter-spacing: -.01em; }
em { font: italic 500 1.03em var(--accent-font); letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: 32px; }
.boot { padding: 80px; text-align: center; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--moss); }
.eyebrow-sun { color: var(--sun); }
.note { font-size: 14px; color: var(--muted); }
.note .glyph { vertical-align: -3px; margin-right: 4px; }
.note-light { color: rgba(255, 255, 255, .6); margin-top: 16px; }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; margin-top: 12px; }
.lead-wide { max-width: none; }
.sub { font-size: 24px; margin: 48px 0 20px; }
.warning { margin-top: 28px; padding: 14px 18px; background: var(--cream); border-radius: var(--radius-sm); font-size: 14px; color: var(--muted); }
.nowrap { white-space: nowrap; }
mark { background: var(--highlight); color: inherit; border-radius: 3px; padding: 0 1px; }
.optional { font-weight: 400; color: var(--muted); font-size: 12.5px; }

/* Кнопки и чипы */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color .18s, color .18s, transform .18s, border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-sun:hover { background: var(--sun-dark); }
.btn-ink { background: var(--forest); color: #fff; }
.btn-ink:hover { background: var(--forest-2); }
.btn-line { border: 1.5px solid var(--forest); color: var(--forest); }
.btn-line:hover { background: var(--forest); color: #fff; }
.btn-lg { min-height: 54px; padding-inline: 30px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-plain { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--forest); font-size: 15px;
  white-space: nowrap; border-bottom: 1.5px solid currentColor;
}
.text-link:hover { color: var(--moss); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }
.icon-btn:hover { background: var(--cream); }
.icon-btn-line { width: 54px; height: 54px; border: 1.5px solid var(--line); flex: none; }
.icon-btn-line.on { color: var(--clay); border-color: var(--clay); }
.icon-btn-line.on svg { fill: currentColor; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips a, .chips button {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 15px;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--paper);
  transition: border-color .15s, background-color .15s, color .15s;
}
.chips a:hover, .chips button:hover { border-color: var(--forest); }
.chips .on { background: var(--forest); border-color: var(--forest); color: #fff; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }

/* Тона задач */
.tone-sun { --tone: var(--tone-sun); --tone-ink: var(--tone-sun-ink); }
.tone-moss { --tone: var(--tone-moss); --tone-ink: var(--tone-moss-ink); }
.tone-night { --tone: var(--tone-night); --tone-ink: var(--tone-night-ink); }
.tone-clay { --tone: var(--tone-clay); --tone-ink: var(--tone-clay-ink); }
.tone-sand { --tone: var(--tone-sand); --tone-ink: var(--tone-sand-ink); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 30; background: rgba(255, 253, 248, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topline { background: var(--forest); color: rgba(255, 255, 255, .86); font-size: 13.5px; }
.topline-row { display: flex; justify-content: space-between; gap: 16px; min-height: 42px; align-items: center; }
.topline-partner { color: #fff; font-weight: 600; }
.topline-right { display: flex; align-items: center; gap: 22px; }
.topline-icons { display: flex; align-items: center; gap: 16px; }
.topline-right a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; white-space: nowrap; transition: opacity .15s; }
.topline-right a:hover { opacity: .75; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 74px; }
.logo { flex: none; }
.logo img { height: 42px; width: auto; }
.catalog-btn { flex: none; }
.header-search { flex: 1; min-width: 180px; }
.header-nav { display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.header-nav a:hover { color: var(--moss); }
.nav-accent { display: inline-flex; align-items: center; gap: 5px; }
.header-nav a.on { color: var(--clay); font-weight: 600; }
.cart-btn { position: relative; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; }
.cart-btn:hover { background: var(--cream); }
.cart-btn b, .bottom-nav b {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; background: var(--sun);
  color: var(--sun-ink); border-radius: 999px; font-size: 12px; line-height: 20px; text-align: center;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 90; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 10px; }
.skip:focus { top: 8px; }
main:focus { outline: 0; }
.icon-link { position: relative; width: 46px; height: 46px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.icon-link:hover { background: var(--cream); }
.icon-link b {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--clay); color: #fff; border-radius: 999px; font-size: 12px; line-height: 20px;
  text-align: center;
}
.bump { animation: bump .3s; }
@keyframes bump { 40% { transform: scale(1.35); } }
.header-row.hero-visible .header-search { visibility: hidden; }

/* Большое меню каталога */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--paper);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 120px);
  overflow: auto;
}
.mega-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding-block: 28px 32px; }
.mega-col { display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; }
.mega-col .eyebrow { margin-bottom: 7px; }
.mega-col a:hover { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.mega-need-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; margin-top: 12px; font-size: 14.5px; font-weight: 500; }
.mega-need-list a { display: flex; align-items: center; gap: 9px; padding: 4px; border-radius: 10px; }
.mega-need-list a:hover { background: var(--cream); }
.dot {
  width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--tone); color: var(--tone-ink);
}
.mega-quiz { margin-top: 16px; }

/* Поиск и подсказки */
.searchbox {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 46px;
  background: var(--cream); border-radius: 999px; border: 1.5px solid transparent;
  transition: border-color .15s, background-color .15s;
}
.searchbox:focus-within { border-color: var(--forest); background: #fff; }
.searchbox > .glyph { flex: none; color: var(--muted); }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; }
.searchbox input::-webkit-search-cancel-button { display: none; }
.searchbox-lg { padding: 7px 8px 7px 22px; background: #fff; min-height: 60px; }
.searchbox-lg:focus-within { border-color: var(--sun); }
.searchbox-lg input { font-size: 17px; color: var(--ink); }
.searchbox-lg input::placeholder { color: var(--placeholder); }
.searchbox-lg .btn { min-height: 50px; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; max-height: 460px; overflow: auto;
  padding: 8px; background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 24px 60px -18px rgba(23, 53, 42, .45); border: 1px solid var(--line);
}
.suggest-row { font-size: 14.5px; line-height: 1.3; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 0; border-radius: 12px; }
.suggest-photo { width: 44px; height: 44px; flex: none; overflow: hidden; }
.suggest-photo img { width: 100%; height: 100%; object-fit: contain; }
.suggest-name { flex: 1; min-width: 0; }
.suggest-name small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.suggest-empty { padding: 16px; color: var(--muted); font-size: 15px; }
.suggest-all { width: 100%; padding: 12px; font-weight: 600; color: var(--forest); border-top: 1px solid var(--line); margin-top: 4px; }
.suggest-group {
  display: flex; justify-content: space-between; padding: 8px 10px 3px; font-size: 12px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.suggest-group button { font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--moss); text-decoration: underline; }
.suggest-row a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 7px 10px; }
.suggest-row.on, .suggest-row:hover { background: var(--cream); }
.suggest-icon { width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.suggest-icon.dot { color: var(--tone-ink); }
.suggest-add {
  width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--sun); color: var(--sun-ink);
}

/* Главная: первый экран */
.hero { background: var(--forest); color: #fff; }
.hero-grid { display: grid; align-items: center; min-height: 0; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.hero-copy { position: relative; z-index: 2; padding-block: 26px 28px; }
.hero h1 { line-height: 1.06; font-size: clamp(32px, 3.8vw, 50px); margin: 8px 0 8px; }
.hero h1 em { color: var(--sun); }
.hero-lead { color: rgba(255, 255, 255, .76); max-width: 560px; font-size: 17px; margin-bottom: 16px; }
.hero-chips { font-size: 14px; color: rgba(255, 255, 255, .62); margin-top: 12px; }
.hero-chips a { border-color: rgba(255, 255, 255, .25); background: none; color: #fff; min-height: 34px; padding: 4px 13px; font-size: 13.5px; }
.hero-chips a:hover { border-color: var(--sun); color: var(--sun); }
.hero-art { position: relative; height: 300px; }
.sun {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sun-light), var(--sun) 62%); width: 280px; height: 280px;
}
.bottle {
  position: absolute; display: block; border-radius: 28px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .55); transition: transform .3s;
}
.bottle img { width: 100%; height: 100%; object-fit: contain; }
.bottle-front { left: 50%; top: 50%; transform: translate(-50%, -48%); z-index: 3; width: 150px; height: 190px; padding: 10px; border-radius: 20px; }
.bottle-left { transform: rotate(-7deg); z-index: 2; left: 8%; top: 10%; }
.bottle-right { transform: rotate(6deg); z-index: 2; right: 8%; bottom: 8%; }
.bottle-left, .bottle-right { width: 112px; height: 142px; padding: 8px; border-radius: 18px; }

/* Секции */
.section { padding-block: 64px 0; }
.section-cream, .section-forest { padding-block: 64px; margin-top: 64px; }
.section-cream { background: var(--cream); }
.section-forest { background: var(--forest); color: #fff; }
.section-forest .eyebrow { color: var(--sun); }
.section-forest .text-link { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.section-head .eyebrow { margin-bottom: 8px; }

/* Задачи */
.needs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.need {
  display: flex; flex-direction: column; gap: 3px; border-radius: var(--radius); background: var(--tone);
  transition: transform .2s, box-shadow .2s; min-height: 112px; padding: 13px 14px;
}
.need:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.need b { line-height: 1.2; font-weight: 600; margin-top: auto; font-size: 15.5px; }
.need small { line-height: 1.3; color: var(--tone-ink); font-size: 12.5px; }
.need-icon { color: var(--tone-ink, var(--forest)); display: flex; margin-bottom: 6px; }
.section-needs { padding-top: 24px; }
.section-needs .section-head { margin-bottom: 14px; align-items: baseline; }
.section-needs h2 { font-size: 24px; }

/* Главная: прошлый заказ */
.last-order { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 12px 16px; background: var(--cream); border-radius: var(--radius); }
.last-order-photos { display: flex; flex: none; }
.last-order-photos span {
  width: 50px; height: 50px; margin-left: -12px; padding: 3px; border: 2px solid var(--cream);
  border-radius: 50%; overflow: hidden; background: var(--cream-2); isolation: isolate;
}
.last-order-photos span:first-child { margin-left: 0; }
.last-order-photos img { width: 100%; height: 100%; object-fit: contain; }
.last-order-text { flex: 1; min-width: 0; }
.last-order-text small { display: block; color: var(--muted); }

/* Лента товаров и карточка */
.rail-wrap { position: relative; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-block: 6px 28px; margin-block: -6px -28px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 calc((100% - 4 * 16px) / 5); scroll-snap-align: start; }
.rail-btn {
  position: absolute; top: 32%; width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; background: #fff; border-radius: 50%;
  box-shadow: 0 8px 22px -8px rgba(23, 53, 42, .5); z-index: 3;
}
.rail-btn:hover { background: var(--sun); }
.rail-btn.prev { left: -18px; }
.rail-btn.next { right: -18px; }
.tag { position: absolute; top: 12px; left: 12px; padding: 2px 10px; background: var(--brand); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 600; }
.card-save {
  position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  color: var(--muted); background: transparent; width: 42px; height: 42px; top: 4px; right: 4px;
}
.card-save:hover { color: var(--clay); }
.card-save.on { color: var(--clay); }
.card-save.on svg { fill: currentColor; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; min-height: 52px; }
.price { font-weight: 700; font-size: 17px; white-space: nowrap; }
.price-ask { font-weight: 500; font-size: 14px; color: var(--muted); white-space: normal; line-height: 1.2; }
.price-lg { font-size: 32px; letter-spacing: -.02em; }
.price-lg.price-ask { font-size: 22px; }
.round-add {
  width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--sun); color: var(--sun-ink); transition: background-color .15s, transform .15s;
}
.round-add:hover { background: var(--sun-dark); transform: scale(1.06); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 780px; }
.card-foot .qty { border-color: var(--forest); }
.card-foot .qty button { width: 40px; height: 40px; }
.card-foot .qty span { min-width: 18px; }

/* Цена по дисконтной карте, розничная цена и выгода */
.card-foot-col { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; }
.prices { display: flex; flex-direction: column; gap: 2px; }
.prices-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 8px; }
.prices-label { font-size: 12.5px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.prices-value { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices-main .prices-label { color: var(--brand); font-weight: 600; }
.prices-main .prices-value { font-size: 18px; font-weight: 550; color: var(--clay); }
.prices-save { font-size: 12.5px; font-weight: 600; color: var(--brand); line-height: 1.3; }
.prices .short { display: none; }
@container (max-width: 230px) {
  .prices .long { display: none; }
  .prices .short { display: inline; }
  .prices-main .prices-value { font-size: 17px; }
  .prices-save { font-size: 11.5px; }
}
.prices-lg { gap: 4px; }
.prices-lg .prices-label { font-size: 15px; }
.prices-lg .prices-value { font-size: 17px; }
.prices-lg .prices-main .prices-value { font-size: 32px; letter-spacing: -.02em; }
.buy-box .prices-save { display: block; margin-top: 6px; font-size: 15px; }

/* Карточка: выгода в строке зачеркнутой розничной цены, ниже широкая кнопка «Купить» */
.card-foot-wide { gap: 10px; }
.card-foot-wide .prices-save { font-weight: 400; font-size: 11.5px; }
.prices-old { margin-left: auto; font-size: 13.5px; color: var(--muted); white-space: nowrap; text-decoration: line-through; text-decoration-thickness: 1px; font-variant-numeric: tabular-nums; }
.buy-wide {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px;
  border-radius: 12px; background: var(--sun); color: var(--sun-ink); font-size: 15.5px; font-weight: 300;
  transition: background-color .15s;
}
.buy-wide:hover { background: var(--sun-dark); }
.card-foot .qty-wide { display: flex; width: 100%; height: 42px; justify-content: space-between; border-radius: 12px; }
.card-foot .qty-wide button { height: 40px; width: 48px; }
@container (max-width: 230px) {
  .prices-old { font-size: 12.5px; }
  .buy-wide, .card-foot .qty-wide { height: 38px; border-radius: 10px; }
  .buy-wide { font-size: 14.5px; }
  .card-foot .qty-wide button { height: 36px; }
}

/* Фото на теплой подложке: белый фон снимка растворяется в ней, без белых плашек */
.gallery-main img,
.gallery-thumbs img,
.line-photo img,
.suggest-photo img,
.kit-photo img,
.together-photo img,
.last-order-photos img,
.tile-photo img {
  mix-blend-mode: multiply;
}
.line-photo, .suggest-photo, .kit-photo {
  background: var(--cream); border: 0; border-radius: 10px; isolation: isolate;
}

/* Главная: полоса подбора */
.quiz-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 64px;
  padding: 44px 48px; background: var(--forest); color: #fff; border-radius: 28px; position: relative;
  overflow: hidden;
}
.quiz-band::after { content: ''; position: absolute; right: -90px; top: -130px; width: 320px; height: 320px; border-radius: 50%; background: var(--sun); opacity: .22; }
.quiz-band > * { position: relative; z-index: 1; }
.quiz-band h2 { margin: 8px 0 10px; }
.quiz-band h2 em { color: var(--sun); }
.quiz-band p { color: rgba(255, 255, 255, .75); max-width: 620px; }

/* Карточка товара и программы: плитка с фото сверху, ценами и кнопкой «Купить» внизу */
.tile {
  position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--cream); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s; container-type: inline-size;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-photo { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--cream-2); isolation: isolate; }
.tile-photo-square { aspect-ratio: 1 / 1; }
/* Картинка не влияет на высоту рамки: верх и низ обложки у соседних карточек на одной линии */
.tile-photo img { position: absolute; top: 14px; left: 14px; width: calc(100% - 28px); height: calc(100% - 20px); object-fit: contain; }
.tile-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.tile-body .eyebrow { font-size: 11px; margin-bottom: 6px; }
.tile-body h3 { margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-body h3 a:hover { color: var(--moss); }
.tile-meta { margin-top: auto; font-size: 14px; color: var(--muted); }
.tile-body .card-foot { margin-top: 0; min-height: 0; }

/* Карточки программ */
.goal-chips { margin: 20px 0 24px; }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Доверие: цифры и сертификаты */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stats div { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 18px; }
.stats b { display: block; font-size: clamp(36px, 5vw, 58px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; color: var(--sun); }
.stats span { color: rgba(255, 255, 255, .78); }
.cert-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.cert-row span { padding: 5px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: 14px; }
.cert-row-dark { margin-top: 0; }
.cert-row-dark span { border-color: var(--line); background: var(--cream); }

/* Полоса сканов свидетельств */
.docs-band {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center;
  margin-top: 64px; padding: 36px 44px; background: var(--cream); border-radius: 28px; overflow: hidden;
}
.docs-band h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 8px 0 10px; }
.docs-band p { color: var(--muted); max-width: 520px; }
.docs-band .btn { margin-top: 18px; }
.docs-fan { position: relative; height: 230px; }
.docs-fan button {
  position: absolute; top: 8px; left: calc(var(--i) * 21%); width: 34%; aspect-ratio: 3 / 4; padding: 5px;
  background: #fff; border-radius: 6px; box-shadow: 0 16px 36px -18px rgba(23, 53, 42, .55);
  transform: rotate(calc((var(--i) - 1.5) * 4deg)); transition: transform .2s;
}
.docs-fan button:hover, .docs-fan button:focus-visible { transform: translateY(-6px) rotate(0); z-index: 5; }
.docs-fan img { width: 100%; height: 100%; object-fit: contain; }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps li { padding: 22px; background: var(--cream); border-radius: var(--radius); }
.steps span {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--sun); font-weight: 700; color: var(--sun-ink); margin-bottom: 14px;
}
.steps b { display: block; font-size: 18px; line-height: 1.25; font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Консультант */
.consultant { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--forest); color: var(--sun); font: italic 500 42px var(--accent-font);
}
.consultant-copy h2 { margin: 6px 0 8px; }
.consultant-copy p { color: var(--muted); max-width: 560px; }
.consultant-actions { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; }
.consultant-actions .btn-ink { grid-column: 1 / -1; }

/* Статьи */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--cream); }
.post-card h3 { margin-top: 12px; }
.post-card:hover h3 { color: var(--moss); }

/* Раскрывающиеся блоки */
.faq { max-width: 860px; }
.disclosure { border-bottom: 1px solid var(--line); }
.disclosure-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0;
  font-weight: 600; font-size: 17px; text-align: left;
}
.disclosure-head .glyph { flex: none; transition: transform .2s; }
.disclosure.open .disclosure-head .glyph { transform: rotate(180deg); }
.disclosure-body { padding-bottom: 20px; color: var(--ink); }

/* Подвал */
.footer { margin-top: 80px; padding-block: 56px 28px; background: var(--forest); color: rgba(255, 255, 255, .78); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid > div > a { display: block; padding: 3px 0; }
.footer-grid a:hover { color: var(--sun); }
.footer-brand img { height: 42px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-phone { display: block; margin-top: 14px; font-size: 21px; font-weight: 600; color: #fff; }
.footer-messengers { display: flex; gap: 14px; margin-top: 6px; }
.footer-messengers a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13px;
  color: rgba(255, 255, 255, .56); display: grid; gap: 6px;
}

/* Страницы */
.page { padding-top: 24px; }
.page-tail { margin-top: 0; padding-top: 0; }
.crumbs { display: flex; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs i { font-style: normal; margin-inline: 7px; opacity: .55; }
.empty, .empty-block { color: var(--muted); }
.empty-block {
  padding: 48px 20px; text-align: center; background: var(--cream); border-radius: var(--radius);
  margin-top: 24px; display: grid; justify-items: center; gap: 14px;
}
.empty-block h1, .empty-block h2 { color: var(--ink); }
.help-block { margin-top: 56px; }
.skeleton { height: 480px; border-radius: var(--radius); background: var(--cream); animation: pulse 1.2s infinite alternate; }
@keyframes pulse { to { opacity: .55; } }

/* Каталог, задача, поиск, избранное */
.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; margin-top: 24px; align-items: start; }
.sidebar { position: sticky; top: 124px; max-height: calc(100vh - 140px); overflow: auto; padding-right: 8px; font-size: 14.5px; scrollbar-width: thin; }
.side-group { margin-top: 18px; }
.side-group .eyebrow { margin-bottom: 6px; font-size: 11.5px; }
.side-link { display: flex; justify-content: space-between; gap: 8px; padding: 5px 10px; border-radius: 8px; line-height: 1.3; }
.side-link small { color: var(--muted); }
.side-link:hover { background: var(--cream); }
.side-link.on { background: var(--forest); color: #fff; }
.side-link.on small { color: rgba(255, 255, 255, .7); }
.toolbar { justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; display: block; }
.sort select { min-height: 38px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 14px; }
.more { display: flex; justify-content: center; margin-top: 32px; }
.corrected { color: var(--muted); margin-top: 12px; }
.search-again { max-width: 760px; margin-top: 18px; }
.search-again .searchbox-lg { background: var(--cream); }
.other-needs { margin-top: 56px; }
.other-needs .chips { margin-top: 10px; }
.need-hero { background: var(--tone); padding-block: 18px 22px; }
.need-hero-row { display: flex; align-items: center; margin-top: 6px; gap: 16px; }
.need-hero-icon {
  flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(255, 255, 255, .65); color: var(--tone-ink); width: 62px; height: 62px;
}
.need-hero p { color: var(--tone-ink); font-size: 16px; margin-top: 2px; }
.mobile-picker { display: none; }
.toolbar-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.found { flex: 1; font-size: 14.5px; color: var(--muted); }
.filters-btn { display: none; min-height: 40px; padding-inline: 14px; font-size: 14px; }
.filters { margin-bottom: 20px; }
.chips-sep { width: 1px; height: 22px; background: var(--line); margin-inline: 4px; }
.chips .chip-reset { border: 0; color: var(--clay); text-decoration: underline; text-underline-offset: 3px; background: none; }
.saved-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* Товар */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.gallery { position: sticky; top: 124px; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; border-radius: 24px; padding: 28px; border: 0; background: var(--cream); isolation: isolate; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .tag { top: 18px; left: 18px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px; }
.gallery-thumbs button {
  width: 72px; height: 72px; flex: none; padding: 5px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--cream); border-color: transparent; isolation: isolate;
}
.gallery-thumbs button.on { border-color: var(--forest); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy h1 { font-size: clamp(26px, 3vw, 36px); }
.buy-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 14.5px; color: var(--muted); align-items: center; }
.stock { display: inline-flex; align-items: center; gap: 7px; }
.stock i { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }
.stock-yes i { background: #3c9a63; }
.buy-box { margin-top: 20px; padding: 24px; background: var(--cream); border-radius: var(--radius); }
.buy-actions { display: flex; gap: 10px; margin: 14px 0; }
.buy-actions .btn { flex: 1; }
.ask-row { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.ask-row a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.in-programs { margin-top: 22px; }
.in-programs a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.in-programs .eyebrow { margin-bottom: 4px; }
.in-programs a:hover { color: var(--moss); }
.together { margin-top: 48px; padding: 28px; border: 1.5px solid var(--line); border-radius: var(--radius); }
.together h2 { font-size: 24px; margin-top: 6px; }
.together-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.together-item {
  display: flex; flex-direction: column; gap: 8px; position: relative; padding: 12px;
  border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; opacity: .55; background: var(--paper);
  isolation: isolate;
}
.together-item.on { border-color: var(--forest); opacity: 1; }
.together-item input { position: absolute; top: 12px; right: 12px; width: 19px; height: 19px; accent-color: var(--forest); }
.together-photo { height: 120px; display: block; }
.together-photo img { width: 100%; height: 100%; object-fit: contain; }
.together-name { font-size: 14px; line-height: 1.3; font-weight: 500; }
.together-name small { display: block; margin-top: 3px; font-size: 15px; font-weight: 700; }
.together-foot { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-top: 18px; }
.together-foot b { font-size: 20px; }
.product-info { margin-top: 36px; border-top: 1px solid var(--line); }
.richtext { line-height: 1.65; max-width: 860px; overflow-wrap: anywhere; }
.richtext img { height: auto; border-radius: 12px; margin-block: 8px; }
.richtext p { margin-bottom: 12px; }
.richtext table { max-width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.richtext td, .richtext th { border: 1px solid var(--line); padding: 6px 10px; }
.richtext blockquote { margin: 16px 0; padding: 4px 18px; border-left: 3px solid var(--sun); }
.clamp { max-height: 280px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.clamp-more { margin-top: 10px; }
.sticky-buy { display: none; }
.qty-lg { flex: 1; justify-content: space-between; min-height: 54px; }
.qty-lg button { width: 54px; height: 50px; }
.qty-lg span { font-size: 18px; }
.sticky-buy .qty button { height: 44px; width: 40px; }
.quick-facts { display: grid; gap: 8px; margin-top: 14px; }
.quick-facts button {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 14px; text-align: left;
  font-size: 14px; line-height: 1.4; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.quick-facts button:hover { border-color: var(--forest); }
.quick-facts b { font-weight: 600; }
.quick-facts span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); }
.quick-facts .fact-alert b { color: var(--clay); }
.has-docs { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--moss); font-weight: 500; }
.has-docs:hover { text-decoration: underline; }
.tabs { margin-top: 40px; scroll-margin-top: 130px; }
.tab-list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button {
  flex: none; min-height: 46px; padding: 10px 16px; font-weight: 500; font-size: 15.5px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-list button:hover { color: var(--ink); }
.tab-list button.on { color: var(--ink); border-bottom-color: var(--sun); font-weight: 600; }
.tab-list button.tab-alert { color: var(--clay); }
.tab-panel { padding-block: 22px 8px; max-width: 860px; }
.tab-panel p { margin-bottom: 9px; overflow-wrap: anywhere; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-block: 12px; }
.doc-grid button { padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.doc-grid button:hover { border-color: var(--forest); }
.doc-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.lightbox { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 30, 24, .8); }
.lightbox img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 8px; }
.lightbox button {
  position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; display: flex; align-items: center;
  justify-content: center; background: #fff; border-radius: 50%;
}

/* Программа */
.program-hero { background: var(--cream); padding-block: 24px 44px; }
.program-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.program-hero-photo { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--cream-2); isolation: isolate; padding: 18px; }
.program-hero-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.benefits { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; }
.benefits li { display: flex; gap: 10px; line-height: 1.4; }
.benefits .glyph { flex: none; color: var(--moss); margin-top: 2px; }
.program-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-top: 36px; }
.kit h2 { font-size: 26px; margin-bottom: 4px; }
.kit > .note { margin-bottom: 14px; }
.kit-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); opacity: .5; transition: opacity .15s; }
.kit-row.on, .kit-ask { opacity: 1; }
.kit-check { width: 26px; height: 26px; flex: none; position: relative; cursor: pointer; }
.kit-check input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.box { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: 8px; color: transparent; }
.kit-row.on .box { background: var(--forest); border-color: var(--forest); color: #fff; }
.kit-check input:focus-visible + .box { outline: 3px solid var(--sun); outline-offset: 2px; }
.kit-photo { width: 62px; height: 62px; flex: none; }
.kit-photo img { width: 100%; height: 100%; object-fit: contain; }
.kit-name { flex: 1; min-width: 0; font-weight: 500; line-height: 1.3; }
a.kit-name:hover { color: var(--moss); }
.kit-summary { position: sticky; top: 124px; padding: 24px; background: var(--forest); color: #fff; border-radius: var(--radius); }
.kit-summary .eyebrow { color: var(--sun); }
.kit-total { font-size: 40px; font-weight: 600; letter-spacing: -.025em; margin-top: 4px; }
.kit-count { color: rgba(255, 255, 255, .72); margin-bottom: 18px; }
.kit-summary .note { color: rgba(255, 255, 255, .62); margin-top: 14px; font-size: 13px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.plan img { width: 100%; height: auto; }

/* Подбор */
.quiz { max-width: 920px; }
.quiz-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 36px; }
.quiz-progress span { height: 6px; border-radius: 3px; background: var(--cream-2); }
.quiz-progress .on { background: var(--sun); }
.quiz-head { margin-bottom: 26px; }
.quiz-head h1 { margin-top: 6px; }
.quiz-options { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.quiz-options-1 { grid-template-columns: repeat(3, 1fr); }
.quiz-options-2 { grid-template-columns: repeat(2, 1fr); }
.quiz-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 136px; padding: 20px;
  text-align: left; background: var(--tone, var(--cream)); border-radius: var(--radius);
  transition: transform .18s, box-shadow .18s; color: inherit;
}
.quiz-option:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quiz-option b { font-size: 18px; font-weight: 600; line-height: 1.2; margin-top: auto; }
.quiz-option small { font-size: 13.5px; color: var(--tone-ink, var(--muted)); line-height: 1.3; }
.quiz-back { margin-top: 18px; }
.quiz-result { max-width: 860px; }
.quiz-result h1 { margin-top: 6px; }
.quiz-program { max-width: 360px; margin-top: 20px; }
.quiz-add {
  display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 16px 20px; background: var(--cream);
  border-radius: var(--radius-sm); justify-content: space-between; max-width: 780px;
}
.quiz-add b { font-size: 20px; }
.quiz-note { margin-top: 32px; font-size: 14px; color: var(--muted); display: grid; gap: 8px; }
.quiz-note a { color: var(--forest); text-decoration: underline; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.quiz-why { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 20px; }
.quiz-why .quiz-program { margin: 0; max-width: none; }
.quiz-why .eyebrow { margin-bottom: 10px; }
.reason { margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--moss); }

/* Доставка, контакты, качество, статья */
.plain-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.method { padding: 24px; background: var(--cream); border-radius: var(--radius); }
.method h2 { font-size: 21px; margin-bottom: 8px; }
.method p { color: var(--muted); font-size: 15px; }
.method dl { margin: 16px 0 0; font-size: 14px; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.method dt { color: var(--muted); }
.method dd { margin: 0; font-weight: 500; }
.center-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.center-grid div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14.5px; }
.center-grid b { display: block; }
.center-grid span { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.contact-card { padding: 32px; background: var(--forest); color: #fff; border-radius: var(--radius); }
.contact-head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.contact-photo { flex: none; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
.contact-head .avatar { background: rgba(255, 255, 255, .08); font-size: 38px; }
.contact-card h2 { margin: 6px 0 6px; }
.contact-status { color: rgba(255, 255, 255, .72); font-size: 15px; }
.contact-phone { display: block; font-size: 26px; font-weight: 600; }
.contact-write { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact-write b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.contact-note { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.contact-form { padding: 28px; background: var(--cream); border-radius: var(--radius); }
.contact-form h2 { font-size: 26px; color: var(--forest); }
.contact-form-text { margin-top: -4px; font-size: 15px; color: var(--muted); }
.contact-form label:not(.radio) { gap: 8px; font-size: 16px; font-weight: 600; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--placeholder); }
.contact-form .btn { min-height: 54px; font-size: 16.5px; }
.contact-form-note { margin-top: -2px; font-size: 13px; color: var(--muted); }
.quality-hero { background: var(--forest); color: #fff; padding-block: 24px 48px; }
.quality-hero .crumbs { color: rgba(255, 255, 255, .6); }
.quality-hero p { font-size: 19px; max-width: 720px; color: rgba(255, 255, 255, .78); margin: 12px 0 32px; }
.quality-hero .stats span { font-size: 15px; color: rgba(255, 255, 255, .78); margin: 0; }
.quality-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.check-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; }
.check-list .glyph { flex: none; margin-top: 3px; color: var(--moss); }
.article { max-width: 820px; }
.article-photo { margin-block: 20px; }
.article-photo img { width: 100%; border-radius: var(--radius); }

/* Формы, корзина, уведомления, нижнее меню */
.form { display: grid; gap: 14px; }
.form label:not(.radio) { display: grid; gap: 5px; font-size: 14px; font-weight: 500; }
.form input:not([type=radio]), .form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-size: 16px; font-weight: 400;
}
.form input:focus, .form textarea:focus { border-color: var(--forest); outline: 0; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.form legend { font-size: 14px; font-weight: 500; margin-bottom: 5px; padding: 0; }
.radio {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 14.5px;
}
.radio input { margin: 4px 0 0; accent-color: var(--forest); }
.radio small { display: block; color: var(--muted); }
.form-error { color: var(--clay); font-size: 14.5px; }
.form-ok { color: var(--moss); font-size: 14.5px; }
.drawer-layer { position: fixed; inset: 0; z-index: 60; }
.drawer-shade { position: absolute; inset: 0; background: rgba(15, 30, 24, .45); animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%); display: flex;
  flex-direction: column; background: var(--paper); animation: slide .22s ease-out;
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 24px 20px; }
.form.drawer-body { padding-top: 18px; align-content: start; }
.drawer-empty, .drawer-done {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 14px;
}
.done-mark { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sun); }
.drawer-foot { padding: 16px 24px 20px; border-top: 1px solid var(--line); background: var(--cream); display: grid; gap: 10px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total .price-lg { font-size: 26px; }
.total-saving { margin-top: 2px; text-align: right; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.or { text-align: center; font-size: 13.5px; color: var(--muted); }
.messengers { display: flex; flex-wrap: wrap; gap: 8px; }
.messengers .btn { flex: 1; padding-inline: 12px; }
.messengers .btn-sun { transition: filter .18s, transform .18s; }
.messengers .btn-sun:hover { background: var(--sun); filter: brightness(.9); }
.line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-photo { width: 72px; height: 72px; flex: none; padding: 5px; }
.line-photo img { width: 100%; height: 100%; object-fit: contain; }
.line-main { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.3; font-weight: 500; }
.line-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 70; padding: 12px 20px;
  background: var(--ink); color: #fff; border-radius: 999px; font-size: 14.5px; max-width: calc(100% - 32px);
}
.bottom-nav { display: none; }
.form select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 16px; font-weight: 400; }
.field-error { color: var(--clay); font-weight: 400; }
.form input[aria-invalid="true"] { border-color: var(--clay); }
.toast-added { display: flex; align-items: center; gap: 14px; padding-right: 8px; white-space: nowrap; }
.toast-added button { padding: 6px 14px; background: var(--sun); color: var(--sun-ink); border-radius: 999px; font-weight: 600; font-size: 14px; }

/* Планшет и узкий ноутбук */
@media (max-width: 1180px) {
  .wrap { padding-inline: 24px; }

  .header-nav a:not(.nav-accent) { display: none; }

  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-need-list { grid-template-columns: repeat(3, 1fr); }
  .mega-needs { grid-column: 1 / -1; }

  .hero-grid { grid-template-columns: 1.5fr .8fr; }
  .sun { width: 220px; height: 220px; }
  .bottle-front { width: 120px; height: 150px; }
  .bottle-left { left: 2%; }
  .bottle-right { right: 2%; }
  .bottle-left, .bottle-right { width: 84px; height: 108px; }

  .need small { display: none; }

  .rail > * { flex-basis: calc((100% - 3 * 16px) / 4); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }

  .program-grid { grid-template-columns: repeat(3, 1fr); }

  .steps-4 { grid-template-columns: repeat(2, 1fr); }

  .consultant { grid-template-columns: auto 1fr; }
  .consultant-actions { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr) 2fr; }
  .consultant-actions .btn-ink { grid-column: auto; }

  .center-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Планшет */
@media (max-width: 900px) {
  .needs { grid-template-columns: repeat(4, 1fr); }
}

/* Телефон */
@media (max-width: 760px) {
  body { padding-bottom: 66px; font-size: 15.5px; }
  .wrap { padding-inline: 16px; }
  .hide-sm { display: none; }

  .topline-row { font-size: 12px; min-height: 34px; }
  .topline-icons { gap: 12px; }
  .header-row { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding-block: 8px 10px; position: relative; padding-top: 6px; }
  .logo img { height: 34px; }
  .header-search { order: 5; flex: 0 0 100%; }
  .cart-btn { display: none; }
  .header-nav, .catalog-btn { display: none; }
  .icon-link { position: absolute; right: 12px; top: 2px; width: 44px; height: 44px; }
  .header-row.hero-visible .header-search { display: none; }

  .mega { display: none; }

  .searchbox { min-height: 44px; }
  .searchbox-lg { padding: 5px 5px 5px 16px; min-height: 54px; }
  .searchbox-lg input { font-size: 16px; }
  .searchbox-lg .btn { min-height: 44px; padding-inline: 16px; }
  .suggest { max-height: 58vh; }
  .searchbox-lg > .glyph { display: none; }

  .hero-grid { display: block; }
  .hero-copy { padding-block: 16px; }
  .hero h1 { font-size: 30px; margin-top: 6px; }
  .hero-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .hero-art { display: none; }
  .hero-chips > * { flex: none; }
  .hero-copy .eyebrow, .hero-lead { display: none; }

  .section { padding-top: 34px; }
  .section-cream, .section-forest { padding-block: 32px; margin-top: 34px; }
  .section-head { margin-bottom: 18px; }
  .section-head .text-link { font-size: 14px; }

  .needs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .need { min-height: 80px; padding: 9px 10px; }
  .need b { font-size: 13.5px; }
  .need-icon { margin-bottom: 3px; }
  .section-needs .section-head { margin-bottom: 8px; }
  .section-needs h2 { font-size: 21px; }
  .section-needs .text-link { display: none; }
  .need-icon svg { width: 22px; height: 22px; }

  .last-order { margin-top: 12px; padding: 10px 12px; gap: 10px; }

  .rail { margin-inline: -16px; padding-inline: 16px; scroll-padding-left: 16px; gap: 12px; }
  .rail > * { flex-basis: 62%; }
  .rail-btn { display: none; }
  .round-add { width: 38px; height: 38px; }
  .product-grid, .product-grid-3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-foot .price { font-size: 15.5px; }

  .quiz-band { flex-direction: column; align-items: stretch; border-radius: 22px; gap: 18px; margin-top: 32px; padding: 22px 20px; }
  .quiz-band p { display: none; }

  .program-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile-body { padding: 12px 12px 14px; }
  .tile-body .eyebrow { display: none; }
  .tile-body h3 { font-size: 15.5px; }
  .tile-meta { font-size: 13px; }

  .stats { grid-template-columns: 1fr; gap: 14px; }
  .stats div { display: flex; align-items: baseline; gap: 12px; padding-top: 6px; }
  .stats b { flex: 0 0 auto; font-size: 28px; min-width: 88px; }
  .cert-row, .section-forest .note-light { display: none; }

  .docs-band { grid-template-columns: minmax(0, 1fr); margin-top: 34px; padding: 22px 20px; border-radius: 22px; }
  .docs-fan { display: none; }

  .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 12px 14px; }
  .steps span { grid-row: span 2; margin: 0; }
  .steps p { font-size: 14px; }
  .steps, .steps-4 { grid-template-columns: 1fr; gap: 10px; }

  .consultant { grid-template-columns: 1fr; text-align: left; gap: 16px; }
  .avatar { width: 72px; height: 72px; font-size: 28px; }
  .consultant-actions { grid-template-columns: repeat(3, 1fr); }
  .consultant-actions .btn-ink { grid-column: 1 / -1; }
  .consultant-actions .btn { padding-inline: 6px; font-size: 14px; }

  .post-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .post-card h3 { font-size: 15px; }

  .footer { margin-top: 48px; padding-block: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-brand { grid-column: 1 / -1; }

  .product-layout, .program-hero-grid, .program-layout, .quality-cols, .contact-grid {
    grid-template-columns: minmax(0, 1fr); gap: 22px;
  }
  .gallery, .kit-summary, .sidebar { position: static; }

  .catalog-layout { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
  .sidebar { display: none; }
  .toolbar { flex-direction: column; gap: 10px; }
  .sort select { max-width: 150px; }
  .mobile-picker { display: grid; gap: 10px; margin-top: 12px; }
  .mobile-picker .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .mobile-picker .chips > * { flex: none; }
  .mobile-picker select {
    width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--paper); font-size: 16px;
  }
  .toolbar .chips { scrollbar-width: none; flex-wrap: wrap; width: auto; margin: 0; padding: 0; overflow: visible; }
  .toolbar .chips > * { flex: none; }
  .filters-btn { display: inline-flex; }
  .filters { display: none; }
  .chips-sep { flex-basis: 100%; width: 0; height: 0; margin: 0; }
  .filters.open { display: block; margin-bottom: 14px; }

  .gallery-main { padding: 16px; border-radius: 18px; }
  .buy-box { padding: 18px; }
  .together { padding: 18px; margin-top: 32px; }
  .together-list { grid-template-columns: repeat(4, 62%); overflow-x: auto; scrollbar-width: none; }
  .together-foot { flex-direction: column; align-items: stretch; }
  .sticky-buy {
    display: flex; position: fixed; left: 0; right: 0; bottom: 62px; z-index: 25; justify-content: space-between;
    align-items: center; gap: 12px; padding: 9px 16px; background: var(--paper);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(23, 53, 42, .6);
  }
  .sticky-buy > div { min-width: 0; line-height: 1.25; }
  .sticky-buy b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .quick-facts button { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tabs { scroll-margin-top: 110px; }
  .tab-list { margin-inline: -16px; padding-inline: 16px; }

  .kit-row { gap: 10px; }
  .kit-photo { width: 48px; height: 48px; }
  .kit-name { font-size: 14px; }
  .kit-summary { display: none; }
  .kit-row .price { font-size: 14.5px; }

  .quiz-option { padding: 14px; min-height: 92px; }
  .quiz-option b { font-size: 16px; }
  .quiz-add { flex-direction: column; align-items: stretch; }
  .quiz-options, .quiz-options-1, .quiz-options-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quiz-why { grid-template-columns: minmax(0, 1fr); }

  .method-grid { grid-template-columns: 1fr; }
  .center-grid { grid-template-columns: 1fr 1fr; }
  .contact-phone { font-size: 23px; }
  .contact-card, .contact-form { padding: 22px; }
  .contact-head { gap: 16px; }
  .contact-photo { width: 80px; height: 80px; }
  .contact-head .avatar { font-size: 30px; }

  .toast { bottom: 134px; text-align: center; border-radius: 16px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 26; height: 62px; background: var(--paper); border-top: 1px solid var(--line);
  }
  .bottom-nav a, .bottom-nav button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: 11px; color: var(--muted);
  }
  .bottom-nav .on { color: var(--forest); font-weight: 600; }
  .bottom-nav b { top: 5px; right: calc(50% - 22px); min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; }
  .toast-added { bottom: 72px; width: calc(100% - 24px); justify-content: space-between; border-radius: 14px; text-align: left; white-space: normal; }
  body:has(.sticky-buy) .toast, body:has(.sticky-buy) .toast-added { bottom: 134px; }
}

/* Узкие телефоны, 320–380 px: без прокрутки вбок */
@media (max-width: 380px) {
  .searchbox-lg .btn { padding-inline: 12px; }

  .need b { font-size: 12.5px; overflow-wrap: anywhere; }

  .card-foot { flex-wrap: wrap; row-gap: 6px; }
  .card-foot .price { font-size: 14.5px; }

  .sort select { max-width: none; width: 100%; }
  .toolbar-top { flex-wrap: wrap; }
  .found { flex-basis: 100%; }
  .sort { flex: 1; min-width: 0; }

  .method dl { grid-template-columns: minmax(0, 1fr); }
  .center-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-phone { font-size: 20px; }

  .messengers .btn { flex-basis: 100%; }
}

/* Без анимации, если она отключена в системе */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
