:root {
  --ink: #0c2b30;
  --ink-2: #123c42;
  --teal: #0f766e;
  --teal-strong: #0b625c;
  --mint: #e8f5f1;
  --mint-2: #d5ece5;
  --sand: #f7f5f0;
  --paper: #ffffff;
  --muted: #5c7377;
  --muted-2: #8a9b9e;
  --line: rgba(12, 43, 48, 0.12);
  --line-strong: rgba(12, 43, 48, 0.2);
  --danger: #b4432f;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 6px rgba(12, 43, 48, 0.05);
  --shadow-md: 0 18px 50px -24px rgba(12, 43, 48, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(12, 43, 48, 0.45);
  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

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

p {
  margin: 0;
}

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

button {
  font-family: inherit;
  color: inherit;
}

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

svg {
  display: block;
}

.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: 88px;
}

.micro {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.center {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
}

.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow-line::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  text-align: center;
}

.btn:focus-visible,
.lang-btn:focus-visible,
.type-card:focus-visible,
.doctor-card:focus-visible,
.date-chip:focus-visible,
.slot:focus-visible,
.icon-btn:focus-visible,
.footer-test:focus-visible,
.tabs button:focus-visible,
.text-link:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(12, 43, 48, 0.9);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px -18px rgba(12, 43, 48, 0.95);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.btn-ghost:hover {
  background: rgba(15, 118, 110, 0.06);
  border-color: var(--teal);
}

.btn-accent {
  background: linear-gradient(135deg, #157f74 0%, #0d655e 100%);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(13, 101, 94, 0.9);
}

.btn-accent:hover {
  transform: translateY(-1px);
}

.btn-accent:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.btn-danger {
  background: #fff1ee;
  color: var(--danger);
  border-color: rgba(180, 67, 47, 0.25);
}

.btn-danger:hover {
  background: #ffe4de;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.85rem;
}

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

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: gap 0.18s ease;
}

.text-link:hover {
  gap: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #eafff8;
  background: linear-gradient(140deg, #128a7e, #0b4f4a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-text span {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transition: width 0.2s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-btn {
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

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

.lang-btn.is-active {
  background: var(--ink);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 66px 0 84px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -160px;
  right: -80px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 209, 194, 0.42) 0%, rgba(247, 245, 240, 0) 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 60px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.5rem, 5vw, 4.15rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--teal);
  position: relative;
  white-space: nowrap;
}

.hero-copy h1 em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 8px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.14);
  z-index: -1;
}

.hero-lead {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin: 42px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 500px;
}

.hero-stats > div {
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid var(--line);
}

