/* ============================================================
   БЕРЁЗА | ПСИХОЛОГ КПТ — современный стиль
   ============================================================ */

:root {
  --teal:        #2A6B6B;
  --teal-dark:   #1F5252;
  --teal-light:  #7FB8A8;
  --teal-glow:   #E4EFEC;
  --accent:      #D9A05B;
  --accent-dark: #C08B45;
  --bg:          #F7F4EF;
  --bg-alt:      #FFFFFF;
  --text:        #2E2E2E;
  --muted:       #5C5C5C;
  --soft:        #E8E2D9;
  --white:       #FFFFFF;
  --radius:      18px;
  --radius-sm:   12px;
  --shadow-sm:   0 2px 12px rgba(42,107,107,0.06);
  --shadow:      0 8px 32px rgba(42,107,107,0.10);
  --shadow-lg:   0 16px 48px rgba(42,107,107,0.14);
  --ease:        cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.03em; }
h2 { font-size: clamp(24px, 3.2vw, 36px); margin-top: 1.5em; }
h3 { font-size: clamp(19px, 2.2vw, 24px); margin-top: 1.4em; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== АНИМАЦИИ ПОЯВЛЕНИЯ ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,239,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.header.is-scrolled {
  background: rgba(247,244,239,0.96);
  border-bottom-color: var(--soft);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 48px; width: auto; transition: transform .3s var(--ease); }
.logo:hover img { transform: scale(1.03); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text); font-size: 16px; font-weight: 500; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav__phone { color: var(--teal) !important; font-weight: 700; }
.nav__phone::after { display: none; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; border: 1px solid var(--soft); background: var(--white);
  border-radius: 12px; cursor: pointer; padding: 0; transition: border-color .2s;
}
.burger:hover { border-color: var(--teal); }
.burger span { display: block; width: 22px; height: 2px; margin: 0 auto;
  background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(20,35,35,0.5);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  z-index: 90; backdrop-filter: blur(2px);
}
.nav-overlay.is-active { opacity: 1; visibility: visible; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(60px, 9vw, 120px) 0 clamp(50px, 7vw, 90px);
  background:
    radial-gradient(ellipse at top right, rgba(127,184,168,0.20) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(217,160,91,0.10) 0%, transparent 50%),
    var(--bg);
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(30px, 5vw, 70px); align-items: center;
}
.hero__eyebrow {
  display: inline-block; padding: 8px 16px; margin-bottom: 22px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-glow); border-radius: 999px;
}
.hero h1 { margin-bottom: .4em; }
.hero__lead {
  font-size: clamp(17px, 1.9vw, 20px); color: var(--muted);
  max-width: 600px; margin-bottom: 2em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__photo {
  position: relative; border-radius: 26px; overflow: hidden;
  aspect-ratio: 4/5; background: linear-gradient(150deg, var(--teal) 0%, #35797A 100%);
  box-shadow: var(--shadow-lg);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; color: rgba(255,255,255,0.85);
}
.hero__photo-placeholder svg { width: 80px; height: 80px; opacity: .7; }
.hero__photo-placeholder span { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

/* ===== СЕКЦИИ ===== */
.section { padding: clamp(50px, 7vw, 90px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 780px; margin-bottom: clamp(36px, 4vw, 56px); }
.section__lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); margin: 0; }
.section__title { margin-bottom: .35em; }

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-size: 16px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 6px 20px rgba(42,107,107,0.28); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; box-shadow: 0 10px 28px rgba(42,107,107,0.35); }
.btn--accent { background: var(--accent); color: var(--text); box-shadow: 0 6px 20px rgba(217,160,91,0.30); }
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 10px 28px rgba(217,160,91,0.40); }
.btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--ghost { background: var(--white); color: var(--text); border-color: var(--soft); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ===== СЕТКИ И КАРТОЧКИ ===== */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--soft);
  border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-light); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-top: 0; }
.card__price {
  font-size: 30px; font-weight: 800; color: var(--teal);
  margin: 14px 0 6px; letter-spacing: -.02em;
}
.card__price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.card__note { color: var(--muted); font-size: 15px; margin: 0; }
.card__icon {
  width: 48px; height: 48px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-glow); border-radius: 12px; color: var(--teal);
}
.card__icon svg { width: 26px; height: 26px; }

