:root {
  --ink: #102027;
  --muted: #5c6a70;
  --line: #d9e3e3;
  --paper: #ffffff;
  --soft: #f4f8f7;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --blue: #255f85;
  --gold: #b8842f;
  --gold-soft: #fff4df;
  --danger: #8b2e2e;
  --shadow: 0 18px 50px rgba(16, 32, 39, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar {
  background: var(--teal-dark);
  color: #e9ffff;
  font-size: 13px;
}

.topbar-inner,
.nav-inner,
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
}

.topbar a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.brand {
  display: grid;
  grid-template-columns: 52px auto;
  gap: 12px;
  align-items: center;
  min-width: 230px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  object-fit: contain;
  padding: 4px;
}

.brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 10px 11px;
  border-radius: 8px;
  color: #20343c;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--soft);
  color: var(--teal-dark);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  background: var(--teal-dark);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
  transform: translateY(-1px);
}

.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--soft);
  box-shadow: none;
}

.button.gold {
  background: var(--gold);
}

.button.gold:hover {
  background: #8d611e;
}

.hero,
.page-hero {
  background:
    linear-gradient(90deg, rgba(244, 248, 247, 0.98) 0%, rgba(244, 248, 247, 0.9) 48%, rgba(244, 248, 247, 0.2) 100%),
    url("../img/live/optimized/hero-hair-transplant.jpg") center right / min(820px, 60vw) auto no-repeat,
    var(--soft);
  border-bottom: 1px solid var(--line);
}

.hero .section-inner,
.page-hero .section-inner {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 610px) 1fr;
  align-items: center;
  gap: 40px;
  padding: 84px 0 72px;
}

.page-hero .section-inner {
  min-height: 430px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  background: var(--gold);
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin-top: 14px;
  font-size: 54px;
  max-width: 720px;
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 21px;
}

.lead {
  margin-top: 20px;
  color: #425259;
  font-size: 18px;
  max-width: 700px;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
  max-width: 690px;
}

.metric {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.metric strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  color: var(--teal-dark);
}

.metric span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: var(--soft);
}

.section.compact {
  padding: 58px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 38px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 24px;
  min-width: 0;
}

.card.accent {
  border-top: 4px solid var(--teal);
}

.card.goldline {
  border-top: 4px solid var(--gold);
}

.card p,
.card li {
  color: var(--muted);
}

.card h3 + p {
  margin-top: 10px;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 900;
}

.media-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}

.feature-media {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.step-list {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.step-number {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--teal-dark);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.cta-band {
  background: var(--teal-dark);
  color: white;
}

.cta-band .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta-band p {
  color: #d5eeee;
  margin-top: 12px;
  max-width: 720px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
}

.contact-item strong {
  display: block;
  color: var(--ink);
}

.form {
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: #32454d;
  font-weight: 700;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd8d8;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
}

.gallery-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 9px 12px;
  font-weight: 750;
  color: var(--muted);
  cursor: pointer;
}

.chip.active,
.chip:hover {
  color: white;
  border-color: var(--teal);
  background: var(--teal);
}

.result-card {
  overflow: hidden;
  padding: 0;
}

.result-visual {
  min-height: 230px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eef5f5;
}

.result-visual.single {
  grid-template-columns: 1fr;
}

.result-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.photo-pair {
  min-height: 260px;
}

.photo-pair img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.result-half {
  position: relative;
  display: grid;
  place-items: center;
  color: #496066;
  font-weight: 800;
  background: var(--soft);
}

.result-half + .result-half {
  border-left: 1px solid white;
}

.result-body {
  padding: 18px;
}

.result-body p {
  color: var(--muted);
  margin-top: 7px;
}

.calculator {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: stretch;
}

.grade-list {
  display: grid;
  gap: 10px;
}

.grade-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.grade-button strong {
  display: block;
  color: var(--ink);
}

.grade-button span {
  color: var(--muted);
}

.grade-button.active {
  border-color: var(--teal);
  box-shadow: inset 4px 0 0 var(--teal);
}

.estimate-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 28px;
}

.estimate-total {
  font-size: 38px;
  font-weight: 850;
  color: var(--teal-dark);
  line-height: 1.1;
}

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

.estimate-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft);
}

.estimate-item strong {
  display: block;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: white;
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: var(--teal-dark);
  color: white;
}

tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  background: white;
  color: var(--ink);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.faq-item.open .faq-question::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}

.site-footer {
  background: #101b20;
  color: #dce8eb;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 1fr;
  gap: 30px;
}

.site-footer h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: #b8c9ce;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #94a8ad;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 29px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: white;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-inner > .button {
    display: none;
  }

  .hero,
  .page-hero {
    background:
      linear-gradient(180deg, rgba(244, 248, 247, 0.98) 0%, rgba(244, 248, 247, 0.94) 62%, rgba(244, 248, 247, 0.68) 100%),
      url("../img/live/optimized/hero-hair-transplant.jpg") bottom right / 720px no-repeat,
      var(--soft);
  }

  .hero .section-inner,
  .page-hero .section-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 64px 0 230px;
  }

  .section-heading,
  .media-split,
  .contact-grid,
  .calculator,
  .cta-band .section-inner {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .topbar-inner {
    flex-direction: column;
    gap: 4px;
  }

  .topbar-inner,
  .nav-inner,
  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 16px;
  }

  .section {
    padding: 58px 0;
  }

  .trust-strip,
  .grid.two,
  .grid.three,
  .field-grid,
  .estimate-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero .section-inner,
  .page-hero .section-inner {
    padding-bottom: 190px;
  }

  .hero-actions,
  .gallery-tools {
    flex-direction: column;
  }

  .button,
  .chip {
    width: 100%;
  }

  .result-visual {
    min-height: 190px;
  }
}
