/* Кабинет психолога Т. М. Поповой — общий стиль
   Палитра: холодный серо-зелёный грунт, чернильный текст, один акцент (розово-красный, полоса ~340°)
   Шрифты: Onest (заголовки) + Golos Text (текст) */

:root {
  --bg: #EDF0EC;
  --surface: #F7F9F6;
  --fg: #141A18;
  --muted: #4E5A55;
  --border: #CBD3CD;
  --accent: #C22F4D;
  --accent-on: #FFFFFF;
  --font-display: 'Onest', 'Commissioner', sans-serif;
  --font-body: 'Golos Text', 'Noto Sans', sans-serif;
  --radius: 0px;
  --space-section: 96px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; }
a { color: inherit; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

.section { padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) / 2); }
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---------- шапка ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 20;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 68px; padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px; flex: none; border: 1.5px solid var(--fg);
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
}
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand__sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: var(--muted); }

.nav { display: none; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--fg); font-weight: 600; }

@media (min-width: 900px) { .nav { display: flex; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px;
  background: var(--accent); color: var(--accent-on);
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  text-decoration: none; border: 1px solid var(--accent); border-radius: var(--radius);
  cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: #A5243E; border-color: #A5243E; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.btn { white-space: nowrap; }

@media (max-width: 560px) {
  .brand__sub { display: none; }
  .btn { padding: 11px 16px; font-size: 15px; }
}

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

/* ---------- герой ---------- */
.hero { padding-block: clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero__figure { margin: 0; }
.hero__figure img { border: 1px solid var(--border); aspect-ratio: 3 / 4; object-fit: cover; }
.hero__figure figcaption {
  font-size: 13.5px; color: var(--muted); margin-top: 10px;
  border-top: 1px solid var(--border); padding-top: 10px;
}

/* ---------- как записаться ---------- */
.bookbar { background: var(--fg); color: var(--bg); padding-block: clamp(34px, 5vw, 56px); }
.bookbar__inner { display: grid; gap: 28px; }
@media (min-width: 1000px) { .bookbar__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; } }
.bookbar h2 { color: #fff; margin-bottom: 10px; }
.bookbar__text p { color: #B9C3BD; margin: 0; max-width: 44ch; }
.bookbar__contacts { display: grid; gap: 1px; background: #333D38; border: 1px solid #333D38; }
@media (min-width: 620px) { .bookbar__contacts { grid-template-columns: repeat(2, 1fr); } }
.bookbar__item {
  background: var(--fg); text-decoration: none; padding: 18px 20px;
  display: grid; gap: 2px; align-content: start;
}
.bookbar__item:hover { background: #1D2723; }
.bookbar__label { font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: #8E9B94; }
.bookbar__item strong { font-family: var(--font-display); font-size: 1.18rem; color: #fff; font-weight: 700; }
.bookbar__note { font-size: 14px; color: #9DA9A2; }
.bookbar__item--cta { background: var(--accent); }
.bookbar__item--cta:hover { background: #A5243E; }
.bookbar__item--cta .bookbar__label { color: #F3C6D0; }
.bookbar__item--cta .bookbar__note { color: #F3C6D0; }

/* ---------- показатели ---------- */
.facts-section { border-block: 1px solid var(--border); }
.facts { display: grid; width: min(1160px, 100% - 40px); margin-inline: auto; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { padding: 22px 18px; }
@media (min-width: 720px) {
  .fact + .fact { border-left: 1px solid var(--border); }
}
.fact__num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1; letter-spacing: -0.02em; display: block; margin-bottom: 8px; white-space: nowrap;
}
.fact__num a { text-decoration: none; }
.fact__num a:hover { color: var(--accent); }
.fact__label { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- сетка тем ---------- */
.topics { display: grid; gap: 0; border-top: 1px solid var(--border); }
@media (min-width: 760px) { .topics { grid-template-columns: repeat(2, 1fr); column-gap: 56px; } }
.topic {
  padding: 22px 0; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: baseline;
}
.topic__num { font-family: var(--font-display); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.topic__title { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin: 0 0 4px; }
.topic p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- шаги ---------- */
.steps { display: grid; gap: 28px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step { border-top: 2px solid var(--fg); padding-top: 16px; }
.step__num { font-family: var(--font-display); font-size: 13px; color: var(--accent); letter-spacing: .06em; display: block; margin-bottom: 10px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- расписание (мотив) ---------- */
.schedule { border: 1px solid var(--fg); background: var(--surface); }
.schedule__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid var(--fg);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.schedule__body { display: grid; }
.day {
  display: grid; grid-template-columns: 150px minmax(0, 1fr);
  gap: 4px 16px; padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 15.5px;
}
.day:last-child { border-bottom: 0; }
.day--off { color: var(--muted); }
.day__name { font-family: var(--font-display); font-weight: 600; }
.day__time { font-variant-numeric: tabular-nums; }
.day__note { grid-column: 2; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .day { grid-template-columns: minmax(0, 1fr); }
  .day__note { grid-column: 1; }
}

/* ---------- цены ---------- */
.prices { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prices caption { text-align: left; color: var(--muted); font-size: 14.5px; padding-bottom: 12px; }
.prices th, .prices td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.prices thead th { font-family: var(--font-display); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.prices td:last-child, .prices th:last-child { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices tbody tr:hover { background: var(--surface); }
.prices__note { color: var(--muted); font-size: 14.5px; margin-top: 16px; }

/* ---------- отзывы ---------- */
.reviews { display: grid; gap: 32px; }
@media (min-width: 860px) { .reviews { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; } }
.score { display: flex; align-items: baseline; gap: 14px; }
.score__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 8vw, 5rem); line-height: .9; letter-spacing: -0.03em; }
.score__count { font-size: 15.5px; color: var(--muted); }
.reviews__list { border-top: 1px solid var(--border); }
.review { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review__head { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; color: var(--muted); margin-bottom: 6px; }
.review p { margin: 0; font-size: 15.5px; }
.review__source a { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 22px; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: '–'; }
.faq summary:hover { color: var(--accent); }
.faq__body { padding: 0 0 20px; color: var(--muted); max-width: 68ch; }

/* ---------- CTA / форма ---------- */
.cta { background: var(--fg); color: var(--bg); }
.cta h2 { color: #fff; }
.cta .lead { color: #C3CCC7; }
.cta__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.cta__links { display: grid; gap: 18px; align-content: start; }
.cta-link { display: block; text-decoration: none; border-bottom: 1px solid #35403B; padding-bottom: 16px; }
.cta-link strong { font-family: var(--font-display); font-size: 1.15rem; color: #fff; display: block; }
.cta-link span { color: #A7B2AC; font-size: 15px; }
.cta-link:hover strong { color: #F0A8B7; }

.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--fg);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 14px; min-height: 48px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.form__consent input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; flex: none; }
.form__status { font-size: 15px; margin: 0; min-height: 1.4em; }
.form__status--ok { color: #2E7D4F; }

.map { border: 1px solid var(--border); background: var(--surface); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }
.map__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 18px; font-size: 14.5px; border-top: 1px solid var(--border); }
.map__bar a { color: var(--accent); }

/* ---------- текстовые страницы ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 34px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.prose strong { color: var(--fg); }
.prose a { color: var(--accent); }

/* ---------- подвал ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 40px 48px; font-size: 14.5px; color: var(--muted); }
.site-footer__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.site-footer h3 { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- мелкие ---------- */
.breadcrumbs { font-size: 14px; color: var(--muted); padding-block: 16px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--border); }
.note { font-size: 14.5px; color: var(--muted); }
.tag {
  display: inline-block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 2px; margin-bottom: 14px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- цитата ---------- */
.quote-band { background: var(--surface); border-bottom: 1px solid var(--border); padding-block: clamp(28px, 4vw, 46px); }
.quote {
  margin: 0; max-width: 62ch;
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.35; color: var(--fg); letter-spacing: -0.015em;
}
.quote cite { display: block; margin-top: 14px; font-family: var(--font-body); font-style: normal; font-size: 14.5px; color: var(--muted); letter-spacing: 0; }

/* ---------- методы ---------- */
.methods { display: grid; gap: 0; border-top: 1px solid var(--border); }
@media (min-width: 900px) { .methods { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.method { padding: 26px 0 26px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 900px) { .method { padding: 26px 32px 0 0; border-bottom: 0; border-right: 1px solid var(--border); } .method:last-child { border-right: 0; padding-right: 0; } .method + .method { padding-left: 32px; } }
.method h3 { font-size: 1.14rem; margin-bottom: 10px; }
.method p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- обо мне ---------- */
.about { display: grid; gap: 32px; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; } }
.about__text p { margin: 0 0 18px; font-size: 16px; color: var(--muted); max-width: 68ch; }
.about__text p:last-child { margin-bottom: 0; }
.about__facts { border-top: 2px solid var(--fg); padding-top: 16px; align-self: start; }
.about__facts h3 { font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.about__facts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.about__facts li { border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.about__facts b { font-family: var(--font-display); color: var(--fg); font-weight: 700; }

/* ---------- карта-карточка ---------- */
.map__card { display: grid; gap: 0; }
@media (min-width: 760px) { .map__card { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: stretch; } }
.map__card img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; border-right: 1px solid var(--border); }
.map__info { padding: 26px 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.map__addr { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin: 0; }
.map__note { font-size: 15px; color: var(--muted); margin: 0; max-width: 46ch; }
.map__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.nb { white-space: nowrap; }
@media (max-width: 620px) { .nb { white-space: normal; } }

/* ---------- нижняя панель записи (мобильные) ---------- */
.tapbar { display: none; }
@media (max-width: 860px) {
  .tapbar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--fg); border-top: 1px solid var(--border);
  }
  .tapbar__btn {
    display: block; text-align: center; text-decoration: none;
    padding: 13px 6px; border-radius: 2px; font-weight: 700; font-size: 15px;
    letter-spacing: .01em; color: #fff;
  }
  .tapbar__btn--tg { background: #2AABEE; }
  .tapbar__btn--wa { background: #25D366; color: #10310f; }
  .tapbar__btn--sms { background: var(--accent); }
  body { padding-bottom: 76px; }
}

@media (min-width: 900px) { .methods { grid-template-columns: repeat(6, 1fr); } .method { grid-column: span 2; } .method:nth-child(4) { grid-column: 1 / span 3; border-right: 0; padding-right: 0; } .method:nth-child(5) { grid-column: 4 / span 3; border-right: 0; padding-right: 0; } }

.hero__addr{
  margin:0 0 16px;
  font:500 17px/1.4 var(--font-body);
  color:var(--muted);
}
