/* Посадка powerpointai.online (30.10.2026) — по макету заказчика: светло-сиреневый фон, фиолетовый градиент, белые карточки */
:root {
  --bg: #f5f3ff;
  --surface: #ffffff;
  --ink: #1c1640;
  --muted: #5f5a7d;
  --line: #e4defa;
  --accent: #5b3df5;
  --accent-2: #9a5cff;
  --grad: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 100%);
  --ok: #1f8a5b;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(76, 52, 200, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; line-height: 1.12; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.sub { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
section { padding: 72px 0 0; }
section.tight { padding-top: 56px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* ---------- кнопки, поле, чипы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px;
  border: 0; border-radius: 14px;
  background: var(--grad); color: #fff;
  font-family: inherit; font-weight: 700; font-size: 17px; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(91, 61, 245, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 14px 26px -10px rgba(91, 61, 245, 0.75); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: #c9bff5; filter: none; }
.btn.light { background: #fff; color: #2b1a9c; box-shadow: none; }

.field {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 22px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field:focus-within { border-color: #b8a9ff; box-shadow: var(--shadow), 0 0 0 4px rgba(91, 61, 245, 0.1); }
.field.invalid { border-color: #e0567a; }
.field textarea {
  flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-weight: 500; font-size: 18px; line-height: 1.4; color: var(--ink);
  padding: 12px 0; max-height: 132px;
}
.field textarea::placeholder { color: #8f89ab; }
.form-error { margin: 10px 0 0 4px; color: #c43562; font-size: 15px; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chips[hidden] { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-weight: 500; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: #b8a9ff; color: var(--accent); }
.chip.is-on { border-color: var(--accent); color: var(--accent); background: #f8f6ff; }
.chip svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- шапка ---------- */
.top { padding: 18px 0 0; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); flex: none; }
.logo-mark svg { width: 26px; height: 26px; }
.logo-word { display: inline-flex; align-items: center; gap: 6px; letter-spacing: -0.02em; }
.logo-ai {
  padding: 3px 7px 2px; border-radius: 7px; background: var(--grad); color: #fff;
  font-size: 0.72em; font-weight: 800; letter-spacing: 0.02em; line-height: 1.1;
}
.nav { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.login {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  text-decoration: none; font-weight: 600; font-size: 16px;
}
.login:hover { border-color: #b8a9ff; color: var(--accent); }

/* ---------- первый экран ---------- */
.hero { padding-top: 44px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; line-height: 1.03; letter-spacing: -0.035em; }
.mark {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { margin: 22px 0 28px; max-width: 560px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.proof { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.faces { display: flex; flex: none; }
.faces img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; }
.faces img + img { margin-left: -11px; }
.proof p { margin: 0; font-size: 15px; color: var(--muted); }
.proof b { color: var(--ink); }
.proof .stars { color: #f5a524; margin-left: 4px; }
.proof a { margin-left: 6px; color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.proof a:hover { text-decoration: underline; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 7px; }

.stack { position: relative; aspect-ratio: 1 / 0.82; }
.stack .s {
  position: absolute; width: 74%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 30px 60px -28px rgba(46, 26, 140, 0.45);
}
.s1 { left: 0; top: 4%; transform: rotate(-6deg); }
.s2 { left: 15%; top: 26%; transform: rotate(-2deg); }
.s3 { right: 0; top: 46%; transform: rotate(1.5deg); }
@media (prefers-reduced-motion: no-preference) {
  .stack .s { animation: deal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .s2 { animation-delay: 0.12s !important; }
  .s3 { animation-delay: 0.24s !important; }
  @keyframes deal { from { opacity: 0; translate: 40px 26px; } }
}

/* ---------- структура ---------- */
.plan h2 { overflow-wrap: anywhere; }
.slides { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.slide {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  aspect-ratio: 16 / 9; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.slide .num {
  position: absolute; right: 14px; top: 12px;
  font-size: 13px; font-weight: 700; color: #a69dd0;
}
.slide h3 { font-size: 18px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide .bars { display: grid; gap: 7px; margin-top: auto; width: 70%; }
.slide .bars i { display: block; height: 7px; border-radius: 4px; background: #ece8fd; }
.slide .bars i:nth-child(2) { width: 82%; }
.slide .bars i:nth-child(3) { width: 58%; }
.slide .pic {
  position: absolute; right: 18px; bottom: 18px; width: 34%; aspect-ratio: 4 / 3; border-radius: 10px;
  background: linear-gradient(135deg, #e9e3ff, #cfc2ff);
}
.slide .pic { overflow: hidden; }
.slide .pic::before { content: ""; position: absolute; right: 18%; top: 18%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.slide .pic::after { content: ""; position: absolute; inset: 38% -10% 0 -10%; background: rgba(255, 255, 255, 0.6); clip-path: polygon(0 100%, 30% 25%, 52% 62%, 70% 38%, 100% 100%); }
.slide h3 { padding-right: 18px; }
.slide.with-pic h3 { max-width: 58%; }
.slide.with-pic .bars { width: 52%; }
.slide.cols .bars { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; width: 100%; }
.slide.cols .bars i { width: 100% !important; }
.slide.cover { background: var(--grad); border-color: transparent; color: #fff; justify-content: center; }
.slide.cover h3 { font-size: 21px; }
.slide.cover .num { color: rgba(255, 255, 255, 0.7); }
.slide.cover .bars { display: none; }
.slide.cover::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
@media (prefers-reduced-motion: no-preference) {
  .slides.reveal .slide { animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i) * 70ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
.plan-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- шаги ---------- */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { padding: 26px 26px 28px; }
.step .num {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px;
  border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: 16px;
}
.step p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- примеры тем ---------- */
.topics { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic { padding: 14px 14px 16px; display: flex; flex-direction: column; transition: border-color 0.15s ease, box-shadow 0.2s ease; }
.topic:hover { border-color: #cbbfff; box-shadow: var(--shadow); }
.topic-pick {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
}
.topic-pick img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid #efebfc; }
.topic-pick b { display: block; margin: 14px 4px 0; font-size: 18px; line-height: 1.3; }
.topic-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: auto 4px 0; padding-top: 10px; color: var(--muted); font-size: 15px; }
.topic-meta a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.topic-meta a:hover { text-decoration: underline; }

/* ---------- учёба и работа ---------- */
.tabs { display: flex; gap: 10px; margin-top: 26px; }
.tab {
  min-height: 46px; padding: 0 26px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: inherit; font-weight: 600; font-size: 17px; line-height: 1; cursor: pointer;
}
.tab[aria-selected="true"] { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
#cases .chips { margin-top: 16px; }

/* ---------- файл ---------- */
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 36px 40px; border-radius: 26px; background: var(--grad); color: #fff;
}
.banner p { margin: 8px 0 0; opacity: 0.88; }
.banner .btn { flex: none; }

/* ---------- отзывы ---------- */
.revs { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rev { display: flex; flex-direction: column; padding: 24px 24px 22px; }
.rev-stars { margin: 0; color: #f5a524; letter-spacing: 2px; font-size: 15px; }
.rev-text { margin: 12px 0 20px; font-size: 16px; line-height: 1.55; }
.rev-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rev-who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.rev-who span { display: grid; font-size: 15px; }
.rev-role { color: var(--muted); font-size: 14px; }

/* ---------- цена ---------- */
.price { margin-top: 28px; padding: 28px 30px 30px; }
.terms { margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.terms div { padding-left: 16px; border-left: 3px solid #e4defa; }
.terms dt { font-weight: 700; }
.terms dd { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- вопросы ---------- */
.faq { display: grid; gap: 12px; margin-top: 26px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; flex: none; width: 0; height: 0;
  border-left: 8px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transition: transform 0.2s ease;
}
.faq details[open] summary::before { transform: rotate(90deg); }
.faq details p { margin: 0; padding: 0 24px 22px 46px; color: var(--muted); }
.faq a { color: var(--accent); }

/* ---------- финал ---------- */
.final { padding: 52px 24px 56px; text-align: center; }
.final .field { max-width: 720px; margin: 26px auto 0; text-align: left; }
.final .form-error { text-align: center; }

/* ---------- подвал ---------- */
.foot { margin-top: 56px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 0 0 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }

/* ---------- переход ---------- */
.going { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(245, 243, 255, 0.82); backdrop-filter: blur(6px); }
.going[hidden] { display: none; }
.going-box { display: flex; align-items: center; gap: 16px; max-width: min(460px, 100% - 32px); padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.going-box p { margin: 0; display: grid; gap: 2px; }
.going-box span:not(.spinner) { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.spinner { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 3px solid #e4defa; border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- узкие экраны ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 900px) {
  .revs { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .stack { width: min(520px, 100%); margin-inline: auto; aspect-ratio: 1 / 0.72; }
  .slides, .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .terms { grid-template-columns: 1fr; }
  .banner { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding-top: 56px; }
  .hero { padding-top: 28px; }
  .lead { font-size: 17px; margin: 16px 0 22px; }
  .logo { font-size: 16px; gap: 10px; }
  .logo-mark { width: 32px; height: 32px; }
  .login { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .field { flex-direction: column; align-items: stretch; padding: 8px; border-radius: 18px; }
  .field textarea { padding: 10px 12px; }
  .field .btn { width: 100%; }
  .chips { gap: 8px; }
  .chip { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .slides { grid-template-columns: 1fr 1fr; gap: 10px; }
  .slide { padding: 12px 12px; gap: 6px; border-radius: 12px; }
  .slide h3 { font-size: 14px; }
  .slide.cover h3 { font-size: 15px; }
  .slide .bars { gap: 5px; }
  .slide .bars i { height: 5px; }
  /* примеры и отзывы — лентой с прокруткой вбок, чтобы не листать шесть высоких карточек */
  .topics, .revs {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -16px; padding: 4px 16px 8px; scroll-padding-inline: 16px;
  }
  .topics::-webkit-scrollbar, .revs::-webkit-scrollbar { display: none; }
  .topics > li, .revs > li { flex: 0 0 82%; scroll-snap-align: start; }
  .step { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 20px; }
  .step .num { margin: 0; grid-row: span 2; }
  .step p { margin-top: 4px; }
  .steps { gap: 12px; }
  .stack { width: 88%; }
  .slide .pic { right: 10px; bottom: 10px; border-radius: 7px; }
  .slide.with-pic h3 { max-width: 100%; }
  .proof { gap: 10px; }
  .faces img { width: 32px; height: 32px; }
  .plan-actions .btn { flex: 1 1 100%; }
  .faq summary { font-size: 16px; padding: 18px; }
  .faq details p { padding: 0 18px 18px 40px; }
  .final { padding: 36px 16px 40px; }
}
@media (max-width: 380px) {
  .logo { font-size: 15px; }
}
