/* ============================================================
   Сайт психолога — стили
   Палитра: глубокий синий + тёплое золото
   ============================================================ */

:root {
  --bg: #F2F5FA;
  --bg-soft: #F8FAFD;
  --card: #FFFFFF;
  --ink: #1D2433;
  --muted: #5D6678;
  --blue: #2B4C7E;
  --navy: #16283F;
  --blue-soft: #E1E9F5;
  --gold: #C9975B;
  --line: rgba(29, 36, 51, .12);
  --radius: 18px;
  --shadow: 0 18px 45px -22px rgba(22, 40, 63, .3);
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1.5px solid var(--blue);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(22, 40, 63, .6);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--blue);
}
.btn--ghost:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--navy);
  box-shadow: none;
}

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}
.btn--light:hover {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
  color: var(--navy);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn--outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

.btn--small {
  padding: 10px 22px;
  font-size: 14px;
}

:focus-visible {
  outline: 2px dashed var(--gold);
  outline-offset: 3px;
}

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(242, 245, 250, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.header--scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(22, 40, 63, .35);
}

.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.logo__mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
}
.logo__text {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  gap: 22px;
}
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s 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 ---------- */

.hero {
  position: relative;
  padding: 168px 0 92px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(201, 151, 91, .16), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -200px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(43, 76, 126, .13), transparent 65%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero__role {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.hero__name {
  font-family: var(--font-head);
  font-size: clamp(40px, 5.2vw, 62px);
  font-weight: 500;
  line-height: 1.06;
  margin-bottom: 26px;
}

.hero__tagline {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.6vw, 30px);
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero__sub {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Визуал */

.hero__visual {
  position: relative;
}
.hero__art {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(22, 40, 63, .28));
}
.hero__photo {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 240px 240px var(--radius) var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero__chip {
  position: absolute;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .93);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px -14px rgba(22, 40, 63, .4);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  backdrop-filter: blur(6px);
  animation: float 6s ease-in-out infinite;
}
.hero__chip--1 { top: 12%; left: -26px; animation-delay: 0s; }
.hero__chip--2 { bottom: 20%; left: -34px; animation-delay: 1.6s; }
.hero__chip--3 {
  bottom: 6%;
  right: 8%;
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  animation-delay: .8s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Баннер ---------- */

.banner {
  background: var(--navy);
  color: var(--bg);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(242, 245, 250, .14);
  pointer-events: none;
}
.banner::after {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 780px;
  border-radius: 50%;
  border: 1px dashed rgba(242, 245, 250, .12);
  pointer-events: none;
}

.banner__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.18;
  text-align: center;
  max-width: 22ch;
  margin: 0 auto 20px;
  position: relative;
}

.banner__text {
  text-align: center;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(242, 245, 250, .82);
  max-width: 56ch;
  margin: 0 auto;
  position: relative;
}

/* ---------- Секции ---------- */

.section { padding: 108px 0; }
.section:nth-of-type(odd) { background: var(--bg-soft); }

.section__head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section__label::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1.5px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
}
.section__label--light { color: #E8CFA8; }
.section__label--light::before { background: #E8CFA8; }

.section__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.16;
}

/* Обо мне */

.about__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.about__text p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
}
.about__text p::first-letter {
  font-family: var(--font-head);
  font-size: 1.6em;
  color: var(--blue);
}

.about__edu {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow);
  position: relative;
}
.about__edu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  width: 56px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--gold);
}
.about__edu h3 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 14px;
}
.about__edu p { color: var(--muted); font-size: 15.5px; }

/* Фотографии */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery__item {
  display: grid;
  gap: 12px;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .35s ease;
}
.gallery__item img:hover { transform: translateY(-4px); }
.gallery__item figcaption {
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}

.gallery__ph {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1.5px dashed rgba(43, 76, 126, .3);
  background:
    radial-gradient(circle at 30% 25%, rgba(74, 111, 165, .18), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(201, 151, 91, .16), transparent 50%),
    var(--bg-soft);
  display: grid;
  place-items: center;
}
.gallery__ph span {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 22px;
  color: rgba(43, 76, 126, .45);
}

