:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #0b1220;
  --muted: #52607a;
  --accent: #2f6bf5;
  --accent-soft: #ffffff;
  --secondary: #1d9d8f;
  --whatsapp: #25d366;
  --telegram: #2aabee;
  --border: #dfe6f1;
  --shadow: 0 14px 34px rgba(11, 18, 32, 0.08), 0 2px 10px rgba(11, 18, 32, 0.04);
  --shadow-soft: 0 10px 22px rgba(11, 18, 32, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --space-xl: 96px;
  --space-lg: 72px;
  --space-md: 48px;
  --space-sm: 24px;
  --space-xs: 16px;
  --container: 1200px;
  --section-alt: #f6f8fb;
  font-family: "Inter", "Inter var", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Inter var", system-ui, sans-serif;
  line-height: 1.6;
  text-wrap: pretty;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 107, 245, 0.35);
  outline-offset: 3px;
}

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

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: var(--space-lg) 0;
}

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

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-sm);
  margin-bottom: 0;
}

.section__header p {
  max-width: 520px;
  color: var(--muted);
}

.section__header + * {
  margin-top: var(--space-sm);
}

.section__grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.top-bar {
  background: var(--surface);
  color: var(--ink);
  padding: 12px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.top-bar__city {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-bar__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar__cta {
  color: var(--ink);
  opacity: 0.7;
  font-weight: 600;
  border-bottom: 1px dashed rgba(11, 18, 32, 0.2);
  padding-bottom: 2px;
}

.city-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}

.city-toggle:hover {
  color: var(--accent);
}

.header-nav {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.header-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 20px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
}

.nav {
  display: flex;
  gap: 20px;
  font-weight: 500;
  color: var(--muted);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn {
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 10px;
}

.header-actions .btn,
.hero-offer__actions .btn,
.hero-offer__messengers .btn,
.top-bar .btn {
  margin-top: 0;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 107, 245, 0.22);
}

.btn--secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(29, 157, 143, 0.18);
}

.btn--link {
  background: transparent;
  color: var(--accent);
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 600;
  align-self: flex-start;
}

.btn--link:hover {
  transform: none;
  text-decoration: underline;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.18);
}

.btn--telegram {
  background: var(--telegram);
  color: #fff;
  box-shadow: 0 8px 18px rgba(42, 171, 238, 0.18);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  box-shadow: none;
}

.top-bar .btn--ghost {
  border-color: var(--border);
  color: var(--ink);
}

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

.hero-offer {
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--bg);
}

.hero-offer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/hero-bg.jpg");
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-offer::before {
    background-image: linear-gradient(180deg, rgba(246, 248, 251, 0.96) 0%, rgba(246, 248, 251, 0.82) 45%, rgba(246, 248, 251, 0.55) 70%, rgba(246, 248, 251, 0.2) 100%), url("images/hero-bg.jpg");
    background-position: left center;
  }
}

.hero-offer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-md);
  align-items: start;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.hero-offer h1 {
  font-size: clamp(2.2rem, 1.8vw + 1.6rem, 3.3rem);
  line-height: 1.1;
  margin: 16px 0;
}

.hero-offer__offers {
  color: var(--muted);
  font-weight: 600;
  margin: 12px 0 20px;
}

.hero-offer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 24px 0 16px;
}

.hero-offer__messengers {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-offer__messengers .btn {
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-offer__social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  margin-left: -10px;
}

.avatar-group img:first-child {
  margin-left: 0;
}

.usp-list {
  padding-left: 0;
  color: var(--muted);
}

.case-card ul {
  padding-left: 18px;
  margin: 12px 0 20px;
  color: var(--muted);
}

.case-card h3 {
  margin-top: 0;
}

.price-table h4 {
  margin: 0 0 6px;
}

.price-table p {
  margin: 0;
  font-weight: 600;
}

.review-card p {
  margin-top: 0;
}

.review-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 600;
}

.review-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-meta span {
  margin: 0;
  font-size: 0.85rem;
  display: inline-flex;
}

.faq-item h4 {
  margin-top: 0;
}

.hero-offer__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.hero-offer__stats strong {
  font-size: 1.4rem;
}

