/* ============================================
   АГ Център Тиара — Main Stylesheet
   Design inspired by Physician theme layout
   Color palette: Plum, Rose Pink, Peach (from logo)
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #B8508A;
  --color-primary-dark: #4A1942;
  --color-primary-light: #FAE8E0;
  --color-accent-gold: #E8967C;
  --color-heading: #4A1942;
  --color-text: #5A4A55;
  --color-text-light: #8A7A85;
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FDF5F8;
  --color-bg-dark: #4A1942;
  --color-border: #EDD8E0;
  --color-border-light: #F5E8ED;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Nunito', Helvetica, Arial, sans-serif;
  --max-width: 1290px;
  --content-width: 850px;
  --transition: all 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.85rem); }
h4 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1em; }

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--color-primary); }

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

ul, ol { padding-left: 1.5em; }
li { margin-bottom: 0.4em; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

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

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.divider {
  width: 50px;
  height: 2px;
  background: var(--color-primary);
  margin: 1.5rem auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 2em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-heading);
  border: 2px solid var(--color-heading);
}
.btn--outline:hover {
  background: var(--color-heading);
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-heading);
}
.btn--white:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--gold {
  background: var(--color-accent-gold);
  color: var(--color-white);
}
.btn--gold:hover {
  background: #D07A62;
  color: var(--color-white);
}

.btn--lg {
  padding: 1em 2.5em;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.6em 1.5em;
  font-size: 0.8rem;
}

/* ---------- Header / Navigation ---------- */
.header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 80px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-heading);
}

.header__logo-icon {
  width: auto;
  height: 50px;
  max-width: 200px;
  object-fit: contain;
}

.header__logo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.header__logo-text small {
  display: none;
}

.nav { display: flex; align-items: center; }

.nav__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.nav__item { position: relative; }

.nav__link {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-heading);
  text-decoration: none;
  transition: var(--transition);
}
.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
}

/* Dropdown */
.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 240px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  z-index: 100;
  padding: 0.5rem 0;
  list-style: none;
}

.nav__item:hover .nav__dropdown {
  display: block;
}

.nav__dropdown a {
  display: block;
  padding: 0.55rem 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text);
}
.nav__dropdown a:hover {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  margin: 5px 0;
  transition: var(--transition);
}

.header__cta {
  margin-left: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.hero__bg {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary-light);
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--color-bg-alt) 0%, rgba(251,247,244,0.3) 50%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 4rem 0;
}

.hero__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.2rem, 1.5rem + 3.5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-heading);
}

.hero__text {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero - centered variant */
.hero--centered {
  text-align: center;
  justify-content: center;
  min-height: 50vh;
  background: var(--color-bg-alt);
}

.hero--centered .hero__bg {
  width: 100%;
  opacity: 0.15;
}

.hero--centered .hero__content {
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--color-bg-alt);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.page-hero__title {
  margin-bottom: 0.75rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { margin: 0 0.4rem; }

/* ---------- Features Grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 2.5rem;
}

.feature__icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
}

.feature__title {
  margin-bottom: 0.75rem;
}

.feature__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(184,80,138,0.12);
  transform: translateY(-4px);
}

.service-card__icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: block;
}

.service-card__icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
}

.service-card__title {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.service-card__text {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.service-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-dark);
}
.service-card__link:hover {
  color: var(--color-primary);
}

/* ---------- Team Cards ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.team-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.team-card__image {
  flex: 0 0 280px;
  aspect-ratio: 3/4;
  background: var(--color-primary-light);
  overflow: hidden;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__content {
  flex: 1;
}

.team-card__name {
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-card__rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-accent-gold);
  margin-bottom: 1rem;
}

.team-card__text {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

/* ---------- Team Slider (homepage) ---------- */
.team-slider {
  position: relative;
  max-width: 860px;
  margin: 3rem auto 0;
  padding: 0 3.5rem;
}

.team-slider__viewport {
  overflow: hidden;
}

.team-slider__track {
  display: flex;
  transition: transform 0.6s ease;
}

.team-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.team-slider__slide .team-card {
  align-items: center;
}

.team-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-primary-light);
  background: #fff;
  color: var(--color-primary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  z-index: 2;
}

.team-slider__arrow:hover {
  background: var(--color-primary);
  color: #fff;
}

.team-slider__arrow--prev { left: 0; }
.team-slider__arrow--next { right: 0; }

.team-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.team-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color-primary-light);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.team-slider__dot--active {
  background: var(--color-primary);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .team-slider { padding: 0; }
  .team-slider__arrow { display: none; }
  .team-slider__slide .team-card { align-items: center; text-align: center; }
  .team-slider__slide .team-card__image { margin: 0 auto; }
  .team-slider__slide .team-card__rating { justify-content: center; }
}

/* ---------- Doctor Profile Page ---------- */
.doctor-profile {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.doctor-profile__image {
  aspect-ratio: 3/4;
  background: var(--color-primary-light);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.doctor-profile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-profile__info h1 {
  margin-bottom: 0.25rem;
}

.doctor-profile__specialty {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.doctor-profile__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.doctor-profile__rating .stars {
  color: var(--color-accent-gold);
}

.doctor-profile__section {
  margin-bottom: 2.5rem;
}

.doctor-profile__section h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.doctor-profile__section ul {
  list-style: none;
  padding: 0;
}

.doctor-profile__section ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.doctor-profile__section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ---------- Testimonials ---------- */
.testimonials-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.testimonials-carousel::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-border-light);
  position: relative;
}

.testimonial-card__quote {
  font-size: 2rem;
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.testimonial-card__text {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--color-text);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 1.1rem;
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--color-heading);
  font-size: 0.95rem;
}

