:root {
  --ink: #16213a;
  --muted: #626b80;
  --paper: #fffdf7;
  --panel: #ffffff;
  --line: #e3e6ef;
  --night: #17213b;
  --violet: #6756d8;
  --coral: #f47b65;
  --mint: #dff4e9;
  --gold: #ffe2a8;
  --shadow: 0 24px 70px rgba(29, 35, 67, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(103, 86, 216, 0.14), transparent 31rem),
    linear-gradient(180deg, #f7f3ff 0, #fff9ec 42rem, var(--paper) 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

a {
  color: #4d43ae;
}

.wrap {
  width: min(1140px, calc(100% - 32px));
  margin: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  color: white;
  background: rgba(23, 33, 59, 0.97);
  box-shadow: 0 8px 24px rgba(18, 23, 45, 0.14);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 780;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 18px;
  overflow-x: auto;
}

.hero {
  padding: 84px 0 48px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(103, 86, 216, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #5145b7;
  font-weight: 840;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

h1,
h2 {
  font-family: Georgia, serif;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 970px;
  margin: 24px auto 20px;
  font-size: clamp(2.45rem, 7vw, 5.1rem);
  line-height: 1.02;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  line-height: 1.16;
}

h3 {
  line-height: 1.28;
}

.lead {
  max-width: 800px;
  margin: auto;
  color: var(--muted);
  font-size: clamp(1.04rem, 2.2vw, 1.28rem);
}

.badges,
.actions,
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.badges {
  margin-top: 26px;
}

.badge,
.chip {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  box-shadow: 0 8px 24px rgba(31, 35, 65, 0.06);
  font-size: 0.91rem;
  font-weight: 740;
  white-space: nowrap;
}

.actions {
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border: 0;
  border-radius: 14px;
  background: var(--violet);
  color: white !important;
  box-shadow: 0 10px 25px rgba(103, 86, 216, 0.22);
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.button.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink) !important;
  box-shadow: none;
}

.answer {
  margin-bottom: 42px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(103, 86, 216, 0.2);
  border-radius: 26px;
  background: linear-gradient(135deg, #202544, #343b6b);
  color: white;
  box-shadow: var(--shadow);
}

.answer p {
  max-width: 880px;
  margin-bottom: 0;
  color: #e8eaf4;
  font-size: 1.06rem;
}

.section {
  padding: 28px 0 54px;
}

.section-head {
  max-width: 800px;
  margin-bottom: 24px;
}

.section-head p {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 17px;
}

.card {
  grid-column: span 6;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 11px 0 8px;
  font-size: 1.18rem;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--violet);
}

.card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.category {
  color: #6656c1;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.facts div {
  padding: 9px 10px;
  border-radius: 12px;
  background: #f7f7fb;
}

.facts dt {
  color: #71778a;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.facts dd {
  margin: 2px 0 0;
  font-size: 0.9rem;
  font-weight: 680;
}

.table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  min-width: 130px;
}

th {
  background: #f4f4fb;
  font-size: 0.84rem;
  white-space: nowrap;
}

td {
  color: var(--muted);
  font-size: 0.9rem;
}

.settings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.setting {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  text-align: center;
  font-weight: 760;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  padding: clamp(23px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.panel li + li {
  margin-top: 9px;
}

.app {
  padding: clamp(24px, 5vw, 42px);
  border-radius: 25px;
  background: linear-gradient(135deg, #242244, #3b3970);
  color: white;
  box-shadow: var(--shadow);
}

.app p {
  color: #e6e5f2;
}

.app .button {
  background: var(--gold);
  color: #2b2440 !important;
}

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.faq article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.faq h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.faq p {
  margin: 0;
  color: var(--muted);
}

.footer {
  margin-top: 24px;
  padding: 30px 0;
  background: var(--night);
  color: #dfe3f2;
  text-align: center;
}

.footer a {
  color: white;
}

a:focus-visible {
  outline: 3px solid #ffb685;
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .card {
    grid-column: span 12;
  }

  .settings {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-col,
  .faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 22px, 1140px);
  }

  .hero {
    padding-top: 56px;
  }

  .nav {
    min-height: 58px;
  }

  .nav-links {
    gap: 12px;
  }

  .settings {
    grid-template-columns: 1fr 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .badges {
    justify-content: flex-start;
  }

  .hero .badges,
  .hero .actions {
    justify-content: center;
  }
}