.hero-offer__stats .stat-label {
  display: block;
  max-width: 14ch;
  text-wrap: balance;
}

.hero-offer__visual {
  display: grid;
  gap: 20px;
  align-self: end;
}

.mini-form {
  background: transparent;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(223, 230, 241, 0.9);
  align-self: start;
  height: fit-content;
}

@media (min-width: 1025px) {
  .hero-offer {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .hero-offer::before {
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 22%, rgba(255, 255, 255, 0.7) 38%, rgba(255, 255, 255, 0) 52%), url("images/hero-bg.jpg");
    background-size: auto 100%;
    background-position: left center, right center;
  }

  .hero-offer__grid {
    min-height: clamp(560px, calc(100vh - 260px), 720px);
    align-items: stretch;
  }

  .hero-offer__visual {
    position: relative;
    min-height: 100%;
    align-content: end;
  }

  .mini-form {
    width: min(420px, 40vw);
    margin-bottom: 0;
    margin-top: auto;
    margin-bottom: 32px;
    z-index: 3;
  }
}

.trust-bar {
  background: var(--surface);
  padding: var(--space-sm) 0;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
}

.price-quiz .trust-bar__grid {
  margin-bottom: var(--space-sm);
}

.trust-card--wide {
  grid-column: span 2;
}

.trust-card.trust-card--license {
  background: var(--accent);
  border-left-color: var(--accent);
  color: #fff;
}

.trust-card.trust-card--license span,
.trust-card.trust-card--license strong {
  color: #fff;
}

.trust-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  border-left: 4px solid var(--accent);
}

.trust-card span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.trust-card strong {
  display: block;
  font-size: 1.1rem;
  text-wrap: balance;
}

.quiz-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
}

.quiz-panel h2 {
  margin-top: 0;
}

.quiz-panel h3 {
  margin-top: 16px;
}

.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  color: var(--muted);
}

.quiz-progress span {
  background: rgba(47, 107, 245, 0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.quiz-bar {
  flex: 1;
  height: 8px;
  background: rgba(47, 107, 245, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-bar span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--accent);
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quiz-option {
  background: var(--surface);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  aspect-ratio: 1 / 1;
}

.quiz-option img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(11, 18, 32, 0.04);
}

.quiz-option span {
  font-weight: 600;
}

.quiz-option:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 107, 245, 0.35);
}

.quiz-option:focus-visible {
  outline: 3px solid rgba(47, 107, 245, 0.25);
  outline-offset: 3px;
}

.quiz-option--ghost {
  justify-items: center;
  text-align: center;
  gap: 8px;
  border-style: dashed;
  border-color: rgba(47, 107, 245, 0.35);
  background: rgba(47, 107, 245, 0.04);
}

.quiz-option--ghost img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(47, 107, 245, 0.12);
  padding: 6px;
}

.quiz-hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.quiz-card--muted {
  background: rgba(47, 107, 245, 0.06);
  border: 1px solid rgba(47, 107, 245, 0.2);
}

.price-quiz .section__grid {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: var(--space-md);
}

.quiz-card__doctor {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.quiz-card__doctor img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.quiz-card__doctor strong {
  display: block;
  font-size: 0.95rem;
}

.quiz-card__doctor span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.quiz-help {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(11, 18, 32, 0.12);
  color: var(--muted);
  font-size: 0.85rem;
}

.quiz-help ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.quiz-card,
.inclusions,
.info-panel,
.form-card,
.contact-card,
.checklist,
.guarantee-card,
.travel-card,
.comfort-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(223, 230, 241, 0.9);
}

.icon-list {
  padding-left: 0;
  color: var(--muted);
}

.list-with-icons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-with-icons li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.list-with-icons li:last-child {
  margin-bottom: 0;
}

