/* ==========================================================================
   InfinityMobile — стили сайта
   ========================================================================== */

:root {
  --bg: #0b0a1f;
  --bg-2: #0f0d27;
  --surface: #15123a;
  --surface-2: #1c1849;
  --surface-3: #241f5a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.22);
  --text: #f4f3ff;
  --muted: #a7a4cd;
  --faint: #6f6b9b;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --green: #34d399;
  --grad: linear-gradient(115deg, var(--violet) 0%, var(--blue) 52%, var(--cyan) 100%);

  --f-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(59, 130, 246, 0.45);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Появление при скролле */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, opacity 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px -10px rgba(59, 130, 246, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--text);
  color: var(--bg);
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* ==========================================================================
   Шапка
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(11, 10, 31, 0.78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-nav > a:not(.btn) {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.site-nav > a:not(.btn):hover,
.site-nav > a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav .btn {
  margin-left: 10px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-open .menu-btn span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-btn span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-btn span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
  .menu-btn {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 24px var(--gutter);
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }

  .menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav > a:not(.btn) {
    padding: 16px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--text);
  }

  .site-nav > a:not(.btn):hover {
    background: none;
  }

  .site-nav .btn {
    margin: 24px 0 0;
    min-height: 56px;
    font-size: 16px;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}

/* Сетка-«радар» и свечения на фоне */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%);
}

.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-1 {
  width: 520px;
  height: 520px;
  right: -120px;
  top: 40px;
  background: rgba(59, 130, 246, 0.28);
}

.glow-2 {
  width: 420px;
  height: 420px;
  left: -160px;
  top: 260px;
  background: rgba(139, 92, 246, 0.22);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 72px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.badge b {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
}

.hero h1 {
  margin: 24px 0 22px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 520px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
}

/* Поиск направления */
.finder {
  position: relative;
  max-width: 560px;
  margin-top: 36px;
}

.finder-field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  background: rgba(21, 18, 58, 0.85);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -24px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.2s;
}

.finder-field:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 6px rgba(59, 130, 246, 0.15), 0 20px 50px -24px rgba(0, 0, 0, 0.8);
}

.finder-field > svg {
  width: 22px;
  height: 22px;
  color: var(--faint);
  flex: none;
}

.finder-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
}

.finder-field input::placeholder {
  color: var(--faint);
}

.finder-field input::-webkit-search-cancel-button {
  display: none;
}

.finder-field .btn {
  min-height: 48px;
}

.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 20px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  max-height: 340px;
  overflow: auto;
}

.suggest a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.suggest a:hover,
.suggest a.active {
  background: rgba(255, 255, 255, 0.07);
}

.suggest .flag {
  width: 32px;
  height: 24px;
}