.testimonial-card__meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ---------- CTA Section ---------- */
.cta {
  background: var(--color-primary);
  padding: 4rem 0;
  text-align: center;
  color: var(--color-white);
}

.cta h2 { color: var(--color-white); margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }

/* ---------- Prices Table ---------- */
.prices-table {
  width: 100%;
  border-collapse: collapse;
}

.prices-table th,
.prices-table td {
  padding: 1.15rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.prices-table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
}

.prices-table td:last-child {
  font-weight: 700;
  color: var(--color-heading);
  white-space: nowrap;
}

.prices-table tr:hover td {
  background: var(--color-bg-alt);
}

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.blog-card__image {
  aspect-ratio: 4/3;
  background: var(--color-primary-light);
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__content {
  padding: 1.75rem 1.5rem;
}

.blog-card__meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.blog-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-card__title a {
  color: var(--color-heading);
}
.blog-card__title a:hover {
  color: var(--color-primary);
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- Blog Article ---------- */
.article {
  max-width: 800px;
  margin: 0 auto;
}

.article__meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.article__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article__author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.article__content {
  font-size: 1.05rem;
  line-height: 1.9;
}

.article__content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.article__content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.article__content p {
  margin-bottom: 1.25em;
}

.article__content ul,
.article__content ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.article__content li {
  margin-bottom: 0.5em;
}

.article__content blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--color-bg-alt);
  font-style: italic;
  color: var(--color-heading);
}

.article__content strong {
  color: var(--color-heading);
}

.article__tags {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.3em 0.9em;
  font-size: 0.8rem;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info__item {
  margin-bottom: 2rem;
}

.contact-info__label {
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.contact-info__value {
  color: var(--color-text);
  font-size: 0.95rem;
}

.contact-info__value a {
  color: var(--color-primary-dark);
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 0.4rem;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-heading);
  transition: var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(184,80,138,0.1);
}

.form__textarea { min-height: 150px; resize: vertical; }

/* ---------- Map ---------- */
.map-wrapper {
  width: 100%;
  height: 400px;
  border: 1px solid var(--color-border);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__logo {
  height: 60px;
  margin-bottom: 1rem;
}

.footer__text {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer__links {
  list-style: none;
  padding: 0;
}

.footer__links li { margin-bottom: 0.6rem; }

.footer__links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.footer__links a:hover {
  color: var(--color-primary);
}

.footer__contact-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
}
.footer__social a:hover {
  color: var(--color-primary);
}

/* ---------- Technology Page ---------- */
.tech-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.tech-section--reverse {
  direction: rtl;
}
.tech-section--reverse > * {
  direction: ltr;
}

.tech-image {
  aspect-ratio: 4/3;
  background: var(--color-primary-light);
  overflow: hidden;
}

.tech-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-features {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.tech-features li {
  padding: 0.6rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border-light);
}

.tech-features li:last-child { border-bottom: none; }

.tech-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--color-primary-light);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ---------- Two Column Content ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }

/* ---------- Appointment Page ---------- */
.appointment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.appointment-card {
  border: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.appointment-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(184,80,138,0.1);
}

.appointment-card__icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.appointment-card h3 {
  margin-bottom: 0.75rem;
}

.appointment-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
  .team-card__image { flex: 0 0 auto; width: 100%; max-width: 380px; }
  .doctor-profile { grid-template-columns: 1fr; }
  .doctor-profile__image { position: static; max-width: 400px; }
  .tech-section { grid-template-columns: 1fr; }
  .tech-section--reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col--reverse { direction: ltr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav__list { display: none; }
  .nav__toggle { display: block; }
  .header__cta { display: none; }

  .nav__list--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 1rem 0;
    z-index: 999;
  }

  .nav__dropdown {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
  }

  .nav__item:hover .nav__dropdown {
    display: none;
  }
  .nav__item.open .nav__dropdown {
    display: block;
  }

  .hero { min-height: auto; padding: 3rem 0; }
  .hero__bg { display: none; }
  .hero__content { max-width: 100%; padding: 2rem; }
  .hero--centered .hero__content { padding: 2rem 1.5rem; }

  .section { padding: 3rem 0; }

  .features { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .appointment-options { grid-template-columns: 1fr; }

  .testimonial-card { flex: 0 0 300px; }

  .container { padding: 0 1.25rem; }

  .prices-table { font-size: 0.85rem; }
  .prices-table th, .prices-table td { padding: 0.85rem 1rem; }
}

/* ---------- Scroll animations (basic) ---------- */
.fade-in {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only hide when JS is available (html.js set early in <head>).
   Without JS the content stays fully visible — no reliance on the observer. */
.js .fade-in {
  opacity: 0;
  transform: translateY(20px);
}

.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Skip to content ---------- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 0;
  color: var(--color-white);
}

/* ---------- Focus styles ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ---------- Utility classes for inline style migration ---------- */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aspect-3-4 { aspect-ratio: 3/4; }
.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-1 { aspect-ratio: 1; }

.rounded { border-radius: 1rem; }
.overflow-hidden { overflow: hidden; }

.flex-center {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Form: honeypot + status message ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form__status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.form__status--success {
  background: #e7f6ec;
  color: #1c6b3c;
  border: 1px solid #b7e0c4;
}

.form__status--error {
  background: #fdecec;
  color: #a12626;
  border: 1px solid #f3c2c2;
}
