/* Oksana Lytvyn — психолог. Бумага, шалфей, тёмно-зелёный; Lora + Commissioner.
   Один фирменный приём: крупная типографика и штрих маркера под ключевым словом заголовка.
   Всё остальное — обычные спокойные блоки. Вёрстка с телефона, большие экраны — через min-width. */

:root {
  --papel: #f7f5f0;
  --salvia: #dfe6dc;
  --tinta: #1f2d27;
  --tinta-2: #4a5a52;          /* второй текст: 6,9:1 к бумаге */
  --verde: #3f6b57;
  --verde-osc: #345a49;
  --arena: #e9dfcf;
  --linea: #d3dacf;
  --linea-2: #8a9a90;          /* рамки полей: 3:1 к белому */
  --f-titulo: "Lora", Georgia, "Times New Roman", serif;
  --f-texto: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --env: 1120px;
  --lado: 20px;
  --cab: 102px;                /* высота липкой шапки — под неё якоря */
  /* штрих маркера: SVG в фоне, тянется по ширине слова */
  --trazo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C30 4 58 11 98 7s66-3 99 1' fill='none' stroke='%233f6b57' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M22 12.3c40-1.6 88-1.8 140-.4' fill='none' stroke='%233f6b57' stroke-width='1.6' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  --trazo-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 6c36 4 80-3 120-1.5s56 4.5 76 2.5' fill='none' stroke='%233f6b57' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M30 10.6c30-2 70-2.4 118-.6' fill='none' stroke='%233f6b57' stroke-width='1.6' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
}
@media (min-width: 640px) { :root { --lado: 28px; } }
@media (min-width: 1080px) { :root { --lado: 32px; --cab: 75px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--f-texto); font-size: 17px; line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, ul, ol, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-titulo); font-weight: 600; line-height: 1.12; text-wrap: balance; }
[id] { scroll-margin-top: calc(var(--cab) + 14px); }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }
.env { width: 100%; max-width: calc(var(--env) + 2 * var(--lado)); margin-inline: auto; padding-inline: var(--lado); }
.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 12px 16px;
  background: var(--tinta); color: #fff; border-radius: 4px; text-decoration: none;
}
.saltar:focus { top: 12px; }

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

/* ── штрих маркера под словом ────────────────────────────────────────── */
.sub {
  white-space: nowrap; padding-bottom: .08em;
  background: var(--trazo) no-repeat 0 100% / 100% .34em;
}
.sub--2 { background-image: var(--trazo-2); }

/* ── шапка ───────────────────────────────────────────────────────────── */
.cab {
  position: sticky; top: 0; z-index: 30;
  background: var(--papel); border-bottom: 1px solid var(--linea);
}
.cab__in {
  display: grid; grid-template-columns: 1fr auto;
  grid-template-areas: "marca idiomas" "menu menu"; align-items: center;
}
.marca {
  grid-area: marca; display: flex; align-items: baseline; gap: 12px; min-height: 52px;
  padding-block: 6px; text-decoration: none; color: var(--tinta);
}
.marca__nombre { font-family: var(--f-titulo); font-weight: 600; font-size: 21px; line-height: 1.1; white-space: nowrap; }
.marca__lema { display: none; font-size: 14px; color: var(--tinta-2); white-space: nowrap; }
@media (min-width: 480px) { .marca__lema { display: inline; } }
@media (min-width: 1080px) and (max-width: 1199px) { .marca__lema { display: none; } }

.idiomas { grid-area: idiomas; display: flex; }
.idiomas a {
  display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 4px;
  font-weight: 600; font-size: 13px; line-height: 1; letter-spacing: .06em;
  color: var(--tinta-2); text-decoration: none;
}
.idiomas a:hover { color: var(--tinta); }
.idiomas a[aria-current] { background: var(--salvia); color: var(--tinta); }

