/*
Theme Name: Виктория Тарабанова
Description: Тема психолога/коуча Виктории Тарабановой. Тексты, цены, FAQ редактируются через ACF-поля на каждой странице.
Author: Custom
Version: 1.0
Text Domain: victoria-theme
*/
/* ==========================================================================
   TOKENS — warm minimalism: milk white, soft graphite, terracotta + deep teal
   ========================================================================== */
:root{
  --paper:#F8F4EE;
  --paper-raised:#FFFFFF;
  --ink:#3A3632;
  --ink-soft:#6F675F;
  --line:#E6DFD4;

  --terra:#C17A54;
  --terra-deep:#9C5F3F;
  --terra-soft:#F0DFD0;

  --teal:#33544E;
  --teal-deep:#24403B;
  --teal-soft:#DCE6E3;

  --accent:var(--terra);
  --accent-deep:var(--terra-deep);
  --accent-soft:var(--terra-soft);

  --text:var(--ink);
  --text-muted:var(--ink-soft);
  --bg:var(--paper);
  --bg-raised:var(--paper-raised);

  --radius-sm:10px;
  --radius-md:18px;
  --radius-lg:28px;

  --font-head:'Fraunces', Georgia, serif;
  --font-body:'Karla', system-ui, sans-serif;

  --container:1080px;
  --header-h:80px;
}

/* ==========================================================================
   RESET
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font-body); font-size:18px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font:inherit; cursor:pointer; background:none; border:none; color:inherit;}
ul{list-style:none; margin:0; padding:0;}
h1,h2,h3{font-family:var(--font-head); margin:0; color:var(--text); font-weight:600; letter-spacing:-.01em;}
p{margin:0;}
input,textarea{font:inherit; color:inherit;}
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}
:focus-visible{outline:2.5px solid var(--terra-deep); outline-offset:3px; border-radius:4px;}
.skip-link{
  position:absolute; left:12px; top:-60px; background:var(--ink); color:var(--paper);
  padding:10px 16px; border-radius:var(--radius-sm); z-index:200; transition:top .2s ease; font-weight:600;
}
.skip-link:focus{top:12px;}
.wrap{max-width:var(--container); margin:0 auto; padding:0 28px;}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:15px 30px; border-radius:999px; font-weight:700; font-size:1rem; min-height:48px;
  white-space:nowrap; transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  position:relative; overflow:hidden;
}
.btn-primary{background:var(--terra); color:#fff;}
.btn-primary:hover{background:var(--terra-deep); transform:translateY(-2px); box-shadow:0 14px 28px -14px rgba(156,95,63,.4);}
.btn-light{background:rgba(255,255,255,.94); color:var(--ink);}
.btn-light:hover{transform:translateY(-2px); box-shadow:0 14px 28px -14px rgba(0,0,0,.25);}
.btn-outline{background:transparent; color:var(--ink); border:1.5px solid var(--line);}
.btn-outline:hover{border-color:var(--terra); color:var(--terra-deep);}
.btn-outline-light{background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.4);}
.btn-outline-light:hover{background:rgba(255,255,255,.12);}
.ripple{position:absolute; width:8px; height:8px; border-radius:50%; background:currentColor; opacity:.3; translate:-50% -50%; pointer-events:none; animation:rippleOut .6s ease-out forwards;}
@keyframes rippleOut{to{width:280px; height:280px; opacity:0;}}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{position:sticky; top:0; z-index:100; background:rgba(248,244,238,.9); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:1px solid transparent; transition:border-color .2s ease;}
.site-header.scrolled{border-bottom:1px solid var(--line);}
.header-row{height:var(--header-h); display:flex; align-items:center; justify-content:space-between; gap:20px;}
.brand{display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:600; font-size:1.15rem; color:var(--ink);}
.brand-mark{width:34px; height:34px; border-radius:50%; overflow:hidden; flex-shrink:0;}
.brand-mark svg{display:block; width:100%; height:100%;}
.main-nav{display:flex; align-items:center; gap:28px; position:relative;}
.main-nav a{font-size:.94rem; font-weight:600; color:var(--text-muted); transition:color .18s ease; padding:4px 0; border-bottom:1.5px solid transparent;}
.main-nav a:hover, .main-nav a.active{color:var(--ink); border-color:var(--terra);}
.header-actions{display:flex; align-items:center; gap:14px;}
.header-phone{font-family:var(--font-head); font-weight:600; font-size:.98rem; color:var(--ink); white-space:nowrap;}
.header-phone:hover{color:var(--terra-deep);}
.burger{display:none; width:40px; height:40px; flex-direction:column; align-items:center; justify-content:center; gap:5px;}
.burger span{width:22px; height:2px; background:var(--ink); border-radius:2px; transition:transform .25s ease, opacity .25s 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);}
.mobile-panel{display:none; padding:16px 28px 26px; background:var(--paper-raised); border-bottom:1px solid var(--line);}
.mobile-panel[data-open]{display:block;}
.mobile-panel nav{display:flex; flex-direction:column; gap:2px; margin-bottom:16px;}
.mobile-panel nav a{padding:13px 4px; font-weight:600; border-bottom:1px solid var(--line); min-height:44px; display:flex; align-items:center;}
.mobile-panel nav a.active{color:var(--terra-deep);}

/* ==========================================================================
   HERO — soft optical lens texture, no hard gradient block
   ========================================================================== */
