﻿/* DiagPoint — shared stylesheet */

:root {
  --ink: #14203a;
  --ink-2: #4a5875;
  --ink-3: #7b879f;
  --brand: #2a5bd7;
  --brand-dark: #1e43a0;
  --brand-soft: #eaf0ff;
  --accent: #ff7a45;
  --accent-soft: #fff0e9;
  --ok: #14a06e;
  --ok-soft: #e7f7f0;
  --warn: #d97706;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --line: #e3e8f2;
  --line-strong: #cfd8e8;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 58, 0.06), 0 4px 12px rgba(20, 32, 58, 0.05);
  --shadow-md: 0 2px 6px rgba(20, 32, 58, 0.07), 0 14px 34px rgba(20, 32, 58, 0.09);

  --wrap: 1160px;
  --font-head: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 800;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.muted {
  color: var(--ink-2);
}

.small {
  font-size: 0.875rem;
}

.center {
  text-align: center;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--brand) 0%, #4b7bf0 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.945rem;
  padding: 9px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
  background: var(--bg-alt);
  text-decoration: none;
}

.nav a[aria-current='page'] {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.header-phone:hover {
  text-decoration: none;
  color: var(--brand);
}

.burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease, color 0.15s ease;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #ec6631;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.03rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- sections ---------- */

.section {
  padding: clamp(52px, 6vw, 88px) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

/* Keep the page intro tight against the section that follows it. */
.section-intro {
  padding-bottom: 0;
}

.section-intro + .section {
  padding-top: clamp(18px, 2.4vw, 34px);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head.center {
  margin-inline: auto;
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.06rem;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(178deg, #f7f9ff 0%, #ffffff 72%);
  border-bottom: 1px solid var(--line);
  padding: clamp(44px, 5vw, 76px) 0 clamp(48px, 5vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 22px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.9rem;
  color: var(--ink-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-notes li::before {
  content: '✓';
  color: var(--ok);
  font-weight: 700;
  margin-right: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ok-soft);
  color: #0d7a54;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

/* diagnostic report card in the hero */

.report-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
}

.report-head strong {
  font-family: var(--font-head);
  font-size: 0.98rem;
}

.report-head span {
  font-size: 0.8rem;
  color: #b9c4dc;
}

.report-rows {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.report-rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}

.report-rows li:last-child {
  border-bottom: 0;
}

.report-rows .name {
  color: var(--ink-2);
}

.report-rows .value {
  margin-left: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.status {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.status-ok {
  background: var(--ok-soft);
  color: #0d7a54;
}

.status-warn {
  background: #fef4e2;
  color: var(--warn);
}

.status-bad {
  background: #feeceb;
  color: #c23b2b;
}

.report-foot {
  padding: 14px 18px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* ---------- card grids ---------- */

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.card-link {
  display: block;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card-link:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* stats */

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

.stat {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
}

.stat .cap {
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* process steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 22px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
}

.step h3 {
  margin-top: 6px;
  font-size: 1.05rem;
}

.step p {
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 0.94rem;
}

/* service rows */

.service-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-row .s-name {
  font-family: var(--font-head);
  font-weight: 700;
  flex: 1 1 260px;
}

.service-row .s-detail {
  flex: 2 1 320px;
  color: var(--ink-2);
  font-size: 0.94rem;
}

.service-row .s-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  margin-left: auto;
}

/* ---------- plan cards ---------- */

.tabs {
  display: inline-flex;
  padding: 5px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 4px;
}

.tab {
  border: 0;
  background: transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink-2);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-selected='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.tab .save {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0d7a54;
  background: var(--ok-soft);
  padding: 2px 7px;
  border-radius: 999px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
  align-items: start;
}

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.plan.is-featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.plan.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.plan-flag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

.plan-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.plan-tagline {
  color: var(--ink-2);
  font-size: 0.92rem;
  min-height: 2.8em;
  margin: 4px 0 16px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price .amount {
  font-family: var(--font-head);
  font-size: 2.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.plan-price .per {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.plan-sub {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-top: 6px;
  min-height: 1.5em;
}

.plan-sub .strike {
  text-decoration: line-through;
  color: var(--ink-3);
  margin-right: 6px;
}

.plan-sub .save-tag {
  color: #0d7a54;
  font-weight: 600;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 9px;
  font-size: 0.93rem;
}

.plan-features li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--ink-2);
}

.plan-features li::before {
  content: '✓';
  color: var(--ok);
  font-weight: 700;
  flex: none;
}

.plan-features li.absent {
  color: var(--ink-3);
}

.plan-features li.absent::before {
  content: '—';
  color: var(--line-strong);
}

.plan .btn {
  margin-top: auto;
}

/* ---------- order layout ---------- */

.order-layout {
  display: grid;
  grid-template-columns: 1fr 372px;
  gap: 28px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 22px;
}

.panel > h2,
.panel > h3 {
  margin-top: 0;
}

.panel-step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.panel-step i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.78rem;
}

.works-list {
  display: grid;
  gap: 10px;
}

.work {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.work:hover {
  border-color: var(--line-strong);
  background: #fbfcff;
}

.work.is-checked {
  border-color: var(--brand);
  background: #f7faff;
}

.work input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex: none;
}

.work-body {
  flex: 1;
  min-width: 0;
}

.work-name {
  font-weight: 600;
  display: block;
}

.work-detail {
  color: var(--ink-2);
  font-size: 0.88rem;
  display: block;
  margin-top: 2px;
}

.work-meta {
  color: var(--ink-3);
  font-size: 0.81rem;
  margin-top: 4px;
  display: block;
}

.work-price {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 700;
}

.work-price .old {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: line-through;
}

.work-group-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 22px 0 10px;
}

.work-group-title:first-of-type {
  margin-top: 0;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.summary {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.summary-head {
  padding: 18px 22px;
  background: var(--ink);
  color: #fff;
}

.summary-head h3 {
  color: #fff;
  margin: 0;
  font-size: 1.05rem;
}

.summary-head p {
  margin: 2px 0 0;
  color: #b9c4dc;
  font-size: 0.85rem;
}

.summary-body {
  padding: 18px 22px;
}

.sum-line {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  font-size: 0.93rem;
  border-bottom: 1px dashed var(--line);
}

.sum-line:last-of-type {
  border-bottom: 0;
}

.sum-line .label {
  color: var(--ink-2);
  flex: 1;
}

.sum-line .val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sum-empty {
  color: var(--ink-3);
  font-size: 0.9rem;
  padding: 8px 0 14px;
}

.sum-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.sum-total .label {
  font-family: var(--font-head);
  font-weight: 700;
}

.sum-total .val {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.summary-foot {
  padding: 0 22px 22px;
}

.summary-note {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin: 12px 0 0;
  line-height: 1.5;
}

.pay-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pay-badges span {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
}

.alert {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 18px;
  border: 1px solid;
}

.alert-error {
  background: #feeceb;
  border-color: #f6c9c3;
  color: #99291a;
}

.alert-info {
  background: var(--brand-soft);
  border-color: #c9d8ff;
  color: var(--brand-dark);
}

.alert[hidden] {
  display: none;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 15px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  margin-left: auto;
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details > p {
  color: var(--ink-2);
  margin: 0 0 16px;
  font-size: 0.96rem;
}

/* ---------- reviews ---------- */

.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.quote p {
  font-size: 1rem;
  color: var(--ink);
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  flex: none;
}

.quote-author strong {
  display: block;
  font-size: 0.94rem;
}

.quote-author span {
  color: var(--ink-3);
  font-size: 0.85rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 6px;
}

.cta-band p {
  margin: 0;
  color: #b9c4dc;
  max-width: 52ch;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid h4 {
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: var(--ink-2);
  font-size: 0.93rem;
}

.footer-grid a:hover {
  color: var(--brand);
}

.footer-about p {
  color: var(--ink-2);
  font-size: 0.92rem;
  max-width: 34ch;
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.85rem;
}

/* ---------- utility pages ---------- */

.notice-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.notice-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin: 0 auto 20px;
}

.notice-icon.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.notice-icon.neutral {
  background: var(--bg-alt);
  color: var(--ink-2);
}

.receipt {
  text-align: left;
  max-width: 460px;
  margin: 26px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: #fff;
}

/* ---------- standalone checkout page ---------- */

.pay-page {
  --pay-bg: #0c1120;
  --pay-panel: #141c31;
  --pay-row: #19223a;
  --pay-line: rgba(255, 255, 255, 0.09);
  --pay-text: #eef2fd;
  --pay-dim: #93a0c2;
  --tone-basic: #4b7bf0;
  --tone-pro: #a06bf5;
  --tone-vip: #f0b429;

  min-height: 100vh;
  background: radial-gradient(120% 80% at 50% 0%, #1a2444 0%, var(--pay-bg) 58%) no-repeat, var(--pay-bg);
  color: var(--pay-text);
}

.pay-shell {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  padding: 26px 18px 46px;
}

.pay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 34px;
}

.pay-page .logo {
  color: var(--pay-text);
  font-size: 1.02rem;
}

.pay-back {
  color: var(--pay-dim);
  font-size: 0.88rem;
  font-weight: 500;
}

.pay-back:hover {
  color: var(--pay-text);
  text-decoration: none;
}

.pay-title {
  font-family: var(--font-head);
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--pay-text);
  margin: 0 0 6px;
}

.pay-sub {
  color: var(--pay-dim);
  font-size: 0.97rem;
  margin: 0 0 22px;
}

.pay-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 5px;
  background: var(--pay-panel);
  border: 1px solid var(--pay-line);
  border-radius: 14px;
  margin-bottom: 16px;
}

.pay-tab {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--pay-dim);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 6px 13px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.pay-tab:hover {
  color: var(--pay-text);
}

.pay-tab[aria-selected='true'] {
  background: rgba(255, 255, 255, 0.09);
  color: var(--pay-text);
}

.pay-tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tone-basic), var(--tone-pro));
}

.pay-tab em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0b1a12;
  background: #3ddc97;
  border-radius: 999px;
  padding: 1px 7px;
}

.pay-plans {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.pay-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  background: var(--pay-row);
  border: 1.5px solid var(--pay-line);
  border-radius: 15px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.pay-row:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.pay-row.is-selected {
  border-color: var(--tone);
  background: color-mix(in srgb, var(--tone) 13%, var(--pay-row));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 18%, transparent);
}

.pay-row-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 0.9rem;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 20%, transparent);
}

.pay-row-main {
  flex: 1;
  min-width: 0;
}

.pay-row-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.pay-row-desc {
  display: block;
  color: var(--pay-dim);
  font-size: 0.8rem;
  line-height: 1.35;
  margin-top: 2px;
}

.pay-row-price {
  text-align: right;
  white-space: nowrap;
  flex: none;
}

.pay-row-price b {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pay-row-price i {
  font-style: normal;
  font-size: 0.76rem;
  color: var(--pay-dim);
}

.pay-row-price s {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--pay-dim);
  opacity: 0.8;
  line-height: 1.2;
}

.pay-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  flex: none;
  display: grid;
  place-items: center;
}

.pay-row.is-selected .pay-radio {
  border-color: var(--tone);
  background: var(--tone);
}

.pay-row.is-selected .pay-radio::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pay-bg);
}

