/* Forward SMS — сайт. Токены из светлой темы приложения (apps/mobile/src/theme/palette.js, Figma «Forward SMS · Light»), Inter. Тёмной темы нет. */
:root {
  --bg: #f4f3f9;            /* background/canvas */
  --bg-deep: #efedf5;       /* surface/neutral-tile */
  --surface: #ffffff;       /* surface/card */
  --surface-2: #efedf5;
  --tile: #f1edfc;          /* surface/tile */
  --line: #dcd8ea;          /* border/default */
  --line-accent: #d3c4fb;   /* border/accent */
  --text: #17142b;          /* text/primary */
  --text-2: #454160;        /* text/secondary */
  --muted: #5e5a7a;         /* text/muted */
  --accent: #6d28d9;        /* brand/violet */
  --accent-hi: #5b21b6;     /* text/accent */
  --accent-soft: #efe9fe;   /* surface/accent-soft */
  --grad: #6d28d9;
  --tg: #2aabee;
  --r: 14px;
  --r-lg: 22px;
  --wrap: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hi); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
::selection { background: var(--line-accent); color: var(--text); }
html { scrollbar-color: #c4bfd6 var(--bg); accent-color: var(--accent); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* шапка */
.top { position: sticky; top: 0; z-index: 5; background: rgb(244 243 249 / .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.brand svg, .brand img { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 16px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn-pri { background: var(--grad); color: #fff; }
.btn-pri:hover { color: #fff; background: var(--accent-hi); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn small { font-weight: 500; opacity: .8; }

/* главная: первый экран */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; position: relative; }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 18px; font-weight: 700; }
h1 em { font-style: normal; color: var(--accent-hi); }
.lead { font-size: 19px; color: var(--text-2); max-width: 34em; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.phone { justify-self: center; width: min(320px, 100%); border-radius: 28px; padding: 0; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgb(23 20 43 / .35); }
.phone img { border-radius: 0; }
@media (max-width: 860px) { .hero { padding-top: 48px; } .hero .wrap { grid-template-columns: 1fr; } .phone { width: min(280px, 80%); } }

/* секции */
section.s { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
.s-lead { color: var(--text-2); font-size: 18px; max-width: 40em; margin: 0 0 36px; }
h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.01em; }

/* каналы */
.dest { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dest a, .dest div { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); transition: background .15s, border-color .15s; }
.dest a:hover { background: var(--surface); border-color: var(--line-accent); color: var(--text); }
.dest b { display: block; font-size: 16px; }
.dest span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.dest .go { font-size: 13px; color: var(--accent-hi); margin-top: 8px; }
.dest b { color: var(--text); }
.ico, .dest .ico { flex: none; width: 40px; height: 40px; margin: 0; border-radius: 11px; display: grid; place-items: center; background: var(--tile); color: var(--accent); }
.ico.brand-tile { background: #fff; border: 1px solid var(--line); }
.ico svg { width: 22px; height: 22px; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: st; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: st; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-hi); font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--text-2); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* две колонки: текст + экран */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 300px minmax(0, 1fr); }
.split.rev .phone { order: -1; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev .phone { order: 0; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; color: var(--text-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236d28d9' stroke-width='2.4'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E") center/12px no-repeat; }
.checks b { color: var(--text); }

/* пример сообщения */
.bubble { background: var(--tile); border: 1px solid var(--line-accent); border-radius: 16px; padding: 14px 16px; max-width: 380px; font-size: 15px; }
.bubble .who { font-size: 13px; color: var(--tg); font-weight: 600; }
.bubble .code { font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.bubble .meta { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* цены */
.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.plan { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.plan.hi { border-color: var(--line-accent); background: var(--tile); }
.plan .big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; }
.plan p { color: var(--text-2); margin: 0; }
@media (max-width: 640px) { .price { grid-template-columns: 1fr; } }

/* вопросы */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--accent-hi); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 18px; color: var(--text-2); }
.faq .a p { margin: 0 0 10px; }

/* гайд */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; margin-bottom: 4px; }
.crumbs a { color: var(--muted); }
.guide { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 56px; padding: 18px 0 72px; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .toc { display: none; } }
.guide article { max-width: 720px; }
.guide h1 { font-size: clamp(32px, 4.4vw, 46px); }
.answer { font-size: 19px; color: var(--text); background: var(--accent-soft); border: 1px solid var(--line-accent); border-radius: 12px; padding: 16px 20px; margin: 8px 0 28px; }
.guide h2 { font-size: 26px; margin: 44px 0 12px; }
.guide h3 { margin-top: 26px; }
.guide p, .guide li { color: var(--text-2); }
.guide ol.how { padding-left: 0; list-style: none; counter-reset: h; }
.guide ol.how > li { counter-increment: h; position: relative; padding-left: 46px; margin: 0 0 22px; }
.guide ol.how > li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hi); font-weight: 700; font-size: 14px; }
.guide ol.how b { color: var(--text); }
figure.shot { margin: 16px 0 6px; width: min(260px, 100%); }
figure.shot img { border-radius: 22px; border: 1px solid var(--line); }
figure.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.callout { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; color: var(--text); margin: 18px 0; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc b { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.toc a { display: block; color: var(--text-2); text-decoration: none; padding: 5px 0; }
.toc a:hover { color: var(--text); }
.related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.updated { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--text); }

/* текстовые страницы */
.doc { padding-top: 28px; padding-bottom: 80px; }
.doc > * { max-width: 760px; }  /* колонка текста по левому краю, как логотип в шапке */
.hub { padding-bottom: 80px; }
.hub h1 { font-size: clamp(32px, 4.4vw, 46px); margin-top: 12px; }
.dest-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .dest-2 { grid-template-columns: 1fr; } }
.dest .tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.dest .tag + .go { margin-top: 10px; }
.hub .note { margin-top: 28px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; background: var(--bg-deep); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot b { display: block; color: var(--text); margin-bottom: 10px; font-size: 14px; }
.foot a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.foot a:hover { color: var(--text); }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; background: var(--surface); }
.doc td:first-child { color: var(--text); }
.ptoc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin: 18px 0 8px; }
.ptoc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.ptoc a { color: var(--text-2); text-decoration: none; }
.ptoc a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 640px) { .ptoc ol { columns: 1; } .doc table { font-size: 14px; } .doc th, .doc td { padding: 8px; } }
@media (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc tr:first-child { display: none; }
  .doc tr { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface); }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:nth-child(2)::before { content: "Where: "; color: var(--muted); }
  .doc td:nth-child(3)::before { content: "How long: "; color: var(--muted); }
}

.faq .qa { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq .qa h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.faq .qa p { margin: 0; color: var(--text-2); }
.price-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
@media (max-width: 960px) { .price-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .price-4 { grid-template-columns: 1fr; } }
.plan .big small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 2px; }

.checks.cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px 32px; }
@media (max-width: 760px) { .checks.cols { grid-template-columns: 1fr; } }
