/* Страница страны — по макету Figma «Frame3» 1920 × 3491 (узел 10:675). Подключается на /esim/<страна> после home.css:
   шапка и подвал — оттуда, здесь — свои блоки. Десктоп (≥ 1024px) — в единицах --u (ширина окна / 1920), планшет и телефон —
   своя раскладка по образцу мобильного каталога (мобильного макета у страницы нет).
   Холст: тёмно-синий #101632, ниже плавно светлеет до #22294f (Rectangle 2 макета), сверху — фигура с кругами «PathFrame3»
   1920 × 1572 на 3/140 (экспорт дизайнера, 20 % прозрачности в самой картинке). Подвал — тот же, что на главной (#121730). */
body.cty-page { background: #121730; padding-bottom: calc(140 * var(--u)); } /* место под плавающую панель (140u) */
.cty { position: relative; overflow: clip; padding-bottom: calc(274 * var(--u)); color: #fff;
  background: linear-gradient(180deg, #101632 0, #101632 calc(1140 * var(--u)), #1d2350 calc(1712 * var(--u)), #1f2450 calc(1900 * var(--u)), #22284f calc(2500 * var(--u)), #22294f calc(2700 * var(--u)), #22294f 100%); }
.cty-bg { position: absolute; left: calc(3 * var(--u)); top: calc(140 * var(--u)); width: calc(1920 * var(--u)); height: calc(1572 * var(--u)); pointer-events: none; }
.cty-bg img { display: block; width: 100%; height: 100%; }
.cty-c { position: relative; z-index: 1; padding: 0 calc(94 * var(--u)); }

/* --- шапка страницы: крошки Medium 24 #a8b2c7 на 94/208, заголовок Bold 64 с флагом 68 × 50 на 274, подзаголовок SemiBold 24 (516) на 369 --- */
.cty-head { padding-top: calc(208 * var(--u)); }
.cty-crumbs { display: flex; align-items: center; gap: calc(14 * var(--u)); font-weight: 500; font-size: calc(24 * var(--u)); line-height: 1.24; color: #a8b2c7; }
.cty-crumbs a { color: #a8b2c7; text-decoration: none; }
.cty-crumbs a:hover { color: #fff; }
.cty-crumbs img { width: calc(8.5 * var(--u)); height: calc(14.5 * var(--u)); }
.cty-crumbs span { font-weight: 400; }
.cty-h1 { display: flex; align-items: center; gap: calc(20 * var(--u)); margin: calc(36.24 * var(--u)) 0 0; font-weight: 700; font-size: calc(64 * var(--u)); line-height: 1.12; letter-spacing: calc(.992 * var(--u)); color: #fff; }
.cty-h1 .flag-img, .cty-h1 .flag-emoji { flex: none; width: calc(68 * var(--u)); height: calc(50 * var(--u)); border-radius: 5px; box-shadow: none; font-size: calc(44 * var(--u)); line-height: calc(50 * var(--u)); text-align: center; }
.cty-lead { margin: calc(23.3 * var(--u)) 0 0; max-width: calc(516 * var(--u)); font-weight: 600; font-size: calc(24 * var(--u)); line-height: 1.65; color: #fff; }
.cty-prose { margin-top: calc(24 * var(--u)); max-width: calc(900 * var(--u)); font-size: calc(20 * var(--u)); line-height: 1.5; color: #c3d1de; }
.cty-prose a { color: var(--hm-mint); }

/* регион: выбор набора стран (чипы — как в каталоге) */
.cty-cover { margin-top: calc(40 * var(--u)); padding: calc(24 * var(--u)) calc(28 * var(--u)); border: 1px solid #273d82; border-radius: calc(25 * var(--u)); }
.cty-cover-head { font-size: calc(24 * var(--u)); line-height: 1.5; }
.cty-cover-head span { font-size: calc(20 * var(--u)); color: #a8b2c7; }
.cty-chips { display: flex; flex-wrap: wrap; gap: calc(10 * var(--u)); margin-top: calc(16 * var(--u)); }
.cty-chips .chip { display: inline-flex; align-items: center; height: calc(44 * var(--u)); padding: 0 calc(24 * var(--u)); border-radius: 999px; border: 1px solid #273d82; background: #121630; color: #a8b2c7; font-family: var(--hm-arial); font-size: calc(24 * var(--u)); line-height: 1.24; text-decoration: none; transition: color .15s, border-color .15s, background .15s; }
.cty-chips .chip:hover { color: #fff; border-color: var(--hm-mint); }
.cty-chips .chip.active { background: var(--hm-mint); border-color: var(--hm-mint); color: #061345; }
.cty-cover-list { margin: calc(16 * var(--u)) 0 0; font-family: var(--hm-arial); font-size: calc(20 * var(--u)); line-height: 1.4; color: #a8bdf1; }
.cty-cover-list b { color: #fff; font-weight: 700; }
.cty-cover-list summary { cursor: pointer; }
.cty-cover-list p { margin: .5em 0 0; }

/* мини-приложение: пробная eSIM бесплатно (services/trial.py) — карточка акции как на сайте (app.css .tg-promo.is-inline) */
.cty-head .tg-promo.is-inline { margin-top: calc(40 * var(--u)); }

/* --- переключатель «Доступ к ChatGPT и другим AI-сервисам»: карточка 949 × 153 на 513, рамка #507fff, тоггл 68 × 40 по Group 400.svg
   (выкл: белая обводка 1.63 и белый кружок 28.56 слева; вкл: мятная заливка, кружок справа) --- */
.cty-toggle { position: relative; display: grid; grid-template-columns: calc(68 * var(--u)) 1fr; column-gap: calc(25 * var(--u)); align-items: start; margin-top: calc(64.8 * var(--u)); width: calc(949 * var(--u)); max-width: 100%; min-height: calc(153 * var(--u)); padding: calc(16 * var(--u)) calc(12 * var(--u)) calc(20 * var(--u)) calc(29 * var(--u)); border: 1px solid #507fff; border-radius: calc(25 * var(--u)); color: #fff; text-decoration: none; box-sizing: border-box; transition: border-color .15s, background .15s; }
.cty-toggle:hover { border-color: #7a9cff; background: rgba(80, 127, 255, .06); }
.cty-switch { position: relative; display: block; width: calc(68 * var(--u)); height: calc(40 * var(--u)); border: calc(1.63 * var(--u)) solid #fff; border-radius: calc(24.4 * var(--u)); box-sizing: border-box; transition: background .25s ease, border-color .25s ease; }
.cty-switch::after { content: ""; position: absolute; top: calc(4.09 * var(--u)); left: calc(3.26 * var(--u)); width: calc(28.56 * var(--u)); height: calc(28.56 * var(--u)); border-radius: 50%; background: #fff; transition: left .25s cubic-bezier(.2, .8, .2, 1), background .25s ease; }
.cty-toggle.on .cty-switch { background: var(--hm-mint); border-color: var(--hm-mint); }
.cty-toggle.on .cty-switch::after { left: calc(32.9 * var(--u)); }
/* нажали — кружок едет, тоггл на время перехода «выключен» (switch on/off + disabled по макету: бледная мята / серая обводка и кружок), затем страница перезагружается с новым набором пакетов (app.js) */
.cty-toggle.is-busy { pointer-events: none; }
.cty-toggle.is-busy.on .cty-switch { background: #a6d3bf; border-color: #a6d3bf; }
.cty-toggle.is-busy:not(.on) .cty-switch { border-color: #8c8f9a; }
.cty-toggle.is-busy:not(.on) .cty-switch::after { background: #9a9ca6; }
.cty-toggle-label { display: block; font-weight: 500; font-size: calc(24 * var(--u)); line-height: 1.65; }
.cty-toggle-text { display: block; grid-column: 1 / -1; margin-top: calc(9.4 * var(--u)); max-width: calc(906 * var(--u)); font-family: var(--hm-arial); font-size: calc(20 * var(--u)); line-height: 1.24; color: #a8bdf1; }

/* --- сценарии: заголовок Bold 40 на 122/719, плитки 361/359/359/361 через 77 на 821 (как плитки преимуществ на главной) --- */
.cty-plans { margin-top: calc(53 * var(--u)); padding: 0 calc(27 * var(--u)); }
.cty-plans-title { margin: 0; font-weight: 700; font-size: calc(40 * var(--u)); line-height: 1.65; color: #fff; }
.cty-tiles { display: grid; grid-template-columns: calc(361 * var(--u)) calc(359 * var(--u)) calc(359 * var(--u)) calc(361 * var(--u)); column-gap: calc(77 * var(--u)); margin-top: calc(36 * var(--u)); }
.cty-tile { display: block; height: calc(208 * var(--u)); padding: calc(30 * var(--u)) calc(33 * var(--u)) 0; border: 1px solid transparent; border-radius: calc(25 * var(--u)); background: linear-gradient(180deg, #181c3b 0%, #1b1e77 100%); color: #fff; text-decoration: none; box-sizing: border-box; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cty-tile:hover { border-color: rgba(81, 216, 162, .6); transform: translateY(calc(-2 * var(--u))); }
.cty-tile.active { border-color: var(--hm-mint); box-shadow: 0 0 0 calc(1 * var(--u)) var(--hm-mint), 0 18px 40px rgba(81, 216, 162, .18); }
.cty-tile .ico { display: flex; align-items: flex-start; height: calc(34 * var(--u)); }
.cty-tile .ico img { display: block; width: auto; height: calc(34 * var(--u)); }
.cty-tile[data-plan="weekend"] .ico img { height: calc(38 * var(--u)); margin-top: calc(-2 * var(--u)); } /* luggage-02 в макете 38 */
.cty-tile b { display: block; font-family: "Noto Sans", var(--hm-font); font-weight: 700; font-size: calc(40 * var(--u)); line-height: 1.65; white-space: nowrap; }
.cty-tile .lbl { display: block; margin-top: calc(12 * var(--u)); font-family: var(--hm-arial); font-size: calc(20 * var(--u)); line-height: 1.24; color: #a8b2c7; }
.cty-plans-note { margin: calc(24 * var(--u)) 0 0; font-size: calc(24 * var(--u)); line-height: 1.5; color: #c3d1de; }
.cty-plans-note a { color: var(--hm-mint); text-decoration-skip-ink: none; text-underline-offset: .14em; }
.cty-plans-note.is-warn { font-size: calc(20 * var(--u)); color: #f5c76a; }

/* --- блоки тарифов: заголовок Bold 48 на 1182 (153 от плиток), карточки 560 × 216 в 3 колонки через 24.
   Между блоками 65; 153 от плиток даёт нижний отступ .cty-plans (схлопывается с 65 блока), а при выбранном сценарии (.has-plan) его нет —
   отступ плитки → первый видимый блок одинаковый для всех сценариев (примечание «Показать все пакеты» + 65), каким бы блок ни был --- */
.cty-sec { margin-top: calc(65 * var(--u)); }
.cty-head + .cty-sec { margin-top: calc(153 * var(--u)); }
.cty-plans { margin-bottom: calc(153 * var(--u)); }
.cty-plans.has-plan { margin-bottom: 0; }
.cty-sec-title { margin: 0; font-weight: 700; font-size: calc(48 * var(--u)); line-height: 1.65; color: #fff; }
.cty-sec-tag { display: inline-block; vertical-align: middle; margin-left: calc(12 * var(--u)); height: calc(34 * var(--u)); padding: 0 calc(16 * var(--u)); border: 1px solid #252998; border-radius: 999px; background: #202149; font-weight: 400; font-size: calc(20 * var(--u)); line-height: calc(32 * var(--u)); color: #a8bdf1; }
.cty-sec-sub { margin: calc(12 * var(--u)) 0 0; font-family: var(--hm-arial); font-size: calc(20 * var(--u)); line-height: 1.4; color: #a8bdf1; }
.cty-sec-sub a { color: var(--hm-mint); }
.cty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(24 * var(--u)); margin-top: calc(37 * var(--u)); }
.cty-empty { margin-top: calc(60 * var(--u)); padding: calc(24 * var(--u)) calc(32 * var(--u)); border-radius: calc(20 * var(--u)); background: #1a1b3e; font-size: calc(22 * var(--u)); line-height: 1.5; }
.cty-empty a { color: var(--hm-mint); }

/* карточка объёма: «1 GB» ExtraBold 48 мятный на 32/16, таблетка срока 210 × 44 на 312/28, линия #252998 на 94, цена ExtraBold 40 на 33/105,
   «140 ₽ за ГБ» Arial 20 #a8bdf1 на 34/170, бейджи 121 × 34 на 123 справа (38 от края), «IP Гонконга» #507fff на 170 справа */
.cty-card { position: relative; height: calc(216 * var(--u)); padding: calc(16 * var(--u)) calc(38 * var(--u)) 0 calc(32 * var(--u)); background: #121730; border: 1px solid #1c1f6e; border-radius: calc(25 * var(--u)) calc(25 * var(--u)) calc(20 * var(--u)) calc(20 * var(--u)); box-sizing: border-box; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cty-card:hover { border-color: #3a46b8; }
.cty-card:focus-visible, .cty-daily-row:focus-visible { outline: 2px solid var(--hm-mint); outline-offset: 2px; }
.cty-card.is-selected, .cty-daily-row.is-selected { border-color: var(--hm-mint); box-shadow: 0 0 0 calc(1 * var(--u)) var(--hm-mint), 0 18px 40px rgba(81, 216, 162, .16); }
.cty-card.plan-best, .cty-daily-row.plan-best { border-color: #446ec5; }
.cty-card-badge { position: absolute; left: calc(32 * var(--u)); top: calc(-14 * var(--u)); z-index: 1; height: calc(28 * var(--u)); padding: 0 calc(14 * var(--u)); border-radius: 999px; background: var(--hm-mint); color: #121730; font-weight: 700; font-size: calc(16 * var(--u)); line-height: calc(28 * var(--u)); white-space: nowrap; }
.cty-card-vol { font-weight: 800; font-size: calc(48 * var(--u)); line-height: 1.65; color: var(--hm-mint); white-space: nowrap; }
.cty-pill { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); min-width: calc(210 * var(--u)); height: calc(44 * var(--u)); padding: 0 calc(24 * var(--u)); border: 1px solid #446ec5; border-radius: 999px; font-family: var(--hm-arial); font-size: calc(24 * var(--u)); line-height: 1.24; color: #fff; box-sizing: border-box; white-space: nowrap; }
.cty-pill .ico { width: calc(34 * var(--u)); height: calc(34 * var(--u)); flex: none; }
.cty-pill .chev { width: calc(16 * var(--u)); height: auto; margin-left: calc(4 * var(--u)); flex: none; }
.cty-pill select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; font-size: 16px; } /* прозрачный список поверх таблетки: нажатие открывает родной выпадающий список; 16px — iPhone не приближает */
.cty-pill.is-single select { display: none; }
.cty-pill:has(select:focus-visible) { outline: 2px solid var(--hm-mint); outline-offset: 2px; }
.cty-card > .cty-pill-days { position: absolute; top: calc(28 * var(--u)); right: calc(38 * var(--u)); }
.cty-card-line { position: absolute; left: calc(36 * var(--u)); right: calc(37 * var(--u)); top: calc(94 * var(--u)); height: 0; border-top: 1px solid #252998; }
.cty-card-price { position: absolute; left: calc(33 * var(--u)); top: calc(105 * var(--u)); font-weight: 800; font-size: calc(40 * var(--u)); line-height: 1.65; color: #fff; white-space: nowrap; }
.cty-card-pergb { position: absolute; left: calc(34 * var(--u)); top: calc(170 * var(--u)); font-family: var(--hm-arial); font-size: calc(20 * var(--u)); line-height: 1.24; color: #a8bdf1; white-space: nowrap; }
.cty-badges { position: absolute; right: calc(38 * var(--u)); top: calc(123 * var(--u)); display: flex; gap: calc(14 * var(--u)); }
.cty-badge { display: inline-flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); min-width: calc(121 * var(--u)); height: calc(34 * var(--u)); padding: 0 calc(16 * var(--u)); border: 1px solid #252998; border-radius: 999px; background: #202149; font-size: calc(20 * var(--u)); line-height: 1.24; color: #a8bdf1; box-sizing: border-box; white-space: nowrap; }
.cty-badge img { width: calc(18 * var(--u)); height: calc(18 * var(--u)); flex: none; }
.cty-badge[hidden], .cty-ip[hidden], .cty-card-pergb[hidden], .cty-card-badge[hidden] { display: none; }
.cty-ip { position: absolute; right: calc(37 * var(--u)); top: calc(170 * var(--u)); font-family: var(--hm-arial); font-size: calc(20 * var(--u)); line-height: 1.24; color: #507fff; white-space: nowrap; cursor: help; }
.cty-card-buy { position: absolute; left: calc(33 * var(--u)); bottom: calc(8 * var(--u)); font-size: calc(18 * var(--u)); color: var(--hm-mint); } /* без JS: прямая ссылка на оформление */

/* строка «на каждый день» 1728 × 137: объём 486 × 80 (список объёмов, если их несколько), число дней 278 × 80, цена, бейджи, скорость после лимита;
   между группами — вертикальные линии 95 */
.cty-daily { margin-top: calc(37 * var(--u)); }
.cty-daily-row { position: relative; display: flex; align-items: center; min-height: calc(137 * var(--u)); padding: calc(20 * var(--u)) calc(37 * var(--u)); background: #121730; border: 1px solid #1c1f6e; border-radius: calc(25 * var(--u)) calc(25 * var(--u)) calc(20 * var(--u)) calc(20 * var(--u)); box-sizing: border-box; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cty-daily-row:hover { border-color: #3a46b8; }
.cty-daily-row.is-off { display: none; }
.cty-pill-vol { position: relative; display: flex; align-items: center; justify-content: space-between; flex: none; width: calc(486 * var(--u)); height: calc(80 * var(--u)); padding: 0 calc(32 * var(--u)) 0 calc(20 * var(--u)); border: 1px solid #252998; border-radius: calc(25 * var(--u)); background: rgba(26, 30, 83, .35); box-sizing: border-box; font-weight: 800; font-size: calc(48 * var(--u)); line-height: 1; color: #a8bdf1; white-space: nowrap; }
.cty-pill-vol b { color: var(--hm-mint); font-weight: 800; }
.cty-pill-vol .chev { width: calc(34 * var(--u)); height: calc(27 * var(--u)); flex: none; }
.cty-pill-vol select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.cty-sep { display: block; flex: none; width: 0; height: calc(95 * var(--u)); border-left: 1px solid #252998; margin: 0 calc(40 * var(--u)); }
.cty-sep-end { margin-left: auto; margin-right: calc(18 * var(--u)); }
.cty-daily-row > .cty-pill-days { flex: none; min-width: 0; height: calc(80 * var(--u)); padding: 0 calc(30 * var(--u)) 0 calc(20 * var(--u)); gap: calc(20 * var(--u)); border-radius: calc(25 * var(--u)); font-size: calc(36 * var(--u)); }
.cty-daily-row > .cty-pill-days .ico { width: calc(44 * var(--u)); height: calc(44 * var(--u)); }
.cty-daily-row > .cty-pill-days .chev { width: calc(34 * var(--u)); height: calc(27 * var(--u)); margin-left: 0; }
.cty-daily-price { flex: none; font-weight: 800; font-size: calc(40 * var(--u)); line-height: 1.65; color: #fff; white-space: nowrap; }
.cty-daily-meta { display: flex; flex-direction: column; gap: calc(14 * var(--u)); flex: 0 1 auto; min-width: 0; margin: 0 calc(20 * var(--u)) 0 calc(30 * var(--u)); } /* тесно (длинный бейдж «3G/4G/5G») — сжимаются подпись под бейджами и «после лимита», бейджи остаются в одну строку */
.cty-daily-meta .cty-badges, .cty-daily-meta .cty-card-pergb, .cty-daily-meta .cty-ip { position: static; }
.cty-daily-sub { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)) calc(28 * var(--u)); padding-left: calc(19 * var(--u)); font-family: var(--hm-arial); font-size: calc(20 * var(--u)); line-height: 1.24; }
.cty-daily-info { display: flex; align-items: flex-start; gap: calc(11 * var(--u)); flex: 0 1 auto; min-width: calc(150 * var(--u)); max-width: calc(262 * var(--u)); font-family: var(--hm-arial); font-size: calc(20 * var(--u)); line-height: 1.24; color: #a8bdf1; white-space: normal; }
.cty-daily-info img { width: calc(23 * var(--u)); height: calc(24 * var(--u)); flex: none; }
.cty-daily-row .cty-card-buy { left: auto; right: calc(37 * var(--u)); bottom: calc(6 * var(--u)); }

/* --- справочные карточки 560 × 334 (#1a1b3e): иконка + заголовок Medium 32 на 49, текст Arial 24/1.65 на 126, ссылка Arial 20 подчёркнутая --- */
.cty-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(24 * var(--u)); margin-top: calc(182 * var(--u)); }
.cty-info-card { min-height: calc(334 * var(--u)); padding: calc(49 * var(--u)) calc(31 * var(--u)) calc(36 * var(--u)); background: #1a1b3e; border-radius: calc(25 * var(--u)) calc(25 * var(--u)) calc(20 * var(--u)) calc(20 * var(--u)); box-sizing: border-box; }
.cty-info-card h3 { display: flex; align-items: center; gap: calc(14 * var(--u)); margin: 0; font-weight: 500; font-size: calc(32 * var(--u)); line-height: 1.65; color: #fff; }
.cty-info-card h3 img { display: block; flex: none; width: auto; height: calc(34 * var(--u)); }
.cty-info-card h3 img[src*="phone"] { height: calc(28 * var(--u)); }
.cty-info-card h3 img[src*="refund"] { height: calc(27 * var(--u)); }
.cty-info-card p { margin: calc(24 * var(--u)) 0 0; font-family: var(--hm-arial); font-size: calc(24 * var(--u)); line-height: 1.65; color: #fff; }
.cty-info-card p code { font: inherit; background: none; color: inherit; padding: 0; }
.cty-info-card > a { display: inline-block; margin-top: calc(10 * var(--u)); font-family: var(--hm-arial); font-size: calc(20 * var(--u)); line-height: 1.3; color: #a8b2c7; text-decoration: underline; text-decoration-skip-ink: none; text-underline-offset: .14em; } /* линия сплошная, не рвётся под «д» и «у» */
.cty-info-card > a:hover { color: #fff; }

/* отзывы и советы на тёмном холсте */
.cty .reviews-head { margin-top: calc(80 * var(--u)); }
.cty .reviews-head h2 { margin: 0; font-weight: 700; font-size: calc(40 * var(--u)); line-height: 1.65; color: #fff; }
.cty .reviews-head .muted { color: #a8b2c7; }
.cty .review-card { background: #1a1b3e; border: 0; border-radius: calc(20 * var(--u)); padding: calc(24 * var(--u)) calc(28 * var(--u)); color: #fff; }
.cty .review-card p { font-size: calc(22 * var(--u)); line-height: 1.5; }
.cty .review-meta { color: #a8b2c7; }
.cty-tips { margin-top: calc(60 * var(--u)); padding: calc(36 * var(--u)) calc(40 * var(--u)); background: #1a1b3e; border-radius: calc(25 * var(--u)) calc(25 * var(--u)) calc(20 * var(--u)) calc(20 * var(--u)); }
.cty-tips h3 { margin: 0 0 calc(12 * var(--u)); font-weight: 500; font-size: calc(32 * var(--u)); line-height: 1.65; }
.cty-tips .prose { font-size: calc(22 * var(--u)); line-height: 1.6; color: #fff; }
.cty-tips .prose a { color: var(--hm-mint); }

/* --- плавающая панель внизу экрана («Выберите тарифR.svg», «ПодробнеекупитьRR.svg»): полоса 1920 × 140 (в SVG 232 — попросили ниже), полупрозрачная
   с размытием — как плашка прокрученной шапки (navbar.css); кнопки 360 × 72 со скруглением 18, Bold 27 (24.10: чуть меньше, чем 424 × 91 в SVG), правый край 1824, между кнопками 25:
   «Выберите тариф» → «Подробнее» (#c3d1de) + «Купить тариф» (мятная) --- */
.cty-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(140 * var(--u)); background: rgba(18, 23, 48, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cty-bar-c { display: flex; align-items: center; justify-content: flex-end; gap: calc(25 * var(--u)); height: 100%; padding: 0 calc(96 * var(--u)); box-sizing: border-box; }
.cty-bar-btn { display: inline-flex; align-items: center; justify-content: center; width: calc(360 * var(--u)); height: calc(72 * var(--u)); padding: 0 calc(24 * var(--u)); border: 0; border-radius: calc(18 * var(--u)); font-family: var(--hm-font); font-weight: 700; font-size: calc(27 * var(--u)); line-height: 1.5; color: #121730; text-decoration: none; white-space: nowrap; cursor: pointer; box-sizing: border-box; transition: background .2s, transform .2s, box-shadow .2s; }
.cty-bar-btn[hidden] { display: none; }
.cty-bar-pick, .cty-bar-buy { background: var(--hm-mint); }
.cty-bar-pick:hover, .cty-bar-buy:hover { background: #3fcf95; box-shadow: 0 18px 40px rgba(81, 216, 162, .22); transform: translateY(calc(-2 * var(--u))); }
.cty-bar-more { background: #c3d1de; }
.cty-bar-more:hover { background: #d8e3ec; transform: translateY(calc(-2 * var(--u))); }
.cty-page .tg-promo:not(.is-inline) { bottom: calc(140 * var(--u) + 16px); } /* карточка про мини-приложение (base.html) — над плавающей панелью */

/* окно заказа («Подробнее») — по макетам order-moreT / orderIP-moreT / Order-dayT / orderIP-dayT (600 × ~700): тёмное #101633 с синей
   рамкой, «Ваш заказ», флаг + страна + «Пакет «…»», справа плашка объёма и срока, «Условия тарифа» строками с мятными иконками,
   «Итого к оплате» с ценой за ГБ, кнопка «Продолжить к оплате →», подпись про e-mail */
.cty-modal { background: #101633; color: #fff; border: 1px solid #2a3b8f; border-radius: 20px; max-width: min(92vw, 480px); font-family: var(--hm-font); } /* макет 600 — показался крупным, 480 (правка от 24.10) */
.cty-modal .modal-card { padding: 22px 22px 20px; outline: 0; } /* outline: 0 — при открытии фокус уходит сюда (autofocus), а не на крестик, чтобы на нём не рисовалось кольцо */
.cty-modal .modal-close { top: 14px; right: 16px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: #1e2a5c; color: #fff; outline: 0; } /* правка от 24.10: 26 вместо 32 — крестик казался крупным */
.cty-modal .modal-close:focus-visible { box-shadow: 0 0 0 2px var(--hm-mint); }
.cty-modal .modal-close svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cty-modal-eyebrow { font-size: 14px; line-height: 1.3; color: #a8bdf1; }
.cty-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid #252998; }
.cty-modal-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cty-modal-who .flag-img, .cty-modal-who .flag-emoji { flex: none; width: 32px; height: 22px; border-radius: 5px; font-size: 18px; line-height: 22px; }
.cty-modal-who h3 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.cty-modal-kind { margin-top: 3px; font-size: 13px; line-height: 1.3; color: #a8bdf1; }
.cty-modal-vol { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 88px; padding: 6px 10px; border: 1px solid #446ec5; border-radius: 9px; }
.cty-modal-vol b { font-size: 22px; font-weight: 700; line-height: 1.15; color: var(--hm-mint); white-space: nowrap; }
.cty-modal-vol span { font-size: 12.5px; line-height: 1.3; color: #fff; white-space: nowrap; }
.cty-modal-sec { padding: 16px 0 14px 8px; border-bottom: 1px solid #252998; }
.cty-modal-sec-title { font-size: 17px; line-height: 1.3; color: #a8bdf1; }
.cty-modal-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; }
.cty-modal-row[hidden] { display: none; }
.cty-modal-row svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--hm-mint); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cty-modal-row b { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; color: #fff; }
.cty-modal-row span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: #a8bdf1; }
.cty-modal-row span:empty { display: none; }
.cty-modal-row .cty-modal-fup { margin-top: 1px; }
.cty-modal-total { padding: 16px 0 0 8px; }
.cty-modal-total-l { font-size: 14px; line-height: 1.3; color: #a8bdf1; }
.cty-modal-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.cty-modal-total-row b { font-size: 26px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.cty-modal-total-row span { font-size: 13.5px; color: #fff; white-space: nowrap; }
.cty-modal-buy { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; margin-top: 16px; border-radius: 999px; background: var(--hm-mint); color: #0d1a3a; font-weight: 700; font-size: 18px; text-decoration: none; transition: background .2s; }
.cty-modal-buy:hover { background: #3fcf95; color: #0d1a3a; }
.cty-modal-note { margin: 14px 0 0; font-size: 13px; line-height: 1.4; color: #c3d1de; }
@media (max-width: 639.98px) {
  .cty-modal { border-radius: 18px; }
  .cty-modal .modal-card { padding: 18px 16px 16px; }
  .cty-modal .modal-close { top: 12px; right: 12px; width: 24px; height: 24px; }
  .cty-modal-eyebrow { font-size: 13px; }
  .cty-modal-head { margin-top: 10px; padding-bottom: 14px; }
  .cty-modal-who h3 { font-size: 22px; }
  .cty-modal-kind { font-size: 12px; }
  .cty-modal-vol { min-width: 78px; padding: 5px 8px; }
  .cty-modal-vol b { font-size: 20px; }
  .cty-modal-vol span { font-size: 11.5px; }
  .cty-modal-sec { padding: 14px 0 12px 2px; }
  .cty-modal-sec-title { font-size: 15px; }
  .cty-modal-row { margin-top: 10px; }
  .cty-modal-row b, .cty-modal-row span { font-size: 13px; }
  .cty-modal-total { padding: 14px 0 0 2px; }
  .cty-modal-total-row b { font-size: 24px; }
  .cty-modal-buy { height: 44px; margin-top: 14px; font-size: 16px; }
  .cty-modal-note { margin-top: 12px; font-size: 12px; }
}

/* мини-приложение Telegram (Telegram Desktop, ≥ 1024): шапки нет — заголовок ближе к верху; панель — над вкладками */
body.app-mode .cty-head { padding-top: calc(120 * var(--u)); }
body.app-mode .cty-bar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
body.app-mode.cty-page { padding-bottom: calc(64px + 140 * var(--u) + env(safe-area-inset-bottom, 0px)); }

/* ================= планшет и телефон (< 1024): своя раскладка ================= */
@media (max-width: 1023.98px) {
  body.cty-page { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .cty { padding-bottom: 2.5rem; background: linear-gradient(180deg, #101632 0, #101632 45%, #1d2350 75%, #22294f 100%); }
  .cty-bg { display: none; }
  .cty-c { padding: 0 1rem; }
  .cty-head { padding-top: 1.5rem; }
  .cty-crumbs { gap: .5rem; font-size: .9rem; }
  .cty-crumbs img { width: 6px; height: 10px; }
  .cty-h1 { gap: .75rem; margin-top: 1rem; font-size: clamp(2rem, 8.5vw, 2.8rem); letter-spacing: 0; }
  .cty-h1 .flag-img, .cty-h1 .flag-emoji { width: 44px; height: 32px; font-size: 28px; line-height: 32px; }
  .cty-lead { margin-top: .75rem; max-width: 30rem; font-size: 1.05rem; font-weight: 500; }
  .cty-prose { margin-top: 1rem; max-width: none; font-size: .95rem; }
  .cty-cover { margin-top: 1.25rem; padding: 14px 16px; border-radius: 16px; }
  .cty-cover-head { font-size: 1rem; }
  .cty-cover-head span { font-size: .85rem; }
  .cty-chips { gap: 8px; margin-top: 10px; }
  .cty-chips .chip { height: 32px; padding: 0 14px; font-size: 14px; }
  .cty-cover-list { margin-top: 10px; font-size: .85rem; }
  .cty-head .tg-promo.is-inline { margin-top: 1.25rem; }
  .cty-toggle { grid-template-columns: 48px 1fr; column-gap: 12px; align-items: center; margin-top: 1.5rem; width: 100%; min-height: 0; padding: 14px 16px 16px; border-radius: 16px; }
  .cty-switch { width: 48px; height: 28px; border-width: 1.5px; border-radius: 14px; }
  .cty-switch::after { top: 2.5px; left: 2.5px; width: 20px; height: 20px; }
  .cty-toggle.on .cty-switch::after { left: 22.5px; }
  .cty-toggle-label { font-size: 1rem; line-height: 1.3; }
  .cty-toggle-text { margin-top: 8px; max-width: none; font-size: .85rem; line-height: 1.35; }
  .cty-plans { margin-top: 1.75rem; padding: 0; }
  .cty-plans-title { font-size: 1.35rem; line-height: 1.3; }
  .cty-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
  .cty-tile { height: auto; min-height: 114px; padding: 11px 14px 12px; border-radius: 16px; }
  .cty-tile:hover { transform: none; }
  .cty-tile .ico { height: 22px; }
  .cty-tile .ico img { height: 22px; }
  .cty-tile[data-plan="weekend"] .ico img { height: 24px; margin-top: -1px; }
  .cty-tile b { margin-top: 6px; font-size: 1.1rem; line-height: 1.35; white-space: normal; }
  .cty-tile .lbl { margin-top: 4px; font-size: .78rem; line-height: 1.25; }
  .cty-plans-note { margin-top: .75rem; font-size: 1rem; }
  .cty-plans-note.is-warn { font-size: .9rem; }
  .cty-sec { margin-top: 2rem; }
  .cty-head + .cty-sec { margin-top: 2.25rem; }
  .cty-plans { margin-bottom: 2.25rem; }
  .cty-sec-title { font-size: 1.5rem; line-height: 1.3; }
  .cty-sec-tag { margin-left: 8px; height: 26px; padding: 0 10px; font-size: .8rem; line-height: 24px; }
  .cty-sec-sub { margin-top: 8px; font-size: .9rem; }
  .cty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
  .cty-empty { margin-top: 1.5rem; padding: 14px 16px; border-radius: 14px; font-size: 1rem; }
  /* карточка объёма: сетка вместо абсолютных координат */
  .cty-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "vol pill" "line line" "price badges" "pergb ip"; align-items: center; column-gap: 10px; height: auto; padding: 12px 16px 14px; border-radius: 16px; }
  .cty-card.is-selected, .cty-daily-row.is-selected { box-shadow: 0 0 0 1px var(--hm-mint), 0 10px 24px rgba(81, 216, 162, .16); }
  .cty-card-badge { left: 12px; top: -11px; height: 22px; padding: 0 10px; font-size: .72rem; line-height: 22px; }
  .cty-card-vol { grid-area: vol; font-size: 1.6rem; line-height: 1.4; }
  .cty-pill { gap: 6px; min-width: 0; height: 34px; padding: 0 12px; font-size: .95rem; }
  .cty-pill .ico { width: 20px; height: 20px; }
  .cty-pill .chev { width: 12px; margin-left: 2px; }
  .cty-card > .cty-pill-days { grid-area: pill; position: relative; justify-self: end; } /* relative, не static: иначе прозрачный <select> (inset: 0) растягивается на всю карточку и список открывается с любого нажатия */
  .cty-card-line { grid-area: line; position: static; margin: 10px 0; }
  .cty-card-price { grid-area: price; position: static; font-size: 1.5rem; line-height: 1.3; }
  .cty-card-pergb { grid-area: pergb; position: static; margin-top: 4px; font-size: .85rem; }
  .cty-badges { grid-area: badges; position: static; justify-self: end; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; }
  .cty-badge { min-width: 0; height: 28px; padding: 0 10px; gap: 5px; font-size: .8rem; }
  .cty-badge img { width: 14px; height: 14px; }
  .cty-ip { grid-area: ip; position: static; justify-self: end; margin-top: 4px; font-size: .85rem; }
  .cty-card-buy { position: static; grid-column: 1 / -1; margin-top: 8px; font-size: .95rem; }
  /* строка «на каждый день» → карточка по макету «Mobile eSIM» (Figma, узел 13:688; 24.10.2026): таблетка объёма и таблетка срока во всю
     ширину одна под другой (48 высотой, скругление 15), линия, цена слева и «за ГБ» справа, бейджи слева и «IP Гонконга» справа, линия,
     «После дневного лимита». Сетка: обёртки .cty-daily-meta / .cty-daily-sub раскрыты (display: contents), разделители .cty-sep-mid / .cty-sep-end —
     горизонтальные линии. Всё в двух колонках minmax(0, 1fr) + auto, поэтому длинная цена или бейдж «3G/4G/5G» не вылезают за рамку */
  .cty-daily { margin-top: 26px; }
  .cty-daily-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "vol vol" "days days" "l1 l1" "price pergb" "badges ip" "l2 l2" "info info" "buy buy"; align-items: center; column-gap: 12px; min-height: 0; padding: 18px 16px 20px; border-radius: 25px; }
  .cty-sep { display: none; }
  .cty-sep-mid, .cty-sep-end { display: block; width: auto; height: 0; margin: 0; border: 0; border-top: 1px solid #252998; }
  .cty-sep-mid { grid-area: l1; margin-top: 16px; }
  .cty-sep-end { grid-area: l2; margin-top: 16px; }
  .cty-pill-vol { grid-area: vol; width: auto; height: 48px; padding: 0 16px 0 14px; border-radius: 15px; font-size: 25.6px; }
  .cty-pill-vol .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .cty-pill-vol .chev { width: 25px; height: 12px; margin-left: 10px; }
  .cty-daily-row > .cty-pill-days { grid-area: days; justify-content: space-between; min-width: 0; height: 48px; margin-top: 8px; padding: 0 16px 0 13px; gap: 6px; border-radius: 15px; font-family: var(--hm-font); font-weight: 700; font-size: 25.6px; }
  .cty-daily-row > .cty-pill-days .ico { width: 28px; height: 28px; }
  .cty-daily-row > .cty-pill-days [data-tier-days-label] { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .cty-daily-row > .cty-pill-days .chev { width: 25px; height: 12px; margin-left: 0; }
  .cty-daily-price { grid-area: price; margin-top: 8px; font-size: 32px; line-height: 1.25; }
  .cty-daily-meta, .cty-daily-sub { display: contents; }
  .cty-daily-meta .cty-card-pergb { grid-area: pergb; justify-self: end; margin-top: 8px; font-size: 13.6px; }
  .cty-daily-meta .cty-badges { grid-area: badges; justify-self: start; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
  .cty-daily-meta .cty-ip { grid-area: ip; justify-self: end; margin-top: 10px; font-size: 12.8px; }
  .cty-daily-info { grid-area: info; max-width: none; margin-top: 15px; gap: 5px; font-size: 14px; line-height: 1.24; }
  .cty-daily-info img { width: 15px; height: 15px; margin-top: 1px; }
  .cty-daily-row .cty-card-buy { grid-area: buy; position: static; margin-top: 10px; }
  .cty-info { grid-template-columns: 1fr; gap: .75rem; margin-top: 2.25rem; }
  .cty-info-card { min-height: 0; padding: 18px 18px 20px; border-radius: 16px; }
  .cty-info-card h3 { gap: 10px; font-size: 1.15rem; line-height: 1.4; }
  .cty-info-card h3 img, .cty-info-card h3 img[src*="phone"], .cty-info-card h3 img[src*="refund"] { height: 22px; }
  .cty-info-card p { margin-top: 8px; font-size: .95rem; line-height: 1.5; }
  .cty-info-card > a { margin-top: 8px; font-size: .85rem; }
  .cty .reviews-head { margin-top: 2.25rem; }
  .cty .reviews-head h2 { font-size: 1.35rem; line-height: 1.3; }
  .cty .review-card { padding: 14px 16px; border-radius: 14px; }
  .cty .review-card p { font-size: .95rem; }
  .cty-tips { margin-top: 2rem; padding: 18px; border-radius: 16px; }
  .cty-tips h3 { font-size: 1.15rem; margin-bottom: 8px; }
  .cty-tips .prose { font-size: .95rem; }
  .cty-bar { height: auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .cty-bar-c { gap: 10px; height: auto; padding: 0; }
  .cty-bar-btn { flex: 1 1 0; width: auto; height: 48px; padding: 0 12px; border-radius: 999px; font-size: 16px; } /* макет Mobile eSIM: 358 × 48, Bold 16 */
  .cty-bar-pick:hover, .cty-bar-buy:hover, .cty-bar-more:hover { transform: none; box-shadow: none; }
  .cty-page .tg-promo:not(.is-inline) { bottom: calc(68px + env(safe-area-inset-bottom, 0px) + 10px); }
  body.app-mode .cty-head { padding-top: 1rem; }
  body.app-mode .cty-bar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
  body.app-mode.cty-page { padding-bottom: calc(64px + 68px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 759.98px) {
  .cty-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cty-grid { grid-template-columns: 1fr; }
}
@media (max-width: 639.98px) {
  /* телефон — по образцу мобильного каталога (узел 9:658): отступы 20, заголовок 33.15/39, подзаголовок Roboto 14/17 */
  .cty-c { padding: 0 20px; }
  .cty-head { padding-top: 8px; }
  .cty-crumbs { font-size: 14px; }
  .cty-h1 { margin-top: 9px; font-size: 33.15px; line-height: 39px; }
  .cty-h1 .flag-img, .cty-h1 .flag-emoji { width: 38.4px; height: 28.8px; border-radius: 5px; font-size: 24px; line-height: 28.8px; }
  .cty-lead { margin-top: 18px; max-width: 330px; font-family: var(--hm-font); font-weight: 400; font-size: 14px; line-height: 17px; }
  /* дальше — по макету «Mobile eSIM» (Figma, узел 13:688, 390 × 3481; 24.10.2026) */
  .cty-toggle { grid-template-columns: 41px 1fr; column-gap: 18px; margin-top: 26px; min-height: 125px; padding: 15px 15px 14px; border-radius: 25px; }
  .cty-switch { width: 41px; height: 23px; border-width: 1.5px; border-radius: 12px; }
  .cty-switch::after { top: 1.5px; left: 2.5px; width: 17px; height: 17px; }
  .cty-toggle.on .cty-switch::after { left: 18.5px; }
  .cty-toggle-label { align-self: start; font-weight: 500; font-size: 14px; line-height: 1.24; }
  .cty-toggle-text { margin-top: 9px; font-size: 12px; line-height: 1.2; }
  .cty-plans { margin-top: 23px; }
  .cty-plans-title { font-size: 20px; line-height: 24px; }
  .cty-tiles { gap: 10px; margin-top: 18px; }
  .cty-tile { min-height: 114px; padding: 12px 15px 12px; border-radius: 20px; }
  .cty-tile .ico, .cty-tile .ico img { height: 22px; }
  .cty-tile b { margin-top: 5px; font-size: 19px; line-height: 1.35; }
  .cty-tile .lbl { margin-top: 2px; font-size: 13px; line-height: 1.2; }
  .cty-plans-note { margin-top: 12px; font-size: 15px; }
  .cty-sec { margin-top: 28px; }
  .cty-head + .cty-sec { margin-top: 32px; }
  .cty-plans { margin-bottom: 66px; }
  .cty-sec:not([hidden]) + .cty-sec { margin-top: 56px; } /* после скрытого сценарием блока — обычные 28, иначе отступ до первого видимого блока «прыгал» */
  .cty-sec-title { font-size: 24px; line-height: 29px; }
  .cty-grid { gap: 10px; margin-top: 26px; } /* 14 по макету + место под бейдж «Лучшее предложение» над карточкой */
  .cty-card { min-height: 137px; padding: 10px 17px 14px; border-radius: 25px; }
  .cty-card-vol { font-size: 25.6px; line-height: 1.4; }
  .cty-card .cty-pill { height: 33px; padding: 0 12px; font-size: 15.2px; } /* таблетка срока в карточке объёма (у строки «на каждый день» свои) */
  .cty-card .cty-pill .ico { width: 18px; height: 18px; }
  .cty-card .cty-pill .chev { width: 12px; margin-left: 3px; }
  .cty-card-line { margin: 9px 0 8px; }
  .cty-card-price { font-size: 24px; line-height: 1.25; }
  .cty-card-pergb { margin-top: 6px; font-size: 13.6px; }
  .cty-badge { height: 27px; padding: 0 10px; gap: 5px; font-size: 12.8px; }
  .cty-ip { margin-top: 6px; font-size: 12.8px; }
  .cty-daily-row { padding: 19px 17px 24px; }
  .cty-info { gap: 12px; margin-top: 66px; }
  .cty-info-card { min-height: 146px; padding: 20px 18px 20px; border-radius: 25px; }
  .cty-info-card h3 { gap: 8px; font-weight: 400; font-size: 18.4px; line-height: 1.3; }
  .cty-info-card p { margin-top: 12px; font-size: 15.2px; line-height: 1.35; }
  .cty-info-card > a { margin-top: 14px; font-size: 13.6px; }
  body.app-mode .cty-head { padding-top: 16px; }
}
