:root {
  --bg: #F6F1E9;
  --bg-2: #EFE7DB;
  --paper: #FBF8F3;
  --ink: #1E2620;
  --ink-2: #4B5249;
  --muted: #7C7F75;
  --line: #DDD3C4;
  --sage: #7F9478;
  --sage-d: #4E6248;
  --blush: #E8C4BE;
  --terra: #B4654A;
  --gold: #B08D57;
  --dark: #1C231E;
  --radius: 22px;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 30px 60px -30px rgba(43, 36, 28, .35), 0 10px 25px -15px rgba(43, 36, 28, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; line-height: 1.05; }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: 26px; }
em { font-style: italic; color: var(--terra); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 8px; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px;
  padding: 12px 22px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s var(--ease); overflow: hidden; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 12px 30px -12px rgba(30, 38, 32, .6); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
  transition: transform .9s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(30, 38, 32, .6); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { border-color: var(--line); background: rgba(251, 248, 243, .6); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); background: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; transition: transform .3s var(--ease), border-color .3s; }
.icon-btn:hover { transform: scale(1.06); border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1240px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 18px; border-radius: 999px;
  background: rgba(246, 241, 233, .72); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid rgba(221, 211, 196, .7);
  transition: box-shadow .4s, background .4s;
}
.nav.scrolled { box-shadow: 0 18px 40px -24px rgba(43, 36, 28, .45); background: rgba(251, 248, 243, .86); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; color: var(--sage-d); }
.logo b { font-family: var(--serif); font-size: 24px; font-weight: 600; display: block; line-height: 1; }
.logo small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; }
.nav-links a { text-decoration: none; position: relative; color: var(--ink-2); }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 130px 24px 60px; overflow-x: clip;
}
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-d); font-weight: 600; margin: 0 0 18px; }
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.eyebrow-light { color: var(--blush); }
.hero-title { font-size: clamp(48px, 7.4vw, 104px); line-height: .98; margin-bottom: 26px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.lead { font-size: 18px; color: var(--ink-2); max-width: 540px; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 38px; margin: 0; }
.hero-stats div { border-left: 1px solid var(--line); padding-left: 16px; }
.hero-stats dt { font-family: var(--serif); font-size: 40px; line-height: 1; }
.hero-stats dd { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.halo { position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; top: -6%; background: radial-gradient(circle, var(--halo, rgba(232, 196, 190, .65)) 0%, rgba(246, 241, 233, 0) 62%); transition: background 1.2s; animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.hero-card {
  position: relative; width: min(470px, 100%); aspect-ratio: 4 / 5; border-radius: 240px 240px 28px 28px;
  background: linear-gradient(180deg, var(--paper), var(--bg-2)); box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .7);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 24px; overflow: hidden;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-10px); } }
