/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Grounded in the material world of dentistry: enamel, gum, root-canal ink, X-ray slate */
  --ink: #1E2B3A;
  --paper: #FAF5EE;
  --paper-alt: #F1E8DC;
  --coral: #E15B4D;
  --coral-dark: #B93F32;
  --blush: #F3DAD1;
  --slate: #4C7089;
  --line: #E3D6C4;
  --radius: 4px;
  --radius-lg: 28px 4px;
  --shadow: 0 18px 40px -12px rgba(30, 43, 58, 0.18);
  --container: 1180px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  color: var(--coral-dark);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--coral);
  display: inline-block;
}

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

.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: #5B6672; font-size: 1.02rem; }

section { padding: 104px 0; }

/* reveal-on-scroll, applied once via IntersectionObserver in script.js */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--coral-dark); transform: translateY(-2px); }

.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }

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

.btn:focus-visible, .nav__link:focus-visible, .lang-switch__btn:focus-visible,
.gallery__item:focus-visible, .burger:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--blush);
  color: var(--coral-dark);
  flex-shrink: 0;
}
.logo__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
}
.logo__text small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.logo__text--light, .logo__text--light small { color: #fff; }

.nav { display: flex; gap: 32px; }
.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--coral);
  transition: width 0.2s ease;
}
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone { font-family: var(--font-mono); font-weight: 500; color: var(--ink); font-size: 0.9rem; }
.header__phone:hover { color: var(--coral-dark); }

.lang-switch {
  display: flex;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch__btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-switch__btn.active { background: var(--coral); color: #fff; }
.lang-switch__btn:not(.active):hover { color: var(--coral-dark); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
}

.hero__arc {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 160%);
  color: var(--coral);
  opacity: 0.16;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 64px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  margin: 14px 0 22px;
}
.hero h1 span { font-style: italic; color: var(--coral-dark); }

.hero__text { font-size: 1.08rem; max-width: 480px; margin-bottom: 34px; color: #4A5560; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__image {
  position: relative;
}
.hero__image::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 90%;
  height: 90%;
  border: 1.5px solid var(--coral);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.hero__image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* quiet trust strip — deliberately not the hero's focal device */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}
.trust-strip__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
  padding: 18px 0;
}
.trust-strip__item {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  padding: 0 28px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.trust-strip__item:last-child { border-right: none; }
.trust-strip__item b { color: var(--coral-dark); font-weight: 600; }

/* ===== SERVICES ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--paper);
  padding: 36px 32px;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--blush); }

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--coral);
  color: var(--coral-dark);
  margin-bottom: 22px;
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 600; }
.service-card p { font-size: 0.92rem; color: #5B6672; }

/* ===== PRICES — styled as a clinic price ledger ===== */
.prices { background: var(--ink); color: rgba(255,255,255,0.85); }
.prices .section-head h2 { color: #fff; }
.prices .section-head p { color: rgba(255,255,255,0.55); }
.prices .eyebrow { color: #F0A79B; }
.prices .eyebrow::before { background: #F0A79B; }

.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
}

.price-card {
  background: var(--ink);
  padding: 28px 30px;
}
.price-card h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: #F0A79B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255,255,255,0.25);
}

.price-card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: rgba(255,255,255,0.85);
}
.price-card li span {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.85);
}
.price-card li b {
  color: #fff;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ===== ABOUT ===== */
.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about__image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about__content p { margin-bottom: 16px; color: #4A5560; }
.about__content h2 { margin-bottom: 18px; }

.about__list { margin-top: 24px; display: grid; gap: 14px; }
.about__list li {
  padding-left: 28px;
  position: relative;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 1.5px;
  background: var(--coral);
}

/* ===== GALLERY — asymmetric layout, not a uniform grid ===== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 14px;
}
.gallery__item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  grid-column: span 1;
  grid-row: span 2;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 3; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.06); }

/* ===== CONTACTS ===== */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.contacts__info { display: flex; flex-direction: column; gap: 26px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--coral);
  color: var(--coral-dark);
  flex-shrink: 0;
}
.contact-item h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 6px;
}
.contact-item p { font-size: 1rem; }
.contact-item p a:hover { color: var(--coral-dark); }
.contacts__info .btn { align-self: flex-start; margin-top: 8px; }

.contacts__map {
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* ===== FOOTER ===== */
.footer { background: var(--ink); color: rgba(255,255,255,0.65); padding-top: 0; }
.footer__arc { display: block; width: 100%; height: auto; color: var(--coral); opacity: 0.5; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 48px;
}
.footer__brand p { margin-top: 12px; font-size: 0.9rem; }
.footer__col h4 {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 18px;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer__col a:hover { color: #fff; }
.footer__social { display: flex; gap: 14px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 43, 58, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }
.lightbox__close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image img { height: 340px; }
  .hero__inner .hero__content { order: 2; }
  .hero__inner .hero__image { order: 1; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .prices__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; }
  .about__image img { height: 320px; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
  .contacts__grid { grid-template-columns: 1fr; }
  .contacts__map { min-height: 320px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .trust-strip__item { padding: 0 16px; font-size: 0.76rem; }
}

@media (max-width: 768px) {
  section { padding: 68px 0; }
  .nav {
    position: fixed;
    top: 84px;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav.active { transform: translateY(0); }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .header__phone { display: none; }
  .burger { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
  .prices__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .gallery__item--wide { grid-column: span 2; }
  .footer__inner { grid-template-columns: 1fr; padding-bottom: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
  .header__actions { gap: 10px; }
  .btn--sm { padding: 9px 14px; font-size: 0.78rem; }
  .trust-strip__item { flex: 1 1 100%; border-right: none; border-bottom: 1px dashed var(--line); padding: 8px 0; text-align: center; }
  .trust-strip__item:last-child { border-bottom: none; }
}
