/* ============================================================================
 * SynoriaAI · Портфолио-витрина — СТИЛИ
 * Токены сняты 1:1 с флагмана kp.synoria-ai.ru
 * (synoria-stack/services/kp-frontend: tailwind.config.js + landing.css).
 * Правки контента — НЕ здесь, а в portfolio.content.js.
 * ==========================================================================*/
@import url("fonts.css");

:root {
  /* палитра DOC-2: графит — основной, оранжевый — дефицитный акцент */
  --graphite: #132036;
  --graphite-light: #1E3050;
  --graphite-soft: #26395C;
  --orange: #FB4C20;
  --orange-hover: #E04218;
  --orange-soft: #FFF1EC;
  --teal: #2DE6F0;          /* вторичный акцент — очень скупо */
  --canvas: #F8FAFC;
  --ok: #059669;
  --manual: #CA8A04;        /* янтарь — статус «в разработке» */

  /* тёмная герой-тема (как на лендинге) */
  --hero-bg: #0A101E;
  --text-dim: #B4BFD4;
  --text-muted: #7C8AA5;

  /* светлые секции контента */
  --ink: #1E293B;           /* slate-800 */
  --ink-soft: #475569;      /* slate-600 */
  --ink-faint: #64748B;     /* slate-500 */
  --line: #E2E8F0;          /* slate-200 */
  --line-soft: #EEF2F7;

  --radius: 6px;            /* borderRadius.brand = 0.375rem */
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 3px rgba(19,32,54,.08), 0 4px 16px rgba(19,32,54,.06);
  --shadow-lift: 0 10px 34px rgba(19,32,54,.12);
  --maxw: 1180px;
  --font: "Inter", Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
section { scroll-margin-top: 84px; }

/* ── Кнопки (как landing.css) ─────────────────────────────────────────────*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  border-radius: 10px; padding: 14px 28px; border: 1px solid transparent;
  transition: transform .14s ease, filter .14s ease, background .14s ease, box-shadow .14s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 12px 30px rgba(251,76,32,.35); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost-light { background: #fff; color: var(--graphite); border-color: var(--line); box-shadow: var(--shadow-card); }
.btn-ghost-light:hover { background: #fff; filter: brightness(.99); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 9px; box-shadow: none; }
.btn .arw { color: currentColor; }
.btn[data-soon]::after {
  content: "скоро"; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; opacity: .7; margin-left: 2px;
  border: 1px solid currentColor; border-radius: 999px; padding: 1px 6px;
}

/* ── Навигация (sticky, тёмная как hero) ──────────────────────────────────*/
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,16,30,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08); color: #fff;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-left { display: flex; align-items: center; gap: 11px; }
.nav-right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 26px); }
.nav-right .link { color: var(--text-dim); font-size: 14px; transition: color .14s; }
.nav-right .link:hover { color: #fff; }
.nav-cta {
  color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 8px 18px;
  border-radius: 9px; font-size: 14px; font-weight: 500; transition: transform .14s, background .14s;
}
.nav-cta:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); }

/* вордмарк-логотип */
.wm { display: inline-flex; flex-direction: column; line-height: 1.05; }
.wm-name { font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.wm-name i { color: var(--orange); font-style: normal; }
.wm-sub { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); margin-top: 1px; }

/* ── HERO (тёмный, радиальные свечения — как landing.css) ─────────────────*/
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background:
    radial-gradient(1200px 760px at 50% -12%, rgba(45,230,240,.10), transparent 60%),
    radial-gradient(1000px 760px at 92% 116%, rgba(251,76,32,.11), transparent 55%),
    radial-gradient(ellipse at 70% 24%, #1E355C 0%, #142440 46%, #0A101E 100%);
}
.hero .glow { position: absolute; pointer-events: none; animation: glow 3.4s ease-in-out infinite; }
.hero .glow--orange { top: -40px; right: 8%; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(251,76,32,.18), transparent 70%); }
.hero .glow--teal { bottom: -70px; left: 4%; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(45,230,240,.12), transparent 70%); }
@keyframes glow { 0%,100% { opacity: .5 } 50% { opacity: .85 } }

