/* ==========================================================================
   ORCHID — Cosmetology Clinic
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #efe6d8;
  --color-cream: #faf6f0;
  --color-white: #ffffff;
  --color-dark: #2b2620;
  --color-text: #4a453e;
  --color-text-light: #8a8378;
  --color-gold: #a9835a;
  --color-gold-dark: #8f6a44;
  --color-gold-light: #d9b98c;
  --color-border: #e3d9c8;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  --font-hero: 'Playfair Display', 'Cormorant Garamond', serif;

  --container-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --transition: 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 88px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

a, button, input, textarea {
  outline: none;
}
a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
textarea:focus {
  outline: none;
}

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

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

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-dark);
  margin: 0;
  font-weight: 600;
}

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

section { position: relative; }

/* ---------- Placeholder images ---------- */
.placeholder-img {
  background: linear-gradient(135deg, #e6dcc8 0%, #d6c7a8 50%, #cdb98f 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-img::before {
  content: attr(data-placeholder);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(43, 38, 32, 0.45);
  text-transform: uppercase;
  z-index: 2;
  text-align: center;
  padding: 8px 16px;
}
.placeholder-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.15) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.15) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.4;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: #ad9168;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(173, 145, 104, 0.3);
}
.btn--primary:hover {
  background: #96784f;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(173, 145, 104, 0.4);
}
.btn__arrow { display: inline-block; transition: transform var(--transition); }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--color-dark);
  padding: 16px 8px;
}
.btn--ghost .play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--color-dark);
  font-size: 12px;
  margin-right: 4px;
  transition: all var(--transition);
}
.btn--ghost:hover .play-icon {
  background: var(--color-dark);
  color: var(--color-cream);
  transform: scale(1.1);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), height var(--transition), background var(--transition);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 24px rgba(43, 38, 32, 0.06);
  height: 76px;
}

.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.logo__main {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-dark);
}
.logo__sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 2px;
  text-align: center;
}

.nav__list {
  display: flex;
  gap: 36px;
}
.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}
.nav__link:hover {
  color: var(--color-gold-dark);
}
.nav__link:hover::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}
.header__phone {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  transition: color var(--transition);
}
.header__phone:hover { color: var(--color-gold-dark); }
.header__hours {
  font-size: 11px;
  color: var(--color-text-light);
}

.header__cta { padding: 12px 26px; font-size: 13px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 600;
}
.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
  margin: 0 auto;
}
.burger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Mobile Nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-cream);
  z-index: 450;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: calc(var(--header-h) + 24px) 24px 24px;
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}
.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mobile-nav__link {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--color-dark);
}
.mobile-nav__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader-logo {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0.2em;
  color: var(--color-cream);
  opacity: 0;
  animation: preloaderFade 1.4s ease forwards;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes preloaderFade {
  0% { opacity: 0; letter-spacing: 0.5em; }
  60% { opacity: 1; }
  100% { opacity: 1; letter-spacing: 0.2em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 120px;
  background: var(--color-bg);
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.1) 30%,
    rgba(255, 255, 255, 0) 55%
  );
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
}
.hero__text { max-width: 560px; }
.hero__title {
  font-family: var(--font-hero);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.015em;
  margin-bottom: 24px;
  color: var(--color-dark);
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.7), 0 1px 4px rgba(255, 255, 255, 0.8);
}
.hero__desc {
  font-size: 17px;
  color: var(--color-text);
  max-width: 420px;
  margin-bottom: 40px;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.6);
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.hero .btn--ghost {
  color: var(--color-dark);
}
.hero .btn--ghost .play-icon {
  border-color: rgba(43, 38, 32, 0.5);
}
.hero .btn--ghost:hover .play-icon {
  background: var(--color-dark);
  color: var(--color-cream);
}
.hero__badge {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 6vw, 80px);
  bottom: 56px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: floatSlow 6s ease-in-out infinite;
}
.hero__badge strong {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--color-gold-dark);
  line-height: 1;
}
.hero__badge span {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 4px;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Features ---------- */
.features { padding: 40px 0 80px; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(43, 38, 32, 0.06);
}
.feature { text-align: left; }
.feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  transition: transform var(--transition), background var(--transition);
}
.feature:hover .feature__icon {
  transform: rotate(-8deg) scale(1.08);
  background: var(--color-gold-light);
}
.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.feature p {
  font-size: 13.5px;
  color: var(--color-text-light);
  margin: 0;
}

