/* Сайт Домкассы (главная). Шрифт Onest, лицензия SIL OFL 1.1 (fonts/OFL.txt), лежит на нашем сервере. */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/site/fonts/onest-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/site/fonts/onest-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/site/fonts/onest-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/site/fonts/onest-cyrillic-500-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/site/fonts/onest-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/site/fonts/onest-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/site/fonts/onest-cyrillic-600-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/site/fonts/onest-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/site/fonts/onest-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/site/fonts/onest-cyrillic-700-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/site/fonts/onest-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/site/fonts/onest-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/site/fonts/onest-cyrillic-800-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/site/fonts/onest-latin-ext-800-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/site/fonts/onest-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --ink: #0f1633; --ink2: #3b4466; --muted: #6b7290; --line: #e6e8f2;
  --bg: #f6f7fb; --card: #ffffff; --accent: #4f7cff; --accent-d: #3a63e6; --accent-ink: #2f56d6; --good-ink: #157a41; --accent-soft: #eaf0ff;
  --good: #1f9d55; --good-soft: #e7f7ee; --warn: #9a4f00; --warn-soft: #fff3e2; --peach: #ffe9dc;
  --navy: #0e1530; --radius: 22px; color-scheme: light;
  --shadow: 0 1px 2px rgba(15,22,51,.06), 0 12px 32px rgba(15,22,51,.08);
  --shadow-lg: 0 30px 80px rgba(36,56,140,.22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 Onest, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.12; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.lead { font-size: 19px; color: var(--ink2); max-width: 620px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; color: var(--accent-ink); background: var(--accent-soft); padding: 6px 12px; border-radius: 99px; margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; font: inherit; font-weight: 600; border: 0; cursor: pointer; border-radius: 14px; padding: 15px 24px; transition: .15s; }
.btn-primary { background: var(--accent-d); color: #fff; box-shadow: 0 8px 22px rgba(79,124,255,.35); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.ico { width: 22px; height: 22px; flex: none; }

/* шапка */
header { position: sticky; top: 0; z-index: 10; background: rgba(246,247,251,.82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(230,232,242,.7); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo svg { width: 36px; height: 36px; }
.nav nav { display: flex; gap: 26px; margin-left: 18px; color: var(--ink2); font-weight: 500; font-size: 15px; }
.nav .sp { flex: 1; }
.nav .btn { padding: 11px 18px; font-size: 15px; }

/* первый экран */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 760px; height: 760px; background: radial-gradient(closest-side, rgba(79,124,255,.22), transparent); }
.hero::after { content: ""; position: absolute; left: -200px; bottom: -260px; width: 620px; height: 620px; background: radial-gradient(closest-side, rgba(255,170,120,.20), transparent); }
.hero .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 22px 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: var(--ink2); font-size: 15px; }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust .ico { width: 20px; height: 20px; color: var(--good); }

.stage { position: relative; height: 640px; }
.phone { position: absolute; width: 300px; border-radius: 46px; background: #0d1124; padding: 11px; box-shadow: var(--shadow-lg); }
.phone img { display: block; width: 100%; height: auto; border-radius: 36px; border-top: 34px solid #e8ebf2; background: #e8ebf2; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 86px; height: 24px; margin-left: -43px; background: #0d1124; border-radius: 20px; z-index: 2; }
.stage .phone { right: 40px; top: 0; transform: rotate(2deg); }
.float { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px 16px; font-size: 15px; z-index: 3; }
.bubble { left: 0; top: 92px; display: flex; gap: 12px; align-items: center; max-width: 300px; }
.mic { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 8px rgba(79,124,255,.15); }
.bubble b { display: block; font-size: 17px; }
.bubble small { color: var(--muted); }
.parsed { left: 30px; top: 330px; width: 290px; }
.parsed .t { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row .c { display: flex; gap: 10px; align-items: center; }
.dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.row small { display: block; color: var(--muted); font-size: 13px; }
.saved { right: 0; bottom: 40px; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.saved .ok { width: 30px; height: 30px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; }

/* полоса цифр */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px auto 0; }
.fact { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); display: flex; gap: 16px; align-items: center; }
.fact .n { font-size: 34px; font-weight: 800; color: var(--accent); min-width: 54px; }
.fact p { margin: 0; color: var(--ink2); font-size: 15px; }
.fact b { color: var(--ink); display: block; font-size: 17px; }

section { padding: 96px 0; }
.head { text-align: center; margin: 0 auto 52px; max-width: 760px; }
.head .lead { margin: 16px auto 0; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: relative; }
.step .num { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 22px; display: grid; place-items: center; margin-bottom: 20px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink2); }
.step .mini { margin-top: 22px; background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink2); display: flex; gap: 10px; align-items: center; }

/* голос */
.voice { background: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.examples { display: grid; gap: 14px; }
.ex { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 10px; }
.say { background: var(--accent-d); color: #fff; border-radius: 18px 18px 6px 18px; padding: 13px 16px; font-weight: 600; }
.arrow { color: var(--accent); justify-self: center; }
.res { background: var(--bg); border-radius: 14px; padding: 10px 14px; font-size: 14px; color: var(--ink2); }
.res b { color: var(--ink); }
.res .plus { color: var(--good-ink); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink2); }
.checks .ico { color: var(--accent); margin-top: 2px; }
.checks b { color: var(--ink); }

/* семья */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.member { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.member .dot { width: 46px; height: 46px; font-size: 18px; margin-bottom: 14px; }
.member .dot { color: #fff; }
.member b { display: block; font-size: 18px; }
.member span { color: var(--muted); font-size: 14px; }
.tag { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.tag.kid { background: var(--peach); color: #b4531b; }
.phones-2 { position: relative; height: 640px; }
.phones-2 .phone { width: 262px; }
.phones-2 .p1 { left: 10px; top: 30px; transform: rotate(-4deg); }
.phones-2 .p2 { right: 10px; top: 0; transform: rotate(3deg); }

/* ИИ */
.ai-card { background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); padding: 26px; max-width: 420px; margin: 0 auto; }
.ai-card .q { display: flex; gap: 12px; align-items: center; background: var(--warn-soft); color: var(--warn); border-radius: 14px; padding: 12px 14px; font-weight: 600; margin: 14px 0; }
.ai-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.ai-card .two .btn { padding: 13px; }

/* сравнение */
.compare { background: #fff; border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font-size: 15px; color: var(--muted); font-weight: 600; }
.compare thead th.us { color: var(--accent-ink); }
.compare td.us { background: rgba(79,124,255,.06); font-weight: 600; }
.compare .y { color: var(--good-ink); } .compare .n { color: #c0392b; } .compare .m { color: var(--warn); }

/* безопасность */
.dark { background: var(--navy); color: #fff; border-radius: 36px; margin: 0 24px; }
.dark .lead { color: #b8c0e0; }
.dark h2 { color: #fff; }
.safe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; }
.safe div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 24px; }
.safe .ico { color: #8fb0ff; width: 28px; height: 28px; margin-bottom: 14px; }
.safe b { display: block; font-size: 18px; margin-bottom: 6px; }
.safe p { margin: 0; color: #b8c0e0; font-size: 15px; }

/* цена */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.plan { background: #fff; border-radius: 26px; padding: 34px; box-shadow: var(--shadow); }
.plan.main { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); position: relative; }
.plan .badge { position: absolute; top: -14px; left: 34px; background: var(--accent-d); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; }
.plan .sum { font-size: 46px; font-weight: 800; margin: 10px 0 4px; }
.plan .sum small { font-size: 18px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; color: var(--ink2); }
.plan li .ico { color: var(--good); width: 20px; height: 20px; margin-top: 3px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; }
.plan .btn { width: 100%; margin-top: auto; }
.plan .soon { font-size: 12px; font-weight: 700; color: var(--accent-d); background: var(--accent-soft, #eef3ff); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.friend { display: flex; gap: 12px; align-items: flex-start; max-width: 920px; margin: 20px auto 0; padding: 18px 22px; background: var(--accent-soft); border-radius: 18px; color: var(--ink2); }
.friend .ico { color: var(--accent-ink); width: 24px; height: 24px; flex: none; margin-top: 1px; }
.friend .soon { font-size: 12px; font-weight: 700; color: var(--accent-d); background: #fff; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.price.one { grid-template-columns: 1fr; max-width: 460px; }

/* вопросы */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
details { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 4px 24px; }
summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 26px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 20px; color: var(--ink2); }

/* финальная форма */
.final { display: grid; grid-template-columns: 1fr 460px; gap: 50px; align-items: center; background: linear-gradient(135deg, #4f7cff, #6a5cff 60%, #8a5cff); color: #fff; border-radius: 36px; padding: 56px; }
.final h2 { color: #fff; }
.final .lead { color: rgba(255,255,255,.85); margin-top: 16px; }
.form { background: #fff; color: var(--ink); border-radius: 26px; padding: 28px; box-shadow: var(--shadow-lg); }
.form label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; font-weight: 500; }
.form label:first-of-type { margin-top: 0; }
.form input[type=text], .form input[type=email] { width: 100%; font: inherit; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--bg); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink2); margin: 16px 0; }
.form .consent input { width: 20px; height: 20px; accent-color: var(--accent); margin: 1px 0 0; }
.form .btn { width: 100%; }
.form .alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 14px; }
.form .alt a { color: var(--accent); font-weight: 600; }

footer { padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 22px; }
footer .seller { flex-basis: 100%; margin: 0; font-size: 13px; }
footer .seller a { color: inherit; }

/* телефон */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav nav, .nav .btn-ghost { display: none; }
  .nav { height: 62px; gap: 12px; }
  .nav .btn { white-space: nowrap; padding: 10px 14px; font-size: 14px; }
  .logo { font-size: 19px; }
  .family { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .member { padding: 14px 10px; border-radius: 16px; }
  .member b { font-size: 15px; } .member span { font-size: 12px; }
  .member .dot { width: 38px; height: 38px; margin-bottom: 10px; }
  .tag { font-size: 11px; padding: 4px 8px; }
  .hero { padding: 34px 0 10px; }
  .hero .grid, .split, .price, .final { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .stage { height: 560px; margin-top: 10px; }
  .stage .phone { width: 250px; right: 50%; margin-right: -125px; }
  .bubble { top: 40px; left: -4px; max-width: 250px; padding: 12px; }
  .parsed { left: -4px; top: 300px; width: 230px; }
  .saved { right: -4px; bottom: 30px; }
  .facts, .steps, .safe { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .ex { grid-template-columns: 1fr; }
  .ex .arrow { transform: rotate(90deg); justify-self: start; margin-left: 20px; }
  .phones-2 { height: 520px; }
  .phones-2 .phone { width: 220px; }
  .compare { overflow-x: auto; }
  .compare th, .compare td { padding: 14px; font-size: 14px; }
  .dark { margin: 0 12px; border-radius: 28px; }
  .final { padding: 30px 20px; border-radius: 28px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* Форма: регистрация, вход, «проверьте почту» */
[hidden] { display: none !important; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tabs button { font: inherit; font-size: 15px; font-weight: 600; border: 0; background: none; color: var(--muted); padding: 10px; border-radius: 9px; cursor: pointer; }
.tabs button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,22,51,.12); }
.form .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form .err { color: #c0392b; font-size: 14px; margin-top: 12px; }
.form .note { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 4px; }
.form .note a { color: inherit; font-weight: 600; text-decoration: underline; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: center; padding: 10px 0; }
.sent .big { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 14px; }
.sent h3 { font-size: 24px; margin-bottom: 8px; }
.sent p { color: var(--ink2); margin: 0 0 8px; }
.sent .small { font-size: 14px; color: var(--muted); }
/* Вкладка «Войти»: QR-код и цифры на компьютере, подсказка на телефоне. */
.qr-pane { text-align: center; }
.qr-pane .qr { width: 230px; height: 230px; margin: 4px auto 14px; padding: 14px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; }
.qr-pane .qr svg { display: block; width: 100%; height: auto; }
.qr-pane.old .qr svg, .qr-pane.old .code { opacity: .2; }
.qr-pane h3, .pane-h { margin: 0 0 6px; font-size: 20px; }
.qr-pane p, .pane-p { color: var(--ink2); font-size: 15px; margin: 0 0 8px; }
.qr-pane .small { font-size: 13px; color: var(--muted); }
.qr-pane .code { font-size: 26px; font-weight: 800; letter-spacing: .18em; margin: 6px 0 2px; color: var(--ink); font-variant-numeric: tabular-nums; }
.qr-pane .btn { margin-top: 6px; }
.steps-ph { padding-left: 20px; margin: 6px 0 12px; color: var(--ink2); font-size: 15px; }
.steps-ph li { margin: 6px 0; }
.recover-line { margin-top: 14px; }
.recover-line a { color: var(--accent-ink); font-weight: 600; }
#qrPane:not([hidden]) ~ .recover-line { text-align: center; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.demo { cursor: default; }
.nav-login { display: none; font-weight: 600; font-size: 15px; color: var(--accent-ink); }
.btn-link { background: none; border: 0; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; }
@media (max-width: 900px) { .nav-login { display: inline; } }
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 8px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo svg { width: 30px; height: 30px; }
  .nav .btn { padding: 9px 11px; font-size: 13px; }
  .nav-login { font-size: 14px; }
}
.closed .nav .btn-primary { display: none; }
@media (max-width: 340px) {
  .wrap { padding: 0 12px; }
  .logo { font-size: 15px; gap: 6px; }
  .logo svg { width: 26px; height: 26px; }
  .nav .btn { padding: 8px 9px; font-size: 12px; }
}

/* Посетитель уже вошёл: кнопка «Открыть приложение» видна, даже когда регистрация закрыта. */
.closed .nav .btn-primary.open-app { display: inline-flex; }
.who { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 420px) { .nav .open-app .long { display: none; } }
.signed-in #start { display: none; }
