/* ============================================================
   Dr. Marcus Becker — Male Health Clinic
   Apple-inspired personal medical blog
   ============================================================ */

:root {
  --bg: #f5f5f7;
  --bg-white: #ffffff;
  --bg-dark: #1d1d1f;
  --bg-section: #fbfbfd;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --navy: #0a2540;
  --navy-soft: #1a3a5c;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --radius-lg: 28px;
  --nav-h: 52px;
  --max: 1120px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.47;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input {
  font-family: inherit;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(29, 29, 31, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(29, 29, 31, 0.92);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: #f5f5f7;
  min-width: 0;
}

.nav-brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.nav-brand__clinic {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(245, 245, 247, 0.88);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 980px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.lang-switch__item {
  color: rgba(245, 245, 247, 0.72) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  padding: 5px 8px !important;
  border-radius: 8px !important;
  text-transform: none;
}

.lang-switch__item:hover,
.lang-switch__item.is-active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #f5f5f7;
  margin: 5px auto;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 72px;
  overflow: hidden;
  background: #0c1829;
  color: #f5f5f7;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.02);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 16, 28, 0.88) 0%, rgba(8, 16, 28, 0.55) 42%, rgba(8, 16, 28, 0.2) 72%, rgba(8, 16, 28, 0.35) 100%),
    linear-gradient(180deg, rgba(8, 16, 28, 0.35) 0%, transparent 30%, rgba(8, 16, 28, 0.75) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  width: 100%;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.7);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.9s 0.15s var(--ease) forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 10ch;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.9s 0.28s var(--ease) forwards;
}

.hero__lead {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  color: rgba(245, 245, 247, 0.82);
  max-width: 34ch;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.9s 0.42s var(--ease) forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.9s 0.55s var(--ease) forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 560;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  transform: scale(1.02);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--dark {
  background: var(--bg-dark);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.18);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Section system ---------- */
.section {
  padding: 100px 0;
}

.section--tight {
  padding: 72px 0;
}

.section--white {
  background: var(--bg-white);
}

.section--soft {
  background: var(--bg);
}

.section--dark {
  background: var(--navy);
  color: #f5f5f7;
}

.section--dark .section__sub {
  color: rgba(245, 245, 247, 0.65);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.section__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section--dark .section__label {
  color: #6eb3ff;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.section__sub {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 48px;
}

/* ---------- Credentials strip ---------- */
.cred-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cred-strip__item {
  background: var(--bg-white);
  padding: 36px 28px;
  text-align: center;
  border-radius: 16px;
}

.cred-strip__num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.cred-strip__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Expertise ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.expertise-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 520px;
  background: #111;
}

.expertise-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.2s var(--ease);
}

.expertise-main:hover img {
  transform: scale(1.04);
}

.expertise-main__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 32px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
}

.expertise-main__caption h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.expertise-main__caption p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
}

.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expertise-card {
  flex: 1;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.expertise-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #e8f1ff, #f0f5fb);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.expertise-card__icon svg {
  width: 20px;
  height: 20px;
}

.expertise-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.expertise-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.text-accent {
  color: var(--accent);
  font-weight: 700;
}

/* Three pillars — TCM selling points (very prominent) */
.pillar-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: -12px 0 44px;
}

.pillar-banner__item {
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  color: #fff;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow);
}

