/* Aura — светлый минимализм в духе healf.com: белый фон, чёрный текст,
   скругления-пилюли, тонкие линии, чистые карточки товаров. */

/* Фирменные шрифты (самостоятельный хостинг, переменные woff2):
   Unbounded — футуристичные заголовки/логотип; Manrope — текст. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/static/fonts/manrope-lat-bcbadc.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/static/fonts/manrope-cyr-d0354d.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/static/fonts/unbounded-lat-f2b2b2.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/static/fonts/unbounded-cyr-92a538.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  /* Нейтральная палитра (стиль Thorne): бело-чёрный интерфейс, цвет — только на фото */
  --bg: #ffffff;              /* белый фон */
  --card: #ffffff;            /* карточки — белые, отделяются рамкой */
  --ink: #171717;             /* почти чёрный текст */
  --muted: #8a8a8a;           /* нейтральный серый */
  --line: #ececec;            /* светлые линии/рамки */
  --soft: #f4f4f4;            /* нейтральные подложки/плитки */
  --brand: #171717;
  --brand-dark: #171717;      /* промо-полоса, кнопка чата — чёрные */
  --accent: #c0705b;          /* единственный акцент (пудрово-роза), очень дозированно */
  --rose: #e2a091;
  --champagne: #9a9a9a;       /* нейтральный серый вместо шампани */
  --green: #3f7d5f;
  --orange: #b9762a;
  --red: #b3402f;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,0.05);
  --on-ink: #ffffff;          /* текст на чёрном */
  --hover-soft: #efefef;      /* ховеры подложек */
  --glass: rgba(255,255,255,.8);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Дисплейный шрифт для заголовков и логотипа */
.logobar .logo, .hero h1, header.top h1, .card h2 {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  letter-spacing: -0.5px;
}
.logobar .logo { font-weight: 700; }
.hero h1 { font-weight: 700 !important; }
.card h2 { font-weight: 600; font-size: 18px; }

/* Бегущая строка с офферами (как у healf: чёрная полоса сверху) */
.ticker {
  background: var(--brand-dark); color: #fff; font-size: 12.5px; letter-spacing: 0.2px;
  overflow: hidden; white-space: nowrap; padding: 8px 0;
}
.ticker .track { display: inline-block; padding-left: 100%; animation: ticker 22s linear infinite; }
.ticker span { margin: 0 22px; opacity: .92; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* Логотип-бар */
.logobar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px 6px;
}
.logobar .logo {
  font-size: 30px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink);
  text-decoration: none;
}
.logobar .logo::after { content: "."; color: var(--accent); }
.logobar .icons { display: flex; gap: 14px; font-size: 20px; }
.logobar .icons a { text-decoration: none; color: var(--ink); }

/* Шапка страницы (заголовок раздела) */
header.top { background: var(--bg); color: var(--ink); padding: 6px 20px 4px; }
header.top .wrap { max-width: var(--maxw); margin: 0 auto; }
header.top h1 { margin: 8px 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -0.3px; }
header.top p { margin: 0 0 4px; color: var(--muted); font-size: 14px; max-width: 640px; }

nav.tabs {
  max-width: var(--maxw); margin: 10px auto 0; display: flex; gap: 8px;
  overflow-x: auto; padding-bottom: 10px; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs a {
  text-decoration: none; color: var(--ink); background: transparent;
  padding: 8px 12px; border-radius: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; border: none; position: relative; opacity: .78; transition: opacity .15s;
}
nav.tabs a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
nav.tabs a:hover { background: transparent; opacity: 1; }
nav.tabs a:hover::after, nav.tabs a.active::after { transform: scaleX(1); }
nav.tabs a.active { background: transparent; color: var(--ink); font-weight: 600; opacity: 1; }

main { max-width: var(--maxw); margin: 0 auto; padding: 22px 20px 90px; }

.card {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 18px;
}
.card h2 { margin: 0 0 14px; font-size: 19px; font-weight: 700; letter-spacing: -0.2px; }
.card h3 { font-size: 15px; margin: 16px 0 6px; }

/* Поиск (скруглённая пилюля, как у healf) */
.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-row input[type="search"], input#q {
  flex: 1; min-width: 200px; padding: 13px 18px; font-size: 15px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink);
}
.ai-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap;
}
.ai-pill:hover { border-color: var(--ink); }

