/* ==========================================================================
   Стомоша — детская стоматология. Дизайн-система.
   Палитра построена от логотипа (жираф + пастельная надпись).
   Шрифты подключены локально и вынесены в переменные (--font-body / --font-heading),
   чтобы их можно было легко заменить на свои.
   ========================================================================== */

/* ----------------------------- Шрифты ----------------------------------- */
/* Roboto — основной текст */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/roboto-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/roboto-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/roboto-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/roboto-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/roboto-cyrillic-700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/roboto-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122;
}

/* Comfortaa — округлый «детский» шрифт для заголовков */
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/comfortaa-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/comfortaa-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/comfortaa-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/comfortaa-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/comfortaa-cyrillic-700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/comfortaa-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122;
}

/* --------------------------- Переменные --------------------------------- */
:root {
  /* Фирменная пастельная палитра из логотипа */
  --lilac: #BDC3E3;        /* сиреневый пастель */
  --lilac-soft: #EBEDF7;   /* очень светлый сиреневый для подложек */
  --pistachio: #C7DBA7;    /* фисташковый пастель */
  --pistachio-soft: #EEF4E3;
  --cream: #F9E4B9;        /* тёплый крем */
  --cream-soft: #FDF6E7;
  --khaki: #85835B;        /* тёмный хаки */
  --brown: #A66C3D;        /* коричневый жирафа */
  --giraffe-yellow: #F9E6B8;
  --accent-green: #43CB83; /* акцент/CTA/кнопка звонка */
  --accent-green-dark: #35b070;

  --text: #4a4a48;
  --text-muted: #8a8a86;
  --white: #ffffff;

  /* Шрифты (замените при необходимости на свои) */
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Comfortaa', var(--font-body);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text);
  --bs-primary: var(--lilac);
}

/* ----------------------------- База ------------------------------------- */
* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--khaki);
  line-height: 1.25;
}

a { color: var(--brown); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--khaki); }

.section { padding: 68px 0; }
.section-tight { padding: 44px 0; }
.bg-lilac { background: var(--lilac-soft); }
.bg-pistachio { background: var(--pistachio-soft); }
.bg-cream { background: var(--cream-soft); }

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: .35rem;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* ----------------------------- Кнопки ----------------------------------- */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 999px;
  padding: .7rem 1.6rem;
  border: none;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-brand {
  background: var(--accent-green);
  color: var(--white);
}
.btn-brand:hover { background: var(--accent-green-dark); color: var(--white); }

.btn-lilac {
  background: var(--lilac);
  color: #3f4468;
}
.btn-lilac:hover { background: #a9b0d6; color: #3f4468; }

.btn-outline-brand {
  background: transparent;
  color: var(--khaki);
  box-shadow: inset 0 0 0 2px var(--pistachio);
}
.btn-outline-brand:hover { background: var(--pistachio-soft); color: var(--khaki); }

/* ----------------------------- Шапка ------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #f0f0f0;
}
.site-header .navbar { padding-top: .5rem; padding-bottom: .5rem; }
.navbar-brand img { height: 52px; width: auto; }

.main-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--khaki);
  padding: .4rem .85rem;
  border-radius: 999px;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--brown); background: var(--cream-soft); }

.header-phone {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--khaki);
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent-green-dark); }

.messenger-icon img { height: 30px; width: 30px; }

/* ----------------------------- Hero ------------------------------------- */
.hero-slide {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 3rem;
}
.hero-slide--lilac { background: var(--lilac-soft); }
.hero-slide--pistachio { background: var(--pistachio-soft); }
.hero-slide--cream { background: var(--cream-soft); }

.hero-content { position: relative; z-index: 2; max-width: 560px; }
.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--khaki);
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text);
  margin-bottom: 1.6rem;
}
.hero-figure {
  position: absolute;
  right: 3%;
  bottom: 0;
  z-index: 1;
  max-height: 92%;
  pointer-events: none;
}
.hero-figure img { max-height: 460px; width: auto; }

/* Owl overrides */
.owl-theme .owl-nav { margin-top: 0; }
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.85) !important;
  color: var(--khaki) !important;
  font-size: 22px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.owl-carousel .owl-nav button.owl-prev { left: 14px; }
.owl-carousel .owl-nav button.owl-next { right: 14px; }
.owl-theme .owl-dots .owl-dot span {
  width: 11px; height: 11px; background: var(--lilac);
}
.owl-theme .owl-dots .owl-dot.active span { background: var(--accent-green); width: 26px; border-radius: 6px; }

