/* ═══════════════════════════════════════════════════
   ARCTIC STEEL — Аманат Медикал
   Холодный технологичный стиль. Инженерная точность.
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, #3b82f6, #06b6d4);
  --accent-rgb: 59, 130, 246;
  --bg-rgb: 244, 246, 249;
  --heading-font: 'Space Grotesk', 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-text-size-adjust: 100%;
}

body {
  font-family: var(--body-font);
  font-weight: var(--body-weight);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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.02em;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Text overflow protection ── */
.service-card,
.team-card,
.hero h1,
.section-header h2,
.section-header p,
h1, h2, h3, h4 {
  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: 1.5rem;
}

.preloader-logo {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.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); }
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(244, 246, 249, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--border);
}

.nav-logo span {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--body-font);
  font-size: 0.875rem;
  font-weight: 500;
  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(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ── Burger Menu ── */
.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);
  transition: all 0.3s ease;
  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 {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--surface);
  z-index: 999;
  padding: 100px 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: block;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.3);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Section Base ── */
.section {
  padding: 5rem 0;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

/* Section coordinate grid texture */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(226, 232, 240, 0.5) 39px, rgba(226, 232, 240, 0.5) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(226, 232, 240, 0.5) 39px, rgba(226, 232, 240, 0.5) 40px);
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Hero coordinate grid */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(226, 232, 240, 0.5) 39px, rgba(226, 232, 240, 0.5) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(226, 232, 240, 0.5) 39px, rgba(226, 232, 240, 0.5) 40px);
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* Hero geometric decor shapes */
.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(59, 130, 246, 0.08);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-decor-line {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 1px;
  background: rgba(59, 130, 246, 0.08);
  z-index: 0;
}

.hero-decor-line::before {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
}

.hero-decor-dot {
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(59, 130, 246, 0.06);
  z-index: 0;
}

.hero-decor-dot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 50%;
}

.hero-decor-dot::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 .accent-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: left;
}

.hero-stat .stat-number {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero image side */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Geometric frame around hero image */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius);
  z-index: -1;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: -8px;
  width: 60%;
  height: 60%;
  border: 1px solid rgba(59, 130, 246, 0.08);
  border-radius: var(--radius-sm);
  z-index: -1;
}

/* Floating stat cards overlaying hero image */
.hero-float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  z-index: 3;
}

.hero-float-card.top-right {
  top: 1.5rem;
  right: -1.5rem;
}

.hero-float-card.bottom-left {
  bottom: 1.5rem;
  left: -1.5rem;
}

.hero-float-card .float-number {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-float-card .float-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--heading-font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  min-height: 44px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Service Cards (tech-cards) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
  transform: translateY(-4px);
}

.service-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-number {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(59, 130, 246, 0.2);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.3;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1rem;
  transition: gap var(--transition);
}

.service-card:hover .card-link {
  gap: 0.625rem;
}

/* ── Team Grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 2rem 1.5rem;
  transition: all var(--transition);
}

.team-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--border);
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.team-card .team-role {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.team-card .team-spec {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Gallery Grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  aspect-ratio: 1;
}

.gallery-item:hover {
  border-color: var(--accent);
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ── CTA Section ── */
.cta-section {
  padding: 5rem 0;
  background: var(--text);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cta-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.cta-section .btn-outline {
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.cta-section .btn-outline:hover {
  border-color: #fff;
}

/* ── Contact Section ── */
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.contact-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.25rem;
}

.contact-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-item a:hover {
  color: var(--accent);
}

/* ── Map Container ── */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 2rem;
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── UTP (Advantages) ── */
.utp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.utp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: all var(--transition);
}

.utp-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
}

.utp-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--accent);
}

.utp-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* ── Footer ── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand span {
  font-family: var(--heading-font);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.footer p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  min-height: 32px;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

/* ── Services page: all services listing ── */
.services-all-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-full-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 0;
  transition: all var(--transition);
  overflow: hidden;
}

.service-full-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
}

.service-full-image {
  width: 200px;
  min-height: 180px;
  flex-shrink: 0;
  object-fit: cover;
}

.service-full-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-full-number {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(59, 130, 246, 0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.service-full-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-full-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-promo {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-top: 0.5rem;
}

/* ── Page Header (for sub-pages) ── */
.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(226, 232, 240, 0.5) 39px, rgba(226, 232, 240, 0.5) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(226, 232, 240, 0.5) 39px, rgba(226, 232, 240, 0.5) 40px);
  opacity: 0.03;
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
  position: relative;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  position: relative;
}

/* ── Sticky CTA bar ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  padding: 0.625rem 1.5rem;
  font-size: 0.85rem;
}

/* ── Decorative pseudo-elements for hover effects ── */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height var(--transition);
  border-radius: var(--radius) 0 0 var(--radius);
  z-index: 2;
}

.service-card:hover::before {
  height: 100%;
}

.team-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient);
  transition: width var(--transition);
  border-radius: 0 0 var(--radius) var(--radius);
}

.team-card {
  position: relative;
  overflow: visible;
}

.team-card:hover::after {
  width: 60%;
}

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 2rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-float-card.top-right {
    right: 1rem;
  }

  .hero-float-card.bottom-left {
    left: 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .services-all-grid {
    grid-template-columns: 1fr;
  }

  .service-full-card {
    flex-direction: column;
  }

  .service-full-image {
    width: 100%;
    height: 180px;
  }
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero-image-wrapper img {
    height: 300px;
  }

  .hero-float-card {
    display: none;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-section {
    padding: 3rem 0;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .sticky-cta {
    flex-direction: row;
    padding: 0.75rem;
  }

  .sticky-cta .btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
    min-height: 44px;
  }

  .services-all-grid {
    grid-template-columns: 1fr;
  }

  .service-full-card {
    flex-direction: column;
  }

  .service-full-image {
    width: 100%;
    height: 200px;
  }

  .utp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
