:root {
  color-scheme: light;
  --ink: #111c32;
  --muted: #53627a;
  --border: #dfe6f0;
  --blue: #174cdb;
  --blue-dark: #1037ae;
  --surface: #f5f7fc;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #4f79ff; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1280px, calc(100% - 72px)); margin-inline: auto; }
.site-header, .admin-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; min-height: 76px; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 1.24rem; font-weight: 800; white-space: nowrap; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .13em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: white; font: 700 2.1rem/1 system-ui; }
nav, .header-actions { display: flex; gap: clamp(12px, 2.5vw, 36px); align-items: center; }
nav a { color: var(--muted); padding: 25px 2px 23px; border-bottom: 3px solid transparent; white-space: nowrap; font-size: .95rem; font-weight: 650; }
nav a:hover, nav .nav-current { color: var(--blue); border-color: var(--blue); }
.header-actions { gap: 10px; }
.header-btn { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; border: 0; background: transparent; color: var(--ink); border-radius: 9px; padding: 0 10px; white-space: nowrap; font-weight: 650; }
.header-btn:hover { background: #eef2fd; }
.cart-btn { background: #edf2ff; color: #143eac; }
#cart-count { min-width: 23px; padding: 3px 5px; border-radius: 999px; background: var(--blue); color: white; text-align: center; font-size: .78rem; }
.symbol { display: inline-block; position: relative; width: 18px; height: 18px; flex: 0 0 18px; }
.user-icon::before, .user-icon::after, .bag-icon::before, .bag-icon::after, .search-icon::before, .search-icon::after { content: ""; display: block; position: absolute; border: 1.6px solid currentColor; }
.user-icon::before { width: 7px; height: 7px; border-radius: 50%; top: 0; left: 6px; }
.user-icon::after { width: 14px; height: 8px; border-radius: 8px 8px 3px 3px; bottom: 0; left: 2px; }
.bag-icon::before { inset: 5px 1px 0; border-radius: 3px; }
.bag-icon::after { width: 7px; height: 8px; border-radius: 5px; border-bottom: 0; left: 5.5px; top: 0; }
.search-icon::before { width: 13px; height: 13px; border-radius: 50%; }
.search-icon::after { height: 6px; border-width: 0 0 0 1.6px; transform: rotate(-45deg); bottom: 0; right: 3px; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(380px, 39vw, 510px);
  margin-block: 26px 22px;
  border-radius: 22px;
  color: #fff;
  background: #071734 url("/assets/hero.webp") 66% center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #09152e 1%, #09152eeb 23%, #09152e55 49%, #09152e00 74%); }
.hero-content { padding: 42px clamp(28px, 5vw, 72px); }
.hero h1 { font-size: clamp(2.6rem, 5.3vw, 4.75rem); line-height: 1.13; letter-spacing: -.055em; font-weight: 850; }
.hero p { margin: 20px 0 28px; color: #d3dfff; line-height: 1.65; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 9px 17px; border: 1px solid transparent; background: var(--blue); color: #fff; border-radius: 9px; font-weight: 700; line-height: 1.25; }
.button:hover { background: var(--blue-dark); }
.button:disabled { background: #e8edf5; color: #5c6b82; }
.button-outline { background: #fff; border-color: var(--border); color: var(--ink); }
.button-outline:hover { background: #edf2ff; color: var(--blue); }
.hero-button { min-height: 48px; padding-inline: 22px; background: #f5f8ff; color: #123799; }
.hero-button:hover { background: #dbe7ff; }
.categories { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 13px; }
.categories a { display: flex; grid-column: span 3; align-items: center; gap: 13px; min-height: 93px; min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 13px; }
.categories a:nth-child(n + 5) { grid-column: span 4; }
.categories a:hover { border-color: #8eabf9; box-shadow: 0 3px 14px #214cc813; }
.categories strong, .categories small { display: block; }
.categories strong { font-size: 1rem; line-height: 1.35; }
.categories small { color: var(--muted); margin-top: 4px; line-height: 1.35; font-size: .83rem; }
.category-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 10px; color: #214ad1; background: #eaf0ff; font: 700 1.65rem/1 system-ui; }
.switch-icon { color: #087880; background: #e5f5f3; }
.camera-icon { color: #6241b3; background: #f0ebff; }
.cable-icon { color: #936021; background: #fff0e2; }
.phone-icon, .computer-icon, .tablet-icon { position: relative; }
.phone-icon { color: #a33357; background: #fcebf1; }
.computer-icon { color: #315e9f; background: #e7f1ff; }
.tablet-icon { color: #426b31; background: #edf5e5; }
.phone-icon::before, .computer-icon::before, .tablet-icon::before { content: ""; display: block; border: 2px solid currentColor; border-radius: 3px; }
.phone-icon::before { width: 13px; height: 22px; }
.computer-icon::before { width: 23px; height: 15px; margin-bottom: 4px; }
.computer-icon::after { content: ""; position: absolute; top: calc(50% + 7px); width: 27px; height: 2px; border-radius: 2px; background: currentColor; }
.tablet-icon::before { width: 20px; height: 23px; }
.catalog { padding-block: 48px 42px; scroll-margin: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.section-head h1, .section-head h2 { font-size: clamp(1.65rem, 3.1vw, 2.3rem); letter-spacing: -.035em; }
.section-head p { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.catalog-tools { display: flex; align-items: center; gap: 8px; }
.search-field { display: flex; align-items: center; width: 230px; gap: 8px; padding-left: 12px; background: white; color: var(--muted); border: 1px solid var(--border); border-radius: 9px; }
.search-field input { padding: 10px 9px 10px 0; min-height: 42px; width: 100%; border: 0; background: transparent; color: var(--ink); font-size: .91rem; }
.search-field:focus-within { outline: solid 2px var(--blue); }
.search-field input:focus-visible { outline: none; }
select { appearance: none; border: 1px solid var(--border); border-radius: 9px; background: #fff linear-gradient(45deg, transparent 50%, #50627e 50%) calc(100% - 16px) center / 5px 5px no-repeat; color: var(--ink); min-height: 44px; padding: 9px 29px 9px 11px; }
.catalog-tools select { font-size: .91rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter { min-height: 36px; border: 1px solid var(--border); padding: 6px 13px; border-radius: 8px; font-size: .9rem; font-weight: 650; color: var(--muted); background: #fff; }
.filter:hover, .filter.selected { border-color: #a5b9f4; background: #e9efff; color: #2047b4; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: 15px; background: white; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: 0 10px 28px #162a5c12; transform: translateY(-2px); }
.photo-button { width: 100%; padding: 15px; border: 0; background: #f0f3fa; }
.photo-button img, .photo-button .image-placeholder { width: 100%; height: clamp(172px, 18vw, 230px); display: block; object-fit: contain; mix-blend-mode: multiply; }
.image-placeholder, .photo-button .image-placeholder { display: grid; place-items: center; color: var(--muted); min-height: 100px; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.product-brand { font-size: .78rem; font-weight: 750; letter-spacing: .035em; color: #4b5882; }
.product h3 { margin-top: 5px; font-size: 1.08rem; }
.product-model { color: var(--muted); overflow-wrap: anywhere; margin: 6px 0 10px; font-size: .89rem; }
.specs { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 0; }
.specs li { padding: 4px 7px; border-radius: 5px; color: #394a65; background: #eff2f8; font-size: .78rem; line-height: 1.3; }
.product-foot { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; }
.product-foot > .row { min-height: 27px; }
.product-foot .text-link { font-size: .88rem; }
.product-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.product-foot .button { min-height: 38px; padding: 6px 10px; font-size: .88rem; white-space: nowrap; }
.amount { display: block; color: var(--blue); font-weight: 850; font-size: 1.32rem; font-variant-numeric: tabular-nums; }
.state-label { display: block; color: #53627a; font-size: .89rem; font-weight: 750; }
.site-footer { border-top: 1px solid var(--border); background: white; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; min-height: 78px; padding-block: 16px; font-size: .9rem; line-height: 1.55; }
.footer-inner p { margin-top: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 15px; }
.footer-inner a:hover, .text-link:hover { text-decoration: underline; }
.site-filing { padding: 0 14px 13px; text-align: center; font-size: .88rem; }
.site-filing a:hover { text-decoration: underline; }
.text-link { color: var(--blue); }
dialog { width: min(600px, calc(100% - 24px)); max-height: calc(100% - 24px); border: 1px solid var(--border); border-radius: 16px; padding: 0; color: var(--ink); box-shadow: 0 16px 66px #121b4c34; }
dialog::backdrop { background: #07152b9e; }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: #fff; }
.dialog-head h2 { font-size: 1.22rem; }
.close-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: #eef2f9; color: var(--ink); font-size: 1.4rem; }
#panel-content, #edit-content { padding: 20px; }
.form { display: grid; gap: 13px; }
.form label { display: grid; gap: 6px; font-size: .93rem; font-weight: 650; }
.form input:not([type="checkbox"]), .form textarea { width: 100%; min-height: 42px; border: 1px solid #cdd6e5; border-radius: 8px; padding: 9px 10px; color: var(--ink); background: #fff; }
.form textarea { resize: vertical; }
.sms-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.form-error { color: #a52434; font-weight: 650; line-height: 1.5; }
.form-note, .muted { color: var(--muted); line-height: 1.6; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); line-height: 1.6; }
.product-grid > .empty { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.detail-photo { display: block; width: 100%; max-height: 250px; padding: 10px; margin-bottom: 15px; object-fit: contain; background: #f0f3fa; border-radius: 10px; mix-blend-mode: multiply; }
.detail-meta { color: var(--muted); margin: 7px 0 14px; line-height: 1.6; }
.detail-price { display: flex; flex-direction: column; align-items: start; gap: 10px; margin-top: 16px; }
.consent-options { display: grid; gap: 9px; }
.form label.consent-option { display: flex; gap: 8px; align-items: start; line-height: 1.45; }
.consent-option input { margin: 3px 0 0; width: 17px; height: 17px; flex: 0 0 17px; }
.information { width: min(860px, calc(100% - 28px)); margin: 28px auto 42px; }
.info-card { padding: clamp(18px, 4vw, 36px); border: 1px solid var(--border); border-radius: 15px; background: white; }
.info-card > * + * { margin-top: 18px; }
.info-card h1 { font-size: clamp(1.5rem, 4vw, 2.15rem); }
.info-card h2 { font-size: 1.15rem; }
.info-card p, .info-card dd, .info-card li { line-height: 1.75; overflow-wrap: anywhere; }
.info-card section > * + * { margin-top: 9px; }
.info-card dl { display: grid; gap: 12px 20px; grid-template-columns: max-content minmax(0, 1fr); }
.info-card dt { font-weight: 700; }
.info-card dd { margin: 0; }
.law-nav { gap: 8px; flex-wrap: wrap; }
.law-nav a { display: inline-flex; min-height: 36px; align-items: center; padding: 6px 12px; border: 1px solid var(--border); }
.law-section { scroll-margin-top: 20px; }
.law-list { list-style: none; margin: 0; padding: 0; }
.law-list li { padding: 12px 0; border-top: 1px solid var(--border); }
.law-title { font-weight: 700; }
.support-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.support-list { margin-top: 14px; }
.support-list h3 { margin-bottom: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; justify-content: space-between; }
.cart-line, .order-card { border: 1px solid var(--border); border-radius: 9px; padding: 12px; margin-bottom: 10px; }
.cart-line .muted, .order-card .muted { font-size: .87rem; }
.cart-line button { min-width: 34px; min-height: 34px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--ink); }
.cart-summary { padding-block: 13px; }
.checkout { margin-top: 12px; }
.toast { position: fixed; z-index: 20; inset: auto 16px 20px auto; max-width: min(440px, calc(100% - 32px)); color: white; background: #15294d; padding: 12px 16px; border-radius: 9px; box-shadow: 0 8px 30px #0b173744; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 42px); }
  .categories a { gap: 9px; padding: 11px; }
  .categories small { font-size: .77rem; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 28px); }
  .site-header .header-inner { flex-wrap: wrap; gap: 0; min-height: 62px; padding-top: 9px; }
  .site-header nav { order: 3; width: 100%; gap: clamp(9px, 3vw, 19px); }
  nav a { padding: 12px 0 9px; }
  .header-actions { gap: 4px; }
  .header-btn { gap: 5px; padding-inline: 6px; font-size: .87rem; }
  .brand { gap: 8px; font-size: 1.04rem; }
  .brand-mark { width: 35px; height: 35px; }
  .hero { margin-top: 15px; min-height: 345px; border-radius: 15px; background-position: 60% center; }
  .hero::before { background: linear-gradient(90deg, #09152efe 1%, #09152ed4 32%, #09152e44 84%); }
  .hero-content { padding: 24px; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .categories a { min-height: 68px; }
  .categories a, .categories a:nth-child(n + 5) { grid-column: auto; }
  .category-icon { width: 35px; height: 35px; flex-basis: 35px; font-size: 1.33rem; }
  .catalog { padding-top: 30px; }
  .section-head { flex-wrap: wrap; gap: 10px; }
  .catalog-tools { width: 100%; }
  .search-field { width: auto; flex: 1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .photo-button { padding: 9px; }
  .photo-button img, .photo-button .image-placeholder { height: clamp(107px, 32vw, 200px); }
  .product-body { padding: 10px; }
  .product h3 { font-size: 1rem; line-height: 1.35; }
  .product-foot .button { padding-inline: 4px; font-size: .8rem; }
}
@media (max-width: 375px) {
  .product-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