.hero{position:relative; padding:72px 0 110px; overflow:hidden; background:var(--paper); color:var(--ink);}
.hero-lens{position:absolute; border-radius:50%; filter:blur(2px); pointer-events:none;}
.hero-lens-1{width:520px; height:520px; background:radial-gradient(circle, var(--terra-soft) 0%, transparent 72%); top:-180px; right:-120px;}
.hero-lens-2{width:460px; height:460px; background:radial-gradient(circle, var(--teal-soft) 0%, transparent 72%); bottom:-220px; left:-140px;}
.hero-inner{position:relative; z-index:1;}
.hero-intro{font-size:1.02rem; color:var(--text-muted); margin-bottom:22px; max-width:38ch;}
.hero-phrase{
  font-family:var(--font-head); font-weight:600; font-size:clamp(2.1rem, 5vw, 3.7rem);
  line-height:1.16; max-width:17ch; margin-bottom:30px; color:var(--ink);
}
.hero-cta{display:flex; gap:14px; flex-wrap:wrap; margin-bottom:48px;}
.hero-meta{display:flex; gap:12px; flex-wrap:wrap; align-items:center;}
.hero-meta span{font-size:.85rem; color:var(--text-muted); padding:7px 16px; border:1px solid var(--line); border-radius:999px; background:var(--paper-raised);}

.page-hero{padding:56px 0 60px;}
.page-hero .hero-phrase{font-size:clamp(2rem, 4vw, 2.7rem); max-width:18ch; margin-bottom:16px;}
.page-hero .hero-intro{margin-bottom:12px;}

/* ==========================================================================
   SECTION SHARED
   ========================================================================== */
section{padding:96px 0;}
.section-lead{color:var(--text-muted); font-size:1.1rem; max-width:52ch; margin:16px 0 0;}
h2{font-size:clamp(1.8rem, 3vw, 2.4rem); font-weight:600;}
.reveal{opacity:0; transform:translateY(20px); transition:opacity .7s ease, transform .7s ease;}
.reveal.in-view{opacity:1; transform:translateY(0);}

/* ==========================================================================
   REFRAME WIDGET — signature interactive moment
   ========================================================================== */
.reframe{background:var(--paper-raised);}
.reframe-card{
  margin-top:44px; border-radius:var(--radius-lg); border:1px solid var(--line);
  padding:44px; position:relative; overflow:hidden; background:var(--paper);
}
.reframe-card::before{content:''; position:absolute; width:340px; height:340px; border-radius:50%; top:-120px; right:-100px; background:radial-gradient(circle, var(--terra-soft), transparent 70%);}
.reframe-inner{position:relative; z-index:1;}
.reframe-label{font-size:.82rem; font-weight:700; color:var(--terra-deep); margin-bottom:14px;}
.reframe-before{font-family:var(--font-head); font-size:1.4rem; font-weight:600; color:var(--text); max-width:32ch; margin-bottom:22px; min-height:2.4em;}
.reframe-after{font-size:1.05rem; color:var(--text-muted); max-width:52ch; padding-top:22px; border-top:1px solid var(--line); min-height:3.2em; opacity:0; transition:opacity .4s ease;}
.reframe-after.show{opacity:1;}
.reframe-actions{display:flex; gap:12px; margin-top:28px; flex-wrap:wrap;}
.reframe-progress{display:flex; gap:6px; margin-top:24px;}
.reframe-progress span{width:6px; height:6px; border-radius:50%; background:var(--line);}
.reframe-progress span.active{background:var(--terra);}

/* ==========================================================================
   ABOUT / SECTION-ALT — wide asymmetric, no box
   ========================================================================== */
