/* ============================================================
   Codexa Brasi — ИИ бренд-шеф · премиальный прототип
   Дизайн-система: chef's table + AI
   Палитра: эспрессо/графит · янтарь/золото · бразильский зелёный
   ============================================================ */

/* ----------  Шрифты  ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ----------  Токены  ---------- */
:root {
  /* поверхности */
  --bg:            #16100D;
  --bg-2:          #1B1411;
  --panel:         #1F1813;
  --card:          #241B15;
  --card-2:        #2A2019;
  --card-hover:    #312419;
  --line:          rgba(245,236,225,0.08);
  --line-strong:   rgba(245,236,225,0.14);

  /* акценты */
  --amber:         #EBAB5C;
  --amber-bright:  #F6BD6C;
  --gold:          #C8923F;
  --green:         #36A96E;
  --green-bright:  #44C384;
  --danger:        #E27A4A;

  /* текст */
  --text:          #F5ECE0;
  --muted:         #B6A794;
  --dim:           #847261;

  /* градиенты */
  --grad-amber:  linear-gradient(135deg, #F6BD6C 0%, #D8922F 100%);
  --grad-green:  linear-gradient(135deg, #4ACB88 0%, #1F8A4C 100%);
  --grad-mark:   linear-gradient(135deg, #F6BD6C 0%, #36A96E 120%);

  /* тени */
  --sh-sm:   0 4px 18px -10px rgba(0,0,0,.6);
  --sh-md:   0 14px 40px -16px rgba(0,0,0,.65);
  --sh-lg:   0 34px 80px -30px rgba(0,0,0,.75);
  --glow-amber: 0 18px 50px -22px rgba(235,171,92,.55);
  --glow-green: 0 18px 50px -22px rgba(54,169,110,.45);

  /* радиусы */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----------  База  ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  /* тёплое атмосферное свечение фоном */
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 540px at 78% -8%, rgba(235,171,92,.13), transparent 60%),
    radial-gradient(760px 520px at 6% 4%, rgba(54,169,110,.10), transparent 58%),
    radial-gradient(1000px 700px at 50% 120%, rgba(200,146,63,.07), transparent 60%);
  pointer-events: none;
}
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(235,171,92,.3); color: #fff; }

/* скроллбар */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a2c20; border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #503c2b; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* eyebrow / надзаголовки */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--amber), transparent); }
.eyebrow.green { color: var(--green-bright); }
.eyebrow.green::before { background: linear-gradient(90deg, var(--green-bright), transparent); }

.text-grad { background: var(--grad-amber); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-green { color: var(--green-bright); }

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .94rem; letter-spacing: .005em;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s;
  white-space: nowrap; user-select: none;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-amber); color: #2a1a05; box-shadow: var(--glow-amber); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -20px rgba(235,171,92,.7); }
.btn-green { background: var(--grad-green); color: #04210f; box-shadow: var(--glow-green); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -20px rgba(54,169,110,.6); }
.btn-ghost { background: rgba(245,236,225,.04); color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(245,236,225,.09); border-color: rgba(235,171,92,.4); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .84rem; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ============================================================
   ВЕРХНЯЯ НАВИГАЦИЯ
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 80;
  background: rgba(22,16,13,.72);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 13px; cursor: pointer; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--grad-mark);
  display: grid; place-items: center;
  box-shadow: var(--glow-amber);
  flex-shrink: 0;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.28rem; letter-spacing: -.01em; line-height: 1; }
.brand-name small { display: block; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-top: 3px; white-space: nowrap; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 9px 15px; border-radius: var(--r-pill); font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(245,236,225,.05); }
.nav-spacer { flex: 1; }

/* переключатель Лендинг / Кабинет */
.mode-switch { display: flex; gap: 4px; padding: 4px; background: rgba(245,236,225,.05); border: 1px solid var(--line); border-radius: var(--r-pill); }
.mode-switch button { padding: 8px 16px; border-radius: var(--r-pill); font-weight: 700; font-size: .82rem; color: var(--muted); transition: all .25s var(--ease); }
.mode-switch button.active { background: var(--grad-amber); color: #2a1a05; box-shadow: 0 6px 18px -8px rgba(235,171,92,.6); }

.domain-pill { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.domain-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 10px var(--green-bright); }

/* ============================================================
   ЛЕНДИНГ — ГЕРОЙ
   ============================================================ */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

.hero { position: relative; padding: 70px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5vw, 4.4rem); margin: 22px 0 0; }
.hero h1 em { font-style: italic; color: var(--amber-bright); }
.hero-lead { color: var(--muted); font-size: 1.22rem; line-height: 1.6; margin: 26px 0 0; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 48px; }
.hero-stats .s-num { font-family: 'Playfair Display', serif; font-size: 2.1rem; font-weight: 700; background: var(--grad-amber); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .s-lab { font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* визуал героя — аватар + орбита данных */
.hero-visual { position: relative; display: grid; place-items: center; }
.avatar-stage {
  position: relative; width: min(440px, 88%); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(235,171,92,.22), transparent 62%);
}
.avatar-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(235,171,92,.35);
  animation: spin 38s linear infinite;
}
.avatar-ring.r2 { inset: -26px; border-color: rgba(54,169,110,.3); animation-duration: 52s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-stage img {
  position: relative; width: 100%; border-radius: 50%;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(235,171,92,.25);
}
/* ============================================================
   КАРТОЧКИ-СПОСОБНОСТИ
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.cap-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px 28px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.cap-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px 200px at 80% -10%, rgba(235,171,92,.14), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.cap-card:hover { transform: translateY(-6px); border-color: rgba(235,171,92,.3); box-shadow: var(--sh-md); }
.cap-card:hover::after { opacity: 1; }
.cap-ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; background: rgba(235,171,92,.12); border: 1px solid rgba(235,171,92,.22); }
.cap-card.g .cap-ico { background: rgba(54,169,110,.12); border-color: rgba(54,169,110,.25); }
.cap-card h3 { font-size: 1.3rem; margin-bottom: 9px; }
.cap-card p { color: var(--muted); font-size: .96rem; }
.cap-num { position: absolute; top: 22px; right: 26px; font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--dim); }

/* ============================================================
   КАК ЭТО РАБОТАЕТ
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px 24px; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.step-n { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700; line-height: 1; background: var(--grad-amber); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h4 { font-size: 1.18rem; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: .92rem; }
.step .step-arrow { position: absolute; top: 40px; right: -22px; color: var(--dim); font-size: 1.4rem; z-index: 2; }
.step:last-child .step-arrow { display: none; }

/* ============================================================
   ПРИМЕРЫ РЕЗУЛЬТАТОВ
   ============================================================ */
.example-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.example-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.example-top { padding: 22px 24px 0; }
.example-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.example-card h4 { font-size: 1.18rem; margin: 8px 0 0; }
.example-body { padding: 18px 24px 24px; }

/* мини-превью ТТК */
.mini-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.mini-row:last-child { border-bottom: none; }
.mini-row .k { color: var(--muted); }
.mini-row .v { font-weight: 700; }

/* мини food cost donut */
.fc-donut { display: flex; align-items: center; gap: 18px; }
.donut { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: conic-gradient(var(--amber) 0 var(--p,24%), rgba(245,236,225,.08) var(--p,24%) 100%); }
.donut .donut-in { width: 68px; height: 68px; border-radius: 50%; background: var(--card); display: grid; place-items: center; flex-direction: column; }
.donut .donut-in b { font-size: 1.3rem; font-family: 'Playfair Display', serif; }
.donut .donut-in span { font-size: .6rem; color: var(--muted); }

/* мини матрица меню-инжиниринга */
.mini-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini-matrix div { padding: 12px 10px; border-radius: 10px; font-size: .76rem; font-weight: 700; }
.mm-star { background: rgba(54,169,110,.16); color: var(--green-bright); }
.mm-horse { background: rgba(235,171,92,.14); color: var(--amber-bright); }
.mm-puzzle { background: rgba(126,114,97,.14); color: var(--muted); }
.mm-dog { background: rgba(226,122,74,.12); color: var(--danger); }

/* example «фото блюда» */
.example-photo { height: 158px; position: relative; display: grid; place-items: center; }
.example-photo .gen-badge { position: absolute; top: 12px; left: 12px; background: rgba(20,14,11,.7); backdrop-filter: blur(6px); border: 1px solid var(--line-strong); border-radius: 99px; padding: 5px 11px; font-size: .68rem; font-weight: 700; color: var(--amber); }

/* ============================================================
   ФОРМАТЫ И ИНТЕГРАЦИИ
   ============================================================ */
.integ-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px; }
.integ-card h3 { font-size: 1.3rem; margin-bottom: 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.fmt-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--r-pill); background: rgba(245,236,225,.04); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; transition: border-color .2s, background .2s; }
.fmt-chip:hover { border-color: rgba(235,171,92,.35); background: rgba(235,171,92,.06); }
.fmt-chip .fmt-ico { font-size: 1rem; }

/* ============================================================
   ТАРИФ / CTA
   ============================================================ */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.price-card.featured { border-color: rgba(235,171,92,.45); background: linear-gradient(165deg, #2c2016, var(--bg-2)); box-shadow: var(--glow-amber); position: relative; }
.price-card.featured::before { content: "Рекомендуем"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-amber); color: #2a1a05; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 16px; border-radius: 99px; }
.price-card .p-name { font-weight: 700; font-size: 1.05rem; color: var(--amber); letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
.price-card .p-val { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700; margin: 14px 0 4px; }
.price-card .p-val small { font-size: .9rem; color: var(--muted); font-family: 'Manrope'; font-weight: 600; }
.price-card .p-desc { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.p-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.p-list li { display: flex; gap: 10px; font-size: .92rem; color: var(--muted); }
.p-list li svg { width: 18px; height: 18px; color: var(--green-bright); flex-shrink: 0; margin-top: 1px; }

.cta-band { background: linear-gradient(135deg, #2c2016 0%, #1a1f17 100%); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -30%, rgba(235,171,92,.2), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 16px; }
.cta-band p { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 32px; }

/* футер */
.footer { border-top: 1px solid var(--line); padding: 54px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { font-family: 'Manrope'; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer ul a:hover { color: var(--amber); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--dim); font-size: .84rem; }

/* ============================================================
   РЕПЛИКА Codexa Brasi (аватар + речь)
   ============================================================ */
.coach {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(235,171,92,.08), rgba(54,169,110,.05));
  border: 1px solid rgba(235,171,92,.22); border-radius: var(--r-md);
  padding: 18px 20px;
}
.coach-av { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(235,171,92,.4), var(--sh-sm); object-fit: cover; }
.coach-body .coach-name { font-weight: 800; font-size: .8rem; letter-spacing: .04em; color: var(--amber); display: flex; align-items: center; gap: 7px; }
.coach-body .coach-name::after { content: "ИИ бренд-шеф"; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .6rem; color: var(--dim); padding: 2px 7px; border: 1px solid var(--line); border-radius: 99px; }
.coach-body p { margin-top: 6px; font-size: .95rem; color: var(--text); line-height: 1.55; }
.coach.sm { padding: 14px 16px; }
.coach.sm .coach-av { width: 42px; height: 42px; }

/* ============================================================
   ПРИЛОЖЕНИЕ (личный кабинет): сайдбар + контент
   ============================================================ */
.app-shell { display: grid; grid-template-columns: 264px 1fr; min-height: calc(100vh - 74px); }
.sidebar { border-right: 1px solid var(--line); padding: 26px 18px; background: rgba(27,20,17,.5); position: sticky; top: 74px; height: calc(100vh - 74px); overflow-y: auto; }
.side-label { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 0 14px; margin: 22px 0 10px; }
.side-label:first-child { margin-top: 0; }
.side-item { display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: var(--r-sm); color: var(--muted); font-weight: 600; font-size: .94rem; transition: all .2s var(--ease); cursor: pointer; position: relative; margin-bottom: 3px; }
.side-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.side-item:hover { background: rgba(245,236,225,.05); color: var(--text); }
.side-item.active { background: linear-gradient(100deg, rgba(235,171,92,.16), rgba(235,171,92,.04)); color: var(--amber-bright); }
.side-item.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 99px; background: var(--grad-amber); }
.side-item .side-badge { margin-left: auto; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgba(54,169,110,.18); color: var(--green-bright); }

.side-pro { margin-top: 28px; background: linear-gradient(160deg, rgba(235,171,92,.1), rgba(54,169,110,.06)); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 18px; }
.side-pro p { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }

.app-main { padding: 34px 40px 80px; max-width: 1180px; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.app-head .eyebrow { margin-bottom: 8px; }
.app-head h1 { font-size: 2.1rem; }
.app-head p { color: var(--muted); margin-top: 6px; }
.app-head-actions { display: flex; gap: 12px; }

/* ============================================================
   ПЛИТКИ / KPI / КАРТЫ ПРИЛОЖЕНИЯ
   ============================================================ */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head h3 { font-size: 1.22rem; }
.panel-head .ph-link { font-size: .84rem; color: var(--amber); font-weight: 600; cursor: pointer; }

.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; transition: transform .3s var(--ease), box-shadow .3s; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.kpi .kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .kpi-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.1rem; background: rgba(235,171,92,.12); border: 1px solid rgba(235,171,92,.2); }
.kpi.g .kpi-ico { background: rgba(54,169,110,.12); border-color: rgba(54,169,110,.22); }
.kpi .kpi-val { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; margin-top: 14px; }
.kpi .kpi-lab { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.kpi .kpi-delta { font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.kpi-delta.up { color: var(--green-bright); background: rgba(54,169,110,.14); }
.kpi-delta.down { color: var(--danger); background: rgba(226,122,74,.14); }

/* быстрые действия */
.quick-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.quick {
  display: flex; align-items: center; gap: 16px; padding: 22px;
  background: linear-gradient(140deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.quick:hover { transform: translateY(-4px); border-color: rgba(235,171,92,.35); box-shadow: var(--sh-md); }
.quick .q-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--grad-amber); color: #2a1a05; flex-shrink: 0; }
.quick.green .q-ico { background: var(--grad-green); color: #04210f; }
.quick h4 { font-size: 1.08rem; }
.quick p { font-size: .85rem; color: var(--muted); margin-top: 3px; }

/* список последних загрузок */
.recent-item { display: flex; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; border-radius: 10px; }
.recent-item:hover { background: rgba(245,236,225,.03); }
.recent-item:last-child { border-bottom: none; }
.recent-thumb { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.recent-item .ri-name { font-weight: 700; font-size: .96rem; }
.recent-item .ri-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.recent-item .ri-spacer { flex: 1; }

/* статус-бейджи */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.badge.done { background: rgba(54,169,110,.15); color: var(--green-bright); }
.badge.done::before { background: var(--green-bright); box-shadow: 0 0 8px var(--green-bright); }
.badge.work { background: rgba(235,171,92,.15); color: var(--amber-bright); }
.badge.work::before { background: var(--amber-bright); animation: pulse 1.2s infinite; }
.badge.queue { background: rgba(132,114,97,.16); color: var(--muted); }
.badge.queue::before { background: var(--dim); }
.badge.warn { background: rgba(226,122,74,.15); color: var(--danger); }
.badge.warn::before { background: var(--danger); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ============================================================
   ЗАГРУЗКА
   ============================================================ */
.upload-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.upload-tab { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: var(--r-pill); background: rgba(245,236,225,.04); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; transition: all .25s var(--ease); }
.upload-tab svg { width: 17px; height: 17px; }
.upload-tab:hover { color: var(--text); border-color: var(--line-strong); }
.upload-tab.active { background: rgba(235,171,92,.14); border-color: rgba(235,171,92,.4); color: var(--amber-bright); }

.dropzone {
  border: 2px dashed rgba(235,171,92,.3); border-radius: var(--r-lg);
  padding: 56px 40px; text-align: center; background: rgba(235,171,92,.03);
  transition: all .3s var(--ease); cursor: pointer;
}
.dropzone:hover { border-color: rgba(235,171,92,.55); background: rgba(235,171,92,.06); }
.dropzone .dz-ico { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 20px; display: grid; place-items: center; font-size: 2rem; background: var(--grad-amber); color: #2a1a05; box-shadow: var(--glow-amber); }
.dropzone h3 { font-size: 1.4rem; margin-bottom: 8px; }
.dropzone p { color: var(--muted); }
.dropzone .dz-formats { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* превью загруженного */
.upload-preview { margin-top: 24px; }
.preview-file { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.preview-thumb { width: 96px; height: 72px; border-radius: 12px; display: grid; place-items: center; font-size: 1.8rem; flex-shrink: 0; position: relative; overflow: hidden; }
.preview-file .pf-name { font-weight: 700; }
.preview-file .pf-meta { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.preview-file .pf-bar { margin-top: 8px; height: 5px; background: rgba(245,236,225,.08); border-radius: 99px; overflow: hidden; width: 220px; }
.preview-file .pf-bar i { display: block; height: 100%; width: 100%; background: var(--grad-green); border-radius: 99px; }

/* ============================================================
   ОБРАБОТКА / КОНВЕЙЕР
   ============================================================ */
.pipeline { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 24px; }
.pipe-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; position: relative; transition: border-color .4s, box-shadow .4s; }
.pipe-card.active { border-color: rgba(235,171,92,.45); box-shadow: var(--glow-amber); }
.pipe-card.complete { border-color: rgba(54,169,110,.4); }
.pipe-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.pipe-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(245,236,225,.05); border: 1px solid var(--line); transition: all .4s; }
.pipe-card.active .pipe-ico { background: var(--grad-amber); color: #2a1a05; }
.pipe-card.complete .pipe-ico { background: var(--grad-green); color: #04210f; }
.pipe-head h4 { font-size: 1.08rem; }
.pipe-head .pipe-sub { font-size: .78rem; color: var(--muted); }
.pipe-prog { height: 7px; background: rgba(245,236,225,.07); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.pipe-prog i { display: block; height: 100%; width: 0; background: var(--grad-amber); border-radius: 99px; transition: width .5s var(--ease); }
.pipe-card.complete .pipe-prog i { background: var(--grad-green); }
.pipe-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pipe-steps li { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--dim); transition: color .3s; }
.pipe-steps li .ps-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--dim); flex-shrink: 0; display: grid; place-items: center; font-size: .6rem; transition: all .3s; }
.pipe-steps li.done { color: var(--text); }
.pipe-steps li.done .ps-dot { background: var(--green-bright); border-color: var(--green-bright); color: #04210f; }
.pipe-steps li.run { color: var(--amber-bright); }
.pipe-steps li.run .ps-dot { border-color: var(--amber-bright); animation: pulse 1s infinite; }

/* HITL — подтверждение сопоставления */
.hitl { border: 1px solid rgba(235,171,92,.35); background: linear-gradient(140deg, rgba(235,171,92,.07), transparent); border-radius: var(--r-md); padding: 24px; margin-top: 6px; }
.hitl-head { display: flex; align-items: center; gap: 13px; margin-bottom: 6px; }
.hitl-head .hitl-ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(235,171,92,.16); border: 1px solid rgba(235,171,92,.3); display: grid; place-items: center; font-size: 1.2rem; }
.hitl-head h3 { font-size: 1.25rem; }
.hitl-head p { font-size: .86rem; color: var(--muted); }

.match-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.match-table th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.match-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
.match-table tr:last-child td { border-bottom: none; }
.match-arrow { color: var(--amber); }
.conf { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .82rem; }
.conf-bar { width: 54px; height: 6px; border-radius: 99px; background: rgba(245,236,225,.1); overflow: hidden; }
.conf-bar i { display: block; height: 100%; border-radius: 99px; }
.conf.hi i { background: var(--green-bright); }
.conf.mid i { background: var(--amber-bright); }
.conf.lo i { background: var(--danger); }
.row-actions { display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(245,236,225,.03); transition: all .2s; }
.icon-btn:hover { border-color: var(--line-strong); background: rgba(245,236,225,.07); }
.icon-btn.ok:hover { border-color: var(--green-bright); color: var(--green-bright); }
.icon-btn.edit:hover { border-color: var(--amber); color: var(--amber); }
.match-row.confirmed { background: rgba(54,169,110,.06); }
.match-row.confirmed .row-actions { opacity: .4; }

/* ============================================================
   КАРТОЧКА БЛЮДА + ВКЛАДКИ СКИЛЛОВ
   ============================================================ */
.dish-hero { display: grid; grid-template-columns: 320px 1fr; gap: 28px; margin-bottom: 28px; }
.dish-photo-lg { border-radius: var(--r-md); aspect-ratio: 4/3; position: relative; overflow: hidden; box-shadow: var(--sh-md); display: grid; place-items: center; }
.dish-photo-lg .gen-badge { position: absolute; bottom: 12px; left: 12px; background: rgba(20,14,11,.72); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); border-radius: 99px; padding: 6px 13px; font-size: .72rem; font-weight: 700; color: var(--amber); }
.dish-info h1 { font-size: 2.3rem; margin-bottom: 6px; }
.dish-info .dish-sub { color: var(--muted); font-size: 1rem; }
.dish-meta { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.dish-meta .dm { }
.dish-meta .dm-v { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; }
.dish-meta .dm-v.amber { color: var(--amber-bright); }
.dish-meta .dm-v.green { color: var(--green-bright); }
.dish-meta .dm-l { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.dish-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* вкладки скиллов */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tab { padding: 13px 18px; font-weight: 700; font-size: .92rem; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; display: inline-flex; align-items: center; gap: 8px; }
.tab .tab-ico { font-size: 1.05rem; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--amber-bright); border-bottom-color: var(--amber); }
.tab-panel { display: none; animation: fadeUp .45s var(--ease); }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* таблицы данных */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line-strong); }
.data-table th.num, .data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(245,236,225,.03); }
.data-table tfoot td { padding: 14px; font-weight: 800; border-top: 2px solid var(--line-strong); font-size: .98rem; }
.data-table .muted { color: var(--muted); }
.data-table .loss { color: var(--danger); font-weight: 600; }

.callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r-sm); background: rgba(54,169,110,.08); border: 1px solid rgba(54,169,110,.2); font-size: .92rem; }
.callout.amber { background: rgba(235,171,92,.08); border-color: rgba(235,171,92,.22); }
.callout .co-ico { font-size: 1.2rem; }

/* колонки внутри панели */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

/* текстура / подача (шеф) */
.tag-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: rgba(245,236,225,.05); border: 1px solid var(--line); }
.tag-pill.amber { background: rgba(235,171,92,.1); border-color: rgba(235,171,92,.25); color: var(--amber-bright); }
.tag-pill.green { background: rgba(54,169,110,.1); border-color: rgba(54,169,110,.25); color: var(--green-bright); }

.sense-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.sense { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px; }
.sense .sense-ico { font-size: 1.5rem; margin-bottom: 10px; }
.sense h5 { font-family: 'Manrope'; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.sense p { font-size: .85rem; color: var(--muted); }

/* шкала прогресса (food cost) */
.bar-stat { margin-bottom: 16px; }
.bar-stat .bs-top { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 7px; }
.bar-stat .bs-top b { font-weight: 700; }
.bar-track { height: 10px; border-radius: 99px; background: rgba(245,236,225,.07); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 99px; }
.bar-track i.amber { background: var(--grad-amber); }
.bar-track i.green { background: var(--grad-green); }
.bar-track i.red { background: linear-gradient(135deg,#E27A4A,#c14d22); }

/* ============================================================
   МАТРИЦА МЕНЮ-ИНЖИНИРИНГА (полная)
   ============================================================ */
.menu-matrix { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; aspect-ratio: 16/10; padding: 14px 14px 14px 34px; }
.menu-matrix .axis-y { position: absolute; left: 2px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; white-space: nowrap; }
.menu-matrix .axis-x { position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.quadrant { border-radius: var(--r-sm); padding: 16px; position: relative; border: 1px solid var(--line); }
.quadrant .q-title { font-weight: 800; font-size: .92rem; display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.quadrant.star { background: rgba(54,169,110,.09); border-color: rgba(54,169,110,.25); }
.quadrant.star .q-title { color: var(--green-bright); }
.quadrant.horse { background: rgba(235,171,92,.08); border-color: rgba(235,171,92,.22); }
.quadrant.horse .q-title { color: var(--amber-bright); }
.quadrant.puzzle { background: rgba(126,114,97,.08); }
.quadrant.puzzle .q-title { color: var(--muted); }
.quadrant.dog { background: rgba(226,122,74,.07); border-color: rgba(226,122,74,.2); }
.quadrant.dog .q-title { color: var(--danger); }
.dish-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px; background: rgba(20,14,11,.5); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; margin: 0 5px 6px 0; }

/* ============================================================
   ГЕНЕРАЦИЯ ФОТО
   ============================================================ */
.gen-input { display: flex; gap: 12px; margin-bottom: 8px; }
.gen-input textarea, .field-input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 14px 16px; color: var(--text); font-family: inherit; font-size: .95rem; resize: vertical; transition: border-color .2s;
}
.gen-input textarea:focus, .field-input:focus { outline: none; border-color: rgba(235,171,92,.5); }
.gen-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.gen-results { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 24px; }
.gen-thumb { border-radius: var(--r-md); aspect-ratio: 1; position: relative; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: transform .3s var(--ease), border-color .3s; display: grid; place-items: center; }
.gen-thumb:hover { transform: translateY(-4px); }
.gen-thumb.selected { border-color: var(--amber); box-shadow: var(--glow-amber); }
.gen-thumb .gen-check { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-amber); color: #2a1a05; display: none; place-items: center; }
.gen-thumb.selected .gen-check { display: grid; }
.gen-thumb .gen-loader { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg-2); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(235,171,92,.2); border-top-color: var(--amber); animation: spin 0.8s linear infinite; }

/* ============================================================
   БАЗА РЕЦЕПТУР
   ============================================================ */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.search-box { flex: 1; min-width: 240px; position: relative; }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); }
.search-box input { width: 100%; padding: 12px 16px 12px 44px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--text); font-family: inherit; font-size: .94rem; }
.search-box input:focus { outline: none; border-color: rgba(235,171,92,.45); }
.select-pill { padding: 11px 18px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .2s; }
.select-pill:hover { border-color: rgba(235,171,92,.4); color: var(--text); }
.select-pill.active { background: rgba(235,171,92,.12); border-color: rgba(235,171,92,.4); color: var(--amber-bright); }

.recipe-table .dish-cell { display: flex; align-items: center; gap: 12px; }
.recipe-table .dish-cell .rt-thumb { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.recipe-table .dish-cell .rt-name { font-weight: 700; }
.recipe-table .dish-cell .rt-cat { font-size: .76rem; color: var(--muted); }
.recipe-table tbody tr { cursor: pointer; }
.fc-tag { font-weight: 700; font-size: .84rem; padding: 3px 9px; border-radius: 99px; }
.fc-tag.good { background: rgba(54,169,110,.14); color: var(--green-bright); }
.fc-tag.mid { background: rgba(235,171,92,.14); color: var(--amber-bright); }
.fc-tag.bad { background: rgba(226,122,74,.14); color: var(--danger); }

/* карточка ингредиента (внутри базы) */
.ing-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.ing-card .ing-name { font-weight: 700; font-size: 1.05rem; }
.ing-card .ing-art { font-size: .78rem; color: var(--dim); }
.ing-card .ing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.ing-card .ig-cell .igc-v { font-weight: 800; }
.ing-card .ig-cell .igc-l { font-size: .76rem; color: var(--muted); }

/* ============================================================
   ГИД ПО ПОКАЗУ (tour)
   ============================================================ */
.tour {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  background: rgba(31,24,19,.95); backdrop-filter: blur(16px);
  border: 1px solid rgba(235,171,92,.3); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--sh-lg); width: 320px;
  animation: fadeUp .4s var(--ease);
}
.tour-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tour-head .t-step { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.tour-head .t-close { margin-left: auto; color: var(--dim); cursor: pointer; font-size: 1.1rem; }
.tour h4 { font-size: 1.05rem; margin-bottom: 4px; }
.tour p { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.tour-nav { display: flex; gap: 8px; align-items: center; }
.tour-dots { display: flex; gap: 5px; margin-right: auto; }
.tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); transition: all .25s; }
.tour-dots span.on { background: var(--amber); width: 18px; border-radius: 99px; }

.tour-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 89;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--grad-amber); color: #2a1a05; font-weight: 800; font-size: .88rem;
  padding: 13px 20px; border-radius: 99px; box-shadow: var(--glow-amber);
  transition: transform .25s var(--ease); border: none; cursor: pointer;
}
.tour-fab:hover { transform: translateY(-2px); }

/* ============================================================
   ГРАДИЕНТНЫЕ ПЛЕЙСХОЛДЕРЫ БЛЮД (аппетитные, тёплые)
   ============================================================ */
.dish-grad-feijoada { background: radial-gradient(120% 120% at 30% 20%, #5a3418 0%, #3a1f0f 55%, #241208 100%); }
.dish-grad-moqueca  { background: radial-gradient(120% 120% at 30% 20%, #c7611f 0%, #8a3a14 55%, #3d1c0c 100%); }
.dish-grad-cheese   { background: radial-gradient(120% 120% at 30% 20%, #e0b15c 0%, #b07f2e 55%, #5a3f16 100%); }
.dish-grad-warm     { background: radial-gradient(120% 120% at 30% 20%, #b8541f 0%, #7a3414 55%, #341508 100%); }
.dish-grad-dark     { background: radial-gradient(120% 120% at 30% 20%, #3a2f24 0%, #251c14 55%, #14100b 100%); }
.dish-grad-green    { background: radial-gradient(120% 120% at 30% 20%, #2f8a4e 0%, #1c5e34 55%, #0e3018 100%); }
.dish-grad-menu     { background: radial-gradient(120% 120% at 30% 20%, #3a2c1f 0%, #271c12 55%, #14100b 100%); }
.recent-thumb, .rt-thumb, .preview-thumb, .example-photo, .gen-thumb, .dish-photo-lg { color: rgba(255,255,255,.9); }

/* служебное */
.hidden { display: none !important; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }

/* появление секций при скролле */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .grid-3, .steps, .three-col, .gen-results, .pipeline, .kpi-row { grid-template-columns: repeat(2,1fr); }
  .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dish-hero { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 6px; }
  .side-label, .side-pro { display: none; }
  .step .step-arrow { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .nav-links, .domain-pill, .mode-switch, #topCta { display: none; }
  .hero-visual { overflow: hidden; }
  .grid-3, .grid-2, .grid-4, .steps, .two-col, .three-col, .quick-grid, .gen-results, .pipeline, .kpi-row, .sense-grid, .footer-grid, .menu-matrix { grid-template-columns: 1fr; }
  .app-main { padding: 24px 18px 70px; }
  .section { padding: 64px 0; }
  .hero-stats { gap: 22px; }
  .tour { left: 18px; right: 18px; width: auto; }
}
