/* Сайт simolet.ru, третий редизайн 27.10.2026 (выбор владельца): тёплая палитра «Абрикос и море», знак
   «SIM-самолётик», шрифт Rubik (OFL — /ofl-rubik.txt, свой woff2: IP посетителей никуда не уходят).
   На главной позади текста — холст с 3D-самолётиком (scene.js); без него — картинка-постер в первом экране.
   Основа — телефон 390 px. Без inline-стилей (CSP). */

@font-face { font-family: "Rubik"; src: url("/rubik.woff2?v=4d11676760") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  color-scheme: light;
  --sand: #FFF6EC;      /* земля */
  --peach: #FFE1BF;
  --apricot: #FF8A3D;   /* главное действие */
  --apricot-2: #E86A1F;
  --sea: #0F4C5C;
  --ink: #12313A;       /* текст: 12:1 на песке */
  --ink-2: #4A5F64;     /* вторичный: 6:1 на песке */
  --on-apricot: #24120A;
  --card: #FFFFFF;      /* плашки; карточки и панели — полупрозрачные (--veil), самолёт под ними виден */
  --veil: 0.84;         /* самолёт под панелью виден (владелец 27.10.2026), текст — AA и с килем под ним */
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
  --radius: 26px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--sand); scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body { margin: 0; color: var(--ink); font: 400 17px/1.5 var(--font); -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a[href^="tel:"] { white-space: nowrap; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
/* На поле моря рамка фокуса — персиковая: синяя на синем не видна. */
.promise__card a:focus-visible, .foot a:focus-visible { outline-color: var(--peach); }
h1, h2 { font-family: var(--font); font-weight: 800; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(32px, 10.5vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
/* На телефоне строки — до края колонки (владелец 27.10.2026: «строки не до конца»): balance только у заголовков
   h1/h2 (две строки), pretty — с 700 px; висячие предлоги держит nbsp() в pages.ts. */
h3 { font: 800 20px/1.25 var(--font); margin: 0; }
p { margin: 0; text-wrap: wrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.note, .sub, .soon, .hint { color: var(--ink-2); }
#ceny, #voprosy { scroll-margin-top: 8px; }

/* Холст 3D позади всего; текст и карточки — над ним. Касания проходят сквозь холст. */
.sky { position: fixed; inset: 0; width: 100%; height: 100lvh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 300ms var(--ease-out); }
.is-3d .sky { opacity: 1; }
.top, main, .runway, .foot { position: relative; z-index: 1; }

/* Кнопки: пилюля с «полом» снизу — игрушечная, как самолётик. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
  gap: 10px; border-radius: 999px; background: var(--apricot); color: var(--on-apricot); font: 700 17px/1.2 var(--font);
  text-decoration: none; text-align: center; box-shadow: 0 5px 0 var(--apricot-2);
  touch-action: manipulation; transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
  position: relative; overflow: hidden; isolation: isolate;
}
/* Блик — полоса под текстом, двигается только transform; пробегает раз в несколько секунд (ниже; «меньше движения» — нет). */
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.45) 50%, transparent 65%); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--apricot-2); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--apricot-2); } }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 16px; box-shadow: 0 4px 0 var(--apricot-2); }
/* Знак MAX в кнопке — официальный контур одним цветом (currentColor): тёмный на абрикосе, песочный на море. */
.btn__brand { display: inline-flex; align-items: baseline; gap: 0.3em; white-space: nowrap; }
.btn__max { align-self: center; }
.btn__max { width: 1.2em; height: 1.2em; flex: none; }
.btn--wide { display: flex; width: 100%; }
.btn--sea { background: var(--sea); color: var(--sand); box-shadow: 0 5px 0 #08303A; }
.btn--sea:active { box-shadow: 0 1px 0 #08303A; }
/* «Скоро и в Telegram» — по центру, пунктирной пилюлей: видно, что это ещё не кнопка (владелец 27.10.2026). */
.soon { margin-top: 14px; font-size: 15px; text-align: center; }
.soon span { display: inline-block; padding: 6px 14px; border: 1.5px dashed currentColor; border-radius: 999px; }

/* Шапка: знак, ссылки; на широком экране — кнопка. */
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 24px/1 var(--font); letter-spacing: -0.01em; min-height: 44px; }
.mark { width: 40px; height: 40px; flex: none; }
.mark__sim { fill: var(--sea); } .mark__chip { fill: var(--peach); }
.mark__lines { fill: none; stroke: var(--sea); stroke-width: 2; }
.mark__trail { fill: none; stroke: var(--apricot); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 4; }
.mark__plane { fill: var(--apricot); } .mark__fold { fill: var(--apricot-2); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; padding: 12px 0; }
/* На телефоне в шапке одна ссылка — «Цены»: контурная пилюля, чтобы было видно, что это кнопка. */
.nav a:first-child { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--sea); border-radius: 999px; color: var(--sea); font-weight: 700; }
/* Кольцо расходится от «Цен» раз в несколько секунд (scale и opacity, без перерисовки). */
.nav a:first-child::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--sea); border-radius: 999px; opacity: 0; pointer-events: none; }
.nav a:not(:first-child), .top .btn { display: none; }

