/*
Theme Name: Psycholog Theme
Theme URI: https://example.com
Author: Custom
Description: Тема для сайта психолога и сексолога: услуги, отзывы, форма записи.
Version: 1.0.7
Text Domain: psycholog
*/

:root {
  --bg: #fbf9f5;
  --surface: #ffffff;
  --primary: #b2a07c;
  --primary-dark: #7c7056;
  --accent: #dac4a2;
  --accent-light: #f2d7a4;
  --text: #4a4335;
  --text-muted: #8a806c;
  --border: #ece4d6;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 20px 60px rgba(74, 67, 53, 0.09);
  --shadow-sm: 0 8px 24px rgba(74, 67, 53, 0.07);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.75rem, 6vw, 4.25rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease), opacity 0.4s var(--ease);
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--primary-dark); color: #fff; }
.btn--primary:hover { background: #695e46; color: #fff; }
.btn--ghost { border-color: var(--primary-dark); color: var(--primary-dark); }
.btn--small { padding: 10px 20px; font-size: 0.9rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 0.75em;
}

.section-title { text-align: center; margin-bottom: 1.5em; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(74, 67, 53, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  position: relative;
}
.site-logo {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label::before,
.nav-toggle-label::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-dark);
}
.nav-toggle-label span { top: 11px; }
.nav-toggle-label::before { top: 2px; }
.nav-toggle-label::after { top: 20px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s var(--ease);
}
.nav-menu a:hover { color: var(--primary-dark); }

@media (max-width: 780px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(74, 67, 53, 0.08);
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  }
  .nav-menu { flex-direction: column; gap: 4px; width: 100%; padding: 16px 0 8px; }
  .nav-toggle:checked ~ .site-nav { max-height: 400px; padding: 0 24px 20px; }
}

/* Hero */
.hero { padding: 45px 0; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.hero__lead { color: var(--text-muted); font-size: 1.2rem; max-width: 46ch; line-height: 1.5; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.7em; }
.hero__placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-light) 100%);
  color: #fff;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0.85;
}
.hero__placeholder--sm { aspect-ratio: 1 / 1; }
.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__photo--sm { aspect-ratio: 1 / 1; }
.hero__photo--natural {
  aspect-ratio: auto;
  height: auto;
  object-fit: initial;
}

@media (max-width: 780px) {
  .hero { padding: 45px 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__figure { order: -1; max-width: 280px; margin: 0 auto; }
}

/* About teaser */
.about-teaser { padding: 45px 0; background: var(--surface); }
.about-teaser__inner {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-teaser__figure .hero__placeholder--sm,
.about-teaser__figure .hero__photo--sm { max-width: 220px; }
.link-arrow { display: inline-block; font-weight: 600; text-decoration: none; transition: opacity 0.3s var(--ease); }
.link-arrow:hover { opacity: 0.7; }

@media (max-width: 780px) {
  .about-teaser { padding: 45px 0; }
  .about-teaser__inner { grid-template-columns: 1fr; text-align: center; }
  .about-teaser__figure { display: flex; justify-content: center; }
}

/* Manifesto */
.manifesto { padding: 45px 0; }
.manifesto__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: start;
}
.manifesto__figure { position: sticky; top: 100px; }
.manifesto__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.manifesto__text p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1.15em;
}
.manifesto__text ul {
  padding-left: 1.3em;
  margin: 0 0 1.3em;
}
.manifesto__text li { margin-bottom: 0.5em; line-height: 1.6; }
.manifesto__text li::marker { color: var(--primary-dark); }
.manifesto__quote {
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  letter-spacing: -0.01em;
  color: var(--primary-dark);
  margin: 1.4em 0;
}
.manifesto__address { font-weight: 600; }
.manifesto__cta { margin-top: 1.8em; display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 780px) {
  .manifesto { padding: 45px 0; }
  .manifesto__inner { grid-template-columns: 1fr; }
  .manifesto__figure { position: static; max-width: 320px; margin: 0 auto 32px; order: -1; }
}

