/* ============================================
   ИИГотов / AI Picker Go — стили лендинга.
   SaaS-стиль, премиальный, технологичный, адаптивный.
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-dark: #0f172a;
  --bg-cta: #0b1220;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #dbeafe;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.18);
  --container: 1180px;
  --container-narrow: 820px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--accent); color: #fff; padding: 8px 14px;
  z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

/* === HEADER === */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-dark); color: #60a5fa;
  border-radius: 10px; font-weight: 800; font-size: 14px;
  letter-spacing: .02em;
}
.logo__mark--sm { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.logo__text { font-weight: 700; font-size: 17px; }
.logo__lat { color: var(--text-muted); font-weight: 500; }
.logo__ru { color: var(--text); }

.nav {
  display: flex; gap: 22px; margin-left: auto;
}
.nav a {
  color: var(--text-soft); font-weight: 500; font-size: 15px;
  padding: 6px 0;
}
.nav a:hover { color: var(--text); text-decoration: none; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; padding: 11px 20px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .08s ease, background .15s, border-color .15s, color .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--primary:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.btn--ghost {
  background: transparent; color: var(--text); border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn--lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn--sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* === SECTIONS === */
.section { padding: 88px 0; }
.section--muted { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #cbd5e1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--cta { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); padding: 72px 0; }

.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.18; letter-spacing: -.01em; }
.section__head p { color: var(--text-soft); margin: 0; font-size: 17px; }
.section--dark .section__head p { color: #94a3b8; }

.eyebrow {
  display: inline-block; margin: 0 0 10px;
  font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.section--dark .eyebrow { color: #60a5fa; }

/* === HERO === */
.hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(900px 400px at -10% -10%, rgba(96,165,250,.18), transparent 60%),
    radial-gradient(700px 380px at 110% 0%, rgba(124,58,237,.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f9fbff 100%);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid; gap: 48px;
  grid-template-columns: 1.15fr .85fr;
  align-items: start;
}
.hero__title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.accent { color: var(--accent); }
.hero__lead {
  margin: 0 0 22px; font-size: 18px;
  color: var(--text-soft); max-width: 560px;
}
.hero__bullets {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: grid; gap: 8px;
}
.hero__bullets li {
  position: relative; padding-left: 26px;
  color: var(--text); font-size: 15px;
}
.hero__bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 16px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* === FORMS === */
.form { display: grid; gap: 14px; }
.form--card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.form__title { margin: 0 0 4px; font-size: 22px; }
.form__subtitle { margin: 0 0 12px; color: var(--text-muted); font-size: 14px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 13px; font-weight: 600;
  color: var(--text-soft);
}
.field input, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,.16);
}
.field input.is-invalid, .field textarea.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}
.field__error {
  color: var(--error); font-size: 13px; margin-top: 2px;
}
.check {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px;
  font-size: 13px; color: var(--text-soft); line-height: 1.5;
  cursor: pointer;
}
.check input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--accent);
}
.check.is-invalid span { color: var(--error); }
.check.is-invalid input { outline: 2px solid var(--error); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.form__status {
  font-size: 14px; min-height: 20px;
  padding: 0;
}
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--error); }

