:root {
  --bg: #0f0b0a; --bg2: #17110f; --card: #1f1714; --line: #3a2a22;
  --text: #eadfce; --muted: #a8998a; --gold: #e0a64a; --gold2: #f3d9a0;
  --red: #a3261a; --red2: #c9371f; --ok: #4caf6a; --bad: #e0573f;
  --radius: 10px;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Tahoma, Arial, "Noto Sans", "Noto Sans Hebrew", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); overflow-x: hidden; }
body.noscroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .6em; color: var(--gold2); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: .02em; }
h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: .4em; background: linear-gradient(90deg, var(--red2), var(--gold)); border-radius: 2px; }
h3 { font-size: 1.35rem; margin-top: 2em; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(15, 11, 10, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--gold2); font: 700 1.2rem var(--serif); letter-spacing: .14em; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: .95rem; }
.nav a:hover, .nav a:focus-visible { background: var(--card); color: var(--gold2); }
.nav .nav-cta { border: 1px solid var(--gold); color: var(--gold2); }
.lang select { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: .9rem; }

/* hero */
.hero { position: relative; padding: clamp(56px, 12vw, 130px) 0 clamp(48px, 9vw, 100px);
  background: linear-gradient(180deg, rgba(15,11,10,.55) 0%, rgba(15,11,10,.75) 60%, var(--bg) 100%), url("img/dragon.webp") center 30% / cover no-repeat; }
.hero-in > * { max-width: 800px; }
.kicker { text-transform: uppercase; letter-spacing: .25em; color: var(--gold); font-size: .85rem; margin-bottom: .6em; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); text-shadow: 0 2px 18px #000; }
.lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 680px; text-shadow: 0 1px 8px #000; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 .6em; }
.btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none; font: 600 1.05rem var(--sans); padding: 13px 26px; border-radius: 8px; text-align: center; }
.btn-main { background: linear-gradient(180deg, var(--red2), var(--red)); color: #fff4e0; box-shadow: 0 0 0 1px #e0a64a66 inset, 0 6px 22px #a3261a55; }
.btn-main:hover, .btn-main:focus-visible { filter: brightness(1.15); }
.btn-main:disabled { filter: grayscale(.8); opacity: .6; cursor: not-allowed; }
.btn-ghost { background: rgba(0,0,0,.35); color: var(--gold2); box-shadow: 0 0 0 1px var(--gold) inset; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(224,166,74,.12); }
.btn-small { padding: 8px 16px; font-size: .95rem; background: var(--red); color: #fff4e0; }
.status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 1.2em; padding: 8px 14px; background: rgba(0,0,0,.5); border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #777; display: inline-block; }
.dot.online { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.offline { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.dot.checking { background: var(--gold); }

/* sections */
.sec { padding: clamp(48px, 8vw, 88px) 0; }
.sec-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.about-img { margin: 0; }
.about-img img, .map img { border-radius: var(--radius); border: 1px solid var(--line); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card-new { border-color: var(--gold); background: linear-gradient(160deg, #2b1512, var(--card)); }
.badge { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--red2); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.maps { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.map img { margin-bottom: 14px; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }

/* gallery */
.gallery { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .25s, opacity .25s; opacity: .92; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); opacity: 1; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 48px 8px; }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-fig img { max-width: min(1600px, 100%); max-height: calc(100vh - 130px); width: auto; border-radius: 6px; }
.lb-fig figcaption { color: var(--gold2); margin-top: 10px; text-align: center; font-family: var(--serif); }
.lb-btn { position: absolute; background: rgba(31,23,20,.85); color: var(--gold2); border: 1px solid var(--line); border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-btn:hover, .lb-btn:focus-visible { border-color: var(--gold); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* form */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 30px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input { width: 100%; padding: 11px 12px; font: inherit; color: var(--text); background: #120d0b; border: 1px solid var(--line); border-radius: 6px; }
.field input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.hint { display: block; color: var(--muted); font-size: .85rem; }
.err { display: block; color: var(--bad); font-size: .88rem; min-height: 0; }
.form .btn { width: 100%; }
.result { margin: 14px 0 10px; padding: 0; }
.result.ok, .result.fail { padding: 12px 14px; border-radius: 6px; }
.result.ok { background: #16301e; border: 1px solid var(--ok); color: #cdeed6; }
.result.fail { background: #3a1611; border: 1px solid var(--bad); color: #f6d0c8; }

/* install */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; padding-inline-start: 66px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font: 700 1.05rem var(--serif); box-shadow: 0 0 0 2px var(--gold) inset; }
.steps p { margin: 0 0 .5em; color: var(--muted); }
.steps li.warn { border-color: var(--gold); }
.smartscreen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; padding: 12px 14px; background: #0b4a8b; color: #fff; border-radius: 4px; font: .92rem "Segoe UI", Arial, sans-serif; direction: ltr; }
.ss-title { font-weight: 600; flex: 1 1 100%; }
.ss-link { text-decoration: underline; }
.ss-btn { border: 1px solid #fff; padding: 3px 12px; }
.reqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; }
.reqs div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.reqs dt { color: var(--gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.reqs dd { margin: 4px 0 0; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--gold2); }
details p { padding: 0 16px 14px; margin: 0; color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; text-align: center; }

/* responsive */
@media (max-width: 860px) {
  .two { grid-template-columns: 1fr; }
  .topbar-in { flex-wrap: wrap; gap: 6px 12px; padding: 6px 0; }
  .nav { order: 3; width: 100%; margin: 0; flex-wrap: nowrap; overflow-x: auto; }
  .nav a { white-space: nowrap; font-size: .9rem; }
  .lang { margin-inline-start: auto; }
}
@media (max-width: 480px) {
  .cta .btn { flex: 1 1 100%; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 6px; }
  .steps li { padding-inline-start: 58px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
