/* Ольга Савинова, психолог. Одна светлая тема, всё через переменные. */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/golos-text-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/golos-text-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/literata-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/literata-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* знак рубля лежит в подмножестве latin-ext */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/golos-text-latin-ext.woff2) format("woff2");
  unicode-range: U+20BD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/literata-latin-ext.woff2) format("woff2");
  unicode-range: U+20BD;
}

:root {
  /* цвет */
  --bg: #f4f6f5;
  --surface: #ffffff;
  --mist: #e4ecea;
  --ink: #1c2b29;
  --muted: #4b5c59;
  --line: #d2dcd9;
  --accent: #3f7068;
  --accent-hover: #335d56;
  --accent-active: #284a44;
  --on-accent: #ffffff;
  --band: #23423f;
  --on-band: #f1f5f4;
  --on-band-muted: #c6d6d3;
  --focus: #1c2b29;
  --focus-on-band: #ffffff;

  /* шрифты */
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* шкала: основной 18 px, h1 до 56 px */
  --text-sm: 0.889rem;
  --text-base: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.375rem, 1.1rem + 1vw, 1.625rem);
  --h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.375rem);
  --h1: clamp(2rem, 1.3rem + 3.6vw, 3.5rem);

  /* отступы, шаг 4 px */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 72px;
  --s9: 112px;

  --radius: 14px;
  --radius-pill: 999px;
  --wrap: 1120px;
  --measure: 62ch;
  --dur: 160ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--text-base)/1.6 var(--font-body);
  hyphens: auto;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  hyphens: manual;
  margin: 0;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--text-xl); line-height: 1.3; }

p { margin: 0; max-width: var(--measure); }
ul, ol { margin: 0; padding: 0; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
a:active { color: var(--accent-active); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: var(--s4);
  top: -100px;
  background: var(--surface);
  color: var(--ink);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus { top: var(--s3); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(var(--s4), env(safe-area-inset-left, 0px));
  padding-right: max(var(--s4), env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: var(--s6); padding-right: var(--s6); }
}

/* кнопка */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s3) var(--s5);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 var(--text-base)/1.2 var(--font-body);
  text-decoration: none;
  transition: background-color var(--dur) ease, transform var(--dur) ease;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.btn:active { background: var(--accent-active); transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--small { min-height: 44px; padding: var(--s2) var(--s4); font-size: var(--text-sm); }
.btn--light { background: var(--on-band); color: var(--band); }
.btn--light:hover { background: var(--surface); color: var(--band); }
.btn--light:active { background: var(--mist); color: var(--band); }
.btn--light:focus-visible { outline-color: var(--focus-on-band); }

/* шапка */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand cta" "nav nav";
  align-items: center;
  gap: var(--s3) var(--s4);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}
.brand {
  grid-area: brand;
  color: var(--ink);
  text-decoration: none;
  font: 500 var(--text-lg)/1.2 var(--font-display);
  min-width: 0;
}
.brand:hover { color: var(--accent); text-decoration: none; }
.site-nav { grid-area: nav; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.header-cta { grid-area: cta; }
.header-cta .short { display: none; }
@media (max-width: 479px) {
  .header-cta .full { display: none; }
  .header-cta .short { display: inline; }
  .site-header .wrap { gap: 0 var(--s3); padding-top: var(--s2); padding-bottom: 0; }
  .brand { font-size: 1rem; }
  .site-nav ul { flex-wrap: nowrap; gap: 0 var(--s4); overflow-x: auto; scrollbar-width: none; }
  .site-nav a { white-space: nowrap; font-size: 0.8125rem; }
}
@media (min-width: 900px) {
  .site-header .wrap { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav cta"; }
  .site-nav ul { justify-content: center; gap: var(--s6); }
}

/* секции */
main { display: block; }
.section { padding-block: var(--s8); }
.section + .section { border-top: 1px solid var(--line); }
.section--mist { background: var(--mist); border-top: 0; }
.section--mist + .section { border-top: 0; }
@media (min-width: 900px) { .section { padding-block: var(--s9); } }

.stack { display: flex; flex-direction: column; gap: var(--s4); }
.stack--lg { gap: var(--s5); }

.split { display: grid; gap: var(--s6); }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; }
}

/* первый экран */
.hero { padding-block: var(--s8) var(--s8); }
@media (min-width: 900px) { .hero { padding-block: var(--s9); } }
.hero h1 { max-width: 18ch; }
@media (max-width: 479px) {
  .hero { padding-block: var(--s6) var(--s7); }
  .hero.stack, .hero .stack--lg { gap: var(--s4); }
  .hero h1 { font-size: 1.75rem; }
  .hero .lead { font-size: var(--text-base); order: 2; }
  .hero .price-line { order: 1; }
  .hero .hero-action { order: 3; }
}
.hero .lead { font-size: var(--text-lg); color: var(--muted); max-width: 52ch; }
.hero-action { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.price-line {
  font: 500 var(--text-xl)/1.3 var(--font-display);
  color: var(--ink);
}
.note { color: var(--muted); font-size: var(--text-sm); }

/* с чем приходят */
.concerns { list-style: none; border-top: 1px solid var(--line); }
.concerns li {
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
  font: 500 var(--text-xl)/1.35 var(--font-display);
}

/* шаги */
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s6); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); } }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.steps li::before {
  content: counter(step);
  font: 500 2.5rem/1 var(--font-display);
  color: var(--accent);
}

