/* ============================================
   ПЕРВАЯ ДЕТСКАЯ СТОМАТОЛОГИЯ — Vibrant Premium
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #fafafa;
  --surface: #f0f0f0;
  --accent: #7c3aed;
  --accent-hover: #9333ea;
  --text: #18181b;
  --text-muted: #71717a;
  --border: #e4e4e7;
  --gradient: linear-gradient(135deg, #7c3aed, #ec4899);
  --gradient-soft: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(236,72,153,0.08));
  --gradient-medium: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(236,72,153,0.12));
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-accent: 0 8px 30px rgba(124,58,237,0.2);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

/* --- 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: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: var(--accent-hover); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section Spacing --- */
section {
  padding: 80px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--gradient-soft);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 48px;
}

.section-desc.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.text-center { text-align: center; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250,250,250,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, background 0.3s;
}

.header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Desktop Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
  background: var(--gradient-soft);
}

.nav-cta {
  background: var(--gradient) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-accent);
  transition: transform 0.25s, box-shadow 0.25s !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(124,58,237,0.3) !important;
  color: var(--white) !important;
  background: var(--gradient) !important;
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250,250,250,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 100px 24px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  text-decoration: none;
  display: block;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--gradient-soft);
  color: var(--accent);
}

.mobile-menu .mobile-cta {
  margin-top: 20px;
  background: var(--gradient);
  color: var(--white);
  text-align: center;
  border-radius: 100px;
  padding: 18px 24px;
  font-size: 1.1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(124,58,237,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(236,72,153,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(124,58,237,0.05) 0%, transparent 50%),
    var(--bg);
}

/* Animated floating shapes */
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: floatBlob 12s ease-in-out infinite;
}

.hero-bg::before {
  width: 400px;
  height: 400px;
  background: rgba(124,58,237,0.08);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.hero-bg::after {
  width: 350px;
  height: 350px;
  background: rgba(236,72,153,0.06);
  bottom: 10%;
  right: -5%;
  animation-delay: -6s;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Decorative SVG shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shapes .shape {
  position: absolute;
  opacity: 0.06;
}

.hero-shapes .shape-1 {
  width: 200px;
  height: 200px;
  border: 3px solid var(--accent);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 15%;
  right: 8%;
  animation: morphShape 15s ease-in-out infinite;
}

.hero-shapes .shape-2 {
  width: 120px;
  height: 120px;
  background: var(--gradient);
  border-radius: 50%;
  bottom: 20%;
  left: 5%;
  animation: morphShape 12s ease-in-out infinite reverse;
}

.hero-shapes .shape-3 {
  width: 80px;
  height: 80px;
  border: 2px solid #ec4899;
  border-radius: 50%;
  top: 40%;
  left: 15%;
  animation: floatBlob 10s ease-in-out infinite;
}

@keyframes morphShape {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg); }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: rotate(180deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: left;
}

.hero-stat .num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Visual / Photo Block */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-photo-main {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.hero-photo-main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
}

/* Floating accent cards around hero photo */
.hero-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: floatCard 6s ease-in-out infinite;
}

.hero-float-card.card-top {
  top: -16px;
  right: -24px;
  animation-delay: -2s;
}

.hero-float-card.card-bottom {
  bottom: 40px;
  left: -30px;
  animation-delay: -4s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.float-card-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.float-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Decorative ring behind hero photo */
.hero-photo-wrapper::before {
  content: '';
  position: absolute;
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  border-radius: var(--radius-xl);
  background: var(--gradient);
  opacity: 0.1;
  z-index: 0;
  animation: morphShape 20s ease-in-out infinite;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 52px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(124,58,237,0.3);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.88rem;
  min-height: 44px;
}

.btn-icon {
  font-size: 1.2rem;
}

/* ============================================
   ADVANTAGES / FEATURES
   ============================================ */
.advantages {
  background: var(--white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.4s ease;
}

.advantage-card:hover {
  border-color: rgba(124,58,237,0.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.advantage-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
  transition: all 0.4s;
}

.advantage-card:hover .advantage-icon {
  background: var(--gradient);
  transform: scale(1.08);
}

.advantage-card:hover .advantage-icon svg {
  filter: brightness(0) invert(1);
}

.advantage-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.advantage-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   SERVICES PREVIEW (Index page)
   ============================================ */
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-preview-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.service-preview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--text);
}

.service-preview-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.service-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-preview-card:hover .service-preview-img img {
  transform: scale(1.06);
}

.service-preview-body {
  padding: 24px;
}

.service-preview-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-preview-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 14px;
  transition: gap 0.3s;
}

