/* ============================================================
   ВЕБПОИСК.РФ — дизайн-система (UI/UX Pro Max)
   Style: Enterprise SaaS × Swiss grid · Light, premium, trustworthy
   Type: Plus Jakarta Sans · Accent: Indigo→Violet · Colored shadows
   Единая сетка, единые контейнеры и отступы (8px-rhythm).
   ============================================================ */

:root {
  /* поверхности */
  --bg:        #ffffff;
  --bg-soft:   #f6f8fc;
  --bg-deep:   #0f1729;          /* тёмные секции/футер для контраста доверия */
  --card:      #ffffff;

  /* текст */
  --text:      #0f172a;          /* navy */
  --muted:     #5b6678;
  --muted-2:   #8a93a4;
  --on-deep:   #e8edf7;

  /* бренд */
  --primary:   #4f46e5;          /* indigo */
  --primary-2: #7c3aed;          /* violet */
  --primary-d: #4338ca;
  --accent:    #059669;          /* emerald (успех/доверие) */
  --tint:      #eef0ff;          /* светлый indigo фон */
  --ring:      #6366f1;

  --border:    #e6e9f0;
  --border-2:  #eef1f6;
  --box-line:  rgba(15,23,42,.055);   /* линии сетки Background Boxes */
  --header-bg: rgba(255,255,255,.82);

  /* размеры/ритм */
  --container: 1200px;
  --pad:       clamp(18px, 4vw, 40px);
  --gap:       24px;
  --section:   clamp(40px, 5.5vw, 72px);
  --r-lg:      20px;
  --r:         16px;
  --r-sm:      12px;
  --r-pill:    999px;

  /* тени — цветные, не серые */
  --sh-sm:  0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.04);
  --sh:     0 2px 6px rgba(15,23,42,.05), 0 18px 40px -14px rgba(79,70,229,.18);
  --sh-cta: 0 8px 24px -6px rgba(79,70,229,.5);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--bg); line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid rgba(99,102,241,.45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Сетка / контейнер ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; }
.section--soft { background: var(--bg-soft); }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Типографика ---------- */
h1, h2, h3 { line-height: 1.12; margin: 0 0 .45em; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(34px, 5.2vw, 58px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 21px); font-weight: 700; }
p  { margin: 0 0 1em; color: var(--muted); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; line-height: 1.65; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--primary);
  background: var(--tint); border: 1px solid #e0e3ff; padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.section-head { max-width: 820px; margin: 0 0 48px; text-align: left; }
.section-head .lead { margin-inline: 0; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head--left .lead { margin-inline: 0; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px;
  font-family: var(--font); padding: 14px 28px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s; white-space: nowrap; }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: var(--sh-cta); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -6px rgba(79,70,229,.6); }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
/* премиальная CTA: бегущий блик + пульс свечения */
.btn--shine { position: relative; overflow: hidden; isolation: isolate; animation: btnglow 2.8s ease-in-out infinite; }
.btn--shine::before { content: ""; position: absolute; top: 0; left: -160%; width: 55%; height: 100%; z-index: 1;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg);
  animation: btnshine 3.6s ease-in-out infinite; }
.btn--shine:hover::before { animation-duration: 1.3s; }
/* глянцевый верхний блик (как у объёмной кнопки-переключателя) */
.btn--shine::after { content: ""; position: absolute; inset: 1px 1px 50%; z-index: 1; border-radius: inherit;
  background: linear-gradient(rgba(255,255,255,.34), rgba(255,255,255,0)); pointer-events: none; }
.btn--shine { border-top: 1px solid rgba(255,255,255,.4); }
.btn--shine:hover { transform: translateY(-2px); }
.btn--shine:active { transform: translateY(1px) scale(.98); box-shadow: inset 0 3px 8px rgba(0,0,0,.28), 0 4px 12px -4px rgba(79,70,229,.5); transition: transform .08s; }
@keyframes btnshine { 0% { left: -160%; } 58%, 100% { left: 160%; } }
@keyframes btnglow { 0%,100% { box-shadow: 0 8px 24px -6px rgba(79,70,229,.5); } 50% { box-shadow: 0 12px 32px -4px rgba(124,58,237,.78); } }

/* «Shiny» CTA — вращающаяся градиентная обводка (conic + @property) */
@property --btn-ga { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn--shiny { position: relative; isolation: isolate; border: 2px solid transparent; color: #fff; overflow: hidden;
  background:
    linear-gradient(135deg, var(--primary), var(--primary-2)) padding-box,
    conic-gradient(from var(--btn-ga),
      rgba(255,255,255,0) 0deg, rgba(255,255,255,.95) 28deg, var(--primary-2) 58deg,
      rgba(255,255,255,0) 110deg, rgba(255,255,255,0) 360deg) border-box;
  box-shadow: 0 8px 24px -6px rgba(79,70,229,.5); animation: btnSpin 3s linear infinite; }
@keyframes btnSpin { to { --btn-ga: 360deg; } }
.btn--shiny::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 120%, rgba(255,255,255,.35), transparent 70%); opacity: 0; transition: opacity .5s; }
.btn--shiny:hover { box-shadow: 0 12px 30px -6px rgba(124,58,237,.65); }
.btn--shiny:hover::after { opacity: 1; }
.btn--shiny:active { transform: translateY(1px) scale(.985); }

/* ---------- Header — плавающая тёмная glass-панель (menubar) ---------- */
.header { position: sticky; top: 14px; z-index: 50; background: none; border: 0; }
.header__inner { display: flex; align-items: center; gap: 14px; height: 58px; width: 100%;
  padding: 0 12px 0 18px; border-radius: 14px;
  background: rgba(16,18,30,.82); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 44px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1); }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.03em; display: inline-flex; align-items: center; color: #fff; }
