/* Timagin API — общий стиль (палитра и шрифты в одном семействе с thalors.ai, свой первый экран) */
section[id] { scroll-margin-top: 96px; }
:root {
  --radius: 1rem;
  --background: oklch(0.982 0.005 255);
  --foreground: oklch(0.21 0.03 265);
  --card: oklch(1 0 0);
  --primary: oklch(0.56 0.13 252);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.94 0.035 250);
  --muted: oklch(0.955 0.008 255);
  --muted-foreground: oklch(0.55 0.03 257);
  --success: oklch(0.65 0.15 155);
  --warning: oklch(0.75 0.15 70);
  --border: oklch(0.925 0.01 250);
  --ink: oklch(0.17 0.025 250);
  --ink-2: oklch(0.25 0.03 250);
  --ink-3: oklch(0.32 0.03 250);
  --ink-foreground: oklch(0.97 0.005 250);
  --ink-muted: oklch(0.72 0.02 250);
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Manrope", "Inter", ui-sans-serif, sans-serif;
  --gradient-ink: linear-gradient(160deg, var(--ink-2), var(--ink) 60%);
}
* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.05; }
a { color: inherit; text-decoration: none; }
.cx { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .cx { padding-inline: 2rem; } }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin: 0; }
.bg-card { background: var(--card); }
.bg-hero-premium { background-image: radial-gradient(55% 60% at 78% 38%, oklch(0.86 0.07 245 / 0.55), transparent 70%), radial-gradient(35% 40% at 8% 10%, oklch(0.95 0.025 240 / 0.9), transparent 70%), linear-gradient(180deg, oklch(0.985 0.004 250), oklch(0.968 0.01 250)); }
.hero-lines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, oklch(0.5 0.05 255 / 0.06) 1px, transparent 1px), linear-gradient(to bottom, oklch(0.5 0.05 255 / 0.06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, black, transparent 75%); mask-image: radial-gradient(70% 60% at 70% 40%, black, transparent 75%); }
.glow-blue { background: radial-gradient(closest-side, oklch(0.62 0.15 250 / 0.45), transparent); }
.shadow-deep { box-shadow: 0 1px 0 oklch(1 0 0 / 0.06) inset, 0 40px 80px -30px oklch(0.2 0.06 255 / 0.55), 0 18px 36px -18px oklch(0.2 0.04 255 / 0.35); }
.shadow-card { box-shadow: 0 1px 1px oklch(0.2 0.03 260 / 0.04), 0 12px 28px -10px oklch(0.25 0.05 255 / 0.22); }

/* анимации */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.anim-rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.idle-a { animation: floaty2 7s ease-in-out infinite; }
.idle-b { animation: floaty2 8s ease-in-out 1.2s infinite; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none; animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes floaty2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 oklch(0.65 0.15 155 / .5); } 50% { box-shadow: 0 0 0 6px oklch(0.65 0.15 155 / 0); } }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .anim-rise, .idle-a, .idle-b, .live-dot { animation: none; } }

