/* ============================================================
   СТОМАТОЛОГИЯ 32 — Clean Clinical Design System
   Palette: #ffffff bg | #0e8a7b accent | #1a2332 text
   Fonts: Source Serif 4 (headings) + Inter (body)
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --surface: #f7fafa;
  --accent: #0e8a7b;
  --accent-hover: #0ba392;
  --accent-light: #e8f5f3;
  --text: #1a2332;
  --text-muted: #5a6a7a;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(26,35,50,0.06);
  --shadow-md: 0 8px 32px rgba(26,35,50,0.10);
  --shadow-lg: 0 24px 64px rgba(26,35,50,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

em { font-style: italic; color: var(--accent); }

p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SECTION LABELS ── */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding: 4px 12px;
  background: var(--accent-light);
  border-radius: 100px;
}

.section-title {
  margin-bottom: 2.5rem;
  max-width: 560px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 48px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14,138,123,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14,138,123,0.3);
}

/* ── SCROLL REVEAL ANIMATION ── */
/* Elements always visible. When JS fires, .visible triggers a one-shot
   fade-up animation via @keyframes (no hidden initial state needed). */
.reveal {
  opacity: 1;
  transform: none;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal.animated {
  animation: fadeUp 0.65s ease both;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}
.logo-text {
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-text strong { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 22px;
  background: var(--accent);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(14,138,123,0.25);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,35,50,0.78) 0%,
    rgba(14,138,123,0.45) 60%,
    rgba(26,35,50,0.55) 100%
  );
}

.hero-anim-stripe {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hover), transparent);
  animation: stripeSlide 3s ease-in-out infinite alternate;
}
@keyframes stripeSlide {
  from { opacity: 0.6; transform: scaleX(0.6); }
  to { opacity: 1; transform: scaleX(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  max-width: 640px;
  margin-bottom: 1.25rem;
  line-height: 1.08;
}
.hero-title em { color: var(--accent-hover); }

.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Source Serif 4', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================================
   WHY US — VALUE CARDS
   ============================================================ */
.why-us {
  padding: 100px 0;
  background: var(--bg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.value-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.value-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.value-card:hover .value-img-wrap img { transform: scale(1.06); }

.value-body {
  padding: 20px;
}
.value-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}
.value-body p { font-size: 0.88rem; color: var(--text-muted); }

/* ============================================================
   SERVICES PREVIEW — photo-top cards
   ============================================================ */
.services-preview {
  padding: 100px 0;
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 2rem;
}

.service-card {
  display: block;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.06); }

.service-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--text);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}
.service-card-badge.accent {
  background: var(--accent);
}

.service-card-body {
  padding: 20px 24px;
}
.service-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text);
}
.service-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}
.service-card:hover .service-link { letter-spacing: 0.02em; }

.services-cta { text-align: center; margin-top: 1rem; }

/* ============================================================
   TEAM TEASER
   ============================================================ */
.team-teaser {
  padding: 100px 0;
  background: var(--bg);
}

.team-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.team-teaser-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 420px;
}

.team-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.team-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.team-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-photo:hover img { transform: scale(1.04); }

.team-photo--main {
  grid-column: 1 / -1;
}
.team-photo--main img { aspect-ratio: 16/9; }

.team-photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(26,35,50,0.85), transparent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}
.team-photo-label span {
  font-weight: 400;
  opacity: 0.8;
  font-size: 0.78rem;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
  padding: 100px 0;
  background: var(--surface);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--transition);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-card--accent {
  background: var(--accent);
  border-color: var(--accent);
}
.review-card--accent .review-text { color: rgba(255,255,255,0.88); }
.review-card--accent .review-quote { color: rgba(255,255,255,0.25); }
.review-card--accent .review-author strong { color: var(--white); }
.review-card--accent .review-author span { color: rgba(255,255,255,0.6); }

.review-quote {
  font-family: 'Source Serif 4', serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-light);
  margin-bottom: -12px;
  display: block;
}

.review-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-author strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.review-author span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
}
.cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,138,123,0.88) 0%, rgba(26,35,50,0.75) 100%);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.cta-banner-content h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}
.cta-banner-content > p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cta-work-hours {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   INLINE CTA
   ============================================================ */
.inline-cta {
  padding: 60px 0;
  background: var(--accent-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.inline-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.inline-cta-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 6px;
}
.inline-cta-text p { font-size: 0.9rem; }

.inline-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text { color: var(--white); }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  line-height: 1.5;
}
.footer-brand .logo-img {
  border-color: rgba(255,255,255,0.2);
}

.footer-nav, .footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}
.footer-nav a, .footer-contacts a, .footer-contacts span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-contacts a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 20px 24px;
  text-align: center;
  max-width: 1240px;
  margin: 0 auto;
}
.footer-bottom span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--header-h) + 60px) 0 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content h1.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.page-hero-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
}

.page-hero-accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 40px;
}

/* ============================================================
   SERVICE SECTIONS (services page)
   ============================================================ */