.pillar-banner__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.pillar-banner__item strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pillar-banner__item--blue {
  background: linear-gradient(145deg, #0b4f8a, #156fbf);
}

.pillar-banner__item--green {
  background: linear-gradient(145deg, #0d5c38, #147a4c);
}

.pillar-banner__item--gold {
  background: linear-gradient(145deg, #8a5a00, #c4921a);
}

.expertise-main__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ec5ff;
  margin-bottom: 10px !important;
}

.expertise-card--tcm {
  position: relative;
  border-color: transparent;
  color: #fff;
  padding-top: 48px;
}

.expertise-card--tcm h3 {
  color: #fff;
}

.expertise-card--tcm p {
  color: rgba(255, 255, 255, 0.8);
}

.expertise-card--tcm strong {
  font-weight: 700;
}

/* Card 1 — natural green */
.expertise-card--green {
  background: linear-gradient(160deg, #0d5c38 0%, #147a4c 100%);
}

.expertise-card--green strong {
  color: #b8f5d0;
}

.expertise-card--green .expertise-card__icon {
  background: rgba(184, 245, 208, 0.18);
  color: #b8f5d0;
}

.expertise-card--green .expertise-card__badge {
  background: #b8f5d0;
  color: #0a3d26;
}

/* Card 2 — TCM blue */
.expertise-card--blue {
  background: linear-gradient(160deg, #0b4f8a 0%, #156fbf 100%);
}

.expertise-card--blue strong {
  color: #a8d4ff;
}

.expertise-card--blue .expertise-card__icon {
  background: rgba(168, 212, 255, 0.18);
  color: #a8d4ff;
}

.expertise-card--blue .expertise-card__badge {
  background: #a8d4ff;
  color: #06345c;
}

/* Card 3 — navy + gold */
.expertise-card--emphasis {
  background: linear-gradient(160deg, #0a2540 0%, #1a3a5c 100%);
}

.expertise-card--emphasis strong {
  color: #ffd76a;
}

.expertise-card--emphasis .expertise-card__icon {
  background: rgba(255, 215, 106, 0.15);
  color: #ffd76a;
}

.expertise-card--emphasis .expertise-card__badge {
  background: #ffd76a;
  color: #3d2a00;
}

.expertise-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ---------- TCM steps ---------- */
.tcm-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tcm-step {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  align-items: stretch;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tcm-step:nth-child(even) .tcm-step__media {
  order: 2;
}

.tcm-step:nth-child(even) .tcm-step__body {
  order: 1;
}

.tcm-step__media {
  min-height: 340px;
  background: #111;
  overflow: hidden;
}

.tcm-step__media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.tcm-step:hover .tcm-step__media img {
  transform: scale(1.04);
}

.tcm-step__media--poster img {
  object-position: center top;
}

.tcm-step__body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tcm-step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 18px;
  color: var(--accent);
  opacity: 0.95;
}

.tcm-step__body h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.tcm-step__body p {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 22px;
  max-width: 34ch;
}

.tcm-step__body p strong {
  color: inherit;
  font-weight: 800;
}

/* 01 — green panel, matches herbal photo tones */
.tcm-step--green {
  border-color: rgba(13, 107, 58, 0.18);
}

.tcm-step--green .tcm-step__body {
  background: linear-gradient(160deg, #0f6b42 0%, #148a54 55%, #0d5c38 100%);
  color: #fff;
}

.tcm-step--green .tcm-step__num {
  color: #b8f5d0;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.tcm-step--green .tcm-step__body h3 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

.tcm-step--green .tcm-step__body p {
  color: rgba(255, 255, 255, 0.86);
}

/* 02 — blue panel */
.tcm-step--blue {
  border-color: rgba(11, 79, 138, 0.18);
}

.tcm-step--blue .tcm-step__body {
  background: linear-gradient(160deg, #0c4d86 0%, #1570c0 55%, #0a3d6b 100%);
  color: #fff;
}

.tcm-step--blue .tcm-step__num {
  color: #a8d4ff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.tcm-step--blue .tcm-step__body h3 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

.tcm-step--blue .tcm-step__body p {
  color: rgba(255, 255, 255, 0.86);
}

/* 03 — navy panel, matches doctor poster */
.tcm-step--navy {
  border-color: rgba(10, 37, 64, 0.35);
}

.tcm-step--navy .tcm-step__body {
  background: linear-gradient(160deg, #0a2540 0%, #143a5c 50%, #0d2a46 100%);
  color: #fff;
  position: relative;
}

.tcm-step--navy .tcm-step__body::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 215, 106, 0.22);
  border-radius: 16px;
  pointer-events: none;
}

.tcm-step--navy .tcm-step__num {
  color: #ffd76a;
  text-shadow: 0 0 28px rgba(255, 215, 106, 0.35);
}

.tcm-step--navy .tcm-step__body h3 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.tcm-step--navy .tcm-step__body p {
  color: rgba(245, 245, 247, 0.82);
}

.tcm-step--navy .tcm-step__body p strong {
  color: #ffd76a;
}

.tcm-check {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.tcm-check li {
  position: relative;
  padding: 12px 14px 12px 42px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 215, 106, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.tcm-check li:hover {
  transform: translateX(4px);
  background: rgba(255, 215, 106, 0.1);
}

.tcm-check li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffd76a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%233d2a00' stroke-width='2.4' d='M3.5 8.2l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 0 12px rgba(255, 215, 106, 0.45);
}

/* ---------- Split feature ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-split--reverse .feature-split__media {
  order: 2;
}

.feature-split--reverse .feature-split__text {
  order: 1;
}

.feature-split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: #ddd;
}

.feature-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-split__text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.feature-split__text p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 14px;
}

.feature-split__meta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.meta-row strong {
  min-width: 88px;
  color: var(--text);
  font-weight: 700;
}

.meta-row span {
  color: var(--text-secondary);
}

/* ---------- Full bleed band ---------- */
.bleed-band {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bleed-band__media {
  position: absolute;
  inset: 0;
}

.bleed-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.bleed-band__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.15), rgba(10, 37, 64, 0.82));
}

.bleed-band__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 22px;
  color: #fff;
  width: 100%;
}

.bleed-band__content h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 14px;
}

.bleed-band__content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 42ch;
}

/* ---------- Certifications ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.cert-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.cert-card__img {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #eceef2;
}

.cert-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-card__img--contain {
  background: #f3f4f6;
  padding: 18px;
}

.cert-card__img--contain img {
  object-fit: contain;
}

.cert-card__body {
  padding: 24px 26px 28px;
}

.cert-card__body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cert-card__body p {
  font-size: 14.5px;
  color: var(--text-secondary);
}

.cert-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cert-stack .cert-card__img {
  aspect-ratio: 16 / 12;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.team-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #111;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-card__label {
  position: absolute;
  left: 22px;
  bottom: 22px;
  right: 22px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.team-card__label h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card__label p {
  font-size: 13px;
  opacity: 0.85;
}

/* ---------- Quote / philosophy ---------- */
.philosophy {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.philosophy blockquote {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: #f5f5f7;
}

.philosophy cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.55);
}

/* ---------- CTA clinic ---------- */
.clinic-cta {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.clinic-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.clinic-cta p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.clinic-cta__address {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.clinic-cta__address strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 6px;
}

.clinic-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 56px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 113, 227, 0.12), transparent 50%),
    linear-gradient(180deg, #eef2f7 0%, var(--bg) 100%);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 48ch;
  margin: 0 auto;
}

.page-hero__brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin: -4px auto 12px !important;
}

.brand-identity {
  padding-top: 36px !important;
  padding-bottom: 12px !important;
}

.brand-identity__text {
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.brand-identity__text a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-official {
  font-size: 13px;
  color: rgba(245, 245, 247, 0.78) !important;
  margin-bottom: 10px;
}

.footer-bottom a {
  color: rgba(245, 245, 247, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-hero--compact {
  padding: calc(var(--nav-h) + 40px) 0 28px;
}

.page-hero--compact h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 8px;
}

.page-hero--compact p {
  font-size: 15px;
}

/* ---------- About page ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.about-intro__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.about-intro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-intro__text h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.about-intro__text p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.timeline__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
}

.timeline__body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline__body p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ---------- Progress query (patient portal) ---------- */
.progress-page {
  position: relative;
  min-height: calc(100vh - 220px);
  padding: calc(var(--nav-h) + 48px) 0 72px;
  overflow: hidden;
}

.progress-page__atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, #0a2540 0%, #123652 42%, #1a4568 68%, #e8eef5 68.05%, #f3f5f8 100%);
  z-index: 0;
}

.progress-page__atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 72%);
}