.pay-flag {
  position: absolute;
  top: -9px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0c1120;
  background: var(--tone);
  padding: 2px 9px;
  border-radius: 999px;
}

/* On phones the pay button sticks to the bottom of the screen. */
.pay-cta {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  margin-inline: -18px;
  padding-inline: 18px;
  background: linear-gradient(180deg, rgba(12, 17, 32, 0) 0%, var(--pay-bg) 26%);
}

.pay-btn {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 17px 20px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.03rem;
  color: #fff;
  background: linear-gradient(96deg, var(--tone-basic) 0%, var(--tone-pro) 100%);
  cursor: pointer;
  transition: filter 0.16s ease, transform 0.08s ease;
}

.pay-btn:hover {
  filter: brightness(1.08);
}

.pay-btn:active {
  transform: translateY(1px);
}

.pay-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.pay-note {
  color: var(--pay-dim);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
  margin: 14px 0 0;
}

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.pay-methods span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pay-dim);
  border: 1px solid var(--pay-line);
  border-radius: 6px;
  padding: 4px 9px;
}

.pay-links {
  text-align: center;
  margin: 22px 0 0;
  font-size: 0.85rem;
  color: var(--pay-dim);
}

.pay-links a {
  color: var(--pay-dim);
}

.pay-links a:hover {
  color: var(--pay-text);
}

.pay-page .alert-error {
  background: rgba(255, 92, 74, 0.14);
  border-color: rgba(255, 92, 74, 0.4);
  color: #ffb3a6;
}

.pay-page .alert-info {
  background: rgba(75, 123, 240, 0.14);
  border-color: rgba(75, 123, 240, 0.4);
  color: #b8ccff;
}

.pay-skeleton {
  color: var(--pay-dim);
  text-align: center;
  padding: 40px 0;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    gap: 2px;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 13px 12px;
    font-size: 1rem;
  }

  .burger {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .order-layout,
  .grid-2,
  .grid-3,
  .grid-4,
  .plans,
  .stats,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .grid-3,
  .grid-4,
  .stats,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .stats,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .tab {
    justify-content: center;
  }

  .panel,
  .card {
    padding: 20px;
  }

  .service-row .s-price {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
