/* Сайт психолога Анастасии. Оформление — вариант Б: крупный скруглённый первый экран с фотографией,
   поверх — стеклянные карточки; дальше светлые разделы на лавандово-лаймовой палитре. */
:root {
  --bg: #F0EFF3;
  --card: #FFFFFF;
  --soft: #F2EDFB;
  --lav-100: #E6DDF5;
  --lav: #A68FD0;
  --lav-700: #6E55A3;
  --lime: #C8F95C;
  --lime-600: #B3E640;
  --plum: #2E1A3F;
  --ink: #2E1A3F;
  --ink-soft: #5E4E6E;
  --line: rgba(46, 26, 63, .12);
  --radius: 28px;
  --radius-lg: 44px;
  --shadow: 0 18px 40px rgba(46, 26, 63, .1);
  --head: 'Unbounded', 'Manrope', Arial, sans-serif;
  --body: 'Manrope', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lav-700); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1180px, 100% - 44px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); padding: 8px 14px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Появление блоков */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--lime { background: var(--lime); color: var(--plum); box-shadow: 0 8px 22px rgba(179, 230, 64, .4); }
.btn--lime:hover { background: var(--lime-600); }
.btn--ghost { border-color: rgba(46, 26, 63, .25); color: var(--plum); background: #fff; }
.btn--ghost:hover { border-color: var(--plum); }
.btn--glass { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.34); color: #fff; backdrop-filter: blur(10px); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 30; padding: 14px 0; transition: background-color .3s ease, box-shadow .3s ease; }
.header--over:not(.is-scrolled) .logo__text, .header--over:not(.is-scrolled) .nav a { color: #fff; }
.header--over:not(.is-scrolled) .nav a.nav__cta { color: var(--plum) !important; }
.header--over:not(.is-scrolled) .burger { background: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.header.is-scrolled { background: rgba(240, 239, 243, .9); backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(46, 26, 63, .08); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__dots { display: inline-flex; gap: 4px; }
.logo__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--lav); }
.logo__dots i:last-child { background: var(--lime); }
.logo__text { font-family: var(--head); font-weight: 500; font-size: 19px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--plum); }
.nav__cta { color: var(--plum) !important; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--plum); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: #fff; border-radius: 2px; }

/* Первый экран */
.hero { margin-top: -72px; }
.hero__block { position: relative; overflow: hidden; min-height: min(820px, 92vh); display: flex; flex-direction: column; padding-top: 72px; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 26%; }
.hero__veil { position: absolute; inset: 0; background:
    linear-gradient(105deg, rgba(46,26,63,.74) 0%, rgba(46,26,63,.46) 42%, rgba(46,26,63,.08) 72%),
    linear-gradient(to top, rgba(46,26,63,.5), transparent 45%); }
.hero__copy { position: relative; z-index: 2; margin-top: auto; padding: 0 clamp(24px, 5vw, 70px) 54px; max-width: 820px; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px); color: #fff; font-size: 14px; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.hero h1 { font-family: var(--head); font-weight: 500; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em; color: #fff; margin-top: 20px; text-wrap: balance; }
.hero__lead { margin-top: 18px; max-width: 540px; font-size: clamp(15px, 1.6vw, 18px); color: rgba(255,255,255,.85); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero__card { position: absolute; right: clamp(24px, 5vw, 70px); bottom: 54px; z-index: 2; width: 320px; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(16px); color: #fff; }
.hero__card h2 { font-family: var(--head); font-weight: 500; font-size: 18px; margin-bottom: 14px; }
.hero__card ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,.88); }
.hero__card li { display: flex; gap: 10px; }
.hero__card li::before { content: '◆'; color: var(--lime); }
.hero__links { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.hero__links a { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.hero__links a:hover { background: rgba(255,255,255,.32); }

/* Разделы */
.section { padding: 92px 0; scroll-margin-top: 88px; }
.section--soft { background: var(--soft); }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--lav-700); font-weight: 600; }
h2 { font-family: var(--head); font-weight: 500; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -.02em; margin-top: 16px; text-wrap: balance; }
h2 em { font-style: normal; color: var(--lav-700); }
.section__lead { margin-top: 18px; max-width: 620px; color: var(--ink-soft); }

/* Карточки тем */
.cards { margin-top: 44px; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-family: var(--head); font-weight: 500; font-size: 21px; line-height: 1.2; }
.card h3::after { content: ''; display: block; width: 34px; height: 3px; border-radius: 2px; background: var(--lime); margin: 13px 0 15px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }
a.card { display: block; text-decoration: none; color: inherit; }
.card__more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--lav-700); }
a.card:hover .card__more { text-decoration: underline; text-underline-offset: 4px; }
.card--note { grid-column: span 2; background: linear-gradient(120deg, #F2EDFB, #FBFAFE); border-color: rgba(166,143,208,.35); }
.card--note h3::after { background: var(--lav); }

/* Шаги */
.steps { margin-top: 44px; display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); list-style: none; }
.steps li { border-top: 2px solid var(--lav-100); padding-top: 20px; }
.steps b { display: block; font-family: var(--head); font-weight: 500; font-size: 15px; color: var(--lav-700); }
.steps h3 { font-family: var(--head); font-weight: 500; font-size: 20px; margin: 10px 0 8px; }
.steps p { font-size: 15.5px; color: var(--ink-soft); }

/* Формат */
.facts { margin-top: 40px; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); list-style: none; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.facts b { display: block; font-family: var(--head); font-weight: 500; font-size: 30px; }
.facts span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; }