/* ---------- Section head ---------- */
.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
}
.section-title--center { text-align: center; margin-bottom: 56px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.link-arrow {
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gold-dark);
  transition: gap var(--transition);
}
.link-arrow:hover { gap: 14px; }

/* ---------- Services ---------- */
.services { padding: 80px 0; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(43, 38, 32, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(43, 38, 32, 0.14);
}
.service-card__img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  overflow: hidden;
}
.service-card__img::before { font-size: 11px; }
.service-card:hover .service-card__img { }
.service-card__body { padding: 24px; }
.service-card__body h3 {
  font-size: 19px;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 8px;
}
.service-card__body p {
  font-size: 13px;
  color: var(--color-text-light);
  min-height: 52px;
  margin: 0 0 18px;
}
.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.price {
  font-weight: 500;
  font-size: 14px;
  color: var(--color-dark);
}
.arrow-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.service-card:hover .arrow-link {
  background: var(--color-dark);
  color: var(--color-cream);
  border-color: var(--color-dark);
  transform: rotate(45deg);
}

/* ---------- Doctors ---------- */
.doctors { padding: 80px 0; background: var(--color-bg-alt); }
.doctors__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.doctor-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(43, 38, 32, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(43, 38, 32, 0.14);
}
.doctor-card__img {
  aspect-ratio: 3 / 3.5;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  display: block;
  overflow: hidden;
}
.doctor-card__img::before { font-size: 11px; }
.doctor-card__body { padding: 22px 24px 26px; text-align: center; }
.doctor-card__body h3 {
  font-size: 19px;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 6px;
}
.doctor-card__role {
  font-size: 13px;
  color: var(--color-gold-dark);
  font-weight: 500;
  margin: 0 0 4px;
}
.doctor-card__exp {
  font-size: 12.5px;
  color: var(--color-text-light);
  margin: 0;
}

/* ---------- About ---------- */
.about { padding: 80px 0; }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: stretch;
}
.about__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about__image {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.about__text {
  font-size: 16px;
  color: var(--color-text);
  margin: 24px 0 28px;
  max-width: 480px;
}
.about__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
}
.check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-gold-light);
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex: none;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.stat { position: relative; }
.stat__num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--color-gold-dark);
}
.stat span { font-size: 22px; font-family: var(--font-display); color: var(--color-gold-dark); font-weight: 600; }
.stat p {
  font-size: 12.5px;
  color: var(--color-text-light);
  margin: 4px 0 0;
}

/* ---------- Process ---------- */
.process {
  padding: 80px 0;
  background: var(--color-bg-alt);
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process__grid::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--color-gold) 0 8px, transparent 8px 16px);
  opacity: 0.5;
}
.process__step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 20px;
  box-shadow: 0 10px 24px rgba(43, 38, 32, 0.08);
  transition: transform var(--transition);
}
.process__step:hover .process__icon {
  transform: translateY(-6px) scale(1.05);
}
.process__num {
  display: block;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.process__step h3 {
  font-size: 19px;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 8px;
}
.process__step p {
  font-size: 13.5px;
  color: var(--color-text-light);
  max-width: 220px;
  margin: 0 auto;
}

/* ---------- Promo ---------- */
.promo {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: stretch;
}
.promo__slider { width: 100%; position: relative; }
.promo__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}
.promo__slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.promo__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.4);
}
.promo__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.promo__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,16,12,0.8) 0%, rgba(20,16,12,0.5) 55%, rgba(20,16,12,0.2) 100%);
}
.promo__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0;
  padding-top: 60px;
  padding-bottom: 60px;
  padding-left: 88px;
}
.promo__content h2 {
  color: var(--color-cream);
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 16px;
}
.promo__content p {
  color: rgba(250, 246, 240, 0.85);
  font-size: 15.5px;
  margin-bottom: 32px;
}
.promo__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(250, 246, 240, 0.4);
  background: rgba(255,255,255,0.08);
  color: var(--color-cream);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 3;
  transition: background var(--transition), transform var(--transition);
}
.promo__nav:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.08); }
.promo__nav--prev { left: 32px; }
.promo__nav--next { right: 32px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-dark);
  color: rgba(250, 246, 240, 0.75);
  padding: 72px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
}
.footer .logo__main { color: var(--color-cream); }
.footer .logo__sub { color: var(--color-gold-light); }
.footer__bottom {
  text-align: center;
  font-size: 12.5px;
  color: rgba(250, 246, 240, 0.5);
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__col h4 {
  color: var(--color-cream);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a, .footer__contacts li {
  font-size: 13.5px;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--color-gold-light); }

.footer__form {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 28px;
}
.footer__form h4 {
  color: var(--color-cream);
  font-size: 17px;
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.footer__form p {
  font-size: 13px;
  margin: 0 0 20px;
}
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.booking-form input {
  padding: 13px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.booking-form input::placeholder { color: rgba(250, 246, 240, 0.4); }
.booking-form input:focus {
  border-color: var(--color-gold-light);
  background: rgba(255,255,255,0.1);
}
.booking-form .btn { justify-content: center; margin-top: 4px; }
.form-success {
  font-size: 12.5px;
  color: var(--color-gold-light);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--transition), max-height var(--transition);
  margin: 0;
}
.form-success.is-visible { opacity: 1; max-height: 40px; margin-top: 4px; }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-dark);
  color: var(--color-cream);
  font-size: 18px;
  cursor: pointer;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
  box-shadow: 0 12px 28px rgba(43, 38, 32, 0.25);
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--color-gold-dark); }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Page Banner (inner-page header, e.g. Services / Contacts)
   ========================================================================== */
