/* Общие стили лендинга и страницы после оплаты.
   Тёплая лаванда: кремовый фон, лавандовые карточки, персиковые акценты. */
:root {
  --bg: #fdf8f3;
  --card: #f6effa;
  --card-2: #fbf1ea;
  --white: #ffffff;
  --line: #ebe1ef;
  --text: #221a33;
  --muted: #6e6580;
  --accent: #7b5bd6;
  --accent-2: #9b7fe6;
  --accent-soft: #e6dbfa;
  --peach: #f5c6ad;
  --peach-soft: #fde6d8;
  --hand: #7b5bd6;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(92, 64, 140, 0.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
code { font: 600 0.92em ui-monospace, Menlo, Consolas, monospace; background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; font-weight: 800; margin: 0 0 20px; letter-spacing: -0.025em; }
h1 .soft { color: var(--accent); display: block; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 800; margin: 0 0 14px; letter-spacing: -0.015em; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; font-weight: 700; }
p { margin: 0 0 12px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Рукописные подписи — только на широком экране, на телефоне мешают. */
.hand {
  font: 500 24px/1.15 Caveat, cursive; color: var(--hand);
  position: absolute; pointer-events: none; white-space: nowrap; z-index: 5;
}
.hand svg { display: block; margin-top: 4px; }
@media (max-width: 859px) { .hand { display: none; } }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff;
  font: 700 17px Manrope, sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(123, 91, 214, 0.30);
}
.btn:hover { filter: brightness(1.05); }
.btn:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent-2); box-shadow: none; }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 15px; }

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.logo { font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo::before { content: ""; width: 26px; height: 26px; border-radius: 9px; background: linear-gradient(135deg, var(--peach), var(--accent-2)); }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 859px) { .nav { display: none; } }

/* Блоки-карточки */
.block { margin: 24px auto; padding-top: 56px; padding-bottom: 56px; }
.panel { background: var(--card); border-radius: 36px; padding: 48px 40px; position: relative; }
.panel--warm { background: var(--card-2); }
@media (max-width: 859px) { .panel { padding: 36px 20px; border-radius: 28px; } .block { padding-top: 32px; padding-bottom: 32px; margin: 12px auto; } }

.card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b5bd6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Телефон-рамка */
.phone-frame {
  position: relative; width: 100%; max-width: 250px; aspect-ratio: 9 / 18.5;
  border-radius: 38px; background: #1d1726; padding: 10px; box-shadow: 0 24px 50px rgba(60, 40, 100, 0.25);
}
.phone-frame .screen {
  position: relative; height: 100%; border-radius: 30px; overflow: hidden;
  background: linear-gradient(170deg, #cdbdf0 0%, #f2c7b4 70%, #f7dccb 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 14px;
}
.phone-frame .screen--raw { background: linear-gradient(170deg, #b9b2c4 0%, #d8cfc7 100%); }
.phone-frame .screen::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(to top, rgba(34, 22, 52, 0.55), rgba(34, 22, 52, 0));
}
.phone-frame .screen--raw::after { display: none; }
.phone-frame .screen > * { z-index: 1; }
.phone-frame .badge {
  position: absolute; top: 16px; left: 14px; background: rgba(255,255,255,0.9); color: var(--text);
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.phone-frame .badge--accent { background: var(--accent); color: #fff; }
.phone-frame .face {
  position: absolute; left: 50%; top: 30%; transform: translateX(-50%);
  width: 46%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,0.45);
}
.phone-frame .face::after {
  content: ""; position: absolute; left: 50%; top: 105%; transform: translateX(-50%);
  width: 150%; height: 90%; border-radius: 50% 50% 0 0; background: rgba(255,255,255,0.35);
}
.phone-frame .hook {
  position: absolute; top: 54px; left: 14px; right: 14px; text-align: center;
  background: #fff; color: var(--text); font-weight: 800; font-size: 15px; line-height: 1.25;
  padding: 8px 10px; border-radius: 12px;
}
.phone-frame .subs {
  position: relative; text-align: center; color: #fff; font-weight: 800; font-size: 17px; line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35); margin-bottom: 28px;
}
.phone-frame .subs b { color: #ffd4bd; }
.phone-frame .raw-lines { position: relative; display: grid; gap: 6px; margin-bottom: 18px; }
.phone-frame .raw-lines span { background: rgba(255,255,255,0.75); border-radius: 8px; padding: 4px 8px; font-size: 12px; color: #4a4258; }
.phone-frame .raw-lines s { color: #9a8fa8; }
.phone-frame .time {
  position: relative; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: rgba(30, 22, 40, 0.65); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px;
}

/* Место под настоящую картинку */
.slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 18px; color: var(--muted); font-size: 14px; padding: 16px;
  background: linear-gradient(150deg, var(--accent-soft), var(--peach-soft));
  border: 1px dashed #cdbfe0;
}

/* Макет ноутбука для скриншотов агента. */
.macbook { width: 100%; max-width: 400px; margin: 4px auto 0; }
.macbook-screen {
  position: relative; background: #1b1722; border-radius: 16px 16px 4px 4px;
  padding: 14px 12px 12px; box-shadow: 0 20px 40px rgba(60, 40, 100, 0.20);
}
.macbook-screen::before {
  content: ""; position: absolute; top: 5px; left: 50%; width: 5px; height: 5px;
  border-radius: 50%; background: #3a3444; transform: translateX(-50%);
}
.macbook-screen img { display: block; width: 100%; height: auto; border-radius: 3px; }
.macbook-base {
  position: relative; height: 14px; margin: 0 -8%; border-radius: 2px 2px 14px 14px;
  background: linear-gradient(#e9e4ee, #c9c2d3); box-shadow: 0 10px 20px rgba(60, 40, 100, 0.15);
}
.macbook-base::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 18%; height: 5px;
  transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #b8b0c4;
}

/* Подвал */
footer { padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
footer a { color: inherit; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10;
}
.toast.show { opacity: 1; }

/* Страницы документов: оферта, возвраты, данные. */
.doc { max-width: 760px; padding-top: 24px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.doc .edition { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.doc section { background: var(--white); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 14px; }
.doc h2 { font-size: 20px; margin: 0 0 10px; display: flex; gap: 12px; align-items: baseline; }
.doc h2 span { color: var(--accent); font-size: 14px; font-weight: 800; }
.doc p, .doc li { font-size: 16px; }
.doc ul { margin: 8px 0 0; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc .quote { background: var(--card); border-radius: 16px; padding: 16px 18px; margin-bottom: 14px; }
.doc .quote b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.doc .back { display: inline-block; margin-top: 18px; }
.agree { font-size: 13px; color: var(--muted); margin-top: 10px; }
.agree a { color: inherit; }
