@font-face {
  font-family: "Cairo";
  src: url("/fonts/Cairo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("/fonts/Cairo-Regular.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("/fonts/Cairo-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("/fonts/Cairo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("/fonts/Cairo-Bold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #070707;
  --surface: #101010;
  --surface-light: #171717;
  --gold: #D4A64A;
  --gold-light: #F0D27A;
  --text: #F5F5F5;
  --muted: #A8A8A8;
  --border: rgba(212, 166, 74, 0.22);
  --header-h: 72px;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font: "Cairo", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
}

button, input, textarea, select {
  font-family: inherit;
}

body {
  background:
    radial-gradient(900px 480px at 8% 0%, rgba(212,166,74,0.12), transparent 55%),
    radial-gradient(720px 420px at 100% 20%, rgba(212,166,74,0.06), transparent 50%),
    linear-gradient(180deg, #0b0b0b 0%, #070707 38%, #070707 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

bdi {
  unicode-bidi: isolate;
  direction: ltr;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -40px;
  z-index: 20;
  background: var(--gold);
  color: #111;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #111; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 7, 0.88);
  border-bottom: 1px solid var(--border);
}

.site-header-inner,
.site-main,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand, .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--text); }
.brand-mark img { width: 42px; height: 26px; object-fit: contain; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span:not(.sr-only),
.nav-toggle span:not(.sr-only)::before,
.nav-toggle span:not(.sr-only)::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
  position: relative;
  content: "";
}
.nav-toggle span:not(.sr-only)::before { top: -6px; }
.nav-toggle span:not(.sr-only)::after { top: 4px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 999px;
}
.site-nav-links a[aria-current="page"],
.site-nav-links a:hover {
  color: var(--gold-light);
  background: rgba(212, 166, 74, 0.08);
}
.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn, .lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}
.btn-gold {
  background: var(--gold);
  color: #16120a;
  border-color: transparent;
}
.btn-gold:hover { background: var(--gold-light); color: #16120a; }
.btn-ghost { color: var(--gold-light); }
.lang-switch.is-on { color: var(--gold-light); border-color: var(--gold); }

.site-main {
  padding: 28px 0 80px;
}
.site-main:focus { outline: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 40px;
  align-items: center;
  padding: 18px 0 48px;
}
.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
}
.hero h1, .page-head h1, .section h2, .cta-band h2 {
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); }
.lead, .hero-note, .section p {
  color: var(--muted);
  line-height: 1.75;
}
.hero-actions, .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 16px;
}
.os-bar {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.hero-stage {
  position: relative;
  min-height: 320px;
}
.device {
  position: absolute;
  background: #0a0a0a;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.device.tv {
  inset-inline-start: 8%;
  top: 8%;
  width: 78%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}
.device.laptop {
  inset-inline-end: 0;
  bottom: 18%;
  width: 46%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}
.device.phone {
  inset-inline-start: 0;
  bottom: 0;
  width: 28%;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
}

.section { padding: 28px 0; }
.section-head { max-width: 720px; margin-bottom: 22px; }
.grid-3, .grid-4, .os-grid, .topic-grid {
  display: grid;
  gap: 14px;
}
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3, .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.os-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.card h3, .card h2 { margin: 0 0 8px; font-size: 18px; }
.card p, .card .meta { margin: 0; color: var(--muted); line-height: 1.65; }
.icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  color: var(--gold);
}
.badge {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
}
.badge.soon { color: var(--muted); }

.os-card .btn { width: 100%; margin-top: 16px; }
.os-card.is-soon {
  opacity: 0.72;
  pointer-events: none;
}
.os-card.is-soon .btn { display: none; }

.steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}
.note {
  border: 1px solid var(--border);
  background: rgba(212,166,74,0.06);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  line-height: 1.7;
}
.note.warn { border-color: rgba(229, 72, 77, 0.35); background: rgba(229, 72, 77, 0.08); }

.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 16px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 16px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.cta-band {
  margin-top: 24px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(212,166,74,0.10), rgba(16,16,16,0.4));
}

.page-head { padding: 8px 0 20px; max-width: 760px; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 8px;
  color: rgba(212,166,74,0.45);
}

.search-box {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-light);
  color: var(--text);
  padding: 0 14px;
  font-size: 16px;
  margin: 8px 0 22px;
}

.form {
  display: grid;
  gap: 12px;
}
.form label { font-size: 13px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-light);
  color: var(--text);
  padding: 12px;
  font: inherit;
}
.form textarea { min-height: 140px; resize: vertical; }
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
}
.check input { width: auto; margin-top: 4px; }
.form-status { min-height: 1.4em; color: var(--gold-light); }
.form-status.is-error { color: #e8a0a0; }

.site-footer {
  padding: 36px 0 28px;
  border-top: 1px solid var(--border);
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr;
  gap: 24px;
}
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--gold-light);
}
.site-footer p, .site-footer li { color: var(--muted); line-height: 1.7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.notice { font-size: 13px; }

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 28px 40px;
}
.legal-card h1 { font-size: clamp(28px, 4vw, 40px); }
.legal-dates, .legal-toc { color: var(--muted); }

@media (max-width: 980px) {
  .hero, .site-footer-grid, .grid-4, .grid-3, .topic-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero { grid-template-columns: 1fr; }
  .hero-stage { min-height: 280px; order: 2; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 16px;
    top: calc(var(--header-h) + 8px);
    background: #101010;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav-links, .site-nav-actions { flex-direction: column; align-items: stretch; }
  .site-nav-links a, .site-nav-actions .btn, .lang-switch { min-height: 44px; }
  .grid-4, .grid-3, .topic-grid, .site-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1400px) {
  .site-header-inner, .site-main, .site-footer { width: min(1200px, calc(100% - 48px)); }
}

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