/* ==========================================================================
   sitefront — стили витрины tiny telematic
   Палитра от маскота: --navy — ровно фон оригинала маскота (media/mascot),
   поэтому картинки маскота с фоном сливаются с тёмными блоками без швов;
   белый робот, циан антенны, зелёный щит — цвет действия. Шрифты системные:
   внешних запросов нет, страница открывается целиком с одного адреса.
   ========================================================================== */

:root {
  --navy: #0c2249;
  --navy-2: #133066;
  --navy-3: #1b3d7c;
  --cyan: #2bc4e8;
  --mint: #2ecc8f;
  --mint-hover: #45d89f;
  --mint-ink: #0b7a52;

  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0d1b2e;
  --muted: #5a6a80;
  --line: #e1e7f0;
  --tint: #eaf3fb;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(11 27 54 / .06), 0 8px 24px rgb(11 27 54 / .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shell: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081326;
    --surface: #0f1f3c;
    --ink: #e7eef8;
    --muted: #9db0c9;
    --line: #1e3459;
    --tint: #0c1a33;
    --mint-ink: #5fe0ab;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
/* якорь не должен уезжать под закреплённую шапку (на узком экране она в две строки) */
[id] { scroll-margin-top: 120px; }
a { color: var(--mint-ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 850; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.shell--narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.3em; border-radius: 999px;
  font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--mint); color: var(--navy); }
.btn--primary:hover { background: var(--mint-hover); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgb(127 127 127 / .1); }
.btn--sm { padding: .45em 1em; font-size: .92rem; }
.btn--lg { padding: .9em 1.6em; font-size: 1.05rem; }

.pill {
  display: inline-block; padding: .35em .9em; border-radius: 999px;
  font-size: .85rem; font-weight: 700; letter-spacing: .02em;
  background: rgb(46 204 143 / .14); color: var(--mint);
  border: 1px solid rgb(46 204 143 / .35);
}

/* ---------------------------------------------------------------- шапка */

.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  max-width: var(--shell); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.logo img { border-radius: 10px; }
.logo--light { color: #fff; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: .4em .8em; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu a:hover { background: var(--tint); }
.menu a[aria-current] { background: var(--tint); color: var(--mint-ink); }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs a { padding: .3em .65em; font-size: .82rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.langs a[aria-current] { background: var(--navy); color: #fff; }

@media (max-width: 820px) {
  .top__in { flex-wrap: wrap; gap: 10px 12px; }
  .menu { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .langs { margin-left: auto; }
}
@media (max-width: 420px) { .top__cta { display: none; } }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(600px 400px at 85% 30%, rgb(43 196 232 / .22), transparent 70%),
    radial-gradient(500px 380px at 10% 110%, rgb(46 204 143 / .18), transparent 70%),
    var(--navy);
}
.hero__in {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px);
}
.hero .accent { color: var(--mint); }
.lead { font-size: 1.15rem; color: #c9d6ea; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero__note { font-size: .92rem; color: #9fb3d1; }
.hero__art { display: flex; justify-content: center; }

.mascot-stage {
  position: relative; width: min(340px, 80vw); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--navy-3), var(--navy-2) 60%, transparent 71%);
}
.mascot-stage::before {
  content: ""; position: absolute; inset: 6%;
  border-radius: 50%; border: 2px dashed rgb(43 196 232 / .35);
  animation: spin 40s linear infinite;
}
.mascot-stage img { width: 96%; animation: float 5s ease-in-out infinite; }

@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .mascot-stage::before, .mascot-stage img { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 820px) {
  .hero__in { grid-template-columns: 1fr; text-align: center; }
  .hero__art { order: -1; }
  .mascot-stage { width: min(220px, 60vw); }
  .lead { margin-inline: auto; }
  .actions { justify-content: center; }
}

/* ---------------------------------------------------------------- секции */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section__note { color: var(--muted); font-size: 1.05rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--mint-ink); margin-bottom: .6em; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid--3 { grid-template-columns: 1fr; } }

.feat__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 14px; font-size: 1.5rem; background: var(--tint);
}
.feat p { color: var(--muted); margin: 0; }