.menu {
  grid-area: menu; margin-inline: calc(var(--lado) * -1); border-top: 1px solid var(--linea);
  overflow-x: auto; scrollbar-width: none;
}
.menu::-webkit-scrollbar { display: none; }
.menu__lista {
  display: flex; align-items: center; gap: 2px; list-style: none; margin: 0;
  padding: 2px var(--lado); min-width: max-content;
}
.menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 4px;
  font-weight: 500; font-size: 15px; line-height: 1.2; white-space: nowrap; text-decoration: none; color: var(--tinta);
}
.menu a:hover { background: var(--salvia); }
.menu__cita a { background: var(--verde); color: #fff; font-weight: 600; }
.menu__cita a:hover { background: var(--verde-osc); }

@media (min-width: 1080px) {
  .cab__in { display: flex; gap: 20px; height: calc(var(--cab) - 1px); }
  .marca { flex: none; }
  .menu { flex: 1; margin: 0; border: 0; overflow: visible; }
  .menu__lista { min-width: 0; padding: 0; gap: 4px; }
  .menu__cita { margin-left: auto; }
  .menu__cita a { padding: 0 20px; }
}

/* ── подписи, заголовки секций, кнопки ───────────────────────────────── */
.rotulo {
  margin-bottom: 14px; font-weight: 600; font-size: 13px; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase; color: var(--verde);
}
.tit { font-size: clamp(32px, 5.4vw, 52px); letter-spacing: -.01em; margin-bottom: 18px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--tinta-2); max-width: 58ch; }
.sec { padding-block: 64px; }
.sec--sin-arriba { padding-top: 0; }
@media (min-width: 900px) { .sec { padding-block: 104px; } .sec--sin-arriba { padding-top: 0; } }
.banda { background: var(--salvia); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 5px; background: none; cursor: pointer;
  font-family: var(--f-texto); font-weight: 600; font-size: 17px; line-height: 1.2; text-align: center;
  text-decoration: none; color: var(--tinta); transition: background-color .15s, color .15s, border-color .15s;
}
.btn--verde { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn--verde:hover { background: var(--verde-osc); border-color: var(--verde-osc); }
.btn--linea { border-color: var(--tinta); }
.btn--linea:hover { background: var(--tinta); color: var(--papel); }
.acciones { display: grid; gap: 12px; }
@media (min-width: 600px) { .acciones { display: flex; flex-wrap: wrap; } }

.enlace {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 16px;
  color: var(--verde); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.enlace:hover { color: var(--tinta); }

/* ── первый экран ────────────────────────────────────────────────────── */
.portada { padding-block: 36px 56px; }
.portada__rejilla { display: grid; gap: 40px; }
.nombre {
  font-size: clamp(60px, 16vw, 124px); line-height: .98; letter-spacing: -.025em; font-weight: 600;
  margin-bottom: 26px;
}
.nombre__1, .nombre__2 { display: block; width: fit-content; }
.nombre__2 { padding-bottom: .24em; background-size: 100% .22em; }
.portada__frase { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; max-width: 34ch; margin-bottom: 32px; }
.retrato { position: relative; max-width: 440px; }
.retrato::before {
  content: ""; position: absolute; inset: 16px -12px -12px 16px; border-radius: 6px; background: var(--arena);
}
.retrato img {
  position: relative; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%;
  border-radius: 6px;
}
.hechos {
  display: grid; margin: 52px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--linea);
}
.hechos li { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linea); font-size: 16px; font-weight: 500; line-height: 1.4; }
.hechos li.hechos__cifras { font-family: var(--f-titulo); font-size: 18px; font-weight: 600; }
@media (min-width: 600px) and (max-width: 1079px) {
  .hechos { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .hechos__cifras { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .portada { padding-block: 72px 80px; }
  .portada__rejilla { grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center; }
  .retrato img { aspect-ratio: 4 / 5; }
}
@media (min-width: 1080px) {
  .hechos { grid-template-columns: 1.35fr .8fr 1.15fr .9fr; }
  .hechos li { border-bottom: 0; padding: 22px 0; }
  .hechos li + li { border-left: 1px solid var(--linea); padding-left: 28px; }
  .hechos li:not(:last-child) { padding-right: 28px; }
}

/* ── «con qué te puedo ayudar» ───────────────────────────────────────── */
.temas { display: grid; gap: 14px; margin-top: 40px; list-style: none; }
.tema {
  padding: 26px 24px 28px; border-radius: 5px; background: var(--papel);
  box-shadow: inset 0 3px 0 var(--verde);
}
.tema h3 { font-size: 22px; margin-bottom: 8px; }
.tema p { font-size: 16px; line-height: 1.55; color: var(--tinta-2); }
@media (min-width: 640px) { .temas { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1000px) { .temas { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ── «cómo trabajo» ──────────────────────────────────────────────────── */
.como__rejilla { display: grid; gap: 36px; margin-top: 40px; }
.pasos { list-style: none; counter-reset: paso; }
.paso { position: relative; padding: 0 0 30px 64px; counter-increment: paso; }
.paso:last-child { padding-bottom: 0; }
.paso::before {
  content: counter(paso); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 44px; height: 44px; border: 1.5px solid var(--verde); border-radius: 50%;
  background: var(--papel); color: var(--verde);
  font-family: var(--f-titulo); font-style: italic; font-weight: 500; font-size: 21px; line-height: 1;
}
.paso::after {
  content: ""; position: absolute; left: 21.25px; top: 52px; bottom: 6px; width: 1.5px; background: var(--linea-2);
}
.paso:last-child::after { display: none; }
.paso h3 { padding-top: 9px; margin-bottom: 4px; font-size: 21px; line-height: 1.3; }
.paso p { font-size: 16px; line-height: 1.55; color: var(--tinta-2); }
.como__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
@media (min-width: 900px) {
  .como__rejilla { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 52px; }
  .como__foto { position: sticky; top: calc(var(--cab) + 32px); }
}

/* ── «sobre mí» ──────────────────────────────────────────────────────── */
.sobre__rejilla { display: grid; gap: 32px; }
.sobre__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 70% 50%; border-radius: 6px; }
@media (max-width: 899px) { .sobre__foto { order: 2; } }
.sobre__texto p { max-width: 58ch; margin-bottom: 16px; }
.formacion__tit {
  margin: 28px 0 10px !important; font-weight: 600; font-size: 13px !important; letter-spacing: .14em;
  text-transform: uppercase; color: var(--verde);
}
.formacion { display: grid; gap: 6px; list-style: none; font-size: 16px; }
.formacion li { position: relative; padding-left: 28px; }
.formacion li::before { content: ""; position: absolute; left: 0; top: .8em; width: 16px; height: 2px; background: var(--verde); }
@media (min-width: 900px) {
  .sobre__rejilla { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
  .sobre__foto img { aspect-ratio: 1 / 1; object-position: 72% 50%; }
}

/* ── цитата ──────────────────────────────────────────────────────────── */
.frase { padding-block: 56px; background: var(--arena); }
.frase blockquote {
  max-width: 19em; font-family: var(--f-titulo); font-style: italic; font-weight: 500;
  font-size: clamp(28px, 4.6vw, 54px); line-height: 1.22; text-wrap: balance;
}
.frase figcaption { margin-top: 20px; font-weight: 600; font-size: 15px; color: var(--tinta-2); }
@media (min-width: 900px) { .frase { padding-block: 88px; } }

/* ── цены ────────────────────────────────────────────────────────────── */
.precios { display: grid; gap: 14px; margin-top: 36px; list-style: none; }
.precio {
  display: flex; flex-direction: column; align-items: flex-start; padding: 26px 24px 18px;
  border: 1px solid var(--linea); border-radius: 6px; background: #fff;
}
.precio h3 { font-size: 22px; }
.precio__cifra { margin-top: 14px; font-family: var(--f-titulo); font-weight: 600; font-size: 48px; line-height: 1; }
.precio__dur { margin-top: 6px; font-size: 15px; color: var(--tinta-2); }
.precio__txt { margin: 14px 0 12px; font-size: 16px; line-height: 1.5; }
.precio .enlace { margin-top: auto; }
.gratis { margin-top: 36px; font-family: var(--f-titulo); font-style: italic; font-weight: 500; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.3; }
.nota { margin-top: 10px; font-size: 15px; color: var(--tinta-2); }
@media (min-width: 760px) { .precios { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ── форма первой записи ─────────────────────────────────────────────── */
.cita__rejilla { display: grid; gap: 32px; }
.cita__foto { display: none; }
.formulario {
  counter-reset: campo; padding: 26px 20px 24px; border: 1px solid #c7d2c4; border-radius: 8px; background: #fff;
}
.campo { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; counter-increment: campo; }
.campo__tit {
  display: block; padding: 0; margin-bottom: 12px; font-family: var(--f-titulo); font-weight: 600; font-size: 19px; line-height: 1.3;
}
.campo__tit::before { content: counter(campo) ". "; color: var(--verde); font-style: italic; }
.campo__tit small { margin-left: 6px; font-family: var(--f-texto); font-weight: 400; font-size: 14px; color: var(--tinta-2); }
.opciones { display: grid; gap: 10px; }
.opciones--idioma { grid-template-columns: 1fr 1fr; }
.opc { position: relative; display: block; }
.opc input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opc span {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 16px;
  border: 1.5px solid var(--linea-2); border-radius: 6px; background: #fff;
  font-size: 16px; font-weight: 500; line-height: 1.25;
}
.opc span::before {
  content: ""; flex: none; width: 20px; height: 20px; border: 2px solid var(--linea-2); border-radius: 50%; background: #fff;
}
.opc--casilla span::before { border-radius: 4px; }
.opc small { margin-left: auto; font-size: 14px; font-weight: 400; color: var(--tinta-2); white-space: nowrap; }
.opc:hover span { border-color: var(--verde); }
.opc input:checked + span { border-color: var(--verde); background: #edf2ea; box-shadow: inset 0 0 0 1px var(--verde); }
.opc input:checked + span::before { border-color: var(--verde); background: var(--verde); box-shadow: inset 0 0 0 3.5px #edf2ea; }
.opc--casilla input:checked + span::before { box-shadow: none; background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.opc input:focus-visible + span { outline: 2px solid var(--verde); outline-offset: 3px; }
.campo input[type="text"], .campo textarea {
  display: block; width: 100%; min-height: 52px; padding: 13px 14px; border: 1.5px solid var(--linea-2); border-radius: 6px;
  background: #fff; color: var(--tinta); font-family: var(--f-texto); font-size: 17px; line-height: 1.4;
}
.campo textarea { min-height: 100px; resize: vertical; }
.campo input[type="text"]:focus-visible, .campo textarea:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; border-color: var(--verde); }
.campo input::placeholder, .campo textarea::placeholder { color: #6b7a71; }
.vista { margin-bottom: 18px; padding: 14px 16px 16px; border-left: 3px solid var(--verde); border-radius: 0 6px 6px 0; background: var(--papel); }
.vista__tit { font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--verde); }
.vista__txt { margin-top: 6px; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.envio { display: grid; gap: 12px; }
.envio .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.aviso { min-height: 1.6em; margin-top: 10px; font-size: 15px; font-weight: 500; color: #8a3a28; }
.conf { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--tinta-2); }
@media (min-width: 600px) {
  .formulario { padding: 36px 36px 30px; }
  .envio { grid-template-columns: 1fr 1fr; }
  .opciones--formato { grid-template-columns: repeat(3, 1fr); }
  .opciones--formato .opc span { flex-wrap: wrap; align-content: center; }
  .opciones--formato .opc small { margin-left: 32px; flex-basis: 100%; }
  .opciones--idioma { grid-template-columns: repeat(4, 1fr); }
  .opciones--franja { grid-template-columns: 1fr 1fr 1.4fr; }
}
@media (min-width: 960px) {
  .cita__rejilla { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .cita__foto { display: block; margin-top: 32px; }
  .cita__foto img { width: 100%; max-width: 340px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
}
@media (min-width: 600px) and (max-width: 1099px) { .opciones--idioma { grid-template-columns: repeat(2, 1fr); } }

/* ── вопросы ─────────────────────────────────────────────────────────── */
.faq__rejilla { display: grid; gap: 28px; }
.faq details { border-top: 1px solid var(--linea-2); }
.faq details:last-child { border-bottom: 1px solid var(--linea-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 10px 0;
  cursor: pointer; list-style: none; font-family: var(--f-titulo); font-weight: 600; font-size: 19px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--f-texto); font-weight: 400; font-size: 28px; line-height: 1; color: var(--verde); }
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 62ch; margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--tinta-2); }
@media (min-width: 900px) { .faq__rejilla { grid-template-columns: .7fr 1.3fr; gap: 72px; } }

/* ── подвал ──────────────────────────────────────────────────────────── */
.pie { padding-block: 56px 40px; background: var(--tinta); color: #dbe4de; }
.pie__cols { display: grid; gap: 30px; }
.pie h2 { margin-bottom: 10px; font-size: 20px; color: #fff; }
.pie address { font-style: normal; line-height: 1.6; }
.pie p { line-height: 1.6; }
.pie__enl {
  display: flex; align-items: center; min-height: 44px; color: #fff; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere;
}
.pie__enl:hover { text-decoration-thickness: 2px; }
.pie :focus-visible { outline-color: #fff; }
.pie__demo { max-width: 72ch; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px; color: #b9c6bd; }
.pie__demo b { color: #fff; font-weight: 600; }
@media (min-width: 760px) { .pie__cols { grid-template-columns: 1fr 1fr 1.3fr; gap: 48px; } }

/* Длинные подписи языков (украинская версия): два столбца вместо четырёх, иначе форма шире колонки */
@media (min-width: 600px) { .opciones--idioma.opciones--ancho { grid-template-columns: repeat(2, 1fr); } }
