:root {
  --night: #040816;
  --night-2: #071126;
  --panel: #0c1730;
  --panel-2: #101e3d;
  --blue: #1688f4;
  --blue-2: #6bc5ff;
  --gold: #ffbd3d;
  --gold-2: #ffe39a;
  --white: #f7fbff;
  --muted: #9db0cd;
  --line: rgba(116, 193, 255, .18);
  --danger: #ff6e77;
  --ok: #54e2a4;
  --radius: 22px;
  --max: 1200px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 88% 4%, rgba(22,136,244,.2), transparent 28rem),
    radial-gradient(circle at 6% 42%, rgba(255,189,61,.08), transparent 24rem),
    var(--night);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(107,197,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,197,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 72%);
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; }
.container { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }

.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 1000; padding: .75rem 1rem; border-radius: 10px; background: var(--gold); color: #15100a; font-weight: 900; }
.skip-link:focus { top: 1rem; }

.top-note {
  padding: .45rem 1rem;
  color: #b9c9de;
  font-size: .76rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: #030610;
}
.top-note strong { color: var(--gold-2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(4,8,22,.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.35rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 185px; max-height: 58px; object-fit: contain; }
.main-nav { justify-self: center; }
.main-nav ul { display: flex; gap: .15rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .65rem .72rem; border-radius: 10px; color: #c5d2e6; text-decoration: none; font-size: .84rem; font-weight: 800; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: rgba(22,136,244,.15); }
.header-tools { display: flex; gap: .55rem; align-items: center; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.04); color: #fff; cursor: pointer; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.05rem;
  border: 1px solid #ffd473;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: #1b1305;
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 10px 32px rgba(255,189,61,.18);
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); filter: saturate(1.15); box-shadow: 0 14px 34px rgba(255,189,61,.28); }
.button.blue { background: linear-gradient(145deg, var(--blue-2), var(--blue)); color: #021126; border-color: #8ad7ff; box-shadow: 0 10px 32px rgba(22,136,244,.18); }
.button.ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.18); box-shadow: none; }

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  display: grid;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; z-index: -2; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #040816 2%, rgba(4,8,22,.98) 30%, rgba(4,8,22,.7) 56%, rgba(4,8,22,.2) 80%),
    linear-gradient(0deg, #040816 0%, transparent 34%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: 2rem; align-items: center; padding-block: 5.2rem; }
.hero-copy { max-width: 720px; }
.label { display: inline-flex; align-items: center; gap: .55rem; color: var(--blue-2); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 950; }
.label::before { content: ""; width: 28px; height: 2px; background: var(--gold); box-shadow: 0 0 16px var(--gold); }
h1, h2, h3 { margin-top: 0; line-height: 1.1; letter-spacing: -.035em; }
h1 { margin-bottom: 1rem; font-size: clamp(3.2rem, 7.3vw, 6.5rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2.15rem, 4.3vw, 3.75rem); }
h3 { font-size: 1.36rem; }
.gradient-text { background: linear-gradient(92deg, #fff, var(--blue-2) 42%, var(--gold-2)); -webkit-background-clip: text; color: transparent; }
.hero-lead { max-width: 610px; color: #c8d5e7; font-size: clamp(1rem, 1.8vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; padding: 0; color: #a9bbd2; font-size: .8rem; }
.trust-row li { padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.13); border-radius: 99px; background: rgba(4,8,22,.54); }
.trust-row li::before { content: "●"; color: var(--ok); margin-right: .45rem; }

.feature-dock {
  align-self: end;
  justify-self: end;
  width: min(100%, 380px);
  margin-bottom: 1.5rem;
  padding: .9rem;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .65rem;
  border: 1px solid rgba(107,197,255,.24);
  border-radius: 23px;
  background: rgba(6,13,32,.7);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow);
}
.dock-item { padding: .8rem .6rem; text-align: center; border-radius: 15px; background: linear-gradient(145deg, rgba(22,136,244,.14), rgba(255,189,61,.06)); border: 1px solid rgba(255,255,255,.08); }
.dock-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto .55rem; border-radius: 14px; background: linear-gradient(145deg, #163d73, #08152e); color: var(--gold-2); font-size: 1.2rem; font-weight: 950; box-shadow: inset 0 0 20px rgba(107,197,255,.15); }
.dock-item span:last-child { display: block; color: #dce7f6; font-size: .72rem; font-weight: 900; }

.section { padding-block: clamp(4.2rem, 7vw, 7.3rem); }
.section.tight { padding-block: 3rem; }
.section-head { display: grid; grid-template-columns: minmax(0,.9fr) minmax(290px,.55fr); align-items: end; gap: 2rem; margin-bottom: 2.25rem; }
.section-head p { margin: 0; color: var(--muted); }

.glossary-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.glossary-card {
  position: relative;
  min-height: 280px;
  padding: 1.3rem;
  overflow: hidden;
  border: 1px solid rgba(107,197,255,.15);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(16,30,61,.9), rgba(6,14,34,.9));
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease;
}
.glossary-card::after { content: ""; position: absolute; width: 140px; height: 140px; right: -45px; top: -45px; border-radius: 50%; background: radial-gradient(circle, rgba(22,136,244,.22), transparent 68%); }
.glossary-card:hover { transform: translateY(-5px); border-color: rgba(255,189,61,.55); }
.card-index { display: block; margin-bottom: 2rem; color: var(--gold); font-size: .74rem; font-weight: 950; letter-spacing: .13em; }
.glossary-card p { color: var(--muted); margin-bottom: 2.1rem; }
.card-link { position: absolute; left: 1.3rem; bottom: 1.2rem; color: var(--blue-2); font-size: .83rem; font-weight: 900; }

.decoder {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(107,197,255,.25);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(22,136,244,.1), rgba(255,189,61,.05));
  box-shadow: var(--shadow);
}
.decoder-panel { padding: 1.4rem; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: rgba(4,9,24,.76); }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { display: flex; justify-content: space-between; gap: 1rem; color: #d6e2f2; font-size: .86rem; font-weight: 850; }
.field output { color: var(--gold-2); }
.field select, .field input[type="number"] { width: 100%; padding: .8rem .9rem; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: #070e21; color: #fff; }
.field input[type="range"] { width: 100%; accent-color: var(--blue); }
.decoder-result { display: grid; align-content: center; }
.result-orb { --progress: 55; width: 185px; aspect-ratio: 1; margin: 0 auto 1.1rem; display: grid; place-items: center; position: relative; border-radius: 50%; background: conic-gradient(var(--blue) calc(var(--progress)*1%), var(--gold) 0 calc((var(--progress) + 13)*1%), rgba(255,255,255,.08) 0); }
.result-orb::before { content: ""; position: absolute; inset: 12px; border-radius: inherit; background: #071025; }
.result-orb strong { position: relative; color: var(--gold-2); font-size: 2rem; }
.result-copy { max-width: 660px; margin: 0 auto; text-align: center; color: #c2d0e4; }
.result-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
.result-tags span { padding: .4rem .65rem; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; color: var(--blue-2); font-size: .74rem; font-weight: 900; }

.video-card { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.3rem; padding: 1rem; border-radius: 25px; border: 1px solid rgba(255,255,255,.1); background: #071025; }
.video-wrap { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 16/9; background: #000; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-copy { align-self: center; padding: 1rem; }
.video-copy p { color: var(--muted); }

.news-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border: 1px solid rgba(255,189,61,.25); border-radius: 16px; background: rgba(255,189,61,.06); }
.news-badge { padding: .35rem .55rem; border-radius: 8px; color: #171008; background: var(--gold); font-weight: 950; font-size: .7rem; }
.news-strip p { margin: 0; color: #cbd7e8; }
.news-strip a { color: var(--blue-2); font-weight: 900; }

.article-hero { padding: 4.8rem 0 3.2rem; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 83% 0%, rgba(22,136,244,.17), transparent 31rem); }
.breadcrumbs { margin-bottom: 1.1rem; color: var(--muted); font-size: .83rem; }
.breadcrumbs a { color: var(--blue-2); text-decoration: none; }
.article-hero h1 { max-width: 1000px; font-size: clamp(2.8rem, 6vw, 5.25rem); }
.article-deck { max-width: 850px; color: #c5d3e6; font-size: 1.1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; color: #8fa4c0; font-size: .8rem; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 3.4rem; align-items: start; }
.article-body { font-size: 1.01rem; }
.article-body p, .article-body li { color: #becce0; }
.article-body h2 { margin-top: 3.2rem; scroll-margin-top: 110px; font-size: clamp(1.85rem,3.2vw,2.75rem); }
.article-body h3 { margin-top: 2rem; color: var(--gold-2); }
.article-body a { color: var(--blue-2); text-underline-offset: .2em; }
.article-body table { width: 100%; margin: 1.3rem 0; border-collapse: collapse; font-size: .9rem; }
.article-body th, .article-body td { padding: .8rem; border: 1px solid rgba(255,255,255,.1); text-align: left; vertical-align: top; }
.article-body th { color: var(--gold-2); background: rgba(255,189,61,.08); }
.article-body td { background: rgba(255,255,255,.025); }
.direct-answer, .callout { margin: 1.4rem 0; padding: 1.2rem 1.3rem; border-radius: 0 15px 15px 0; border-left: 4px solid var(--blue); background: rgba(22,136,244,.08); color: #e4edf9; }
.direct-answer strong, .callout strong { color: var(--gold-2); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.65rem; margin-bottom: .55rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 950; }
.toc { position: sticky; top: 108px; padding: 1.1rem; border: 1px solid rgba(107,197,255,.15); border-radius: 17px; background: rgba(8,17,39,.9); }
.toc strong { display: block; margin-bottom: .55rem; color: var(--gold-2); }
.toc ol { margin: 0; padding-left: 1.15rem; }
.toc a { display: block; padding: .25rem 0; color: #aebed4; text-decoration: none; font-size: .82rem; }
.toc a:hover { color: var(--blue-2); }

.faq-list { display: grid; gap: .7rem; }
.faq-item { border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.025); }
.faq-item button { width: 100%; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; border: 0; background: none; color: #fff; text-align: left; font-weight: 880; cursor: pointer; }
.faq-item button span:last-child { color: var(--gold); }
.faq-answer { display: none; padding: 0 1rem 1rem; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }

.related-grid, .support-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.related-card, .support-card { padding: 1.1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.025); text-decoration: none; }
.related-card span { display: block; color: var(--blue-2); font-size: .7rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.related-card strong { display: block; margin-top: .3rem; }
.support-card p { color: var(--muted); }

.map-frame { overflow: hidden; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: #071025; }
.map-frame iframe { display: block; width: 100%; min-height: 430px; border: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.contact-card { padding: 1.2rem; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.025); }

.social-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; }
.social-link { display: flex; align-items: center; gap: .65rem; padding: .95rem; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.035); text-decoration: none; font-weight: 850; }
.social-link img { width: 24px; height: 24px; filter: invert(1); }
.social-link.telegram { background: rgba(38,165,229,.12); }
.social-link.whatsapp { background: rgba(37,211,102,.11); }
.social-link.instagram { background: linear-gradient(135deg,rgba(131,58,180,.13),rgba(253,29,29,.1),rgba(252,176,69,.1)); }
.social-link.facebook { background: rgba(24,119,242,.13); }
.social-link:hover { border-color: var(--gold); }

.site-footer { padding: 3.6rem 0 7rem; border-top: 1px solid var(--line); background: #02050d; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .7fr .7fr; gap: 2rem; }
.footer-brand img { width: 210px; }
.footer-brand p { max-width: 500px; color: var(--muted); }
.footer-links { display: grid; align-content: start; gap: .45rem; }
.footer-links strong { margin-bottom: .35rem; color: var(--gold-2); }
.footer-links a { color: #adbed5; text-decoration: none; }
.footer-links a:hover { color: var(--blue-2); }
.legal-note { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.08); color: #899ab2; font-size: .76rem; }

.livechat-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 80; display: grid; grid-template-columns: 56px auto; gap: .65rem; align-items: center; padding: .48rem .85rem .48rem .48rem; border: 1px solid rgba(255,189,61,.58); border-radius: 99px; background: rgba(3,7,18,.92); color: #fff; text-decoration: none; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.livechat-float::before { content: ""; position: absolute; inset: -4px; border: 1px solid rgba(107,197,255,.25); border-radius: inherit; animation: chatPulse 2.2s infinite; }
@keyframes chatPulse { 70%,100% { transform: scale(1.06); opacity: 0; } }
.livechat-float img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); }
.livechat-float strong { display: block; font-size: .84rem; }
.livechat-float span { display: block; color: var(--ok); font-size: .7rem; }

.cookie-note { position: fixed; left: 1rem; bottom: 1rem; z-index: 81; max-width: 410px; padding: 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; background: rgba(3,7,18,.96); box-shadow: var(--shadow); color: #afbed3; font-size: .78rem; }
.cookie-note button { margin-top: .65rem; padding: .5rem .75rem; border: 0; border-radius: 9px; background: var(--gold); color: #161005; font-weight: 950; cursor: pointer; }
.cookie-note[hidden] { display: none; }
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.not-found strong { display: block; color: var(--gold); font-size: clamp(5rem,20vw,12rem); line-height: .82; }

@media (max-width: 1030px) {
  .main-nav { display: none; position: absolute; top: calc(100% + .5rem); left: 1rem; right: 1rem; padding: .7rem; border: 1px solid var(--line); border-radius: 16px; background: #050b1c; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { display: grid; }
  .menu-toggle { display: block; }
  .header-tools .button { display: none; }
  .glossary-grid { grid-template-columns: repeat(2,1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .social-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .brand img { width: 155px; }
  .hero { min-height: 760px; }
  .hero-media { object-position: 68% center; opacity: .72; }
  .hero::after { background: linear-gradient(0deg,#040816 10%,rgba(4,8,22,.91) 56%,rgba(4,8,22,.22) 100%); }
  .hero-inner { grid-template-columns: 1fr; align-items: end; padding: 15rem 0 2.7rem; }
  h1 { font-size: clamp(2.8rem,13vw,4.3rem); }
  .feature-dock { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .glossary-grid, .decoder, .video-card, .related-grid, .support-grid, .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  .news-strip { grid-template-columns: auto 1fr; }
  .news-strip a { grid-column: 1/-1; }
  .article-body table { display: block; overflow-x: auto; }
  .livechat-float { grid-template-columns: 50px auto; }
  .livechat-float img { width: 50px; height: 50px; }
  .cookie-note { right: 1rem; bottom: 6.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