/* Первый экран: заголовок с ценой, кнопка; ниже — место для самолётика (или постер). */
.hero .wrap { min-height: calc(100svh - 64px); display: flex; flex-direction: column; padding-top: 12px; padding-bottom: 24px; }
.hero h1 { max-width: 11em; }
.lead { margin-top: 14px; font-size: 18px; max-width: 34em; }
.btn--big { align-self: stretch; margin-top: 24px; }
.poster { width: min(100%, 420px); height: auto; margin: auto; transition: opacity 300ms var(--ease-out); }
/* Постер и 3D сменяются плавно: самолёт не «прыгает» при старте сцены. */
.is-3d .poster { opacity: 0; }

/* Куда летите: страны — радиокнопками, под ними — карточка с пакетами выбранной страны. */
.where { padding: 64px 0 40px; }
.sub { margin-top: 8px; }
.pick { border: 0; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pick legend, .plans caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chip { position: relative; touch-action: manipulation; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--peach); font: 600 16px/1 var(--font); white-space: nowrap; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.chip__check { display: none; width: 13px; height: 13px; flex: none; }
.chip input:checked + span { background: var(--sea); color: var(--sand); }
.chip input:checked + span .chip__check { display: block; }
.chip:active span { transform: scale(0.97); }
.chip:has(input:focus-visible) { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 999px; }
@supports not selector(:has(a)) { .chip:focus-within { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 999px; } }
.offers { display: grid; gap: 16px; margin-top: 16px; }
.offer { background: rgb(255 255 255 / var(--veil)); border-radius: var(--radius); padding: 18px 14px 16px; }
.offer h3 { font-size: 24px; margin: 0 6px 8px; }
.plans { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.plans td { padding: 12px 10px; font-size: 18px; }
.plans tr:nth-child(odd) td { background: rgb(255 246 236 / 0.8); }
.plans td:first-child { border-radius: 14px 0 0 14px; }
.plans td:last-child { border-radius: 0 14px 14px 0; text-align: right; font-weight: 800; color: var(--sea); white-space: nowrap; }
.offer .btn { margin-top: 14px; }
.hint { margin: 10px 6px 0; font-size: 16px; text-align: center; }
.where .note { margin-top: 14px; max-width: 62ch; font-size: 16px; color: var(--ink); }
@supports selector(:has(a)) {
  .offer { display: none; }
  .where:has(input[value="TR"]:checked) .offer[data-cc="TR"], .where:has(input[value="EG"]:checked) .offer[data-cc="EG"],
  .where:has(input[value="VN"]:checked) .offer[data-cc="VN"], .where:has(input[value="TH"]:checked) .offer[data-cc="TH"],
  .where:has(input[value="CN"]:checked) .offer[data-cc="CN"], .where:has(input[value="AE"]:checked) .offer[data-cc="AE"],
  .where:has(input[value="ID"]:checked) .offer[data-cc="ID"], .where:has(input[value="LK"]:checked) .offer[data-cc="LK"] { display: block; }
}

/* Как это работает: три карточки с номером. */
.how { padding: 72px 0 40px; }
/* Шаги — одна полупрозрачная панель, между шагами — тонкая полупрозрачная линия: самолёт под ней виден целиком. */
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; background: rgb(255 255 255 / var(--veil)); border-radius: var(--radius); }
.step + .step { border-top: 1px solid rgb(18 49 58 / 0.1); }
/* Номер — в строке заголовка, текст под ними на всю ширину карточки (раньше кружок съедал 66 px слева). */
.step { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 4px 12px; padding: 18px 20px; }
.step__n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--apricot); color: var(--on-apricot); font-weight: 800; }
.step p { grid-column: 1 / -1; margin-top: 4px; }

