/* =========================================================
   Семейная академия эмоций — общие стили сайта
   Тёплая, дружелюбная палитра, мягкие формы, скругления
   ========================================================= */

:root {
  --peach: #ffd8c2;
  --peach-deep: #ff9f6b;
  --lavender: #e6ddf7;
  --lavender-deep: #b6a4e8;
  --mint: #d3f2e3;
  --mint-deep: #7fd8ad;
  --yellow: #fff1c2;
  --yellow-deep: #ffcf56;
  --pink: #ffe0ec;
  --pink-deep: #ff8fb3;
  --ink: #3a3247;
  --ink-soft: #6b6379;
  --paper: #fffaf5;
  --card: #ffffff;
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --shadow: 0 12px 30px rgba(58, 50, 71, 0.08);
  --shadow-hover: 0 18px 40px rgba(58, 50, 71, 0.14);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Comfortaa", "Nunito", sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }

.section-eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--peach-deep);
  background: var(--peach);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  font-family: inherit;
}

.btn--primary {
  background: linear-gradient(135deg, var(--peach-deep), var(--pink-deep));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--lavender-deep);
}
.btn--ghost:hover { background: var(--lavender); transform: translateY(-2px); }

.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58,50,71,0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1320px;
  margin: 0 auto;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Comfortaa", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
.logo__badge {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex: none;
  overflow: hidden;
}
.logo__badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.footer-grid h4 img.footer-logo {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 10px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink-soft);
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.is-active { background: var(--lavender); color: var(--ink); }

.dropdown { position: relative; }
.dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  padding: 10px;
  min-width: 260px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu { display: flex; }
.dropdown__menu a { padding: 10px 12px; border-radius: 12px; }
.dropdown__menu a:hover { background: var(--mint); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-weight: 800;
  font-size: .95rem;
  white-space: nowrap;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: var(--lavender);
  border: none;
  border-radius: 12px;
  width: 44px; height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__art {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--lavender), var(--pink) 60%, var(--peach));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero__art img,
.feature-block__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  color: transparent;
}
.hero__badges { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-badge {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 56px 0 44px;
  background: linear-gradient(180deg, var(--lavender) 0%, var(--paper) 100%);
  text-align: center;
}
.page-hero .section-eyebrow { background: #fff; }
.page-hero p { max-width: 680px; margin: 0 auto; }
.breadcrumb {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a { font-weight: 700; color: var(--peach-deep); }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card__icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.program-card--azbuka .card__icon { background: var(--yellow); }
.program-card--akademiya .card__icon { background: var(--mint); }
.program-card--effekt .card__icon { background: var(--pink); }

.card__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}
.pill {
  background: var(--lavender);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}
.card__price {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed rgba(58,50,71,0.15);
  font-weight: 800;
  color: var(--ink);
}
.card__price span { display: block; font-weight: 600; font-size: .82rem; color: var(--ink-soft); }

/* ---------- About / feature blocks ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-block__art {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: linear-gradient(135deg, var(--lavender), var(--pink));
}
.list-check { list-style: none; margin: 0 0 1em; padding: 0; }
.list-check li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint-deep);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Curriculum / timeline blocks ---------- */
.block-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 20px;
}
.block-title__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--ink);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.lesson {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.lesson__title { font-weight: 800; margin-bottom: 4px; }
.lesson__desc { margin: 0; font-size: .95rem; }

/* ---------- Stats / info strip ---------- */
.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.info-strip__item {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.info-strip__item strong { display: block; font-family: "Comfortaa", sans-serif; font-size: 1.15rem; margin-bottom: 4px; }
.info-strip__item span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Team ---------- */
.team-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.team-card__avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--lavender), var(--pink));
  overflow: hidden;
}
.team-card__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.team-card__handle {
  display: inline-block;
  margin-top: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--peach-deep);
  background: var(--peach);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.testimonial__stars {
  color: var(--yellow-deep);
  font-size: 1.05rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.testimonial__quote {
  position: relative;
  color: var(--ink);
  font-size: 1.02rem;
  flex: 1;
  margin: 0 0 20px;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed rgba(58,50,71,0.15);
}
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--mint), var(--yellow));
}
.testimonial__name { font-weight: 800; font-size: .92rem; }
.testimonial__meta { font-size: .82rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--lavender-deep), var(--pink-deep));
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: .92; }
.cta-band .btn--ghost { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Contact / form ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-info-card__row {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-info-card__icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--mint);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex: none;
}
.social-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.social-row a {
  background: var(--lavender);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
}
.social-row a:hover { background: var(--lavender-deep); color: #fff; }

.form-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(58,50,71,0.12);
  font-family: inherit;
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--lavender-deep);
}
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }
.form-success {
  display: none;
  background: var(--mint);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-weight: 700;
  margin-top: 16px;
}
.form-success.is-visible { display: block; }

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.map-embed iframe { width: 100%; height: 340px; border: none; display: block; }
.map-embed--card {
  background: linear-gradient(135deg, var(--mint), var(--lavender));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 260px;
  padding: 24px;
}
.map-embed__inner { max-width: 360px; }
.map-embed__inner p { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: #2f2939;
  color: #cfc8db;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: #fff; font-size: 1rem; }
.footer-grid p, .footer-grid a { color: #cfc8db; font-size: .92rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: .82rem;
  color: #9d93ad;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 360px; margin: 0 auto; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .feature-block { grid-template-columns: 1fr; }
  .feature-block__art { order: -1; max-width: 420px; margin: 0 auto; }
  .contact-wrap { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; }
  .main-nav.is-open { display: flex; }
  .dropdown__menu { position: static; display: flex; box-shadow: none; padding-left: 12px; }
  .site-header__inner { flex-wrap: wrap; }
  .header-phone { display: none; }
  .nav-toggle { display: block; order: 3; }
  .logo { order: 1; }
  .header-cta { order: 2; margin-left: auto; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
  .info-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
}