.hero-inner { position: relative; z-index: 2; padding: clamp(48px, 8vh, 96px) 0 clamp(36px, 6vh, 64px); }
.hero-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero-logo { width: 108px; height: auto; }
.mark-sm { width: 42px; height: auto; flex: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-dim);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(251,76,32,.18); }
.hero h1 {
  font-size: clamp(30px, 3.8vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -.01em;
  max-width: 20ch; margin: 0 auto;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero .sub { color: var(--text-dim); max-width: 60ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; margin: 20px auto 0; }
.hero .kicker { color: var(--text-muted); font-size: 14px; letter-spacing: .01em; margin-top: 14px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

.metrics {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.1); background: rgba(6,12,22,.5); color: #fff;
}
.metric { padding: 22px clamp(20px, 4vw, 44px); text-align: left; }
.metric + .metric { border-left: 1px solid rgba(255,255,255,.1); }
.metric b { display: block; font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; }
.metric span { display: block; color: var(--text-muted); font-size: 13px; margin-top: 3px; }

/* ── Секции контента ──────────────────────────────────────────────────────*/
.section { padding: clamp(56px, 9vh, 104px) 0; }
.section-eyebrow { color: var(--orange); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.section-title { font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; letter-spacing: -.01em; color: var(--graphite); margin-top: 10px; }
.section-lead { color: var(--ink-soft); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; max-width: 68ch; margin-top: 16px; }
.section--tint { background: linear-gradient(180deg, #fff, var(--canvas)); }

.prose p { color: var(--ink-soft); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; max-width: 72ch; }
.prose p + p { margin-top: 16px; }

/* ── Ключевой блок: продукт по подписке ──────────────────────────────────*/
.subscription { background: var(--graphite); color: #fff; position: relative; overflow: hidden; }
.subscription::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 88% -10%, rgba(251,76,32,.12), transparent 60%);
}
.subscription .section-title { color: #fff; max-width: 24ch; }
.subscription .section-eyebrow { color: var(--orange); }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 36px; position: relative; z-index: 1; }
.sub-point {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg); padding: 22px;
}
.sub-point h3 { font-size: 16px; font-weight: 700; display: flex; gap: 10px; align-items: baseline; }
.sub-point h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; transform: translateY(-1px); }
.sub-point p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; margin-top: 8px; }
.sub-quote {
  margin-top: 34px; position: relative; z-index: 1; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5;
  font-weight: 600; color: #fff; border-left: 3px solid var(--orange); padding: 4px 0 4px 20px; max-width: 60ch;
}

/* ── Что умеем: карточки + стек ───────────────────────────────────────────*/
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 36px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-card); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: 17px; font-weight: 700; color: var(--graphite); }
.card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin-top: 8px; }

.stack-wrap { margin-top: 44px; }
.stack-title { font-size: 14px; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  color: var(--graphite); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 8px 16px; box-shadow: var(--shadow-card);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--graphite-soft); }

/* фраза-крючок «не предел» — акцент-плашка */
.hook {
  margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  background: linear-gradient(100deg, var(--graphite), var(--graphite-light));
  color: #fff; border-radius: var(--radius-lg); padding: 26px 30px; box-shadow: var(--shadow-lift);
}
.hook b { font-size: clamp(18px, 2vw, 26px); font-weight: 700; }
.hook b i { color: var(--orange); font-style: normal; }
.hook span { color: var(--text-dim); font-size: 15px; }

/* ── Продукты ─────────────────────────────────────────────────────────────*/
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  border-radius: var(--radius-pill); padding: 5px 13px; letter-spacing: .01em;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--live { color: var(--orange); background: var(--orange-soft); }
.badge--early { color: var(--manual); background: #FEF6E0; }

.flagship {
  margin-top: 36px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-card); overflow: hidden;
}
.flagship-body { padding: clamp(24px, 3vw, 40px); }
.flagship-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.flagship-star { color: var(--orange); font-size: 20px; }
.flagship h3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; color: var(--graphite); }
.flagship .lead { font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; color: var(--graphite); margin-top: 14px; max-width: 60ch; }
.flagship .body { color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin-top: 12px; max-width: 74ch; }
.feat-chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.feat { font-size: 12.5px; font-weight: 600; color: var(--graphite); background: var(--orange-soft); border: 1px solid #f6d3c6; border-radius: var(--radius-pill); padding: 6px 13px; }
.flagship .cta-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.early-card .early-text .badge { margin-bottom: 10px; }
.flagship .cta-row .btn-primary { box-shadow: 0 10px 26px rgba(251,76,32,.28); }
.dim-note { color: var(--ink-faint); font-size: 13.5px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; }
.early-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 28px; }
.early-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
}
.early-card .early-text { padding: 22px 24px 24px; }
.early-card h3 { font-size: 18px; font-weight: 700; color: var(--graphite); margin-top: 12px; }
.early-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin-top: 8px; }
.early-intro { color: var(--ink-soft); font-size: 15px; margin-top: 14px; }
.early-outro {
  margin-top: 28px; font-size: clamp(16px, 1.5vw, 20px); font-weight: 600; color: var(--graphite);
  border-left: 3px solid var(--orange); padding-left: 18px; max-width: 70ch;
}

