/* Сайт психолога Анастасии. Оформление — вариант Б: крупный скруглённый первый экран с фотографией,
   поверх — стеклянные карточки; дальше светлые разделы на лавандово-лаймовой палитре. */
: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; padding-top: 72px;
  background:
    radial-gradient(120% 90% at 82% 18%, rgba(166,143,208,.42), transparent 60%),
    linear-gradient(160deg, #2E1A3F 0%, #3B2452 52%, #241433 100%);
}
.hero__inner {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(26px, 4vw, 54px) clamp(24px, 5vw, 70px) clamp(40px, 5vw, 70px);
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 60px); align-items: center;
}
.hero__copy { position: relative; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); 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, 4.4vw, 58px); line-height: 1.06; letter-spacing: -.02em; color: #fff; margin-top: 20px; text-wrap: balance; }
.hero__lead { margin-top: 18px; max-width: 520px; font-size: clamp(15px, 1.5vw, 18px); color: rgba(255,255,255,.85); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero__media { position: relative; }
.hero__img {
  display: block; width: 100%; height: auto; border-radius: 34px;
  box-shadow: 0 30px 70px rgba(20, 10, 30, .45);
}
.hero__card {
  position: relative; z-index: 2; margin: -54px 0 0 auto; width: min(340px, 100%);
  padding: 22px 24px; border-radius: var(--radius);
  background: rgba(46,26,63,.55); border: 1px solid rgba(255,255,255,.26);
  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__photo img { display: block; width: 100%; height: auto; }
.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; }
.hint { margin-top: 26px; padding: 20px 22px; border-radius: var(--radius); background: var(--soft); border: 1px solid rgba(166,143,208,.4); font-size: 15px; color: var(--ink-soft); }
.hint b { display: block; color: var(--ink); margin-bottom: 6px; }
.hint a { color: var(--lav-700); }
.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__inner { grid-template-columns: 1fr; gap: 26px; }
  .hero__card { width: auto; margin: -40px 0 0; }
}
@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__img { border-radius: 26px; }
  .hero__card { margin-top: -34px; }
}

/* Страницы направлений */
.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); }

/* Кнопка «наверх» */
.to-top{
  position: fixed; right: 20px; bottom: 20px; z-index: 39;
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  background: var(--lav-700); color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  box-shadow: 0 10px 26px rgba(46, 26, 63, .28);
}
.to-top.is-visible{ opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover{ background: var(--plum); }
.to-top:focus-visible{ outline: 3px solid var(--lime); outline-offset: 3px; }
.to-top--raised{ bottom: 82px; }
@media (max-width: 640px){ .to-top{ width: 44px; height: 44px; right: 16px; } }
@media (prefers-reduced-motion: reduce){ .to-top{ transition: opacity .2s ease; transform: none; } }

/* Видео в блоге: в сетке — компактные обложки, сам ролик открывается поверх страницы */
.video-intro { margin-top: 40px; }
.video-intro h2 { margin-top: 12px; }
.vcards { margin-top: 32px; display: grid; gap: 18px; grid-template-columns: repeat(5, 1fr); }
.vcard {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.vcard:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(46,26,63,.16); }
.vcard:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; }
.vcard__media { position: relative; display: block; }
.vcard__cover { display: block; width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: center 22%; background: var(--plum); }
.vcard__play {
  position: absolute; right: 10px; bottom: 10px;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(46,26,63,.55);
  border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(6px);
  transition: background .2s ease;
}
.vcard:hover .vcard__play { background: var(--lav-700); }
.vcard__play::after { content: ''; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.vcard__body { display: block; flex: 1; padding: 14px 16px 18px; }
.vcard__title { display: block; font-family: var(--head); font-weight: 500; font-size: 16px; line-height: 1.25; color: var(--ink); hyphens: auto; overflow-wrap: anywhere; }
.vcard__text { display: block; margin-top: 7px; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }

/* Просмотр ролика поверх страницы */
.vbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(20,10,30,.88); backdrop-filter: blur(6px); }
.vbox[hidden] { display: none; }
.vbox__inner { display: grid; gap: 14px; justify-items: center; max-width: 100%; }
.vbox video { max-width: min(430px, 92vw); max-height: 78vh; width: auto; border-radius: 22px; background: #000; }
.vbox__title { max-width: min(430px, 92vw); text-align: center; color: rgba(255,255,255,.9); font-size: 15px; }
.vbox__close { position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.vbox__close:hover { background: rgba(255,255,255,.3); }

@media (max-width: 1200px) { .vcards { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .vcards { grid-template-columns: repeat(3, 1fr); } }
/* Телефон: три обложки в ряд, подписи короткие — раздел занимает мало места */
@media (max-width: 560px) {
  .vcards { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .vcard { border-radius: 16px; }
  .vcard__play { right: 6px; bottom: 6px; width: 32px; height: 32px; }
  .vcard__play::after { left: 12px; top: 8px; border-width: 7px 0 7px 11px; }
  .vcard__body { padding: 9px 10px 12px; }
  .vcard__title { font-size: 12.5px; line-height: 1.24; }
  .vcard__text { display: none; }
}