.drop {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 40px 16px; text-align: center; color: var(--muted); cursor: pointer;
  background: var(--soft); transition: border-color .15s, background .15s;
}
.drop.drag { border-color: var(--ink); background: var(--hover-soft); }
.drop strong { color: var(--ink); }

.preview { max-width: 190px; border-radius: 12px; margin-top: 14px; }

.quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.quiz label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 5px; letter-spacing: 0.4px; text-transform: uppercase; }
.quiz input, .quiz select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 14.5px; background: var(--card); color: var(--ink);
}
.quiz input:focus, .quiz select:focus { outline: none; border-color: var(--ink); }
.quiz .full { grid-column: 1 / -1; }

button.primary {
  background: var(--ink); color: var(--on-ink); border: none; border-radius: 999px;
  padding: 14px 24px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 16px;
  letter-spacing: 0.2px; transition: opacity .15s;
}
button.primary:hover { opacity: .85; }
button.primary:disabled { opacity: .35; cursor: default; }
button.ghost {
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 11px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; margin: 8px 8px 0 0; transition: border-color .15s;
}
button.ghost:hover { border-color: var(--ink); }

.skin-type, .badge {
  display: inline-block; background: var(--soft); color: var(--ink);
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; margin-bottom: 12px;
}
.summary { color: var(--muted); line-height: 1.6; }

.concern { margin: 12px 0; }
.concern .row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.concern .score { font-weight: 600; }
.bar { height: 7px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; }

.steps { list-style: none; padding: 0; margin: 6px 0; }
.steps li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.steps .cat { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.4px; }
.steps .why { color: var(--muted); font-size: 13px; }

.disclaimer { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line);
  margin-top: 18px; padding-top: 14px; }

.hidden { display: none; }
.spinner { text-align: center; color: var(--muted); padding: 22px; }