.service-preview-card:hover .service-preview-link {
  gap: 10px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.04), transparent 70%);
  top: -200px;
  right: -200px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.4s;
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(124,58,237,0.15);
}

.testimonial-quote {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

/* ============================================
   CTA SECTIONS (Inline)
   ============================================ */
.cta-inline {
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  top: -100px;
  right: -80px;
}

.cta-box::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  bottom: -60px;
  left: -40px;
}

.cta-box h2 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-box p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-box .btn {
  position: relative;
  z-index: 1;
}

.btn-white {
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  color: var(--accent-hover);
}

/* ============================================
   SERVICES PAGE — Full Cards
   ============================================ */
.page-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(124,58,237,0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(236,72,153,0.06), transparent 50%),
    var(--bg);
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card-img {
  width: 100%;
  height: 260px;
  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.05);
}

.service-card-body {
  padding: 32px;
}

.service-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.service-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
}

.service-card-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  background-image: var(--gradient-soft);
  position: relative;
}

.service-card-features li::after {
  content: '';
  position: absolute;
}

.feature-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-check svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

/* ============================================
   GALLERY PAGE — Before/After
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.ba-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s;
}

.ba-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.ba-images::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
  transform: translateX(-50%);
  z-index: 2;
}

.ba-img {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.ba-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  bottom: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 100px;
  z-index: 3;
}

.ba-label.before {
  left: 12px;
  background: rgba(24,24,27,0.8);
  color: var(--white);
}

.ba-label.after {
  right: 12px;
  background: var(--gradient);
  color: var(--white);
}

.ba-card-body {
  padding: 24px;
}

.ba-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ba-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Team gallery grid */
.team-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s;
}

.team-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-photo-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s;
}

.team-photo-card:hover img {
  transform: scale(1.04);
}

.team-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(24,24,27,0.8), transparent);
  color: var(--white);
}

.team-photo-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.team-photo-role {
  font-size: 0.82rem;
  opacity: 0.8;
}

/* ============================================
   CONTACTS PAGE
   ============================================ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid var(--border);
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--accent);
  font-weight: 500;
}

.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  border: 1px solid var(--border);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* Schedule table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.schedule-table td {
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.schedule-table td:first-child {
  font-weight: 500;
  color: var(--text);
}

.schedule-table td:last-child {
  text-align: right;
  color: var(--text-muted);
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-active {
  color: #22c55e !important;
  font-weight: 600 !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo img {
  border-color: rgba(255,255,255,0.2);
}

.footer-brand .logo-name {
  color: var(--white);
}

.footer-brand .logo-sub {
  color: rgba(255,255,255,0.5);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color 0.3s;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--gradient);
  color: var(--white);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-float-card.card-top { right: -10px; }
  .hero-float-card.card-bottom { left: -10px; }

  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .services-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .team-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  section { padding: 60px 0; }

  .nav { display: none; }
  .burger { display: flex; }

  .header-inner { height: 64px; }

  .logo-name { font-size: 0.85rem; }
  .logo-sub { font-size: 0.68rem; }
  .logo img { width: 44px; height: 44px; }

  .hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 40px;
  }

  .hero-content { padding-top: 40px; }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .hero-desc { font-size: 1rem; }

  .hero-photo-main img {
    height: 360px;
  }

  .hero-float-card {
    display: none;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stat .num { font-size: 1.5rem; }

  .advantages-grid { grid-template-columns: 1fr; gap: 16px; }

  .advantage-card {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding: 20px 24px;
  }

  .advantage-icon {
    margin: 0;
    min-width: 56px;
    min-height: 56px;
  }

  .services-preview-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .cta-box {
    padding: 48px 24px;
    border-radius: var(--radius-md);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .team-gallery-grid { grid-template-columns: 1fr; }

  .team-photo-card img { height: 260px; }

  .ba-images { grid-template-columns: 1fr; }
  .ba-images::after { display: none; }

  .ba-img { height: 220px; }

  .ba-label.before { bottom: auto; top: 12px; left: 12px; }
  .ba-label.after { bottom: 12px; right: 12px; }

  .service-card-img { height: 200px; }
  .service-preview-img { height: 180px; }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contacts-grid { gap: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .hero-photo-main img { height: 300px; }
}