.hero-stats > div:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.hero-stats dt {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-stats dd {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-photo {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.1;
  background: var(--mint-2);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 43, 48, 0) 55%, rgba(12, 43, 48, 0.35) 100%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.hero-float {
  position: absolute;
  z-index: 3;
  left: -34px;
  bottom: 28px;
  width: 236px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-float-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-float strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.hero-float-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.hero-float-time {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--teal);
}

.hero-float-note {
  font-size: 0.74rem;
  color: var(--muted);
}

.hero-float-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
}

/* ---------- Sections ---------- */

.section {
  padding: 84px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Services ---------- */

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

.service-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.service-card-featured {
  background: linear-gradient(165deg, #0e353a 0%, #0a2529 100%);
  border-color: transparent;
  color: #eaf5f2;
}

.service-card-featured h3 {
  color: #fff;
}

.service-card-featured p {
  color: rgba(234, 245, 242, 0.72);
}

.service-card-featured .text-link {
  color: #9fe3d3;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--teal);
}

.service-card-featured .service-icon {
  background: rgba(159, 227, 211, 0.14);
  color: #9fe3d3;
}

.service-icon svg {
  width: 25px;
  height: 25px;
}

.service-tag {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.service-card-featured .service-tag {
  border-color: rgba(159, 227, 211, 0.28);
  color: #9fe3d3;
}

.service-card h3 {
  font-size: 1.26rem;
  font-weight: 700;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ---------- Why ---------- */

.section-why {
  background: #eef4f0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 64px;
  align-items: center;
}

.why-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 3.6;
  background: var(--mint-2);
}

.why-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-quote {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.why-quote span {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.why-quote small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.why-copy h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
}

.why-lead {
  color: var(--muted);
  max-width: 50ch;
}

.why-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.why-list li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid rgba(12, 43, 48, 0.1);
}

.why-list li > span {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal);
  padding-top: 3px;
  min-width: 24px;
}

.why-list h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.why-list p {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 52ch;
}

/* ---------- Booking ---------- */

.section-booking {
  padding-bottom: 100px;
}

.booking-shell {
  max-width: 980px;
  margin: 0 auto;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  position: relative;
}

.stepper-item:not(:last-child)::after {
  content: "";
  width: 54px;
  height: 1px;
  background: var(--line-strong);
  margin: 0 16px;
}

.stepper-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 0.76rem;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.stepper-item.is-active {
  color: var(--ink);
}

.stepper-item.is-active .stepper-num {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.stepper-item.is-done .stepper-num {
  background: var(--mint);
  border-color: var(--teal);
  color: var(--teal);
}

.stepper-item.is-done {
  color: var(--teal);
}

.booking-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 3.4vw, 38px);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head h3 {
  font-size: 1.18rem;
  font-weight: 800;
}

.time-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.sub-label {
  margin: 26px 0 12px;
  font-size: 0.78rem;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Type cards */

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fdfcfa;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.type-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.type-card.is-selected {
  border-color: var(--teal);
  background: var(--mint);
  box-shadow: 0 0 0 1px var(--teal) inset;
}

.type-card .radio-mark {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.type-card.is-selected .radio-mark {
  border-color: var(--teal);
  background: radial-gradient(circle at center, var(--teal) 0 4px, #fff 4.5px 100%);
}

.type-card .type-name {
  font-family: var(--font-head);
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.25;
  padding-right: 18px;
}

.type-card .type-meta {
  font-size: 0.74rem;
  color: var(--muted);
}

/* Doctors */

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.doctor-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fdfcfa;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.doctor-card:hover {
  border-color: var(--line-strong);
}

.doctor-card.is-selected {
  border-color: var(--teal);
  background: var(--mint);
  box-shadow: 0 0 0 1px var(--teal) inset;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: linear-gradient(140deg, #cfe8e1, #a9d6cb);
  color: #0d4d48;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
}

.doctor-card:nth-child(2) .avatar {
  background: linear-gradient(140deg, #dbe4ee, #b9cadb);
  color: #294a5c;
}

.doctor-card:nth-child(3) .avatar {
  background: linear-gradient(140deg, #f0e2cf, #e0c8a8);
  color: #6b4a25;
}

.doctor-name {
  display: block;
  font-family: var(--font-head);
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.2;
}

.doctor-role {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Dates */

.date-strip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.date-chip {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fdfcfa;
  cursor: pointer;
  text-align: center;
  scroll-snap-align: start;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.date-chip:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.date-chip .dow {
  display: block;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.date-chip .dnum {
  display: block;
  margin-top: 2px;
  font-family: var(--font-head);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.2;
}

.date-chip .dmon {
  display: block;
  font-size: 0.63rem;
  color: var(--muted);
}

.date-chip.is-selected {
  background: var(--ink);
  border-color: var(--ink);
}

.date-chip.is-selected .dow,
.date-chip.is-selected .dmon {
  color: rgba(255, 255, 255, 0.66);
}

.date-chip.is-selected .dnum {
  color: #fff;
}

/* Actions */

.panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

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

/* Slots */

.slot-context {
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--muted);
}

.slot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
  font-size: 0.76rem;
  color: var(--muted);
}

.slot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-free {
  border: 1.5px solid var(--line-strong);
  background: #fff;
}

.dot-booked {
  background: #d9d6ce;
}

.dot-selected {
  background: var(--ink);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 9px;
}

.slot {
  padding: 11px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfcfa;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.slot:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--mint);
}

.slot.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 8px 18px -12px rgba(12, 43, 48, 0.9);
}

.slot:disabled {
  background: #f1efe9;
  border-color: transparent;
  color: #a8a49b;
  cursor: not-allowed;
  text-decoration: line-through;
}

.empty-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fdf4e8;
  border: 1px solid #f0dcc0;
  font-size: 0.84rem;
  color: #7a5a2d;
}

/* Details */

.details-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
}

.form-col h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.form-lead {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 20px;
}

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

.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-2);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fdfcfa;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input::placeholder {
  color: #a8b3b3;
}

.field input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.field.has-error input {
  border-color: var(--danger);
  background: #fff8f6;
}

.field-err {
  display: none;
  margin-top: 5px;
  font-size: 0.74rem;
  color: var(--danger);
}

.field.has-error .field-err {
  display: block;
}

.secure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
}

.secure svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: var(--teal);
}

.summary-card {
  align-self: start;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(170deg, #edf7f3 0%, #e3f1ec 100%);
  border: 1px solid rgba(15, 118, 110, 0.14);
}

.summary-card h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 14px;
}

.summary-list {
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.84rem;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(12, 43, 48, 0.14);
}

.summary-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-list dt {
  color: var(--muted);
  flex: 0 0 auto;
}

.summary-list dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  font-size: 0.84rem;
}

.summary-card .btn + .btn {
  margin-top: 9px;
}

/* ---------- Confirmation ---------- */

.confirm-view {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 20px;
  align-items: start;
}

.confirm-main {
  position: relative;
  padding: clamp(24px, 3.4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: rise 0.4s ease both;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
  margin-bottom: 16px;
}

.success-mark svg {
  width: 34px;
  height: 34px;
}

.success-mark path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.5s 0.15s ease forwards;
}

.confirm-main h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 800;
}

.confirm-lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f1ea;
  border: 1px dashed var(--line-strong);
  font-size: 0.74rem;
  color: var(--muted);
}