/* Гарантия — карточка цвета моря. */
.promise { padding: 64px 0 40px; }
.promise__card { background: rgb(15 76 92 / 0.92); color: var(--sand); border-radius: 32px; padding: 30px 22px 28px; }
.promise__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.promise__list p { margin-top: 4px; color: #E6F0EE; }
.promise__card a { color: var(--peach); }
.promise__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; padding: 0 18px; border: 2px solid var(--peach); border-radius: 999px; font-weight: 700; text-decoration: none; }
.promise__support { margin-top: 18px; color: #C9DCDD; font-size: 16px; }

/* Вопросы — белые плитки, плюс из двух полос. */
.faq { padding: 64px 0 40px; }
.faq__stack { margin-top: 20px; display: grid; background: rgb(255 255 255 / var(--veil)); border-radius: 20px; }
details + details { border-top: 1px solid rgb(18 49 58 / 0.1); }
summary { position: relative; cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; min-height: 60px; font: 600 17px/1.35 var(--font); }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--apricot-2); transition: transform 200ms var(--ease-out); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0deg); }
details p { padding: 0 20px 20px; max-width: 64ch; }

/* Финал — абрикосовая карточка, полупрозрачная: самолёт пролетает над ней к посадке на подвал. */
.last { padding: 72px 0 24px; }
.last__card { background: rgb(255 138 61 / 0.92); color: var(--on-apricot); border-radius: 32px; padding: 34px 22px 32px; }
.last__card p { margin: 12px 0 22px; max-width: 34em; }
.last__card .soon { color: #5A2A0E; margin-top: 14px; }

/* Полоса над подвалом (только главная): самолёт садится колёсами на верхний край синего подвала, над ним встают
   полоски сети (scene.js ставит html.is-landed). Без 3D — картинка севшего самолёта и полоски сразу. */
/* Высота — от высоты экрана: самолёт на холсте 100lvh растёт вместе с ним, киль не должен заходить под плашку. */
.runway { height: calc(44px + 16.5lvh); }
.landed { position: absolute; left: 50%; bottom: -7px; width: min(100%, 400px); height: auto; transform: translateX(-50%); transition: opacity 300ms var(--ease-out); }
.is-3d .landed { opacity: 0; }
.signal { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 8px 16px; border-radius: 999px; background: var(--card); color: var(--sea); font: 700 16px/1.2 var(--font); white-space: nowrap; }
/* Кольцо вокруг плашки, когда сеть есть: «на связи» (владелец 27.10.2026: «анимации к «Интернет есть»»). */
.signal::after { content: ""; position: absolute; inset: -3px; border: 2px solid rgb(15 76 92 / 0.55); border-radius: 999px; opacity: 0; pointer-events: none; }
.signal__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.signal__bars i { width: 4px; border-radius: 2px; background: currentColor; transform-origin: 50% 100%; }
.signal__bars i:nth-child(1) { height: 25%; } .signal__bars i:nth-child(2) { height: 50%; }
.signal__bars i:nth-child(3) { height: 75%; } .signal__bars i:nth-child(4) { height: 100%; }
/* С 3D плашки нет до касания; при посадке она появляется, полоски встают по очереди. Взлёт — гаснет быстро:
   у перехода — значения того состояния, в которое переходим. */
.is-3d .signal { opacity: 0; transform: translate(-50%, 8px); transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out); }
.is-3d .signal__bars i { transform: scaleY(0.25); transition: transform 150ms var(--ease-out); }
.is-3d.is-landed .signal { opacity: 1; transform: translateX(-50%); transition: opacity 240ms var(--ease-out) 250ms, transform 240ms var(--ease-out) 250ms; }
.is-3d.is-landed .signal__bars i { transform: none; transition: transform 240ms var(--ease-out); }
.is-3d.is-landed .signal__bars i:nth-child(1) { transition-delay: 450ms; } .is-3d.is-landed .signal__bars i:nth-child(2) { transition-delay: 510ms; }
.is-3d.is-landed .signal__bars i:nth-child(3) { transition-delay: 570ms; } .is-3d.is-landed .signal__bars i:nth-child(4) { transition-delay: 630ms; }