/* стоимость */
.prices { display: grid; gap: var(--s4); max-width: 760px; }
@media (min-width: 720px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  min-width: 0;
}
.price .where { color: var(--muted); font-weight: 600; }
.price .sum { font: 500 2.25rem/1.1 var(--font-display); }
.price .per { color: var(--muted); }
.terms { list-style: none; display: flex; flex-direction: column; gap: var(--s2); }
.terms li { padding-left: var(--s5); position: relative; max-width: var(--measure); }
.terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

/* обо мне */
.photo-slot {
  aspect-ratio: 4 / 5;
  max-width: 100%;
  width: 100%;
  border: 2px dashed var(--muted);
  border-radius: var(--radius);
  background: var(--mist);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: var(--s5);
}
@media (max-width: 899px) { .photo-slot { max-width: 260px; order: 2; } }
.facts { list-style: none; display: flex; flex-direction: column; gap: var(--s3); }
.facts li { padding-left: var(--s5); position: relative; max-width: var(--measure); }
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

/* финальный призыв */
.band { background: var(--band); color: var(--on-band); }
.band h2 { color: var(--on-band); }
.band p { color: var(--on-band-muted); }
.band a:not(.btn) { color: var(--on-band); }
.band a:not(.btn):hover { color: var(--surface); }
.band :focus-visible { outline-color: var(--focus-on-band); }
.contacts { display: flex; flex-direction: column; gap: var(--s1); }

/* внутренние страницы */
.page-head { padding-block: var(--s8) var(--s6); }
.page-head .lead { font-size: var(--text-lg); }
.callout {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--s5);
  max-width: 70ch;
}
.bullets { list-style: none; display: flex; flex-direction: column; gap: var(--s3); }
.bullets li { padding-left: var(--s5); position: relative; max-width: var(--measure); }
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 2px;
  background: var(--accent);
}
.page-links { gap: 0; }
.page-links li::before { top: 1.35em; }
.page-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-lg); }
.page-end { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); }

.section--flush { padding-top: 0; }

/* вопросы */
.faq { display: flex; flex-direction: column; }
.faq-item { padding-block: var(--s5); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s2); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h2 { font-size: var(--text-xl); line-height: 1.3; }

/* подвал */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s6); color: var(--muted); font-size: var(--text-sm); }
.site-footer .wrap { display: flex; flex-direction: column; gap: var(--s1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