/* ── Скрин-слот (плейсхолдер + реальная картинка) ─────────────────────────*/
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--canvas); }
.shot figure { margin: 0; }
.shot-frame {
  position: relative; aspect-ratio: 16 / 10; background:
    linear-gradient(135deg, #EDF1F7, #F6F8FC);
  display: grid; place-items: center; overflow: hidden;
}
.shot-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-ph {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  color: var(--ink-faint); padding: 18px; width: 100%;
}
.shot-ph::before {
  content: ""; width: 34px; height: 34px; border-radius: 8px; border: 2px dashed #C3CEDE;
  background:
    linear-gradient(45deg, transparent 46%, #C3CEDE 46%, #C3CEDE 54%, transparent 54%),
    radial-gradient(circle at 68% 34%, #C3CEDE 3px, transparent 3.5px);
}
.shot-ph b { font-weight: 700; color: var(--ink-soft); font-size: 13px; }
.shot-ph small { font-size: 12.5px; }
.shot figcaption { padding: 12px 14px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; background: #fff; border-top: 1px solid var(--line-soft); }
.early-card .shot { border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.early-card .shot figcaption { border-radius: 0; }

/* ── Экспертиза (одиночный широкий скрин) ─────────────────────────────────*/
.expertise-shot { margin-top: 28px; max-width: 760px; }
.expertise-shot .shot-frame { aspect-ratio: 16 / 9; }

/* ── Как заходим в работу (шаги) ──────────────────────────────────────────*/
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 36px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card); position: relative; }
.step .num {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--graphite); color: #fff; font-weight: 700; font-size: 16px;
}
.step h3 { font-size: 16px; font-weight: 700; color: var(--graphite); margin-top: 16px; }
.step p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin-top: 8px; }

/* ── Контакты ─────────────────────────────────────────────────────────────*/
.contacts { background: var(--graphite); color: #fff; text-align: center; position: relative; overflow: hidden; }
.contacts::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 50% 130%, rgba(251,76,32,.14), transparent 60%),
    radial-gradient(600px 380px at 12% -10%, rgba(45,230,240,.10), transparent 60%);
}
.contacts .inner { position: relative; z-index: 1; }
.contacts .section-title { color: #fff; }
.contacts p { color: var(--text-dim); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; max-width: 58ch; margin: 16px auto 0; }
.contacts .cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; margin-top: 26px; color: var(--text-dim); font-size: 14.5px; }
.contact-lines a, .contact-lines span { color: #fff; }
.contact-lines .k { color: var(--text-muted); margin-right: 6px; }

/* ── Футер ────────────────────────────────────────────────────────────────*/
.footer { background: var(--hero-bg); color: var(--text-muted); padding: 30px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .wm-name { color: #fff; }
.footer a:hover { color: #fff; }

/* ── Появление при скролле (rise-in) ──────────────────────────────────────*/
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* металлический блик по логотипу — «вдох» (как synoria-brand.js) */
.sheen { animation: sheen 3.6s ease-in-out infinite; }
@keyframes sheen { 0%,55%,100% { transform: translateX(-1px); } }

/* ── Адаптив ──────────────────────────────────────────────────────────────*/
@media (max-width: 860px) {
  .nav-right .link { display: none; }
  .metrics { grid-template-columns: 1fr; }
  .metric + .metric { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
  .footer-inner { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .btn { width: 100%; }
  .hero .cta-row .btn, .contacts .cta-row .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .glow, .sheen { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .nav-cta:hover { transform: none; }
}