.list-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  color: currentColor;
  display: inline-block;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip--active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.chip:hover {
  border-color: rgba(47, 107, 245, 0.35);
  color: var(--accent);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.before-after-gallery .case-card {
  display: flex;
  flex-direction: column;
}

.before-after-gallery .case-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.before-after-gallery .case-photos img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.before-after-gallery .case-meta {
  padding: 0;
  margin-bottom: 12px;
}

.before-after-gallery .case-meta h3 {
  margin: 0 0 8px;
}

.before-after-gallery .case-meta p {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 600;
}

.before-after-gallery .case-meta p:last-child {
  margin-bottom: 0;
}

.before-after-gallery .case-note {
  margin: 0;
  color: var(--muted);
}

.before-after-gallery {
  background: var(--section-alt);
}

.before-after-gallery .section__header {
  margin-bottom: 18px;
}

.before-after-gallery .filter-bar {
  display: inline-flex;
  padding: 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(47, 107, 245, 0.12);
}

main > section:not(.hero-offer) {
  background: var(--section-alt);
}

main > section + section {
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .before-after-gallery .filter-bar {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .cases-grid {
    width: 100%;
    margin: 0;
  }

  .before-after-gallery .case-photos img {
    height: 140px;
  }
}

.case-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
}

.case-card.accent {
  background: var(--accent-soft);
  color: var(--ink);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

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

.clinic-gallery__item {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.clinic-gallery__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.clinic-gallery__item {
  scroll-snap-align: start;
}

.clinic-gallery__item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.clinic-gallery__item figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.method-card,
.resource-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
}

.card-media {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: block;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 16px;
}

.methods-overview__card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.methods-overview__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.methods-overview__media img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.methods-overview__content h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.methods-overview__content p {
  margin-bottom: 16px;
  color: var(--muted);
}

.methods-overview__content .list-with-icons {
  margin-bottom: 16px;
}

.method-card.is-featured,
.price-card.is-featured {
  border: 1px solid rgba(47, 107, 245, 0.35);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(47, 107, 245, 0.12);
  color: var(--accent);
  margin-bottom: 12px;
}

.card-tag--inline {
  margin: 4px 0 10px;
}

.method-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}

.method-card__title h3 {
  margin: 0;
}

.method-card__title .card-tag {
  margin: 0;
}

.price-card .card-tag {
  margin-bottom: 8px;
}

.price-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.price-table div {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
}

.price-card {
  position: relative;
}

.pricing-tabs__note {
  margin: 0 0 var(--space-sm);
  color: var(--muted);
  font-weight: 600;
}

.pricing-card__range {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.pricing-card__price {
  margin: 6px 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.pricing-card__fit {
  margin: 0 0 12px;
  color: var(--muted);
}

.pricing-tabs {
  margin-top: var(--space-sm);
}

.pricing-tabs + .pricing-tabs__note {
  margin-top: 8px;
}

.pricing-packages,
.pricing-includes,
.pricing-calc,
.pricing .faq-grid,
.payment-options .cards-grid,
.payment-options .faq-grid,
.licenses-safety .license-grid,
.licenses-safety .checklist,
.licenses-safety .cards-grid,
.licenses-safety .faq-grid,
.licenses-safety .section__cta,
.out-of-town .steps-grid,
.out-of-town .outtown-support,
.out-of-town .checklist-item,
.out-of-town .faq-grid,
.out-of-town .section__cta {
  margin-top: var(--space-sm);
}

.pricing-includes,
.pricing-calc,
.license-grid,
.outtown-support {
  align-items: start;
}

.calculator-result p {
  margin: 0 0 8px;
}

.calculator-disclaimer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.payment-card__lead {
  margin: 8px 0 16px;
  color: var(--muted);
  font-weight: 600;
}

.payment-card__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 107, 245, 0.08);
  margin-bottom: 12px;
}

.steps-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.license-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.license-gallery .card-media {
  height: auto;
  object-fit: contain;
}

.section__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: var(--space-sm);
}

.section__cta-note {
  color: var(--muted);
  margin: 0;
}

.checklist-item {
  margin: var(--space-sm) 0;
}

.checklist-item ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

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


.safety-grid,
.steps-grid,
.reviews-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.steps-grid {
  counter-reset: step;
}