.page-banner {
  position: relative;
  overflow: hidden;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 56px) 0 64px;
  background: var(--color-bg);
}
.page-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.page-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.55) 55%,
    rgba(255, 255, 255, 0.7) 100%
  );
}
.page-banner__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
}
.page-banner__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 18px;
}
.page-banner h1 {
  font-family: var(--font-hero);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-dark);
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.7), 0 1px 4px rgba(255, 255, 255, 0.8);
}
.page-banner p {
  font-size: 16.5px;
  color: var(--color-text);
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto;
}

/* ==========================================================================
   Service Detail sections (services.html)
   ========================================================================== */
.service-detail { padding: 88px 0; }
.service-detail:nth-child(even) { background: var(--color-bg-alt); }
.service-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: stretch;
}
.service-detail--reverse .service-detail__inner { direction: rtl; }
.service-detail--reverse .service-detail__inner > * { direction: ltr; }
.service-detail__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-self: start;
  width: 100%;
  height: 460px;
}
.service-detail__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.service-detail__media .placeholder-img {
  width: 100%;
  height: 100%;
}
.service-detail__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-detail__eyebrow {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: 12px;
}
.service-detail__content h2 { margin-bottom: 18px; }
.service-detail__text {
  font-size: 16px;
  color: var(--color-text);
  max-width: 480px;
  margin-bottom: 28px;
}
.service-detail__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.service-detail__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
}
.service-detail__footer {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.service-detail__footer .price {
  font-size: 18px;
  font-weight: 600;
}

/* ==========================================================================
   Contact page (contact.html)
   ========================================================================== */
.contact-info { padding: 80px 0 40px; }
.contact-info__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.contact-info-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: left;
  box-shadow: 0 12px 32px rgba(43, 38, 32, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(43, 38, 32, 0.12);
}
.contact-info-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}
.contact-info-card h3 {
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 8px;
}
.contact-info-card p, .contact-info-card a {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}
.contact-info-card a:hover { color: var(--color-gold-dark); }

.contact-main { padding: 40px 0 88px; }
.contact-main__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.contact-main__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
}
.contact-main__map .placeholder-img { width: 100%; height: 100%; min-height: 420px; }
.contact-main__map iframe { display: block; width: 100%; height: 100%; min-height: 420px; }
.contact-form-panel {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 20px 60px rgba(43, 38, 32, 0.08);
}
.contact-form-panel h2 { margin-bottom: 10px; }
.contact-form-panel > p {
  font-size: 14.5px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-cream);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-dark);
  transition: border-color var(--transition), background var(--transition);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--color-text-light); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-gold);
  background: var(--color-white);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: flex-start; margin-top: 6px; }