/* Services */
.services { padding: 45px 0; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-card__cover {
  margin: -36px -36px 20px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--border);
}
.article-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .article-card__img { transform: scale(1.04); }
.service-card__price {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.75em;
}

.article-meta { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin: -0.4em 0 2em; }

/* FAQ */
.faq { padding: 45px 0; }
.faq__inner { max-width: 820px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 24px;
  transition: box-shadow 0.4s var(--ease);
}
.faq__item[open] { box-shadow: var(--shadow-sm); }
.faq__question {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 20px 32px 20px 0;
  position: relative;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-dark);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] .faq__question::after { transform: translateY(-50%) rotate(45deg); }
.faq__answer { margin: 0; padding: 0 0 20px; color: var(--text-muted); line-height: 1.6; }

/* Articles */
.articles { padding: 45px 0; background: var(--surface); }
@media (max-width: 780px) {
  .articles { padding: 45px 0; }
}

/* Booking form */
.booking { padding: 45px 0; }
.booking__inner {
  background: var(--primary-dark);
  color: #fff;
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow);
}
.booking__text h2 { color: #fff; }
.booking__text p { color: rgba(255,255,255,0.8); }
.booking__form { display: flex; flex-direction: column; gap: 14px; }
.booking__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.booking__form input,
.booking__form textarea {
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  transition: box-shadow 0.3s var(--ease);
}
.booking__form input:focus,
.booking__form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}
.booking__consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px !important;
  font-size: 0.85rem !important;
  line-height: 1.4;
}
.booking__consent input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.booking__consent a { color: #fff; text-decoration: underline; }
.booking__form .btn--primary { background: var(--accent-light); color: var(--primary-dark); }
.booking__form .btn--primary:hover { background: #efc98a; color: var(--primary-dark); }
.form-message { margin-top: 4px; font-size: 0.9rem; }
.form-message--success { color: #b7e4c7; }
.form-message--error { color: #f5b7b1; }

@media (max-width: 780px) {
  .booking { padding: 45px 0; }
  .booking__inner { grid-template-columns: 1fr; padding: 32px 24px; border-radius: 24px; }
}

/* Generic pages */
.page-content { padding: 45px 0; }
.page-title { text-align: center; }
.page-body ul { padding-left: 1.3em; margin: 0 0 1em; }
.page-body li { margin-bottom: 0.5em; }
.page-body li::marker { color: var(--primary-dark); }
.about-page__inner {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 780px) {
  .page-content { padding: 45px 0; }
  .about-page__inner { grid-template-columns: 1fr; }
  .about-page__figure .hero__placeholder,
  .about-page__figure .hero__photo { max-width: 240px; margin: 0 auto 24px; }
}
.contacts-grid { margin-bottom: 24px; }
.contacts-info p { font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); margin-top: 40px; }
.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 56px 24px;
}
.site-footer a { color: #fff; }
.social-links { display: flex; gap: 16px; flex-wrap: wrap; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s var(--ease);
}
.social-links a:hover { opacity: 0.7; }
.social-icon { flex-shrink: 0; }
.site-footer__logo { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; font-size: 1.15rem; color: #fff; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px 0;
  font-size: 0.85rem;
}
.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer__bottom-inner p { margin: 0; }
.site-footer__bottom-inner a { opacity: 0.85; transition: opacity 0.3s var(--ease); }
.site-footer__bottom-inner a:hover { opacity: 1; }
.site-footer__legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 780px) {
  .site-footer__bottom-inner { justify-content: center; text-align: center; }
}
@media (max-width: 780px) {
  .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  flex: 1 1 320px;
}
.cookie-banner__text a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner .btn--primary { background: var(--accent-light); color: var(--primary-dark); }
.cookie-banner .btn--primary:hover { background: #efc98a; color: var(--primary-dark); }
.cookie-banner .btn--ghost { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.cookie-banner .btn--ghost:hover { border-color: #fff; }

@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; padding: 16px 20px; }
  .cookie-banner__text { flex: none; }
  .cookie-banner__actions { justify-content: center; }
}