.progress-page__atmosphere::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 68%);
  pointer-events: none;
}

.progress-page__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
}

.progress-head {
  text-align: center;
  color: #fff;
  margin-bottom: 36px;
  padding: 8px 12px 0;
}

.progress-head--compact {
  margin-bottom: 28px;
}

.progress-head__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
}

.progress-head h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}

.progress-head p {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
  margin: 0 auto;
}

.progress-shell {
  width: 100%;
}

.query-panel {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow:
    0 28px 60px rgba(10, 37, 64, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.65) inset;
  overflow: hidden;
}

.query-panel__banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 32px 22px;
  background:
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.query-panel__banner h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 6px;
}

.query-panel__banner p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 40ch;
}

.query-panel__lock {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.1);
  box-shadow: 0 8px 18px rgba(10, 37, 64, 0.06);
}

.query-panel__body {
  padding: 28px 32px 32px;
}

.query-panel label,
.admin-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.query-panel .field {
  margin-bottom: 20px;
}

.query-panel input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(10, 37, 64, 0.16);
  background: #fff;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  color: var(--text);
}

.admin-form textarea {
  height: auto;
  padding: 14px 16px;
  resize: vertical;
}

.query-panel input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(10, 37, 64, 0.12);
  background: #fff;
}

.query-panel__submit {
  width: 100%;
  margin-top: 6px;
  height: 52px;
  border-radius: 12px;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.phone-field {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  border: 1px solid rgba(10, 37, 64, 0.16);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-field:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(10, 37, 64, 0.12);
  background: #fff;
}

.phone-field__prefix {
  display: grid;
  place-items: center;
  min-width: 58px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  background: #f0f4f8;
  border-right: 1px solid rgba(10, 37, 64, 0.1);
}

.phone-field input {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  height: 50px;
}

.query-hint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.progress-footnote {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.result-box {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: 0 28px 60px rgba(10, 37, 64, 0.16);
  text-align: center;
}

.result-box--ok {
  border-color: rgba(0, 113, 227, 0.25);
  background: linear-gradient(180deg, #f5f9ff, #fff);
}

.result-box--err {
  border-color: rgba(155, 28, 28, 0.14);
}

.result-box__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fef2f2;
  color: #9b1c1c;
}

.result-box h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.result-box h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.result-box p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 38ch;
  margin: 0 auto 22px;
}

.result-box dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 16px;
  font-size: 15px;
}

