/* ============================================
   Holographic Light — Максат Курманалиев
   Стоматолог | Бишкек
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #fafbff;
  --surface: #ffffff;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: rgba(139, 92, 246, 0.1);
  --accent-rgb: 139, 92, 246;
  --bg-rgb: 250, 251, 255;
  --heading-font: 'Outfit', sans-serif;
  --body-font: 'Inter', sans-serif;
  --heading-weight: 700;
  --body-weight: 400;
  --radius: 20px;
  --radius-sm: 10px;
  --shadow: 0 4px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --gradient: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6, #06b6d4, #10b981);
  --gradient-reverse: linear-gradient(315deg, #ec4899, #8b5cf6, #3b82f6, #06b6d4, #10b981);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body-font);
  font-weight: var(--body-weight);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 251, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: var(--surface);
  background-clip: padding-box;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.nav-logo span {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  width: 100%;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(250, 251, 255, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: var(--bg);
}

/* Hero holographic blob decor */
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  top: -100px;
  right: -150px;
  background: var(--gradient);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.1;
  animation: heroBlob 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: -80px;
  left: -120px;
  background: var(--gradient-reverse);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  animation: heroBlob 10s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes heroBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  position: relative;
  z-index: 1;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 2.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero photo area */
.hero-photo {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
}

.hero-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid transparent;
  background: var(--gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  min-height: 48px;
  min-width: 44px;
  text-decoration: none;
  position: relative;
  overflow: visible;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Sections --- */
.section {
  position: relative;
  padding: 100px 24px;
  overflow: visible;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Holographic light rays (section shapes) */
.section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 3px;
  background: var(--gradient);
  filter: blur(40px);
  opacity: 0.08;
  transform: rotate(18deg);
  top: 15%;
  left: -100px;
  pointer-events: none;
}

.section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 2px;
  background: var(--gradient-reverse);
  filter: blur(40px);
  opacity: 0.06;
  transform: rotate(-25deg);
  bottom: 20%;
  right: -80px;
  pointer-events: none;
}

/* Rainbow gradient divider between sections */
.section-divider {
  height: 1px;
  background: var(--gradient);
  background-size: 200% 100%;
  animation: dividerShift 4s ease-in-out infinite;
  margin: 0;
  border: none;
  opacity: 0.4;
}

@keyframes dividerShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all var(--transition);
  position: relative;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Holographic gradient top stripe */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  border-radius: var(--radius) var(--radius) 0 0;
  background-size: 200% 100%;
  animation: dividerShift 5s ease-in-out infinite;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  outline: 2px solid transparent;
  outline-offset: -2px;
  background-image: var(--gradient);
  background-origin: border-box;
  background-clip: padding-box;
}

/* Holographic border on hover using pseudo-element */
.service-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--heading-font);
  background: linear-gradient(135deg, rgba(236,72,153,0.1), rgba(139,92,246,0.1));
  color: var(--accent);
  margin-bottom: 12px;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  text-align: center;
  transition: all var(--transition);
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.team-card-body {
  padding: 24px;
}

.team-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-card-body .role {
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-card-body .spec {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Rainbow overlay on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
  mix-blend-mode: overlay;
}

.gallery-item:hover::after {
  opacity: 0.35;
}

.gallery-item .gallery-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text);
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.gallery-item:hover .gallery-label {
  opacity: 1;
  transform: translateY(0);
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: 80px 24px;
  text-align: center;
  background: var(--surface);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gradient);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.06;
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

/* --- Footer --- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer h4 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo span {
  font-family: var(--heading-font);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

/* Contact list */
.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
}

.contact-list .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.5;
}

/* Map container */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
  box-shadow: var(--shadow);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* --- UTP / Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(139,92,246,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Responsive — Mobile First --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-stat .number {
    font-size: 1.6rem;
  }

  .hero-photo img {
    height: 240px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-item img {
    height: 240px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 60px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .map-container iframe {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 12px 16px;
  }

  .nav-logo span {
    font-size: 0.95rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .service-card-img {
    height: 180px;
  }

  .team-card img {
    height: 250px;
  }
}

/* --- Utility --- */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Text safety — prevent truncation */
.service-card,
.team-card,
.hero h1,
.section-header h2 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Page header for inner pages */
.page-header {
  padding: 140px 24px 60px;
  text-align: center;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: var(--gradient);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Service detail on services page */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.service-detail-img::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}

.service-detail-img:hover::after {
  opacity: 1;
}

.service-detail-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.service-detail-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-detail-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-detail-content .price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(139,92,246,0.08));
  border-radius: 50px;
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .service-detail-img img {
    height: 240px;
  }

  .page-header {
    padding: 110px 20px 40px;
  }
}