.about{background:var(--paper-raised); position:relative;}
.about::before{content:''; position:absolute; top:0; left:0; right:0; height:120px; background:linear-gradient(180deg, var(--teal-soft), transparent); opacity:.5;}
.about-grid{display:grid; grid-template-columns:.62fr 1fr; gap:64px; position:relative;}
.about-label{font-family:var(--font-head); font-weight:600; color:var(--terra-deep); font-size:1.1rem; margin-bottom:6px;}
.about-copy p{color:var(--text-muted); margin-bottom:20px; max-width:58ch; font-size:1.05rem;}
.about-copy p:first-of-type{color:var(--text); font-size:1.15rem;}
.about-facts{display:flex; flex-direction:column; gap:18px; padding-top:8px;}
.about-fact{padding-left:20px; border-left:2px solid var(--terra-soft); font-size:.95rem; color:var(--text-muted);}
.about-fact strong{display:block; color:var(--text); font-weight:700; margin-bottom:3px;}
.about-cert{margin-top:8px; font-size:.92rem;}
.about-cert a{color:var(--terra-deep); text-decoration:underline; text-underline-offset:3px;}
.about-quote{
  margin-top:24px; padding:24px 26px; border-radius:var(--radius-md); background:var(--teal-soft);
  font-family:var(--font-head); font-size:1.2rem; color:var(--teal-deep); font-weight:600;
}

/* portrait layout for About page */
.portrait-grid{display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:start;}
.portrait-photo{border-radius:var(--radius-lg); overflow:hidden; position:relative;}
.portrait-photo img{width:100%; height:100%; object-fit:cover;}
.portrait-photo::after{content:''; position:absolute; inset:0; box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);}

/* ==========================================================================
   TOPICS — organic flowing tags, not a card grid
   ========================================================================== */
.topics-cloud{display:flex; flex-wrap:wrap; gap:14px 18px; margin-top:40px;}
.topic-tag{
  font-family:var(--font-head); font-weight:600; color:var(--ink);
  padding:12px 22px; border-radius:999px; border:1.5px solid var(--line); background:var(--paper-raised);
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}
.topic-tag:nth-child(3n+1){font-size:1.12rem; background:var(--terra-soft); border-color:transparent;}
.topic-tag:nth-child(4n+2){font-size:.9rem; background:var(--teal-soft); border-color:transparent;}
.topic-tag:hover{transform:translateY(-2px); border-color:var(--terra);}
.topics-note{margin-top:28px; font-size:.92rem; color:var(--text-muted);}

/* ==========================================================================
   METHODS list (professional page)
   ========================================================================== */
.methods-list{display:flex; flex-wrap:wrap; gap:12px; margin-top:40px;}
.method-chip{font-size:.92rem; font-weight:600; color:var(--teal-deep); background:var(--teal-soft); padding:9px 18px; border-radius:999px;}

/* ==========================================================================
   EXPECT — flowing list, quiet marks not icon cards
   ========================================================================== */
.expect-list{display:flex; flex-direction:column; margin-top:40px;}
.expect-row{display:grid; grid-template-columns:auto 1fr; gap:28px; align-items:baseline; padding:22px 0; border-top:1px solid var(--line);}
.expect-list .expect-row:last-child{border-bottom:1px solid var(--line);}
.expect-mark{width:10px; height:10px; border-radius:50%; background:linear-gradient(135deg, var(--terra), var(--teal)); margin-top:8px;}
.expect-row p{font-size:1.08rem; color:var(--text);}
.expect-row a{color:var(--terra-deep);}

/* ==========================================================================
   PRICING — divided list, gradient numerals
   ========================================================================== */
.pricing{background:var(--paper-raised);}
.price-list{margin-top:44px; display:flex; flex-direction:column;}
.price-row{display:grid; grid-template-columns:1fr auto; gap:20px; align-items:start; padding:30px 0; border-top:1px solid var(--line);}
.price-list .price-row:last-child{border-bottom:1px solid var(--line);}
.price-row h3{font-size:1.2rem; margin-bottom:8px; font-weight:600;}
.price-row p{color:var(--text-muted); font-size:.95rem; max-width:48ch;}
.price-amount{font-family:var(--font-head); font-weight:600; font-size:2rem; white-space:nowrap; color:var(--terra-deep);}
.price-featured{background:linear-gradient(100deg, var(--terra-soft), transparent); margin:0 -28px; padding-left:28px; padding-right:28px; border-radius:var(--radius-md);}
.price-note-block{margin-top:36px; padding:24px 28px; border-radius:var(--radius-md); background:var(--teal-soft); color:var(--teal-deep); font-size:.95rem; max-width:60ch;}

/* ==========================================================================
   PROCESS — genuinely sequential, numbered
   ========================================================================== */
