:root {
  --bg: #070d1d;
  --bg-alt: #0f1932;
  --panel: rgba(12, 24, 46, 0.78);
  --panel-border: rgba(148, 190, 255, 0.22);
  --text: #edf3ff;
  --text-soft: #bdd0ef;
  --accent: #4ea1ff;
  --accent-2: #76ffd9;
  --danger: #ffd177;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--text); background: radial-gradient(circle at 10% 10%, #1a2f62 0%, var(--bg) 38%, #040914 100%); }
body::before, body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  opacity: .34;
}
body::before { background: #2f83ff; top: -100px; left: -120px; animation: driftA 14s ease-in-out infinite; }
body::after { background: #0dd8b0; bottom: -140px; right: -120px; animation: driftB 16s ease-in-out infinite; }
@keyframes driftA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, 40px); } }
@keyframes driftB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, -35px); } }

body.homepage {
  background:
    linear-gradient(rgba(4, 10, 22, .68), rgba(4, 10, 22, .72)),
    url("/assets/img/background.webp") center top / cover fixed no-repeat;
}
body.homepage::before,
body.homepage::after {
  opacity: .22;
}

a { color: #8fc5ff; text-decoration: none; }
a:hover { text-decoration: none; color: #cde5ff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 12, 26, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(137, 179, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}
.notice-bar {
  background: linear-gradient(90deg, rgba(40, 94, 176, .35), rgba(25, 135, 109, .35));
  color: #def1ff;
  font-size: .82rem;
  padding: .5rem 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(147, 189, 255, .2);
}
.main-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1rem; }
.logo {
  font-weight: 800;
  letter-spacing: .3px;
  color: #ffffff;
  text-shadow: 0 0 28px rgba(78, 161, 255, 0.35);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(142, 190, 255, .42);
  background: rgba(68, 131, 224, .2);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 4px;
  background: #e7f3ff;
  transition: transform .25s ease, opacity .25s ease;
}
.main-nav.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.main-nav.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.main-nav.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links { display: flex; gap: .55rem; flex-wrap: wrap; }
.nav-links a {
  padding: .48rem .8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-soft);
  transition: .25s ease;
}
.nav-links a:hover {
  border-color: rgba(142, 190, 255, .35);
  background: rgba(59, 118, 206, .18);
  transform: translateY(-1px);
}
.nav-links a[aria-current="page"] {
  color: #fff;
  border-color: rgba(142, 190, 255, .45);
  background: rgba(68, 131, 224, .24);
}
.nav-cta {
  margin-left: .25rem;
  padding: .52rem .92rem;
  border-radius: 999px;
}

.container { max-width: 1140px; margin: 0 auto; padding: 1.2rem 1rem 2rem; }
section {
  position: relative;
  background: linear-gradient(165deg, rgba(17, 31, 58, .95), var(--panel));
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}
main.container > section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
main.container > section.in-view {
  opacity: 1;
  transform: translateY(0);
}
h1, h2, h3 { color: #f4f8ff; line-height: 1.22; margin-top: 0; }
h1 { font-size: clamp(1.65rem, 3.2vw, 2.45rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
p, li { line-height: 1.72; color: var(--text-soft); }

.hero {
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 89, 187, .35), rgba(15, 33, 70, .88) 38%, rgba(11, 92, 126, .33) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118,255,217,.25), rgba(118,255,217,0) 68%);
}
.hero-image-wrap {
  margin: 1.05rem 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(137, 185, 255, .3);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .32);
}
.hero-image {
  display: block;
  width: 100%;
  height: auto;
}
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .95rem; }
.btn {
  position: relative;
  display: inline-block;
  padding: .76rem 1.18rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(115deg, #3f8fff, #4b68ff);
  color: #fff;
  box-shadow: 0 14px 28px rgba(66, 116, 255, .35);
}
.btn-primary:hover { box-shadow: 0 20px 36px rgba(66, 116, 255, .42); }
.btn-secondary {
  background: rgba(255, 255, 255, .06);
  color: #d7ebff;
  border-color: rgba(124, 184, 255, .46);
}
.btn-secondary:hover { background: rgba(89, 140, 230, .2); }

.cards { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  border: 1px solid rgba(138, 188, 255, .26);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(14,29,55,.74), rgba(9,20,40,.84));
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(145, 206, 255, .5);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .35);
}
.promoted-card {
  background:
    linear-gradient(145deg, rgba(23, 49, 92, .92), rgba(10, 35, 76, .92)),
    radial-gradient(circle at 90% 10%, rgba(118, 255, 217, .18), transparent 42%);
  border-color: rgba(127, 214, 255, .62);
  box-shadow: 0 20px 40px rgba(6, 20, 44, .55), 0 0 0 1px rgba(118, 255, 217, .22) inset;
}
.promoted-card:hover {
  border-color: rgba(136, 232, 255, .86);
  box-shadow: 0 24px 44px rgba(6, 20, 44, .62), 0 0 0 1px rgba(118, 255, 217, .3) inset;
}
.promoted-card h3 {
  color: #ffffff;
  margin: 0 0 .35rem;
  font-size: 1.35rem;
  letter-spacing: .2px;
}
.promoted-card p {
  margin: 0 0 .72rem;
}
.promoted-card .text-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: #beddff;
  font-weight: 600;
}
.promoted-card .text-link::after {
  content: "\203A";
  font-size: 1.05rem;
  line-height: 1;
  transform: translateY(-1px);
}
.promoted-card .text-link:hover {
  color: #e9f4ff;
}
.brand-logo-wrap {
  width: fit-content;
  margin-bottom: .75rem;
  padding: .5rem .78rem;
  border-radius: 12px;
  border: 1px solid rgba(137, 185, 255, .34);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 251, 255, .95));
  box-shadow: 0 8px 16px rgba(1, 10, 26, .26);
}
.brand-logo {
  display: block;
  max-width: 138px;
  width: 100%;
  height: auto;
}
.brand-card-btn {
  margin: 0 0 .85rem;
  padding: .6rem 1rem;
  border-radius: 10px;
  border-color: rgba(126, 196, 255, .72);
  background: linear-gradient(125deg, rgba(125, 196, 255, .2), rgba(118, 255, 217, .16));
  color: #eff7ff;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(8, 26, 54, .3);
}
.brand-card-btn:hover {
  border-color: rgba(159, 225, 255, .92);
  background: linear-gradient(125deg, rgba(125, 196, 255, .28), rgba(118, 255, 217, .24));
  box-shadow: 0 14px 26px rgba(8, 26, 54, .4);
}
.rating { font-weight: 700; color: var(--accent-2); text-shadow: 0 0 10px rgba(118, 255, 217, .25); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(137, 185, 255, .22);
  border-radius: 14px;
}
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { border-bottom: 1px solid rgba(137, 185, 255, .16); padding: .78rem; text-align: left; }
th { background: rgba(56, 106, 192, .3); color: #eaf2ff; }
tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, .02); }
tbody tr:hover td { background: rgba(96, 156, 255, .12); }

