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

:root {
  --bg: #F2F3F5;
  --surface: #FFFFFF;
  --surface-2: #F5F6F8;
  --line: #E3E5E9;
  --ink: #111214;
  --ink-2: #2B2E33;
  --muted: #5E6570;
  --primary: #1F5EFF;
  --primary-hover: #194FDB;
  --primary-ink: #1745C9;
  --primary-soft: #EBF1FF;
  --violet-soft: #F1EEFF;
  --violet-ink: #5B3FD6;
  --amber-soft: #FFF5E1;
  --amber-ink: #9A5B00;
  --pop: #FFC53D;
  --accent: var(--primary);
  --accent-soft: var(--primary-soft);
  --blue-soft: var(--primary-soft);
  --orange-soft: var(--amber-soft);
  --ok: #1E8E4F;
  --danger: #C62B2B;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-hover: 0 10px 28px rgba(16, 24, 40, .10);
  --wrap: 1280px;
  --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: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -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.12; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid #8FB0FF; outline-offset: 2px; border-radius: 8px; }
.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(--ink);
}
.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(--accent);
  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: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; 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: scale(.98); }
.btn svg { flex-shrink: 0; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.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: #2A2D31; }
.btn-soft { background: var(--primary-soft); color: var(--primary-ink); }
.btn-soft:hover { background: #DDE7FF; }
.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 { border-color: #C9CDD3; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.header-in {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo actions" "search search";
  align-items: center; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px;
}
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.header-catalog { display: none; }
.search { grid-area: search; position: relative; display: flex; }
.search input {
  width: 100%; height: 44px; padding: 0 52px 0 16px; border-radius: 12px;
  border: 2px solid var(--primary); background: var(--surface); font: inherit; font-size: 16px; color: var(--ink);
}
.search input::placeholder { color: #8A9099; }
.search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(31, 94, 255, .15); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search button {
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; border-radius: 9px;
  background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.header-actions { grid-area: actions; justify-self: end; display: flex; gap: 4px; }
.hact { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.hact span { display: none; }
.hact:hover { background: var(--surface-2); }

.catbar { border-top: 1px solid var(--line); }
.catbar-in { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar a { flex-shrink: 0; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.catbar a:hover { background: #E9EBEE; }
.catbar a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
.page-home .catbar, .page-product .catbar { display: block; }

.flashes { padding-top: 12px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
.alert + .alert { margin-top: 8px; }
.alert-ok { background: #E6F6EC; color: #145C34; border: 1px solid #BFE6CD; }
.alert-error { background: #FDECEC; color: #8E1F1F; border: 1px solid #F5C2C2; }

/* ---------- Баннер ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #4C7DFF 0%, #1F5EFF 45%, #1745C9 100%);
  padding: 24px 20px 0; display: grid; gap: 8px;
}
.eyebrow { font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #C9D8FF; }
.hero h1 { margin-top: 10px; font-size: clamp(30px, 8.5vw, 54px); line-height: 1.05; letter-spacing: -0.03em; }
.hero-lead { margin-top: 12px; color: #E1E9FF; font-size: 15px; max-width: 560px; }
.hero-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { flex: 1 1 160px; }
.hero-art { position: relative; height: 170px; display: grid; place-items: center; }
.mark-hero { --s: 112px; }
.hero .mark { color: rgba(255, 255, 255, .92); }
.hero .mark b { background: var(--pop); }
.code-chip {
  position: absolute; padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 6px 16px rgba(10, 30, 90, .18);
  font-weight: 800; font-size: 15px; letter-spacing: -0.01em;
}
.code-chip.c1 { left: 6%; top: 22%; }
.code-chip.c2 { right: 8%; top: 8%; }
.code-chip.c3 { left: 14%; bottom: 10%; }
.code-chip.c4 { right: 4%; bottom: 26%; }

/* ---------- Плитки категорий ---------- */
.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: 16px;
  background: var(--surface); box-shadow: var(--shadow); text-decoration: none; min-width: 0;
  transition: box-shadow .2s ease;
}
.tile:hover { box-shadow: var(--shadow-hover); }
.tile b { display: block; font-size: 14px; line-height: 1.2; }
.tile small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tile-ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; 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; }
.section-head p { color: var(--muted); font-size: 14px; }
.section-head a { color: var(--primary-ink); font-weight: 700; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.panel-h { font-size: 20px; 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 {
  display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: box-shadow .2s ease, transform .2s ease;
}
.pcard:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.pcard-media {
  position: relative; aspect-ratio: 1 / 0.86; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; margin: 6px 6px 0; border-radius: 16px;
}
.media-esim { background: linear-gradient(160deg, #F2F6FF 0%, #E2EBFF 100%); }
.media-service { background: linear-gradient(160deg, #F6F3FF 0%, #E9E3FF 100%); }
.media-card { background: linear-gradient(160deg, #FFF8EC 0%, #FFEACB 100%); }
.pcard-tag {
  position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 8px; background: var(--surface);
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.pcard-code { position: relative; z-index: 1; font-weight: 800; font-size: 34px; line-height: .95; letter-spacing: -0.04em; }
.media-service .pcard-code, .media-card .pcard-code { font-size: 22px; letter-spacing: -0.02em; }
.pcard-country { position: relative; z-index: 1; font-weight: 700; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.pcard-badge { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--primary-ink); box-shadow: var(--shadow); }
.media-service .pcard-badge { color: var(--violet-ink); }
.media-card .pcard-badge { color: var(--amber-ink); }
.pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.pcard-price { font-weight: 800; font-size: 16px; }
.pcard-title { font-weight: 700; font-size: 14px; line-height: 1.3; }
.pcard-text { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-btn { margin-top: auto; min-height: 40px; font-size: 14px; }
.pcard-body .pcard-text { margin-bottom: 8px; }

/* ---------- Преимущества ---------- */
.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; }
.perk > span:last-child { color: var(--muted); font-size: 13px; line-height: 1.4; }
.perk-ico { width: 40px; height: 40px; border-radius: 12px; 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: 16px; background: var(--surface-2); }
.step-n { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; }
.steps b { font-size: 16px; padding-top: 6px; }
.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: 600; 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: 8px 14px; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: 14px; }
.chips .chip-accent { background: var(--primary-soft); 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: 700; font-size: 15px; line-height: 1.35; }
.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='%23111214' stroke-width='2.5' 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: 300px; }
.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: 800; font-size: 14px; }
.footer-bottom { margin-top: 28px; color: #8A9099; font-size: 13px; }

/* ---------- Нижнее меню на телефоне ---------- */
.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: #6E7580; font-size: 11px; font-weight: 600; }
.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; }
.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); aspect-ratio: 4 / 3; padding: 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.gallery .pcard-tag { left: 16px; top: 16px; font-size: 12px; padding: 6px 10px; }
.gallery-code { position: relative; z-index: 1; font-size: clamp(56px, 17vw, 120px); font-weight: 800; letter-spacing: -0.05em; line-height: .9; }
.media-service .gallery-code, .media-card .gallery-code { font-size: clamp(40px, 12vw, 88px); }
.gallery-country { position: relative; z-index: 1; font-size: clamp(22px, 6vw, 40px); font-weight: 800; margin-top: 6px; }
.gallery-badge { position: absolute; right: 16px; top: 16px; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--primary-ink); box-shadow: var(--shadow); }
.media-service .gallery-badge { color: var(--violet-ink); }
.media-card .gallery-badge { color: var(--amber-ink); }
.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: 600; }
.includes li:last-child { border-bottom: 0; }
.inc-yes { color: var(--ok); flex-shrink: 0; }
.inc-val { font-weight: 700; text-align: right; }
.note { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); color: #5C3A00; font-size: 14px; font-weight: 600; }

/* Форма заказа (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: 26px; font-weight: 800; letter-spacing: -0.02em; 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: 700; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 13px; 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: 12px; 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: #8A9099; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px rgba(31, 94, 255, .12); }
.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: 12px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 14px; transition: all .15s ease; }
.seg input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.seg input:focus-visible + span { outline: 3px solid #8FB0FF; 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); }
.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: 24px; box-shadow: var(--shadow); padding: 20px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); margin-bottom: 20px; }
.auth-tabs a { text-align: center; padding: 10px; border-radius: 10px; text-decoration: none; font-weight: 700; 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: 700; }

/* ---------- Личный кабинет ---------- */
.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: 800; 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: 12px; border: 0;
  background: var(--surface-2); color: var(--ink-2); font: inherit; font-weight: 700; 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: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--ink-2); }
.status-new { background: #E8F0FF; color: #1D4ED8; }
.status-in_progress, .status-awaiting_payment { background: #FFF3D6; color: #8A5A00; }
.status-done { background: #E6F6EC; color: #145C34; }
.status-cancelled { background: #F1F2F4; color: #6E7580; }
.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: #E6F6EC; 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: 700; }

/* ---------- Планшет ---------- */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  html { scroll-padding-top: 150px; }
  .page { gap: 16px; padding-top: 16px; }
  .header-in { grid-template-columns: auto 1fr auto; grid-template-areas: "logo search actions"; gap: 16px; }
  .hact { width: auto; height: auto; padding: 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .hact span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
  .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: 40px; }
  .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: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .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; }
}

/* ---------- Компьютер ---------- */
@media (min-width: 1080px) {
  :root { --gutter: 32px; }
  body { font-size: 16px; }
  .tabbar, .buybar { display: none; }
  .footer { padding-bottom: 40px; }
  .header-in { grid-template-columns: auto auto 1fr auto; grid-template-areas: "logo catalog search actions"; padding-top: 14px; padding-bottom: 14px; }
  .logo { font-size: 22px; margin-right: 8px; }
  .mark-logo { --s: 28px; }
  .header-catalog { display: inline-flex; grid-area: catalog; }
  .search input { height: 46px; }

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

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .pcard-media { padding: 16px; }
  .pcard-code { font-size: 48px; }
  .media-service .pcard-code, .media-card .pcard-code { font-size: 30px; }
  .pcard-country { font-size: 15px; }
  .mark-card { --s: 64px; }
  .pcard-body { padding: 12px 16px 16px; gap: 6px; }
  .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 { aspect-ratio: 16 / 9; padding: 32px; }
  .mark-gallery { --s: 170px; right: 48px; top: 48px; }

  .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); }
}

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