/* шаги */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow); }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: var(--navy); color: var(--mint); font-weight: 850; font-size: 1.2rem;
  box-shadow: 0 0 0 6px rgb(46 204 143 / .15);
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* платформы */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.platform {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s;
}
.platform:hover { border-color: var(--mint); transform: translateY(-2px); }
.platform__name { font-weight: 800; }
.platform__name::after { content: " →"; color: var(--mint-ink); }
.platform__apps { font-size: .9rem; color: var(--muted); }
@media (max-width: 820px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .platforms { grid-template-columns: 1fr; } }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 20px; margin-bottom: 24px; }
.plan {
  display: flex; flex-direction: column; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.plan--main { background: var(--navy); color: #fff; border-color: var(--navy); }
.plan__name { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--muted); margin: 0; }
.plan--main .plan__name { color: var(--mint); }
.plan__price { font-size: 2.6rem; font-weight: 850; letter-spacing: -.02em; margin: .2em 0 0; }
.plan__term { color: var(--muted); margin-bottom: 1.2em; }
.plan--main .plan__term { color: #9fb3d1; }
.plan .btn { margin-top: auto; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.ticks li { padding-left: 1.7em; position: relative; margin-bottom: .5em; }
.ticks li::before { content: "✓"; position: absolute; left: 0; font-weight: 900; color: var(--mint); }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* вопросы */
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.qa summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; padding-right: 48px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--mint-ink); }
.qa[open] summary::after { content: "−"; }
.qa p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* призыв */
.cta { background: var(--navy); color: #fff; padding: 48px 0; }
.cta__in { display: flex; align-items: center; gap: 28px; }
.cta__in img { flex: none; }
.cta__in > div { flex: 1; }
.cta h2 { margin-bottom: .2em; }
.cta p { color: #9fb3d1; margin: 0; }
@media (max-width: 720px) { .cta__in { flex-direction: column; text-align: center; } }

/* статьи блога */
.posts { list-style: none; padding: 0; display: grid; gap: 14px; }
.posts a { text-decoration: none; color: inherit; }
.posts p { color: var(--muted); margin: 0; }
.posts time { font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------- внутренние страницы */

.page-hero {
  color: #fff;
  background:
    radial-gradient(500px 300px at 90% 0%, rgb(43 196 232 / .2), transparent 70%),
    var(--navy);
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .lead { margin-bottom: 0; }
.page-hero .lead a { color: var(--mint); }
.page-hero .actions { margin-bottom: 0; }
.page-hero .eyebrow { color: var(--mint); }
.crumbs { font-size: .9rem; margin-bottom: 1em; color: #9fb3d1; }
.crumbs a { color: #9fb3d1; }

.prose { font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--mint-ink); font-weight: 700; }
.prose .muted { font-size: .95rem; }

.howto { list-style: none; padding: 0 !important; counter-reset: howto; }
.howto > li {
  counter-increment: howto; position: relative;
  padding: 0 0 1.4em 3.2em; margin: 0;
}
.howto > li::before {
  content: counter(howto); position: absolute; left: 0; top: -.1em;
  display: grid; place-items: center; width: 2.1em; height: 2.1em;
  border-radius: 50%; background: var(--navy); color: var(--mint); font-weight: 850;
}
.howto > li::after {
  content: ""; position: absolute; left: 1.05em; top: 2.1em; bottom: .2em;
  border-left: 2px dashed var(--line);
}
.howto > li:last-child::after { display: none; }
.howto > li > strong:first-child { display: block; font-size: 1.1rem; margin-bottom: .2em; }

.callout {
  border-left: 4px solid var(--mint); background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 1.5em 0; box-shadow: var(--shadow);
}
.callout--warn { border-left-color: #f5a524; }
.callout p:last-child { margin-bottom: 0; }
.callout strong:first-child { display: block; margin-bottom: .2em; }

.prose pre {
  background: var(--navy); color: #d7e3f4; border-radius: var(--radius-sm);
  padding: 14px 16px; overflow-x: auto; font-size: .9rem; margin: .6em 0 1em;
}
.prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

.dl { display: flex; flex-wrap: wrap; gap: 10px; margin: .8em 0 1.2em; }
.dl .btn { font-size: .95rem; }

.apps { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .98rem; }
.apps th, .apps td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.apps th { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.apps td:first-child { font-weight: 700; white-space: nowrap; }
.apps a { margin-right: .8em; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5em; }
.chips a {
  padding: .4em .9em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.chips a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }

.faq-group { margin-bottom: 2.5em; }
.faq-group h2 { font-size: 1.3rem; margin-bottom: .8em; }

/* ---------------------------------------------------------------- подвал */

.foot { background: #081a3b; color: #9fb3d1; padding: 48px 0 56px; }
.foot__in { max-width: var(--shell); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.foot__brand p { margin-top: 12px; max-width: 26em; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot__title { color: #fff; font-weight: 800; margin-bottom: .6em; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .4em; }
.foot a { color: #9fb3d1; text-decoration: none; }
.foot a:hover { color: var(--mint); }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .foot__cols { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- корень: выбор языка */

body.door {
  min-height: 100vh; display: grid; place-items: center; text-align: center;
  color: #fff;
  background:
    radial-gradient(600px 400px at 80% 20%, rgb(43 196 232 / .2), transparent 70%),
    radial-gradient(500px 380px at 15% 100%, rgb(46 204 143 / .16), transparent 70%),
    var(--navy);
}
.door__in { padding: 40px 20px; max-width: 560px; }
.door__mascot { animation: float 5s ease-in-out infinite; }
.door__brand { font-size: 2rem; font-weight: 850; letter-spacing: -.02em; margin: 18px 0 8px; }
.door__lines p { color: #c9d6ea; margin: 0 0 .4em; }
.door__pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { .door__mascot { animation: none; } }
