/*
Theme Name: Orlova PSY
Theme URI: https://www.orlovapsy.com.ua/
Author: Orlova PSY
Description: Авторська тема для психологині та супервізорки Оксани Орлової.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: orlova-psy
*/

:root {
  --op-red: #9f1724;
  --op-red-dark: #74101a;
  --op-ink: #201b1a;
  --op-cocoa: #4b3531;
  --op-cream: #f6f0e8;
  --op-paper: #fffdf9;
  --op-rose: #d6a39f;
  --op-line: rgba(48, 32, 29, 0.14);
  --op-shadow: 0 24px 70px rgba(65, 39, 34, 0.12);
  --op-radius: 28px;
  --op-serif: "Cormorant Garamond", Georgia, serif;
  --op-sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--op-ink);
  background: var(--op-paper);
  font-family: var(--op-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.op-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.op-section { padding: 110px 0; }
.op-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--op-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.op-kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.op-title {
  margin: 0;
  font: 600 clamp(42px, 6vw, 76px)/.98 var(--op-serif);
  letter-spacing: -.025em;
}
.op-title em { color: var(--op-red); font-weight: 500; }
.op-lead { max-width: 700px; margin: 24px 0 0; color: #625552; font-size: clamp(18px, 2vw, 22px); }
.op-btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 25px;
  border: 1px solid var(--op-red);
  border-radius: 999px;
  background: var(--op-red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .025em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.op-btn:hover, .op-btn:focus-visible { transform: translateY(-2px); background: var(--op-red-dark); }
.op-btn--ghost { background: transparent; color: var(--op-ink); border-color: var(--op-line); }
.op-btn--ghost:hover, .op-btn--ghost:focus-visible { color: var(--op-red); background: #fff; }

.op-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.4);
  background: rgba(255,253,249,.86);
  backdrop-filter: blur(16px);
}
.op-header__inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 28px; }
.op-brand { display: flex; align-items: center; gap: 12px; }
.op-brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--op-red);
  border-radius: 50%;
  color: var(--op-red);
  font: 600 25px/1 var(--op-serif);
}
.op-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.op-brand__name { font: 700 18px var(--op-serif); letter-spacing: .03em; }
.op-brand__role { color: #776966; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.op-nav { display: flex; align-items: center; gap: 28px; }
.op-nav a { position: relative; font-size: 13px; font-weight: 700; }
.op-nav a:not(.op-btn)::after { content: ""; position: absolute; right: 0; bottom: -6px; left: 0; height: 1px; background: var(--op-red); transform: scaleX(0); transition: transform .2s; }
.op-nav a:hover::after { transform: scaleX(1); }
.op-menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.op-menu-toggle span { display: block; width: 26px; height: 2px; margin: 5px; background: var(--op-ink); }

.op-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 82px);
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at 78% 22%, rgba(214,163,159,.32), transparent 27%),
    linear-gradient(135deg, var(--op-paper), var(--op-cream));
}
.op-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -190px; bottom: -250px; border: 1px solid rgba(159,23,36,.18); border-radius: 50%; }
.op-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.op-hero h1 { margin: 0; font: 600 clamp(58px, 7vw, 98px)/.86 var(--op-serif); letter-spacing: -.045em; }
.op-hero h1 span { display: block; color: var(--op-red); font-style: italic; font-weight: 500; }
.op-hero__text { max-width: 630px; margin: 28px 0 34px; color: #5f514e; font-size: clamp(18px, 2vw, 22px); }
.op-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.op-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 45px; color: #746865; font-size: 12px; font-weight: 700; }
.op-trust span { display: flex; align-items: center; gap: 8px; }
.op-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--op-red); }
.op-portrait {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
  border-radius: 220px 220px 32px 32px;
  background: linear-gradient(155deg, #bfa8a1, #4a342f 72%);
  box-shadow: var(--op-shadow);
  color: rgba(255,255,255,.94);
  isolation: isolate;
}
.op-portrait::before { content: ""; position: absolute; inset: 18px; z-index: -1; border: 1px solid rgba(255,255,255,.28); border-radius: inherit; }
.op-portrait__monogram { font: 500 clamp(160px, 18vw, 250px)/1 var(--op-serif); letter-spacing: -.12em; transform: translateX(-.08em); }
.op-portrait__caption { position: absolute; right: 34px; bottom: 30px; left: 34px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.35); padding-top: 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.op-float-card { position: absolute; top: 72px; left: -40px; width: 180px; padding: 22px; border-radius: 18px; background: rgba(255,253,249,.94); box-shadow: 0 20px 60px rgba(38,25,23,.16); color: var(--op-ink); }
.op-float-card strong { display: block; color: var(--op-red); font: 600 36px/1 var(--op-serif); }
.op-float-card span { display: block; margin-top: 8px; color: #746865; font-size: 11px; font-weight: 700; line-height: 1.4; text-transform: uppercase; }

.op-intro { background: var(--op-ink); color: #fff; }
.op-intro__grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; }
.op-intro .op-kicker { color: var(--op-rose); }
.op-quote { margin: 0; font: 500 clamp(36px, 5vw, 64px)/1.05 var(--op-serif); }
.op-quote em { color: var(--op-rose); font-weight: 500; }
.op-intro__copy { align-self: end; color: #c9bfbd; }

.op-section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 52px; }
.op-section-head .op-title { max-width: 780px; }
.op-services { background: var(--op-cream); }
.op-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.op-card { position: relative; min-height: 360px; padding: 34px; overflow: hidden; border: 1px solid var(--op-line); border-radius: var(--op-radius); background: rgba(255,255,255,.62); transition: transform .25s ease, box-shadow .25s ease; }
.op-card:hover { transform: translateY(-6px); box-shadow: var(--op-shadow); }
.op-card__number { color: var(--op-red); font: 600 18px var(--op-serif); }
.op-card h3 { margin: 65px 0 14px; font: 600 34px/1 var(--op-serif); }
.op-card p { margin: 0; color: #6c5e5a; font-size: 15px; }
.op-card__link { position: absolute; bottom: 30px; left: 34px; color: var(--op-red); font-size: 13px; font-weight: 800; }

.op-feature { background: var(--op-red); color: #fff; }
.op-feature__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.op-feature .op-kicker { color: #f1c8c6; }
.op-feature h2 { margin: 0; font: 600 clamp(48px, 6vw, 78px)/.98 var(--op-serif); }
.op-feature__panel { padding: 46px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--op-radius); background: rgba(73,5,14,.16); }
.op-feature__panel h3 { margin: 0 0 18px; font: 600 34px var(--op-serif); }
.op-feature__panel p { color: #f2dedd; }
.op-feature__meta { display: grid; grid-template-columns: repeat(2, 1fr); margin: 28px 0; border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.op-feature__meta div { padding: 18px 8px; }
.op-feature__meta strong { display: block; font-size: 13px; }
.op-feature__meta span { color: #efc8c6; font-size: 12px; }
.op-feature .op-btn { background: #fff; color: var(--op-red); border-color: #fff; }

.op-about__grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 90px; }
.op-about__visual { position: sticky; top: 120px; min-height: 500px; border-radius: var(--op-radius); background: linear-gradient(145deg, var(--op-cream), #c8afa7); overflow: hidden; }
.op-about__visual::after { content: "О"; position: absolute; right: -10px; bottom: -85px; color: rgba(159,23,36,.16); font: 500 420px/.8 var(--op-serif); }
.op-about__visual p { position: absolute; z-index: 1; right: 32px; bottom: 26px; left: 32px; max-width: 310px; margin: 0; font: 500 25px/1.15 var(--op-serif); }
.op-list { display: grid; gap: 0; margin-top: 42px; border-top: 1px solid var(--op-line); }
.op-list__item { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--op-line); }
.op-list__item span { color: var(--op-red); font: 600 17px var(--op-serif); }
.op-list__item h3 { margin: 0 0 6px; font: 600 25px var(--op-serif); }
.op-list__item p { margin: 0; color: #6c5e5a; font-size: 14px; }

.op-offers { background: var(--op-ink); color: #fff; }
.op-offers .op-lead { color: #bdb2af; }
.op-offers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 50px; }
.op-offer { position: relative; min-height: 440px; padding: 42px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--op-radius); background: #292322; overflow: hidden; }
.op-offer--light { background: var(--op-cream); color: var(--op-ink); }
.op-offer__tag { color: var(--op-rose); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.op-offer--light .op-offer__tag { color: var(--op-red); }
.op-offer h3 { max-width: 450px; margin: 66px 0 18px; font: 600 clamp(38px, 5vw, 57px)/.95 var(--op-serif); }
.op-offer p { max-width: 480px; color: #bdb2af; }
.op-offer--light p { color: #6b5d59; }
.op-offer .op-btn { position: absolute; bottom: 38px; left: 42px; }

.op-faq { background: var(--op-cream); }
.op-faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.op-faq details { border-bottom: 1px solid var(--op-line); padding: 22px 0; }
.op-faq summary { cursor: pointer; list-style: none; font: 600 25px var(--op-serif); }
.op-faq summary::after { content: "+"; float: right; color: var(--op-red); font-family: var(--op-sans); font-weight: 400; }
.op-faq details[open] summary::after { content: "−"; }
.op-faq details p { max-width: 650px; color: #6b5d59; font-size: 15px; }

.op-cta { text-align: center; }
.op-cta__box { position: relative; padding: 90px 40px; overflow: hidden; border-radius: 44px; background: var(--op-red); color: #fff; }
.op-cta__box::before, .op-cta__box::after { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.op-cta__box::before { top: -200px; left: -90px; }
.op-cta__box::after { right: -130px; bottom: -210px; }
.op-cta h2 { position: relative; max-width: 850px; margin: 0 auto 30px; font: 600 clamp(48px, 7vw, 86px)/.93 var(--op-serif); }
.op-cta .op-btn { position: relative; background: #fff; color: var(--op-red); border-color: #fff; }

.op-footer { padding: 55px 0 35px; background: var(--op-ink); color: #fff; }
.op-footer__top { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; padding-bottom: 50px; }
.op-footer h3 { margin: 0 0 16px; font: 600 26px var(--op-serif); }
.op-footer p, .op-footer a { color: #bdb2af; font-size: 13px; }
.op-footer a:hover { color: #fff; }
.op-footer__links { display: grid; gap: 9px; }
.op-footer__bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); color: #8e8380; font-size: 11px; }

@media (max-width: 960px) {
  .op-section { padding: 82px 0; }
  .op-nav { position: fixed; inset: 82px 0 0; display: none; flex-direction: column; align-items: flex-start; padding: 45px 30px; background: var(--op-paper); }
  .menu-open .op-nav { display: flex; }
  .op-nav a { font-size: 20px; }
  .op-menu-toggle { display: block; }
  .op-hero__grid, .op-intro__grid, .op-feature__grid, .op-about__grid, .op-faq__grid { grid-template-columns: 1fr; gap: 55px; }
  .op-hero { min-height: auto; }
  .op-portrait { width: min(620px, 100%); min-height: 560px; margin-inline: auto; }
  .op-float-card { left: -12px; }
  .op-card-grid { grid-template-columns: 1fr 1fr; }
  .op-card:last-child { grid-column: 1 / -1; }
  .op-about__visual { position: relative; top: auto; min-height: 420px; }
}

@media (max-width: 640px) {
  .op-container { width: min(100% - 28px, 1180px); }
  .op-section { padding: 68px 0; }
  .op-header__inner { min-height: 72px; }
  .op-brand__role { display: none; }
  .op-nav { inset-block-start: 72px; }
  .op-hero { padding-top: 62px; }
  .op-hero__grid { gap: 48px; }
  .op-hero h1 { font-size: clamp(54px, 17vw, 74px); }
  .op-actions { flex-direction: column; align-items: stretch; }
  .op-trust { gap: 10px 18px; margin-top: 32px; }
  .op-portrait { min-height: 430px; border-radius: 160px 160px 26px 26px; }
  .op-float-card { top: 36px; width: 150px; padding: 17px; }
  .op-section-head { display: block; margin-bottom: 35px; }
  .op-section-head .op-btn { margin-top: 25px; }
  .op-card-grid, .op-offers__grid, .op-footer__top { grid-template-columns: 1fr; }
  .op-card { min-height: 330px; }
  .op-feature__panel, .op-offer { padding: 30px; }
  .op-offer { min-height: 400px; }
  .op-offer .op-btn { right: 30px; bottom: 28px; left: 30px; }
  .op-cta__box { padding: 68px 20px; border-radius: 28px; }
  .op-footer__top { gap: 30px; }
  .op-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