.faq-item {
  border: 1px solid rgba(137, 185, 255, .2);
  border-radius: 12px;
  padding: .85rem 1rem;
  margin-top: .8rem;
  background: rgba(16, 32, 60, .56);
}
.faq-item h3 { margin-bottom: .35rem; }
.contact-form { display: grid; gap: .8rem; max-width: 650px; }
.contact-form label { display: grid; gap: .3rem; font-weight: 700; color: #dcecff; }
input, textarea {
  padding: .75rem;
  border: 1px solid rgba(137, 185, 255, .32);
  border-radius: 10px;
  background: rgba(5, 17, 35, .6);
  color: #f3f8ff;
  font: inherit;
}
input:focus, textarea:focus {
  outline: none;
  border-color: rgba(118, 255, 217, .7);
  box-shadow: 0 0 0 3px rgba(118, 255, 217, .14);
}
.status {
  padding: .8rem;
  background: rgba(15, 101, 71, .35);
  border: 1px solid rgba(118, 255, 217, .45);
  border-radius: 8px;
  color: #cff9ec;
}

.brand-box {
  margin-top: 1rem;
  background: linear-gradient(130deg, rgba(26, 50, 88, .76), rgba(13, 35, 66, .9));
  border: 1px solid rgba(124, 186, 255, .34);
  border-radius: 12px;
  padding: 1rem;
}
.error-page {
  text-align: center;
  padding: 2rem 1.2rem;
}
.error-code {
  margin: 0 0 .5rem;
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: 1px;
  color: #88bfff;
  text-shadow: 0 0 20px rgba(78, 161, 255, .35);
}
.site-footer {
  padding: 1.2rem;
  text-align: center;
  font-size: .93rem;
  background: linear-gradient(180deg, #091121, #060b16);
  color: #d4e6ff;
  border-top: 1px solid rgba(137, 185, 255, .2);
}
.site-footer a { color: #87c2ff; }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(9, 19, 36, .95);
  border: 1px solid rgba(137, 185, 255, .34);
  border-radius: 12px;
  padding: .9rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  z-index: 100;
}
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-actions button {
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(137, 185, 255, .5);
  padding: .45rem .75rem;
  background: rgba(95, 154, 255, .1);
  color: #e3f1ff;
  transition: .2s ease;
}
.cookie-actions button:hover { background: rgba(95, 154, 255, .24); }

@media (max-width: 1024px) {
  .container { padding: 1rem .85rem 1.8rem; }
  section { padding: 1.05rem; }
}

@media (max-width: 768px) {
  .main-nav { align-items: center; flex-wrap: wrap; }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: .45rem;
    margin-top: .65rem;
    padding: .6rem;
    border-radius: 12px;
    background: rgba(10, 20, 39, .92);
    border: 1px solid rgba(137, 185, 255, .24);
  }
  .main-nav.menu-open .nav-links { display: flex; }
  .nav-links a {
    width: 100%;
    border-radius: 10px;
    padding: .58rem .72rem;
  }
  .nav-cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
    padding: .65rem .8rem;
  }
  .container { padding: .75rem; }
  section { padding: 1rem; border-radius: 14px; }
  .notice-bar { font-size: .76rem; gap: .65rem; }
  table { min-width: 560px; }
  .cta-row .btn { width: 100%; text-align: center; }
  body.homepage {
    background-attachment: scroll;
    background-position: center center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  main.container > section { opacity: 1; transform: none; }
}