.logo span { background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
/* ===== Верхнее меню — выпадающие списки (slide-up) ===== */
.nav { display: flex; gap: 1px; margin-left: auto; align-items: center; }
.nav-item { position: relative; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 9px;
  font-weight: 500; font-size: 14px; color: rgba(255,255,255,.82); background: none; border: 0; cursor: pointer;
  font-family: var(--font); transition: color .15s, background .15s; white-space: nowrap; text-decoration: none; }
.nav-link:hover, .nav-item.on > .nav-link { color: #fff; background: rgba(255,255,255,.12); }
.nav-link.active { color: #fff; }
.chev { width: 12px; height: 12px; transition: transform .3s; }
.nav-item.on .chev { transform: rotate(180deg); }
.drop { position: absolute; top: calc(100% + 8px); left: 0; right: auto; z-index: 60; width: 240px; max-height: min(72vh, 540px); overflow-y: auto;
  background: rgba(28,30,44,.86); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1);
  opacity: 0; visibility: hidden; transform: scale(.96) translateY(-6px); transform-origin: top left;
  transition: opacity .16s ease, transform .18s cubic-bezier(.23,1,.32,1), visibility .18s; }
.drop::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-item.on > .drop { opacity: 1; visibility: visible; transform: none; }
.drop__item { display: block; width: 100%; padding: 13px 15px; border-radius: 7px; font-size: 14px; color: rgba(255,255,255,.92);
  text-decoration: none; transition: background .12s; }
.drop__item:hover { background: rgba(255,255,255,.13); }
.drop__all { color: #c4b5fd; font-weight: 600; }
.drop__sep { height: 1px; background: rgba(255,255,255,.16); margin: 4px 6px; }
.header .btn { margin-left: 6px; padding: 11px 22px; }
.burger { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; cursor: pointer; color: #fff; }
@media (max-width: 900px) {
  .nav { position: fixed; inset: 78px 12px auto 12px; flex-direction: column; align-items: stretch;
    background: rgba(18,20,32,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 10px; gap: 2px; display: none; margin: 0;
    box-shadow: 0 20px 50px rgba(0,0,0,.5); max-height: calc(100dvh - 92px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-item { position: static; }
  .nav-link { width: 100%; justify-content: space-between; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; width: auto; max-width: none; max-height: none;
    background: none; border: 0; box-shadow: none; padding: 0 0 8px 12px; display: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-item.on > .drop { display: block; }
  .drop__grid, .drop--wide .drop__grid { grid-template-columns: 1fr; }
  .drop::before { display: none; }
  .drop__all { justify-content: flex-start; }
  .header .btn { display: none; }
  .burger { display: block; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { padding: 18px 0 0; font-size: 13px; color: var(--muted-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 8px; color: var(--border); }
.crumbs li:last-child::after { content: ""; }
.crumbs li:last-child { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 var(--section); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(124,58,237,.10), transparent 60%),
    radial-gradient(50% 50% at 0% 10%, rgba(79,70,229,.10), transparent 55%); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 36px; } }
.hero .lead { margin-bottom: 30px; }
.hero__media { position: relative; }
.hero__media .ph { box-shadow: var(--sh); }

/* ---------- Карточки ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: var(--sh); transform: translateY(-3px); border-color: #dfe3f5; }
.card h3 { margin-bottom: 9px; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; }
a.card { display: block; }
a.card .more { color: var(--primary); font-weight: 600; font-size: 14px; margin-top: 14px; display: inline-flex; gap: 6px; }
a.card:hover .more { gap: 10px; }
.more { transition: gap .18s; }

/* иконка-плашка в карточке */
.card__ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--primary); margin-bottom: 18px; border: 1px solid #e2e5ff; }
.card__ico svg { width: 24px; height: 24px; stroke-width: 1.9; }
/* нумерованная плашка (этапы) */
.card__num { width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; box-shadow: 0 6px 16px -4px rgba(79,70,229,.45); }

/* ---------- «Что вы получаете» — карточки с веером иконок ---------- */
.getgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 900px) { .getgrid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .getgrid { grid-template-columns: 1fr; } }
.getcard { text-align: center; border: 2px dashed var(--border); border-radius: 18px; padding: 32px 26px;
  background: var(--card); transition: border-color .3s, box-shadow .3s, transform .3s; }
.getcard:hover { border-color: var(--primary); box-shadow: var(--sh); transform: translateY(-2px); }
.getcard h3 { margin: 0 0 6px; font-size: 18px; }
.getcard p { margin: 0; font-size: 14px; }
.fan { display: flex; justify-content: center; align-items: flex-end; margin-bottom: 24px; height: 56px; }
.fi { width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border); font-size: 28px; line-height: 1;
  box-shadow: 0 6px 16px -5px rgba(15,23,42,.28); transition: transform .26s cubic-bezier(.16,1,.3,1), box-shadow .26s; }
.fi-l { transform: rotate(-6deg); margin-right: -12px; z-index: 1; }
.fi-c { z-index: 2; }
.fi-r { transform: rotate(6deg); margin-left: -12px; z-index: 1; }
.getcard:hover .fi-l { transform: translate(-22px,-5px) rotate(-15deg) scale(1.1); box-shadow: var(--sh); }
.getcard:hover .fi-c { transform: translateY(-10px) scale(1.15); box-shadow: var(--sh); }
.getcard:hover .fi-r { transform: translate(22px,-5px) rotate(15deg) scale(1.1); box-shadow: var(--sh); }

/* ---------- Услуги — крупные link-карточки с иллюстрацией ---------- */
.lcards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 900px) { .lcards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .lcards { grid-template-columns: 1fr; } }
.lcard { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 280px;
  border: 1px solid var(--border); border-radius: 20px; background: var(--card); color: var(--text); padding: 28px;
  text-decoration: none; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s, border-color .35s; }
.lcard:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--sh); border-color: #dfe3f5; }
.lcard h3 { position: relative; z-index: 1; margin: 0 0 10px; font-size: clamp(15px,1.6vw,18px); font-weight: 800; letter-spacing: -.01em; }
.lcard p { position: relative; z-index: 1; margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 78%; }
.lcard__more { position: relative; z-index: 1; margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--primary); }
.lcard__more svg { width: 16px; height: 16px; transition: transform .3s; }
.lcard:hover .lcard__more svg { transform: translateX(5px); }
.lcard__emoji { position: absolute; right: -6px; bottom: -14px; font-size: 116px; line-height: 1; z-index: 0;
  transition: transform .4s cubic-bezier(.16,1,.3,1); filter: drop-shadow(0 8px 18px rgba(15,23,42,.12)); }
.lcard:hover .lcard__emoji { transform: scale(1.12) rotate(-4deg); }

/* ---------- Обложка статьи (нарисованная SVG) ---------- */
.acover { overflow: hidden; aspect-ratio: 16/6; border-radius: 18px; max-width: 760px; margin: 0 auto; }
.acover svg { width: 100%; height: 100%; display: block; }
.acover--card { aspect-ratio: 3/2; border-radius: 16px 16px 0 0; max-width: none; margin: -26px -26px 18px; }

/* ---------- Статья блога ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: clamp(20px,2.4vw,26px); margin: 32px 0 12px; }
.article h3 { font-size: clamp(16px,1.9vw,19px); margin: 22px 0 8px; }
.article p { margin: 0 0 14px; color: var(--muted); line-height: 1.75; font-size: 16px; }
.article ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 9px; }
.article ul li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); line-height: 1.6; }
.article ul li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); }

/* ---------- SEO-текст (prose) ---------- */
.prose { max-width: none; margin: 0; column-count: 2; column-gap: 44px; }
@media (max-width: 760px) { .prose { column-count: 1; } }
.prose__item { break-inside: avoid; margin-bottom: 18px; }
.prose h2 { font-size: clamp(15px, 1.5vw, 17px); margin: 0 0 8px; }
.prose p { margin: 0 0 10px; color: var(--muted); line-height: 1.65; font-size: 13px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Кейсы — service-card с декор-эмодзи в углу ---------- */
.scards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 900px) { .scards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .scards { grid-template-columns: 1fr; } }
.scard { display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--border); background: var(--card); color: var(--text);
  text-decoration: none; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s; }
.scard:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: #dfe3f5; }
.scard__img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3C/svg%3E") center no-repeat; border-bottom: 1px solid var(--border); }
.scard__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.scard:hover .scard__img img { transform: scale(1.05); }
.scard__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px; }
.scard__metric b { display: block; font-size: clamp(28px,3.4vw,38px); font-weight: 800; letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scard__metric span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.scard h3 { margin: 12px 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.scard__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ptag { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; }
.scard__more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--primary); }
.scard__more svg { width: 16px; height: 16px; transition: transform .3s; }
.scard:hover .scard__more svg { transform: translateX(5px); }

/* ---------- Кейсы (страница) — карточки с фото на всю площадь ---------- */
.dcard { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; color: #fff;
  text-decoration: none; box-shadow: 0 0 36px -16px rgba(var(--tc),.5);
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s; }
.dcard:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 0 64px -14px rgba(var(--tc),.72); }
.dcard__img { position: absolute; inset: 0; background-size: cover; background-position: top center;
  transition: transform .6s cubic-bezier(.16,1,.3,1); }
