/* Сон и миф — сайт сервиса.
   Light, structured, card-based layout; one deep-blue accent («Полночь»). */
:root {
  --primary: #1B2A6B;
  --primary-hover: #16235A;
  --primary-soft: #E8EBF6;
  --primary-deep: #0D1638;
  --ink: #101828;
  --text: #344054;
  --muted: #5B6476;
  --line: #E3E7EF;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FB;
  --ok: #157F55;
  --warn: #9A3412;
  --warn-soft: #FFF1E8;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 30px rgba(16, 24, 40, .06);
  --font: 'Onest', 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.2; text-wrap: pretty; }
h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0; }
a { color: var(--primary); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.section { padding-block: 84px; }
.section.alt { background: var(--bg-alt); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.section-head p { font-size: 19px; color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 21px; white-space: nowrap; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo img { height: 34px; width: auto; flex: none; }
.menu { display: flex; gap: 22px; margin-right: auto; }
.menu a { color: var(--text); text-decoration: none; font-size: 16px; white-space: nowrap; }
.menu a:hover { color: var(--primary); }
.top-actions { display: flex; gap: 10px; }
.burger { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 24px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--primary-soft); color: var(--primary); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-line { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 16px 30px; font-size: 18px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { padding-block: 64px 84px; background: radial-gradient(1200px 500px at 85% -10%, var(--primary-soft), transparent 60%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero-text .lead { font-size: 20px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { font-size: 15px; color: var(--muted); }

/* app mock */
.mock { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-alt); font-size: 14px; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.mock-bar b { margin-left: 8px; color: var(--ink); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 330px; }
.mock-side { border-right: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.mock-side span { padding: 7px 10px; border-radius: 10px; color: var(--text); }
.mock-side span.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.mock-main { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mock-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.mock-card .t { font-weight: 600; color: var(--ink); font-size: 15px; }
.mock-card .x { font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.chip.gray { background: var(--bg-alt); color: var(--text); border: 1px solid var(--line); }
.heat { display: grid; grid-template-columns: 90px repeat(5, 1fr); gap: 5px; align-items: center; font-size: 12px; color: var(--muted); }
.heat b { height: 22px; border-radius: 6px; background: var(--primary); }

/* cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.section.alt .card { border-color: transparent; box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.icon svg { width: 26px; height: 26px; }
.role { padding: 34px; gap: 16px; }
.role.dark { background: var(--primary); border-color: var(--primary); color: #fff; }
.role.dark h3, .role.dark p, .role.dark li { color: #fff; }
.role.dark p { opacity: .9; }
.role.dark .icon { background: rgba(255, 255, 255, .15); color: #fff; }
.role ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.badge { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.role.dark .badge { background: rgba(255, 255, 255, .18); color: #fff; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157F55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checks b { color: var(--ink); display: block; }

/* tabs */
.showcase { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.showcase ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; }
.step .num { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }

/* library */
.lib-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.lib-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.lib-list li span:last-child { color: var(--muted); white-space: nowrap; font-size: 15px; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }

/* pricing */
.price { align-items: flex-start; }
.price .amount { font-size: 34px; font-weight: 700; color: var(--ink); }
.price .per { color: var(--muted); font-size: 15px; }
.price.best { border: 2px solid var(--primary); }
.promo-note { margin-top: 24px; display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary-deep); }

/* faq */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; }
.section.alt .faq details { border-color: transparent; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* cta + footer */
.cta { border-radius: 28px; background: var(--primary); color: #fff; padding: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); margin-top: 10px; }
.cta .btn-primary { background: #fff; color: var(--primary); }
.footer { background: var(--primary-deep); color: rgba(255, 255, 255, .85); padding-block: 48px; font-size: 15px; }
.footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
.footer .logo { color: #fff; }

/* forms (registration, login) */
.auth { min-height: calc(100vh - 72px); background: var(--bg-alt); padding: 48px 16px; }
.auth-box { max-width: 560px; margin: 0 auto; background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.auth-box.wide { max-width: 980px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 15px; font-weight: 600; color: var(--ink); }
.field input { font: inherit; font-weight: 400; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--bg); }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field small { font-weight: 400; color: var(--muted); }
.check { display: block; position: relative; padding-left: 32px; font-size: 15px; }
.check input { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row .field { flex: 1; min-width: 0; }
.stepper { display: flex; gap: 8px; flex-wrap: wrap; }
.stepper span { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); font-weight: 600; }
.stepper span.on { background: var(--primary); color: #fff; }
.stepper span.done { background: var(--primary-soft); color: var(--primary); }
.msg { padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.msg.ok { background: #E8F6EF; color: var(--ok); }
.msg.err { background: var(--warn-soft); color: var(--warn); }
.msg.info { background: var(--primary-soft); color: var(--primary-deep); }
.plan { cursor: pointer; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) { border: 2px solid var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.toggle-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 14px; }
.test-banner { background: var(--warn-soft); color: var(--warn); font-size: 14px; text-align: center; padding: 8px 16px; }

/* legal documents */
.doc { max-width: 820px; margin: 0 auto; padding-block: 48px 80px; display: flex; flex-direction: column; gap: 16px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); }
.doc h2 { font-size: 22px; margin-top: 18px; }
.doc ol, .doc ul { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.draft { padding: 16px 20px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-size: 15px; }
.ph { background: #FFF6CC; padding: 0 4px; border-radius: 4px; }


/* hero: who it is for and what you get */
.audience { display: flex; flex-wrap: wrap; gap: 8px; }
.audience button { font: inherit; font-size: 15px; padding: 7px 15px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.audience button:hover { border-color: var(--primary); color: var(--primary); }
.audience button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.hero-text > *, .hero-get { transition: opacity .2s; }
@media (prefers-reduced-motion: reduce) { .hero-text > *, .hero-get { transition: none; } }
.hero.switching .hero-text > :not(.audience), .hero.switching .hero-get { opacity: .25; }
.hero-get { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.checks.one { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.checks.one li { font-size: 16px; line-height: 1.5; }

/* principle band */
.section.dark { background: var(--primary); color: rgba(255, 255, 255, .92); }
.section.dark h2, .section.dark b { color: #fff; }
.section.dark .eyebrow { color: rgba(255, 255, 255, .75); }
.principle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.principle .section-head { margin-bottom: 0; }
.principle .section-head p { color: rgba(255, 255, 255, .85); }
.section.dark .checks li::before { background-color: rgba(255, 255, 255, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E"); }

/* screenshot gallery */
.g-shot { display: block; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg); }
.g-shot img { display: block; width: 100%; height: auto; }

/* library + supervision */
.chip.soon { background: #FFF6CC; color: #7A5A00; line-height: 1.5; flex: none; }
.culture { margin-top: 20px; display: flex; gap: 20px; align-items: flex-start; padding: 28px 30px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary-deep); }
.culture h3 { color: var(--primary-deep); margin-bottom: 8px; }
.culture .icon { background: var(--bg); }
.split-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; display: flex; flex-direction: column; gap: 18px; }
.numbered li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; counter-increment: n; }
.numbered li::before { content: counter(n); width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; display: grid; place-items: center; }
.numbered b { display: block; color: var(--ink); }
.numbered span { color: var(--muted); }

/* cultural context band */
.culture-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; background: var(--primary-soft); border-radius: 28px; padding: 56px; }
.culture-grid h2 { color: var(--primary-deep); }
.culture-grid .section-head p { color: var(--text); }
.culture-side { display: flex; flex-direction: column; gap: 24px; }
.culture-side .checks li::before { background-color: var(--bg); }
.culture-chips .chip { background: var(--bg); font-size: 14px; padding: 5px 12px; }

/* client app with QR */
.app-band { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.app-text { display: flex; flex-direction: column; gap: 18px; }
.app-text h3 { font-size: 26px; }
.app-text > p { color: var(--muted); }
.app-qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.qr-frame { width: 240px; height: 240px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; display: grid; place-items: center; font-size: 13px; word-break: break-all; }
.qr-frame svg { width: 100%; height: 100%; display: block; }
.app-qr figcaption { font-size: 14px; color: var(--muted); max-width: 240px; }

@media (max-width: 980px) {
  .hero .wrap, .showcase { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding-block: 56px; }
  .menu, .top-actions { display: none; }
  .burger { display: inline-flex; }
  .top.open .menu, .top.open .top-actions { display: flex; }
  .top.open .wrap { flex-wrap: wrap; padding-bottom: 14px; }
  .top.open .menu { flex-direction: column; width: 100%; gap: 12px; order: 3; }
  .top.open .top-actions { order: 4; width: 100%; }
  .grid-2, .grid-3, .grid-4, .checks { grid-template-columns: minmax(0, 1fr); }
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-side { display: none; }
  .cta { padding: 32px 24px; }
  .card, .role { padding: 24px; }
  .auth-box { padding: 24px; }
  .footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .principle, .split-2 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
  .hero-get { padding: 24px; }
  .culture { flex-direction: column; padding: 24px; }
}
@media (max-width: 1140px) and (min-width: 1025px) {
  .top .wrap { gap: 18px; }
  .menu { gap: 14px; }
  .menu a { font-size: 15px; }
  .top-actions .btn { padding: 10px 16px; }
}
@media (max-width: 980px) {
  .culture-grid, .app-band { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  .culture-grid { padding: 28px 22px; }
  .app-band { padding: 24px; }
  .app-qr { display: none; }
}
@media (max-width: 1024px) {
  .menu, .top-actions { display: none; }
  .burger { display: inline-flex; }
  .top.open .menu, .top.open .top-actions { display: flex; }
  .top.open .wrap { flex-wrap: wrap; padding-bottom: 14px; }
  .top.open .menu { flex-direction: column; width: 100%; gap: 12px; order: 3; }
  .top.open .top-actions { order: 4; width: 100%; }
}
@media (max-width: 520px) {
  .audience { gap: 6px; }
  .audience button { font-size: 13.5px; padding: 6px 11px; }
  .hero { padding-block: 32px 56px; }
  .hero-text { gap: 18px; }
}
.app-qrs { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.app-qrs .qr-frame { width: 200px; height: 200px; }
.app-qr figcaption { display: flex; align-items: center; gap: 8px; justify-content: center; }
.app-qr figcaption img { border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 760px) { .app-qrs { display: none; } }

/* language switcher (assets/i18n.js) */
.lang-pick { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-alt, #F5F7FB); border: 1px solid var(--line, #E3E7EF); margin: 0 10px; flex-shrink: 0; }
.lang-pick button { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; padding: 5px 9px; border-radius: 999px; cursor: pointer; color: var(--muted, #5B6476); }
.lang-pick button[aria-pressed="true"] { background: var(--primary, #1B2A6B); color: #fff; }
@media (max-width: 520px) { .lang-pick { margin: 0 6px 0 auto; } .lang-pick button { font-size: 12px; padding: 4px 6px; } }
@media (max-width: 420px) {
  .top .wrap { gap: 10px; }
  .logo { flex-shrink: 0; gap: 8px; font-size: 18px; }
  .logo img { height: 28px; }
  .lang-pick { margin: 0 0 0 auto; }
  .burger { margin-left: 0; padding: 8px 10px; }
}
@media (max-width: 360px) {
  .top .wrap { gap: 6px; }
  .logo { font-size: 16px; gap: 6px; }
  .logo img { height: 24px; }
  .lang-pick button { padding: 4px 5px; }
}

/* «Как это выглядит»: two demo cards (the screenshot slider was removed on 21.10.2026: too small to read) */
.demo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.demo-card { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: border-color .15s; }
.demo-card:hover { border-color: var(--primary); }
.demo-card img { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.demo-card-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.demo-card-text b { color: var(--ink); font-size: 19px; }
.demo-card-text span { font-size: 15px; color: var(--muted); }
.demo-card .btn { flex: none; }
@media (max-width: 760px) {
  .demo-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .demo-card { flex-wrap: wrap; padding: 20px; }
  .demo-card .btn { width: 100%; }
}

/* install: QR codes always at hand on a computer (at the side on wide screens, a button at the bottom right otherwise),
   two install buttons fixed at the bottom on a phone or tablet */
.install-dock, .install-bar { display: none; }
@media (min-width: 1025px) {
  .install-dock { display: block; position: fixed; z-index: 40; right: 16px; bottom: 16px; transition: opacity .2s; }
  .install-dock.away { opacity: 0; pointer-events: none; }
  .dock-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--primary); font: inherit; font-weight: 600; font-size: 15px; padding: 11px 18px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow); }
  .dock-pill:hover { border-color: var(--primary); }
  .dock-card { display: none; width: 168px; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); flex-direction: column; gap: 10px; text-align: center; }
  .install-dock.open .dock-card { display: flex; }
  .install-dock.open .dock-pill { display: none; }
  .dock-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; text-align: left; }
  .dock-head b { font-size: 14px; line-height: 1.25; color: var(--ink); }
  .dock-close { border: 0; background: var(--bg-alt); color: var(--muted); width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; flex: none; }
  .dock-close:hover { color: var(--primary); }
  .dock-note { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
  .dock-qr { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--text); }
  .dock-qr img { width: 112px; height: 112px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 4px; }
  .dock-qr b { font-size: 13.5px; color: var(--ink); }
  .dock-qr span { font-size: 12px; color: var(--muted); }
}
@media (min-width: 1520px) {
  .install-dock { bottom: auto; top: 50%; transform: translateY(-50%); }
}
@media (max-width: 1024px) {
  .install-bar { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 24, 40, .06); transition: transform .2s; }
  .install-bar.away { transform: translateY(110%); }
  .install-bar .btn { flex: 1; padding: 11px 12px; font-size: 15px; min-height: 44px; }
  .install-bar .btn img { border-radius: 6px; flex: none; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* header on a computer: the language switch made the row too wide, and the logo got squeezed under the menu */
.logo { flex-shrink: 0; }
@media (min-width: 1141px) {
  .top .wrap { gap: 20px; }
  .menu { gap: 18px; }
  .menu a { white-space: nowrap; }
  .lang-pick { margin: 0; }
}

/* the free trial, first thing in the «Что вы получаете» card */
.hero-free { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--primary); color: #fff; }
.hero-free b { font-size: 22px; line-height: 1.2; color: #fff; }
.hero-free span { font-size: 15px; color: rgba(255, 255, 255, .85); }

/* a page in English or Kazakh stays hidden for a moment while its dictionary loads (assets/i18n.js) */
html.i18n-wait body { visibility: hidden; }

/* «Тарифы»: the reading guide as a bonus */
.price-plus { font-weight: 600; color: var(--primary); }
.bonus-card { margin-top: 24px; padding: 24px 28px; border-radius: var(--radius); background: var(--bg); border: 2px solid var(--primary-soft); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.bonus-card .badge { align-self: flex-start; }
.bonus-card .muted { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .bonus-card { padding: 20px; } }

/* ---------- «Ночное небо» (chosen by Nadezhda 22.10.2026): soft tints, a star by the section labels, the night sky of the first
   screen with a clear patch under its text (site.js measures it), stars in the dark sections and the footer ---------- */
.section.alt { background: #F3F5FC; }
.section.alt:nth-of-type(4n+1) { background: #F6F2FB; }
.eyebrow::before { content: '✦'; margin-right: 8px; color: #C9A24A; }
.card { transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(27, 42, 107, .10); }
.hero { background: radial-gradient(900px 420px at 85% -10%, #E3E1F5, transparent 60%), radial-gradient(700px 380px at 0% 110%, #F7EFD9, transparent 60%), #fff; }

/* ---------- B: night sky ---------- */
.hero { position: relative; overflow: hidden; color: #E8EBF6; background: linear-gradient(180deg, #0D1638 0%, #1B2A6B 75%, #2B3C86 100%);
  --hole-x: 30%; --hole-y: 55%; --hole-w: 48%; --hole-h: 75%; }   /* until site.js measures the text */
/* the stars are a layer of their own with a soft hole under the hero text (look.js measures it), so the text reads on clear sky */
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url(look/constellation-m.svg) right 4% top 28px / 380px auto no-repeat, url(look/stars-dark.svg) repeat;
  -webkit-mask-image: radial-gradient(ellipse var(--hole-w, 0px) var(--hole-h, 0px) at var(--hole-x, 0px) var(--hole-y, 0px), transparent 0 82%, #000 100%);
  mask-image: radial-gradient(ellipse var(--hole-w, 0px) var(--hole-h, 0px) at var(--hole-x, 0px) var(--hole-y, 0px), transparent 0 82%, #000 100%); }
.hero > .wrap { position: relative; z-index: 1; }
.hero h1, .hero .eyebrow { color: #fff; }
.hero .lead, .hero .hero-note { color: rgba(232, 235, 246, .85); }
.hero .eyebrow::before { color: #E9C46A; }
.hero .audience button { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: #fff; }
.hero .audience button[aria-pressed="true"] { background: #fff; color: #1B2A6B; border-color: #fff; }
.hero .btn-line { color: #fff; border-color: rgba(255, 255, 255, .5); background: transparent; }
.hero .btn-primary { background: #fff; color: #1B2A6B; }
.hero-get { color: var(--text); }
.section.dark, .cta { background-image: url(look/stars-dark.svg); background-repeat: repeat; }
.section.alt { background: #F3F5FC url(look/stars-light.svg) repeat; }
.footer { background: #0D1638 url(look/stars-dark.svg) repeat; }

@media (max-width: 600px) {
  .hero::before { background-size: 230px auto, auto; background-position: right -40px top 12px, 0 0; }
}