.step-card {
  position: relative;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.safety-card,
.step-card,
.review-card,
.faq-item {
  align-self: start;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
}

.safety-card.is-featured {
  background: rgba(47, 107, 245, 0.08);
  font-weight: 600;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doctor-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doctor-card div {
  padding: 0;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.06);
  font-size: 0.75rem;
  font-weight: 600;
  margin: 6px 0 10px;
}

.hero-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  position: relative;
}

.timeline-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
}

.timeline-card__media {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: block;
}


.contact-booking__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-md);
  align-items: start;
}

.contact-note {
  margin: 12px 0 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(47, 107, 245, 0.08);
  color: var(--ink);
  font-weight: 600;
}

.form-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 500;
}

.form-card small,
.calculator-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

input,
textarea,
select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.footer {
  background: var(--surface);
  color: var(--ink);
  padding: var(--space-md) 0 var(--space-sm);
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.footer__grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.footer__bottom {
  text-align: center;
  margin-top: var(--space-sm);
  color: var(--muted);
}

.pill-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pill {
  background: rgba(11, 18, 32, 0.06);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar .icon-img {
  filter: none;
}

.icon-img {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 0 currentColor);
}

.nav-toggle .icon-img {
  width: 20px;
  height: 20px;
}

.btn--whatsapp .icon-img,
.btn--telegram .icon-img {
  filter: brightness(0) invert(1);
}

@media (max-width: 1024px) {
  :root {
    --space-xl: 80px;
    --space-lg: 64px;
  }

  .nav {
    display: none;
    width: 100%;
    order: 3;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-nav.is-open .nav {
    display: flex;
  }

  .header-nav__inner {
    flex-wrap: wrap;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-offer__grid,
  .section__grid,
  .contact-booking__grid {
    grid-template-columns: 1fr;
  }

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

  .methods-overview__card {
    grid-template-columns: 1fr;
  }

  .trust-bar__grid,
  .cases-grid,
  .cards-grid,
  .price-table,
  .safety-grid,
  .steps-grid,
  .reviews-grid,
  .faq-grid,
  .timeline,
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 1024px) {
  .quiz-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 64px;
    --space-lg: 48px;
    --space-md: 32px;
  }

  .hero-card img {
    height: 220px;
  }

  .before-after-gallery .case-photos img {
    height: 180px;
  }

  .hero-offer__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-offer__messengers {
    width: 100%;
  }

  .hero-offer__messengers .btn {
    width: 100%;
  }

  .trust-bar__grid,
  .cases-grid,
  .cards-grid,
  .price-table,
  .safety-grid,
  .steps-grid,
  .reviews-grid,
  .faq-grid,
  .timeline,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .top-bar__contacts {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
  }

  .top-bar__contacts a,
  .top-bar__cta,
  .pill,
  .pill-group {
    white-space: nowrap;
  }

  .pill-group {
    flex-wrap: nowrap;
  }

  .top-bar__city {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .top-bar__city span,
  .city-toggle {
    white-space: nowrap;
  }

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

  .price-quiz .section__grid {
    grid-template-columns: 1fr;
  }

  .quiz-card--muted {
    display: none;
  }
}

@media (max-width: 768px) {
  .quiz-options {
    grid-template-columns: 1fr;
  }

  .header-actions .btn--primary {
    display: none;
  }
}

@media (max-width: 520px) {
  .top-bar {
    font-size: 0.8rem;
    padding: 10px 0;
  }

  .header-nav__inner {
    flex-direction: row;
    align-items: center;
    padding: 16px 0;
    gap: 12px;
  }

  .header-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
  }

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

  .hero-card img {
    height: 200px;
  }

  .before-after-gallery .case-photos img {
    height: 160px;
  }

  .clinic-gallery__grid {
    grid-template-columns: 1fr;
  }

  .top-bar__inner {
    gap: 10px;
  }

  .top-bar__city {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .city-toggle {
    font-size: 0.8rem;
  }

  .top-bar__contacts {
    width: 100%;
    gap: 8px;
  }

  .top-bar__contacts > a {
    font-weight: 600;
  }

  .pill {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .top-bar .btn--ghost {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .logo {
    font-size: 1.1rem;
    line-height: 1.1;
  }

  .header-actions .btn--primary {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .nav {
    padding-top: 12px;
  }
}