.trend { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.trend .name { flex: 1; }
.pill { font-size: 12px; padding: 4px 11px; border-radius: 999px; font-weight: 600; }
.pill.up { background: #e4efe9; color: var(--green); }
.pill.down { background: #f6e4df; color: var(--red); }
.pill.flat { background: var(--soft); color: var(--muted); }
.pill.new { background: #eef1ee; color: var(--ink); }

.mode-badge { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Сетка товаров: чистые карточки как у healf */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  position: relative; transition: box-shadow .15s;
}
.pcard:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.pcard .ptile {
  background: var(--soft); border-radius: 12px; height: 150px;
  display: flex; align-items: center; justify-content: center; font-size: 52px;
  margin-bottom: 10px; position: relative;
}
.pcard .badge-free {
  position: absolute; top: 10px; left: 10px; background: var(--glass); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px; font-size: 11.5px; font-weight: 600;
}
.pcard .badge-disc {
  position: absolute; top: 10px; right: 10px; background: #e5484d; color: #fff;
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700;
}
.pcard .badge-hit {
  position: absolute; top: 10px; right: 10px; background: var(--accent); color: #fff;
  border-radius: 999px; padding: 4px 11px; font-size: 11.5px; font-weight: 700;
}
.pcard .old-price {
  color: var(--muted); font-weight: 500; font-size: 13.5px; text-decoration: line-through;
  margin-left: 8px;
}
.pcard .addbtn {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 20px;
  cursor: pointer; line-height: 1; transition: background .15s;
}
.pcard .addbtn:hover { background: var(--ink); color: var(--on-ink); }
.pcard .cat { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; }
.pcard h3 { margin: 4px 0 2px; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.pcard .price { font-size: 16.5px; font-weight: 700; margin: 6px 0 2px; }
.pcard .stars { font-size: 12.5px; color: var(--champagne); letter-spacing: 1px; }
.pcard .stars .cnt { color: var(--muted); letter-spacing: 0; margin-left: 4px; }

/* Чат ассистента */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px; }
.msg { padding: 12px 15px; border-radius: 16px; max-width: 82%; line-height: 1.5; font-size: 14.5px; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--on-ink); }
.msg.bot { align-self: flex-start; background: var(--soft); color: var(--ink); }
.chat-input { display: flex; gap: 8px; margin-top: 12px; }
.chat-input input { flex: 1; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14.5px; }
.chat-input input:focus { outline: none; border-color: var(--ink); }

/* Плавающая кнопка ассистента (как чат-кнопка healf) */
.fab {
  position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px;
  border-radius: 50%; background: var(--brand-dark); color: #fff; font-size: 24px;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25); z-index: 50;
}

@media (max-width: 640px) {
  .quiz { grid-template-columns: 1fr; }
  header.top h1 { font-size: 21px; }
  .logobar .logo { font-size: 26px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .pcard .ptile { height: 110px; font-size: 40px; }
}

/* Категории магазина — горизонтальная лента (как фильтры healf) */
#cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
#cats::-webkit-scrollbar { display: none; }
#cats button { white-space: nowrap; margin: 0; flex: 0 0 auto; }

/* ===== Aura Futurism: премиум-слой с анимациями (2026) ===== */

/* Аврора-фон героя: дрейфующие цветовые пятна под блюром */
.aurora { position: relative; overflow: hidden; }
.aurora .orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  pointer-events: none; will-change: transform;
  animation: orbFloat 18s ease-in-out infinite;
}
.aurora .orb.o1 { width: 420px; height: 420px; left: -120px; top: -140px;
  background: radial-gradient(circle, #f0cdbf 0%, transparent 70%); }
.aurora .orb.o2 { width: 380px; height: 380px; right: -110px; top: -60px;
  background: radial-gradient(circle, #ead9b8 0%, transparent 70%); animation-delay: -6s; }
.aurora .orb.o3 { width: 300px; height: 300px; left: 38%; bottom: -160px;
  background: radial-gradient(circle, #e6d3ae 0%, transparent 70%); animation-delay: -12s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 26px) scale(1.08); }
  66% { transform: translate(-28px, -18px) scale(0.95); }
}
.aurora > * { position: relative; z-index: 1; }

/* Живой градиент в заголовке */
.grad-text {
  background: linear-gradient(90deg, #c0705b, #b49a6a, #d8a08e, #c0705b);
  background-size: 280% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradSlide 7s ease-in-out infinite;
}
@keyframes gradSlide { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Появление при скролле (класс ставит JS — без JS всё видно сразу) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Карточки: парение и мягкое свечение */
.pcard, .card {
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.pcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(16,16,16,.10), 0 2px 8px rgba(192,112,91,.10);
  border-color: #dcdcd8;
}
.pcard .ptile { overflow: hidden; }
.pcard .ptile { transition: background .3s ease; }
.pcard:hover .ptile { background: var(--hover-soft); }

/* Кнопки: блик-пробег и подъём */
button.primary, .cta button {
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
button.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,16,16,.18); }
button.primary::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transition: left .5s ease;
}
button.primary:hover::after { left: 130%; }
button.ghost { transition: transform .18s ease, background .18s ease, color .18s ease; }
button.ghost:hover { transform: translateY(-1px); }

/* Стеклянная плавающая кнопка ассистента + пульс */
.fab {
  backdrop-filter: blur(8px);
  animation: fabPulse 3.4s ease-in-out infinite;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(16,16,16,.24); }
  50% { box-shadow: 0 6px 30px rgba(192,112,91,.45); }
}

/* Стеклянные бейджи на плитках товаров */
.pcard .badge-free { background: var(--glass); backdrop-filter: blur(6px); }

/* Плавный скролл и аккуратный фокус */
html { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Уважение к отключённой анимации */
@media (prefers-reduced-motion: reduce) {
  .aurora .orb, .grad-text, .fab, .ticker .track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pcard, .card, button.primary, button.ghost { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Полоса фактов с анимированными цифрами */
.stats {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin: 4px 0 18px;
}
.stat {
  flex: 1; min-width: 150px; text-align: center; padding: 18px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat b {
  display: block; font-family: 'Unbounded', sans-serif; font-weight: 700;
  font-size: 26px; letter-spacing: -0.5px; margin-bottom: 4px;
}
.stat span { color: var(--muted); font-size: 12.5px; }

/* Шиммер-скелетоны при загрузке каталога */
.skel {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  background: var(--card);
}
.skel .ph {
  border-radius: 10px; background: linear-gradient(90deg, var(--soft) 25%, var(--hover-soft) 37%, var(--soft) 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease-in-out infinite;
}
.skel .ph.tile { height: 150px; margin-bottom: 12px; }
.skel .ph.line { height: 13px; margin: 8px 0; }
.skel .ph.line.short { width: 55%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skel .ph { animation: none; } }

/* ===== Тёмная тема (переключатель 🌙 в шапке) ===== */
:root[data-theme="dark"] {
  --bg: #0e0e0e;              /* нейтральный тёмный */
  --brand: #f2f2f2;
  --brand-dark: #000000;
  --card: #161616;
  --ink: #f2f2f2;
  --muted: #9a9a9a;
  --line: #262626;
  --soft: #1c1c1c;
  --hover-soft: #222222;
  --on-ink: #0e0e0e;
  --glass: rgba(22,22,22,.75);
  --shadow: 0 1px 3px rgba(0,0,0,.5);
}
:root[data-theme="dark"] .aurora .orb { opacity: .28; }
:root[data-theme="dark"] .ticker { background: #000; }
:root[data-theme="dark"] .pcard:hover {
  box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 2px 8px rgba(192,112,91,.20);
}
:root[data-theme="dark"] button.primary:hover { box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.theme-toggle { cursor: pointer; user-select: none; }
html { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* Плавная смена темы */
body, .card, .pcard, .stat, nav.tabs a, button.ghost, .ai-pill, .skel {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}

/* ===== Ещё больше анимаций ===== */
/* Вход героя каскадом при загрузке */
.hero h1 { animation: riseIn .7s cubic-bezier(.2,.8,.2,1) both; }
.hero .lead { animation: riseIn .7s .12s cubic-bezier(.2,.8,.2,1) both; }
.hero .cta { animation: riseIn .7s .24s cubic-bezier(.2,.8,.2,1) both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } }

/* Эмодзи-иконки на карточках мягко «дышат» */
.fcard .emoji { display: inline-block; animation: bob 4.5s ease-in-out infinite; }
.fcard:nth-child(2n) .emoji { animation-delay: -1.6s; }
.fcard:nth-child(3n) .emoji { animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Нажатие кнопок — тактильный отклик */
button.primary:active, button.ghost:active, .addbtn:active { transform: scale(.96) !important; }

/* Бегущая строка замирает под курсором (можно дочитать оффер) */
.ticker:hover .track { animation-play-state: paused; }

/* Свечение AI-пилюли и активной категории */
.ai-pill { transition: box-shadow .25s ease, border-color .25s ease; }
.ai-pill:hover { box-shadow: 0 0 0 4px rgba(192,112,91,.16); }

/* Появление плавающей кнопки ассистента */
.fab { animation: fabIn .5s .4s cubic-bezier(.2,.8,.2,1) both, fabPulse 3.4s 1.2s ease-in-out infinite; }
@keyframes fabIn { from { opacity: 0; transform: translateY(20px) scale(.8); } }

/* Плитка товара: лёгкий зум содержимого при ховере */
.pcard .ptile { transition: background .3s ease, transform .3s ease; }
.pcard:hover .ptile { transform: scale(1.02); }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lead, .hero .cta, .fcard .emoji, .fab { animation: none !important; }
  .pcard:hover .ptile { transform: none; }
  body, .card, .pcard, .stat, nav.tabs a, button.ghost, .ai-pill, .skel { transition: none; }
}

/* Пульс фирменной точки логотипа */
.logobar .logo { position: relative; }
.logobar .logo::after { display: inline-block; animation: dotPulse 2.6s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.25); } }

/* Счётчики фактов приподнимаются под курсором */
.stat { transition: transform .25s ease, box-shadow .25s ease; }
.stat:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(16,16,16,.10); }
:root[data-theme="dark"] .stat:hover { box-shadow: 0 10px 26px rgba(0,0,0,.5); }

/* Успешное добавление в корзину: кнопка «+» превращается в ✓ */
.addbtn.added { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }

@media (prefers-reduced-motion: reduce) {
  .logobar .logo::after { animation: none; }
  .stat { transition: none; }
}


/* Фото товара в плитке */
.pcard .ptile.has-img { background: #fff; }
.pcard .pimg {
  width: 100%; height: 100%; object-fit: contain; border-radius: 12px;
  display: block;
}
.pcard:hover .ptile.has-img { background: #fff; }
:root[data-theme="dark"] .pcard .ptile.has-img { background: #f4f4f2; }


/* 3D-стикеры (Fluent 3D) вместо эмодзи */
.fcard .icon3d { width: 52px; height: 52px; display: inline-block;
  animation: bob 4.5s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(58,51,43,.18)); }
.fcard:nth-child(2n) .icon3d { animation-delay: -1.6s; }
.fcard:nth-child(3n) .icon3d { animation-delay: -3s; }
.pcard .ptile .sticker { filter: drop-shadow(0 8px 14px rgba(58,51,43,.22)); }
nav .sticker, #cats .sticker { vertical-align: -4px; margin-right: 2px; }
@media (prefers-reduced-motion: reduce) { .fcard .icon3d { animation: none; } }

/* Правка граммов в трекере еды */
.gram-input {
  width: 62px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13.5px; background: var(--card); color: var(--ink); text-align: right;
}
.gram-input:focus { outline: none; border-color: var(--accent); }


/* ============================================================
   ГЛАВНАЯ — editorial full-width (в духе Zara / Золотое яблоко / Lime)
   Полноширинные секции, крупная типографика, воздух, минимализм.
   Всё скоплено под body.home — внутренние страницы не затрагиваются.
   ============================================================ */

/* Заставка-открытие: показывается один раз за сессию, затем «поднимается» */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(120% 120% at 50% 20%, #2b251f 0%, #17130f 70%);
  color: #f3ece1; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  transition: transform 1s cubic-bezier(.76,0,.24,1), opacity .7s ease .2s;
}
.splash.lift { transform: translateY(-101%); opacity: 0; pointer-events: none; }
.splash::before {   /* тёплый дрейфующий блик */
  content: ""; position: absolute; width: 640px; height: 640px; left: 50%; top: 42%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(192,112,91,.35), transparent 60%);
  filter: blur(30px); animation: splashGlow 6s ease-in-out infinite;
}
@keyframes splashGlow { 0%,100% { opacity: .55; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: .9; transform: translate(-50%,-52%) scale(1.12); } }
.splash-inner { position: relative; z-index: 1; padding: 0 24px; }
.splash-word {
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  font-size: clamp(58px, 15vw, 190px); line-height: .95; letter-spacing: .04em;
  display: inline-flex; gap: .015em;
}
.splash-word span {
  display: inline-block; opacity: 0; transform: translateY(46px);
  animation: splashRise .85s cubic-bezier(.2,.8,.2,1) forwards;
}
.splash-word span:nth-child(1) { animation-delay: .15s; }
.splash-word span:nth-child(2) { animation-delay: .28s; }
.splash-word span:nth-child(3) { animation-delay: .41s; }
.splash-word span:nth-child(4) { animation-delay: .54s; }
.splash-word .dot { color: var(--accent); }
@keyframes splashRise { to { opacity: 1; transform: none; } }
.splash-line {
  height: 1px; width: 0; margin: 26px auto 20px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
  animation: splashLine 1s .85s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes splashLine { to { width: min(320px, 62vw); } }
.splash-tag {
  font-size: clamp(12px, 2.6vw, 16px); letter-spacing: .42em; text-transform: uppercase;
  color: #cabfae; opacity: 0; animation: splashFade .9s 1.15s ease forwards;
}
@keyframes splashFade { to { opacity: .95; } }
.splash-skip {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #8c8272;
  opacity: 0; animation: splashFade .8s 1.8s ease forwards; cursor: pointer;
}

/* Пока заставка активна — не даём прокручивать сайт под ней */
body.splash-on { overflow: hidden; }

/* --- Навигация главной: тонкая, «фэшн», без пилюль --- */
body.home nav.tabs {
  max-width: none; justify-content: center; gap: 4px; border-bottom: 1px solid var(--line);
  margin: 8px 0 0; padding: 4px clamp(16px, 5vw, 60px) 12px;
}
body.home nav.tabs a {
  background: transparent; border: none; border-radius: 0; padding: 8px 14px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  position: relative; opacity: .82;
}
body.home nav.tabs a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
body.home nav.tabs a:hover { background: transparent; opacity: 1; }
body.home nav.tabs a:hover::after,
body.home nav.tabs a.active::after { transform: scaleX(1); }
body.home nav.tabs a.active { background: transparent; color: var(--ink); font-weight: 600; opacity: 1; }

/* --- HERO: полноэкранный, во всю ширину --- */
.hero-e {
  min-height: 88vh; display: flex; flex-direction: column; justify-content: center;
  padding: 10vh clamp(22px, 7vw, 100px) 12vh; position: relative; overflow: hidden;
  background:
    radial-gradient(90% 80% at 78% 12%, rgba(226,160,145,.45), transparent 60%),
    radial-gradient(70% 70% at 10% 90%, rgba(180,154,106,.38), transparent 60%),
    linear-gradient(160deg, #f7efe4 0%, #f3e7db 45%, #efe0d2 100%);
}
:root[data-theme="dark"] .hero-e {
  background:
    radial-gradient(90% 80% at 78% 12%, rgba(192,112,91,.32), transparent 60%),
    radial-gradient(70% 70% at 10% 90%, rgba(180,154,106,.20), transparent 60%),
    linear-gradient(160deg, #221c16 0%, #1b1611 60%, #17130f 100%);
}
.hero-e .eyebrow {
  font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 22px; animation: riseIn .8s .1s both;
}
.hero-e h1 {
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  font-size: clamp(38px, 7vw, 104px); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 26px; max-width: 16ch; animation: riseIn .9s .2s both;
}
.hero-e .lead {
  font-size: clamp(16px, 2.1vw, 21px); color: var(--ink); opacity: .74; line-height: 1.6;
  max-width: 46ch; margin: 0 0 38px; animation: riseIn .9s .32s both;
}
.hero-e .cta { display: flex; gap: 14px; flex-wrap: wrap; animation: riseIn .9s .44s both; }
.btn-fill, .btn-line {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 16px 34px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; border-radius: 999px; transition: all .25s ease;
}
.btn-fill { background: var(--ink); color: var(--on-ink); border: 1.5px solid var(--ink); }
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(58,51,43,.24); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-ink); transform: translateY(-2px); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: var(--muted); text-decoration: none; font-size: 22px; animation: cueBob 2.2s ease-in-out infinite;
}
@keyframes cueBob { 0%,100% { transform: translate(-50%,0); opacity: .6; } 50% { transform: translate(-50%,8px); opacity: 1; } }

/* --- Editorial split-блоки: во всю ширину, крупные --- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; }
.split .media {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  padding: clamp(24px, 4vw, 54px); min-height: 340px;
}
.split .media .idx {
  font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: clamp(90px, 16vw, 240px);
  line-height: .8; color: rgba(255,255,255,.28); letter-spacing: -.04em;
  position: absolute; top: clamp(10px, 3vw, 40px); right: clamp(14px, 3vw, 44px); z-index: 0;
}
.split .media .kw {
  position: relative; z-index: 1; font-family: 'Unbounded', sans-serif; font-weight: 600;
  font-size: clamp(22px, 3.4vw, 40px); color: #fff; letter-spacing: -.01em; line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,.18);
}
.split .media img.shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.split .media.p1 { background: linear-gradient(150deg, #c88a76, #a5624f); }
.split .media.p2 { background: linear-gradient(150deg, #cdb488, #a98a58); }
.split .media.p3 { background: linear-gradient(150deg, #b98d7f, #8f5f52); }
.split .media.p4 { background: linear-gradient(150deg, #a99a86, #7d6c58); }
.split .body {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(32px, 6vw, 96px);
}
.split.reverse .media { order: 2; }
.split .body .tag {
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 18px; font-weight: 600;
}
.split .body h2 {
  font-family: 'Unbounded', sans-serif; font-weight: 600;
  font-size: clamp(26px, 4vw, 52px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 20px;
}
.split .body p {
  font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); line-height: 1.7; margin: 0 0 30px; max-width: 44ch;
}
.split .body a.more {
  align-self: flex-start; text-decoration: none; color: var(--ink); font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1.5px solid var(--ink); padding-bottom: 5px; transition: gap .2s ease, opacity .2s;
}
.split .body a.more:hover { opacity: .6; }

/* --- Избранное: минималистичная лента товаров (borderless, как у Zara) --- */
.featured { padding: clamp(60px, 9vw, 130px) clamp(20px, 5vw, 70px); }
.featured .head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; margin-bottom: 40px;
}
.featured .head h2 {
  font-family: 'Unbounded', sans-serif; font-weight: 600;
  font-size: clamp(24px, 3.6vw, 46px); letter-spacing: -.02em; margin: 0;
}
.featured .head a {
  text-decoration: none; color: var(--ink); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600; border-bottom: 1.5px solid var(--ink); padding-bottom: 4px;
}
.prow { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 30px); }
.pmin { text-decoration: none; color: inherit; display: block; }
.pmin .shotwrap {
  position: relative; aspect-ratio: 3/4; background: #fff; border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
:root[data-theme="dark"] .pmin .shotwrap { background: #f4f0ea; }
.pmin .shotwrap img { width: 82%; height: 82%; object-fit: contain; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.pmin:hover .shotwrap img { transform: scale(1.06); }
.pmin .shotwrap .tag2 {
  position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
}
.pmin .shotwrap .tag2.sale { background: var(--accent); }
.pmin .brand2 { margin: 14px 0 2px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pmin .name2 { font-size: 14px; line-height: 1.35; margin: 0 0 6px; min-height: 2.6em; }
.pmin .price2 { font-size: 15px; font-weight: 700; }
.pmin .price2 .old2 { color: var(--muted); font-weight: 500; text-decoration: line-through; margin-left: 8px; font-size: 13px; }

/* --- CTA-полоса перед футером --- */
.cta-strip {
  text-align: center; padding: clamp(64px, 10vw, 140px) clamp(22px, 6vw, 80px);
  background: var(--brand-dark); color: #f3ece1;
}
.cta-strip h2 {
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  font-size: clamp(28px, 5vw, 68px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 22px;
}
.cta-strip p { color: #c9bdac; opacity: .8; font-size: clamp(15px,1.8vw,19px); margin: 0 auto 36px; max-width: 52ch; }
.cta-strip .btn-line { color: #f3ece1; border-color: #f3ece1; }
.cta-strip .btn-line:hover { background: #f3ece1; color: var(--brand-dark); }

/* Полноширинный футер на главной */
body.home footer { max-width: none; padding: 46px 20px 60px; }

@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .split .media { min-height: 300px; }
  .prow { grid-template-columns: repeat(2, 1fr); }
  .hero-e { min-height: 80vh; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-word span, .splash-line, .splash-tag, .splash-skip, .splash::before,
  .hero-e .eyebrow, .hero-e h1, .hero-e .lead, .hero-e .cta, .scroll-cue { animation: none !important; opacity: 1 !important; transform: none !important; }
  .splash-line { width: min(320px,62vw) !important; }
  .splash { transition: none; }
}

/* ===== Лаборатория ===== */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.lab-card { position: relative; display: flex; flex-direction: column; gap: 8px; }
.lab-card .badge { position: absolute; top: 14px; right: 14px; }
.lab-popular { border: 1px solid var(--accent); }
.lab-marks { font-size: 13px; }
.lab-marks li { padding: 6px 0; }
.lab-meta { color: var(--muted); font-size: 12px; margin: 0; }
.lab-price { font-size: 18px; margin: 4px 0 8px; }
.lab-price s { color: var(--muted); font-weight: 400; font-size: 14px; }
.lab-booking { padding: 12px 0; border-bottom: 1px solid var(--line); }
.lab-booking:last-child { border-bottom: none; }
.lab-booking button { margin-top: 6px; }
