/* vne.sim — светлая тема в духе маркетплейсов.
   Сначала мобильная версия, ниже правки для планшета (720px) и компьютера (1080px). */

:root {
  /* Палитра и пропорции по дизайн-коду Unero: белые поверхности, тонкие рамки, один спокойный акцент */
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #F4F6F9;
  --line: #E7EAEE;
  --line-strong: #D5DBE3;
  --ink: #101418;
  --ink-2: #344054;
  --muted: #667085;
  --primary: #1689F2;
  --primary-hover: #0F74D1;
  --primary-ink: #0F6FC6;
  --primary-soft: #EEF6FE;
  --primary-ring: rgba(22, 137, 242, .16);
  --violet-soft: var(--surface-2);
  --violet-ink: var(--ink-2);
  --amber-soft: #FFF8EC;
  --amber-ink: #8A5A00;
  --warn: #E0A63A;
  /* Цвета логотипа (вариант 4): синие плитки и мятный акцент */
  --brand-tile: #1689F2;
  --brand-pop: #12C2A6;
  --pop: var(--brand-pop);
  --accent: var(--primary);
  --accent-soft: var(--primary-soft);
  --blue-soft: var(--primary-soft);
  --orange-soft: var(--amber-soft);
  --ok: #1A7F4B;
  --danger: #A33333;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 0 0 1px var(--line);
  --shadow-hover: 0 0 0 1px var(--line-strong), 0 6px 18px rgba(16, 20, 24, .06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1240px;
  --gutter: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding-top: 12px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Знак ---------- */
.mark {
  --s: 40px;
  position: relative; display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--s) * 0.087); width: var(--s); height: var(--s); flex-shrink: 0; color: var(--brand-tile);
}
.mark i { border-radius: calc(var(--s) * 0.12); background: currentColor; }
.mark i.mark-gap { background: transparent; }
.mark b {
  position: absolute; width: calc((var(--s) - var(--s) * 0.087) / 2); height: calc((var(--s) - var(--s) * 0.087) / 2);
  border-radius: calc(var(--s) * 0.12); background: var(--brand-pop);
  right: calc(var(--s) * -0.123); top: calc(var(--s) * -0.123);
}
.mark-logo { --s: 26px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex-shrink: 0; }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--primary); color: #fff; }
.btn-accent:hover { background: var(--primary-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A3139; }
.btn-soft { background: var(--primary-soft); color: var(--primary-ink); }
.btn-soft:hover { background: #E2F0FD; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }
.btn-white { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-white:hover { background: rgba(16, 20, 24, .03); border-color: var(--line-strong); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .header { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); } }
.header-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; flex-shrink: 0; }
.nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 2px;
  padding: 8px var(--gutter) 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(16, 20, 24, .08);
}
.header.is-open .nav { display: flex; }
.nav a { padding: 12px 10px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--primary-ink); background: var(--primary-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; gap: 6px; }
.header-actions .btn span { display: none; }
.header-actions .btn { width: 40px; padding: 0; }
.burger { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); display: grid; place-content: center; gap: 4px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.header.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.flashes { padding-top: 12px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.alert + .alert { margin-top: 8px; }
.alert-ok { background: #EDF7F1; color: var(--ok); border: 1px solid #CDE8D8; }
.alert-error { background: #FFF0F0; color: #8A2020; border: 1px solid #F3CFCF; }

/* ---------- Баннер ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius); color: var(--ink);
  background: var(--surface); box-shadow: var(--shadow);
  padding: 24px 20px 8px; display: grid; gap: 8px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 100% 0%, rgba(22, 137, 242, .07) 0%, rgba(22, 137, 242, 0) 70%);
}
.hero > * { position: relative; }
.eyebrow { display: inline-block; justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; font-size: 13px; }
.hero-copy .eyebrow { margin-bottom: 4px; }
.hero h1 { margin-top: 4px; font-size: clamp(28px, 7.6vw, 44px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
.hero-lead { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 560px; }
.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { flex: 0 1 auto; min-width: 200px; }
.hero-art { position: relative; height: 190px; display: grid; place-items: center; }
.mark-hero { --s: 104px; }
.hero .mark { color: var(--brand-tile); }
.hero .mark b { background: var(--brand-pop); }
.code-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(16, 20, 24, .07);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.code-chip .flag { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.code-chip.c1 { left: 2%; top: 14%; }
.code-chip.c2 { right: 0; top: 40%; }
.code-chip.c3 { left: 6%; bottom: 8%; }
.code-chip.c4 { right: 10%; bottom: 2%; }

/* ---------- Плитки категорий ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); text-decoration: none; min-width: 0;
  transition: box-shadow .15s ease, transform .15s ease;
}
.tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tile b { display: block; font-size: 14px; line-height: 1.25; font-weight: 600; }
.tile small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tile-ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); }
.tile-ico-blue { background: var(--violet-soft); color: var(--violet-ink); }
.tile-ico-orange { background: var(--amber-soft); color: var(--amber-ink); }
.tile-ico-gray { background: var(--surface-2); }

/* ---------- Секции ---------- */
.block-section { padding-top: 12px; }
.section-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.section-head h2, .h2 { font-size: 22px; font-weight: 650; }
.section-head p { color: var(--muted); font-size: 14px; }
.section-head a { color: var(--primary-ink); font-weight: 500; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.panel-h { font-size: 19px; font-weight: 650; margin-bottom: 14px; }
.panel-sub { color: var(--muted); font-size: 14px; margin: -8px 0 16px; }
.section-head-in { margin-bottom: 16px; }

/* ---------- Карточки товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pcard {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: inherit; overflow: hidden;
  transition: box-shadow .2s ease;
}
/* мягкий отсвет в углу, на эскизе — цвет акцента */
.pcard::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(22, 137, 242, .07), rgba(22, 137, 242, 0) 70%); transition: opacity .2s ease; opacity: .7;
}
.pcard:hover { box-shadow: 0 0 0 1px var(--line-strong), 0 10px 28px rgba(16, 20, 24, .07); }
.pcard:hover::before { opacity: 1; }
.pcard > * { position: relative; }
.pcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flag { display: block; flex-shrink: 0; width: 36px; height: 27px; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 1px rgba(16, 20, 24, .08); background: #fff; }
.pcard-ico { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); }
.pcard-tag { padding: 3px 9px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.pcard-code { margin-top: 18px; font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.pcard-service .pcard-code, .pcard-card .pcard-code { font-size: 24px; letter-spacing: -0.03em; }
.pcard-title { margin-top: 8px; font-weight: 600; font-size: 14px; line-height: 1.3; }
.pcard-text { margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pcard-text { margin-bottom: 14px; }
.pcard-foot { border-top: 1px solid var(--line); }
.pcard-price { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.pcard-price-ask { font-size: 14px; font-weight: 600; color: var(--muted); }
.pcard-cta { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 13.5px; font-weight: 500; transition: background-color .15s ease; }
.pcard-cta svg { transition: transform .2s ease; }
.pcard:hover .pcard-cta { background: var(--primary-hover); }
.pcard:hover .pcard-cta svg { transform: translateX(2px); }

/* ---------- Преимущества ---------- */
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.perk { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.perk b { font-size: 15px; font-weight: 600; }
.perk > span:last-child { color: var(--muted); font-size: 13px; line-height: 1.4; }
.perk-ico { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); margin-bottom: 4px; }

/* ---------- Шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.step-n { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary); font-weight: 600; font-size: 14px; }
.steps b { font-size: 16px; font-weight: 600; padding-top: 5px; }
.steps li > span:last-child { color: var(--muted); font-size: 14px; }
.steps-list li { align-items: center; }
.steps-list .step-n { grid-row: auto; }
.steps-list li > span:last-child { color: var(--ink); font-weight: 500; font-size: 15px; }

/* ---------- Промо кабинета ---------- */
.promo { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.promo h2 { font-size: 22px; }
.promo p { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 560px; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.promo-actions .btn { flex: 1 1 150px; }


/* ---------- Чипы ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 13px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: 14px; color: var(--ink-2); }
.chips .chip-accent { background: var(--primary-soft); box-shadow: none; color: var(--primary-ink); }

/* ---------- Вопросы ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 15px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101418' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: var(--muted); max-width: 760px; }

/* ---------- Подвал ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0 calc(96px + env(safe-area-inset-bottom)); margin-top: 8px; }
.footer-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-tg { align-self: flex-start; margin-top: 6px; }
.footer-handle { color: var(--muted); font-size: 13px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-h { font-weight: 600; font-size: 14px; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 60; max-width: 560px;
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(16, 20, 24, .14); font-size: 14px; color: var(--ink-2);
}
.cookie[hidden] { display: none; }
.cookie a { color: var(--primary-ink); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Нижнее меню на телефоне ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500; }
.tabbar a[aria-current="page"] { color: var(--primary); }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transition: transform .25s ease, opacity .25s ease;
}
.buybar-price { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.buybar-price b { font-size: 16px; }
.buybar-price span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { min-width: 140px; min-height: 48px; }
.buybar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* ---------- Страница товара ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.product-title { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }
.product { display: grid; gap: 12px; }
.product-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gallery {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column;
  background: var(--surface); box-shadow: var(--shadow);
}
.gallery::before { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(22, 137, 242, .10), rgba(22, 137, 242, 0) 70%); pointer-events: none; }
.gallery > * { position: relative; }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gallery .flag { width: 64px; height: 48px; border-radius: 8px; }
.gallery .pcard-ico { width: 52px; height: 52px; }
.gallery .pcard-tag { font-size: 13px; padding: 5px 12px; }
.gallery-code { margin-top: 28px; font-size: clamp(56px, 15vw, 96px); font-weight: 700; letter-spacing: -0.05em; line-height: .95; }
.gallery-service .gallery-code, .gallery-card .gallery-code { font-size: clamp(42px, 11vw, 72px); }
.gallery-sub { margin-top: 10px; font-size: 17px; color: var(--muted); }
.gallery-points { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.gallery-points li { display: inline-flex; align-items: center; gap: 6px; }
.gallery-points svg { color: var(--ok); }
.lead { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }
.includes { list-style: none; margin: 0; padding: 0; }
.includes li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.includes li:last-child { border-bottom: 0; }
.inc-yes { color: var(--ok); flex-shrink: 0; }
.inc-val { font-weight: 600; text-align: right; }
.note { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--amber-soft); border-left: 3px solid var(--warn); color: #5C3D00; font-size: 14px; font-weight: 500; }

/* Форма заказа (buybox) и общие поля форм */
.buybox { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.buybox-price { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.buybox-sub { margin-top: -8px; color: var(--muted); font-size: 14px; }
.buybox-note, .buybox-alt { text-align: center; color: var(--muted); font-size: 13px; margin-top: -4px; }
.buybox-note a, .buybox-alt a { color: var(--primary-ink); font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: 13.5px; padding: 0; color: var(--ink-2); }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: #98A2B3; }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-ring); }
.field input:disabled { color: var(--muted); }
.field-row { display: grid; gap: 14px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: 14px; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.seg label:hover span { border-color: #CFD8E3; }
.seg input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--primary); }
.check a { color: var(--primary-ink); }
.buybox .check { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Вход и регистрация ---------- */
.auth { width: 100%; max-width: 460px; margin: 8px auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); margin-bottom: 20px; }
.auth-tabs a { text-align: center; padding: 10px; border-radius: 9px; text-decoration: none; font-weight: 500; color: var(--muted); }
.auth-tabs a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.auth h1 { font-size: 24px; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 6px 0 18px; }
.auth form { display: flex; flex-direction: column; gap: 14px; }
.auth-foot { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--primary-ink); font-weight: 500; }

/* ---------- Личный кабинет ---------- */
.page-h { font-size: 24px; }
.acc { display: grid; gap: 12px; }
.acc-side { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.acc-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acc-user > span:last-child { min-width: 0; }
.acc-user b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-user small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 18px; }
.acc-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.acc-nav a, .acc-nav button {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-sm); border: 0;
  background: var(--surface-2); color: var(--ink-2); font: inherit; font-weight: 500; font-size: 14px; text-decoration: none; cursor: pointer;
}
.acc-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
.acc-nav form { margin: 0; display: contents; }
.acc-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.acc-head .panel-h { margin: 0; }
.orders { list-style: none; margin: 0; padding: 0; }
.order-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.order-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-main b { font-size: 15px; }
.order-main span { color: var(--muted); font-size: 13px; }
.order-comment { overflow-wrap: anywhere; }
.status { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.status-new { background: var(--primary-soft); color: #0B4F8F; }
.status-in_progress, .status-awaiting_payment { background: #FFF3D6; color: #8A5A00; }
.status-done { background: #EDF7F1; color: var(--ok); }
.status-cancelled { background: var(--surface-2); color: var(--muted); }
.form-panel { display: flex; flex-direction: column; gap: 14px; }
.form-panel .panel-h { margin-bottom: 0; }
.form-panel .panel-sub { margin: -8px 0 0; }
.form-panel > .btn { align-self: flex-start; }

/* ---------- Пустые состояния ---------- */
.empty, .state { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 18px; }
.empty h2, .empty h3, .state h1 { font-size: 22px; }
.empty p, .state .lead { color: var(--muted); max-width: 440px; }
.empty .hero-actions, .state .hero-actions { justify-content: center; }
.empty-ico, .state-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); margin-bottom: 4px; }
.state-ico { background: #EDF7F1; color: var(--ok); }
.state-ico-gray { background: var(--surface-2); }
.state-note { color: var(--muted); font-size: 14px; margin-top: 6px; }
.state-note a { color: var(--primary-ink); font-weight: 500; }


/* ---------- Тексты, каталог eSIM, статьи ---------- */
.about p + p { margin-top: 10px; }
.about + .includes { margin-top: 12px; }
.about p { color: var(--ink-2); }
.seg span small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.seg input:checked + span small { color: var(--primary-ink); }
.seg span:has(small) { padding: 6px 8px; align-content: center; gap: 1px; }
.nowrap { white-space: nowrap; }
.page-head { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 4px; }
.page-head h1 { font-size: 26px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.page-head p { color: var(--muted); max-width: 720px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.compare th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 0 12px 10px 0; }
.compare td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.compare a { color: var(--primary-ink); text-decoration: none; }
.compare a:hover { text-decoration: underline; }
.table-wrap + .note { margin-top: 14px; }
.seo-text h2 { font-size: 20px; margin-bottom: 10px; }
.seo-text h3 { font-size: 16px; margin: 16px 0 8px; }
.seo-text p { color: var(--ink-2); max-width: 860px; }
.seo-text p + p { margin-top: 10px; }
.seo-text ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; max-width: 860px; color: var(--ink-2); }
.seo-text ul + p { margin-top: 12px; }
.seo-text a, .note a { color: var(--primary-ink); font-weight: 500; }
.art-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.art-links a { display: block; padding: 10px 0; color: var(--primary-ink); font-weight: 500; text-decoration: none; border-top: 1px solid var(--line); }
.art-links li:first-child a { border-top: 0; padding-top: 0; }
.art-links a:hover { text-decoration: underline; }
.art-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.art-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
.art-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.art-meta { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.art-title { font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; }
.art-text { color: var(--muted); font-size: 14px; line-height: 1.45; }
.art-more { margin-top: auto; padding-top: 6px; color: var(--primary-ink); font-weight: 500; font-size: 14px; }
.article { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px; }
.article-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; max-width: 760px; }
.article-head h1 { font-size: 26px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.prose { max-width: 760px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 22px; line-height: 1.25; color: var(--ink); margin-top: 30px; letter-spacing: -0.015em; font-weight: 650; }
.prose h3 { font-size: 18px; line-height: 1.3; color: var(--ink); margin-top: 22px; font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--primary-ink); font-weight: 500; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin-left: 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--primary-soft); border-left: 3px solid var(--primary); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.prose th { border-top: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.prose code { background: var(--surface-2); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.article-faq { max-width: 760px; margin-top: 30px; }
.article-faq h2 { font-size: 22px; margin-bottom: 6px; }
.faq-a { padding: 0 0 16px; color: var(--muted); }
.faq-a p + p { margin-top: 8px; }
.faq-a a { color: var(--primary-ink); font-weight: 500; }


/* ---------- Информационные страницы ---------- */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.info-card { display: flex; flex-direction: column; gap: 8px; }
.info-card h2 { font-size: 18px; font-weight: 650; }
.info-card p { color: var(--muted); font-size: 14.5px; }
.info-card p a { color: var(--primary-ink); }
.info-card .btn { align-self: flex-start; margin-top: 6px; }
.info-ico { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); margin-bottom: 4px; }
.service-row { display: grid; gap: 18px; }
.service-row-main p { color: var(--ink-2); }
.service-row-main p + p { margin-top: 10px; }
.service-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.service-row-foot b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.steps-5 li > span:last-child { font-size: 14px; }
.hero-compact { padding-bottom: 20px; }
.hero-compact .hero-art { height: 150px; }
.legal .prose h2 { font-size: 19px; margin-top: 26px; }
.legal .prose { font-size: 15.5px; }

/* ---------- Планшет ---------- */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  html { scroll-padding-top: 150px; }
  .page { gap: 16px; padding-top: 16px; }
  .header-actions .btn { width: auto; padding: 0 14px; }
  .header-actions .btn span { display: inline; }
  .hero { padding: 36px 36px 0; }
  .hero-art { height: 210px; }
  .mark-hero { --s: 140px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .tile { padding: 14px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pcard-code { font-size: 34px; }
  .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 24px; }
  .panel { padding: 24px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { grid-template-columns: 1fr; row-gap: 6px; padding: 18px; }
  .step-n { grid-row: auto; margin-bottom: 4px; }
  .steps-list { grid-template-columns: 1fr; }
  .steps-list li { grid-template-columns: auto 1fr; padding: 14px 16px; }
  .promo { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
  .promo-actions { flex-wrap: nowrap; }
  .footer-in { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .auth { padding: 32px; margin-top: 24px; }
  .section-head { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 24px; }
  .section-head h2, .h2 { font-size: 26px; }
  .page-head h1 { font-size: 32px; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article { padding: 32px; }
  .article-head h1 { font-size: 34px; }
}

/* ---------- Компьютер ---------- */
@media (min-width: 1080px) {
  :root { --gutter: 32px; }
  body { font-size: 16px; }
  .tabbar, .buybar { display: none; }
  .footer { padding-bottom: 40px; }
  .header-in { height: 68px; gap: 28px; }
  .nav { display: flex; position: static; flex-direction: row; gap: 2px; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav a { padding: 8px 12px; font-size: 15px; }
  .nav-mobile-only, .burger { display: none; }
  .footer-in { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
  .cookie { left: 24px; bottom: 24px; }
  .logo { font-size: 22px; margin-right: 8px; }
  .mark-logo { --s: 28px; }

  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; padding: 48px 56px; min-height: 380px; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-art { height: 300px; }
  .mark-hero { --s: 168px; }
  .code-chip { font-size: 18px; padding: 7px 16px 7px 7px; gap: 10px; }
  .code-chip .flag { width: 32px; height: 32px; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .pcard-code { font-size: 38px; }
  .pcard { padding: 18px; }
  .pcard-price { font-size: 18px; }
  .pcard-title { font-size: 15px; }
  .pcard-text { font-size: 13.5px; }

  .faq-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding: 32px; }
  .faq-panel .section-head { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
  .faq summary { font-size: 16px; }
  .faq details:first-child { border-top: 0; }

  .product-title { font-size: 30px; }
  .product { grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
  .product-side { position: sticky; top: 150px; }
  .buybox { padding: 24px; }
  .gallery { padding: 32px 36px; }

  .acc { grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
  .acc-side { position: sticky; top: 150px; padding: 20px; }
  .acc-nav { flex-direction: column; overflow: visible; }
  .acc-nav a, .acc-nav button { width: 100%; background: transparent; }
  .acc-nav a:hover, .acc-nav button:hover { background: var(--surface-2); }
  .acc-nav a[aria-current="page"] { background: var(--primary-soft); }

  .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .info-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-contacts .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .service-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; padding: 28px 32px; }
  .hero-compact { min-height: 0; padding: 40px 56px; }
  .article { padding: 48px 56px; }
  .article-head h1 { font-size: 40px; }
  .prose { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
