/* HOME-V3 (2026-11-07): главная siteai.lv, концепция A «продукт в деле» — выбрал Игорь.
   Тёмная сцена, бронзовый акцент, шрифт Manrope (латышские буквы + кириллица). */
:root{
  --bg:#111; --surface:#1c1c1c; --surface-2:#262626; --line:#2c2c2c;
  --ink:#f2f2f2; --ink-2:#cfcfcf; --muted:#a3a3a3;
  --accent:#c9a98c; --accent-hover:#d8bca2; --accent-ink:#111;
  --m:32px; --r:20px; --r-s:12px;
  --step-small:clamp(.875rem,.85rem + .1vw,.9375rem);
  --step-body:clamp(1.0625rem,1rem + .2vw,1.1875rem);
  --step-lead:clamp(1.1875rem,1.05rem + .45vw,1.375rem);
  --step-h2:clamp(2rem,1.3rem + 2.3vw,3.25rem);
  --step-h1:clamp(2.6rem,1.4rem + 3.5vw,4.75rem);
  --font:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{background:var(--bg);color:var(--ink);font:400 var(--step-body)/1.55 var(--font);-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.skip{position:absolute;left:-999px;top:0;background:var(--accent);color:var(--accent-ink);padding:10px 14px;z-index:9}
.skip:focus{left:8px}
.wrap{max-width:1500px;margin:0 auto;padding:0 var(--m)}
.sec{padding-top:clamp(110px,11vw,180px)}
h2{font-weight:600;font-size:var(--step-h2);line-height:1.05;letter-spacing:-.03em;max-width:18ch}
.lead{font-size:var(--step-lead);color:var(--ink-2);max-width:34ch}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 28px;border:0;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-weight:600;font-size:17px;cursor:pointer;transition:background .15s,transform .15s}
.btn:hover{background:var(--accent-hover)}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.6;cursor:default}

/* ── Шапка ──────────────────────────────── */
.top{display:flex;align-items:center;gap:26px;padding:22px var(--m);max-width:1500px;margin:0 auto;font-size:15px}
.top .wm{font-weight:700;font-size:21px;letter-spacing:-.02em;margin-right:auto}
.top nav{display:flex;gap:26px}
.top nav a:hover,.top .login:hover{color:var(--accent)}
.langs{display:flex;gap:2px}
.langs a{padding:6px 9px;border-radius:999px;color:var(--muted);font-weight:600;font-size:13px}
.langs a[aria-current="true"]{background:var(--surface-2);color:var(--ink)}
.top .btn{min-height:42px;padding:0 18px;font-size:15px}

/* ── Первый экран ───────────────────────── */
.hero{display:grid;grid-template-columns:5fr 7fr;gap:clamp(32px,4vw,64px);padding-top:clamp(28px,4vw,64px);align-items:start}
h1{font-weight:600;font-size:clamp(2.3rem,1.1rem + 2.9vw,4.1rem);line-height:1.02;letter-spacing:-.04em}
.hero .lead{margin:24px 0 30px}
.facts{display:flex;flex-wrap:wrap;gap:12px 32px;margin-top:30px;color:var(--muted);font-size:15px}
.facts b{display:block;color:var(--ink);font-size:24px;font-weight:600;letter-spacing:-.02em}