.result-box dt {
  color: var(--text-muted);
  font-weight: 600;
}

.result-box dd {
  color: var(--text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(10, 37, 64, 0.08);
  color: var(--navy);
  white-space: nowrap;
  border: 1px solid rgba(10, 37, 64, 0.1);
}

/* Progress flow result */
.progress-result {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: 0 28px 60px rgba(10, 37, 64, 0.16);
  padding: 34px 34px 28px;
}

.progress-result__again {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
  text-align: center;
}

.progress-result__again .btn {
  min-width: 140px;
}

.progress-meta__full {
  grid-column: 1 / -1;
}

.progress-result__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.progress-result__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-result__head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.flow-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: visible;
  padding: 20px 8px 10px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: #f6f8fb;
  border: 1px solid rgba(10, 37, 64, 0.06);
}

.flow-step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0 4px 12px;
}

.flow-step__dot {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  color: var(--text-muted);
  border: 2px solid #d5dde7;
  position: relative;
  z-index: 1;
}

.flow-step__line {
  position: absolute;
  top: 16px;
  left: calc(50% + 19px);
  right: calc(-50% + 19px);
  height: 2px;
  background: #d5dde7;
  z-index: 0;
}

.flow-step__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.flow-step.is-done .flow-step__dot {
  background: #0d6b3a;
  border-color: #0d6b3a;
  color: #fff;
}

.flow-step.is-done .flow-step__line {
  background: #0d6b3a;
}

.flow-step.is-done .flow-step__label {
  color: #0d6b3a;
}

.flow-step.is-current .flow-step__dot {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(10, 37, 64, 0.12);
}

.flow-step.is-current .flow-step__label {
  color: var(--navy);
  font-weight: 800;
}

.progress-details {
  margin-top: 26px;
  padding: 22px 22px 18px;
  border-radius: 14px;
  background: #fbfcfe;
  border: 1px solid rgba(10, 37, 64, 0.08);
}

.progress-details__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.progress-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
}

.progress-meta dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.progress-meta dd {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
}

/* ---------- Admin (luru.php) ---------- */
.admin-body {
  background: #eef1f5;
  min-height: 100vh;
}

.admin-bar {
  background: var(--bg-dark);
  color: #fff;
  padding: 14px 0;
}

.admin-bar__inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.admin-bar nav {
  display: flex;
  gap: 16px;
}

.admin-bar a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
}

.admin-bar a:hover,
.admin-bar a.is-active {
  color: #fff;
}