.dcard:hover .dcard__img { transform: scale(1.08); }
.dcard__ov { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--tc),.94), rgba(var(--tc),.55) 32%, rgba(var(--tc),0) 64%); }
.dcard__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.dcard__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dcard__body .cat-tag { background: rgba(255,255,255,.22); color: #fff; }
.dcard__body .ptag { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.32); }
.dcard__title { font-size: clamp(18px,2.1vw,22px); font-weight: 800; letter-spacing: -.01em; line-height: 1.22; }
.dcard__btn { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.28); border-radius: 11px; padding: 11px 15px; font-size: 13px; font-weight: 600; transition: .3s; }
.dcard:hover .dcard__btn { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.5); }
.dcard__btn svg { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .3s; }
.dcard:hover .dcard__btn svg { transform: translateX(4px); }

/* ---------- Кейсы (страница) — переворачивающиеся карточки ---------- */
.flip { display: block; perspective: 1100px; aspect-ratio: 4/5; text-decoration: none; color: #fff; }
.flip__inner { position: relative; width: 100%; height: 100%; border-radius: 18px;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1); box-shadow: var(--sh); }
.flip:hover .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip__front { background: var(--bg-soft); }
.flip__img { position: absolute; inset: 0; background-size: cover; background-position: top center; }
.flip__ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.88), rgba(15,23,42,.12) 55%, transparent 80%); }
.flip__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.flip__title { display: block; font-weight: 800; font-size: 18px; line-height: 1.25; margin-top: 10px; }
.flip__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.flip .cat-tag { background: rgba(255,255,255,.22); color: #fff; }
.flip .ptag { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.32); }
.flip__back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; padding: 26px;
  background: linear-gradient(150deg, rgba(var(--tc),1), rgba(var(--tc),.8)); }
.flip__btitle { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin: 14px 0 10px; }
.flip__desc { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.88); margin-bottom: 20px; }
.flip__btn { display: inline-flex; align-items: center; gap: 8px; width: max-content;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.38); border-radius: 11px;
  padding: 11px 16px; font-size: 13px; font-weight: 600; }
.flip__btn svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .flip__inner { transition: none; } }

/* ---------- Кейсы — вкладки-фильтр ---------- */
.ctabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.ctab { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--card);
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 20px; cursor: pointer; transition: .15s; }
.ctab:hover { border-color: var(--primary); color: var(--primary); }
.ctab.on { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; }

/* ---------- Кейсы — карусель (header + стрелки + лента) ---------- */
.ccar { border: 1px solid var(--border); border-radius: 20px; background: var(--card); padding: 24px; box-shadow: var(--sh-sm); }
.ccar__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ccar__head h3 { margin: 0 0 4px; font-size: clamp(20px,2.4vw,26px); }
.ccar__head p { margin: 0; color: var(--muted); font-size: 14px; }
.ccar__nav { display: flex; gap: 8px; flex: 0 0 auto; }
.ccar__btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--card);
  color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .15s; }
.ccar__btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.ccar__btn:disabled { opacity: .35; cursor: not-allowed; }
.ccar__btn svg { width: 18px; height: 18px; }
.ccar__vp { overflow: hidden; }
.ccar__track { display: flex; gap: 16px; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.ccar__slide { flex: 0 0 calc((100% - 32px) / 3); }
.ccar__slide .scard { height: 100%; min-height: 200px; }
@media (max-width: 860px) { .ccar__slide { flex: 0 0 calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .ccar__slide { flex: 0 0 100%; } }

/* ---------- Заглушки изображений ---------- */
.ph { background:
    linear-gradient(135deg, #eef1fb 0%, #e7ebf7 100%);
  border-radius: var(--r); position: relative; overflow: hidden; border: 1px solid var(--border-2); }
.ph::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(79,70,229,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,.05) 1px, transparent 1px);
  background-size: 28px 28px; }
.ph::after { content: "ВЕБПОИСК"; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; letter-spacing: .22em; color: #b3bcd6; }
.ph--hero { aspect-ratio: 4/3.2; }
.ph--wide { aspect-ratio: 16/9; }
.ph--card { aspect-ratio: 3/2; margin: -28px -28px 20px; border-radius: var(--r) var(--r) 0 0; }

/* ---------- Stats / доверие ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); text-align: center; }
.stat b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- Этапы — image-accordion (раскрывающиеся панели) ---------- */
.iacc { display: flex; gap: 14px; height: 440px; }
.iacc-item { position: relative; flex: 1 1 0; min-width: 62px; border-radius: 18px; overflow: hidden; cursor: pointer;
  transition: flex-grow .6s cubic-bezier(.16,1,.3,1); }
.iacc-item.on { flex-grow: 6; }
.iacc-item::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; }
.iacc-item::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,.38)), linear-gradient(to top, rgba(0,0,0,.68), rgba(0,0,0,.12) 60%); }
.iacc-item > * { position: relative; z-index: 1; }
.iacc-num { position: absolute; top: 16px; left: 20px; font-size: 40px; font-weight: 800; letter-spacing: -.03em;
  color: rgba(255,255,255,.32); opacity: 0; transition: opacity .3s; font-variant-numeric: tabular-nums; }
