/* Публичный лендинг Ai-Luli. Игривое лицо бренда (AI-LULI.md §1.1): кабинет
   деловой, документы строгие, шутка живёт здесь. Системные шрифты — не Google
   Fonts: внешний шрифтовой CDN передаёт IP посетителя за границу (152-ФЗ). */
:root {
  --ink: #1d1b2e;
  --muted: #5d5a73;
  --line: #e8e4f0;
  --bg: #fffdf8;
  --alt: #f6f2ff;
  /* Палитра — от пастельного логотипа (приглушённые синий, зелёный, розовый),
     без прежних оранжевого и ярко-синего: те давали ощущение «поделки». */
  --brand: #4f7cc4;
  --brand-dark: #3e66a8;
  --green: #7fae4a;
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

/* ── шапка ── */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 253, 248, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.logo-mark { display: block; width: auto; height: 36px; }
.logo-sm { font-size: 17px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-tagline { font-size: 12px; font-weight: 500; color: #5d5a73bd; letter-spacing: .01em; }
.logo-sm .logo-tagline { font-size: 11px; }
.logo-sm .logo-mark { width: auto; height: 29px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }

/* ── кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid transparent; transition: transform .12s ease, background .12s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-link { color: var(--ink); padding-inline: 8px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }

/* ── первый экран ──
   Фото команды сверху (на телефоне — во всю ширину, без отступов и подписей),
   текст и кнопка — сразу под ним, чтобы кнопка не уезжала под плашку cookie.
   На широком экране — две колонки, текст прижат кверху. */
.hero { padding-block: 48px 80px; background: radial-gradient(900px 420px at 85% 10%, #e9f0fa 0, transparent 60%), radial-gradient(700px 380px at 5% 90%, #eef5e6 0, transparent 60%); }
/* Квиз — своей строкой под фото и заголовком, справа от него описание
   (решение владельца 2026-10-21): в колонке текста он поднимал её выше фото. */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "text photo" "quiz about"; gap: 56px; align-items: start; }
.hero-text { grid-area: text; }
.hero-photo { grid-area: photo; }
.hero .quiz { grid-area: quiz; margin: 0; }
.quiz-about { grid-area: about; padding-top: 18px; }
.quiz-about h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.quiz-about p { font-size: 18px; color: var(--muted); max-width: 32em; }
.quiz-about ul { margin: 18px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.hero-text { padding-top: 8px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 60px); font-weight: 850; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 14px; }
.note { font-size: 14px; color: var(--muted); margin-top: 32px; }

.hero-photo { position: relative; order: 2; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #ece8e1; box-shadow: 0 24px 48px -28px rgba(35, 37, 58, .45); }
.hero-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity 1.2s ease; }
.hero-photo img.on { opacity: 1; }
.hero-photo img.wide { object-position: 50% 50%; }
@media (prefers-reduced-motion: reduce) { .hero-photo img { transition: none; } html { scroll-behavior: auto; } }

/* ── квиз на первом экране (plan-landing-cold.md §6) ──
   Вопрос — реплика Василисы, ответы — крупные плитки под палец (от 48 px). */
.quiz { margin: 24px 0 8px; scroll-margin-top: 80px; }
/* Квиз — в своей панели, а не поверх градиента первого экрана. */
.quiz-on { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 18px 40px -28px rgba(35, 37, 58, .45); }
.quiz-on .quiz-bubble { background: var(--alt); border-color: transparent; box-shadow: none; }
.quiz-hint { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.quiz-ask { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.quiz-face { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid #d5d8de; }
.quiz-bubble { background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 10px 14px; box-shadow: 0 6px 18px -12px rgba(35, 37, 58, .35); }
.quiz-who { display: block; font-size: 12px; color: var(--muted); }
.quiz-q { display: block; font-size: 18px; font-weight: 700; line-height: 1.3; }
.quiz-plan { font-size: 16px; font-weight: 500; }
.quiz-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quiz-tile { min-height: 52px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .12s ease, transform .12s ease; }
.quiz-tile:hover { border-color: var(--brand); }
.quiz-tile:active { transform: translateY(1px); }
.quiz-field { display: flex; gap: 10px; }
.quiz-field input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.quiz-field input:focus { outline: none; border-color: var(--brand); }
.quiz-back, .quiz-skip { margin-top: 10px; padding: 8px 4px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.quiz-skip { margin-right: 14px; }
.quiz-pass { display: block; width: 100%; margin-top: 10px; text-align: center; }
/* У результата своя строка про бесплатный месяц — общая под квизом повторяла бы её. */
.quiz:has(.quiz-result) ~ .note { display: none; }

.quiz-result { display: grid; gap: 14px; }
.quiz-side .btn { white-space: normal; text-align: center; }
.quiz-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.quiz-edit { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--brand); text-underline-offset: 3px; }
.quiz-row { display: flex; flex-wrap: wrap; }
.quiz-mail { display: grid; gap: 10px; }
.quiz-mail-label { font-size: 16px; font-weight: 700; color: var(--ink); }
.quiz-mail input[type="email"] { min-height: 52px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.quiz-mail input[type="email"]:focus { outline: none; border-color: var(--brand); }
.quiz-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.quiz-agree input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.quiz-agree a { color: inherit; text-underline-offset: 2px; }
.quiz-err { margin: 0; font-size: 14px; color: #c92a2a; }
.quiz-err:empty { display: none; }
/* Промпт — задание команде по ролям, как документ: светлая карточка, у
   каждого раздела лицо и имя; задания Марьи и Данилы — под замком. */
.quiz-prompt { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 16px; box-shadow: 0 14px 32px -24px rgba(35, 37, 58, .5); }
.qpr-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed var(--line); }
.qpr-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.qpr-name { font-size: 20px; font-weight: 800; }
.qpr-sec { margin-bottom: 12px; }
.qpr-who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.qpr-who b { font-size: 15px; }
.qpr-who span { font-size: 13px; color: var(--muted); }
.qpr-face { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid #d5d8de; }
.qpr-lines { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.45; }
.qpr-lines li { margin-bottom: 4px; }
.qpr-lines li::marker { color: var(--brand); }
.qpr-locked { position: relative; max-height: 150px; overflow: hidden; border-radius: 12px; }
.qpr-blur { filter: blur(4px); user-select: none; pointer-events: none; }
.qpr-lock { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 12px; text-align: center; background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(246, 242, 255, .95) 55%); }
.qpr-lock b { font-size: 15px; }
.qpr-lock span { font-size: 13px; color: var(--muted); }

/* ── секции ── */
.section { padding-block: 84px; }
.section-alt { background: var(--alt); }
.section-lead { font-size: 19px; color: var(--muted); margin-top: -4px; margin-bottom: 36px; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid #d5d8de; }
.person h3 { margin-bottom: 0; font-size: 22px; }
.person p { color: var(--muted); font-size: 15px; margin: 0; }
.person .role { font-weight: 600; margin: 2px 0 12px; }
/* Лицо персонажа в круге с тонкой серой рамкой. */
/* Лицо слева, имя и должность справа от него. */
.person-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.person-head .role { margin: 2px 0 0; }
.avatar { display: block; flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid #d5d8de; }

.features { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.features li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); }
.features li::before { content: "✓"; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: #e3f7ea; color: #1f8a4c; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.features strong { color: var(--ink); }

/* ── тарифы ── */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plans-fallback { grid-column: 1 / -1; color: var(--muted); }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan-hot { border: 2px solid var(--brand); box-shadow: 0 20px 40px -24px rgba(66, 99, 235, .55); position: relative; }
.plan-hot::before { content: "Популярный"; position: absolute; top: -12px; left: 20px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan-desc { color: var(--muted); font-size: 14px; min-height: 3em; }
.price { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 8px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-year { font-size: 13px; color: var(--muted); min-height: 1.5em; margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 14px; flex: 1; }
.plan li { padding: 5px 0; border-top: 1px dashed var(--line); }
.plan .btn { width: 100%; }
.plans-extra { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* ── вопросы ── */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 14px 32px 14px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

/* ── финал и подвал ── */
.final { padding-block: 24px 84px; }
.final-box { background: linear-gradient(135deg, var(--brand), #6b8fcc 55%, var(--green)); color: #fff; border-radius: 28px; text-align: center; padding-block: 56px; }
.final-box p { font-size: 19px; opacity: .92; }
.final-box .btn-primary { background: #fff; color: var(--ink); margin-top: 8px; }
.final-box .btn-primary:hover { background: #eef3fb; }

.foot { border-top: 1px solid var(--line); padding-block: 36px; font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
/* В подвале лого приглушено до серого, чтобы не спорить с цветной шапкой. */
.foot .logo { color: var(--muted); }
.foot .logo-mark { filter: grayscale(1); opacity: .75; }
.foot-links { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: flex-start; }
.foot-links a { color: var(--muted); }
.foot-legal { color: var(--muted); font-size: 13px; margin: 20px auto 0; }

/* ── узкие экраны ── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "photo" "text" "quiz" "about"; gap: 28px; }
  .hero-photo { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  /* Чат-кнопка Василисы висит в углу — без запаса она закрывает реквизиты. */
  .foot { padding-bottom: 104px; }
  .top-row { justify-content: space-between; }
  .hero { padding-block: 0 48px; }
  .hero-grid { gap: 22px; }
  .hero-photo { margin-inline: -20px; aspect-ratio: 16 / 10; border-radius: 0; box-shadow: none; }
  .hero-text { padding-top: 0; }
  .note { margin-top: 12px; }
  .lead { font-size: 18px; }
  .section { padding-block: 60px; }
  .steps, .team, .features, .plans { grid-template-columns: 1fr; }
  .cta .btn-lg { width: 100%; }
  /* Квизу нужен первый экран: фото ниже, подзаголовок уступает место вопросу —
     ту же мысль Василиса говорит репликой. */
  .quiz-on ~ .note { margin-top: 8px; }
  .hero-grid:has(.quiz-on) .lead { display: none; }
  /* На телефоне квиз — сразу под заголовком, как раньше; описание квиза
     повторяло бы подсказки под его вопросами. */
  .quiz-about { display: none; }
  .hero-grid:has(.quiz-on) .hero-photo { aspect-ratio: 2 / 1; }
  .quiz-side .btn-lg { width: 100%; }
  .final-box { border-radius: 20px; padding-inline: 16px; }
}

/* Полоса согласия на cookie (plan-stage4 §8.2). Снизу и неброско: это
   уведомление, а не просьба, и оно не должно перекрывать первый экран. */
/* Атрибут hidden сам по себе не сработает: у него display:none из стилей
   браузера, а любое явное display в классе перебивает его по специфичности.
   Без этой строки полоса согласия видна всегда и не прячется по кнопке. */
.cookie-bar[hidden] {
  display: none;
}

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.cookie-bar p {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-bar-actions {
  display: flex;
  gap: 8px;
}
@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-bar-actions { justify-content: flex-end; }
}