.admin-bar a.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.admin-logout {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.admin-logout:hover {
  color: #fff;
}

.admin-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.admin-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.geo-country {
  font-weight: 700;
  color: var(--navy);
}

.geo-code {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: #eef2f7;
}

.geo-empty {
  color: var(--text-muted);
}

.admin-me {
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f7fb;
  font-size: 14px;
  color: var(--text-secondary);
}

.admin-me code {
  font-weight: 700;
  color: var(--navy);
}

.admin-me__warn {
  margin-top: 8px;
  color: #9b1c1c;
  font-weight: 700;
}

.admin-me__ok {
  margin-top: 8px;
  color: #0d6b3a;
  font-weight: 600;
}

.admin-me__muted {
  margin-top: 8px;
  color: var(--text-muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.geo-insight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.geo-insight__block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.geo-insight__block h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.geo-insight__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.geo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.geo-tag em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
}

.geo-tag:hover,
.geo-tag.is-active {
  background: #e3edf8;
  border-color: rgba(10, 37, 64, 0.15);
}

.geo-tag--muted {
  cursor: default;
}

.visitor-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 12px 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f4f7fb;
  border: 1px solid rgba(10, 37, 64, 0.06);
}

.visitor-filter__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  flex: 1;
}

.visitor-filter__field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.visitor-filter__field input,
.visitor-filter__field select {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(10, 37, 64, 0.14);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.visitor-filter__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding-bottom: 10px;
}

.geo-cell__country {
  margin-bottom: 4px;
}

.geo-cell__detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.admin-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.admin-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 6px;
}

.admin-stat span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-stat--warn strong {
  color: #c0392b;
}

.badge-blocked {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #fdecec;
  color: #9b1c1c;
  vertical-align: middle;
}

.admin-table tr.is-blocked-row {
  background: #fff8f7;
}

@media (max-width: 960px) {
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
}

.field--switch {
  margin-bottom: 22px;
}

.switch-label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--text) !important;
}

.switch-label input {
  width: 18px;
  height: 18px;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.access-panel {
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--line);
  background: #fafbfc;
}

.access-panel--allow {
  border-color: rgba(13, 107, 58, 0.22);
  background: #f3fbf6;
}

.access-panel--deny {
  border-color: rgba(192, 57, 43, 0.22);
  background: #fff7f6;
}

.access-panel h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.access-panel > p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.country-checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.country-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--text) !important;
  margin: 0 !important;
  cursor: pointer;
}

.country-check input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

@media (max-width: 960px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}

.admin-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 24px 28px 48px;
  box-sizing: border-box;
}

.admin-alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}

.admin-alert--ok {
  background: #e8f7ee;
  color: #0d6b3a;
}

.admin-alert--err {
  background: #fdecec;
  color: #9b1c1c;
}

.admin-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px 28px 28px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.admin-card h1,
.admin-card h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.admin-card h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

.admin-card__hint {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.admin-card__hint code {
  background: #f0f4f8;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--navy);
}

.admin-form__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
  margin-bottom: 22px;
}

.admin-form .field--full {
  grid-column: 1 / -1;
}

.admin-card--order {
  padding: 16px 20px 18px;
}

.admin-card__head--tight {
  margin-bottom: 12px;
}

.admin-card--order h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.admin-card__hint--tight {
  margin-bottom: 0;
  font-size: 13px;
}

.order-compose {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.6fr);
  gap: 16px;
  align-items: stretch;
}

.admin-form--compact {
  min-width: 0;
}

.admin-form__grid--order {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  margin-bottom: 12px;
}

.admin-form__grid--order .field--span2 {
  grid-column: span 2;
}

.admin-form__grid--order .field--full {
  grid-column: 1 / -1;
}

.admin-form--compact label {
  margin-bottom: 4px;
  font-size: 11px;
}

.admin-form--compact input,
.admin-form--compact select,
.admin-form--compact textarea {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
}

.admin-form--compact textarea {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
}

.admin-form--compact .phone-field__prefix {
  min-width: 44px;
  font-size: 13px;
}

.admin-form--compact .phone-field input {
  height: 38px;
}

.admin-smart--compact {
  margin-bottom: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}

.admin-smart--compact label {
  margin-bottom: 6px;
  font-size: 11px;
}

.admin-smart--compact textarea {
  flex: 1;
  min-height: 150px;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 10px;
}

