/* wsnd.ru: шаблон «Большое поле». Шрифты свои (SIL OFL), внешних адресов нет. */
@font-face{font-family:"Unbounded";font-weight:500;font-display:swap;src:url(/fonts/unbounded-latin-500.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Unbounded";font-weight:500;font-display:swap;src:url(/fonts/unbounded-cyrillic-500.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded";font-weight:700;font-display:swap;src:url(/fonts/unbounded-latin-700.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Unbounded";font-weight:700;font-display:swap;src:url(/fonts/unbounded-cyrillic-700.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded";font-weight:600;font-display:swap;src:url(/fonts/unbounded-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Unbounded";font-weight:600;font-display:swap;src:url(/fonts/unbounded-cyrillic-600.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-weight:400;font-display:swap;src:url(/fonts/golos-text-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-weight:400;font-display:swap;src:url(/fonts/golos-text-cyrillic-400.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-weight:500;font-display:swap;src:url(/fonts/golos-text-latin-500.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-weight:500;font-display:swap;src:url(/fonts/golos-text-cyrillic-500.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-weight:600;font-display:swap;src:url(/fonts/golos-text-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-weight:600;font-display:swap;src:url(/fonts/golos-text-cyrillic-600.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"JetBrains Mono";font-weight:500;font-display:swap;src:url(/fonts/jetbrains-mono-latin-500.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"JetBrains Mono";font-weight:500;font-display:swap;src:url(/fonts/jetbrains-mono-cyrillic-500.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
/* Две темы одной разметкой. Цвета только через переменные; тему ставит theme.js атрибутом data-theme на <html> до отрисовки.
   Без JS работает prefers-color-scheme. */
:root{
  --bg:#15202b; --surface:#1c2935; --line:#2a3642; --line2:#3a4a5a; --ink:#e6edf3; --muted:#a9b6c2;
  --accent:#35c46e; --on-accent:#0d1a12; --sel-bg:#35c46e; --sel-fg:#0d1a12; --pill-bg:transparent;
  --strong:#ffffff; --slot-line:#4a5a6a; --hover:#ffffff; --warn:#f0b455; --danger:#ff8a7a;
  --wa:var(--accent); --wa-ink:var(--on-accent); --tg:#4ea7ea; --tg-ink:#0d1a12; --pc:var(--wa);
  --tile:#2b3b4b; --toast-bg:#e6edf3; --toast-fg:#15202b; --shadow:rgba(0,0,0,.5); --dim:rgba(0,0,0,.55);
  --pwa-muted:#a9b6c2; --pwa-on:#15202b; --pwa-chip-b:#173347; --pwa-chip-bt:#6cb4ee; --pwa-ok:#35c46e; --pwa-dash:#4a5866;
  --display:"Unbounded",system-ui,sans-serif; --body:"Golos Text",system-ui,sans-serif; --mono:"JetBrains Mono",ui-monospace,monospace;
  --nf-bg:#15202b; --chat-bg:#18242f; --chat-line:#2a3642; --avatar:#2a3642; --bubble:#1f4d33; --bubble-ink:#e6edf3; --faint:#9aa7b3; --err:#ff8a80; --dot:#6b7783; --nf-shadow:0 24px 60px rgba(0,0,0,.35);
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#f7f8f6; --surface:#ffffff; --line:#d6dde4; --line2:#c3ccd5; --ink:#15202b; --muted:#4d5a67;
  --accent:#17863f; --on-accent:#ffffff; --sel-bg:#15202b; --sel-fg:#ffffff; --pill-bg:#ffffff;
  --strong:#15202b; --slot-line:#b4bec8; --hover:#000000; --warn:#8a5a0a; --danger:#b3261e;
  --tile:#15202b; --toast-bg:#15202b; --toast-fg:#ffffff; --shadow:rgba(21,32,43,.22); --dim:rgba(21,32,43,.32);
  --pwa-muted:#4d5a67; --pwa-on:#ffffff; --pwa-chip-b:#e8f1fb; --pwa-chip-bt:#1b6fb3; --pwa-ok:#17863f; --pwa-dash:#9aa6b2;
  --tg:#2a8bd3; --tg-ink:#ffffff;
  --nf-bg:#eef1f4; --chat-bg:#f4f6f8; --chat-line:#e3e8ed; --avatar:#d6dde4; --bubble:#dcf5e4; --bubble-ink:#15202b; --faint:#566370; --err:#b42318; --dot:#9aa6b2; --nf-shadow:0 24px 60px rgba(21,32,43,.12);
  color-scheme:light;
}
@media (prefers-color-scheme:light){:root:not([data-theme]){
  --bg:#f7f8f6; --surface:#ffffff; --line:#d6dde4; --line2:#c3ccd5; --ink:#15202b; --muted:#4d5a67;
  --accent:#17863f; --on-accent:#ffffff; --sel-bg:#15202b; --sel-fg:#ffffff; --pill-bg:#ffffff;
  --strong:#15202b; --slot-line:#b4bec8; --hover:#000000; --warn:#8a5a0a; --danger:#b3261e;
  --tile:#15202b; --toast-bg:#15202b; --toast-fg:#ffffff; --shadow:rgba(21,32,43,.22); --dim:rgba(21,32,43,.32);
  --pwa-muted:#4d5a67; --pwa-on:#ffffff; --pwa-chip-b:#e8f1fb; --pwa-chip-bt:#1b6fb3; --pwa-ok:#17863f; --pwa-dash:#9aa6b2;
  --tg:#2a8bd3; --tg-ink:#ffffff;
  --nf-bg:#eef1f4; --chat-bg:#f4f6f8; --chat-line:#e3e8ed; --avatar:#d6dde4; --bubble:#dcf5e4; --bubble-ink:#15202b; --faint:#566370; --err:#b42318; --dot:#9aa6b2; --nf-shadow:0 24px 60px rgba(21,32,43,.12);
  color-scheme:light}}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--bg)}
body.bf{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--ink);font:15px/1.5 var(--body)}
button,input,textarea,select{font:inherit;color:inherit}
a{color:inherit}
a:hover{color:var(--hover)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html.pwa-lock,html.pwa-lock body{overflow:hidden}

/* ---------- шапка ---------- */
.bf-head{display:flex;justify-content:space-between;align-items:center;gap:16px;max-width:1200px;width:100%;margin:0 auto;padding:20px 32px}
.bf-logo{display:flex;align-items:center;gap:8px;font:700 18px var(--display);text-decoration:none}
.bf-logo i{width:11px;height:11px;border-radius:50%;background:var(--pc);display:inline-block}
.bf-tools{display:flex;align-items:center;gap:10px}
.bf-theme{display:flex;gap:2px;padding:3px;border:1.5px solid var(--line2);border-radius:999px}
.bf-theme button{width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.bf-theme button[aria-pressed="true"]{background:var(--sel-bg);color:var(--sel-fg)}
:root[data-theme="dark"] .bf-theme button[aria-pressed="true"]{background:var(--line);color:#ffffff}
.pwa-btn{width:44px;height:44px;border:1.5px solid var(--line2);background:transparent;color:var(--ink);border-radius:12px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.pwa-btn:hover,.pwa-promo:hover{border-color:var(--ink)}

/* ---------- страница ---------- */
.bf-main{flex:1;max-width:1200px;width:100%;margin:0 auto;padding:64px 32px 40px;display:flex;flex-direction:column;gap:40px}
.bf-main>*{min-width:0}
.bf-intro{display:flex;flex-direction:column;gap:14px;max-width:760px}
h1,h2{font-family:var(--display);font-weight:600;margin:0;color:var(--ink)}
h1{font-size:30px;line-height:1.2;letter-spacing:-.015em;text-wrap:balance}
h2{font-size:26px;letter-spacing:-.01em;line-height:1.25}
.bf-lede{margin:0;font-size:18px;color:var(--muted)}
.crumb{font:500 12px var(--mono);color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.crumb a{color:var(--muted);text-decoration:none;display:inline-flex;align-items:center;min-height:24px}
.crumb a:hover{color:var(--ink);text-decoration:underline}

/* ---------- форма ---------- */
.bf-form{display:flex;flex-direction:column;gap:22px}
.plat{display:flex;gap:8px;flex-wrap:wrap}
.plat button{display:flex;align-items:center;gap:10px;border:1.5px solid var(--line2);border-radius:999px;background:var(--pill-bg);color:var(--ink);font:600 17px var(--body);padding:12px 24px 12px 14px;min-height:48px;cursor:pointer}
.plat button[aria-pressed="true"]{border-color:transparent}
.plat button[data-p="wa"][aria-pressed="true"]{background:var(--wa);color:var(--wa-ink)}
.plat button[data-p="tg"][aria-pressed="true"]{background:var(--tg);color:var(--tg-ink)}
.bf-ico{width:24px;height:24px;flex-shrink:0;display:inline-flex}
.bf-ico svg{width:24px;height:24px;display:block}
.bf-big{display:flex;align-items:flex-end;gap:24px;flex-wrap:wrap;border-bottom:3px solid var(--accent);padding-bottom:14px}
.bf-big label{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:8px}
.bf-cap{font-size:14px;color:var(--muted)}
#num{border:0;background:transparent;outline:none;font:500 clamp(30px,7.2vw,72px)/1.05 var(--mono);color:var(--strong);letter-spacing:-.02em;width:100%;min-width:0;padding:0;border-radius:6px}
#num::placeholder{color:var(--muted);opacity:1}
#num:focus-visible{outline:none}
.bf-go{display:flex;align-items:center;justify-content:center;gap:12px;border-radius:18px;background:var(--wa);color:var(--wa-ink);font:600 19px var(--body);padding:0 30px;min-height:72px;text-decoration:none;cursor:pointer;transition:opacity .15s}
.bf-go:hover{color:var(--wa-ink)}
/* кнопка и линия поля берут цвет выбранного мессенджера: WhatsApp — зелёный, Telegram — синий */
.bf:has(.plat [data-p="tg"][aria-pressed="true"]) .bf-go{background:var(--tg);color:var(--tg-ink)}
.bf:has(.plat [data-p="tg"][aria-pressed="true"]) .bf-go:hover{color:var(--tg-ink)}
.bf:has(.plat [data-p="tg"][aria-pressed="true"]) .bf-big{border-bottom-color:var(--tg)}
.bf:has(.plat [data-p="tg"][aria-pressed="true"]) .bf-big label{border-bottom-color:var(--tg)}
.bf-go[aria-disabled="true"]{opacity:.4;pointer-events:none}
.bf-go svg{flex-shrink:0}
.bf-info{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;font-size:15px;color:var(--muted)}
.bf-cc-wrap{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.bf-cc{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:inherit;font:inherit;min-height:44px;padding:0 18px 0 0;cursor:pointer;field-sizing:content;background-repeat:no-repeat;background-position:right center;background-size:12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b6c2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}
:root[data-theme="light"] .bf-cc{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d5a67' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}
@media (prefers-color-scheme:light){:root:not([data-theme]) .bf-cc{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d5a67' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}}
.bf-cc option{color:var(--ink);background:var(--surface)}
.det{white-space:nowrap;color:var(--ink)}
.det.bad{color:var(--warn)}
.bf-link{font:500 14px var(--mono);color:var(--ink);overflow-wrap:anywhere}
.bf-hint{display:none;font-size:13px;color:var(--muted)}
.recent{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.recent button{border:1.5px solid var(--line2);background:var(--pill-bg);color:var(--ink);border-radius:999px;padding:6px 14px;font:500 13px var(--mono);min-height:44px;cursor:pointer}

/* ---------- доводы ---------- */
.bf-feat{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.bf-feat div{border-top:1px solid var(--line2);padding-top:16px;display:flex;flex-direction:column;gap:6px}
.bf-feat b{font-weight:600}
.bf-feat span{color:var(--muted);font-size:15px}

/* ---------- реклама: только текст, высота по содержимому ---------- */
.bf-slot{width:100%}
.ad{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;border:1px dashed var(--slot-line);border-radius:12px;padding:14px 16px;font-size:15px;background:transparent}
.ad small{font:500 11px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);flex-shrink:0}
.ad .ad-text{font-weight:500;min-width:0;overflow-wrap:anywhere}
.ad a{color:var(--ink);font-weight:500;min-width:0;overflow-wrap:anywhere;text-underline-offset:3px}
.ad .who{font:500 12px var(--mono);color:var(--muted);flex-basis:100%}
#rsya-root{width:100%}
#rsya-root:empty{display:none}

/* ---------- как написать ---------- */
.bf-how{display:flex;flex-direction:column;gap:24px;padding-top:24px}
.bf-steps{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.bf-steps li{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px;display:flex;flex-direction:column;gap:10px}
.bf-steps .n{font:500 15px var(--mono);color:var(--accent)}
.bf-steps b{font-weight:600;font-size:18px}
.bf-steps .c{display:flex;flex-direction:column;gap:10px}
.bf-steps .t{color:var(--muted);font-size:15px;line-height:1.5}
.bf-note{margin:0;color:var(--muted);font-size:15px;line-height:1.5;max-width:760px}

/* ---------- текст, вопросы ---------- */
.seo-text{color:var(--muted);font-size:16px;line-height:1.6;max-width:760px}
.seo-text h2{margin:0 0 12px}
.seo-text p{margin:0 0 10px}
.ad-wrap{margin-top:14px}
.faq{display:flex;flex-direction:column;gap:10px;max-width:760px}
.faq h2{margin-bottom:6px}
.faq details{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:0 18px}
.faq summary{cursor:pointer;font-weight:600;min-height:52px;display:flex;align-items:center;padding:8px 0}
.faq p{margin:0 0 14px;color:var(--muted)}

/* ---------- популярные запросы ---------- */
.bf-pop{display:flex;flex-direction:column;gap:18px}
.bf-pop ul{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:10px}
.bf-pop a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1.5px solid var(--line2);border-radius:999px;background:var(--pill-bg);text-decoration:none;font-size:15px;color:var(--ink)}
.bf-pop a:hover{border-color:var(--ink)}
.bf-pop .s{display:none}

/* ---------- подвал ---------- */
.foot{display:flex;flex-wrap:wrap;gap:6px 20px;justify-content:center;font-size:13px;color:var(--muted);padding:20px 32px 28px;max-width:1200px;width:100%;margin:0 auto;border-top:1px solid var(--line)}
.foot a{color:var(--muted);display:inline-flex;align-items:center;min-height:32px}
.foot button{border:0;background:none;padding:0;color:var(--muted);text-decoration:underline;cursor:pointer;font:inherit;min-height:32px}
.foot a:hover,.foot button:hover{color:var(--ink)}

/* ---------- политика, согласие, 404 ---------- */
.bf-doc{flex:1;max-width:1200px;width:100%;margin:0 auto;padding:40px 32px;display:flex;flex-direction:column;gap:24px}
.legal{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:28px;display:grid;gap:12px;max-width:760px}
.legal h1{font-size:24px;margin:0}
.legal h3{font:600 16px var(--body);margin:10px 0 0}
.legal p,.legal li{margin:0;color:var(--ink)}
.legal ul{margin:0;padding-left:22px;display:grid;gap:6px}
.legal a{color:var(--ink);text-underline-offset:3px}
.legal .warn{font-size:14px;color:var(--warn)}
.mychoice{border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:grid;gap:8px;background:var(--bg)}
.mychoice div{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.mychoice b{font-weight:600}
.legal .mychoice .mini{border:1.5px solid var(--line2);background:none;border-radius:999px;padding:0 14px;min-height:44px;font-size:14px;cursor:pointer;color:var(--ink)}
.ymstate{font:500 11px var(--mono);color:var(--muted);text-align:center}
.err{color:var(--danger);font-size:13px}
.bf-404 p{margin:0;color:var(--muted);font-size:18px}

/* ---------- cookie-баннер ---------- */
.cb{position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--surface);border-top:1px solid var(--line2);box-shadow:0 -6px 24px var(--shadow);
  padding:16px max(20px,env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px));max-height:90vh;overflow:auto}
.cb-in{max-width:1200px;margin:0 auto;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.cb p{margin:0;flex:1 1 360px;font-size:14px;color:var(--muted);min-width:0}
.cb p a{color:var(--ink);text-underline-offset:3px}
.cb .acts{display:flex;gap:8px;flex-wrap:wrap}
.cb-opts{max-width:1200px;margin:12px auto 0;display:grid;border-top:1px solid var(--line)}
.tg{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.tg:last-child{border-bottom:0}
.tg span{min-width:0}
.tg span small{display:block;color:var(--muted);font-size:13px}
.sw{position:relative;width:44px;height:26px;flex-shrink:0}
.sw::before{content:"";position:absolute;inset:-9px -4px}
.sw input{opacity:0;width:100%;height:100%;margin:0;cursor:pointer;position:absolute;z-index:1}
.sw i{position:absolute;inset:0;background:var(--line2);border-radius:99px;transition:.15s}
.sw i::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.15s}
.sw input:checked+i{background:var(--accent)}
.sw input:checked+i::after{left:21px}
.sw input:disabled{cursor:not-allowed}.sw input:disabled+i{opacity:.55}
.sw input:focus-visible+i{outline:2px solid var(--accent);outline-offset:2px}
.btn{border:0;border-radius:14px;padding:0 20px;min-height:44px;font-weight:600;cursor:pointer;background:var(--accent);color:var(--on-accent)}
.btn.ghost{background:none;border:1.5px solid var(--line2);color:var(--ink)}

/* ---------- установка на экран «Домой» ---------- */
.pwa-promo{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:14px 16px;border:1.5px dashed var(--pwa-dash);background:transparent;border-radius:16px;text-align:left;cursor:pointer;color:var(--ink);font:500 15px var(--body)}
.pwa-tile{width:36px;height:36px;border-radius:10px;background:var(--tile);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pwa-pt2{display:flex;flex-direction:column;gap:2px}
.pwa-pt2 b{font-weight:600}
.pwa-pt2 span{color:var(--pwa-muted);font-size:14px}
.pwa-dim{position:fixed;inset:0;z-index:40;background:var(--dim)}
.pwa-sheet{position:fixed;left:0;right:0;bottom:0;z-index:41;max-width:560px;margin:0 auto;background:var(--surface);border-radius:24px 24px 0 0;padding:10px 20px calc(28px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:18px;box-shadow:0 -10px 34px var(--shadow)}
.pwa-grab{width:40px;height:4px;border-radius:4px;background:var(--line2);align-self:center}
.pwa-top{display:flex;gap:14px;align-items:center}
.pwa-app{width:56px;height:56px;border-radius:14px;flex-shrink:0;display:block}
.pwa-app.s{width:44px;height:44px;border-radius:11px}
.pwa-tt{display:flex;flex-direction:column;gap:3px}
.pwa-tt h2,.pwa-ios h2{margin:0;font:600 17px/1.25 var(--display);color:var(--ink)}
.pwa-tt span{font-size:14px;color:var(--pwa-muted)}
.pwa-pts{display:flex;flex-direction:column;gap:10px;font-size:15px}
.pwa-pt{display:flex;gap:10px;align-items:center}
.pwa-pt svg{flex-shrink:0;stroke:var(--pwa-ok)}
.pwa-btns{display:flex;flex-direction:column;gap:8px}
.pwa-main{border:0;border-radius:16px;background:var(--accent);color:var(--on-accent);font:600 16px var(--body);padding:16px;min-height:52px;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer}
.pwa-later{border:0;border-radius:14px;background:transparent;color:var(--pwa-muted);font:500 15px var(--body);padding:12px;min-height:44px;cursor:pointer}
.pwa-ios{position:fixed;left:12px;right:12px;bottom:calc(44px + env(safe-area-inset-bottom,0px));z-index:41;max-width:520px;margin:0 auto;background:var(--surface);border-radius:22px;padding:20px;display:flex;flex-direction:column;gap:16px;box-shadow:0 12px 34px var(--shadow)}
.pwa-ios h2{font-size:16px;line-height:1.3}
.pwa-ios-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.pwa-ios-id{display:flex;gap:12px;align-items:center}
.pwa-x{border:0;background:var(--bg);width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer;color:var(--pwa-muted)}
.pwa-steps{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px;font-size:15px}
.pwa-steps li{display:flex;gap:12px;align-items:center}
.pwa-n{width:28px;height:28px;border-radius:50%;background:var(--accent);color:var(--on-accent);font:600 13px var(--mono);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pwa-tx{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pwa-chip{display:inline-flex;align-items:center;gap:4px;background:var(--bg);padding:3px 8px;border-radius:8px;font-weight:600}
.pwa-chip.b{background:var(--pwa-chip-b);color:var(--pwa-chip-bt)}
.pwa-hint{font-size:13px;color:var(--pwa-muted)}
.pwa-arrow{position:fixed;left:50%;bottom:calc(6px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:41;display:flex;flex-direction:column;align-items:center}
.pwa-toast{position:fixed;left:16px;right:16px;bottom:calc(28px + env(safe-area-inset-bottom,0px));max-width:520px;margin:0 auto;z-index:50;background:var(--toast-bg);color:var(--toast-fg);border-radius:14px;padding:14px 16px;display:flex;align-items:center;gap:12px;font-size:15px;box-shadow:0 10px 28px var(--shadow)}
.pwa-ok{width:28px;height:28px;border-radius:50%;background:#35c46e;color:#15202b;display:flex;align-items:center;justify-content:center;flex-shrink:0}

@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---------- страница 404 «Сообщение не доставлено» ---------- */
body.nf{background:var(--nf-bg)}
html:has(body.nf){background:var(--nf-bg)}
.nf-main{flex:1;max-width:1200px;width:100%;margin:0 auto;padding:40px 32px 56px;display:flex;flex-wrap:wrap;gap:56px;align-items:center}
.nf-copy{flex:999 1 420px;min-width:0;display:flex;flex-direction:column;gap:22px}
.nf-code{font:500 15px var(--mono);color:var(--muted)}
.nf-main h1{font:700 54px/1.05 var(--display);letter-spacing:-.025em;text-wrap:balance;overflow-wrap:anywhere}
.nf-lead{margin:0;font-size:19px;line-height:1.5;color:var(--muted);max-width:480px}
.nf-actions{display:flex;gap:12px;flex-wrap:wrap}
.nf-btn{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 24px;border-radius:14px;font-weight:600;font-size:17px;text-decoration:none}
.nf-primary{background:var(--accent);color:var(--on-accent)}
.nf-primary:hover{color:var(--on-accent)}
.nf-ghost{border:1.5px solid var(--line2);color:var(--ink)}
.nf-chat{flex:1 1 400px;min-width:0;max-width:460px;background:var(--surface);border-radius:28px;box-shadow:var(--nf-shadow);overflow:hidden}
.nf-chat-top{padding:16px 20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--chat-line)}
.nf-ava{width:42px;height:42px;border-radius:50%;background:var(--avatar);display:flex;align-items:center;justify-content:center;font:600 15px var(--mono);color:var(--muted);flex:none}
.nf-who{display:flex;flex-direction:column;gap:2px}
.nf-who small{font-size:13px;color:var(--faint)}
.nf-chat-body{padding:22px 18px;display:flex;flex-direction:column;gap:10px;background:var(--chat-bg);min-height:320px}
.nf-day{align-self:center;font-size:12px;color:var(--faint);background:var(--chat-line);padding:4px 10px;border-radius:999px}
.nf-msg{align-self:flex-end;max-width:78%;background:var(--bubble);color:var(--bubble-ink);border-radius:16px 16px 4px 16px;padding:10px 14px;font-size:15px}
.nf-fail{align-self:flex-end;display:flex;align-items:center;gap:6px;font-size:13px;color:var(--err)}
.nf-typing{align-self:flex-start;display:flex;gap:4px;background:var(--surface);border-radius:16px;padding:12px 14px;margin-top:6px}
.nf-typing i{width:7px;height:7px;border-radius:50%;background:var(--dot)}
.nf-typing-note{align-self:flex-start;font-size:12px;color:var(--faint)}
@media (prefers-reduced-motion:no-preference){
  .nf-typing i{animation:nf-blink 1.4s infinite both}
  .nf-typing i:nth-child(2){animation-delay:.2s}
  .nf-typing i:nth-child(3){animation-delay:.4s}
  @keyframes nf-blink{0%,80%,100%{opacity:.35}40%{opacity:1}}
}
@media (max-width:640px){
  .nf-main{padding:8px 20px 28px;flex-direction:column;align-items:stretch;gap:18px}
  .nf-copy{display:contents}
  .nf-code{font-size:13px;order:1}
  .nf-main h1{font-size:32px;line-height:1.08;letter-spacing:-.02em;order:2}
  .nf-lead{font-size:16px;order:3}
  .nf-chat{order:4;max-width:none;border-radius:22px;flex:none}
  .nf-actions{order:5;flex-direction:column;gap:10px}
  .nf-btn{width:100%}
  .nf-chat-body{min-height:0;padding:16px 14px;gap:8px}
  .nf-msg{font-size:14px;max-width:80%}
  .nf-extra,.nf-day{display:none}
}

/* ---------- телефон ---------- */
@media (max-width:600px){
  .bf-head{padding:14px 20px;gap:12px}
  .bf-logo{font-size:16px}
  .bf-logo i{width:10px;height:10px}
  .bf-main{padding:20px 20px 28px;gap:26px}
  .bf-doc{padding:20px}
  .bf-intro{gap:10px}
  h1{font-size:22px;line-height:1.22;letter-spacing:-.01em}
  h2{font-size:20px}
  .bf-lede{font-size:15px;line-height:1.45}
  .bf-form{gap:16px}
  .plat{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .plat button{font-size:16px;padding:12px;justify-content:center;gap:8px}
  .plat button .bf-ico,.plat button .bf-ico svg{width:22px;height:22px}
  .bf-big{display:contents}
  .plat{order:1}
  .bf-big label{order:2;border-bottom:3px solid var(--accent);padding-bottom:10px;gap:6px;flex:none}
  .bf-info{order:3;font-size:13px;gap:10px}
  .bf-more{display:none}
  .bf-go{order:4;width:100%;border-radius:16px;font-size:18px;min-height:60px;padding:0 20px}
  .bf-hint{order:5;display:block}
  .recent{order:6}
  .bf-cap{font-size:13px}
  #num{font-size:30px;line-height:1.1}
  .bf-feat{display:flex;flex-direction:column;gap:0}
  .bf-feat div{flex-direction:row;justify-content:space-between;gap:12px;font-size:15px;padding:14px 0}
  .bf-feat div:last-child{border-bottom:1px solid var(--line2)}
  .bf-feat span{text-align:right}
  .bf-how{gap:16px;padding-top:0}
  .bf-steps{display:flex;flex-direction:column;gap:10px}
  .bf-steps li{flex-direction:row;gap:14px;padding:16px;border-radius:16px}
  .bf-steps .n{font-size:14px;padding-top:2px}
  .bf-steps .c{display:flex;flex-direction:column;gap:4px}
  .bf-steps b{font-size:16px}
  .bf-steps .t{font-size:14px;line-height:1.45}
  .bf-note{font-size:13px}
  .bf-pop{gap:14px}
  .bf-pop ul{gap:8px}
  .bf-pop a{padding:0 14px;font-size:14px}
  .bf-pop .f{display:none}
  .bf-pop .s{display:inline}
  .seo-text{font-size:15px}
  .foot{padding:12px 20px 24px}
  .ad{flex-wrap:wrap;row-gap:6px}
  .cb-in{gap:12px}
}
@media (max-width:900px) and (min-width:601px){
  .bf-steps{grid-template-columns:1fr}
  .bf-feat{gap:12px}
}