/* форма пробы — живая вещь */
.try label{display:block;font-weight:600;margin-bottom:10px}
.try textarea{width:100%;min-height:92px;padding:16px 18px;border:0;border-radius:var(--r-s);background:var(--surface-2);font-size:var(--step-body);line-height:1.45;resize:vertical}
.try textarea::placeholder{color:#8a8a8a}
.try .row{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin-top:12px}
.try .row span{color:var(--muted);font-size:var(--step-small)}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.chips button{border:0;border-radius:999px;background:var(--surface);color:var(--ink-2);padding:8px 14px;font-size:14px;cursor:pointer;transition:background .15s,color .15s}
.chips button:hover{background:var(--surface-2);color:var(--ink)}
.try .err{min-height:1.4em;color:#f0a58f;font-size:var(--step-small);margin-top:6px}

/* сцена: печать фразы → готовый сайт */
.stage{background:var(--surface);border-radius:var(--r);padding:clamp(14px,1.6vw,22px)}
.typer{background:var(--surface-2);border-radius:var(--r-s);padding:16px 20px;min-height:88px;font-size:var(--step-body);color:#eee}
.typer .cur{display:inline-block;width:2px;height:1.1em;background:var(--accent);vertical-align:-3px;margin-left:1px;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.prog{display:flex;align-items:center;gap:12px;margin:14px 4px;font-size:14px;color:var(--muted)}
.prog i{flex:1;height:4px;background:var(--line);border-radius:4px;overflow:hidden}
.prog i span{display:block;height:100%;width:100%;background:var(--accent);transform:scaleX(0);transform-origin:left}
.shot{border-radius:var(--r-s);overflow:hidden;aspect-ratio:16/10.5;background:#222}
.shot img{width:100%;height:100%;object-fit:cover;object-position:top;transition:opacity .35s,transform .6s}
.shot img.out{opacity:0;transform:translateY(8px)}
.stage .cap{display:flex;justify-content:space-between;gap:12px;margin:12px 4px 2px;font-size:14px;color:var(--muted)}
.stage .cap a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* ── Примеры ────────────────────────────── */
.show-head{display:grid;grid-template-columns:5fr 7fr;gap:clamp(32px,4vw,64px);align-items:end;margin-bottom:44px}
.show{display:grid;grid-template-columns:5fr 7fr;gap:clamp(32px,4vw,64px);align-items:start}
.pick{display:flex;flex-direction:column;gap:6px}
.pick button{display:block;width:100%;text-align:left;border:0;border-radius:var(--r-s);background:transparent;padding:16px 18px;cursor:pointer;transition:background .15s}
.pick button b{display:block;font-weight:600;font-size:var(--step-body)}
.pick button span{display:block;font-size:15px;color:var(--muted);line-height:1.45;margin-top:4px}
.pick button:hover{background:var(--surface)}
.pick button[aria-pressed="true"]{background:var(--surface-2)}
.pick button[aria-pressed="true"] b{color:var(--accent)}
.pick .note{font-size:14px;color:var(--muted);padding:14px 18px 0}
.view{position:sticky;top:24px;display:grid;grid-template-columns:3fr 1fr;gap:14px;align-items:end}
.view .d,.view .m{border-radius:var(--r-s);overflow:hidden;background:#222}
.view .d{aspect-ratio:16/11}.view .m{aspect-ratio:9/19}
.view img{width:100%;height:100%;object-fit:cover;object-position:top;transition:opacity .25s}
.view .open{grid-column:1/-1;justify-self:start}

/* ── Как это работает ───────────────────── */
.steps{list-style:none;display:grid;grid-template-columns:1fr 4fr 3fr 2fr;gap:10px;margin-top:48px}
.steps li{background:var(--surface);border-radius:var(--r-s);padding:22px;min-height:190px;display:flex;flex-direction:column;justify-content:space-between;gap:24px}
.steps li:nth-child(2){background:var(--accent);color:var(--accent-ink)}
.steps strong{font-weight:600;font-size:clamp(1.4rem,1rem + 1vw,2rem);letter-spacing:-.02em;line-height:1.05}
.steps p{font-size:16px;line-height:1.45;max-width:26ch}
.steps li:nth-child(2) p{color:#2a2420}

/* ── Возможности: строки 5/7 с фрагментами ── */
.feats{display:flex;flex-direction:column;gap:clamp(56px,6vw,96px);margin-top:56px}
.feat{display:grid;grid-template-columns:5fr 7fr;gap:clamp(32px,4vw,64px);align-items:center}
.feat h3{font-weight:600;font-size:clamp(1.5rem,1.1rem + 1vw,2.1rem);line-height:1.1;letter-spacing:-.02em;margin-bottom:12px}
.feat > div > p{color:var(--ink-2);max-width:36ch}
.ui .card p{color:inherit}
.ui{background:var(--surface);border-radius:var(--r);padding:clamp(16px,2vw,28px);width:100%}
.ui .card{background:#fff;color:#1e1e1e;border-radius:var(--r-s);padding:18px 20px;font-size:15px;line-height:1.45}
.feat:nth-child(1) .ui{max-width:520px}
.feat:nth-child(2) .ui{max-width:640px;justify-self:end}
.feat:nth-child(3) .ui{max-width:460px}
.feat:nth-child(4) .ui{max-width:700px;justify-self:end}
.feat:nth-child(5) .ui{max-width:560px}
.feat:nth-child(6) .ui{max-width:640px;justify-self:end}
.ui .seg3{display:inline-flex;background:#f0f0f0;border-radius:999px;padding:3px}
.ui .seg3 span{padding:7px 14px;border-radius:999px;font-weight:600;font-size:14px}
.ui .seg3 .on{background:#1e1e1e;color:#fff}
.ui .in{background:#f2f2f2;border-radius:8px;padding:12px 14px;font-weight:600}
.ui .r{display:flex;justify-content:space-between;gap:14px;padding:10px 2px}
.ui .ok{color:#2f7a3a;font-weight:600}
.ui .tb{display:flex;gap:6px;margin-bottom:12px}
.ui .tb span{background:#1e1e1e;color:#fff;border-radius:6px;padding:4px 10px;font-size:13px}
.ui .ed{outline:2px dashed #a0805f;outline-offset:3px;border-radius:2px}
.ui .g-url{color:#1e6b2a;font-size:13px}
.ui .g-title{color:#1a0dab;font-size:19px;line-height:1.3;margin:2px 0}
.ui .g-desc{color:#4d5156;font-size:14px}
.ui .phones{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ui .phones img{height:auto;border-radius:10px;aspect-ratio:390/844;object-fit:cover;object-position:top;width:100%}

/* ── Цены ───────────────────────────────── */
.ptable{width:100%;border-collapse:separate;border-spacing:0;margin-top:44px;font-size:18px}
.ptable th,.ptable td{text-align:left;vertical-align:top;padding:16px 20px;font-weight:400}
.ptable thead th{padding-top:24px;padding-bottom:20px}
.ptable thead .pn{display:block;font-weight:600;font-size:clamp(1.4rem,1rem + 1.2vw,2.2rem);letter-spacing:-.02em}
.ptable thead .pp{display:block;font-size:clamp(1.4rem,1rem + 1.2vw,2.2rem);letter-spacing:-.02em;margin-top:2px}
.ptable thead .pp small{font-size:15px;letter-spacing:0;color:var(--muted)}
.ptable tbody th{color:var(--ink-2)}
.ptable tbody tr:nth-child(odd) > *{background:var(--surface)}
.ptable .rec{background:var(--surface-2)!important;color:var(--ink)}
.ptable thead .rec .pn{color:var(--accent)}
.ptable tfoot td{padding-top:20px}
.ptable tfoot .btn{width:100%}
.mob-plans{display:none}
.price-more{margin-top:24px;color:var(--ink-2);max-width:80ch}
.price-more a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* ── Вопросы ────────────────────────────── */
.faq{display:grid;grid-template-columns:5fr 7fr;gap:clamp(32px,4vw,64px);margin-top:44px;align-items:start}
.faq-list{list-style:none;display:flex;flex-direction:column;gap:4px}
.faq-list button{display:flex;gap:14px;align-items:baseline;width:100%;text-align:left;border:0;border-radius:var(--r-s);background:transparent;padding:12px 16px;font-size:17px;line-height:1.4;color:var(--muted);cursor:pointer;transition:background .15s,color .15s}
.faq-list button::before{content:"";flex:0 0 8px;height:8px;border-radius:50%;background:#555;transform:translateY(-2px)}
.faq-list button:hover,.faq-list button[aria-expanded="true"]{background:var(--surface);color:var(--ink)}
.faq-list button[aria-expanded="true"]::before{background:var(--accent)}
.faq-list .inline{display:none}
.faq-pane{position:sticky;top:32px;background:var(--surface);border-radius:var(--r);padding:clamp(24px,3vw,40px);font-size:clamp(1.25rem,1.05rem + .6vw,1.6rem);line-height:1.4;transition:opacity .15s}

/* ── Финальный призыв ───────────────────── */
.cta{background:var(--surface);border-radius:var(--r);padding:clamp(28px,4vw,64px);display:grid;grid-template-columns:5fr 7fr;gap:clamp(32px,4vw,64px);align-items:center}
.cta h2{max-width:14ch}
.cta .sub{color:var(--ink-2);margin-top:16px;max-width:34ch}

/* ── Подвал ─────────────────────────────── */
footer{margin-top:clamp(110px,11vw,180px);background:#0b0b0b;padding:64px 0 36px}
.foot{display:grid;grid-template-columns:2fr 2fr 4fr 2fr 2fr;gap:28px}
.foot .wm{font-weight:700;font-size:28px;letter-spacing:-.02em;margin-bottom:10px;display:block}
.foot h3{font-weight:600;font-size:15px;color:var(--muted);margin-bottom:12px}
.foot ul{list-style:none}
.foot .two ul{columns:2;column-gap:24px}
.foot li{font-size:15px;line-height:1.35;margin-bottom:9px;break-inside:avoid}
.foot a:hover{color:var(--accent)}
.foot .co{font-size:15px;color:var(--ink-2);line-height:1.55}
.foot .last{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:28px;color:var(--muted);font-size:14px}

/* ── Движение: появление частей ─────────── */
.js .rise{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i,0) * 80ms)}
.js .rise.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.js .rise{opacity:1;transform:none;transition:none}.typer .cur{animation:none}}

/* ── Планшет ────────────────────────────── */
@media (max-width:1100px){
  .top nav{display:none}
  .hero,.show-head,.show,.feat,.faq,.cta{grid-template-columns:1fr}
  .view{position:static}
  .feat .ui{justify-self:start!important}
  .steps{grid-template-columns:1fr 1fr}
  .foot{grid-template-columns:1fr 1fr}
  .foot .two{grid-column:1/-1}
}
/* ── Телефон ────────────────────────────── */
@media (max-width:720px){
  :root{--m:16px}
  .top{gap:12px;padding:14px var(--m)}
  .top .btn{display:none}
  .top .login{font-weight:600;color:var(--accent)}
  .langs a{padding:6px 7px}
  h1{font-size:clamp(2rem,8.6vw,3rem)}
  .facts b{font-size:21px}
  .chips{display:none}
  .view{grid-template-columns:1fr}
  .view .m{display:none}
  .steps{grid-template-columns:1fr}
  .steps li{min-height:0}
  .ui .phones{gap:6px}
  .ptable{display:none}
  .mob-plans{display:block;margin-top:28px}
  .mob-plans .plan{background:var(--surface);border-radius:var(--r);padding:22px 18px;margin-bottom:12px}
  .mob-plans .plan.rec{background:var(--surface-2)}
  .mob-plans .plan.rec h3{color:var(--accent)}
  .mob-plans h3{font-weight:600;font-size:26px;letter-spacing:-.02em}
  .mob-plans dl{margin:12px 0 18px}
  .mob-plans dt{font-size:14px;color:var(--muted);margin-top:10px}
  .mob-plans dd{font-size:17px}
  .mob-plans .btn{width:100%}
  .faq-pane{display:none}
  .faq-list .inline{padding:4px 16px 14px 38px;font-size:17px;line-height:1.5;color:var(--ink-2)}
  .faq-list button[aria-expanded="true"] + .inline{display:block}
  .foot{grid-template-columns:1fr}
}