/* ===== CTA ===== */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--teal) 0%, #35797A 60%, #3E8B7E 100%);
  color: #fff; border-radius: 24px; padding: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 56px);
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(217,160,91,0.18); filter: blur(40px); pointer-events: none;
}
.cta::after {
  content: ""; position: absolute; bottom: -80px; left: -40px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(127,184,168,0.20); filter: blur(50px); pointer-events: none;
}
.cta h2 { color: #fff; margin-top: 0; position: relative; z-index: 1; }
.cta p { color: rgba(255,255,255,0.9); max-width: 640px; margin: 0 auto 1.8em; position: relative; z-index: 1; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; z-index: 1; }
.cta .btn--accent { color: var(--text); }
.cta .btn--outline { border-color: rgba(255,255,255,0.65); color: #fff; }
.cta .btn--outline:hover { background: #fff; color: var(--teal); border-color: #fff; }

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs { font-size: 14px; color: var(--muted); padding: 20px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs span { margin: 0 8px; opacity: .5; }

/* ===== СТАТЬИ ===== */
.article { padding: 30px 0 80px; }
.article__cover { border-radius: var(--radius); overflow: hidden; margin: 26px 0 36px; box-shadow: var(--shadow); }
.article__cover img { width: 100%; height: auto; }
.article__body { max-width: 760px; font-size: 18px; }
.article__body h2 { margin-top: 2em; }
.article__body h3 { margin-top: 1.6em; }
.article__body ul, .article__body ol { padding-left: 1.4em; }
.article__body blockquote {
  margin: 1.6em 0; padding: 20px 26px; background: var(--white);
  border-left: 4px solid var(--accent); border-radius: 10px; color: var(--muted);
  font-style: italic;
}

table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 16px;
  background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
}
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--soft); }
th { background: var(--teal-glow); font-weight: 700; color: var(--teal-dark); }
tr:last-child td { border-bottom: 0; }

/* ===== FAQ ===== */
.faq { margin: 1.6em 0; }
.faq details {
  background: var(--white); border: 1px solid var(--soft); border-radius: var(--radius-sm);
  padding: 20px 24px; margin-bottom: 12px; transition: border-color .2s, box-shadow .2s;
}
.faq details:hover { border-color: var(--teal-light); }
.faq details[open] { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 12px; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: 0 0 26px;
  background: var(--teal-glow); color: var(--teal); border-radius: 50%;
  font-weight: 700; font-size: 18px; line-height: 1;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::before { content: "–"; transform: rotate(180deg); }
.faq details[open] summary { margin-bottom: 12px; }

/* ===== БЛОК «ОБО МНЕ» ===== */
.about-grid {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.about-photo {
  border-radius: 24px; overflow: hidden; aspect-ratio: 1/1;
  background: linear-gradient(150deg, var(--teal-light) 0%, var(--teal) 100%);
  box-shadow: var(--shadow-lg); position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; color: rgba(255,255,255,0.85);
}
.about-photo-placeholder svg { width: 70px; height: 70px; opacity: .65; }
.about-photo-placeholder span { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

/* ===== FOOTER ===== */
.footer {
  background: #23302F; color: rgba(255,255,255,0.72);
  padding: 64px 0 32px; font-size: 15px; margin-top: 0;
}
.footer a { color: rgba(255,255,255,0.88); }
.footer a:hover { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 16px; letter-spacing: .04em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { height: 44px; width: auto; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10); padding-top: 24px;
  font-size: 13px; color: rgba(255,255,255,0.45);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { max-width: 420px; aspect-ratio: 4/3; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .burger { display: flex; }
  .nav {
    position: fixed; top: 0; right: -100%; width: min(340px, 88vw);
    height: 100dvh; background: var(--white); flex-direction: column;
    align-items: stretch; gap: 0; padding: 96px 28px 44px;
    z-index: 100; transition: right .35s var(--ease);
    box-shadow: -12px 0 40px rgba(0,0,0,0.18); overflow-y: auto;
  }
  .nav--open { right: 0; }
  .nav a { font-size: 18px; padding: 16px 0; border-bottom: 1px solid var(--soft); }
  .nav a::after { display: none; }
  .nav__phone { padding-top: 22px; border-bottom: 0; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .cta { border-radius: 20px; }
  .card { padding: 26px 22px; }
  .btn { width: 100%; }
  .hero__actions, .cta__actions { flex-direction: column; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .logo img { height: 42px; }
}