.suggest .price {
  margin-left: auto;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.quick .mono {
  margin-right: 4px;
}

.quick a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.quick a:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.quick .flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

/* ==========================================================================
   Телефон с подключённой eSIM (hero)
   ========================================================================== */

.device {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  padding: 8px 0;
}

.phone {
  position: relative;
  width: 300px;
  padding: 11px;
  border-radius: 50px;
  background: linear-gradient(150deg, #34307a 0%, #1a1745 45%, #0f0d2a 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 5px rgba(0, 0, 0, 0.35),
    0 60px 100px -40px rgba(0, 0, 0, 0.95),
    0 0 80px -20px rgba(59, 130, 246, 0.35);
  transform: perspective(1400px) rotateY(-14deg) rotateX(4deg) rotateZ(1deg);
  transition: transform 0.8s var(--ease);
}

.device:hover .phone {
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}

.phone-screen {
  position: relative;
  height: 560px;
  padding: 14px 16px;
  border-radius: 40px;
  overflow: hidden;
  background:
    radial-gradient(120% 50% at 50% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
    #0c0b20;
  font-size: 13px;
}

.island {
  width: 92px;
  height: 26px;
  margin: 0 auto 4px;
  border-radius: 999px;
  background: #000;
}

.phone-screen::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 110px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  transform: translateX(-50%);
}

.status-bar {
  position: absolute;
  top: 18px;
  left: 30px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
}

.sb-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sb-right .bars {
  width: 17px;
  height: 11px;
}

.sb-right b {
  font-size: 11px;
}

.battery {
  position: relative;
  width: 23px;
  height: 11px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.battery::before {
  content: "";
  position: absolute;
  inset: 2px 6px 2px 2px;
  border-radius: 1.5px;
  background: var(--text);
}

.ps-title {
  margin: 20px 2px 14px;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.ps-label {
  margin: 0 4px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.ps-group {
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.ps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
}

.ps-row + .ps-row {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ps-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.ps-ico svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.ps-flag {
  border-radius: 50%;
  overflow: hidden;
  background: none;
}

.ps-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-text {
  flex: 1;
  min-width: 0;
  display: grid;
  line-height: 1.3;
}

.ps-text b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-text small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.ps-on {
  color: var(--faint);
  font-size: 13px;
}

.ps-data {
  padding: 14px 14px 12px;
}

.ps-volume {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ps-volume b {
  font-family: var(--f-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ps-volume span {
  color: var(--muted);
  font-weight: 700;
}

.ps-bar {
  height: 6px;
  margin: 12px 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ps-bar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  transform-origin: left;
  animation: fill 1.4s var(--ease) both;
}

.swapping .ps-bar i {
  animation: none;
}

@keyframes fill {
  from {
    transform: scaleX(0);
  }
}

.ps-data small {
  color: var(--faint);
  font-size: 12px;
}

.toggle {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #34d399;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Плавающие карточки рядом с телефоном */
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  background: rgba(28, 24, 73, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -16px rgba(0, 0, 0, 0.8);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

.float-price {
  left: 0;
  bottom: 62px;
  padding: 12px 12px 12px 14px;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.float-price:hover {
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.7), 0 24px 50px -16px rgba(0, 0, 0, 0.8);
}

.float-price .flag {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.fc-text {
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.fc-text b {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.fc-go {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
}

.fc-go svg {
  width: 18px;
  height: 18px;
}

.float-ok {
  top: 330px;
  right: -6px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  animation-delay: -3s;
}

.pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  to {
    opacity: 0;
    transform: scale(2.8);
  }
}

/* Анимация смены страны */
.swap {
  transition: opacity 0.35s, transform 0.35s var(--ease), filter 0.35s;
}

.swapping .swap {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(4px);
}

.pass-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.pass-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-3);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s;
}

.pass-dots button[aria-current="true"] {
  width: 24px;
  background: var(--cyan);
}

/* Волны сигнала за телефоном — отсылка к логотипу */
.waves {
  position: absolute;
  right: 0;
  top: -30px;
  z-index: -1;
  width: 300px;
  height: 300px;
  color: var(--blue);
  opacity: 0.35;
}

/* ==========================================================================
   Бегущая строка стран
   ========================================================================== */

.ticker {
  position: relative;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: ticker 90s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.ticker a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
}

.ticker a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ticker .flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.ticker .price {
  color: var(--muted);
  font-weight: 500;
}

/* ==========================================================================
   Секции
   ========================================================================== */

.section {
  position: relative;
  padding: 120px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}

.section-head h2 {
  max-width: 18em;
  margin-top: 14px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;  text-wrap: balance;
}

.section-head p {
  max-width: 420px;
  color: var(--muted);
  font-size: 17px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

/* ==========================================================================
   Калькулятор трафика
   ========================================================================== */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.calc-controls {
  display: grid;
  gap: 36px;
  padding: 44px;
}

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-weight: 700;
}

.field-label output {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
}

/* Выбор страны */
.select {
  position: relative;
}

.select select {
  width: 100%;
  height: 56px;
  padding: 0 48px 0 60px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  appearance: none;
  cursor: pointer;
}

.select select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.select .flag {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 30px;
  height: 22px;
  transform: translateY(-50%);
  pointer-events: none;
}

.select::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Ползунок */
.range {
  --p: 30%;
  width: 100%;
  height: 28px;
  margin: 0;
  background: none;
  appearance: none;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--blue) calc(var(--p) * 0.6), var(--cyan) var(--p), var(--surface-3) var(--p));
}

.range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
}

.range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--grad);
}

.range::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
  appearance: none;
}

.range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

/* Сегменты «как пользуетесь» */
.usage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.usage label {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s;
}

.usage input {
  position: absolute;
  opacity: 0;
}

.usage svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.usage b {
  font-size: 15px;
}

.usage small {
  color: var(--faint);
  font-size: 13px;
  line-height: 1.35;
}

.usage label:has(input:checked) {
  background: rgba(59, 130, 246, 0.12);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}

.usage label:has(input:checked) svg {
  color: var(--cyan);
}

.usage label:has(input:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Результат */
.calc-result {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 44px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(100% 80% at 0% 100%, rgba(139, 92, 246, 0.25), transparent 60%),
    var(--surface-2);
  border-left: 1px solid var(--line);
}

.calc-need {
  font-size: 15px;
  color: var(--muted);
}

.calc-need strong {
  color: var(--text);
}

.calc-plan {
  margin-top: 8px;
}

.calc-plan .big {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.calc-plan .big small {
  font-size: 0.4em;
  letter-spacing: 0;
  margin-left: 6px;
  color: var(--muted);
}

.calc-plan .price {
  margin-top: 12px;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
}

.calc-plan .hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.calc-plan.bump .big {
  animation: bump 0.4s var(--ease);
}

@keyframes bump {
  40% {
    transform: scale(1.06);
  }
}

/* ==========================================================================
   Путь: дома → в аэропорту → после посадки
   ========================================================================== */

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.journey::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-3) 0 6px, transparent 6px 14px);
}

.stop {
  position: relative;
}

.stop-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 8px var(--bg);
}

.stop-icon svg {
  width: 26px;
  height: 26px;
  color: var(--cyan);
}

.stop:last-child .stop-icon {
  background: var(--grad);
  box-shadow: 0 0 0 8px var(--bg), 0 10px 30px -8px rgba(59, 130, 246, 0.8);
}

.stop:last-child .stop-icon svg {
  color: #fff;
}

.stop h3 {
  margin: 8px 0 10px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stop p {
  color: var(--muted);
}

.stop .path {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   Сравнение
   ========================================================================== */

.compare {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  align-items: center;
  gap: 16px;
}

.option {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.option h3 {
  margin-bottom: 6px;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
}

.option > p {
  margin-bottom: 24px;
  color: var(--faint);
  font-size: 14px;
}

.option ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.option li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.option li svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.option li.yes svg {
  color: var(--green);
}

.option li.no svg {
  color: #f87171;
}

.option li.meh svg {
  color: #fbbf24;
}

.option.ours {
  position: relative;
  padding: 40px 34px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(59, 130, 246, 0.22), transparent 70%),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.5), 0 40px 80px -40px rgba(59, 130, 246, 0.6);
}

.option.ours li {
  color: var(--text);
}

.option.ours .tag {
  position: absolute;
  top: -13px;
  left: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================================================
   Совместимость
   ========================================================================== */

.compat {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.compat-check {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 40px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 90% at 0% 0%, rgba(139, 92, 246, 0.2), transparent 60%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.dial {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dial kbd {
  display: grid;
  place-items: center;
  width: 54px;
  height: 64px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 4px 0 var(--bg);
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
}

.compat-check h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.compat-check p {
  color: var(--muted);
}

.compat-check p strong {
  color: var(--text);
}

.compat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
  box-shadow: inset 0 0 0 1px var(--line);
}

.compat-item {
  padding: 26px 28px;
  background: var(--surface);
}

.compat-item h4 {
  font-size: 17px;
  margin-bottom: 4px;
}

.compat-item p {
  color: var(--muted);
  font-size: 15px;
}

.compat-item.warn {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-2);
}

.compat-item.warn svg {
  width: 22px;
  height: 22px;
  color: #fbbf24;
  flex: none;
  margin-top: 2px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.faq-wrap .section-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
}

.faq {
  border-top: 1px solid var(--line-2);
}

.faq details {
  border-bottom: 1px solid var(--line-2);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary i {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background 0.2s, transform 0.3s var(--ease);
}

.faq summary i::before,
.faq summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
}

.faq summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary i {
  background: var(--grad);
  box-shadow: none;
}

.faq details[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq details p {
  max-width: 640px;
  padding: 0 56px 26px 0;
  color: var(--muted);
}

/* ==========================================================================
   Финальный CTA
   ========================================================================== */

.final {
  position: relative;
  padding: 88px 56px;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.final::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(59, 130, 246, 0.55), transparent 70%),
    radial-gradient(40% 60% at 10% 0%, rgba(139, 92, 246, 0.35), transparent 70%),
    radial-gradient(40% 60% at 90% 0%, rgba(34, 211, 238, 0.25), transparent 70%);
}

.final .logo-big {
  width: 84px;
  height: 84px;
  margin: 0 auto 28px;
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--line-2), 0 20px 60px -10px rgba(59, 130, 246, 0.7);
}

.final h2 {
  text-wrap: balance;
  max-width: 760px;
  margin: 0 auto 16px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.final p {
  max-width: 520px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 17px;
}

.final .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   Подвал
   ========================================================================== */

.site-footer {
  padding: 64px 0 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-top p {
  max-width: 320px;
  margin-top: 14px;
  color: var(--faint);
  font-size: 14px;
}

.footer-cols {
  display: flex;
  gap: 64px;
}

.footer-cols h4 {
  margin-bottom: 14px;
}

.footer-cols a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.footer-cols a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  color: var(--faint);
  font-size: 13px;
}

/* ==========================================================================
   Флаги
   ========================================================================== */

.flag {
  flex: none;
  object-fit: cover;
  background: var(--surface-3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.flag-globe {
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
}

.flag-globe svg {
  width: 62%;
  height: 62%;
}

.skeleton {
  border-radius: 14px;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ==========================================================================
   Каталог
   ========================================================================== */

.cat-hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 40px;
  overflow: hidden;
  isolation: isolate;
}

.cat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 70% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 90% at 70% 0%, #000 10%, transparent 70%);
}

.cat-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.cat-hero h1 {
  margin-top: 14px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.cat-hero .finder {
  flex: 0 1 440px;
  margin: 0;
}

.cat-hero .finder-field {
  height: 58px;
  padding-right: 22px;
}

.cat-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  padding: 14px 0;
  background: rgba(11, 10, 31, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
}

@media (min-width: 861px) {
  .tabs {
    flex-wrap: wrap;
  }
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab:hover {
  color: var(--text);
}

.tab small {
  font-weight: 600;
  color: var(--faint);
}

.tab[aria-selected="true"] {
  background: var(--text);
  color: var(--bg);
  box-shadow: none;
}

.tab[aria-selected="true"] small {
  color: rgba(11, 10, 31, 0.55);
}

.cat-body {
  padding: 40px 0 120px;
}

.cat-group + .cat-group {
  margin-top: 56px;
}

.cat-group h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cat-group h2 small {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--faint);
}

.countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.country {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  overflow: hidden;
  overflow: clip; /* не скролл-контейнер: фокус на кнопке не сдвигает содержимое */
  isolation: isolate;
  transition: box-shadow 0.25s, transform 0.25s var(--ease), background 0.25s;
}

/* Цвет флага «подсвечивает» карточку при наведении */
.country .bgflag {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(28px) saturate(1.4);
  transform: scale(1.4);
  transition: opacity 0.35s;
}

.country:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--line-3), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
}

.country:hover .bgflag {
  opacity: 0.16;
}

.country .flag {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.country .info {
  flex: 1;
  min-width: 0;
}

.country .name {
  display: block;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country .from {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.country .arrow {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.04);
  flex: none;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.country:hover .arrow {
  background: var(--grad);
  color: #fff;
  transform: translateX(2px);
}

.country.global {
  background:
    radial-gradient(100% 140% at 0% 0%, rgba(139, 92, 246, 0.28), transparent 60%),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.45);
}

.global-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
  padding: 22px 26px;
  border-radius: var(--r-lg);
  text-decoration: none;
  background:
    radial-gradient(80% 160% at 0% 0%, rgba(139, 92, 246, 0.35), transparent 60%),
    radial-gradient(60% 160% at 100% 100%, rgba(34, 211, 238, 0.18), transparent 60%),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.global-banner:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.8), 0 20px 50px -24px rgba(139, 92, 246, 0.7);
}

.global-banner .flag {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.global-banner .info {
  flex: 1;
  min-width: 0;
}

.global-banner .info > span {
  display: block;
}

.global-banner .title {
  margin-top: 4px;
  font-family: var(--f-display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.global-banner .price {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.global-banner .arrow {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  flex: none;
}

@media (max-width: 600px) {
  .global-banner {
    flex-wrap: wrap;
    gap: 14px 16px;
    padding: 20px;
    margin-bottom: 40px;
  }

  .global-banner .info {
    flex-basis: calc(100% - 72px);
  }

  .global-banner .price {
    flex: 1;
    padding-left: 72px;
    font-size: 17px;
  }

  .global-banner .arrow {
    width: 40px;
    height: 40px;
    padding: 10px;
  }
}

.empty {
  padding: 64px 24px;
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.empty h3 {
  margin-bottom: 8px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.empty .btn {
  margin-top: 24px;
}

/* ==========================================================================
   Панель тарифов (drawer / bottom sheet)
   ========================================================================== */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  transition: visibility 0s 0.45s;
}

.drawer.open {
  visibility: visible;
  transition: none;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 14, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s;
}

.drawer.open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  background: var(--bg-2);
  box-shadow: -1px 0 0 var(--line-2), -40px 0 80px -20px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}

.drawer.open .drawer-panel {
  transform: none;
}

.drawer-head {
  flex: none;
  position: relative;
  padding: 28px 28px 24px;
  overflow: hidden;
  overflow: clip; /* не скролл-контейнер: фокус на кнопке не сдвигает содержимое */
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.drawer-head .bgflag {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(40px) saturate(1.5);
  transform: scale(1.5);
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.drawer-close svg {
  width: 18px;
  height: 18px;
  margin: auto;
}

.drawer-head .flag {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.drawer-head h2 {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.drawer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.drawer-meta svg {
  width: 14px;
  height: 14px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 28px;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.plan {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s;
}

.plan:hover {
  box-shadow: inset 0 0 0 1px var(--line-3);
}

.plan input {
  position: absolute;
  opacity: 0;
}

.plan .vol {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan .cost {
  font-weight: 700;
  font-size: 16px;
}

.plan .per {
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
}

.plan .pop {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
}

.plan:has(input:checked) {
  background: rgba(59, 130, 246, 0.14);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.plan:has(input:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.drawer-info {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.drawer-info div {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.drawer-info svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

.drawer-foot {
  flex: none;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.drawer-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.drawer-sum b {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
}

.drawer-foot .note {
  margin-top: 12px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .compare {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .option.ours {
    order: -1;
  }

  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-wrap .section-head {
    position: static;
  }
}

@media (max-width: 900px) {
  .calc {
    grid-template-columns: 1fr;
  }

  .calc-result {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .compat {
    grid-template-columns: 1fr;
  }

  .cat-hero-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cat-hero .finder {
    flex: none;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
    --header-h: 64px;
  }

  .hero {
    padding: calc(var(--header-h) + 40px) 0 56px;
  }

  .finder-field {
    height: 58px;
    padding-left: 18px;
  }

  .finder-field .btn {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
  }

  .journey {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .journey::before {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--line-3) 0 6px, transparent 6px 14px);
  }

  .stop {
    padding-left: 84px;
  }

  .stop-icon {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }

  .calc-controls,
  .calc-result {
    padding: 28px 22px;
  }

  .usage {
    grid-template-columns: 1fr;
  }

  .usage label {
    grid-template-columns: 22px 1fr;
    column-gap: 14px;
    row-gap: 2px;
  }

  .usage svg {
    grid-row: span 2;
    align-self: center;
  }

  .option,
  .option.ours {
    padding: 28px 22px;
  }

  .compat-check {
    padding: 28px 22px;
  }

  .compat-list {
    grid-template-columns: 1fr;
  }

  .compat-item {
    padding: 22px;
  }

  .faq summary {
    font-size: 16px;
    padding: 22px 0;
  }

  .faq details p {
    padding-right: 0;
  }

  .final {
    padding: 56px 22px;
    border-radius: 24px;
  }

  .footer-cols {
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .phone {
    width: 268px;
    padding: 10px;
    border-radius: 46px;
    transform: none;
  }

  .device:hover .phone {
    transform: none;
  }

  .phone-screen {
    height: 520px;
    border-radius: 36px;
  }

  .float-price {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: -34px;
    animation: none;
  }

  .float-ok {
    display: none;
  }

  .waves {
    display: none;
  }

  /* Панель тарифов снизу на телефоне */
  .drawer-panel {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -1px 0 var(--line-2), 0 -30px 60px -20px rgba(0, 0, 0, 0.7);
  }

  .drawer-panel::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 2;
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: var(--line-3);
    transform: translateX(-50%);
  }

  .drawer-head {
    padding: 28px 20px 20px;
    border-radius: 24px 24px 0 0;
  }

  .drawer-head .flag {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
  }

  .drawer-head h2 {
    font-size: 24px;
  }

  .drawer-body {
    padding: 20px;
  }

  .drawer-foot {
    padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  }

  .plan {
    padding: 14px;
  }

  .plan .vol {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Магазин: корзина в шапке, уведомления, формы
   ========================================================================== */

.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background 0.2s;
}

.cart-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cart-btn svg {
  width: 20px;
  height: 20px;
}

.cart-btn b {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--grad);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 0 3px var(--bg);
}

.cart-btn b[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .cart-btn {
    margin-left: auto;
  }

  .menu-btn {
    margin-left: 8px;
  }
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(440px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  font-weight: 600;
  font-size: 15px;
  pointer-events: auto;
  animation: toast-in 0.35s var(--ease);
  transition: opacity 0.3s, transform 0.3s;
}

.toast a {
  color: var(--cyan);
  white-space: nowrap;
}

.toast-error {
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.5), 0 20px 50px -10px rgba(0, 0, 0, 0.7);
}

.toast.out {
  opacity: 0;
  transform: translateY(8px);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.drawer-actions .btn {
  padding: 0 14px;
}

.drawer-foot .note a {
  color: var(--cyan);
}

/* Поля ввода */
.field {
  display: grid;
  gap: 8px;
}

.field label,
.field .label {
  font-size: 14px;
  font-weight: 700;
}

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: box-shadow 0.2s;
}

.input::placeholder {
  color: var(--faint);
}

.input:focus {
  outline: 0;
  box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 5px rgba(59, 130, 246, 0.15);
}

.input:disabled {
  opacity: 0.6;
}

.form-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.1);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 14px;
}

.form-error:empty {
  display: none;
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.btn.loading {
  color: transparent !important;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-light.loading::after {
  border-color: rgba(11, 10, 31, 0.25);
  border-top-color: var(--bg);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 48px auto;
  border: 3px solid var(--line-2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   Внутренние страницы
   ========================================================================== */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page main {
  flex: 1;
  padding: calc(var(--header-h) + 48px) 0 96px;
}

.page-title {
  margin: 12px 0 32px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.panel {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--muted);
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chip-ok {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
}

.chip-wait {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.chip-bad {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

.chip-info {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}

/* ─── Вход ─── */

.auth {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(440px, 100%);
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.auth-card .logo {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line-2), 0 12px 30px -8px rgba(59, 130, 246, 0.6);
}

.auth-card h1 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.auth-card .sub {
  margin: 6px 0 24px;
  color: var(--muted);
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.seg button {
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.seg button[aria-selected="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.6);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--faint);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-2);
}

.tg-widget {
  display: flex;
  justify-content: center;
  min-height: 40px;
}

.auth-foot {
  margin-top: 24px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

/* ─── Корзина ─── */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto 40px;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cart-line .flag {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.cart-line .title {
  font-weight: 700;
  font-size: 17px;
}

.cart-line .meta {
  color: var(--muted);
  font-size: 14px;
}

.cart-line .sum {
  min-width: 100px;
  text-align: right;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.stepper button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.stepper button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.stepper button:disabled {
  opacity: 0.3;
  cursor: default;
}

.stepper svg {
  width: 16px;
  height: 16px;
}

.stepper output {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 18px;
}

.summary h2 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
}

.summary-rows {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
}

.summary-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-rows .discount {
  color: var(--green);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.summary-total b {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 700;
}

.promo {
  display: flex;
  gap: 8px;
}

.promo .input {
  height: 46px;
  text-transform: uppercase;
}

.promo .btn {
  min-height: 46px;
}

.summary .note {
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 72px 24px;
  border-radius: var(--r-lg);
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.empty-state .ico {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
  border-radius: 22px;
  background: var(--surface-2);
}

.empty-state .ico svg {
  width: 30px;
  height: 30px;
  color: var(--cyan);
}

.empty-state h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
}

.empty-state p {
  max-width: 380px;
  color: var(--muted);
}

.empty-state .btn {
  margin-top: 14px;
}

/* ─── Кабинет ─── */

.account {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.account-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 16px;
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  font-family: var(--f-display);
  font-weight: 700;
}

.who .name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.who .mail {
  color: var(--faint);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.who > div {
  min-width: 0;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.side-nav button svg {
  width: 20px;
  height: 20px;
}

.side-nav button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.side-nav button[aria-selected="true"] {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.side-nav button small {
  margin-left: auto;
  color: var(--faint);
}

.tab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.tab-head h2 {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Карточка eSIM */
.esim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.esim {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
  overflow: clip; /* не скролл-контейнер: фокус на кнопке не сдвигает содержимое */
  isolation: isolate;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.esim .bgflag {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
  filter: blur(36px) saturate(1.4);
  transform: scale(1.5);
}

.esim-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.esim-top .flag {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.esim-top .title {
  font-weight: 700;
  font-size: 17px;
}

.esim-top > div {
  min-width: 0;
}

.esim-top .title,
.esim-top .iccid {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.esim-top .iccid {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--faint);
}

.esim-meta {
  align-items: center;
  margin: 0;
}

.usage-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.usage-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}

.usage-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.usage-row b {
  color: var(--text);
}

.esim-actions {
  display: flex;
  gap: 8px;
}

.esim-actions .btn {
  flex: 1;
  min-height: 44px;
  font-size: 14px;
}

/* Заказы */
.orders {
  display: grid;
  gap: 10px;
}

.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.order-head b {
  font-family: var(--f-display);
  font-weight: 600;
}

.order-head span {
  color: var(--faint);
  font-size: 14px;
}

.order ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.order-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 10px;
}

.order-side .total {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.order-side .btns {
  display: flex;
  gap: 8px;
}

.order-side .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

/* Профиль */
.profile {
  display: grid;
  gap: 14px;
  max-width: 640px;
}

.profile .panel h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.profile .panel > p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.profile form {
  display: grid;
  gap: 14px;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.linked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

/* ─── Окно установки eSIM ─── */

.modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--bg-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px -20px rgba(0, 0, 0, 0.9);
}

.modal::backdrop {
  background: rgba(4, 3, 14, 0.7);
  backdrop-filter: blur(4px);
}

.modal-body {
  padding: 30px;
}

.modal .drawer-close {
  z-index: 2;
}

.modal h2 {
  padding-right: 48px;
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.modal .sub {
  margin-top: 4px;
  color: var(--muted);
}

.qr-box {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  margin: 24px 0;
}

.qr {
  padding: 12px;
  border-radius: 18px;
  background: #fff;
}

.qr svg {
  width: 100%;
  height: auto;
}

.qr-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}

.qr-steps li + li {
  margin-top: 8px;
}

.qr-steps b {
  color: var(--text);
}

.manual {
  display: grid;
  gap: 8px;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.copy-row .k {
  display: block;
  margin-bottom: 2px;
}

.copy-row code {
  display: block;
  font-family: var(--f-mono);
  font-size: 13px;
  word-break: break-all;
}

.test-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.08);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.3);
  color: #fde68a;
  font-size: 13px;
}

/* ─── Статус заказа ─── */

.status-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 44px 36px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.status-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--surface-3);
}

.status-icon svg {
  width: 40px;
  height: 40px;
}

.status-icon.ok {
  background: var(--grad);
  box-shadow: 0 20px 50px -10px rgba(59, 130, 246, 0.8);
}

.status-icon.bad svg {
  color: #f87171;
}

.status-icon .spinner {
  margin: 0;
}

.status-card h1 {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.status-card p {
  margin: 10px auto 0;
  max-width: 400px;
  color: var(--muted);
}

.status-card .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.status-card ul {
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

/* ─── Адаптив магазина ─── */

@media (max-width: 960px) {
  .cart-layout,
  .account {
    grid-template-columns: 1fr;
  }

  .summary,
  .account-side {
    position: static;
  }

  .side-nav {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }

  .side-nav button {
    justify-content: center;
    padding: 0 10px;
  }

  .side-nav button small {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .page main {
    padding-top: calc(var(--header-h) + 28px);
  }

  .auth-card {
    padding: 28px 22px;
  }

  .cart-line {
    grid-template-columns: 44px minmax(0, 1fr) 36px;
    gap: 12px 14px;
    padding: 14px;
  }

  .cart-line .flag {
    width: 44px;
    height: 44px;
  }

  .cart-line .stepper {
    grid-column: 2;
    justify-self: start;
  }

  .cart-line .sum {
    grid-column: 3 / 4;
    grid-row: 2;
    min-width: 0;
    grid-column: 2 / 4;
    justify-self: end;
    margin-top: -42px;
  }

  .cart-line .icon-btn {
    grid-column: 3;
    grid-row: 1;
  }

  .side-nav button svg {
    display: none;
  }

  .esim-grid {
    grid-template-columns: 1fr;
  }

  .order {
    grid-template-columns: 1fr;
  }

  .order-side {
    justify-items: start;
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
  }

  .row2 {
    grid-template-columns: 1fr;
  }

  .modal-body {
    padding: 24px 20px;
  }

  .qr-box {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .qr {
    width: 220px;
  }

  .status-card {
    padding: 36px 22px;
  }
}

/* Плашка тестового режима (пока не подключены оплата и поставщик eSIM) */
.test-banner {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 150;
  max-width: calc(100vw - 32px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fde68a;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}