.contact-form .form-success {
  font-size: 13px;
  color: var(--color-gold-dark);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--transition), max-height var(--transition);
  margin: 0;
}
.contact-form .form-success.is-visible { opacity: 1; max-height: 40px; margin-top: 4px; }

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .container { padding: 0 24px; }

  .nav { display: none; }
  .header__contact { display: none; }
  .burger { display: flex; }

  .hero { padding-top: calc(var(--header-h) + 48px); min-height: 100vh; min-height: 100dvh; }
  .hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.2) 60%,
      rgba(255, 255, 255, 0.3) 100%
    );
  }
  .hero__text { text-align: center; margin: 0 auto; }
  .hero__title { font-size: clamp(46px, 7vw, 58px); }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__badge { left: 0; right: 0; width: max-content; margin: 0 auto; bottom: 32px; }

  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }

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

  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__media { aspect-ratio: 4 / 3; }
  .about__content { text-align: center; }
  .about__text { margin-left: auto; margin-right: auto; }
  .about__list { align-items: center; }
  .about__list li { justify-content: center; }

  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .process__grid::before { display: none; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__form { grid-column: 1 / -1; }

  /* Page banner */
  .page-banner { min-height: 38vh; padding: calc(var(--header-h) + 40px) 0 48px; }

  /* Services detail */
  .service-detail { padding: 64px 0; }
  .service-detail__inner { grid-template-columns: 1fr; gap: 36px; }
  .service-detail--reverse .service-detail__inner { direction: ltr; }
  .service-detail__media { order: -1; height: 440px; }
  .service-detail__text { max-width: 100%; }
  .service-detail__footer { padding-top: 24px; }

  /* Contact page */
  .contact-info { padding: 56px 0 24px; }
  .contact-info__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .contact-main { padding: 24px 0 64px; }
  .contact-main__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-main__map { min-height: 320px; }
  .contact-main__map .placeholder-img,
  .contact-main__map iframe { min-height: 320px; }
  .contact-form-panel { padding: 32px; }
}

/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  :root { --header-h: 68px; }

  .header__cta { display: none; }
  .logo__main { font-size: 22px; }

  .hero {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 48px;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
  }
  .hero__bg img { object-position: 75% center; }
  .hero__title { font-size: 42px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__badge {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: max-content;
    margin: 0 auto;
    padding: 18px 26px;
  }
  .hero__badge strong { font-size: 30px; }

  .features { padding: 24px 0 56px; }
  .features__grid { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; text-align: center; }
  .feature { display: flex; flex-direction: column; align-items: center; }

  .services { padding: 56px 0; }
  .services__grid { grid-template-columns: 1fr; }
  .section-head { text-align: center; justify-content: center; }

  .doctors { padding: 56px 0; }
  .doctors__grid { grid-template-columns: 1fr; }

  .about { padding: 56px 0; }
  .about__stats { grid-template-columns: 1fr; gap: 20px; text-align: center; }

  .process { padding: 56px 0; }
  .process__grid { grid-template-columns: 1fr; gap: 36px; }

  .promo { min-height: 380px; }
  .promo__content { padding: 48px 24px; margin: 0; max-width: 100%; }
  .promo__nav { width: 40px; height: 40px; }
  .promo__nav--prev { left: 12px; }
  .promo__nav--next { right: 12px; }

  .footer { padding: 56px 0 24px; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__col ul { align-items: center; }
  .footer__col { display: flex; flex-direction: column; align-items: center; }
  .footer__bottom { margin-top: 40px; padding-top: 24px; }

  .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }

  .mobile-nav { gap: 32px; justify-content: flex-start; }
  .mobile-nav__list { gap: 20px; }
  .mobile-nav__link { font-size: 26px; }

  /* Page banner */
  .page-banner { min-height: 34vh; padding: calc(var(--header-h) + 28px) 0 40px; }
  .page-banner__content { padding: 0 20px; }
  .page-banner h1 { font-size: 32px; }
  .page-banner p { font-size: 15px; }

  /* Services detail */
  .service-detail { padding: 48px 0; }
  .service-detail__inner { gap: 28px; }
  .service-detail__media { height: 300px; }
  .service-detail__eyebrow { font-size: 13px; }
  .service-detail__footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .service-detail__footer .btn { width: 100%; justify-content: center; }

  /* Contact page */
  .contact-info { padding: 40px 0 16px; }
  .contact-info__grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-info-card { padding: 26px 22px; }

  .contact-main { padding: 16px 0 56px; }
  .contact-main__map { min-height: 240px; }
  .contact-main__map .placeholder-img,
  .contact-main__map iframe { min-height: 240px; }
  .contact-form-panel { padding: 26px 20px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 18px; }
  .contact-form .btn { width: 100%; justify-content: center; }
}