.admin-smart--compact .admin-smart__actions {
  margin-top: 8px;
  gap: 10px;
}

.btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 10px;
}

@media (max-width: 1200px) {
  .admin-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-compose {
    grid-template-columns: 1fr;
  }

  .admin-form__grid--order {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-form__grid--order .field--span2 {
    grid-column: 1 / -1;
  }
}

.admin-form__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-empty {
  color: var(--text-muted);
  font-size: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.admin-table {
  width: 100%;
  min-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.admin-table__addr {
  max-width: none;
  min-width: 280px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-secondary);
}

.admin-query-meta {
  white-space: nowrap;
  font-size: 13px;
}

.admin-query-ip {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.list-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.list-filter input[type="search"],
.list-filter select {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.list-filter input[type="search"] {
  min-width: 240px;
}

.list-filter input[type="search"]:focus,
.list-filter select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.quick-status select {
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  max-width: 120px;
}

.paid-remain {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #8a5a00;
  white-space: nowrap;
}

.seo-section-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 18px 0 12px;
  color: var(--navy);
}

.seo-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin: 0 0 18px;
}

.seo-preview,
.seo-check {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.seo-count {
  float: right;
  font-weight: 700;
  color: var(--text-muted);
}

.seo-count.is-ok {
  color: #0d6b3a;
}

.seo-count.is-warn {
  color: #8a5a00;
}

.seo-check__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-check__list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
}

.seo-check__list li strong {
  width: 18px;
  flex: 0 0 auto;
}

.seo-check__list li em {
  display: block;
  font-style: normal;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.seo-check__list li.is-ok strong {
  color: #0d6b3a;
}

.seo-check__list li.is-bad strong {
  color: #c0392b;
}

@media (max-width: 960px) {
  .seo-top {
    grid-template-columns: 1fr;
  }
}

.seo-preview__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.seo-preview__title {
  color: #1a0dab;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.seo-preview__url {
  color: #006621;
  font-size: 13px;
  margin-bottom: 4px;
}

.seo-preview__desc {
  color: #4d5156;
  font-size: 13px;
  line-height: 1.45;
}

.admin-table__ops {
  white-space: nowrap;
}

.admin-table__ops a,
.admin-table__ops .link-danger {
  display: inline-block;
  margin-right: 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.admin-table__ops .link-danger {
  color: #c0392b;
}

.admin-table__ops .link-ok {
  display: inline-block;
  margin-right: 10px;
  font-weight: 700;
  font-size: 13px;
  color: #0d6b3a;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.admin-table__ops form {
  display: inline;
}

.admin-smart {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: var(--radius);
  background: #f4f7fb;
  border: 1px dashed rgba(0, 113, 227, 0.28);
}

.admin-smart label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.admin-smart textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.admin-smart textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.admin-smart__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.admin-smart__tip {
  font-size: 13px;
  color: var(--text-muted);
}

.admin-smart__tip.is-ok {
  color: #0d6b3a;
  font-weight: 600;
}

.admin-smart__tip.is-err {
  color: #9b1c1c;
  font-weight: 600;
}

.progress-result--delivered {
  text-align: center;
}

.delivered-safe {
  padding: 36px 20px 12px;
}

.delivered-safe__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f7ee;
  color: #0d6b3a;
  border: 1px solid rgba(13, 107, 58, 0.15);
}

.delivered-safe h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0d6b3a;
  margin-bottom: 12px;
}

.delivered-safe p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 38ch;
  margin: 0 auto;
}

.shipping-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.shipping-box__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.shipping-box__item strong {
  font-size: 16px;
  color: var(--navy);
}

.shipping-box__tracking {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  word-break: break-all;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(245, 245, 247, 0.72);
  padding: 56px 0 32px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 10px;
}

.footer-grid h4 {
  color: #f5f5f7;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(245, 245, 247, 0.45);
  font-size: 13px;
}

.footer-uptime {
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.footer-address {
  color: rgba(245, 245, 247, 0.72);
  transition: color 0.2s;
}

.footer-address:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Responsive (frontend only) ---------- */
@media (max-width: 960px) {
  .pillar-banner {
    grid-template-columns: 1fr;
  }

  .cred-strip {
    grid-template-columns: 1fr 1fr;
  }

  .expertise-grid,
  .feature-split,
  .feature-split--reverse,
  .cert-grid,
  .team-grid,
  .clinic-cta,
  .about-intro,
  .footer-grid,
  .tcm-step {
    grid-template-columns: 1fr;
  }

  .feature-split--reverse .feature-split__media,
  .feature-split--reverse .feature-split__text {
    order: initial;
  }

  .tcm-step:nth-child(even) .tcm-step__media,
  .tcm-step:nth-child(even) .tcm-step__body {
    order: initial;
  }

  .tcm-step__body,
  .tcm-step:nth-child(even) .tcm-step__body {
    padding: 32px 24px 36px;
  }

  .tcm-step--navy .tcm-step__body::before {
    inset: 12px;
  }

  .expertise-main {
    min-height: 400px;
  }

  .feature-split__media {
    aspect-ratio: 16 / 11;
  }

  .tcm-step__media,
  .tcm-step__media img {
    min-height: 240px;
  }

  .clinic-cta {
    padding: 32px 24px;
  }

  .progress-page__inner {
    max-width: 920px;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }

  .nav-inner {
    padding: 0 14px;
    gap: 12px;
  }

  .nav-brand__name {
    font-size: 16px;
  }

  .nav-brand__clinic {
    max-width: 46vw;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    background: rgba(29, 29, 31, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
  }

  .lang-switch {
    margin: 10px 0 0;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .lang-switch__item {
    font-size: 13px !important;
    padding: 10px 12px !important;
  }

  /* Home hero */
  .hero {
    min-height: min(100dvh, 760px);
    align-items: flex-end;
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 20px) 0 calc(40px + env(safe-area-inset-bottom, 0px));
  }

  .hero__content {
    padding: 0 16px;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(8, 16, 28, 0.45) 0%, rgba(8, 16, 28, 0.28) 35%, rgba(8, 16, 28, 0.88) 100%),
      linear-gradient(90deg, rgba(8, 16, 28, 0.72) 0%, rgba(8, 16, 28, 0.35) 100%);
  }

  .hero__media img {
    object-position: 68% center;
  }

  .hero__eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 56px);
    max-width: none;
    margin-bottom: 14px;
  }

  .hero__lead {
    font-size: 16px;
    max-width: none;
    margin-bottom: 24px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 48px;
  }

  /* Sections */
  .section {
    padding: 56px 0;
  }

  .section--tight {
    padding: 40px 0;
  }

  .section__sub {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .cred-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cred-strip__item {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .cred-strip__num {
    font-size: clamp(28px, 8vw, 36px);
  }

  .cred-strip__label {
    font-size: 12px;
  }

  .expertise-main {
    min-height: 280px;
    border-radius: 18px;
  }

  .expertise-main__caption {
    padding: 20px 18px;
  }

  .expertise-main__caption h3 {
    font-size: 24px;
  }

  .expertise-card {
    padding: 22px 18px;
  }

  .pillar-banner__item {
    padding: 18px 16px;
  }

  .tcm-steps {
    gap: 18px;
  }

  .tcm-step {
    border-radius: 18px;
  }

  .tcm-step__media,
  .tcm-step__media img {
    min-height: 200px;
  }

  .tcm-step__body,
  .tcm-step:nth-child(even) .tcm-step__body {
    padding: 26px 20px 28px;
  }

  .tcm-step__body p {
    max-width: none;
    font-size: 16px;
  }

  .tcm-check li {
    font-size: 14px;
    padding: 11px 12px 11px 38px;
  }

  .feature-split {
    gap: 28px;
  }

  .feature-split__media {
    aspect-ratio: 16 / 12;
    border-radius: 18px;
  }

  .meta-row {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .bleed-band {
    min-height: 52vh;
  }

  .bleed-band__content {
    padding: 48px 16px;
  }

  .bleed-band__content p {
    font-size: 15px;
  }

  .cert-card__body {
    padding: 18px 16px 20px;
  }

  .team-card {
    aspect-ratio: 16 / 12;
    border-radius: 18px;
  }

  .philosophy blockquote {
    font-size: clamp(24px, 7vw, 32px);
  }

  .clinic-cta {
    padding: 24px 18px;
    border-radius: 18px;
    gap: 24px;
  }

  .clinic-cta__actions .btn {
    width: 100%;
    min-height: 48px;
  }

  /* About */
  .page-hero {
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 36px) 0 28px;
  }

  .page-hero h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .page-hero p {
    font-size: 15px;
    padding: 0 4px;
  }

  .about-intro {
    gap: 28px;
  }

  .about-intro__photo {
    max-width: 260px;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
  }

  .about-intro__text h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .about-intro__text p {
    font-size: 15px;
  }

  .cert-stack {
    gap: 16px;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }

  .timeline__year {
    font-size: 22px;
  }

  /* Progress portal */
  .progress-page {
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px) 0 calc(48px + env(safe-area-inset-bottom, 0px));
  }

  .progress-page__atmosphere {
    background:
      linear-gradient(165deg, #0a2540 0%, #123652 34%, #1a4568 50%, #e8eef5 50.05%, #f3f5f8 100%);
  }

  .progress-head {
    margin-bottom: 22px;
    padding: 0;
  }

  .progress-head h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .progress-head p {
    font-size: 14px;
  }

  .query-panel,
  .result-box {
    max-width: none;
    border-radius: 16px;
  }

  .query-panel__banner,
  .query-panel__body,
  .progress-result,
  .result-box {
    padding-left: 16px;
    padding-right: 16px;
  }

  .query-panel__banner {
    padding-top: 18px;
    padding-bottom: 16px;
    align-items: center;
  }

  .query-panel__banner h2 {
    font-size: 24px;
  }

  .query-panel__banner p {
    font-size: 13px;
  }

  .query-panel__lock {
    width: 40px;
    height: 40px;
  }

  .query-panel__body {
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .query-panel input,
  .phone-field input {
    height: 48px;
    font-size: 16px; /* avoid iOS zoom */
  }

  .query-panel__submit {
    height: 50px;
  }

  .progress-result {
    padding-top: 22px;
    padding-bottom: 20px;
    border-radius: 16px;
  }

  .progress-result__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
  }

  .progress-result__head h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .status-pill {
    align-self: flex-start;
  }

  /* Vertical status steps on phone — no horizontal scrollbar */
  .flow-track {
    flex-direction: column;
    overflow: visible;
    padding: 8px 12px;
    gap: 0;
  }

  .flow-step {
    flex: none;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    column-gap: 12px;
    text-align: left;
    padding: 12px 0;
  }

  .flow-step__dot {
    margin: 0;
    width: 32px;
    height: 32px;
  }

  .flow-step__label {
    text-align: left;
    font-size: 13px;
  }

  .flow-step__line {
    top: 38px;
    left: 15px;
    right: auto;
    width: 2px;
    height: calc(100% - 20px);
    bottom: auto;
  }

  .flow-step:last-child .flow-step__line {
    display: none;
  }

  .progress-details {
    padding: 14px;
    margin-top: 18px;
  }

  .progress-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .result-box {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .result-box dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .result-box dt {
    margin-top: 8px;
  }

  .shipping-box {
    grid-template-columns: 1fr;
  }

  .progress-footnote {
    font-size: 11px;
    padding: 0 8px;
    line-height: 1.45;
  }

  /* Footer */
  .site-footer {
    padding: 40px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .footer-grid {
    gap: 28px;
    margin-bottom: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-uptime {
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .cred-strip__item {
    padding: 14px 12px;
  }

  .hero__eyebrow {
    display: block;
    line-height: 1.4;
    white-space: normal;
  }

  .expertise-card__badge {
    font-size: 10px;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
  }

  .query-panel__banner {
    gap: 10px;
  }

  .progress-head__eyebrow {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .about-intro__photo {
    max-width: 100%;
  }

  .section__title {
    font-size: clamp(30px, 9vw, 40px);
  }

  .tcm-step__num {
    font-size: 44px;
    margin-bottom: 12px;
  }

  .tcm-step__body h3 {
    font-size: clamp(26px, 7vw, 32px);
  }
}

/* Touch devices: reduce hover lift that feels sticky on mobile */
@media (hover: none) {
  .btn:hover {
    transform: none;
  }

  .expertise-card:hover,
  .cert-card:hover,
  .tcm-step:hover .tcm-step__media img {
    transform: none;
  }

  .expertise-card:hover {
    box-shadow: none;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__media img {
    animation: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