.code-chip strong {
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.detail-list {
  margin: 0 0 22px;
  display: grid;
  gap: 0;
}

.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: var(--muted);
  flex: 0 0 auto;
}

.detail-list dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  max-width: 62%;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

/* Reminder */

.reminder-card {
  padding: clamp(22px, 3.2vw, 30px);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, #0e353a 0%, #092429 100%);
  color: #e8f4f1;
  box-shadow: var(--shadow-lg);
  animation: rise 0.4s 0.08s ease both;
}

.reminder-card .eyebrow {
  color: #8fdacc;
  font-size: 0.66rem;
}

.reminder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-chip {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(143, 218, 204, 0.3);
  background: rgba(143, 218, 204, 0.1);
  color: #9fe3d3;
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reminder-lead {
  margin-top: 10px;
  color: rgba(232, 244, 241, 0.7);
  font-size: 0.84rem;
}

.reminder-when {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: #cfece5;
}

.tabs {
  display: flex;
  gap: 3px;
  margin: 18px 0 14px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.tabs button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(232, 244, 241, 0.62);
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.tabs button svg {
  width: 15px;
  height: 15px;
}

.tabs button[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.reminder-preview {
  min-height: 132px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(232, 244, 241, 0.9);
}

.reminder-preview .pv-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(232, 244, 241, 0.5);
}

.reminder-preview .pv-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.reminder-preview .pv-subject {
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.reminder-preview .pv-to {
  margin-top: 8px;
  font-size: 0.7rem;
  color: rgba(232, 244, 241, 0.55);
}

.reminder-log {
  margin-top: 12px;
  font-size: 0.74rem;
  color: rgba(232, 244, 241, 0.55);
  min-height: 18px;
}

.reminder-log.is-sent {
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(143, 218, 204, 0.12);
  color: #a9e7da;
  border: 1px solid rgba(143, 218, 204, 0.2);
}

.reminder-card .btn-accent {
  margin-top: 14px;
  background: #e6f6f1;
  color: #0b4f4a;
  box-shadow: none;
  font-size: 0.84rem;
}

.reminder-card .btn-accent:hover {
  background: #fff;
}

.reminder-card .micro {
  margin-top: 10px;
  color: rgba(232, 244, 241, 0.42);
  font-size: 0.7rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0a262b;
  color: rgba(233, 243, 240, 0.72);
  padding: 56px 0 26px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand .brand-mark {
  background: rgba(159, 227, 211, 0.14);
  color: #9fe3d3;
  box-shadow: none;
}

.footer-brand p {
  font-size: 0.84rem;
  max-width: 30ch;
  color: rgba(233, 243, 240, 0.5);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 0.84rem;
  margin-bottom: 5px;
  color: rgba(233, 243, 240, 0.58);
}

.footer-col a:hover {
  color: #fff;
}

.lang-switch-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 4px;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

.lang-switch-footer .lang-btn {
  text-align: left;
  border-radius: 8px;
  color: rgba(233, 243, 240, 0.6);
}

.lang-switch-footer .lang-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.76rem;
  color: rgba(233, 243, 240, 0.42);
}

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

.footer-note {
  font-size: 0.72rem;
}

.footer-test {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(233, 243, 240, 0.66);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.footer-test:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.footer-test svg {
  width: 14px;
  height: 14px;
}

.badge-count {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: #9fe3d3;
  color: #07322e;
  font-size: 0.64rem;
  font-weight: 800;
}

/* ---------- Drawer ---------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 25, 28, 0.45);
  backdrop-filter: blur(2px);
  animation: fade 0.2s ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  height: 100%;
  padding: 24px;
  background: var(--paper);
  box-shadow: -20px 0 60px -30px rgba(0, 0, 0, 0.5);
  transform: translateX(102%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.drawer-head h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 4px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease;
}

.icon-btn:hover {
  background: var(--mint);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.drawer-lead {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.drawer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 10px;
}

.drawer-section-head h4 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.count-chip {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
}

.drawer-list {
  display: grid;
  gap: 8px;
}

.drawer-item {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfcfa;
}

.drawer-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 800;
}

.drawer-item-top span:last-child {
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.drawer-item-sub {
  font-size: 0.73rem;
  color: var(--muted);
}

.drawer-empty {
  padding: 20px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.drawer-actions {
  margin-top: auto;
  padding-top: 22px;
}

.drawer-actions .micro {
  margin-top: 8px;
  text-align: center;
}

/* ---------- Toasts ---------- */

.toast-stack {
  position: fixed;
  z-index: 110;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 36px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
  font-size: 0.84rem;
  line-height: 1.45;
  animation: toastIn 0.26s ease both;
}

.toast svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 1px;
  color: #9fe3d3;
}

.toast.is-error svg {
  color: #ffb4a2;
}

.toast.is-leaving {
  animation: toastOut 0.2s ease forwards;
}

/* ---------- Animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Responsive ---------- */

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

  .hero-grid {
    gap: 40px;
  }

  .hero-float {
    left: 12px;
    bottom: 16px;
  }

  .why-grid {
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 46px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 8vw, 3.4rem);
  }

  .hero-copy h1 em {
    white-space: normal;
  }

  .hero-visual {
    max-width: 560px;
    margin-inline: auto;
  }

  .hero-photo {
    aspect-ratio: 4 / 3.4;
  }

  .hero-float {
    left: 12px;
    bottom: 14px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-visual {
    max-width: 420px;
    aspect-ratio: 3 / 3.2;
  }

  .confirm-view {
    grid-template-columns: 1fr;
  }

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

  .type-grid,
  .doctor-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    padding: 9px 11px;
  }

  .type-card {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 40px 12px 13px;
  }

  .type-card .type-name {
    padding-right: 0;
  }

  .type-card .type-meta {
    margin-left: auto;
    text-align: right;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 1.1rem;
  }

  .brand-text span {
    display: none;
  }

  .header-cta {
    padding: 9px 14px;
    font-size: 0.8rem;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .section {
    padding: 62px 0;
  }

  .hero-stats {
    gap: 0;
    margin-top: 32px;
  }

  .hero-stats > div {
    padding-right: 16px;
    margin-right: 16px;
  }

  .hero-stats dt {
    font-size: 1.24rem;
  }

  .hero-stats dd {
    font-size: 0.68rem;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .hero-float {
    width: 205px;
    padding: 14px;
  }

  .panel-head h3 {
    font-size: 1.05rem;
  }

  .panel-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .panel-actions > .btn,
  .panel-actions .actions-right {
    width: 100%;
  }

  .actions-right {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .stepper {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .stepper-item {
    font-size: 0.72rem;
  }

  .stepper-item:not(:last-child)::after {
    width: 20px;
    margin: 0 8px;
  }

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

  .slot {
    padding: 10px 4px;
    font-size: 0.8rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .confirm-actions .btn {
    flex: 1 1 100%;
  }

  .toast-stack {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 6px;
  }

  .header-actions {
    gap: 7px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-text strong {
    font-size: 1.02rem;
  }

  .lang-btn {
    padding: 5px 7px;
    font-size: 0.7rem;
  }

  .header-cta {
    padding: 8px 11px;
    font-size: 0.76rem;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .type-card .type-meta {
    display: none;
  }

  .doctor-role {
    font-size: 0.66rem;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
