:root {
  --bg: #ffffff;
  --surface: #f5fbff;
  --surface-strong: #eaf5fb;
  --ink: #1f3b57;
  --muted: #526b82;
  --primary: #0a84c6;
  --primary-deep: #1f3b57;
  --accent: #17a398;
  --accent-soft: #e5f7f5;
  --warm: #f6c85f;
  --line: #d7e8f2;
  --danger: #b42318;
  --ok: #147d64;
  --shadow: 0 16px 44px rgba(31, 59, 87, 0.14);
  --radius: 14px;
  --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;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  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: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 280px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid #c7e4f2;
  color: var(--primary);
}

.brand-mark svg {
  position: absolute;
  inset: 7px 7px 15px;
  width: calc(100% - 14px);
  height: calc(100% - 22px);
}

.brand-house,
.brand-cross {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-cross {
  stroke-width: 5;
}

.brand-mark b {
  position: absolute;
  bottom: 6px;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--primary-deep);
}

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

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

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.main-nav a,
.header-action {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 650;
}

.main-nav a:hover {
  color: var(--primary-deep);
}

.header-action {
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
}

.header-action:hover,
.primary-btn:hover {
  background: #086da5;
}

.hero {
  min-height: calc(100vh - 78px);
  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, rgba(31, 59, 87, 0.9), rgba(31, 59, 87, 0.58) 52%, rgba(31, 59, 87, 0.12)),
    linear-gradient(0deg, rgba(31, 59, 87, 0.46), transparent 48%);
}

.hero-content {
  position: relative;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: clamp(76px, 11vw, 136px) 0 clamp(50px, 8vw, 94px);
  color: #ffffff;
}

.clinic-status,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-weight: 800;
  color: #d8f2ff;
}

.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: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 6.7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.1vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 28px;
  color: #eef8fd;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  text-wrap: pretty;
}

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

.primary-btn,
.secondary-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  text-decoration: none;
}

.primary-btn {
  border: 0;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

.quiet-note {
  color: #eaf5fb;
}

.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,
.notice-band a {
  display: block;
}

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

.notice-band a {
  color: var(--primary-deep);
  font-weight: 800;
  text-decoration: none;
}

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

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

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

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

.reason-list,
.feature-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
}

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

.reason-list span,
.feature-list li {
  list-style: none;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--primary-deep);
  font-weight: 700;
}

.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: 860px;
  margin-bottom: 34px;
}

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

.service-grid article {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.service-grid span {
  width: fit-content;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--primary-deep);
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

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

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

.feature .section-label,
.feature p {
  color: #eaf5fb;
}

.feature-list {
  margin-bottom: 28px;
}

.feature-list li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

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

.light-link {
  color: #ffffff;
  font-weight: 800;
}

.site-footer {
  margin-top: 96px;
  background: var(--primary-deep);
  color: #ffffff;
}

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

.site-footer p {
  max-width: 620px;
  margin-bottom: 8px;
  color: #d9eaf4;
}

.footer-menu {
  display: grid;
  gap: 8px;
  color: #d9eaf4;
  text-align: right;
}

.footer-menu a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.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;
  isolation: isolate;
  overflow-y: auto;
  padding: clamp(18px, 4vw, 42px);
  background:
    radial-gradient(circle at 18% 0%, rgba(16, 126, 216, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 246, 255, 0.94)),
    var(--warning-bg, #f5f8ff);
  color: #0c1730;
}

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

.scam-warning-background-image {
  display: none;
}

.scam-warning.is-background-mode {
  background: var(--warning-bg, #f5f8ff);
}

.scam-warning.is-background-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 246, 255, 0.9)),
    color-mix(in srgb, var(--warning-bg, #f5f8ff) 16%, transparent);
}

.scam-warning.is-background-mode .scam-warning-background-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scam-warning-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 530px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(18px, 3.6vw, 26px);
  border: 1px solid rgba(207, 219, 236, 0.72);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(28, 66, 112, 0.13);
  padding: clamp(28px, 5vw, 54px);
}

.scam-warning-logo {
  width: clamp(92px, 18vw, 148px);
  height: clamp(72px, 15vw, 128px);
  object-fit: contain;
  align-self: center;
}

.scam-warning-kicker {
  margin: 0;
  color: #1278d5;
  font-size: clamp(12px, var(--warning-kicker-size, 14px), 22px);
  font-weight: 800;
  line-height: 1.25;
}

.scam-warning-kicker:empty {
  display: none;
}

.scam-warning h2 {
  margin: 0;
  color: #0c1730;
  font-size: clamp(28px, var(--warning-title-size, 40px), 54px);
  line-height: 1.18;
  font-weight: 850;
}

.scam-warning-copy {
  margin: 0;
  color: #16223a;
  font-size: clamp(18px, var(--warning-text-size, 24px), 32px);
  line-height: 1.45;
  font-weight: 500;
  white-space: pre-line;
}

.scam-warning-steps {
  display: grid;
  gap: 18px;
  margin-top: 2px;
}

.scam-warning-step {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 22px;
  color: #14203a;
  font-size: clamp(16px, 2.2vw, 21px);
  line-height: 1.35;
  font-weight: 560;
}

.scam-warning-icon,
.scam-warning-support-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf6ff;
  color: #1178d5;
}

.scam-warning-icon {
  width: 62px;
  height: 62px;
}

.scam-warning-icon svg,
.scam-warning-support-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scam-warning-divider {
  height: 1px;
  margin: 4px 0 0;
  background: #dbe3ef;
}

.scam-warning-report h3 {
  margin: 0 0 12px;
  color: #0c1730;
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.2;
  font-weight: 850;
}

.scam-warning-report p {
  margin: 0;
  color: #17223a;
  font-size: clamp(17px, var(--warning-note-size, 24px), 31px);
  line-height: 1.42;
  white-space: pre-line;
}

.scam-warning-phone {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 22px;
  margin-top: 2px;
  padding: 22px 24px;
  border: 1px solid #d6e1f0;
  border-radius: 12px;
  background: #f8fbff;
  color: #1178d5;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(35, 76, 129, 0.05);
}

.scam-warning-support-icon {
  width: 74px;
  height: 74px;
  background: transparent;
}

.scam-warning-support-icon svg {
  width: 58px;
  height: 58px;
}

.scam-warning-phone-label {
  display: block;
  margin-bottom: 6px;
  color: #17223a;
  font-size: clamp(14px, 1.9vw, 18px);
  line-height: 1.25;
  font-weight: 560;
}

.scam-warning-phone strong {
  display: block;
  color: #1178d5;
  font-size: clamp(18px, var(--warning-hotline-size, 35px), 90px);
  line-height: 1;
  font-weight: 850;
}

.scam-warning-phone:focus-visible {
  outline: 3px solid rgba(17, 120, 213, 0.34);
  outline-offset: 4px;
}

@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);
  }
}