/* === MOCKUP === */
.mockup-section { padding: 0 0 88px; background: linear-gradient(180deg, #f9fbff, transparent); margin-top: -32px; }
.mockup {
  margin: 0 auto; max-width: 720px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.mockup__bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--line-strong);
}
.mockup__bar span:nth-child(1) { background: #ef4444; }
.mockup__bar span:nth-child(2) { background: #f59e0b; }
.mockup__bar span:nth-child(3) { background: #10b981; }
.mockup__bar em {
  margin-left: auto; font-style: normal;
  color: var(--text-muted); font-size: 13px;
}
.mockup__body {
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}
.msg {
  max-width: 80%;
  padding: 12px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.5;
  border: 1px solid var(--line);
}
.msg--bot {
  background: #fff; align-self: flex-start;
  border-top-left-radius: 4px;
}
.msg--user {
  background: var(--accent); color: #fff; border-color: transparent;
  align-self: flex-end;
  border-top-right-radius: 4px;
}
.bundle {
  margin-top: 10px; display: grid; gap: 6px;
  background: var(--bg-soft); padding: 10px; border-radius: 10px;
}
.bundle__item {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 10px;
  font-size: 13px; align-items: center;
}
.bundle__role { color: var(--text-muted); font-size: 12px; }
.bundle__name { color: var(--text); font-weight: 600; }
.bundle__qty {
  background: var(--accent-soft); color: var(--accent-hover);
  padding: 3px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}

/* === CARDS === */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-soft); font-size: 15px; }
.card__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 12px;
  margin-bottom: 14px; font-size: 22px;
}
.card--solid {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  color: #cbd5e1;
}
.card--solid:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}
.card--solid p { color: #94a3b8; }
.cards--trust { gap: 18px; }
.card--trust { text-align: center; }
.card--trust .big {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 10px;
}

/* === STEPS === */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  counter-reset: stepCount;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step__num {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-dark); color: #60a5fa;
  border-radius: 10px; font-weight: 800;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* === FAQ === */
.faq { display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px 18px;
  transition: border-color .15s;
}
.faq__item[open] { border-color: var(--accent-soft); box-shadow: var(--shadow-sm); }
.faq__item summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 22px; color: var(--accent); font-weight: 400;
  transition: transform .15s;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 12px 0 4px; color: var(--text-soft); font-size: 15px; line-height: 1.6; }

/* === FINAL CTA === */
.cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.cta h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); }
.cta p { margin: 0; color: var(--text-soft); font-size: 16px; }

/* === FOOTER === */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 32px 0;
}
.footer__inner {
  display: flex; gap: 24px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex; align-items: center; gap: 12px;
  color: #cbd5e1;
}
.footer__brand strong { color: #fff; }
.footer__nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__nav a {
  color: #94a3b8; font-size: 14px;
}
.footer__nav a:hover { color: #fff; }

/* === MODAL === */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  animation: fade .2s ease;
}
.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg);
  animation: pop .22s ease;
}
.modal__close {
  position: absolute; top: 10px; right: 14px;
  background: transparent; border: none;
  font-size: 28px; line-height: 1; cursor: pointer;
  color: var(--text-muted);
}
.modal__close:hover { color: var(--text); }
.modal__lead { margin: 0 0 18px; color: var(--text-soft); font-size: 14px; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.modal-open { overflow: hidden; }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: var(--bg-cta); color: #cbd5e1;
  padding: 16px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 16px;
  font-size: 14px;
  max-width: 720px; margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: #93c5fd; }

/* === LEGAL PAGES === */
.page-legal { background: var(--bg-soft); }
.legal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  margin: 36px auto;
  box-shadow: var(--shadow-sm);
}
.legal h1 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 34px); }
.legal h2 { margin: 32px 0 10px; font-size: 21px; }
.legal__updated { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; }
.legal__toc {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 16px 22px 14px; margin: 0 0 28px;
}
.legal__toc strong { font-size: 14px; color: var(--text-soft); }
.legal__toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 24px; font-size: 14px; }
.legal__toc li { break-inside: avoid; padding: 2px 0; }
.legal section { padding: 4px 0; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal__back { margin-top: 32px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
  .legal { padding: 32px 28px; }
  .legal__toc ol { columns: 1; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 32px; }
  .cards--3, .cards--4, .steps { grid-template-columns: 1fr; }
  .form--card { padding: 22px; }
  .legal { padding: 24px 18px; margin: 16px; }
  .header__inner { gap: 12px; }
  .bundle__item { grid-template-columns: 1fr; gap: 2px; }
  .bundle__qty { justify-self: start; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .modal__dialog { padding: 24px 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
