:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --secondary: #10b981;
  --accent: #e0f7f4;
  --bg: #f5fbfa;
  --text: #12312f;
  --muted: #61736f;
  --white: #ffffff;
  --danger: #b91c1c;
  --success: #047857;
  --shadow: 0 24px 70px rgba(15, 118, 110, 0.16);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 38%),
    linear-gradient(135deg, #f9fffd 0%, #eefbf8 55%, #ffffff 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo { width: 52px; height: 52px; }
.brand strong { display: block; font-size: 1rem; letter-spacing: .05em; }
.brand small { color: var(--muted); font-size: .82rem; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .94rem;
}
.nav-links a:hover { color: var(--primary); }
.mobile-menu-btn { display: none; }

.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 42px;
  padding: 42px 0 72px;
}

.badge, .section-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--accent);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: .96;
  letter-spacing: -.07em;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 16px 35px rgba(15, 118, 110, .25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--white); color: var(--primary-dark); border: 1px solid rgba(15, 118, 110, .14); }
.full { width: 100%; margin-top: 8px; }

.trust-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.trust-cards article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(15,118,110,.10);
  backdrop-filter: blur(16px);
}
.trust-cards strong { display: block; color: var(--primary); font-size: 1.25rem; margin-bottom: 8px; }
.trust-cards span { color: var(--muted); font-weight: 600; font-size: .9rem; line-height: 1.4; }

.login-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,118,110,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.login-header { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.login-header img { width: 82px; height: 82px; }
.login-header h2 { margin-bottom: 6px; font-size: 1.7rem; }
.login-header p { color: var(--muted); margin-bottom: 0; line-height: 1.5; }

form { display: grid; gap: 12px; }
label { font-weight: 800; font-size: .92rem; }
input {
  width: 100%;
  border: 1px solid rgba(18,49,47,.15);
  border-radius: 16px;
  padding: 16px 16px;
  font-size: 1rem;
  outline: none;
  color: var(--text);
  background: #fbfffe;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,118,110,.10); }
.input-group { display: flex; align-items: center; border: 1px solid rgba(18,49,47,.15); border-radius: 16px; background: #fbfffe; overflow: hidden; }
.input-group span { padding: 0 15px; font-weight: 900; color: var(--primary); border-right: 1px solid rgba(18,49,47,.1); }
.input-group input { border: 0; border-radius: 0; box-shadow: none; }
.hint { color: var(--muted); margin-bottom: 8px; }
.form-message { min-height: 22px; margin: 2px 0 0; font-weight: 700; }
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--success); }

.support-box {
  margin-top: 22px;
  padding: 16px;
  border-radius: 20px;
  background: #ecfdf5;
  color: var(--primary-dark);
  display: grid;
  gap: 4px;
  line-height: 1.45;
}

.clinic-banner, .security-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 18px 48px rgba(15,118,110,.10);
  margin-bottom: 72px;
}
.clinic-banner img { width: 100%; max-height: 330px; }
.clinic-banner h2, .process-section h2, .security-section h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.05em; margin: 18px 0 16px; }
.clinic-banner p, .process-section p, .security-section p { color: var(--muted); line-height: 1.75; }

.process-section { margin-bottom: 72px; text-align: center; }
.process-section .section-kicker { margin: 0 auto; }
.process-section h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; text-align: left; }
.process-card {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,118,110,.10);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(15,118,110,.08);
}
.process-card img { width: 54px; height: 54px; margin-bottom: 18px; }
.process-card h3 { margin-bottom: 10px; }
.process-card p { font-size: .94rem; margin-bottom: 0; }

.security-section { grid-template-columns: 1.2fr .8fr; }
.security-section ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.security-section li { padding: 16px 18px; border-radius: 18px; background: #f0fdfa; font-weight: 800; color: var(--primary-dark); }
.security-section li::before { content: '✓'; margin-right: 10px; color: var(--secondary); }

.footer {
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid rgba(15,118,110,.12);
}
.footer strong { color: var(--text); }
.footer p { margin: 6px 0 0; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 82px; left: 16px; right: 16px; background: white; padding: 20px; border-radius: 20px; box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: inline-flex; border: 0; background: var(--primary); color: white; width: 44px; height: 44px; border-radius: 14px; align-items: center; justify-content: center; font-size: 1.4rem; }
  .hero, .clinic-banner, .security-section { grid-template-columns: 1fr; }
  .trust-cards, .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 22px, 1180px); }
  .hero { padding-top: 22px; }
  .trust-cards, .process-grid { grid-template-columns: 1fr; }
  .login-card, .clinic-banner, .security-section { padding: 22px; border-radius: 22px; }
  .footer { flex-direction: column; }
}
