:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.975 0.008 225);
  --surface-strong: oklch(0.935 0.018 220);
  --ink: oklch(0.18 0.032 230);
  --muted: oklch(0.43 0.035 226);
  --primary: oklch(0.55 0.12 230);
  --primary-deep: oklch(0.34 0.11 232);
  --accent: oklch(0.72 0.105 174);
  --accent-soft: oklch(0.93 0.055 176);
  --warm: oklch(0.82 0.115 78);
  --line: oklch(0.88 0.018 225);
  --danger: oklch(0.55 0.18 25);
  --ok: oklch(0.46 0.11 160);
  --shadow: 0 16px 60px oklch(0.18 0.032 230 / 0.16);
  --radius: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Aptos", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: oklch(1 0 0 / 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  font-size: 28px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav button,
.header-action {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  cursor: not-allowed;
}

.header-action {
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--primary-deep);
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 76px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, oklch(0.18 0.032 230 / 0.86), oklch(0.18 0.032 230 / 0.48) 48%, transparent),
    linear-gradient(0deg, oklch(0.18 0.032 230 / 0.5), transparent 45%);
}

.hero-content {
  position: relative;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: clamp(72px, 11vw, 132px) 0 clamp(48px, 8vw, 92px);
  color: var(--bg);
}

.clinic-status,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-weight: 800;
  color: var(--accent-soft);
}

.clinic-status::before,
.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 28px;
  color: oklch(0.94 0.006 230);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-btn {
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--bg);
  min-height: 48px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

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

.quiet-note {
  color: oklch(0.93 0.008 230);
}

.notice-band {
  width: min(calc(100% - 32px), var(--max));
  margin: clamp(28px, 5vw, 56px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.notice-band div {
  padding: 22px;
  background: var(--surface);
}

.notice-band div + div {
  border-left: 1px solid var(--line);
}

.notice-band strong,
.notice-band span {
  display: block;
}

.notice-band span {
  margin-top: 4px;
  color: var(--muted);
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: clamp(72px, 12vw, 132px) auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(36px, 7vw, 84px);
  align-items: center;
}

.section-copy p,
.feature p {
  color: var(--muted);
  max-width: 64ch;
  font-size: 1.05rem;
}

.section-label {
  color: var(--primary-deep);
}

.steps {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-weight: 700;
}

.steps span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary-deep);
}

.image-panel {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.image-panel img,
.feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.service-grid article {
  min-height: 220px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.service-grid span {
  color: var(--primary);
  font-weight: 900;
}

.service-grid p {
  color: var(--muted);
}

.feature {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 74px);
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius);
  background: var(--primary-deep);
  color: var(--bg);
}

.feature img {
  border-radius: 12px;
}

.feature .section-label,
.feature p {
  color: oklch(0.92 0.018 220);
}

.site-footer {
  margin-top: 96px;
  background: oklch(0.17 0.04 230);
  color: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 0;
}

.site-footer p {
  max-width: 440px;
  color: oklch(0.82 0.018 225);
}

.footer-menu {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: oklch(0.84 0.02 225);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: oklch(0.12 0.025 230 / 0.62);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.registration-modal {
  position: relative;
  width: min(320px, calc(100vw - 32px));
  width: min(320px, calc(100dvw - 32px));
  max-height: calc(100vh - 32px);
  max-width: calc(100svw - 32px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 42px);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.registration-modal h2 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  overflow-wrap: anywhere;
}

.registration-modal p {
  color: var(--muted);
}

.code-display {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.code-display span {
  display: grid;
  place-items: center;
  min-height: 70px;
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--primary-deep);
  font-size: 2rem;
  font-weight: 900;
}

.code-form {
  display: grid;
  gap: 12px;
}

.code-form label {
  font-weight: 800;
}

.code-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
}

.code-form input:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.form-message.is-error {
  color: var(--danger);
}

.form-message.is-ok {
  color: var(--ok);
}

.has-scam-warning {
  overflow: hidden;
}

.scam-warning {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background:
    linear-gradient(145deg, oklch(0.58 0.24 25 / 0.96), oklch(0.42 0.2 25 / 0.98)),
    oklch(0.48 0.22 25);
  color: white;
}

.scam-warning[hidden] {
  display: none;
}

.scam-warning-panel {
  width: min(100%, 980px);
  min-height: min(720px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  border: 4px solid oklch(1 0 0 / 0.88);
  background: oklch(0.35 0.2 25 / 0.44);
  box-shadow: 0 30px 100px oklch(0 0 0 / 0.34);
  padding: clamp(24px, 5vw, 64px);
}

.scam-warning-logo {
  width: clamp(72px, 10vw, 118px);
  height: clamp(72px, 10vw, 118px);
  object-fit: contain;
  filter: drop-shadow(0 12px 28px oklch(0 0 0 / 0.28));
}

.scam-warning-kicker {
  margin: 0;
  padding: 8px 16px;
  background: white;
  color: oklch(0.46 0.21 25);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scam-warning h2 {
  max-width: 820px;
  margin: 0;
  color: white;
  font-size: clamp(38px, 7vw, 88px);
  line-height: 0.96;
  text-transform: uppercase;
}

.scam-warning-copy {
  max-width: 760px;
  margin: 0;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 850;
}

.scam-warning-phone {
  display: block;
  font-size: clamp(34px, 5.8vw, 72px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: none;
}

.scam-warning-phone:focus-visible {
  outline: 3px solid white;
  outline-offset: 8px;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 720px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, oklch(0.18 0.032 230 / 0.86), oklch(0.18 0.032 230 / 0.5) 64%, transparent),
      linear-gradient(90deg, oklch(0.18 0.032 230 / 0.75), transparent);
  }

  .notice-band,
  .split,
  .feature {
    grid-template-columns: 1fr;
  }

  .notice-band div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (min-width: 700px) {
  .registration-modal {
    width: min(520px, calc(100vw - 32px));
    width: min(520px, calc(100dvw - 32px));
  }
}

@media (max-width: 520px) {
  .main-nav {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding-top: 96px;
  }

  .feature {
    padding: 22px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .registration-modal {
    width: min(320px, calc(100vw - 24px));
    width: min(320px, calc(100dvw - 24px));
    max-width: calc(100svw - 24px);
    padding: 24px;
  }

  .registration-modal h2 {
    font-size: 1.85rem;
    line-height: 1.04;
  }

  .code-display {
    gap: 8px;
  }

  .code-display span {
    min-height: 58px;
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content,
  .notice-band,
  .section {
    animation: rise-in 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .registration-modal {
    animation: modal-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
