:root {
  --clr-bg: #0f1115; /* page background */
  --clr-surface: #151922; /* deep surface */
  --clr-surface-2: #1a1f2b; /* card surface */
  --clr-elev: rgba(0, 0, 0, 0.35); /* shadow */

  --gold: #e2b857; /* primary */
  --cyan: #00d1d1; /* secondary accent */
  --txt: #f8f8f8; /* main text */
  --muted: #a4acb9; /* secondary text */
  --success: #3ad29f;
  --danger: #ff6b6b;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-1: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, 0.45);
  --glow-gold: 0 0 0 2px rgba(226, 184, 87, 0.12),
    0 10px 30px rgba(226, 184, 87, 0.25);
  --glow-cyan: 0 0 0 2px rgba(0, 209, 209, 0.12),
    0 10px 30px rgba(0, 209, 209, 0.22);

  --container: 1200px;

  --fs-xxs: 12px;
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-4xl: 48px;

  --timing: cubic-bezier(0.22, 1, 0.36, 1);
  --speed-fast: 160ms;
  --speed: 260ms;
  --speed-slow: 420ms;
}

/* Base */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body.page {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(180deg, #0e1016 0%, #0f1115 100%);
  color: var(--txt);
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* =============================
       Header
       ============================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(
      120% 120% at 20% 20%,
      rgba(226, 184, 87, 0.5),
      rgba(0, 209, 209, 0.3) 40%,
      rgba(255, 255, 255, 0) 60%
    ),
    #141821;
  box-shadow: var(--glow-gold);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.brand__text {
  font-size: 18px;
}
.brand__text em {
  color: var(--gold);
  font-style: normal;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-size: var(--fs-sm);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  transition: color var(--speed) var(--timing),
    background var(--speed) var(--timing), box-shadow var(--speed) var(--timing);
}
.nav__link:hover {
  color: var(--txt);
  background: rgba(226, 184, 87, 0.08);
  box-shadow: var(--glow-gold);
}

.header__cta {
  display: none;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #161a23;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.burger__line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--txt);
  transition: transform var(--speed) var(--timing),
    opacity var(--speed) var(--timing), top var(--speed) var(--timing);
}
.burger__line:nth-child(1) {
  top: 12px;
}
.burger__line:nth-child(2) {
  top: 20px;
}
.burger__line:nth-child(3) {
  top: 28px;
}
.burger.is-open .burger__line:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}
.burger.is-open .burger__line:nth-child(2) {
  opacity: 0;
}
.burger.is-open .burger__line:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.mobile {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(15, 17, 21, 0.98);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile__menu {
  display: grid;
  gap: 12px;
  background: var(--clr-bg);
  padding: 30px 10px;
}
.mobile__link {
  padding: 14px 12px;
  border-radius: 12px;
  background: #161a23;
  color: var(--txt);
}

/* =============================
       Hero
       ============================= */
.hero {
  position: relative;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      1200px 600px at 10% 10%,
      rgba(0, 209, 209, 0.25),
      transparent 60%
    ),
    radial-gradient(
      1200px 600px at 90% 10%,
      rgba(226, 184, 87, 0.25),
      transparent 60%
    ),
    url("images/hero.webp") center/cover no-repeat;
  filter: saturate(1.05) brightness(0.9);
}
.hero__layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 17, 21, 0.65) 0%,
    rgba(15, 17, 21, 0.95) 70%
  );
  z-index: -1;
}

.hero__wrap {
  padding: 88px 20px 56px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(226, 184, 87, 0.14);
  color: var(--gold);
  box-shadow: var(--glow-gold);
}
.hero__title {
  font-size: clamp(28px, 6vw, var(--fs-4xl));
  line-height: 1.1;
  margin: 16px 0 12px;
  letter-spacing: 0.3px;
}
.hero__subtitle {
  color: var(--muted);
  font-size: var(--fs-lg);
  max-width: 820px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.btn.w-100 {
  width: 100%;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform var(--speed-fast) var(--timing),
    box-shadow var(--speed) var(--timing), background var(--speed) var(--timing);
  cursor: pointer;
}
.btn--primary {
  background: var(--gold);
  color: #101114;
  box-shadow: var(--glow-gold);
}
.btn--primary:hover {
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--txt);
  border-color: rgba(255, 255, 255, 0.14);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-1);
}

