/* ============================================================
   Надежда Анастасьева — практический психолог
   Основной стиль сайта. Палитра и типографика повторяют
   оригинал на Tilda: Playfair Display + акцент #ef5d2b.
   ============================================================ */

:root {
  --accent:        #ef5d2b;
  --accent-dark:   #d64a1b;
  --accent-soft:   #fbeae4;
  --accent-tint:   #fff5f1;

  --bg:            #ffffff;
  --bg-alt:        #f6f6f6;

  --ink:           #000000;
  --ink-2:         #393939;
  --ink-3:         #727272;
  --line:          #e4e4e4;

  --font:          'Playfair Display', 'Times New Roman', Georgia, serif;

  --wrap:          1160px;
  --wrap-narrow:   720px;

  --gap:           clamp(48px, 7vw, 110px);
  --radius:        14px;
  --shadow:        0 10px 40px rgba(0, 0, 0, .07);
}

/* ── Сброс ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

/* Атрибут hidden должен побеждать любые display у классов ниже */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff;
  padding: 12px 20px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ── Каркас ────────────────────────────────────────────────── */

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

.section { padding: var(--gap) 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.section-title.center { text-align: center; }

.section-sub {
  color: var(--ink-3);
  font-size: 19px;
  margin-bottom: 48px;
  max-width: 640px;
}
.section-title.center + .section-sub { margin-inline: auto; text-align: center; }

.eyebrow {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lead { color: var(--ink-3); font-size: 20px; margin-bottom: 20px; }

/* ── Кнопки ────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 60px;
  padding: 15px 34px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }

.btn-wide { width: 100%; }

/* ── Шапка ─────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .05);
}

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

.logo {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink);
}
.logo:hover { color: var(--accent); }
.logo img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.logo-name { font-size: 18px; font-weight: 600; white-space: nowrap; }

@media (max-width: 480px) {
  .logo-name { display: none; }
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: var(--ink);
  font-size: 17px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav .nav-cta {
  background: var(--accent); color: #fff;
  border-radius: 60px; padding: 11px 26px; border-bottom: 0;
}
.nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  padding: 10px;
}
.burger span {
  display: block; height: 2px; background: var(--ink);
  margin: 5px 0; transition: transform .22s ease, opacity .22s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Первый экран ──────────────────────────────────────────── */

.hero { background: var(--bg-alt); overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  padding-block: clamp(40px, 6vw, 90px);
}

.hero h1 {
  font-size: clamp(42px, 6.6vw, 78px);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.hero-role {
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--ink-2);
  margin: 18px 0 28px;
}
.hero-tagline {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-2);
  margin-bottom: 36px;
}

.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Блок «Подарок» (временный) ────────────────────────────── */

.gift { padding: var(--gap) 0; }

.gift-card {
  position: relative;
  display: block;
  width: 100%;
  border: 2px dashed rgba(239, 93, 43, .45);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent-tint), var(--accent-soft));
  padding: clamp(36px, 5vw, 60px) 28px;
  font-family: inherit;
  color: var(--accent);
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gift-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 44px rgba(239, 93, 43, .2);
}

.gift-arrow {
  display: block;
  width: clamp(120px, 18vw, 190px);
  margin: 0 auto 22px;
  color: var(--accent);
  animation: gift-nudge 1.6s ease-in-out infinite;
}
.gift-arrow svg { width: 100%; height: auto; }

@keyframes gift-nudge {
  0%, 100% { transform: translateX(-10px); }
  50%      { transform: translateX(10px); }
}

.gift-label {
  display: block;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--accent);
}
.gift-hint {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  font-style: italic;
  color: var(--ink-3);
}

.gift-sparkles span {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .25;
  animation: gift-float 4s ease-in-out infinite;
}
.gift-sparkles span:nth-child(1) { left:  6%; top: 22%; animation-delay: 0s;   }
.gift-sparkles span:nth-child(2) { left: 17%; top: 68%; animation-delay: .5s;  width: 6px; height: 6px; }
.gift-sparkles span:nth-child(3) { left: 34%; top: 12%; animation-delay: 1s;   width: 7px; height: 7px; }
.gift-sparkles span:nth-child(4) { left: 68%; top: 78%; animation-delay: 1.5s; }
.gift-sparkles span:nth-child(5) { left: 84%; top: 28%; animation-delay: 2s;   width: 8px; height: 8px; }
.gift-sparkles span:nth-child(6) { left: 93%; top: 62%; animation-delay: 2.5s; width: 6px; height: 6px; }