/* ------------------------ Плитки преимуществ ---------------------------- */
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  height: 100%;
  text-align: center;
  border: 1px solid #f1f1f1;
}
.feature-card .feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--cream-soft);
  font-size: 30px;
}

/* --------------------------- Карточки услуг ----------------------------- */
.service-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  border: 1px solid #f1f1f1;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(133,131,91,.12); }
.service-card .service-media {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  background: var(--pistachio-soft);
}
.service-card .service-media img { max-height: 82%; width: auto; }
.service-card .service-body { padding: 1.25rem 1.4rem 1.6rem; }
.service-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }

/* ----------------------- Игровая комната -------------------------------- */
.playroom {
  background: var(--lilac-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.playroom .playroom-figure { text-align: center; }
.playroom .playroom-figure img { max-height: 340px; width: auto; }

/* ----------------------------- Врачи ------------------------------------ */
.doctor-card { text-align: center; }
.doctor-photo {
  width: 210px; height: 210px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 36px solid var(--pistachio);
  background: var(--pistachio-soft);
}
.doctor-name { font-size: 1.15rem; margin-bottom: .15rem; }
.doctor-position { color: var(--text-muted); font-size: .95rem; }

/* --------------------------- Форма звонка ------------------------------- */
.callback {
  background: var(--pistachio-soft);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
}
.callback .callback-figure { text-align: center; }
.callback .callback-figure img { max-height: 320px; width: auto; }
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid #e4e4e4;
  padding: .75rem 1rem;
}
.form-control:focus {
  border-color: var(--pistachio);
  box-shadow: 0 0 0 .2rem rgba(199,219,167,.4);
}
.honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }
.form-note { font-size: .8rem; color: var(--text-muted); }

/* --------------------------- Фотогалерея -------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid .gallery-item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--lilac-soft);
}
.gallery-grid .gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.gallery-grid .gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ----------------------------- Подвал ----------------------------------- */
.site-footer {
  background: var(--khaki);
  color: #eceada;
  padding: 3rem 0 1.5rem;
}
.site-footer a { color: #eceada; }
.site-footer a:hover { color: var(--white); }
.site-footer h5 { color: var(--white); font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer .footer-logo { height: 64px; background: rgba(255,255,255,.9); border-radius: 14px; padding: 8px 12px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 2rem; padding-top: 1.25rem;
  font-size: .85rem; color: #cfccb6;
}
.footer-bottom .disclaimer { max-width: 720px; }
.credit-a { color: #43CB83; font-weight: 700; }

/* ---------------------- Плавающая кнопка звонка ------------------------- */
.floating-call {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #fff !important;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(67,203,131,.45);
  z-index: 1040;
  animation: pulse 2s infinite;
}
.floating-call svg { width: 26px; height: 26px; fill: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(67,203,131,.5); }
  70% { box-shadow: 0 0 0 16px rgba(67,203,131,0); }
  100% { box-shadow: 0 0 0 0 rgba(67,203,131,0); }
}
@media (max-width: 991px) { .floating-call { display: flex; } }

/* --------------------- Уведомление о куках ------------------------------ */
.cookie-notice {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 720px; margin: 0 auto;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  padding: 1rem 1.25rem;
  display: none;
  z-index: 1050;
}
.cookie-notice.show { display: flex; }

/* ----------------- Плейсхолдеры под иллюстрации жирафа ------------------ */
/* Пока нейросеть не нарисовала жирафов — показываем аккуратные заглушки.
   Каждая заглушка описывает, что должно быть изображено (data-hint). */
.giraffe-slot {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(45deg, var(--cream-soft), var(--cream-soft) 14px, #fbf0d6 14px, #fbf0d6 28px);
  border: 2px dashed var(--brown);
  border-radius: var(--radius);
  color: var(--brown);
  padding: 1rem;
  min-height: 200px;
  font-family: var(--font-heading);
}
.giraffe-slot::before { content: "🦒"; font-size: 40px; display: block; margin-bottom: .5rem; }
.giraffe-slot .slot-hint { font-size: .8rem; color: var(--khaki); font-family: var(--font-body); }

/* ------------------------------ Утилиты --------------------------------- */
.text-brand { color: var(--brown) !important; }
.rounded-brand { border-radius: var(--radius) !important; }
.section-anchor { scroll-margin-top: 90px; }
