/* ===========================================================
   Little One Clinic — стили
   =========================================================== */

:root {
  --green: #79b774;
  --green-dark: #4c754c;
  --green-darker: #3a5c3a;
  --peach: #f2a878;
  --cream: #faf3e8;
  --cream-soft: #f3ead9;
  --white: #fffdf8;
  --text: #33402e;
  --text-muted: #6b7364;
  --border: #e7dcc8;

  --font-heading: 'Fredoka', 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(76, 117, 76, 0.12);
  --container-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; margin: 0; color: var(--green-darker); }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.icon { flex-shrink: 0; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Скролл со сдвигом под фиксированную шапку */
main section[id], header#top { scroll-margin-top: 88px; }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(121, 183, 116, .35);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-text {
  color: var(--green-dark);
  padding: 14px 8px;
}
.btn-text:hover { text-decoration: underline; }
.btn-light {
  background: var(--white);
  color: var(--green-darker);
}
.btn-light:hover { transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 17px; }
.btn-header { padding: 11px 22px; font-size: 14px; }

/* ============ Шапка ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 243, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; }
.brand-text {
  display: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--green-dark);
  line-height: 1.1;
}
.brand-text em { font-style: normal; display: block; }

.main-nav { display: none; align-items: center; gap: 28px; }
.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--green-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  position: relative;
  display: flex;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  background: var(--white);
}
.lang-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 100px;
  background: var(--green);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.lang-switch[data-active="uz"] .lang-indicator { transform: translateX(100%); }
.lang-option {
  position: relative;
  z-index: 1;
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 100px;
  color: var(--green-dark);
  cursor: pointer;
  transition: color .3s ease;
}
.lang-switch[data-active="ru"] .lang-option[data-lang="ru"],
.lang-switch[data-active="uz"] .lang-option[data-lang="uz"] {
  color: var(--white);
}

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--green-darker);
  cursor: pointer;
}
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 24px 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 0;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 16px; }

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none !important; }
  .brand-text { display: block; }
}

/* ============ Hero ============ */
.hero { padding-top: 56px; overflow: hidden; }

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  background: var(--cream-soft);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--green); display: inline-block; }

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-principle {
  font-weight: 600;
  color: var(--green-dark);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 28px; }

.hero-media { position: relative; }
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 10px 16px;
}
.hero-float-top {
  top: -16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--green-dark);
}
.hero-float-top .icon { color: var(--peach); }
.hero-float-bottom {
  bottom: 16px;
  right: -12px;
  max-width: 200px;
}
.hero-float-title { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--green-darker); margin-bottom: 2px; }
.hero-float-text { font-size: 12px; color: var(--text-muted); }

.trust-strip { background: var(--green-dark); }
.trust-strip-inner {
  padding: 18px 24px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.trust-strip-inner p { max-width: 60ch; margin: 0 auto; }

@media (min-width: 860px) {
  .hero-inner { flex-direction: row; align-items: center; padding-top: 20px; padding-bottom: 80px; }
  .hero-text { flex: 1; }
  .hero-media { flex: 1; }
}

/* ============ Секции (общее) ============ */
.section { padding: 72px 0; }
.section-tint { background: var(--cream-soft); }

.kicker {
  display: block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.kicker-light { color: var(--peach); }

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  max-width: 22ch;
  margin-bottom: 16px;
}
.section-title-light { color: var(--white); }

.section-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 44px;
}

.med-disclaimer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ============ Чередующиеся строки (О нас / Кормление) ============ */
.alt-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
}
.alt-row:last-child { margin-bottom: 0; }
.alt-media { flex: 1; width: 100%; }
.alt-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.alt-text { flex: 1; width: 100%; }
.alt-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--peach);
  margin-bottom: 10px;
}
.alt-text h3 { font-size: 24px; margin-bottom: 12px; }
.alt-text p { color: var(--text-muted); font-size: 16px; }

@media (min-width: 860px) {
  .alt-row { flex-direction: row; gap: 56px; }
  .alt-row-reverse { flex-direction: row-reverse; }
}

/* ============ Карточки / сетки ============ */
.group-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--green-dark);
  margin: 48px 0 20px;
}
.group-title-first { margin-top: 0; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.card-photo-card { padding-top: 0; overflow: hidden; }
.card-photo {
  margin: 0 -28px 20px;
  aspect-ratio: 4 / 3;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cream-soft);
  color: var(--green-dark);
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .card-row { grid-template-columns: repeat(3, 1fr); }
  .card-lg { grid-column: span 2; }
}
@media (min-width: 960px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
  .card-lg { grid-column: span 1; }
}

.months-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .months-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .months-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============ Карусель специалистов ============ */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .card-photo-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}
.carousel-btn {
  display: none;
  position: absolute;
  top: calc(50% - 24px);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--green-dark);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.carousel-btn-prev { left: -20px; }
.carousel-btn-prev .icon { transform: rotate(180deg); }
.carousel-btn-next { right: -20px; }

@media (min-width: 860px) {
  .carousel-track .card-photo-card { flex-basis: 364px; }
  .carousel-btn { display: inline-flex; }
}

/* ============ Тёмный блок статистики (Сон) ============ */
.stat-block { background: var(--green-darker); }
.stat-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.stat-text p { color: rgba(255,255,255,.82); margin-bottom: 24px; font-size: 16px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat-card {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-num { font-family: var(--font-heading); font-size: 30px; font-weight: 600; color: var(--white); }
.stat-num small { font-size: 15px; font-weight: 600; }
.stat-card span:last-child { color: rgba(255,255,255,.8); font-size: 13px; }

@media (min-width: 860px) {
  .stat-inner { flex-direction: row; align-items: center; gap: 64px; }
  .stat-text, .stat-grid { flex: 1; }
}

/* ============ Чек-лист ============ */
.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 600;
}
.checklist .icon { color: var(--green); }
@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, 1fr); } }

/* ============ Специалисты: карточки услуг — переиспользуют .card / .card-row ============ */

/* ============ Спросить (CTA) ============ */
.ask {
  background: var(--cream-soft);
  border-radius: var(--radius-lg);
  margin: 0 16px;
  width: auto;
}
.ask-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ask .section-title, .ask .section-lead { margin-left: auto; margin-right: auto; }
.ask-note { margin-top: 18px; font-size: 13px; color: var(--text-muted); max-width: 46ch; }

@media (min-width: 640px) { .ask { margin: 0 24px; } }

/* ============ Контакты ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-row { display: flex; align-items: flex-start; gap: 14px; }
.contact-row .icon { color: var(--green); margin-top: 3px; }
.contact-label { font-weight: 700; font-size: 13px; color: var(--green-dark); margin-bottom: 2px; }
.contact-row a:hover { text-decoration: underline; }

.contact-socials { display: flex; gap: 12px; margin-top: 4px; }
.contact-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-soft);
  color: var(--green-dark);
}
.contact-socials a:hover { background: var(--green); color: var(--white); }

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }

@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }

/* ============ Футер ============ */
.site-footer { background: var(--green-darker); color: rgba(255,255,255,.85); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 56px 24px 32px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-logo { height: 40px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.7); max-width: 40ch; }
.footer-brand .contact-socials a { background: rgba(255,255,255,.1); color: var(--white); }
.footer-brand .contact-socials a:hover { background: var(--green); }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 4px; }
.footer-col a, .footer-col span { font-size: 14px; color: rgba(255,255,255,.75); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 24px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

@media (min-width: 640px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