@keyframes gift-float {
  0%, 100% { transform: translateY(0);     opacity: .2; }
  50%      { transform: translateY(-14px); opacity: .5; }
}

/* ── Списки с галочками ────────────────────────────────────── */

.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 56px;
  margin-top: 44px;
}

.checklist li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ── Две колонки: текст + медиа ────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.split-text p { color: var(--ink-2); }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.split-sticky { grid-template-columns: minmax(220px, 1fr) 1.6fr; align-items: start; }
.split-aside .section-title { margin-bottom: 0; }

@media (min-width: 901px) {
  .split-aside { position: sticky; top: 120px; }
}

/* ── Списки с иконками ─────────────────────────────────────── */

.feature-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.feature-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent);
}
.feature-icon img { width: 28px; height: 28px; }

.feature-list h3 { font-size: 22px; margin-bottom: 8px; }
.feature-list p  { color: var(--ink-3); font-size: 17px; margin: 0; }

/* ── Квиз ──────────────────────────────────────────────────── */

.quiz-section { background: var(--bg-alt); }

.quiz-intro {
  text-align: center;
  color: var(--ink-3);
  font-size: 19px;
  margin-bottom: 40px;
}

.quiz {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quiz-aside {
  background: var(--accent-tint);
  padding: 36px 28px;
  text-align: center;
}
.quiz-aside img {
  width: 110px; height: 110px;
  object-fit: cover; object-position: top center;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.quiz-aside-name { font-size: 20px; font-weight: 600; margin: 0; }
.quiz-aside-role { color: var(--ink-3); font-size: 16px; margin: 0 0 18px; }
.quiz-aside-note {
  display: inline-block;
  background: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
}

.quiz-body { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }

.quiz-step { display: none; border: 0; padding: 0; margin: 0; min-inline-size: auto; }
.quiz-step.is-active { display: block; }

.quiz-step legend {
  padding: 0;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  margin-bottom: 22px;
}
.quiz-sub { color: var(--ink-3); margin-bottom: 24px; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.options label {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.4;
  transition: border-color .15s ease, background-color .15s ease;
}
.options label:hover { border-color: var(--accent); }
.options input { accent-color: var(--accent); margin-top: 4px; flex: none; }
.options label:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }

.other-input {
  margin-top: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit; font-size: 17px;
}
.other-input:focus { border-color: var(--accent); outline: none; }

.note { color: var(--ink-3); font-size: 15px; margin-top: 16px; }

.quiz-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: auto; padding-top: 30px;
}
.quiz-progress { color: var(--ink-3); font-size: 16px; }
.quiz-buttons { display: flex; gap: 12px; }

/* ── Поля форм ─────────────────────────────────────────────── */

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: block; margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px;
  font-family: inherit;
  font-size: 17px;
  background: #fff;
  color: var(--ink);
}
.field input:focus { border-color: var(--accent); outline: none; }
.field input[aria-invalid="true"] { border-color: #d33; }

/* honeypot — приманка для спам-ботов, людям не видна */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status { margin: 16px 0 0; font-size: 17px; min-height: 1.6em; }
.form-status.is-ok    { color: #2a7d46; }
.form-status.is-error { color: #c0392b; }

.form-note { color: var(--ink-3); font-size: 14px; margin-top: 14px; text-align: center; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 40px);
}

/* ── Карточки тарифов ──────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-accent { border-color: var(--accent); background: var(--accent-tint); }

.card h3 { font-size: 22px; margin-bottom: 6px; }
.card-meta  { color: var(--ink-3); font-size: 15px; margin-bottom: 16px; }
.card-price { font-size: 30px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.card-text  { color: var(--ink-2); font-size: 16px; flex: 1; }
.card-link  { font-size: 16px; font-weight: 600; border-bottom: 1px solid currentColor; align-self: flex-start; }

/* ── Кейсы ─────────────────────────────────────────────────── */

.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}
.case h3 { color: var(--accent); font-size: 24px; margin-bottom: 14px; }
.case p  { color: var(--ink-2); font-size: 17px; margin-bottom: 10px; }
.case p:last-child { margin-bottom: 0; }
.case b { font-weight: 600; color: var(--ink); }

/* ── FAQ ───────────────────────────────────────────────────── */

.faq { margin-top: 36px; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 24px; font-weight: 400; line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--ink-2); margin: 0; }