/* Обо мне */
.about { margin-top: 44px; display: grid; gap: 44px; grid-template-columns: 420px 1fr; align-items: start; }
.about__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about__text p + p { margin-top: 16px; }
.about__text p { color: var(--ink-soft); }
.about__text strong { color: var(--ink); font-weight: 600; }

/* Документы */
.docs { margin-top: 44px; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.doc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; cursor: zoom-in; font: inherit; color: inherit; padding: 0; }
.doc-card img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; background: #fff; }
.doc-card__body { padding: 20px 22px 24px; }
.doc-card h3 { font-family: var(--head); font-weight: 500; font-size: 17px; line-height: 1.3; }
.doc-card p { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); }
.doc-card p em { display: block; margin-top: 8px; font-style: normal; color: var(--lav-700); font-weight: 600; }
.doc-card span { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--lav-700); }
.docs__note { margin-top: 26px; max-width: 720px; font-size: 15.5px; color: var(--ink-soft); padding-left: 18px; border-left: 3px solid var(--lav); }

/* Просмотр документа */
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 24px; background: rgba(46,26,63,.88); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 16px; object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #fff; color: var(--plum); font-size: 22px; cursor: pointer; }

/* Запись */
.booking { margin-top: 44px; display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.field i { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea { font: 400 16px/1.5 var(--body); padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--lav); outline: none; }
.field [aria-invalid='true'] { border-color: #C2453F; }
fieldset.field { border: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 15px; cursor: pointer; }
.chips input:checked + span { background: var(--lav-100); border-color: var(--lav); }
.chips input:focus-visible + span { outline: 3px solid var(--lav-700); outline-offset: 2px; }
.consent { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.consent input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form__status { min-height: 22px; font-size: 15px; }
.form__status.is-ok { color: #2F7A46; }
.form__status.is-error { color: #C2453F; }
.booking__side p { color: var(--ink-soft); }
.booking__side p + p { margin-top: 14px; }
.contacts { margin-top: 24px; display: grid; gap: 12px; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.contact:hover { border-color: var(--lav); }
.contact span { color: var(--ink-soft); font-size: 15px; }
.contact b { font-weight: 600; }
.warn { margin-top: 26px; padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(194,69,63,.3); font-size: 15px; color: var(--ink-soft); }
.warn b { display: block; color: var(--ink); margin-bottom: 6px; }

/* Плавающая кнопка */
.float-cta { position: fixed; right: 20px; bottom: 20px; z-index: 40; transition: opacity .3s ease, transform .3s ease; }
.float-cta.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* Подвал */
.footer { padding: 40px 0 34px; background: var(--plum); color: rgba(255,255,255,.75); font-size: 14.5px; }
.footer a { color: #fff; }
.footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .logo__text { color: #fff; }
.footer__note { margin-top: 18px; max-width: 760px; }

/* Юридическая страница */
.doc { padding: 60px 0 80px; }
.doc h1 { font-family: var(--head); font-weight: 500; font-size: clamp(28px, 4vw, 42px); }
.doc h2 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 32px; }
.doc p, .doc li { color: var(--ink-soft); margin-top: 12px; }
.doc ul { padding-left: 22px; }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; }
  .hero__card { position: static; width: auto; margin: 0 24px 30px; }
  .hero__copy { padding: 0 24px 22px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .cards, .facts, .docs, .steps { grid-template-columns: 1fr; }
  .card--note { grid-column: span 1; }
  .burger { display: block; }
  .nav { position: absolute; left: 12px; right: 12px; top: 72px; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border: 0; }
  .hero__block { min-height: 88vh; }
  .hero__img { object-position: 70% 24%; }
}

/* Страницы направлений */
.crumbs { font-size: 14px; color: var(--ink-soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--lav-700); }
.crumbs b { font-weight: 600; color: var(--ink); }
.tema h1 { font-family: var(--head); font-weight: 500; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.1; letter-spacing: -.02em; margin-top: 18px; }
.tema__lead { margin-top: 20px; max-width: 700px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink-soft); }
.tema__grid { margin-top: 48px; display: grid; gap: 40px; grid-template-columns: 1fr 340px; align-items: start; }
.tema__main h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 38px; }
.tema__main h2:first-child { margin-top: 0; }
.tema__main p { margin-top: 14px; color: var(--ink-soft); }
.marks { margin-top: 18px; list-style: none; display: grid; gap: 12px; }
.marks li { display: flex; gap: 12px; color: var(--ink-soft); }
.marks li::before { content: '◆'; color: var(--lime-600); flex: none; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; position: sticky; top: 100px; }
.side-card h3 { font-family: var(--head); font-weight: 500; font-size: 20px; }
.side-card p { font-size: 15px; color: var(--ink-soft); }
.side-card__meta { font-size: 14px; }
.tema__other { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 30px; }
.tema-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.tema-link { padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 500; }
.tema-link:hover { border-color: var(--lav); color: var(--lav-700); }
@media (max-width: 1000px) { .tema__grid { grid-template-columns: 1fr; } .side-card { position: static; } }
.cards--blog { grid-template-columns: repeat(3, 1fr); }
.cards--blog .card h3 { font-size: 20px; }
.cards--blog .card h3::after { display: none; }
.cards--blog .card p { margin-top: 12px; }
@media (max-width: 1000px) { .cards--blog { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .cards--blog { grid-template-columns: 1fr; } }

.tema__read{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink-soft);
}
.tema__read a{ color: var(--lav-700); }
