/* =========================================================
   Екатерина Титаренко — психолог
   Токены: тёплый молочный фон, глубокий приглушённый зелёный,
   графитово-зелёный текст. Fraunces (display) + Manrope (UI).
   ========================================================= */

:root{
  --bg:        #F8F4EA;
  --bg-alt:    #EFEADC;
  --surface:   #FFFFFF;
  --green-deep:#3C4A34;
  --green-hov: #2E3928;
  --green-mist:#7C8A6E;
  --ink:       #262A21;
  --ink-soft:  #5B5F51;
  --ink-faint: #8B8E7E;
  --line:      #DED6C0;
  --cream:     #F8F4EA;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1180px;
  --radius-l: 24px;
  --radius-m: 16px;

  --shadow-soft: 0 26px 50px -28px rgba(38,42,33,.28);
  --ease: cubic-bezier(.22,.61,.36,1);

  /* rhythm */
  --sp-section: 76px;
  --sp-head: 34px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p,figure,blockquote{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

.wrap{
  width:100%;
  max-width: var(--wrap);
  margin:0 auto;
  padding: 0 32px;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--green-deep); color:#fff; padding:12px 20px;
  z-index:999; border-radius: 0 0 10px 0;
}
.skip-link:focus{ left:0; }

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

h1,h2,h3{
  font-family: var(--f-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
}
h2{ font-size: clamp(28px, 3vw, 36px); }
h3{ font-size: 18px; font-weight: 600; margin-bottom: 6px; }

em{ font-style: italic; font-weight: 500; color: var(--green-deep); }

p{ color: var(--ink-soft); line-height: 1.62; }

/* =========================================================
   BUTTONS — единая система на весь сайт
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn-primary{ background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }
.btn-primary:hover{ background: var(--green-hov); border-color: var(--green-hov); transform: translateY(-2px); }

.btn-secondary{ background: transparent; color: var(--green-deep); border-color: var(--green-deep); }
.btn-secondary:hover{ background: rgba(60,74,52,.07); transform: translateY(-2px); }

.btn-sm{ height: 44px; padding: 0 22px; font-size: 14px; }

/* inverted colors when the button sits on a deep-green background,
   same shape/typography/padding — just flipped for contrast */
.on-dark .btn-primary{ background: var(--cream); color: var(--green-deep); border-color: var(--cream); }
.on-dark .btn-primary:hover{ background: #ECE6D4; border-color:#ECE6D4; }
.on-dark .btn-secondary{ background: transparent; color: var(--cream); border-color: rgba(248,244,234,.5); }
.on-dark .btn-secondary:hover{ background: rgba(248,244,234,.1); border-color: var(--cream); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(248,244,234,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(222,214,192,.7);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 32px;
  gap: 24px;
}
.brand{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-family: var(--f-display); font-size: 18.5px; font-weight:600; color:var(--ink); }
.brand-role{ font-size: 11px; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-faint); margin-top:2px; }

.nav{ display:flex; gap: 28px; }
.nav a{
  font-size: 14.5px; font-weight:500; color: var(--ink-soft);
  position:relative; padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:1px;
  background: var(--green-deep); transition: right .3s var(--ease);
}
.nav a:hover{ color: var(--ink); }
.nav a:hover::after{ right:0; }

.header-actions{ display:flex; align-items:center; gap:14px; }

.menu-toggle{
  display:none; flex-direction:column; justify-content:center; align-items:center;
  width: 40px; height: 40px; background:none; border:none; padding:0;
}
.menu-toggle span{ display:block; height:1.5px; width: 22px; background: var(--ink); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.menu-toggle span + span{ margin-top: 5px; }
.menu-toggle.active span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2){ opacity:0; }
.menu-toggle.active span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav{
  display:none; flex-direction:column; gap: 4px;
  padding: 6px 24px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a{
  padding: 13px 4px; font-size: 16px; font-weight:500; color: var(--ink);
  border-bottom: 1px solid rgba(222,214,192,.6);
}
.mobile-nav .btn{ margin-top: 16px; width:100%; }
.mobile-nav.open{ display:flex; }

/* =========================================================
   HERO — сбалансированная двухколоночная композиция,
   правая колонка растягивается на высоту левой (stretch)
   ========================================================= */
.hero{ padding: 56px 0 var(--sp-section); }
.hero-grid{
  display:flex;
  align-items: stretch;
  gap: 56px;
}
.hero-copy{ flex: 1 1 0; display:flex; flex-direction:column; justify-content:center; min-width:0; }
.hero-visual{ flex: 0 0 44%; max-width:44%; }
.hero-title{ margin-bottom: 22px; }
.hero-title-main{
  display:block;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.hero-title-script{
  display:block;
  font-family: "Cormorant Garamond", var(--f-display), serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: var(--green-deep);
  margin-top: 6px;
}
.hero-lead{
  font-size: 17px;
  max-width: 460px;
  margin-bottom: 30px;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap: 14px; margin-bottom: 32px; }

.hero-badges{ display:flex; flex-wrap:wrap; gap: 20px 26px; }
.hero-badges li{ display:flex; align-items:center; gap:9px; font-size: 13.5px; font-weight:600; color: var(--ink-soft); }
.hero-badges svg{ width:19px; height:19px; color: var(--green-deep); flex-shrink:0; }

.hero-photo-frame{
  position:relative;
  width:100%; height:100%;
  min-height: 380px;
  border-radius: var(--radius-l);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
}
.hero-photo-frame img{
  width:100%; height:100%;
  object-fit:cover;
  object-position: 42% 14%;
}

/* =========================================================
   SECTION SHELL
   ========================================================= */
.section{ padding: var(--sp-section) 0; }
.section-soft{ background: var(--bg-alt); }
.section-head{ margin-bottom: var(--sp-head); max-width: 620px; }
.section-head-row{
  display:flex; align-items:flex-end; justify-content:space-between;
  max-width: none;
}
.section-sub{ margin-top: 10px; font-size:15px; }

.carousel-controls{ display:flex; gap: 10px; }
.carousel-btn{
  width: 42px; height:42px; border-radius:50%;
  background: var(--surface); border: 1.5px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  color: var(--green-deep);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.carousel-btn svg{ width:18px; height:18px; }
.carousel-btn:hover{ background: var(--green-deep); color:#fff; border-color: var(--green-deep); transform: translateY(-1px); }

/* =========================================================
   С ЧЕМ Я РАБОТАЮ
   ========================================================= */
.requests-grid{
  display:flex;
  flex-wrap: wrap;
  gap: 16px;
}
.request-card{
  flex: 1 1 calc(33.333% - 11px);
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px 24px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.request-card:hover{ transform: translateY(-3px); box-shadow: 0 20px 34px -24px rgba(38,42,33,.28); border-color: transparent; }
.request-icon{ display:inline-flex; align-items:center; justify-content:center; width: 40px; height:40px; margin-bottom: 14px; color: var(--green-deep); }
.request-icon svg{ width:28px; height:28px; }
.request-card p{ font-size: 14px; }

/* =========================================================
   ОБО МНЕ — 45/55, фото растянуто по высоте текстового блока
   ========================================================= */
.about-grid{
  display:flex;
  align-items: stretch;
  gap: 52px;
}
.about-photo{
  flex: 0 0 42%;
  max-width: 42%;
  border-radius: var(--radius-l);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  min-height: 380px;
}
.about-photo img{ width:100%; height:100%; object-fit:cover; object-position: 38% 14%; }

.about-copy{ flex: 1 1 0; min-width:0; display:flex; flex-direction:column; justify-content:center; }
.about-copy h2{ margin-bottom: 18px; }
.about-copy p{ margin-bottom: 15px; font-size: 15.5px; }
.about-note{
  font-size: 13.5px;
  color: var(--ink-faint);
  font-style: italic;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 4px !important;
}

/* =========================================================
   КАК ПРОХОДИТ РАБОТА
   ========================================================= */
.process-list{
  display:flex;
  flex-wrap: wrap;
  gap: 30px 48px;
}
.process-item{
  flex: 1 1 calc(50% - 24px);
  min-width: 260px;
  display:flex; gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.process-num{
  font-family: var(--f-display);
  font-size: 23px;
  font-weight: 500;
  color: var(--green-mist);
  flex-shrink:0;
  line-height:1.2;
}
.process-item p{ font-size: 14px; }

/* =========================================================
   БЕСПЛАТНОЕ ЗНАКОМСТВО (фото + текст)
   ========================================================= */
.intro-cta{ background: var(--bg); padding: var(--sp-section) 0; }
.intro-grid{ display:flex; align-items:stretch; gap: 48px; }

.intro-visual{
  flex: 0 0 44%; max-width: 44%;
  border-radius: var(--radius-l);
  overflow:hidden;
  min-height: 380px;
  box-shadow: var(--shadow-soft);
}
.intro-visual img{ display:block; width:100%; height:100%; object-fit:cover; object-position: 50% 45%; }

.intro-copy{ flex: 1 1 0; min-width:0; display:flex; flex-direction:column; justify-content:center; }
.intro-copy h2{ color: var(--green-deep); margin-bottom:14px; font-size: clamp(26px,2.8vw,32px); }
.intro-copy p{ color: var(--ink-soft); font-size:15.5px; margin-bottom: 26px; max-width: 460px; }

/* =========================================================
   ФОРМАТ И СТОИМОСТЬ
   ========================================================= */
.format-grid{ display:flex; flex-wrap:wrap; gap: 16px; margin-bottom: 20px; }
.format-card{
  flex: 1 1 calc(33.333% - 11px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 22px;
  display:flex; flex-direction:column; gap:6px;
}
.format-name{ font-family: var(--f-display); font-size: 16.5px; font-weight:600; color: var(--ink); }
.format-detail{ font-size: 13.5px; color: var(--ink-soft); }

.price-highlight{
  background: var(--green-deep);
  border-radius: var(--radius-m);
  padding: 30px 28px;
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px;
}
.price-highlight .price-label{ color: rgba(248,244,234,.72); }
.price-highlight .price-value{ color: var(--cream); }
.price-alt{ font-size: 0.6em; color: rgba(248,244,234,.6); font-family: var(--f-body); font-weight:500; }
.price-highlight .price-desc{ color: rgba(248,244,234,.72); }

.format-note{ text-align:center; font-size: 13.5px; color: var(--ink-faint); margin-top: 16px; }

.price-label{ font-size: 12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-faint); }
.price-value{ font-family: var(--f-display); font-size: 30px; font-weight:500; color: var(--ink); }
.price-desc{ font-size: 13.5px; color: var(--ink-soft); }

/* =========================================================
   ОБРАЗОВАНИЕ — карусель, единый размер превью
   ========================================================= */
.docs-track{
  display:flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.docs-track::-webkit-scrollbar{ display:none; }

.doc-card{
  flex: 0 0 268px;
  scroll-snap-align: start;
  text-align:left;
  background: var(--surface);
  border:1px solid var(--line);
  border-radius: var(--radius-m);
  overflow:hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  padding:0;
}
.doc-card:hover{ transform: translateY(-3px); box-shadow: 0 20px 34px -24px rgba(38,42,33,.28); }
.doc-thumb{
  display:block; width:100%; aspect-ratio: 4/3; overflow:hidden;
  background: var(--bg-alt);
  position:relative;
}
.doc-thumb::after{
  content:"Открыть";
  position:absolute; inset:auto 10px 10px auto;
  background: rgba(38,42,33,.78);
  color:#fff; font-size:11px; font-weight:600;
  padding: 5px 11px; border-radius: 999px;
  opacity:0; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.doc-card:hover .doc-thumb::after{ opacity:1; transform:translateY(0); }
.doc-thumb img{ width:100%; height:100%; object-fit:cover; object-position: top center; }
.doc-info{ display:block; padding: 15px 17px 19px; }
.doc-name{ display:block; font-family: var(--f-display); font-size: 15.5px; font-weight:600; margin-bottom:5px; color:var(--ink); }
.doc-meta{ display:block; font-size: 12px; color: var(--ink-faint); line-height:1.5; }

/* =========================================================
   ОТЗЫВЫ
   ========================================================= */
.reviews-grid{ display:flex; flex-wrap:wrap; gap: 20px; }
.review-card{
  flex: 1 1 calc(50% - 10px);
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px 28px;
}
.review-card p{ font-family: var(--f-display); font-style: italic; font-size: 17px; line-height:1.55; color: var(--ink); }
.quote-mark{ display:block; font-family: var(--f-display); font-size: 40px; color: var(--green-mist); opacity:.5; line-height:1; margin-bottom: 8px; }

/* =========================================================
   ФИНАЛЬНЫЙ CTA — единый плотный зелёный блок,
   разноцветные круглые иконки способов связи по центру
   ========================================================= */
.final-cta{ background: var(--green-deep); padding: 76px 0; text-align:center; }
.final-cta-inner{ max-width: 560px; margin:0 auto; display:flex; flex-direction:column; align-items:center; }
.final-cta h2{ color: var(--cream); margin-bottom: 12px; font-size: clamp(26px,2.8vw,34px); }
.final-cta p{ color: rgba(248,244,234,.82); font-size: 15.5px; margin-bottom: 30px; }

.contact-methods{ display:flex; justify-content:center; gap: 16px; }
.contact-icon{
  width: 56px; height: 56px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color: #fff;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  box-shadow: 0 10px 22px -10px rgba(0,0,0,.35);
}
.contact-icon svg{ width:23px; height:23px; }
.contact-icon:hover{ transform: translateY(-3px); box-shadow: 0 16px 28px -12px rgba(0,0,0,.45); }

.contact-telegram{ background: #26A5E4; }
.contact-whatsapp{ background: #25D366; }
.contact-instagram{ background: linear-gradient(135deg, #F9CE34 0%, #EE2A7B 55%, #6228D7 100%); }

/* =========================================================
   FOOTER — desktop: одна строка (грид из 3 колонок,
   центр строго по центру); mobile: вертикальный стек
   ========================================================= */
.site-footer{ background: var(--ink); color: var(--cream); }
.footer-inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap: 16px;
  padding: 22px 32px;
}
.footer-copy{ justify-self:start; font-size: 12.5px; color: rgba(248,244,234,.5); white-space:nowrap; }

.footer-contacts{ justify-self:center; display:flex; align-items:center; justify-content:center; gap: 14px; }
.contact-icon-sm{ width: 40px; height: 40px; box-shadow: none; }
.contact-icon-sm svg{ width:18px; height:18px; }

.footer-credit{
  justify-self:end;
  font-size: 12.5px; color: rgba(248,244,234,.5);
  white-space:nowrap;
  transition: color .2s var(--ease);
}
.footer-credit:hover{ color: var(--cream); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox{
  position: fixed; inset:0; z-index: 500;
  background: rgba(20,23,17,.92);
  display:flex; align-items:center; justify-content:center;
  padding: 40px 20px;
}
.lightbox[hidden]{ display:none; }
.lightbox figure{ max-width: 780px; width:100%; text-align:center; }
.lightbox img{ max-width:100%; max-height: 78vh; margin:0 auto; border-radius: 10px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.lightbox figcaption{ color: rgba(248,244,234,.8); font-size: 13.5px; margin-top: 16px; }
.lightbox-close{
  position:absolute; top: 22px; right: 26px;
  width: 42px; height:42px; border-radius:50%;
  background: rgba(248,244,234,.12); color:#fff; border:none;
  font-size: 17px;
  transition: background .2s var(--ease);
}
.lightbox-close:hover{ background: rgba(248,244,234,.24); }

/* =========================================================
   SCROLL REVEAL
   Контент виден по умолчанию (на случай если JS не выполнится
   или IntersectionObserver недоступен). Анимация — это
   прогрессивное улучшение: JS сам добавляет класс .pre
   непосредственно перед наблюдением за элементом.
   ========================================================= */
.reveal{ opacity:1; transform:none; }
.reveal.pre{ opacity:0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.pre.in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal.pre{ opacity:1; transform:none; transition:none; }
  .btn, .request-card, .doc-card{ transition:none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px){
  .wrap{ padding: 0 26px; }
  .request-card{ flex-basis: calc(50% - 8px); }
  .doc-card{ flex-basis: 240px; }
}

@media (max-width: 900px){
  .nav{ display:none; }
  .menu-toggle{ display:flex; }

  .hero-grid{ flex-direction:column; gap: 32px; }
  .hero-copy{ order: 2; }
  .hero-visual{ order: 1; flex-basis:auto; max-width:none; }
  .hero-photo-frame{ aspect-ratio: 4/3; min-height: 0; }

  .about-grid{ flex-direction:column; gap: 28px; }
  .about-photo{ flex-basis:auto; max-width:none; aspect-ratio: 4/5; min-height:0; }
  .about-photo img{ object-position: 42% 10%; }

  .intro-grid{ flex-direction:column; gap: 24px; }
  .intro-visual{ flex-basis:auto; max-width:none; aspect-ratio: 16/9; min-height:0; }
  .intro-copy .btn{ width:100%; }

  .process-item{ flex-basis: 100%; }
}

@media (max-width: 640px){
  :root{ --sp-section: 56px; --sp-head: 26px; }
  .wrap{ padding: 0 20px; }
  .header-inner{ padding: 14px 20px; }
  .hero{ padding: 32px 0 var(--sp-section); }
  .hero-title{ margin-bottom: 16px; }
  .hero-title-main{ font-size: clamp(19px, 5.5vw, 23px); line-height: 1.3; }
  .hero-title-script{ font-size: clamp(21px, 6.5vw, 27px); line-height: 1.32; margin-top: 4px; }
  .hero-lead{ font-size: 15.5px; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .hero-actions .btn{ width:100%; }
  .hero-badges{ gap: 12px 18px; }

  h2{ font-size: 25px; }

  .request-card{ flex-basis: 100%; padding: 20px 20px 22px; }

  .format-card{ flex-basis: 100%; }
  .price-highlight{ padding: 26px 22px; }

  .doc-card{ flex-basis: 78%; }

  .review-card{ flex-basis: 100%; }

  .final-cta{ padding: 56px 0; }

  .footer-inner{
    grid-template-columns: 1fr;
    justify-items:center;
    text-align:center;
    gap: 16px;
    padding: 28px 20px;
  }
  .footer-copy{ justify-self:center; order:1; }
  .footer-contacts{ order:2; }
  .footer-credit{ justify-self:center; order:3; }
}