/* ── Футер ─────────────────────────────────────────────────── */

.site-footer {
  background: var(--accent);
  color: #fff;
  padding: clamp(48px, 6vw, 76px) 0;
  text-align: center;
}
.footer-icon { width: 48px; margin: 0 auto 20px; }
.footer-title { font-size: clamp(22px, 3vw, 30px); font-weight: 600; margin-bottom: 22px; }
.footer-links { font-size: 20px; margin-bottom: 26px; }
.footer-links a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .55); }
.footer-links a:hover { color: #fff; border-bottom-color: #fff; }
.footer-links span { margin: 0 14px; opacity: .6; }
.footer-copy { font-size: 15px; opacity: .8; margin: 0; }

/* ── Модальное окно ────────────────────────────────────────── */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .82); }

.modal-box {
  position: relative;
  width: min(1000px, 100%);
  animation: modal-in .25s ease;
}
@keyframes modal-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

.modal-box video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  max-height: 82vh;
}

.modal-close {
  position: absolute; top: -48px; right: 0;
  width: 40px; height: 40px;
  background: none; border: 0;
  color: #fff; font-size: 34px; line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--accent); }

body.is-locked { overflow: hidden; }

/* ── Адаптив ───────────────────────────────────────────────── */

@media (max-width: 900px) {
  body { font-size: 17px; }

  .burger { display: block; }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { text-align: center; margin-top: 16px; padding: 14px 26px; }

  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 420px; margin: 0 auto; }

  .help-grid { grid-template-columns: 1fr; gap: 0; }

  .split, .split-sticky { grid-template-columns: 1fr; }
  .split-media { order: -1; }

  .quiz { grid-template-columns: 1fr; }
  .quiz-aside { display: flex; align-items: center; gap: 16px; text-align: left; padding: 22px 24px; }
  .quiz-aside img { width: 64px; height: 64px; margin: 0; }
  .quiz-aside-note { margin-left: auto; }

  .cards { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .options, .fields { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }

  .quiz-aside-note { display: none; }
  .quiz-foot { flex-direction: column-reverse; align-items: stretch; }
  .quiz-buttons { display: grid; grid-template-columns: 1fr; }
  .quiz-progress { text-align: center; }

  .faq summary { font-size: 18px; padding: 18px 20px; }
  .faq details p { padding: 0 20px 20px; }

  .modal-close { top: -44px; }
}

/* ── Пароль на подарок ─────────────────────────────────────── */

.gate {
  background: #fff;
  border-radius: 20px;
  padding: clamp(32px, 5vw, 52px) clamp(24px, 4vw, 48px);
  text-align: center;
}

.gate-title {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--accent);
  margin-bottom: 14px;
}

.gate-hint { color: var(--ink-2); font-size: 18px; margin-bottom: 28px; }
.gate-hint b { font-weight: 600; }

.gate-form {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.gate-form input {
  flex: 1 1 240px;
  max-width: 320px;
  border: 1px solid var(--line);
  border-radius: 60px;
  padding: 15px 24px;
  font-family: inherit;
  font-size: 18px;
  text-align: center;
  letter-spacing: .08em;
}
.gate-form input:focus { border-color: var(--accent); outline: none; }

.gate-error { color: #c0392b; font-size: 17px; margin: 18px 0 0; min-height: 1.4em; }

.gate-form.shake { animation: gate-shake .4s ease; }
@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-9px); }
  40%      { transform: translateX(9px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}
