/* ============================================
   LIGHT NEON — Клиника Ысакбекова
   Киберпанк meets Apple-чистота
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #f4f5fb;
  --surface: rgba(255, 255, 255, 0.8);
  --accent: #00e5ff;
  --accent-hover: #00b8d4;
  --accent-secondary: #b388ff;
  --accent-tertiary: #ff4081;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: rgba(0, 229, 255, 0.15);
  --accent-rgb: 0, 229, 255;
  --bg-rgb: 244, 245, 251;
  --heading-font: 'Orbitron', 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);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--body-font);
  font-weight: var(--body-weight);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 24px;
}

.preloader-logo {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 245, 251, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.2);
}

.nav-brand-text {
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--body-font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.02em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transition: var(--transition);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--heading-font);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
}

.nav-cta:hover {
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.5);
  transform: translateY(-2px);
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

.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 {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(244, 245, 251, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Hero dot-grid pattern */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(var(--accent-rgb), 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Hero neon blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.hero-blob--cyan {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: 10%;
  left: -5%;
  animation: float-blob 28s ease-in-out infinite;
}

.hero-blob--purple {
  width: 350px;
  height: 350px;
  background: var(--accent-secondary);
  top: 20%;
  right: -8%;
  animation: float-blob 25s ease-in-out infinite reverse;
}

.hero-blob--pink {
  width: 300px;
  height: 300px;
  background: var(--accent-tertiary);
  bottom: 5%;
  left: 30%;
  animation: float-blob 30s ease-in-out infinite 5s;
}

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-family: var(--heading-font);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 20px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 50px;
  color: var(--accent-hover);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.1);
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 40px rgba(var(--accent-rgb), 0.3));
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Hero doctor photo */
.hero-photo-wrapper {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 280px;
  height: 340px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 3px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.15), var(--shadow-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
  min-width: 44px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.55);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.1);
}

.btn-outline:hover {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.3);
  transform: translateY(-3px);
}

/* --- Section Base --- */
.section {
  padding: 100px 24px;
  position: relative;
  overflow: visible;
}

/* Section dot texture */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(var(--accent-rgb), 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Section floating blobs (decorative) */
.section-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* Gradient dividers */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-secondary), var(--accent-tertiary), transparent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
  border: none;
  margin: 0;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: visible;
  transition: var(--transition);
  position: relative;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.2), var(--shadow-lg);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card-body {
  padding: 24px;
}

.service-card-title {
  font-family: var(--heading-font);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--heading-font);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  transition: var(--transition);
}

.service-card-link:hover {
  color: var(--accent-hover);
  gap: 10px;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: var(--radius) var(--radius) 0 0;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.2), var(--shadow-lg);
}

.team-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.team-card-body {
  padding: 24px;
}

.team-card-name {
  font-family: var(--heading-font);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-card-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.0), rgba(179, 136, 255, 0.0));
  transition: var(--transition);
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover::after {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), rgba(179, 136, 255, 0.2));
  box-shadow: inset 0 0 40px rgba(var(--accent-rgb), 0.3);
}

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-caption {
  transform: translateY(0);
}

/* --- CTA Section --- */
.cta-section {
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-secondary), transparent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow-wrap: break-word;
  word-break: break-word;
}

.cta-section p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Contact List --- */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-list li a {
  color: var(--accent);
  transition: var(--transition);
}

.contact-list li a:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* --- Map Container --- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Footer --- */
.footer {
  padding: 60px 24px 30px;
  background: rgba(26, 26, 46, 0.03);
  border-top: 1px solid var(--border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-secondary), var(--accent-tertiary), transparent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(var(--accent-rgb), 0.2);
}

.footer-brand-name {
  font-family: var(--heading-font);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--heading-font);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- UTP / Features section --- */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-item {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: var(--radius) var(--radius) 0 0;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.15);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: 140px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(var(--accent-rgb), 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- Services Detail (services page) --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 40px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}

.service-detail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-detail:hover {
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.15);
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.service-detail-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-detail-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* --- Contacts Section --- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Word break safety net --- */
.service-card,
.team-card,
.hero h1,
.section-header h2 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ======================
   RESPONSIVE (mobile-first)
   ====================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .features-row {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .service-detail-img {
    height: 220px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section {
    padding: 60px 20px;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.7rem;
    min-height: 48px;
  }

  .page-header {
    padding: 120px 20px 40px;
  }

  .hero-photo {
    width: 220px;
    height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
}

/* --- Accessibility: no opacity:0 on content --- */
/* Content is always visible without JS */