.hero-bq { position: absolute; inset: 6% 6% 18%; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero-bq.out { opacity: 0; transform: scale(.94) translateY(10px); }
.hero-label { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-label-eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-label-name { font-family: var(--serif); font-size: 30px; font-style: italic; }
.hero-note { position: relative; margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.swatches { display: inline-flex; gap: 6px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .08); display: block; animation: pop .6s var(--ease) both; }
.swatches i:nth-child(2) { animation-delay: .08s; } .swatches i:nth-child(3) { animation-delay: .16s; } .swatches i:nth-child(4) { animation-delay: .24s; }
@keyframes pop { from { transform: scale(0); } }

.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petal { position: absolute; top: -40px; width: 14px; height: 18px; border-radius: 80% 0 80% 0; opacity: .7; animation: fall linear infinite; }
@keyframes fall {
  0% { transform: translate3d(0, -40px, 0) rotate(0); }
  100% { transform: translate3d(var(--dx, 80px), 110vh, 0) rotate(var(--rot, 540deg)); }
}

/* bouquet svg */
.bq-svg { width: 100%; height: 100%; overflow: visible; }
.bloom { transform-box: fill-box; transform-origin: center; animation: bloom 1s cubic-bezier(.2, .9, .25, 1.25) both; animation-delay: var(--d, 0s); }
@keyframes bloom { from { transform: scale(0) rotate(-35deg); opacity: 0; } 60% { opacity: 1; } }
.bq-flowers { transform-origin: 150px 320px; animation: sway 7s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(1.4deg); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--paper); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 50s linear infinite; font-family: var(--serif); font-size: 28px; font-style: italic; color: var(--ink-2); }
.marquee-track span { display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-track span::after { content: '✿'; font-style: normal; font-size: 16px; color: var(--terra); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 120px 24px; }
.section-tint { max-width: none; background: var(--bg-2); }
.section-tint > * { max-width: 1192px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-sub { color: var(--ink-2); font-size: 17px; margin: 18px 0 0; }

/* problem */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain { border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); padding: 30px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pain:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pain-who { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pain .quote { font-family: var(--serif); font-size: 26px; font-style: italic; line-height: 1.2; margin: 14px 0 14px; }
.pain p { color: var(--ink-2); margin: 0; }
.pain-accent { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pain-accent .pain-who { color: var(--blush); }
.pain-accent p { color: rgba(251, 248, 243, .78); }
.pain-accent .quote { color: var(--paper); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 34px 30px 36px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--blush); display: block; margin-bottom: 22px; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--ink-2); margin: 0; }
.step::after { content: ''; position: absolute; left: 30px; right: 30px; bottom: 0; height: 2px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.step.in::after { transform: scaleX(1); transition-delay: .4s; }

/* characters */
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.arch-card {
  position: relative; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); padding: 26px; min-height: 360px;
  display: flex; flex-direction: column; overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.arch-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, var(--c1), transparent 60%); opacity: .25; transition: opacity .6s; }
.arch-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.arch-card:hover::before { opacity: .55; }
.arch-code { position: relative; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.arch-card h3 { position: relative; font-size: 32px; font-style: italic; margin: 6px 0 10px; }
.arch-card p { position: relative; color: var(--ink-2); font-size: 14.5px; margin: 0; max-width: 92%; }
.arch-bq { position: relative; width: 62%; margin: auto 0 -40px auto; transform: translateY(30px); transition: transform .7s var(--ease); }
.arch-card:hover .arch-bq { transform: translateY(0) rotate(-3deg); }
.arch-card .swatches { position: relative; margin-top: 14px; }

/* bouquet card */
.bcard { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 40px; align-items: center; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); padding: 34px; box-shadow: var(--shadow); }
.bcard-visual { position: relative; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #fff, var(--bg-2)); padding: 22px 30px 10px; }
.bcard-stamp { position: absolute; top: 14px; left: 14px; background: rgba(251, 248, 243, .92); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.bcard-info h3 { font-size: clamp(34px, 4vw, 48px); font-style: italic; margin-bottom: 14px; }
.bcard-info h3 small { font-size: .5em; color: var(--terra); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tags span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; background: var(--bg); }
.bcard-pal { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.bcard-list { margin: 0; display: grid; gap: 0; }
.bcard-list div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.bcard-list dt { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding-top: 2px; }
.bcard-list dd { margin: 0; }
.say { margin-top: 20px; border-radius: 18px; background: var(--bg-2); padding: 20px 22px; }
.say-label { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); font-weight: 600; }
.say p:not(.say-label) { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.say-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sample-cta { display: flex; justify-content: center; margin-top: 34px; }

/* Ссылка на чат-бот */
.hero-alt { margin: -26px 0 40px; font-size: 15px; color: var(--muted); }
.hero-alt a { color: var(--sage-d); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.hero-alt a:hover { color: var(--terra); }
.botline { display: flex; align-items: center; gap: 28px; margin-top: 56px; padding: 32px 36px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.botline-icon { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--terra); }
.botline-icon svg { width: 30px; height: 30px; }
.botline-text { flex: 1; }
.botline-text .eyebrow { margin-bottom: 8px; }
.botline-text h3 { font-size: 30px; margin-bottom: 8px; }
.botline-text h3 em { color: var(--terra); }
.botline-text p:last-child { margin: 0; color: var(--ink-2); max-width: 620px; }
.botline-btn { flex: none; }
.connect-item a { color: inherit; }

/* variants */
.variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.variant {
  text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 22px; padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; animation: optIn .7s var(--ease) both; animation-delay: var(--i, 0s);
}
.variant:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.variant[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.variant-bq { width: 70%; margin: 0 auto 8px; }
.variant b { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.variant small { color: var(--muted); font-size: 13px; }
.variant-comp { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* salons */
.section-dark { max-width: none; background: var(--dark); color: var(--paper); position: relative; overflow: hidden; }
.section-dark::before { content: ''; position: absolute; width: 700px; height: 700px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(180, 101, 74, .35), transparent 65%); }
.biz { position: relative; max-width: 1192px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.biz h2 { margin-bottom: 22px; }
.biz em, .connect em { color: var(--blush); }
.biz-text > p { color: rgba(251, 248, 243, .75); font-size: 17px; max-width: 560px; }
.biz-list { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.biz-list li { padding-left: 28px; position: relative; color: rgba(251, 248, 243, .78); }
.biz-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 50% 0 50% 0; background: var(--blush); }
.biz-list b { color: var(--paper); font-weight: 600; }
.biz-cards { display: grid; gap: 16px; }
.kpi { border: 1px solid rgba(251, 248, 243, .14); border-radius: var(--radius); padding: 26px 28px; background: rgba(251, 248, 243, .04); transition: background .4s, transform .5s var(--ease); }
.kpi:hover { background: rgba(251, 248, 243, .08); transform: translateX(-6px); }
.kpi-num { font-family: var(--serif); font-size: 64px; line-height: 1; }
.kpi-unit { font-family: var(--serif); font-size: 28px; margin-left: 6px; color: var(--blush); }
.kpi p { margin: 8px 0 0; color: rgba(251, 248, 243, .7); font-size: 14px; }
.connect { position: relative; max-width: 1192px; margin: 90px auto 0; }
.connect h3 { font-size: 40px; margin-bottom: 26px; }
.connect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.connect-item { border-top: 1px solid rgba(251, 248, 243, .2); padding-top: 20px; }
.connect-item span { font-family: var(--serif); font-size: 22px; color: var(--blush); }
.connect-item h4 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 6px 0 8px; }
.connect-item p { color: rgba(251, 248, 243, .72); margin: 0; font-size: 15px; }

.footer { max-width: 1240px; margin: 0 auto; padding: 40px 24px 60px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.footer-muted { color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Overlays ---------- */
.overlay[hidden], .mine-btn[hidden] { display: none !important; }
.quiz { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; animation: fadeIn .5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.quiz-top { display: flex; align-items: center; gap: 18px; padding: 18px 24px; max-width: 1100px; width: 100%; margin: 0 auto; }
.progress { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--terra); transition: width .6s var(--ease); }
.quiz-body { flex: 1; overflow-y: auto; padding: 20px 24px 60px; }
.q-step { max-width: 980px; margin: 0 auto; animation: stepIn .7s var(--ease) both; }
.q-step.leave { animation: stepOut .35s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes stepOut { to { opacity: 0; transform: translateX(-40px); } }
.q-count { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.q-title { font-size: clamp(34px, 5vw, 58px); margin-bottom: 12px; }
.q-hint { color: var(--ink-2); margin: 0 0 34px; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.options.compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.opt {
  text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease), background .3s; animation: optIn .6s var(--ease) both; animation-delay: var(--i, 0s);
}
@keyframes optIn { from { opacity: 0; transform: translateY(16px); } }
.opt:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 18px 30px -20px rgba(43, 36, 28, .5); }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt b { font-weight: 600; font-size: 16px; }
.opt small { color: var(--muted); font-size: 13px; }
.opt[aria-pressed="true"] small { color: rgba(251, 248, 243, .7); }
.q-sub { margin: 36px 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.q-actions { display: flex; justify-content: flex-end; margin-top: 34px; gap: 12px; flex-wrap: wrap; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--paper); border-radius: 14px; padding: 14px 16px; font: 500 15px var(--sans); color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-card form > *, .field { min-width: 0; } /* длинный вариант в select не должен раздвигать форму шире экрана */
.field input, .field select, .field textarea { width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }

/* loading */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; gap: 10px; }
.loading .bq-wrap { width: 260px; }
.loading p { font-family: var(--serif); font-size: 28px; font-style: italic; margin: 0; }
.loading small { color: var(--muted); }

/* result */
.result { max-width: 1100px; margin: 0 auto; animation: stepIn .8s var(--ease) both; }
.res-head { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; margin-bottom: 44px; }
.res-head h2 { font-size: clamp(40px, 6vw, 74px); font-style: italic; }
.res-head .lead { margin: 16px 0 0; }
.res-mix { color: var(--terra); font-family: var(--serif); font-size: 24px; font-style: italic; margin: 6px 0 0; }
.res-meta { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.bar-track { height: 8px; background: var(--bg-2); border-radius: 8px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 8px; transition: width 1.2s var(--ease); }
.bar span:last-child { text-align: right; color: var(--muted); }
.panel { margin-top: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); padding: 28px; }
.panel h3 { margin-bottom: 4px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.panel-grid .panel { margin-top: 0; }
.rules { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.rules li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; font-size: 14px; }
.rules code { font: 600 11px var(--sans); background: var(--bg-2); border-radius: 6px; padding: 3px 6px; height: fit-content; text-align: center; }
.rules .t-Запрет code { background: #F4D9D2; color: #8A2D16; }
.rules .t-Предупреждение code { background: #F6E3C8; color: #7A4A0C; }
.rules small { color: var(--muted); display: block; }
/* paywall */
.paywall { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; max-width: 960px; margin: 40px auto; }
.pw-visual { position: relative; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #fff, var(--bg-2)); padding: 22px 30px 10px; overflow: hidden; }
.pw-blur { filter: blur(7px) saturate(1.1); opacity: .85; }
.pw-info h2 { font-size: clamp(36px, 5vw, 60px); font-style: italic; margin: 0 0 12px; }
.pw-info .lead { margin: 18px 0 8px; }
.pw-list { margin: 0 0 24px; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.pw-note { background: #F6E3C8; color: #7A4A0C; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.pw-legal { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.pw-legal a { color: inherit; }
.traur { max-width: 680px; margin: 60px auto; text-align: center; }
.traur p { color: var(--ink-2); font-size: 17px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(28, 35, 30, .45); backdrop-filter: blur(4px); animation: fadeIn .4s; }
.modal-card { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--paper); border-radius: 26px; padding: 32px; animation: modalIn .6s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.modal-card h3 { font-size: 34px; margin-bottom: 8px; }
.modal-card form { display: grid; gap: 14px; margin-top: 18px; }
.demo-note { font-size: 12.5px; color: var(--muted); background: var(--bg-2); border-radius: 12px; padding: 10px 12px; }

.toast { position: fixed; z-index: 99; bottom: 24px; left: 50%; transform: translate(-50%, 220%); opacity: 0; background: var(--ink); color: var(--paper); padding: 13px 22px; border-radius: 999px; font-size: 14px; transition: transform .6s var(--ease), opacity .4s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; min-height: auto; }
  .hero-visual { order: -1; }
  .hero-card { width: min(360px, 90%); }
  .steps, .arch-grid, .pains, .variants, .connect-grid { grid-template-columns: 1fr; }
  .biz, .res-head, .panel-grid, .bcard, .paywall { grid-template-columns: 1fr; }
  .paywall { gap: 24px; margin-top: 0; }
  .pw-visual { width: 100%; max-width: 320px; margin: 0 auto; }
  .bcard { padding: 22px; }
  .bcard-visual { width: 100%; max-width: 360px; margin: 0 auto; }
  .variant-bq { width: 45%; }
  .section { padding: 80px 16px; }
}
@media (max-width: 560px) {
  .nav { padding: 8px 8px 8px 14px; }
  .logo small { display: none; }
  .hero { padding-inline: 16px; }
  .hero-stats { gap: 14px; flex-wrap: wrap; }
  .hero-stats dt { font-size: 30px; }
  .row2 { grid-template-columns: 1fr; }
  .bcard-list div { grid-template-columns: 1fr; gap: 2px; }
  .btn-lg { padding: 15px 22px; }
  .bar { grid-template-columns: 110px 1fr 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .petals { display: none; }
}

/* ---------- Юридические страницы и уведомление ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 60px 16px 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.doc h2 { font-size: 26px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.6; }
.doc ul { padding-left: 22px; }
.doc .doc-meta { color: var(--muted); font-size: 14px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc td { border-top: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; color: var(--ink-2); }
.doc td:first-child { color: var(--muted); width: 38%; }
.todo { background: #F6E3C8; border-radius: 6px; padding: 0 4px; }
.footer a { color: inherit; }
.notice { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 13.5px; color: var(--ink-2); }
.notice a { color: inherit; }
.notice .btn { flex-shrink: 0; }
@media (max-width: 560px) { .notice { flex-direction: column; align-items: stretch; text-align: left; } }

/* ---------- Телефоны: первый экран, оплата, уведомление ---------- */
@media (max-width: 560px) {
  /* сначала заголовок и кнопка, букет — под ними */
  .hero { padding-top: 96px; gap: 28px; }
  .hero-visual { order: 0; }
  .hero-title { font-size: 44px; margin-bottom: 18px; }
  .hero .lead { font-size: 16px; margin-bottom: 22px; }
  .hero-cta { margin-bottom: 28px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-alt { margin: -14px 0 28px; }
  .botline { flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 16px; }
  .botline-btn { width: 100%; justify-content: center; }
  .hero-card { width: min(300px, 86%); }
  .hero-bq { inset: 5% 9% 30%; }
  .hero-label-name { font-size: 24px; }
  /* экран оплаты: кнопка оплаты сразу под названием характера */
  .paywall { margin-top: 8px; }
  .pw-visual { max-width: 170px; padding: 12px 18px 6px; }
  .pw-info { display: flex; flex-direction: column; align-items: flex-start; }
  .pw-info h2 { margin-bottom: 8px; }
  .pw-info .pw-note { order: 1; }
  .pw-info #payBtn { order: 2; width: 100%; justify-content: center; margin-top: 16px; }
  .pw-info .pw-legal { order: 3; }
  .pw-info .lead { order: 4; margin-top: 22px; }
  .pw-info .pw-list { order: 5; }
  /* уведомление о данных — компактная строка */
  .notice { flex-direction: row; align-items: center; gap: 10px; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.4; border-radius: 14px; }
}

/* вариант «Не знаю» — спокойнее основных ответов */
.opt.opt-unknown { border-style: dashed; background: transparent; }
.opt.opt-unknown b { font-weight: 500; color: var(--ink-2); }
.opt.opt-unknown[aria-pressed="true"] { border-style: solid; background: var(--ink); }
.opt.opt-unknown[aria-pressed="true"] b { color: var(--paper); }

/* ---------- Живые мелочи (js/delight.js) ---------- */
/* Бутон: шесть лепестков раскрываются и снова собираются */
.bud { position: relative; display: inline-block; width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.bud i { position: absolute; left: 32%; top: 2%; width: 36%; height: 48%; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; background: var(--blush); transform-origin: 50% 100%; transform: rotate(var(--a)); animation: budOpen 3.6s var(--ease) infinite; }
.bud i:nth-child(even) { background: #E9B9A5; }
.bud b { position: absolute; left: 38%; top: 38%; width: 24%; height: 24%; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
@keyframes budOpen {
  0%, 12% { transform: rotate(calc(var(--a) * .12)) scale(.45, .7); }
  42%, 78% { transform: rotate(var(--a)) scale(1); }
  100% { transform: rotate(calc(var(--a) * .12)) scale(.45, .7); }
}
.bud-btn { width: 20px; height: 20px; margin-right: -2px; }
.bud-btn i { background: #F3D9CF; }
.bud-btn i:nth-child(even) { background: #E8C4BE; }
.progress { overflow: visible; }
.progress-bar { position: relative; border-radius: 3px; }
.bud-progress { position: absolute; right: -11px; top: 50%; margin-top: -11px; }
.bud-progress i { animation-duration: 2.8s; }

/* Лепестки от касания */
.burst-petal { position: fixed; z-index: 120; width: 10px; height: 13px; border-radius: 80% 0 80% 0; pointer-events: none; animation: burst .9s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes burst {
  from { transform: translate(-50%, -50%) scale(.3) rotate(0); opacity: 1; }
  to { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1) rotate(var(--r)); opacity: 0; }
}

/* Дождь из лепестков при открытии карточки */
.shower { position: fixed; inset: 0; z-index: 110; pointer-events: none; overflow: hidden; }
.shower i { position: absolute; top: -24px; width: 12px; height: 16px; border-radius: 80% 0 80% 0; opacity: .85; animation: showerFall linear forwards; }
@keyframes showerFall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .2; } }

/* Выбранный ответ — распускается цветок */
.opt { position: relative; }
.opt[aria-pressed="true"]::after { content: ''; position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg fill='%23E8C4BE'%3E%3Cellipse cy='-6' rx='3.6' ry='5.6'/%3E%3Cellipse cy='-6' rx='3.6' ry='5.6' transform='rotate(72)'/%3E%3Cellipse cy='-6' rx='3.6' ry='5.6' transform='rotate(144)'/%3E%3Cellipse cy='-6' rx='3.6' ry='5.6' transform='rotate(216)'/%3E%3Cellipse cy='-6' rx='3.6' ry='5.6' transform='rotate(288)'/%3E%3C/g%3E%3Ccircle r='2.6' fill='%23B08D57'/%3E%3C/svg%3E") center / contain no-repeat; animation: optBloom .55s cubic-bezier(.2, .9, .25, 1.3) both; }
@keyframes optBloom { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
.opt[aria-pressed="true"] { padding-right: 48px; }

/* Касание: кнопки и ответы мягко «нажимаются» */
.btn:active, .opt:active, .variant:active, .icon-btn:active { transform: scale(.97); transition-duration: .12s; }

/* На телефоне (нет мышки): «наведение» срабатывает, когда карточка в середине экрана */
@media (hover: none) {
  .arch-card.live { transform: translateY(-6px); box-shadow: var(--shadow); }
  .arch-card.live::before { opacity: .55; }
  .arch-card.live .arch-bq { transform: translateY(0) rotate(-3deg); }
  .pain.live, .step.live { transform: translateY(-6px); box-shadow: var(--shadow); }
  .kpi.live { background: rgba(251, 248, 243, .08); transform: translateX(-6px); }
  /* блик пробегает по главным кнопкам сам */
  .hero-cta .btn-primary::after, #payBtn::after, .sample-cta .btn-primary::after { animation: shine 3.4s var(--ease) infinite; }
}
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

@media (prefers-reduced-motion: reduce) {
  .bud i { animation: none; transform: rotate(var(--a)); }
  .burst-petal, .shower { display: none; }
}

/* ---------- Заказ, поддержка, мои букеты ---------- */
.order-box { display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin: 0 0 30px; padding: 22px 26px; border-radius: var(--radius); border: 1px dashed var(--terra); background: var(--paper); }
.order-box .eyebrow { margin-bottom: 4px; }
.order-no { font-family: var(--serif); font-size: 34px; margin: 0; }
.order-box .res-meta { max-width: 460px; margin-top: 4px; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sup-faq { display: grid; gap: 8px; margin: 16px 0; }
.sup-faq details { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--bg); }
.sup-faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.sup-faq p { font-size: 14px; color: var(--ink-2); margin: 8px 0 2px; }
.sup-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; }
.mine-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.mine-list a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--bg); }
.mine-list a:active, .mine-list a:hover { border-color: var(--ink); }
.mine-list small { color: var(--muted); }
.mine-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--terra); color: #fff; font-size: 12px; }
.footer-help a { color: inherit; }
@media (max-width: 560px) {
  .mine-btn { padding: 9px 12px; font-size: 0; gap: 0; }
  .mine-btn::before { content: '💐'; font-size: 16px; }
  .mine-btn .mine-count { font-size: 11px; margin-left: 4px; }
  .order-box { padding: 18px; }
  .order-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Фото цветов в карточке ---------- */
.flower-row { list-style: none; padding: 0; margin: 16px 0 4px; display: flex; flex-wrap: wrap; gap: 12px 10px; }
.flower-row li { width: 76px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; animation: pop .6s var(--ease) both; }
.flower-row li:nth-child(2) { animation-delay: .06s; } .flower-row li:nth-child(3) { animation-delay: .12s; } .flower-row li:nth-child(4) { animation-delay: .18s; } .flower-row li:nth-child(5) { animation-delay: .24s; } .flower-row li:nth-child(n+6) { animation-delay: .3s; }
.flower-row img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ring, var(--line)), 0 0 0 7px rgba(0,0,0,.08); background: var(--bg-2); margin: 6px; }
.flower-row span { font-size: 12px; line-height: 1.2; color: var(--ink-2); }
.flower-row b { font-size: 12px; color: var(--terra); }
.flower-credit { font-size: 11.5px; color: var(--muted); margin: 0 0 6px; }
.flower-credit a { color: inherit; }
.photo-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.photo-grid li { font-size: 12px; color: var(--ink-2); }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 6px; }
.photo-grid b { display: block; font-size: 13px; color: var(--ink); }
.photo-grid a { color: inherit; }