.service-section {
  padding: 90px 0;
  background: var(--bg);
}
.service-section--alt {
  background: var(--surface);
}

.service-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.service-section-inner--reverse .service-section-img { order: 2; }
.service-section-inner--reverse .service-section-text { order: 1; }

.service-section-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.service-section-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-price-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--text);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  line-height: 1.3;
  text-align: center;
}
.service-price-badge--accent { background: var(--accent); }
.service-price-badge small { font-weight: 400; font-size: 0.75rem; display: block; }

.service-section-text .section-label { margin-bottom: 8px; }
.service-section-text h2 { margin-bottom: 1rem; }
.service-section-text > p { margin-bottom: 1.5rem; font-size: 1rem; }

.service-features {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}

.service-section-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.service-extra-imgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.service-extra-imgs img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ============================================================
   GALLERY — HORIZONTAL SCROLL
   ============================================================ */
.gallery-section {
  padding: 90px 0 60px;
  background: var(--bg);
  overflow: hidden;
}
.gallery-section--alt { background: var(--surface); }

.gallery-hscroll-wrap {
  margin-top: 40px;
  position: relative;
}

.gallery-hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 24px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--border);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.gallery-hscroll:active { cursor: grabbing; }
.gallery-hscroll::-webkit-scrollbar { height: 4px; }
.gallery-hscroll::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.gallery-hscroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.gallery-item {
  flex-shrink: 0;
  width: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-item--wide { width: 420px; }
.gallery-item--portrait { width: 240px; }

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.gallery-item--portrait img { aspect-ratio: 3/4; }
.gallery-item--wide img { aspect-ratio: 16/9; }

.gallery-item-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(26,35,50,0.8), transparent);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}

.gallery-scroll-hint {
  text-align: center;
  margin-top: 12px;
}
.gallery-scroll-hint span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ============================================================
   CONTACTS PAGE
   ============================================================ */
.contacts-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.contacts-hero-bg {
  position: absolute;
  inset: 0;
}
.contacts-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contacts-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,35,50,0.75) 0%, rgba(14,138,123,0.5) 100%);
}
.contacts-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
  padding-top: calc(var(--header-h) + 40px);
}
.contacts-hero-content .section-label { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.15); }
.contacts-hero-content h1 { color: var(--white); }
.contacts-hero-content p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-top: 8px; }

.contacts-main {
  padding: 80px 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacts-info h2 { margin-bottom: 2rem; }

.contact-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-detail { flex: 1; }
.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.contact-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
a.contact-value:hover { color: var(--accent); }

.hours-list { margin-top: 4px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 3px 0;
  color: var(--text-muted);
}
.hours-row strong { color: var(--text); font-weight: 500; }
.hours-closed strong { color: var(--text-muted); }

.cta-contact-block {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.contacts-map { position: sticky; top: calc(var(--header-h) + 24px); }
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
}
.map-address-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.map-address-badge svg { color: var(--accent); flex-shrink: 0; }

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-teaser-inner { gap: 48px; }
  .service-section-inner { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  /* Header */
  .burger { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 4px;
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 16px; min-height: 44px; display: flex; align-items: center; }
  .nav-cta { width: 100%; justify-content: center; margin-left: 0; margin-top: 8px; min-height: 48px; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { gap: 10px; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.5rem; }
  .hero-scroll-hint { display: none; }

  /* Sections */
  .why-us, .services-preview, .team-teaser, .reviews, .cta-banner { padding: 60px 0; }
  .values-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .reviews-grid { grid-template-columns: 1fr; }

  /* Team */
  .team-teaser-inner { grid-template-columns: 1fr; gap: 40px; }
  .team-photo-grid { grid-template-columns: 1fr 1fr; }
  .team-photo--main { grid-column: 1 / -1; }

  /* Services page */
  .service-section-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .service-section-inner--reverse .service-section-img { order: 0; }
  .service-section-inner--reverse .service-section-text { order: 0; }
  .service-extra-imgs { grid-template-columns: 1fr 1fr; }

  /* Contacts */
  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-hero { height: 300px; }
  .contacts-map { position: static; }
  .map-wrapper { height: 280px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  /* Inline CTA */
  .inline-cta-inner { flex-direction: column; text-align: center; }
  .inline-cta-actions { justify-content: center; }

  /* Gallery horizontal scroll */
  .gallery-hscroll { padding: 8px 16px 24px; gap: 12px; }
  .gallery-item { width: 240px; }
  .gallery-item--wide { width: 320px; }
  .gallery-item--portrait { width: 200px; }

  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .service-extra-imgs { grid-template-columns: 1fr; }
  .hero-stats { justify-content: center; }
  .cta-contact-block { flex-direction: column; }
  .cta-contact-block .btn { width: 100%; justify-content: center; }
  .service-section-cta { flex-direction: column; }
  .service-section-cta .btn { width: 100%; justify-content: center; }
  .team-photo-grid { grid-template-columns: 1fr; }
  .team-photo--main { grid-column: auto; }
}