/* Подвал — море, реквизиты и документы. Компактный (владелец 27.10.2026): при посадке в самом низу страницы
   самолёт на полосе и подвал целиком в одном экране. На главной по верху — пунктир посадочной полосы. */
.foot { background: var(--sea); color: #D5E3E3; font-size: 14px; line-height: 1.4; padding: 18px 0 20px; }
.home .foot::before { content: ""; display: block; height: 3px; margin: 0 var(--gutter) 14px;
  background: repeating-linear-gradient(90deg, rgb(255 246 236 / 0.75) 0 18px, transparent 18px 34px); }
.foot__brand { display: flex; align-items: center; gap: 8px; font: 800 20px/1 var(--font); color: var(--sand); margin-bottom: 12px; }
.foot__brand .mark { width: 28px; height: 28px; }
.foot .mark__sim { fill: var(--sand); } .foot .mark__lines { stroke: var(--sea); } .foot .mark__chip { fill: var(--peach); }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.foot__cols > div:first-child { grid-column: 1 / -1; }
.foot p { margin: 1px 0; }
.foot a { color: #D5E3E3; display: inline-block; padding: 3px 0; }
.foot strong { color: var(--sand); }

/* Кнопка внизу экрана на телефоне — на главной; с 700 px кнопка есть в шапке. */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 10px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: var(--sand); }
body.home .foot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
/* Без scroll-timeline (iOS до 18, MAX на iOS, Firefox) нижняя кнопка не прячется у подвала — место под ней,
   чтобы документы и реквизиты не оказались под кнопкой (их смотрит модерация Robokassa, дизайнер 27.10.2026). */
@supports not (animation-timeline: scroll()) {
  body.home .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* Документы. */
.doc { padding: 28px 0 64px; }
.narrow { max-width: 780px; }
.doc h1 { font-size: clamp(28px, 6vw, 44px); margin: 0 0 10px; }
.doc .meta { color: var(--ink-2); margin: 0 0 28px; }
.doc h2 { font: 800 20px/1.3 var(--font); letter-spacing: 0; margin: 36px 0 12px; }
.doc p { margin: 10px 0; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc table { border-collapse: collapse; width: 100%; }
.doc td { padding: 10px 0; vertical-align: top; }
.doc tr:nth-child(odd) td { background: #FFFFFF; }
.doc td:first-child { color: var(--ink-2); width: 38%; padding: 10px 12px; }
.doclist { list-style: none; padding: 0; }
.doclist li { margin: 10px 0; }

@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .nav a:not(:first-child), .top .btn { display: inline-flex; }
  .nav a:first-child { display: inline; min-height: 0; padding: 12px 0; border: 0; color: inherit; font-weight: 600; }
  .nav a:first-child::after { display: none; }
  .runway { height: calc(50px + 20lvh); }
  .landed { width: 600px; }
  /* Финал на широком экране — по центру, под самолётом; в первом экране строка про Telegram — под кнопкой, слева. */
  .last__card { text-align: center; }
  .last__card p { margin-left: auto; margin-right: auto; }
  .last__card .btn--wide { display: inline-flex; width: auto; min-width: 360px; }
  .hero .soon { text-align: left; }
  p { text-wrap: pretty; }
  .btn--big { align-self: flex-start; }
  .top .btn { margin-left: 8px; }
  .dock { display: none; }
  body.home .foot { padding-bottom: 28px; }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
  .foot__cols > div:first-child { grid-column: auto; }
  .offers, .steps, .faq__stack { max-width: 640px; }
  .promise__list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 1000px) {
  body { font-size: 18px; }
  .hero .wrap { padding-top: 56px; }
  /* Колонка текста по центру, самолётик летает по бокам. */
  .hero .wrap, .where .wrap, .how .wrap, .faq .wrap { max-width: 720px; }
  .promise .wrap, .last .wrap { max-width: 880px; }
}

/* Появление частей разделов при прокрутке — только сдвиг: текст виден, даже если анимация не сработала. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .where h2, .pick, .offers, .how h2, .step, .promise__card, .faq h2, details {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 50%;
    }
  }
}
@keyframes rise { from { transform: translateY(28px); } }
@media (prefers-reduced-motion: no-preference) {
  /* Блик по всем кнопкам в бот, раз в 5 с (владелец 27.10.2026: «во всех плашках, где ссылка на бот, — блеск»);
     у разных кнопок — со сдвигом, чтобы не мигали хором. «Цены» — кольцо раз в 3,2 с; «Интернет есть» после
     посадки — кольцо раз в 2,8 с. Всё — transform и opacity псевдоэлементов, без перерисовки. */
  .btn::after { animation: shine 5s var(--ease-out) 1.2s infinite both; }
  .offer .btn::after { animation-delay: 2.4s; }
  .dock .btn::after { animation-delay: 3.6s; }
  .last__card .btn::after { animation-delay: 0.6s; }
  .nav a:first-child::after { animation: ring 3.2s var(--ease-out) 2.4s infinite both; }
  .is-landed .signal::after, html:not(.is-3d) .signal::after { animation: ping 2.8s var(--ease-out) 1.2s infinite both; }
}
@keyframes shine { 0% { transform: translateX(-120%); } 16%, 100% { transform: translateX(120%); } }
@keyframes ring { 0% { opacity: 0.5; transform: scale(1); } 45%, 100% { opacity: 0; transform: scale(1.35, 1.6); } }
@keyframes ping { 0% { opacity: 0.9; transform: scale(1); } 50%, 100% { opacity: 0; transform: scale(1.12, 1.5); } }
@media (prefers-reduced-motion: no-preference) {
  .offer { animation: fade 200ms var(--ease-out); }
}
@keyframes fade { from { opacity: 0; } }

@supports (animation-timeline: scroll()) {
  .dock { animation: dock-in linear both, dock-out linear both; animation-timeline: scroll(root), scroll(root); animation-range: 0 50svh, calc(100% - 128svh) calc(100% - 120svh); }
  @media (prefers-reduced-motion: reduce) { .dock { animation-name: dock-fade-in, dock-fade-out; } }
  .dock:focus-within { animation: none; }
}
/* Только сдвиг, без прозрачности: полупрозрачная кнопка выглядит неактивной (дизайнер 27.10.2026). */
@keyframes dock-in { from { transform: translateY(110%); } to { transform: none; } }
@keyframes dock-out { to { transform: translateY(110%); } }
@keyframes dock-fade-in { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
@keyframes dock-fade-out { to { opacity: 0; visibility: hidden; } }