.iacc-item.on .iacc-num { opacity: 1; }
.iacc-cap { position: absolute; bottom: 22px; left: 22px; right: 22px; transition: .35s cubic-bezier(.16,1,.3,1); }
.iacc-cap h3 { margin: 0; color: #fff; font-size: 20px; white-space: nowrap; }
.iacc-cap p { margin: 8px 0 0; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.5; opacity: 0; max-width: 320px; transition: opacity .3s .1s; }
.iacc-item.on .iacc-cap p { opacity: 1; }
.iacc-item:not(.on) .iacc-cap { left: 0; right: 0; bottom: 26px; text-align: center; }
.iacc-item:not(.on) .iacc-cap h3 { display: inline-block; transform: rotate(-90deg); transform-origin: center; font-size: 15px; font-weight: 600; }
@media (max-width: 760px) {
  .iacc { flex-direction: column; height: auto; gap: 10px; }
  .iacc-item { height: 76px; min-width: 0; flex: none; }
  .iacc-item.on { height: 280px; flex: none; }
  .iacc-item:not(.on) .iacc-cap { left: 22px; right: 22px; bottom: 24px; text-align: left; }
  .iacc-item:not(.on) .iacc-cap h3 { transform: none; }
}
.steps .card { position: relative; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 2px 22px; margin-bottom: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.faq details[open] { border-color: #d8ddf2; box-shadow: var(--sh-sm); }
.faq summary { font-weight: 700; cursor: pointer; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 24px; line-height: 1; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; margin: 0; }
.faq--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: none; align-items: start; }
.faq--2col details { margin-bottom: 0; }
@media (max-width: 760px) { .faq--2col { grid-template-columns: 1fr; } }

/* ===== FAQ-аккордеон с микроанимацией (нумерация, кружок, рост подчёркивания) ===== */
.acc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; max-width: 1000px; margin: 0 auto; align-items: start; }
@media (max-width: 760px) { .acc-cols { grid-template-columns: 1fr; gap: 0; } }
.acc-cols .acc { max-width: none; margin: 0; }
.acc { max-width: 780px; margin: 0 auto; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  background: none; border: 0; cursor: pointer; padding: 16px 2px; text-align: left; font-family: var(--font);
  font-weight: 600; font-size: clamp(15px,1.5vw,17px); color: var(--text); }
.acc-title { transition: color .15s; }
.acc-head:hover .acc-title { text-decoration: underline; text-underline-offset: 3px; }
.acc-chev { width: 16px; height: 16px; flex: 0 0 auto; opacity: .6; color: var(--text); transition: transform .25s ease; }
.acc-item.open .acc-chev { transform: rotate(180deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { margin: 0; padding: 0 2px 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- CTA полоса ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--bg-deep); color: #fff;
  border-radius: var(--r-lg); padding: clamp(40px, 5vw, 64px); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 50% 0%, rgba(124,58,237,.35), transparent 60%),
              radial-gradient(50% 120% at 15% 100%, rgba(79,70,229,.3), transparent 55%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(232,237,247,.75); max-width: 54ch; margin: 0 auto 28px; }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
@media (max-width: 720px) { .contacts-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--border); border-radius: var(--r); padding: 26px; background: #fff; transition: .2s; }
.contact-card:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.contact-card .label { font-size: 13px; color: var(--muted-2); margin-bottom: 7px; font-weight: 600; }
.contact-card .value { font-size: 18px; font-weight: 700; }
.contact-card .value a:hover { color: var(--primary); }

/* ---------- Чипы / теги ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--border); border-radius: var(--r-pill); padding: 9px 17px; font-size: 14px;
  font-weight: 500; background: #fff; transition: .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--tint); }
.cat-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary);
  background: var(--tint); border-radius: var(--r-pill); padding: 5px 13px; margin-bottom: 12px; letter-spacing: .01em; }

/* ---------- Списки "что входит" ---------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 13px; align-items: flex-start; font-weight: 500; }
.ticks li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 1px solid #e2e5ff; }

/* ---------- Hub-сетки ссылок ---------- */
.link-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 760px) { .link-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .link-grid { grid-template-columns: 1fr; } }
.link-tile { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 17px 19px;
  font-weight: 600; background: #fff; transition: .16s; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.link-tile:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--sh); }
.link-tile span { color: var(--muted-2); font-size: 18px; transition: transform .16s; }
.link-tile:hover span { transform: translateX(3px); color: var(--primary); }

/* ---------- Цены ---------- */
.price-card { position: relative; }
.price-card .amount { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -.02em; margin: 8px 0; font-variant-numeric: tabular-nums; }
.price-card .term { color: var(--muted); font-size: 14px; }
.price-card--popular { border-color: var(--primary); box-shadow: var(--sh); }
.price-card--popular::after { content: "Популярно"; position: absolute; top: -12px; right: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: var(--r-pill); }

/* ---------- Footer (тёмный, доверие) ---------- */
.footer { position: relative; overflow: hidden; background: var(--bg-deep); color: var(--on-deep); padding: 72px 0 30px; margin-top: 0; }
.footer__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 80% at 50% 0%, rgba(124,58,237,.20), transparent 60%),
              radial-gradient(40% 70% at 10% 100%, rgba(79,70,229,.16), transparent 60%); }