.process-list{display:flex; flex-direction:column; gap:0; margin-top:44px;}
.process-step{display:grid; grid-template-columns:60px 1fr; gap:24px; padding:26px 0; border-top:1px solid var(--line);}
.process-list .process-step:last-child{border-bottom:1px solid var(--line);}
.process-num{font-family:var(--font-head); font-weight:600; font-size:1.8rem; color:var(--terra);}
.process-step h3{font-size:1.1rem; margin-bottom:6px; font-weight:600;}
.process-step p{color:var(--text-muted); font-size:.97rem; max-width:56ch;}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq{background:var(--paper-raised);}
.accordion{margin-top:44px; display:flex; flex-direction:column;}
.accordion-item{border-top:1px solid var(--line);}
.accordion-item:last-child{border-bottom:1px solid var(--line);}
.accordion-item h3{margin:0;}
.accordion-trigger{
  width:100%; text-align:left; padding:22px 4px; display:flex; justify-content:space-between; align-items:center;
  gap:16px; font-family:var(--font-head); font-weight:600; font-size:1.05rem; min-height:44px;
}
.accordion-trigger::after{content:'+'; font-size:1.4rem; color:var(--terra); flex-shrink:0; transition:transform .2s ease;}
.accordion-trigger[aria-expanded="true"]::after{transform:rotate(45deg);}
.accordion-panel{padding:0 4px; overflow:hidden; height:0;}
.accordion-panel-inner{padding-bottom:24px; color:var(--text-muted); font-size:.97rem; max-width:65ch;}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-form-card{
  margin-top:36px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius-lg); padding:32px; max-width:520px;
}
.form-row{display:flex; flex-direction:column; gap:6px; margin-bottom:16px;}
.form-row label{font-size:.85rem; font-weight:600; color:rgba(255,255,255,.85);}
.form-row input, .form-row textarea{
  background:rgba(255,255,255,.96); border:1px solid transparent; border-radius:9px; padding:12px 14px; min-height:46px; color:var(--ink);
}
.form-row textarea{min-height:96px; resize:vertical;}
.form-row input:invalid.touched, .form-row textarea:invalid.touched{border-color:#E0836B;}
.form-error{font-size:.78rem; color:#F4C2AA; min-height:16px; display:block;}
.form-legal{font-size:.78rem; color:rgba(255,255,255,.55); margin-top:10px;}
.form-success{margin-top:14px; font-weight:700; color:#BFE0D6;}

/* ==========================================================================
   CONTACT / CLOSING — one deliberate dark moment
   ========================================================================== */
.contact{position:relative; overflow:hidden; background:var(--ink); color:#fff; text-align:left;}
.contact::before{content:''; position:absolute; width:520px; height:520px; border-radius:50%; top:-220px; right:-160px; background:radial-gradient(circle, rgba(193,122,84,.25), transparent 70%);}
.contact::after{content:''; position:absolute; width:460px; height:460px; border-radius:50%; bottom:-220px; left:-140px; background:radial-gradient(circle, rgba(51,84,78,.35), transparent 70%);}
.contact .wrap{position:relative; z-index:1;}
.contact h2{color:#fff; max-width:16ch; font-weight:600;}
.contact-lead{color:rgba(255,255,255,.78); font-size:1.1rem; max-width:48ch; margin:18px 0 8px;}
.contact-cta{display:flex; gap:14px; flex-wrap:wrap; margin-top:24px;}
.safety-note{margin-top:56px; padding-top:28px; border-top:1px solid rgba(255,255,255,.2); font-size:.85rem; color:rgba(255,255,255,.65); max-width:60ch;}
.safety-note a{text-decoration:underline;}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{background:var(--ink); color:rgba(248,244,238,.6); padding:52px 0 0;}
.footer-grid{display:flex; justify-content:space-between; gap:32px; flex-wrap:wrap; padding-bottom:28px;}
.footer-brand{display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:600; font-size:1.1rem; color:var(--paper);}
.footer-brand .brand-mark{width:32px; height:32px;}
.footer-nav{display:flex; gap:24px; flex-wrap:wrap;}
.footer-nav a{font-size:.88rem; color:rgba(248,244,238,.7); font-weight:600;}
.footer-nav a:hover{color:#fff;}
.footer-social{display:flex; gap:10px;}
.footer-social a{width:38px; height:38px; border-radius:50%; border:1px solid rgba(248,244,238,.25); display:flex; align-items:center; justify-content:center; color:rgba(248,244,238,.75);}
.footer-social a:hover{border-color:var(--terra); color:#fff;}
.footer-bottom{border-top:1px solid rgba(248,244,238,.14); padding:20px 0; font-size:.8rem; color:rgba(248,244,238,.5); text-align:center;}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:900px){
  .about-grid, .portrait-grid{grid-template-columns:1fr; gap:36px;}
  .price-row, .process-step{grid-template-columns:1fr;}
  .price-amount{font-size:1.7rem;}
}
@media (max-width:768px){
  section{padding:64px 0;}
  .main-nav, .header-phone{display:none;}
  .burger{display:flex;}
  .hero{padding:48px 0 72px;}
  .reframe-card{padding:28px;}
  .hero-lens-1, .hero-lens-2{display:none;}
}
@media (max-width:480px){
  .wrap{padding:0 20px;}
  .price-featured{margin:0 -20px; padding-left:20px; padding-right:20px;}
}
