:root {
  --bg: #0b1018;
  --surface: #121a26;
  --surface-2: #182333;
  --line: #29384c;
  --text: #f1f6ff;
  --muted: #9cabc0;
  --accent: #3d96ff;
  --accent-strong: #2178dc;
  --success: #67d8a4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 30%);
  background: color-mix(in srgb, var(--bg), transparent 7%);
  backdrop-filter: blur(16px);
}
.nav { max-width: 1240px; height: 72px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: flex; align-items: center;
  color: var(--accent); font-size: 24px; font-weight: 800;
  line-height: 1; letter-spacing: .12em;
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta, .primary-btn {
  border: 0; border-radius: 10px; color: white; cursor: pointer;
  background: var(--accent); padding: 11px 16px; font-weight: 700;
}
.nav-cta:hover, .primary-btn:hover { background: var(--accent-strong); }

main { max-width: 1240px; margin: auto; padding: 0 24px 72px; }
.hero { min-height: 500px; padding: 94px 0 48px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; color: var(--success); border: 1px solid color-mix(in srgb, var(--success), transparent 65%); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
h1 { margin: 18px 0; font-size: clamp(40px, 6vw, 76px); letter-spacing: -.055em; line-height: .98; max-width: 720px; }
.hero p { max-width: 610px; color: var(--muted); line-height: 1.65; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ghost-btn { background: transparent; border: 1px solid var(--line); color: var(--text); padding: 11px 16px; border-radius: 10px; cursor: pointer; }
.hero-visual { min-height: 390px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; position: relative; background: radial-gradient(circle at 28% 22%, #1d5797, transparent 29%), linear-gradient(145deg, #17283c, #0e1520 62%); }
.signal { position: absolute; inset: 25% 19%; border: 1px solid color-mix(in srgb, var(--accent), transparent 40%); border-radius: 50%; }
.signal:nth-child(2) { inset: 33% 27%; }
.signal:nth-child(3) { inset: 41% 35%; background: var(--accent); box-shadow: 0 0 40px color-mix(in srgb, var(--accent), transparent 45%); }
.hero-device { position: absolute; right: 13%; bottom: 11%; width: 58%; height: 36%; border-radius: 22px; background: linear-gradient(145deg, #304257, #111923); border: 1px solid #55708c; transform: rotate(-8deg); }
.hero-device::before, .hero-device::after { content: ""; position: absolute; width: 3px; height: 132px; bottom: 85%; background: #899bb0; border-radius: 99px; }
.hero-device::before { left: 19%; transform: rotate(-20deg); }
.hero-device::after { right: 19%; transform: rotate(20deg); }

.section { padding: 38px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
h2 { margin: 0; font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -.04em; }
.section-head p { color: var(--muted); margin: 0; max-width: 520px; line-height: 1.5; }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.offer-card { display: flex; flex-direction: column; min-height: 370px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: transform .2s, border-color .2s; }
.offer-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.offer-image { min-height: 164px; border-radius: 12px; background: linear-gradient(135deg, #283e56, #101924); background-size: cover; background-position: center; display: grid; place-items: center; overflow: hidden; }
.offer-image img { width: 100%; height: 100%; object-fit: contain; }
.offer-image span { color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 0 4px; }
.tag { font-size: 11px; padding: 5px 8px; color: #b8d7ff; border-radius: 99px; background: #173353; }
.offer-card h3 { font-size: 20px; margin: 9px 0; }
.offer-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.highlights { color: var(--muted); padding-left: 18px; margin: 0 0 18px; font-size: 13px; line-height: 1.7; }
.card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: auto; }
.price-label { display: block; font-size: 11px; color: var(--muted); }
.price { display: block; font-size: 19px; font-weight: 750; margin-top: 3px; }
.card-link { color: #a8d1ff; font-weight: 700; font-size: 14px; }

.detail { padding-top: 34px; }
.back-link { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.back-link:hover { color: var(--text); }
.detail-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 42px; }
.gallery { min-width: 0; }
.gallery-main { height: 410px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 2px; }
.gallery-thumb { flex: 0 0 82px; height: 62px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; opacity: .65; }
.gallery-thumb:hover, .gallery-thumb.is-active { border-color: var(--accent); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-placeholder { height: 410px; display: grid; place-items: center; color: var(--muted); background: linear-gradient(135deg, #20354d, #111923); }
.detail-copy h1 { font-size: clamp(38px, 5vw, 58px); margin: 12px 0; }
.detail-copy p { color: var(--muted); line-height: 1.65; }
.specifications { margin-top: 28px; }
.specifications h2 { font-size: 25px; }
.specifications .info-grid { margin-top: 12px; }
.product-description { max-width: 820px; }
.rich-description { margin-top: 16px; color: var(--muted); line-height: 1.7; }
.rich-description > :first-child { margin-top: 0; }
.rich-description > :last-child { margin-bottom: 0; }
.rich-description h2, .rich-description h3 { margin: 28px 0 12px; color: var(--text); }
.rich-description h2 { font-size: 28px; }
.rich-description h3 { font-size: 21px; }
.rich-description p, .rich-description ul, .rich-description ol, .rich-description blockquote { margin: 0 0 16px; }
.rich-description ul, .rich-description ol { padding-left: 24px; }
.rich-description a { color: #a8d1ff; text-decoration: underline; }
.rich-description img { display: block; max-width: 100%; height: auto; margin: 20px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.article-cover { display: block; width: 100%; height: auto; margin: 8px 0 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.article-card img { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.rich-description blockquote { border-left: 3px solid var(--accent); padding-left: 16px; color: #c3d4e9; }
.price-box { position: sticky; top: 94px; margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--surface); }
.price-box .price { font-size: 30px; margin-bottom: 14px; }
.config-note { padding: 12px; border-radius: 10px; color: var(--muted); background: var(--surface-2); font-size: 13px; line-height: 1.5; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px; }
.info-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.info-card strong { display: block; margin-bottom: 5px; }
.info-card span { color: var(--muted); font-size: 13px; }
.empty { padding: 54px 24px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
.footer { max-width: 1240px; margin: auto; padding: 28px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.order-panel { scroll-margin-top: 90px; }
.order-grid { display: grid; grid-template-columns: 1fr .45fr; gap: 22px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.order-grid h2, .order-form h2 { margin: 12px 0 20px; font-size: 28px; }
.order-fields, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; background: var(--bg); color: var(--text); outline: none; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field input.is-invalid, .field input.is-invalid:focus { border-color: #e35d6a; }
.field small { color: var(--muted); font-size: 11px; }
.field-error { color: #e35d6a; }
.field-wide { grid-column: 1 / -1; }
.order-total { align-self: start; display: grid; gap: 8px; padding: 18px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.5; }
.order-total strong { font-size: 30px; color: var(--text); }
.order-form { margin-top: 16px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.order-form .primary-btn { margin-top: 18px; }
.muted, .form-result { color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-result { display: inline-block; margin-left: 12px; }
.success { padding: 18px; border: 1px solid color-mix(in srgb, var(--success), transparent 55%); border-radius: 12px; color: var(--success); background: color-mix(in srgb, var(--success), transparent 92%); line-height: 1.6; }
.lead { max-width: 720px; color: var(--muted); line-height: 1.65; font-size: 18px; }
.articles { display: grid; gap: 16px; margin-top: 28px; }
.article-card { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.article-card:hover { border-color: var(--accent); }
.article-card h2 { margin: 0; font-size: 24px; }
.article-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.article-page { max-width: 820px; }
.article-page h1 { font-size: clamp(34px, 5vw, 52px); }
.page-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.page-tab {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.page-tab:hover { color: var(--text); border-color: var(--accent); }
.page-tab.is-active { color: white; background: var(--accent); border-color: var(--accent); }

@media (max-width: 850px) {
  .nav { height: auto; min-height: 64px; padding: 10px 18px; flex-wrap: wrap; } .nav-links { gap: 14px; font-size: 13px; }
  .brand { font-size: 20px; }
  main { padding: 0 18px 48px; } .hero { grid-template-columns: 1fr; padding: 52px 0 24px; gap: 25px; } .hero-visual { min-height: 260px; }
  .offers { grid-template-columns: 1fr; } .detail-grid { grid-template-columns: 1fr; gap: 22px; } .gallery-main, .gallery-placeholder { min-height: 280px; height: 280px; }
  .section-head { align-items: start; flex-direction: column; } .info-grid, .order-grid, .order-fields, .form-grid { grid-template-columns: 1fr; }
}