.footer .container { position: relative; z-index: 1; }
.f-rv { transition: opacity .8s ease, filter .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.footer.pre .f-rv { opacity: 0; filter: blur(4px); transform: translateY(12px); }
.footer.in .f-rv { opacity: 1; filter: blur(0); transform: none; }
.f-soc { display: flex; gap: 9px; margin-top: 16px; }
.f-soc a { width: 38px; height: 38px; border-radius: 11px; border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; color: var(--on-deep); transition: .18s; }
.f-soc a:hover { background: rgba(255,255,255,.1); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.f-soc svg { width: 18px; height: 18px; }
.footer__top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }
.footer .logo { color: #fff; }
.footer .logo span { -webkit-text-fill-color: transparent; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin: 0 0 16px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { font-size: 14px; color: rgba(232,237,247,.7); }
.footer a:hover { color: #fff; }
.footer__brand p { font-size: 14px; max-width: 32ch; color: rgba(232,237,247,.7); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--muted-2); }
.footer__bottom a:hover { color: #fff; }

/* ============================================================
   HOME HERO + SPLINE-РОБОТ + ambient glows (как на seller-os.online)
   ============================================================ */
.hero-home { position: relative; overflow: clip; padding: clamp(14px,1.6vw,28px) 0 var(--section); }
.hero-home__grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: 520px; }
@media (max-width: 980px) { .hero-home__grid { grid-template-columns: 1fr; min-height: 0; } }
.hero-home__text { max-width: 640px; }
/* текст пропускает курсор к сетке Boxes; интерактив остаётся кликабельным */
.hero-home__grid, .hero-home__text, .hero-stats { pointer-events: none; }
.hero-home a, .hero-home .btn, .hero-home button,
.hero-home .spline-robot, .hero-home spline-viewer, .hero-home .hstat { pointer-events: auto; }
.hero-home h1 { margin-bottom: .35em; font-size: clamp(32px,3.6vw,56px); line-height: 1.1; }
.hero-home h1 .hl { background: linear-gradient(135deg,#2563eb,#4f46e5);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-home h1 br { display: inline; }
.hero-home__text { max-width: 700px; }
@media (max-width: 560px) { .hero-home h1 br { display: none; } }
.hero-home .lead { margin-bottom: 30px; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.hero-benefits span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hero-benefits span::before { content: ""; width: 18px; height: 18px; border-radius: 6px;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Background Boxes — интерактивная сетка (адаптировано под белый фон) */
.boxes { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: auto; }
.boxes__grid { position: absolute; left: 50%; top: 50%; display: flex;
  transform: translate(-50%,-50%) skewX(-48deg) skewY(14deg) scale(.7) translateZ(0); }
.boxes__col { display: flex; flex-direction: column; border-left: 1px solid var(--box-line); }
.boxes__cell { width: 64px; height: 32px; position: relative;
  border-right: 1px solid var(--box-line); border-top: 1px solid var(--box-line); }
.boxes__cell.plus::after { content: ""; position: absolute; top: -13px; left: -21px; width: 40px; height: 24px;
  opacity: .5; pointer-events: none; background: center/19px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6v12m6-6H6'/%3E%3C/svg%3E"); }
@media (max-width: 980px) { .boxes { display: none; } }

/* ambient glows */
.glow-wrap { display: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.glow-1 { top: -9rem; left: 12%; width: 680px; height: 680px; background: radial-gradient(circle, rgba(124,58,237,.20) 0%, transparent 70%); animation: glow-breathe 5s ease-in-out infinite; }
.glow-2 { top: 18%; right: -6%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(79,70,229,.16) 0%, transparent 70%); }
.glow-3 { bottom: -12%; left: -4%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(99,102,241,.12) 0%, transparent 70%); }

/* Spline-робот — статичный; следит за курсором НАТИВНО (как на ai.web-poisk.ru):
   pointer-events включены, сцена сама реагирует на мышь. Без кастомного JS. */
.spline-robot { position: relative; justify-self: center; width: min(712px, 100%); height: 668px; top: 16px; left: -22px; }
.spline-robot spline-viewer, .spline-robot canvas { width: 100%; height: 100%; display: block; background: transparent !important; }
.spline-robot spline-viewer::part(logo), .spline-robot spline-viewer::part(badge) { display: none !important; }
@media (max-width: 980px) { .spline-robot { height: 420px; order: -1; top: 0; left: 0; } }
@media (max-width: 560px) { .spline-robot { height: 320px; } }

/* hero stat-карточки (как на seller-os) */
.hero-stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 760px) { .hero-stats { grid-template-columns: 1fr 1fr; } }
.hstat { background: rgba(255,255,255,.7); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; transition: .2s; }
.hstat:hover { box-shadow: var(--sh); transform: translateY(-3px); border-color: #dfe3f5; }
.hstat__ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 14px; }
.hstat__ico svg { width: 22px; height: 22px; stroke-width: 2; }
.hstat b { display: block; font-size: clamp(24px,3vw,32px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hstat .l { font-size: 14px; font-weight: 700; margin-top: 6px; }
.hstat .s { font-size: 13px; color: var(--muted-2); }

@keyframes hero-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes glow-breathe { 0%,100% { opacity: .4; transform: scale(1); } 50% { opacity: .7; transform: scale(1.06); } }
@keyframes hero-slide-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero-a { animation: hero-slide-up .65s cubic-bezier(.16,1,.3,1) both; }
.hero-a-1 { animation-delay: .05s; } .hero-a-2 { animation-delay: .16s; }
.hero-a-3 { animation-delay: .30s; } .hero-a-4 { animation-delay: .44s; }

/* ============================================================
   HOME v2 — Bento Grid Showcase + Aurora (UI/UX Pro Max)
   ============================================================ */
/* аврора-подсветка отключена — за сеткой Boxes чистый фон */
.hero-home::after { content: none; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, minmax(168px,1fr)); gap: 18px; }
.bento > :first-child { grid-row: 1 / span 3; }   /* высокая карточка слева */
.bento > :last-child  { grid-column: span 2; }     /* широкая карточка снизу */
/* каскадное появление при скролле */
.bento > * { transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.bento.pre > * { opacity: 0; transform: translateY(22px); }
.bento.in > * { opacity: 1; transform: none; }
.bento.in > :nth-child(2){transition-delay:.08s} .bento.in > :nth-child(3){transition-delay:.16s}
.bento.in > :nth-child(4){transition-delay:.24s} .bento.in > :nth-child(5){transition-delay:.32s}
.bento.in > :nth-child(6){transition-delay:.4s}
.bento-card { position: relative; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 20px; background: var(--card); padding: 26px;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-color .25s, opacity .6s ease; }
.bento-card:hover { transform: scale(1.02); box-shadow: var(--sh); border-color: #dfe3f5; z-index: 2; }
.bento-card h3 { margin: 0 0 6px; }
.bento-card p { margin: 0; font-size: 14.5px; }
.bento-card .more { margin-top: auto; color: var(--primary); font-weight: 600; font-size: 14px;
  display: inline-flex; gap: 6px; transition: gap .18s; }
.bento-card:hover .more { gap: 11px; }
.bento-card .card__ico { margin-bottom: 14px; }
.bento-stat { font-size: clamp(34px,5vw,52px); font-weight: 800; letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento-card--accent { color: #fff; border: 0;
  background: linear-gradient(150deg, #4f46e5 0%, #6d28d9 55%, #7c3aed 100%); }
.bento-card--accent::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 90% 10%, rgba(255,255,255,.18), transparent 60%); }
.bento-card--accent > * { position: relative; }
.bento-card--accent h3 { color: #fff; font-size: clamp(20px,2.4vw,26px); }
.bento-card--accent .chips .chip { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.bento-card--accent .chips .chip:hover { background: rgba(255,255,255,.26); }
.b-chart { width: calc(100% + 52px); margin: auto -26px -26px; height: 88px; display: block; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: minmax(168px,auto); }
  .bento > :first-child { grid-row: span 2; }
  .bento > :last-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento > :first-child, .bento > :last-child { grid-row: auto; grid-column: auto; }
  .bento-card { min-height: 168px; }
}

/* ============================================================
   HOME (Claude design, белая версия) — бегущая строка платформ
   ============================================================ */
.marquee { position: relative; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; background: var(--bg-soft); padding: 18px 0; }
/* прогрессивный блюр на краях (слоистый backdrop-filter + градиентная маска) */
.pb { position: absolute; top: 0; bottom: 0; width: clamp(56px, 11vw, 150px); pointer-events: none; z-index: 2; }
.pb--left { left: 0; } .pb--right { right: 0; }
.pb > div { position: absolute; inset: 0; }
.marquee__t { display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
  animation: mq 28s linear infinite; color: var(--muted); font-weight: 700; letter-spacing: .01em; }
.marquee__t i { color: var(--primary); font-style: normal; font-size: 9px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ===== Блок «Полный цикл» — текст + полированная UI-карточка ===== */
.cycle { display: grid; grid-template-columns: .92fr 1.08fr; gap: 44px; align-items: center; }
@media (max-width: 940px) { .cycle { grid-template-columns: 1fr; gap: 32px; } }
.cycle__left h2 { margin-bottom: 16px; }
.cycle__points { display: grid; gap: 10px; margin-top: 26px; }
.cycle__pt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 14px; background: var(--card); transition: .18s; }
.cycle__pt:hover { border-color: var(--primary); transform: translateX(3px); box-shadow: var(--sh-sm); }
.cycle__pt .card__ico { width: 40px; height: 40px; margin: 0; flex: 0 0 auto; }
.cycle__pt .card__ico svg { width: 20px; height: 20px; }
.cycle__pt b { display: block; font-size: 15px; }
.cycle__pt span { font-size: 13px; color: var(--muted); }
.cycle__pt .ar { margin-left: auto; color: var(--muted-2); transition: .18s; }
.cycle__pt:hover .ar { color: var(--primary); transform: translateX(3px); }

/* «оконная» UI-карточка с таблицей этапов */
.ui-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--sh); }
.ui-card__head { padding: 20px 22px; border-bottom: 1px solid var(--border); }
.ui-dots { display: flex; gap: 6px; margin-bottom: 13px; }
.ui-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.ui-dots i:nth-child(1) { background: #ff5f57; } .ui-dots i:nth-child(2) { background: #febc2e; } .ui-dots i:nth-child(3) { background: #28c840; }
.ui-card__head h3 { margin: 0 0 4px; font-size: 1.06rem; }
.ui-card__head p { margin: 0; font-size: 13px; color: var(--muted); }
.ui-wrap { overflow-x: auto; }
.ui-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 14px; }
.ui-table th { text-align: left; padding: 11px 16px; font-weight: 600; font-size: 12.5px; color: var(--muted); background: var(--bg-soft); }
.ui-table th:last-child, .ui-table td:last-child { text-align: right; }
.ui-table td { padding: 11px 16px; border-top: 1px solid var(--border); }
.ui-table tbody tr { transition: background .15s; }
.ui-table tbody tr:hover { background: var(--bg-soft); }
.ui-table .num { color: var(--muted-2); width: 36px; }
.ui-table .stage { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ui-table .stage .si { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--primary); flex: 0 0 auto; }
.ui-table .stage .si svg { width: 15px; height: 15px; stroke-width: 2; }
.ui-table .term { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ui-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ui-badge--ok   { background: rgba(5,150,105,.12);  color: #047857; }
.ui-badge--warn { background: rgba(217,119,6,.14);  color: #b45309; }
.ui-badge--info { background: rgba(79,70,229,.12);  color: #4f46e5; }
html[data-theme="dark"] .ui-badge--ok   { color: #6ee7b7; }
html[data-theme="dark"] .ui-badge--warn { color: #fcd34d; }
html[data-theme="dark"] .ui-badge--info { color: #a5b4fc; }
.ui-card__foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted-2); }

/* микроанимации карточки «Этапы проекта»: каскадное появление строк + пульс статуса */
.ui-card--anim tbody tr { transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1); }
.ui-card--anim.pre tbody tr { opacity: 0; transform: translateY(10px); }
.ui-card--anim.in  tbody tr { opacity: 1; transform: none; }
.ui-card--anim .ui-card__foot { transition: opacity .5s ease .42s; }
.ui-card--anim.pre .ui-card__foot { opacity: 0; }
.ui-card--anim .stage .si { transition: transform .2s; }
.ui-card--anim tbody tr:hover .si { transform: scale(1.08) rotate(-3deg); }
.ui-badge--warn::before, .ui-badge--info::before { animation: dotpulse 1.7s ease-in-out infinite; }
@keyframes dotpulse { 0%,100% { box-shadow: 0 0 0 0 currentColor; } 55% { box-shadow: 0 0 0 4px transparent; } }

/* ============================================================
   ТЁМНАЯ ТЕМА — переключается атрибутом html[data-theme="dark"]
   ============================================================ */
html[data-theme="dark"] {
  --bg:        #0a0c16;
  --bg-soft:   #0f1322;
  --bg-deep:   #070912;
  --card:      #121626;
  --text:      #eef1fb;
  --muted:     #9aa6c9;
  --muted-2:   #6f7da6;
  --tint:      rgba(124,58,237,.18);
  --border:    rgba(255,255,255,.10);
  --border-2:  rgba(255,255,255,.06);
  --box-line:  rgba(255,255,255,.08);
  --header-bg: rgba(10,12,22,.72);
  --on-deep:   #e8edf7;
  --sh:    0 2px 6px rgba(0,0,0,.4), 0 18px 40px -14px rgba(0,0,0,.6);
  --sh-sm: 0 1px 2px rgba(0,0,0,.4);
}
html { transition: background-color .3s ease; }
body, .header, .card, .bento-card, .contact-card, .faq details, .link-tile, .chip, .stat, .hstat, .ph, .marquee, .btn--ghost {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
/* компоненты с захардкоженным белым фоном — подменяем на --card */
html[data-theme="dark"] .nav,
html[data-theme="dark"] .btn--ghost,
html[data-theme="dark"] .bento-card,
html[data-theme="dark"] .faq details,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .link-tile { background: var(--card); }
html[data-theme="dark"] .eyebrow { border-color: rgba(124,58,237,.4); }
html[data-theme="dark"] .hstat { background: rgba(255,255,255,.04); }
html[data-theme="dark"] .ph { background: linear-gradient(135deg, #161c30 0%, #10142400 100%), #10142a; border-color: var(--border); }
html[data-theme="dark"] .ph::after { color: #45506e; }
html[data-theme="dark"] .ph::before { background-image:
  linear-gradient(rgba(124,58,237,.10) 1px, transparent 1px),
  linear-gradient(90deg, rgba(124,58,237,.10) 1px, transparent 1px); }
html[data-theme="dark"] .faq details[open] { border-color: rgba(124,58,237,.4); }

/* ============================================================
   Переключатель темы (pill) в шапке
   ============================================================ */
.theme-toggle { position: relative; flex: 0 0 auto; width: 62px; height: 32px; border-radius: 999px;
  border: 1px solid var(--border); cursor: pointer; padding: 0; margin-left: 6px;
  background: linear-gradient(180deg, #f1f5f9, #cbd5e1);
  box-shadow: inset 0 1px 3px rgba(148,163,184,.5), inset 0 -1px 2px rgba(255,255,255,.9);
  transition: background .3s, border-color .3s; }
.theme-toggle .tt-ico { position: absolute; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; display: flex; }
.theme-toggle .tt-ico svg { width: 16px; height: 16px; stroke-width: 2; }
.theme-toggle .tt-sun  { left: 8px;  color: #d97706; }
.theme-toggle .tt-moon { right: 8px; color: #64748b; }
.theme-toggle .tt-thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #f1f5f9); box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .32s cubic-bezier(.34,1.56,.64,1), background .3s; }
html[data-theme="dark"] .theme-toggle { background: radial-gradient(ellipse at top left, #1e293b, #0f172a 60%, #020617);
  border-color: rgba(71,85,105,.6); box-shadow: inset 0 1px 4px rgba(0,0,0,.8); }
html[data-theme="dark"] .theme-toggle .tt-sun  { color: #fde68a; }
html[data-theme="dark"] .theme-toggle .tt-moon { color: #fde68a; }
html[data-theme="dark"] .theme-toggle .tt-thumb { transform: translateX(30px); background: linear-gradient(145deg, #64748b, #334155); }
@media (max-width: 900px) { .theme-toggle { margin-left: auto; } }

/* ============================================================
   ТАРИФЫ /tseny/ — 3 плана с аврора-свечением (Aurora pricing)
   ============================================================ */
.tiers-wrap { position: relative; }
.aurora-blobs { position: absolute; inset: -12% 0; z-index: 0; pointer-events: none; overflow: hidden; filter: blur(90px); opacity: .45; }
.aurora-blobs i { position: absolute; border-radius: 50%; display: block; }
.aurora-blobs i:nth-child(1) { width: 460px; height: 460px; background: rgba(79,70,229,.30); top: 0; left: 8%; animation: ab1 22s infinite alternate ease-in-out; }
.aurora-blobs i:nth-child(2) { width: 400px; height: 400px; background: rgba(124,58,237,.28); bottom: 0; right: 8%; animation: ab2 26s infinite alternate ease-in-out; }
@keyframes ab1 { to { transform: translate(90px,40px) rotate(160deg); } }
@keyframes ab2 { to { transform: translate(-90px,-40px) rotate(-160deg); } }

.tiers { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: stretch; }
@media (max-width: 880px) { .tiers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.tier { position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--border); border-radius: 22px; padding: 32px 28px; overflow: hidden;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; }
.tier:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.tier__name { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.tier__desc { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; min-height: 42px; }
.tier__price { font-size: clamp(30px,4vw,40px); font-weight: 800; letter-spacing: -.03em; margin: 22px 0 2px; font-variant-numeric: tabular-nums; }
.tier__price small { font-size: 14px; font-weight: 600; color: var(--muted-2); letter-spacing: 0; }
.tier__list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 12px; }
.tier__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.tier__list svg { width: 18px; height: 18px; color: var(--primary); flex: 0 0 auto; margin-top: 2px; stroke-width: 2.2; }
.tier .btn { width: 100%; justify-content: center; margin-top: auto; }
.tier--pop { border: 1.5px solid transparent;
  background: linear-gradient(var(--card),var(--card)) padding-box, linear-gradient(135deg,var(--primary),var(--primary-2)) border-box;
  box-shadow: var(--sh); }
.tier--pop::before { content: "Популярно"; position: absolute; top: 0; right: 0;
  background: linear-gradient(135deg,var(--primary),var(--primary-2)); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 6px 14px; border-radius: 0 22px 0 12px; }
.tier--pop .tier__price { background: linear-gradient(135deg,var(--primary),var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* подсветка колонки «Бизнес» в таблицах тарифов */
.ui-table th.col-pop, .ui-table td.col-pop { background: var(--tint); }
.price-note { margin-top: 26px; padding: 18px 22px; border: 1px dashed var(--border); border-radius: 14px;
  background: var(--bg-soft); color: var(--muted); font-size: 14px; }

/* ============================================================
   Секция «Возможности» — карточки с микроанимациями
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.fcard { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px; padding: 30px;
  min-height: 280px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.fcard:hover { transform: scale(.985); box-shadow: var(--sh); border-color: #dfe3f5; }
.fcard__stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 130px; }
.fcard h3 { margin: 18px 0 4px; }
.fcard p { margin: 0; font-size: 14px; }
/* «Aa» — пульс масштаба */
.aa { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(56px,9vw,88px); line-height: 1; color: var(--text);
  animation: aapulse 4s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes aapulse { 0%,38% { transform: scale(1); } 50%,88% { transform: scale(1.42); } 100% { transform: scale(1); } }
/* морфинг макета */
.lyt { display: grid; gap: 8px; width: 100%; max-width: 150px; }
.lyt span { background: linear-gradient(135deg, rgba(79,70,229,.22), rgba(124,58,237,.18)); border-radius: 8px; min-height: 30px;
  transition: all .55s cubic-bezier(.16,1,.3,1); }
.lyt.l0 { grid-template-columns: 1fr 1fr; }
.lyt.l1 { grid-template-columns: 1fr 1fr 1fr; }
.lyt.l2 { grid-template-columns: 1fr; }
/* индикатор скорости */
.speed { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.speed b { font-size: clamp(28px,4vw,38px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.speed .lbl { font-size: 13px; color: var(--muted); }
.speed__bar { width: 100%; max-width: 130px; height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.speed__fill { height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2)); animation: speedfill 2.6s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes speedfill { 0% { width: 0; } 42%,100% { width: 100%; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Лид-форма ---------- */
.lead-grid{align-items:start;gap:clamp(24px,4vw,56px)}
.lead-form{display:grid;gap:12px;max-width:480px}
.lf-field{display:block;width:100%;font:inherit;font-size:16px;line-height:1.3;color:var(--ink,#0f172a);
  background:#fff;border:1.5px solid #e2e8f0;border-radius:14px;padding:16px 18px;transition:border-color .15s,box-shadow .15s}
.lf-field::placeholder{color:#94a3b8}
.lf-field:focus{outline:none;border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.12)}
textarea.lf-field{min-height:130px;resize:vertical}
.lead-form .btn{padding-top:15px;padding-bottom:15px;font-size:16px}
.lf-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
.lead-form .btn{justify-self:start;margin-top:2px}
.lf-status{margin:2px 0 0;font-size:14px;font-weight:600;min-height:1px}
.lf-status.lf-ok{color:#059669}
.lf-status.lf-err{color:#dc2626}
.lf-note{margin:0;font-size:12.5px;line-height:1.5;color:#94a3b8}
.lead-aside{min-height:340px;border-radius:20px}
html[data-theme="dark"] .lf-field{background:#0f1729;border-color:#243049;color:#e6ebf5}
html[data-theme="dark"] .lf-field::placeholder{color:#64748b}
html[data-theme="dark"] .lf-note{color:#64748b}
@media (max-width:760px){.lead-aside{display:none}}

/* ---------- CTA-форма (inline, тёмный блок) ---------- */
.lead-form--inline{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;max-width:720px;margin:0 auto}
.lead-form--inline .lf-field{flex:1 1 220px;min-width:0}
.lead-form--inline .btn{flex:0 0 auto}
.cta-band .lf-field{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.22);color:#fff}
.cta-band .lf-field::placeholder{color:rgba(255,255,255,.6)}
.cta-band .lf-field:focus{border-color:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.14);background:rgba(255,255,255,.16)}
.cta-status{margin:14px auto 0;text-align:center;color:rgba(232,237,247,.85)}
.cta-status.lf-ok{color:#6ee7b7}
.cta-status.lf-err{color:#fca5a5}
.cta-or{margin:14px 0 0;text-align:center;font-size:14px;color:rgba(232,237,247,.7)}
.cta-or a{color:#fff;font-weight:700}
@media (max-width:560px){.lead-form--inline{flex-direction:column}.lead-form--inline .btn{width:100%}}

/* ============================================================
   SPLIT-форма заявки (по референсу AnimatedSignIn)
   Слева коллаж фото + стат-плитки, справа форма. Тема-aware.
   ============================================================ */
.signin{ padding: var(--section) 0; }
.signin__card{
  width: 100%; overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  border-radius: 24px; box-shadow: 0 30px 80px -40px rgba(15,23,42,.4);
  display: grid; grid-template-columns: 1.35fr 1fr;
  animation: signinIn .6s cubic-bezier(.16,1,.3,1) both;
}
@media (max-width: 920px){ .signin__card{ grid-template-columns: 1fr; } }

.signin__media{
  background: var(--bg-soft); padding: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start;
}
@media (max-width: 920px){ .signin__media{ display: none; } }
.signin__tile{ overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; background: #e2e8f0; }
.signin__tile img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.signin__info{ border-radius: 16px; aspect-ratio: 4 / 3; padding: 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: var(--bg-soft); border: 1px solid var(--border); }
.signin__info b{ font-size: clamp(15px,1.3vw,18px); font-weight: 700; color: var(--ink,#0f172a); line-height: 1.2; }
.signin__info span{ font-size: 12.5px; line-height: 1.4; color: var(--muted); }
html[data-theme="dark"] .signin__info{ background: #0b1120; border-color: #243049; }
html[data-theme="dark"] .signin__info b{ color: #e6ebf5; }
.signin__stat{
  border-radius: 16px; color: #fff; padding: 16px; aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  animation: tileUp .6s ease both;
}
.signin__stat:nth-of-type(2){ animation-delay: .15s; }
.signin__stat:nth-of-type(3){ animation-delay: .3s; }
.signin__stat b{ font-size: clamp(26px,2.6vw,38px); font-weight: 800; line-height: 1; }
.signin__stat span{ font-size: 12.5px; line-height: 1.4; opacity: .96; }
.stat--violet{ background: linear-gradient(135deg,#4f46e5,#7c3aed); }
.stat--emerald{ background: linear-gradient(135deg,#059669,#0d9488); }
.stat--amber{ background: linear-gradient(135deg,#ea580c,#dc2626); }

.signin__form{ padding: clamp(26px,3vw,46px); display: flex; flex-direction: column; justify-content: center; }
.signin__form h2{ margin: 0 0 6px; font-size: clamp(22px,2vw,28px); }
.signin__form .sub{ margin: 0 0 22px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.signin__form .lead-form{ max-width: none; gap: 14px; }
.signin__sep{ display: flex; align-items: center; gap: 14px; margin: 18px 0 16px; color: var(--muted-2); font-size: 13px; }
.signin__sep::before, .signin__sep::after{ content: ""; flex: 1; height: 1px; background: var(--border); }
.signin__alt{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signin__alt a{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border);
  font-weight: 600; font-size: 14px; color: var(--ink,#0f172a); background: #fff;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.signin__alt a:hover{ border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--sh); }
.signin__alt svg{ width: 18px; height: 18px; }
@media (max-width: 460px){ .signin__alt{ grid-template-columns: 1fr; } }

@keyframes signinIn{ from{ opacity: 0; transform: scale(.96) translateY(10px); } to{ opacity: 1; transform: none; } }
@keyframes tileUp{ from{ opacity: 0; transform: translateY(20px); } to{ opacity: 1; transform: none; } }

/* тёмная тема */
html[data-theme="dark"] .signin__card{ background: #0f1729; border-color: #243049; box-shadow: 0 30px 80px -40px rgba(0,0,0,.7); }
html[data-theme="dark"] .signin__media{ background: #0b1120; }
html[data-theme="dark"] .signin__tile{ background: #1e293b; }
html[data-theme="dark"] .signin__alt a{ background: #0f1729; border-color: #243049; color: #e6ebf5; }

/* Компактный заголовок страницы (без hero-экрана) */
.page-head{ padding: clamp(26px,4vw,52px) 0 0; }
.page-head h1{ margin: 0; font-size: clamp(30px,4vw,48px); letter-spacing: -.02em; }

/* Заголовок секции по левому краю */
.section-head--left{ text-align: left; max-width: none; margin-left: 0; margin-right: 0; }

/* Контакты в шапке */
.header__contacts{ display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.header__phone{ display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex: 0 0 auto;
  color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
  padding: 7px 10px; border-radius: 9px; transition: background .15s; }
.header__phone svg{ width: 16px; height: 16px; flex: 0 0 auto; color: var(--primary-2); }
.header__phone:hover{ background: rgba(255,255,255,.12); }
.header__soc{ display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 auto;
  border-radius: 9px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); transition: background .15s, color .15s; }
.header__soc svg{ width: 16px; height: 16px; flex: 0 0 auto; }
.header__soc:hover{ background: rgba(255,255,255,.18); color: #fff; }
/* Адаптив, чтобы ничего не обрезалось: сначала прячем иконки, затем телефон */
@media (max-width: 1400px){ .header__soc{ display: none; } }
@media (max-width: 1300px) and (min-width: 901px){ .header__contacts{ display: none; } }
/* мобайл: горизонтальное меню скрыто (бургер) — показываем компактный телефон-иконку */
@media (max-width: 900px){
  .header__contacts{ display: flex; }
  .header__soc{ display: none; }
  .header__phone span{ display: none; }
  .header__phone{ padding: 7px; }
}