/* Дипломы */

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

.diploma {
  display: grid;
  gap: 12px;
}
.diploma__frame {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  transition: transform .35s ease;
}
.diploma__frame:hover { transform: translateY(-4px); }
.diploma__frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.diploma figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding: 0 6px;
}

.diploma__ph {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  border: 1.5px dashed rgba(43, 76, 126, .3);
  background:
    linear-gradient(160deg, rgba(74, 111, 165, .1), rgba(201, 151, 91, .08)),
    var(--bg-soft);
  display: grid;
  place-items: center;
}
.diploma__ph span {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 20px;
  color: rgba(43, 76, 126, .45);
}

/* Направления */

.services__box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 38px;
}

.services__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
  color: var(--ink);
}
.services__item + .services__item { margin-top: 18px; }
.services__item span { flex: 1; }
.services__check { flex: none; width: 30px; height: 30px; }

/* Форматы и цены */

.formats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.formats__main {
  background: var(--navy);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 40px 38px;
  box-shadow: var(--shadow);
}

.formats__price {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(242, 245, 250, .18);
}
.formats__price span {
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(242, 245, 250, .72);
}
.formats__price strong {
  font-family: var(--font-head);
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1;
}

.formats__list { list-style: none; }
.formats__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 16px;
  color: rgba(242, 245, 250, .92);
  font-size: 15.5px;
}
.formats__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.formats__note {
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(242, 245, 250, .1);
  font-size: 14.5px;
  color: rgba(242, 245, 250, .85);
}

.formats__packages {
  display: grid;
  gap: 22px;
}

.package {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 34px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.package:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.package--featured { border-color: var(--blue); border-width: 1.5px; }

.package__badge {
  position: absolute;
  top: -13px;
  right: 26px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.package h3 {
  font-family: var(--font-head);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
}
.package__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}
.package__text { color: var(--muted); font-size: 15px; }

/* Контакты */

.contact { padding-bottom: 120px; }

.contact__card {
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 151, 91, .3), transparent 42%),
    radial-gradient(circle at 12% 90%, rgba(74, 111, 165, .4), transparent 45%),
    var(--navy);
  color: var(--bg);
  border-radius: 28px;
  padding: clamp(44px, 6vw, 84px) clamp(28px, 6vw, 84px);
  text-align: center;
  box-shadow: var(--shadow);
}

.contact__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.16;
  max-width: 20ch;
  margin: 0 auto 22px;
}

.contact__note {
  max-width: 58ch;
  margin: 0 auto 38px;
  color: rgba(242, 245, 250, .85);
  font-size: 16.5px;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.contact__actions--secondary {
  margin-top: 14px;
}
.contact__actions--secondary .btn {
  font-weight: 500;
}

/* Подвал */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg-soft);
}

.footer__in { display: grid; gap: 10px; }

.footer__name { font-weight: 700; font-size: 15px; }
.footer__disc { color: var(--muted); font-size: 13.5px; max-width: 70ch; }

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}
.footer__admin { color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--line); }
.footer__admin:hover { color: var(--navy); }

/* Появление при скролле */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__chip { animation: none; }
}

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

@media (max-width: 1100px) {
  .logo__text { display: none; }
  .diplomas__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero__chip--1 { left: 0; }
  .hero__chip--2 { left: 0; }
  .formats__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .diplomas__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header__in { height: 66px; }
  .nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav--open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: flex; }
  .header__cta .btn { display: none; }

  .hero { padding: 128px 0 64px; }
  .section { padding: 76px 0; }
  .services__box { padding: 26px 22px; }
  .gallery__grid { grid-template-columns: 1fr; }
  .diplomas__grid { grid-template-columns: 1fr; }
  .hero__chip { font-size: 12px; padding: 8px 14px; }
  .formats__main { padding: 30px 26px; }
  .contact { padding-bottom: 84px; }
  .banner { padding: 68px 0; }
}
