/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== VARIABLES ===== */
:root {
  --purple: #6C3FC5;
  --purple-dark: #5230a0;
  --purple-light: #f0ebff;
  --purple-mid: #e0d4ff;
  --accent: #FF6B6B;
  --green: #27AE60;
  --text: #1a1a2e;
  --text-light: #555;
  --bg-alt: #f8f6ff;
  --border: #e8e0ff;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(108,63,197,.1);
  --shadow-hover: 0 8px 30px rgba(108,63,197,.2);
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: 8px; font-weight: 600;
  font-size: 15px; cursor: pointer; transition: all .2s; border: 2px solid transparent;
}
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn--outline { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn--outline:hover { background: var(--purple-light); }
.btn--header { background: var(--purple); color: #fff; padding: 10px 20px; font-size: 14px; }
.btn--header:hover { background: var(--purple-dark); }
.btn--sm { padding: 8px 16px; font-size: 13px; border-radius: 6px; }
.btn--large { width: 100%; justify-content: center; padding: 16px; font-size: 17px; }
.btn--telegram { background: #2AABEE; color: #fff; }
.btn--telegram:hover { background: #1a9bde; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.header__inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__icon { font-size: 28px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong { font-size: 15px; color: var(--text); }
.logo__text small { font-size: 11px; color: var(--text-light); }
.logo__badge { background: var(--text); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 8px; white-space: nowrap; }
.logo--light .logo__badge { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); }
.nav { display: flex; gap: 6px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.nav a { padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text-light); transition: all .15s; }
.nav a:hover { color: var(--purple); background: var(--purple-light); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--purple); margin-left: auto; }
.nav-dropdown__caption { padding: 6px 18px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-light); border-bottom: 1px solid var(--purple-light); margin-bottom: 4px; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #f0ebff 0%, #fff 50%, #ffeef8 100%);
  padding: 80px 0 60px;
}
.hero__content { max-width: 700px; }
.hero__badge {
  display: inline-block; background: var(--purple); color: #fff;
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.15; color: var(--text); margin-bottom: 20px; }
.hero h1 span { color: var(--purple); }
.hero__desc { font-size: 18px; color: var(--text-light); margin-bottom: 32px; max-width: 600px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 32px; color: var(--purple); font-weight: 800; line-height: 1; }
.stat span { font-size: 13px; color: var(--text-light); }

/* ===== CONTACTS BAR ===== */
.contacts-bar { background: var(--purple); color: #fff; padding: 10px 0; }
.contacts-bar__inner { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.contacts-bar a { color: #fff; opacity: .9; }
.contacts-bar a:hover { opacity: 1; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section__header { text-align: center; margin-bottom: 48px; }
.section__header h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 12px; }
.section__header p { color: var(--text-light); font-size: 17px; }
.section__header--left { text-align: left; }
.section__footer { text-align: center; margin-top: 40px; }

/* ===== SERVICES GRID ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  border: 2px solid var(--border); transition: all .2s;
}
.service-card:hover { border-color: var(--purple); box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card--primary { border-color: var(--purple); background: var(--purple-light); }
.service-card__icon { font-size: 36px; margin-bottom: 12px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.service-card__price { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.service-card__price span { font-weight: 700; color: var(--purple); font-size: 15px; }

/* ===== ABOUT ===== */
.about { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.about__text p { color: var(--text-light); margin-bottom: 16px; }
.about__features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.feature { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.feature__icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.specialist-card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  border: 2px solid var(--purple); box-shadow: var(--shadow);
  text-align: center;
}
.specialist-card__avatar {
  width: 80px; height: 80px; background: var(--purple); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; margin: 0 auto 16px;
}
.specialist-card h3 { font-size: 20px; margin-bottom: 12px; }
.specialist-card__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.specialist-card__tags span {
  background: var(--purple-light); color: var(--purple);
  padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 500;
}
.specialist-card p { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }

/* ===== COURSES ===== */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.course-card {
  background: #fff; border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); position: relative; transition: all .2s;
}
.course-card:hover { border-color: var(--purple); box-shadow: var(--shadow); }
.course-card__age {
  position: absolute; top: -10px; right: 16px;
  background: var(--purple); color: #fff; padding: 4px 10px;
  border-radius: 10px; font-size: 12px; font-weight: 700;
}
.course-card h3 { font-size: 16px; margin-bottom: 10px; padding-right: 30px; }
.course-card p { font-size: 13px; color: var(--text-light); margin-bottom: 16px; line-height: 1.6; }
.course-card__info { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.course-card__info span { font-size: 12px; color: var(--text-light); }
.course-card__info strong { color: var(--purple); font-size: 17px; }
.courses-bonus {
  margin-top: 28px; background: var(--purple-light); border: 2px dashed var(--purple);
  border-radius: var(--radius); padding: 20px; text-align: center; font-size: 15px;
}

/* ===== NEURORHYTHMICS ===== */
.neuro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.neuro__text p { color: var(--text-light); margin-bottom: 16px; }
.neuro__text h3 { font-size: 18px; margin: 24px 0 12px; color: var(--text); }
.neuro__ages { display: flex; flex-wrap: wrap; gap: 8px; }
.age-tag {
  background: var(--purple); color: #fff;
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
}
.check-list { list-style: none; }
.check-list li { padding: 6px 0; padding-left: 24px; position: relative; font-size: 14px; color: var(--text-light); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.result-item { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.result-item__num {
  font-size: 22px; font-weight: 800; color: var(--purple-mid);
  flex-shrink: 0; min-width: 32px; line-height: 1.4;
}
.result-item div { font-size: 14px; color: var(--text-light); }
.neuro__form-cta { margin-top: 24px; background: var(--purple-light); padding: 20px; border-radius: var(--radius); }
.neuro__form-cta p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card {
  display: block; background: #fff; border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); transition: all .2s;
}
.blog-card:hover { border-color: var(--purple); box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card__cat { font-size: 12px; font-weight: 600; color: var(--purple); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.blog-card h3 { font-size: 17px; margin-bottom: 10px; }
.blog-card p { font-size: 14px; color: var(--text-light); }
.blog-card--placeholder { border-style: dashed; border-width: 2px; }

/* ===== CONTACTS ===== */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-item__icon { font-size: 24px; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.contact-item a, .contact-item span { font-size: 16px; font-weight: 500; }
.contact-item a:hover { color: var(--purple); }
.cta-box { background: #fff; border-radius: var(--radius); padding: 32px; border: 2px solid var(--purple); box-shadow: var(--shadow); }
.cta-box h3 { font-size: 22px; margin-bottom: 10px; }
.cta-box p { color: var(--text-light); margin-bottom: 20px; }
.cta-box .btn { margin-bottom: 12px; }
.cta-box__note { font-size: 13px; color: var(--text-light); text-align: center; margin-top: 4px; }

/* ===== FOOTER ===== */
.footer { background: var(--text); color: #fff; padding: 50px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.footer__brand .logo { margin-bottom: 16px; }
.footer__brand p { font-size: 13px; color: rgba(255,255,255,.5); }
.logo--light .logo__text strong { color: #fff; }
.logo--light .logo__text small { color: rgba(255,255,255,.6); }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__links div { display: flex; flex-direction: column; gap: 8px; }
.footer__links strong { font-size: 14px; margin-bottom: 4px; }
.footer__links a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .15s; }
.footer__links a:hover { color: #fff; }

/* ===== BLOG PAGE ===== */
.blog-hero { background: var(--purple); color: #fff; padding: 60px 0; }
.blog-hero h1 { font-size: 36px; margin-bottom: 10px; }
.blog-hero p { opacity: .85; font-size: 17px; }
.blog-list { padding: 60px 0; }
.blog-list__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 40px; }
.blog-list .blog-card__date { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__specialist { order: -1; }
  .neuro__grid { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; padding: 12px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
  .nav--open { display: flex; }
  .nav-toggle { display: block; }
  .header__inner { flex-wrap: wrap; position: relative; }
  .btn--header { display: none; }
  .hero { padding: 40px 0; }
  .hero__actions { flex-direction: column; }
  .hero__stats { gap: 20px; }
  .section { padding: 50px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .about__features { grid-template-columns: 1fr; }
  .contacts-bar__inner { flex-direction: column; gap: 8px; align-items: flex-start; }
  .footer__links { grid-template-columns: 1fr; }
  .footer__inner { gap: 20px; }
}

/* Footer: disable nav-dropdown menu */
.footer .nav-dropdown > a::after { display: none; }
.footer .nav-dropdown__menu { display: none !important; }
