:root {
  --primary-color: #4f46e5;
  --primary-dark: #4338ca;
  --secondary-color: #10b981;
  --accent-color: #ed8936;
  --ink: #f8fafc;
  --muted: #c7c9e2;
  --card: rgba(18, 16, 48, 0.62);
  --line: rgba(255, 255, 255, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(237, 137, 54, 0.35), transparent 60%),
    radial-gradient(800px 600px at 88% 18%, rgba(16, 185, 129, 0.28), transparent 55%),
    radial-gradient(1100px 700px at 70% 100%, rgba(79, 70, 229, 0.85), transparent 60%),
    linear-gradient(160deg, #2a1f86 0%, #3d2bb8 42%, #1b1464 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
}

.lang-switch a[aria-current="page"] {
  background: var(--ink);
  color: #1e1b4b;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.mark span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.mark span:nth-child(1) {
  left: 7px;
  top: 14px;
  background: var(--primary-color);
  box-shadow: 0 0 0 3px #818cf8;
}

.mark span:nth-child(2) {
  right: 7px;
  top: 7px;
  background: var(--secondary-color);
}

.mark span:nth-child(3) {
  right: 7px;
  bottom: 7px;
  background: var(--accent-color);
}

.board {
  width: min(1180px, calc(100% - 40px));
  margin: 8px auto 28px;
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 24px 50px rgba(12, 8, 40, 0.28);
  backdrop-filter: blur(16px);
}

.offer {
  display: flex;
  flex-direction: column;
}

.included,
.compare,
.ways,
.full-row,
.extra-work,
.start {
  grid-column: 1 / -1;
}

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

.extra-work {
  overflow: visible;
}

.eyebrow {
  color: #d6d3ff;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1,
h2 {
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  max-width: 14ch;
}

h2 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.lede {
  margin-top: 14px;
  font-size: 1.25rem;
  font-weight: 600;
}

.sub,
.fine,
.compare p,
.ways p,
.extra-work p,
.start p,
.examples p {
  color: var(--muted);
}

.sub {
  margin-top: 8px;
  max-width: 42ch;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-was {
  font-size: 1.7rem;
  font-weight: 600;
  color: #c9cce4;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #f8fafc;
}

.price-unit,
.price-note {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.price-note {
  margin-top: 8px;
}

.own-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}

.own-list li,
.tiles li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.tiles li.has-pop {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.has-pop-label::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.85;
}

.tiles li.has-pop:hover,
.tiles li.has-pop:focus,
.tiles li.has-pop:focus-within {
  background: rgba(255, 255, 255, 0.2);
}

.widget-pop {
  display: none !important;
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  z-index: 30;
  width: 272px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #1b1740;
  box-shadow: 0 16px 36px rgba(8, 6, 28, 0.45);
}

.widget-pop::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #1b1740;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(45deg);
}

.tiles li.has-pop:hover .widget-pop,
.tiles li.has-pop:focus .widget-pop,
.tiles li.has-pop:focus-within .widget-pop {
  display: block !important;
}

.widget-pop > p {
  margin: 0 0 10px;
  color: #c7c9e2;
  font-size: 0.78rem;
  font-weight: 650;
}

.widget-pop-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.widget-pop-grid span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}

.widget-pop-grid span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #a78bfa;
}

.widget-pop-grid span:nth-child(2)::before { background: #34d399; }
.widget-pop-grid span:nth-child(3)::before { background: #fbbf24; }
.widget-pop-grid span:nth-child(4)::before { background: #fb923c; }
.widget-pop-grid span:nth-child(5)::before { background: #60a5fa; }
.widget-pop-grid span:nth-child(6)::before { background: #f472b6; }
.widget-pop-grid span:nth-child(7)::before { background: #2dd4bf; }

.hero-actions,
.ways .btn {
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: #1e1b4b;
}

.btn-primary:hover {
  background: #e0e7ff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.heading h1,
.heading h2 {
  margin: 0;
  max-width: none;
}

.heading h1 {
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
}

.kicker {
  margin-top: 2px;
  color: var(--muted);
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.icon svg {
  width: 28px;
  height: 28px;
}

.icon-web { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.icon-tax { background: linear-gradient(180deg, #4ade80, #15803d); }
.icon-music { background: linear-gradient(180deg, #fb923c, #c2410c); }
.icon-list { background: linear-gradient(180deg, #a78bfa, #6d28d9); }
.icon-lock { background: linear-gradient(180deg, #94a3b8, #475569); }
.icon-key { background: linear-gradient(180deg, #fbbf24, #d97706); }
.icon-setup { background: linear-gradient(180deg, #2dd4bf, #0f766e); }
.icon-learn { background: linear-gradient(180deg, #f472b6, #be185d); }
.icon-mail { background: linear-gradient(180deg, #38bdf8, #0369a1); }
.icon-code { background: linear-gradient(180deg, #67e8f9, #0e7490); }

.examples {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.example-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.example-link img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  display: block;
}

.example-link strong {
  display: block;
  font-size: 1.15rem;
}

.example-link p {
  margin: 0;
}

.example-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.tiles {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.fine {
  margin-top: 16px;
  font-size: 0.92rem;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.way-index {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.ways .btn {
  display: inline-block;
}

.start {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.contact-mail {
  margin-top: 16px;
}

.contact-mail a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: rgba(8, 6, 28, 0.35);
}

#formStatus {
  min-height: 1.4em;
  color: var(--muted);
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 28px;
  color: var(--muted);
}

@media (min-width: 801px) {
  .offer .price-row,
  .offer .own-list,
  .offer .hero-actions {
    margin-top: auto;
  }
}

@media (max-width: 800px) {
  .board,
  .ways,
  .compare,
  .start {
    grid-template-columns: 1fr;
  }

  .offer {
    grid-row: auto;
  }

  h1 {
    max-width: none;
  }

  .brand {
    font-size: 1.3rem;
  }

  .lang-switch {
    padding: 3px;
  }

  .lang-switch a {
    padding: 3px 7px;
    font-size: 0.68rem;
  }
}