.trustbar {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.trustbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #151a20;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* =============================
       Toplist
       ============================= */
.section {
  padding: 56px 0;
}
.section__title {
  font-size: clamp(24px, 4vw, var(--fs-3xl));
  text-align: center;
  margin-bottom: 10px;
}
.section__lead {
  text-align: center;
  color: var(--muted);
  max-width: 780px;
  margin: 0 auto 28px;
}

.card {
  display: grid;
  grid-template-columns: 200px 2fr 1fr;
  padding: 14px;
  gap: 14px;
  align-items: center;
  background: var(--clr-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.card:not(:last-child) {
  margin-bottom: 20px;
}
.card__logo {
  width: 200px;
  padding: 10px;
  height: 110px;
  border-radius: var(--radius-sm);
  background: #0f131b;
}
.card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card__main {
  display: grid;
  gap: 4px;
}
.card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--gold);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  background: #0f141c;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card__cta {
  display: grid;
  justify-items: end;
  min-width: 180px;
  gap: 6px;
}
.badge {
  font-size: var(--fs-xs);
  color: #081015;
  background: linear-gradient(180deg, #ffd66f 0%, #e2b857 100%);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--glow-gold);
}
.legal {
  font-size: var(--fs-xxs);
  color: var(--muted);
  width: 100%;
  text-align: center;
}
.legal a {
  text-decoration: underline;
  color: var(--cyan);
}

/* =============================
       Comparison Table
       ============================= */
.table {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  margin-top: 20px;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.compare th,
.compare td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  font-size: var(--fs-sm);
  color: var(--txt);
}

.compare th {
  background: #0f141c;
  color: var(--muted);
  font-weight: 600;
  position: sticky;
  top: 0;
}

.compare tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.u-green {
  color: var(--success);
}
.u-red {
  color: var(--danger);
}

@media (max-width: 860px) {
  table.compare {
    font-size: 13px;
  }
  .compare th,
  .compare td {
    padding: 10px 8px;
  }
}

/* =============================
       Guides / Content blocks
       ============================= */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(12, 1fr);
}

/* Десктоп: 8/12 + 4/12 */
.grid__item--8 {
  grid-column: span 8;
}
.grid__item--4 {
  grid-column: span 4;
}

.guide {
  background: var(--clr-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-1);
}

.guide__title {
  font-size: var(--fs-2xl);
  margin: 8px 0 12px;
}

.guide__text {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.list li {
  list-style: disc;
  color: var(--muted);
}

/* Мобільні пристрої */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr; /* одна колонка */
  }
  .grid__item--8,
  .grid__item--4 {
    grid-column: span 1; /* займає всю ширину */
  }
}

/* =============================
       FAQ
       ============================= */
.faq {
  display: grid;
  gap: 10px;
}
.faq__item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: #121724;
}
.faq__q {
  width: 100%;
  text-align: left;
  padding: 16px;
  font-weight: 700;
  background: transparent;
  color: var(--txt);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--speed) var(--timing);
}
.faq__a > div {
  overflow: hidden;
}
.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}
.faq__content {
  padding: 0 16px 16px;
  color: var(--muted);
}

/* =============================
       Footer
       ============================= */
.footer {
  background: #0e121a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 40px;
}
.footer__top {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 28px 20px;
}
.footer__col h4 {
  margin: 0 0 10px;
  font-size: var(--fs-lg);
}
.footer__links {
  display: grid;
  gap: 8px;
}
.footer__links a {
  color: var(--muted);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
  color: var(--muted);
  font-size: var(--fs-xs);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

/* =============================
       Badges / Utilities
       ============================= */
.u-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111622;
  color: var(--muted);
  font-size: var(--fs-xs);
}
.u-green {
  color: var(--success);
}
.u-red {
  color: var(--danger);
}

/* =============================
       Responsive
       ============================= */
@media (max-width: 1024px) {
  .u-pill {
    padding: 6px;
  }
  .card {
    grid-template-columns: 200px 2fr 1fr;
  }
  .card__cta {
    justify-items: start;
    min-width: 0;
  }
}
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .burger {
    display: inline-block;
  }
  .header__cta {
    display: none;
  }
  .mobile {
    display: none;
  }
  .mobile.is-open {
    display: block;
  }
}
@media (max-width: 720px) {
  .actions {
    display: none;
  }
  .section {
    padding: 20px 0;
  }
  .hero__bg {
    background: radial-gradient(
        1200px 600px at 10% 10%,
        rgba(0, 209, 209, 0.25),
        transparent 60%
      ),
      radial-gradient(
        1200px 600px at 90% 10%,
        rgba(226, 184, 87, 0.25),
        transparent 60%
      ),
      url("images/hero-mob.webp") center/cover no-repeat;
  }
  .hero__wrap {
    padding: 20px;
  }
  .toplist .card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .card__logo {
    width: 100%;
    height: 72px;
  }
}
.reg {
  display: grid;
  grid-template-columns: 80px 80px;
  grid-template-rows: 60px 60px;
  align-self: center;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}
.reg img {
  width: 100px;
  height: auto;
  object-fit: contain;
}
