:root {
  --purple: #5d17be;
  --purple-dark: #2f007d;
  --purple-soft: #f2ebfb;
  --yellow: #ffba0a;
  --pink: #f4279a;
  --green: #08aa35;
  --red: #ff5864;
  --ink: #29006d;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(53, 0, 124, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, #421096, var(--purple));
  box-shadow: 0 4px 18px rgba(37, 0, 92, .22);
}
header > div,
main,
footer > div {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}
header > div {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 50px; }
header nav { display: flex; align-items: center; gap: 28px; }
header nav a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
header nav a:hover { color: var(--yellow); }
.actions { display: flex; gap: 14px; margin: 0; }
.actions a,
.offer a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 28px;
  border: 2px solid #fff;
  border-radius: 9px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.actions a:last-child,
.offer a {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--purple-dark);
}
.actions a:hover,
.offer a:hover { transform: translateY(-2px); filter: brightness(1.03); }

main { padding-block: 32px 72px; }
main > section,
main > nav { margin-block: 28px; }
main > section:not(.hero):not(.pros-cons):not(.faq) {
  padding: 28px 34px;
  border: 1px solid #eadffc;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr);
  align-items: center;
  gap: 28px;
  padding: 34px;
  border-radius: 20px;
  overflow: hidden;
  background: #3f068d url('/images/banner.webp') center/cover no-repeat;
  box-shadow: var(--shadow);
}
.hero > div {
  align-self: center;
  max-width: 650px;
  padding: 28px 30px;
  border-radius: 14px;
  color: #fff;
  background: rgba(104, 35, 168, .82);
  backdrop-filter: blur(3px);
}
h1,h2,h3 { margin-top: 0; line-height: 1.22; }
h1 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.05rem); color: #fff; }
h2 {
  margin-bottom: 20px;
  color: var(--purple-dark);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  text-align: center;
}
h2::after {
  content: "";
  display: block;
  width: 92px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 10px;
  background: var(--purple);
}
h3 { color: var(--purple-dark); font-size: 1.2rem; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.offer {
  align-self: center;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 16px;
  color: #fff;
  text-align: center;
  background: rgba(189, 113, 214, .78);
  backdrop-filter: blur(8px);
}
.offer p:first-child { margin-bottom: 6px; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; }
.offer a { width: 100%; margin-top: 12px; }

.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.categories a {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #41119a, #6a18cc);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.categories a:hover { transform: translateY(-3px); background: linear-gradient(135deg, #5213b6, #7724d9); }
.categories img { flex: 0 0 30px; }

ul,ol { padding-left: 1.35rem; }
li { margin: .45rem 0; }
ul li::marker { color: var(--green); }
ol li::marker { color: var(--purple); font-weight: 800; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #d9c9f5;
  border-radius: 12px;
}
caption { padding: 12px; font-weight: 800; color: var(--purple-dark); }
th,td { padding: 14px 16px; border-bottom: 1px solid #e7dcf8; text-align: left; vertical-align: top; }
thead th { color: #fff; background: var(--purple); }
tbody th { color: var(--purple-dark); background: #f6f0ff; }
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fff9e8; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pros-cons h2 { grid-column: 1 / -1; margin-bottom: 0; }
.pros-cons article {
  padding: 26px;
  border-radius: 16px;
  background: var(--purple-soft);
  box-shadow: var(--shadow);
}
.pros-cons article:last-child { background: #fff4f5; }
.pros-cons li { list-style: none; position: relative; padding-left: 34px; }
.pros-cons li::before {
  position: absolute;
  left: 0;
  top: .15rem;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  content: "+";
  font-weight: 900;
  line-height: 1;
}
.pros-cons article:last-child li::before { content: "−"; background: var(--red); }

.faq h2 { margin-bottom: 28px; }
.faq article { margin-bottom: 14px; }
.faq h3 { margin: 0; }
.faq h3 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 18px 22px;
  border: 2px solid var(--purple);
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
}
.faq h3 a:hover { background: #f8f3ff; }
.faq h3 span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border: 2px solid var(--purple);
  border-radius: 50%;
}
.faq article > p {
  margin: 0 12px;
  padding: 20px 22px;
  border-radius: 0 0 12px 12px;
  background: var(--purple-soft);
}

footer {
  padding: 42px 0 26px;
  color: #fff;
  background: linear-gradient(90deg, #3c0b99, var(--purple));
}
footer > div { text-align: center; }
footer > div > p { max-width: 800px; margin: 16px auto; }
.payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  font-size: 1.45rem;
}
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
footer nav a { color: #fff; }

.top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  box-shadow: var(--shadow);
  font-size: 1.8rem;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  header > div { grid-template-columns: auto 1fr; padding-block: 10px; }
  header nav { grid-column: 1 / -1; order: 3; overflow-x: auto; padding-bottom: 6px; }
  .actions { justify-self: end; }
  .hero { grid-template-columns: 1fr; background-position: 65% center; }
  .hero > div { max-width: 720px; }
  .offer { width: min(520px, 100%); }
  .categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  body { font-size: 15px; }
  header > div, main, footer > div { width: min(100% - 20px, 1240px); }
  header > div { gap: 12px; }
  .brand img { height: 42px; }
  .actions a { padding-inline: 12px; }
  .actions a:first-child { display: none; }
  header nav { gap: 18px; }
  main { padding-top: 14px; }
  .hero { min-height: auto; padding: 16px; background-position: 70% center; }
  .hero > div { padding: 20px; }
  .offer { padding: 20px; }
  .categories { grid-template-columns: 1fr; }
  main > section:not(.hero):not(.pros-cons):not(.faq) { padding: 22px 18px; }
  .pros-cons { grid-template-columns: 1fr; }
  .pros-cons h2 { grid-column: auto; }
  th,td { min-width: 150px; padding: 12px; }
  .payments { gap: 18px; font-size: 1.15rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: transform .2s ease, color .2s ease, background-color .2s ease, filter .2s ease; }
}
