/* Neurodynamics Institute — фирменный стиль (brand-identity.md) */
:root {
  --navy: #1B2A4A;
  --navy-2: #24365C;
  --ocean: #1D6FA3;
  --ocean-dark: #175B86;
  --sky: #8CC7E8;
  --mist: #EEF3F7;
  --steel: #93A3B5;
  --ink: #1B2A4A;
  --text: #3A4A63;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(27, 42, 74, .08);
  --wrap: 1160px;
  --head: 'Sora', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #D5DEEA; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow {
  display: inline-block; font: 600 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ocean); margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--sky); }
.lead { font-size: 1.15rem; max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--steel); font-size: .9rem; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 30px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ocean); color: var(--white); }
.btn--primary:hover { background: var(--ocean-dark); }
.btn--ghost { border-color: var(--ocean); color: var(--ocean); background: transparent; }
.btn--ghost:hover { background: var(--ocean); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--wa { background: #1FA855; color: var(--white); }
.btn--wa:hover { background: #178a45; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid #E3EAF1; }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.header__logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ocean); }
.nav .btn { padding: 10px 20px; font-size: .92rem; color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
         gap: 0; background: var(--white); border-bottom: 1px solid #E3EAF1; padding: 8px 22px 18px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--mist); }
  .nav .btn { margin-top: 12px; }
}

/* Hero */
.hero { padding: 72px 0 84px; background: linear-gradient(160deg, var(--mist) 0%, #FFFFFF 70%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.hero__meta li { background: var(--white); border: 1px solid #D6E2EC; border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.hero__photo { position: relative; }
.hero__photo img { border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; object-position: center top; width: 100%; }
.hero__badge { position: absolute; left: -18px; bottom: 26px; background: var(--navy); color: var(--white); padding: 14px 18px; border-radius: 14px; font-size: .9rem; line-height: 1.35; box-shadow: var(--shadow); max-width: 240px; }
.hero__badge b { display: block; font-family: var(--head); font-size: 1.05rem; color: var(--sky); }
.hero--navy { background: var(--navy); color: #D5DEEA; }
.hero--navy h1 { color: var(--white); }
@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__badge { left: 12px; }
  .hero__photo img { aspect-ratio: 1/1; }
}

/* Сетки и карточки */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid #E1E9F0; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.section--mist .card { border-color: transparent; }
.section--navy .card { background: var(--navy-2); border-color: transparent; box-shadow: none; }
.card__num { font: 700 .85rem/1 var(--head); color: var(--ocean); letter-spacing: .1em; margin-bottom: 14px; display: block; }
.section--navy .card__num { color: var(--sky); }
.section-head { margin-bottom: 44px; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ocean) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.crosslist li::before { background: var(--steel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* Боль: две колонки */
.pain { border-top: 4px solid var(--ocean); }
.pain h3 { font-size: 1.25rem; }

/* Три уровня метода */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.levels > div { padding: 30px 26px; background: var(--white); }
.levels > div + div { border-left: 1px solid #E1E9F0; }
.levels b { display: block; font-family: var(--head); color: var(--ocean); font-size: 1.1rem; margin-bottom: 6px; }
@media (max-width: 760px) { .levels { grid-template-columns: 1fr; } .levels > div + div { border-left: 0; border-top: 1px solid #E1E9F0; } }

/* Статистика */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 18px; }
.stat b { display: block; font: 700 2.8rem/1 var(--head); color: var(--sky); margin-bottom: 10px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* До / после */
.case { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; margin-bottom: 46px; }
.case img { border-radius: var(--radius); box-shadow: var(--shadow); }
.case__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case__cols h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--steel); margin-bottom: 6px; }
.case__cols div:last-child h4 { color: var(--ocean); }
.case__cols p { font-size: .96rem; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* Видео */
.video { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--navy); cursor: pointer; border: 0; padding: 0; width: 100%; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video:hover img { opacity: 1; }
.video::after { content: ""; position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%231D6FA3'/%3E%3C/svg%3E") center/34px no-repeat; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.is-playing::after { display: none; }
.video-cap { margin-top: 10px; font-weight: 500; color: var(--ink); font-size: .95rem; }

/* Программа по дням */
.days { display: grid; gap: 14px; }
details.day { background: var(--white); border-radius: 14px; border: 1px solid #E1E9F0; }
details.day summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; gap: 18px; align-items: center; font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 1.08rem; }
details.day summary::-webkit-details-marker { display: none; }
details.day summary .day__n { flex: 0 0 auto; background: var(--mist); color: var(--ocean); border-radius: 10px; padding: 6px 12px; font-size: .85rem; }
details.day summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; color: var(--ocean); font-weight: 400; }
details.day[open] summary::after { content: "–"; }
details.day ul { margin: 0; padding: 0 24px 22px 56px; }
details.day li { margin-bottom: 6px; }

/* Преподаватели */
.teacher { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: start; }
.teacher img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: center top; border: 4px solid var(--mist); }
.teacher__role { color: var(--ocean); font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
@media (max-width: 560px) { .teacher { grid-template-columns: 1fr; } }

/* Цены */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 880px; margin: 0 auto; }
.price { background: var(--white); border-radius: 22px; padding: 34px 30px; border: 2px solid #E1E9F0; position: relative; }
.price--hot { border-color: var(--ocean); box-shadow: 0 16px 40px rgba(29,111,163,.18); }
.price__tag { position: absolute; top: -14px; left: 30px; background: var(--ocean); color: var(--white); padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.price__name { font-family: var(--head); font-weight: 600; color: var(--ink); }
.price__sum { font: 700 3rem/1 var(--head); color: var(--navy); margin: 14px 0 4px; }
.price__note { color: var(--steel); font-size: .92rem; margin-bottom: 20px; }
.price .btn { width: 100%; margin-top: 18px; }
@media (max-width: 720px) { .prices { grid-template-columns: 1fr; } }
.pay-options { max-width: 880px; margin: 26px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pay-options div { background: var(--white); border-radius: 14px; padding: 16px 18px; font-size: .93rem; }
.pay-options b { display: block; color: var(--ink); font-family: var(--head); }
@media (max-width: 720px) { .pay-options { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid #DCE5EE; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--head); font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; color: var(--ocean); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 14px; }

/* Форма */
.form-box { background: var(--white); border-radius: 24px; padding: 36px; box-shadow: 0 20px 50px rgba(0,0,0,.18); color: var(--text); }
.form-box h3 { margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid #D3DEE8; border-radius: 12px; font: inherit; color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(29,111,163,.15); }
.radio-group { display: grid; gap: 8px; }
.radio-group label { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: .95rem; border: 1.5px solid #D3DEE8; border-radius: 12px; padding: 11px 14px; cursor: pointer; margin: 0; }
.radio-group input { accent-color: var(--ocean); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; line-height: 1.45; margin: 10px 0 16px; }
.consent input { margin-top: 3px; accent-color: var(--ocean); }
.form-box .btn { width: 100%; }
.hidden { display: none !important; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; gap: 30px; } .form-box { padding: 26px 20px; } }

/* Плашка срочности */
.notice { display: flex; gap: 16px; align-items: center; background: var(--white); border-left: 4px solid var(--ocean); border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow); max-width: 880px; margin: 0 auto 34px; }
.notice b { color: var(--ink); }

/* Курсы (каталог) */
.course { display: flex; flex-direction: column; }
.course__tag { align-self: flex-start; font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--mist); color: var(--ocean); margin-bottom: 16px; }
.course__tag--open { background: var(--ocean); color: var(--white); }
.course__meta { list-style: none; padding: 0; margin: 0 0 20px; font-size: .92rem; color: var(--steel); }
.course .btn { margin-top: auto; align-self: flex-start; padding: 12px 22px; font-size: .94rem; }

/* Подвал */
.footer { background: #142038; color: #9FB0C6; padding: 56px 0 30px; font-size: .92rem; }
.footer a { color: #C9D6E6; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer__logo img { height: 46px; width: auto; margin-bottom: 16px; }
.footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer__bottom { border-top: 1px solid #26365A; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 26px; } }

/* Посадочная: закреплённая кнопка на мобильном */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); box-shadow: 0 -6px 20px rgba(27,42,74,.12); transform: translateY(110%); transition: transform .25s; }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { flex: 1; padding: 14px 10px; font-size: .95rem; }
  .sticky-cta .btn--wa { flex: 0 0 56px; }
  body.has-sticky { padding-bottom: 80px; }
}

/* Юридические страницы */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2em; }
.legal p { font-size: .98rem; }