/* шапка — плавающая капсула */
.nb-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; pointer-events: none; }
.nb { pointer-events: auto; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 24px; height: 60px; padding: 0 10px 0 22px; border-radius: 999px;
  background: oklch(0.2 0.03 255 / .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid oklch(1 0 0 / .1); box-shadow: 0 10px 40px -12px oklch(0.1 0.03 255 / .6); color: #fff; transition: background .3s; }
.nb-wrap.scrolled .nb { background: oklch(0.17 0.025 250 / .82); }
.nb-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.nb-logo span:last-child { color: oklch(0.8 0.12 220); font-weight: 600; }
.nb-mark { position: relative; width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(from 200deg, oklch(0.8 0.14 200), oklch(0.62 0.17 255), oklch(0.6 0.2 295), oklch(0.8 0.14 200)); animation: spin 8s linear infinite; }
.nb-mark i { position: absolute; inset: 6px; border-radius: 50%; background: oklch(0.17 0.025 250); }
@keyframes spin { to { transform: rotate(360deg); } }
.nb-nav { display: flex; gap: 4px; margin: 0 auto; }
.nb-nav a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: oklch(1 0 0 / .72); transition: .2s; }
.nb-nav a:hover { color: #fff; background: oklch(1 0 0 / .08); }
.nb-act { display: flex; align-items: center; gap: 6px; }
.nb-in { padding: 8px 14px; font-size: 14.5px; font-weight: 600; color: oklch(1 0 0 / .85); }
.nb-in:hover { color: #fff; }

/* кнопки-пилюли */
.pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: .25s; white-space: nowrap; }
.pill-w { height: 42px; background: #fff; color: var(--ink); }
.pill-w:hover { background: oklch(0.93 0.03 230); }
.pill-g { height: 56px; padding: 0 10px 0 28px; font-size: 16px; color: #fff; background: linear-gradient(110deg, oklch(0.62 0.17 255), oklch(0.66 0.15 220)); box-shadow: 0 16px 40px -14px oklch(0.62 0.17 255 / .8), inset 0 1px 0 oklch(1 0 0 / .25); }
.pill-g:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -14px oklch(0.62 0.17 255 / .95), inset 0 1px 0 oklch(1 0 0 / .25); }
.pill-ar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: oklch(1 0 0 / .18); transition: transform .3s; }
.pill-g:hover .pill-ar { transform: translateX(3px); }
.pill-o { height: 56px; padding: 0 26px; font-size: 16px; color: #fff; border: 1px solid oklch(1 0 0 / .22); }
.pill-o:hover { background: oklch(1 0 0 / .08); border-color: oklch(1 0 0 / .4); }

/* первый экран — тёмный, с «северным сиянием» */
.hx { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 80% at 50% 0%, oklch(0.24 0.05 260), oklch(0.15 0.025 255) 60%, oklch(0.13 0.02 255)); padding: 150px 0 110px; }
.hx-aurora { position: absolute; inset: 0; filter: blur(70px); opacity: .75; }
.hx-aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.hx-aurora i:nth-child(1) { width: 560px; height: 380px; left: -120px; top: -80px; background: oklch(0.55 0.2 270 / .55); }
.hx-aurora i:nth-child(2) { width: 520px; height: 420px; right: -140px; top: 40px; background: oklch(0.65 0.15 210 / .45); animation-duration: 22s; }
.hx-aurora i:nth-child(3) { width: 600px; height: 300px; left: 30%; bottom: -180px; background: oklch(0.6 0.17 250 / .4); animation-duration: 26s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,40px) scale(1.15); } }
.hx-dots { position: absolute; inset: 0; background-image: radial-gradient(oklch(1 0 0 / .14) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 80%); }
.hx-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hx-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: oklch(1 0 0 / .85); background: oklch(1 0 0 / .07); border: 1px solid oklch(1 0 0 / .12); animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hx-title { margin: 26px 0 0; font-size: 70px; font-weight: 800; line-height: 1.02; letter-spacing: -.045em; animation: rise .8s cubic-bezier(.2,.7,.2,1) .1s both; }
.hx-grad { background: linear-gradient(100deg, oklch(0.85 0.12 200), oklch(0.72 0.16 250) 50%, oklch(0.75 0.17 300)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 6s ease-in-out infinite alternate; }
@keyframes shine { to { background-position: 100% 0; } }
.hx-lead { margin: 26px 0 0; max-width: 560px; font-size: 19.5px; line-height: 1.6; color: oklch(1 0 0 / .7); animation: rise .8s cubic-bezier(.2,.7,.2,1) .2s both; }
.hx-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; animation: rise .8s cubic-bezier(.2,.7,.2,1) .3s both; }
.hx-models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; animation: rise .8s cubic-bezier(.2,.7,.2,1) .4s both; }
.hx-models span { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: oklch(1 0 0 / .65); background: oklch(1 0 0 / .05); border: 1px solid oklch(1 0 0 / .09); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* калькулятор */
.calc { position: relative; padding: 28px; border-radius: 28px; color: var(--foreground); background: oklch(1 0 0 / .96); box-shadow: 0 40px 90px -30px oklch(0.05 0.03 255 / .8), 0 0 0 1px oklch(1 0 0 / .3), 0 0 0 10px oklch(1 0 0 / .05); }
.calc-h small, .calc-h span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.calc-h b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.calc-tabs { display: flex; gap: 4px; padding: 4px; margin-top: 20px; border-radius: 14px; background: var(--muted); flex-wrap: wrap; }
.calc-tabs button { flex: 1; min-width: 70px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted-foreground); cursor: pointer; transition: .2s; }
.calc-tabs button.on { background: #fff; color: var(--foreground); box-shadow: 0 2px 8px -2px oklch(0.2 0.03 260 / .2); }
.calc-l { display: flex; justify-content: space-between; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.calc-l output { font-family: var(--font-display); font-weight: 800; color: var(--foreground); }
.calc input[type=range] { --p: 4%; -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 14px 0 0; border-radius: 99px; outline: none;
  background: linear-gradient(90deg, oklch(0.62 0.17 255), oklch(0.7 0.14 215)) 0 0 / var(--p) 100% no-repeat, var(--muted); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 6px solid oklch(0.62 0.17 255); box-shadow: 0 4px 12px oklch(0.62 0.17 255 / .5); cursor: pointer; }
.calc input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid oklch(0.62 0.17 255); cursor: pointer; }
.calc-res { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin-top: 22px; }
.calc-res > div { padding: 16px; border-radius: 16px; background: var(--muted); }
.calc-res small { display: block; font-size: 13px; color: var(--muted-foreground); }
.calc-res b { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.calc-res .calc-main { color: #fff; background: linear-gradient(130deg, oklch(0.25 0.05 260), oklch(0.17 0.025 250)); }
.calc-res .calc-main small { color: oklch(1 0 0 / .6); }
.calc-res .calc-main b { font-size: 30px; }
.calc-row { display: flex; justify-content: space-between; margin-top: 14px; padding: 0 4px; font-size: 14px; color: var(--muted-foreground); }
.calc-row b { color: var(--foreground); }
.calc-note { margin: 12px 4px 0; font-size: 12.5px; line-height: 1.5; color: var(--muted-foreground); }

@media (max-width: 1100px) { .hx-grid { grid-template-columns: 1fr; } .calc { max-width: 520px; } .hx-title { font-size: 56px; } }
@media (max-width: 767px) {
  .nb-nav, .nb-in { display: none; } .nb { gap: 10px; justify-content: space-between; }
  .hx { padding: 120px 0 70px; } .hx-title { font-size: 40px; } .hx-lead { font-size: 17px; }
  .pill-g, .pill-o { height: 52px; } .calc { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .hx-aurora i, .nb-mark, .hx-grad { animation: none; } }

/* секции */
.sec { padding: 96px 0; }
.sh { max-width: 720px; margin-bottom: 48px; }
.sh h2 { font-size: 52px; font-weight: 800; margin: 14px 0 0; }
.sh-lead { margin: 16px 0 0; font-size: 19px; color: var(--muted-foreground); }
.sh-lead b { color: var(--foreground); }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.ben { background: var(--card); padding: 32px 28px; transition: background .3s; }
.ben:hover { background: oklch(0.985 0.006 250); }
.ben-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px 12px 12px 3px; background: var(--secondary); color: var(--primary); font-family: var(--font-display); font-weight: 800; font-size: 16px; margin-bottom: 22px; }
.ben h3 { font-size: 21px; font-weight: 800; margin: 0 0 8px; }
.ben p { margin: 0; color: var(--muted-foreground); font-size: 15.5px; }

/* тёмная секция с ценами */
.ink { background: var(--gradient-ink); color: var(--ink-foreground); position: relative; overflow: hidden; }
.ink .eyebrow { color: oklch(0.8 0.12 220); }
.ink .sh-lead, .ink .note { color: var(--ink-muted); }
.plist { background: color-mix(in oklab, var(--ink-2) 70%, transparent); border: 1px solid var(--ink-3); border-radius: 24px; overflow: hidden; max-width: 980px; }
.plist table { width: 100%; border-collapse: collapse; }
.plist th { text-align: left; color: var(--ink-muted); font-weight: 500; font-size: 13px; padding: 18px 28px; border-bottom: 1px solid var(--ink-3); }
.plist td { padding: 18px 28px; border-bottom: 1px solid color-mix(in oklab, var(--ink-3) 70%, transparent); }
.plist tr:last-child td { border-bottom: 0; }
.plist .r { text-align: right; white-space: nowrap; }
.plist .gh td { padding-top: 26px; padding-bottom: 10px; border-bottom: 0; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: oklch(0.75 0.11 252); }
.plist .gnote { margin-left: 10px; padding: 3px 10px; border-radius: 99px; font-family: var(--font-sans); font-size: 11px; letter-spacing: 0; text-transform: none; color: oklch(0.85 0.13 75); background: oklch(0.75 0.15 70 / .14); border: 1px solid oklch(0.75 0.15 70 / .3); }
.plist .mn { font-weight: 600; font-size: 17px; }
.plist .pr { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.plist tbody tr:not(.gh):hover td { background: oklch(1 0 0 / .03); }
.plist .off td { opacity: .45; }
.note { margin: 18px 0 0; font-size: 14px; max-width: 760px; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 24px 24px 24px 6px; padding: 34px 30px; box-shadow: 0 1px 1px oklch(0.2 0.03 260 / 0.04), 0 12px 28px -18px oklch(0.25 0.05 255 / 0.22); }
.step-n { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklab, var(--primary) 55%, transparent); }
.step h3 { font-size: 22px; font-weight: 800; margin: 14px 0 8px; }
.step p { margin: 0; color: var(--muted-foreground); }

/* подключение */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.conn { background: var(--background); border: 1px solid var(--border); border-radius: 24px; padding: 32px; }
.conn h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.conn p { margin: 0; color: var(--muted-foreground); }
.code { margin: 18px 0 0; padding: 16px 18px; background: var(--ink); color: oklch(0.88 0.01 250); border-radius: 14px; font: 13.5px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: auto; }

/* faq */
.faq { max-width: 860px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px 10px 10px 2px; background: var(--secondary); color: var(--primary); font-size: 20px; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted-foreground); max-width: 720px; }

/* cta */
.cta { position: relative; overflow: hidden; border-radius: 32px 32px 32px 8px; padding: 72px 56px; }
.cta-glow { position: absolute; width: 520px; height: 520px; right: -120px; top: -200px; opacity: .9; }
.cta h2 { position: relative; font-size: 52px; font-weight: 800; margin: 14px 0 0; }
.cta .sh-lead { position: relative; }
.cta .pill-g, .cta .pill-o { position: relative; }
.cta-row { position: relative; display: flex; align-items: center; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.ft { border-top: 1px solid var(--border); padding: 32px 0 44px; color: var(--muted-foreground); font-size: 15px; }
.ft-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ft a:hover { color: var(--primary); }

/* адаптив */
@media (max-width: 1100px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .sec { padding: 64px 0; } .sh h2, .cta h2 { font-size: 34px; }
  .benefits, .steps, .two { grid-template-columns: 1fr; }
  .plist th, .plist td { padding: 14px 16px; } .plist .mn { font-size: 15px; } .plist .pr { font-size: 16px; }
  .cta { padding: 48px 26px; }
}
