/*
Theme Name:  Fostiropulo Therapy
Theme URI:   https://fostiropulotherapy.com
Description: Самостоятельная тема для сайта психоаналитика и групп-аналитика Христины Фостиропуло. Одностраничник, практика онлайн. Без билдеров и родительских тем.
Author:      Fostiropulo Therapy
Version:     2.7.1
Text Domain: fostiropulo
*/

/* ==========================================================================
   Локальные шрифты — Alice (заголовки) + IBM Plex Sans (текст)
   Хостятся в самой теме: без обращений к серверам Google (приватность + скорость).
   unicode-range заставляет браузер грузить только нужный алфавит.
   Alice — OFL (Cyreal). IBM Plex Sans — OFL (IBM). Свободны для self-hosting.
   ========================================================================== */

/* Alice 400 — cyrillic */
@font-face {
  font-family: 'Alice';
  font-style: normal;
  font-weight: var(--f-w-regular);
  font-display: swap;
  src: url('fonts/alice-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Alice 400 — cyrillic-ext */
@font-face {
  font-family: 'Alice';
  font-style: normal;
  font-weight: var(--f-w-regular);
  font-display: swap;
  src: url('fonts/alice-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Alice 400 — latin */
@font-face {
  font-family: 'Alice';
  font-style: normal;
  font-weight: var(--f-w-regular);
  font-display: swap;
  src: url('fonts/alice-400-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;
}

/* Alice 400 — latin-ext */
@font-face {
  font-family: 'Alice';
  font-style: normal;
  font-weight: var(--f-w-regular);
  font-display: swap;
  src: url('fonts/alice-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Sans 400 — cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: var(--f-w-regular);
  font-display: swap;
  src: url('fonts/ibm-plex-sans-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* IBM Plex Sans 400 — cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: var(--f-w-regular);
  font-display: swap;
  src: url('fonts/ibm-plex-sans-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* IBM Plex Sans 400 — latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: var(--f-w-regular);
  font-display: swap;
  src: url('fonts/ibm-plex-sans-400-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;
}

/* IBM Plex Sans 400 — latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: var(--f-w-regular);
  font-display: swap;
  src: url('fonts/ibm-plex-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Sans 700 — cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: var(--f-w-semibold);
  font-display: swap;
  src: url('fonts/ibm-plex-sans-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* IBM Plex Sans 700 — cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: var(--f-w-semibold);
  font-display: swap;
  src: url('fonts/ibm-plex-sans-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* IBM Plex Sans 700 — latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: var(--f-w-semibold);
  font-display: swap;
  src: url('fonts/ibm-plex-sans-700-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;
}

/* IBM Plex Sans 700 — latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: var(--f-w-semibold);
  font-display: swap;
  src: url('fonts/ibm-plex-sans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   ТОКЕНЫ ТЕМЫ — единый источник палитры и типографики.
   Меняешь значение здесь — оно применяется по всему сайту.
   Значения сняты из первоисточника (Taplink-тема), палитра «тёплая землистая».
   ========================================================================== */
:root {
  /* --- Палитра --- */
  --f-bg:            #F5F4EE;  /* фон страницы, тёплый кремовый */
  --f-surface:       #ECEAE1;  /* карточки/блоки — на тон темнее фона */
  --f-heading:       #3A332B;  /* цвет заголовков */
  --f-text:          #3A332B;  /* основной текст */
  --f-text-soft:     #6D6057;  /* приглушённый текст (подписи, второстепенное) */
  --f-accent:        #6B5642;  /* акцент: кнопки, активные элементы */
  --f-accent-hover:  #574636;  /* акцент при наведении (темнее) */
  --f-on-accent:     #FFFFFF;  /* текст на акценте */
  --f-focus:         #4A433C;  /* рамка поля в фокусе, активный чекбокс */
  --f-border:        #DBD6CB;  /* тонкие разделители и рамки */
  --f-shadow:        rgba(93, 78, 54, 0.20); /* мягкая коричневая тень */

  /* --- Типографика --- */
  --f-font-head: 'Alice', Georgia, 'Times New Roman', serif;
  --f-font-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --f-text-size:     16px;   /* базовый размер текста */
  --f-line:          1.6;    /* межстрочный интервал текста (воздух) */
  --f-line-head:     1.25;   /* межстрочный интервал заголовков */

  /* --- Шкала размеров текста (единый стандарт) --- */
  --f-size-xs:   0.85rem;  /* подписи, мелкие метки */
  --f-size-sm:   0.92rem;  /* второстепенный текст */
  --f-size-base: 1rem;     /* основной текст */
  --f-size-md:   1.05rem;  /* чуть крупнее основного (лиды) */
  --f-size-lg:   1.2rem;   /* подзаголовки, название сайта на мобильном */
  --f-size-xl:   1.4rem;   /* h3/h4, название сайта */
  --f-size-2xl:  1.5rem;   /* крупные подзаголовки */
  --f-size-3xl:  1.9rem;   /* h2 секций, h1 юр-страниц */
  --f-size-4xl:  2rem;     /* цифры доверия */
  --f-size-hero: clamp(2.3rem, 7vw, 4.2rem); /* заголовок Hero */

  /* --- Насыщенность (грузим только 400; 600 синтезируется единообразно) --- */
  --f-w-regular:  400;
  --f-w-semibold: 600;

  /* --- Цвета состояний и текста на тёмном --- */
  --f-success:      #33502E;  /* зелёный успех формы */
  --f-error:        #7A3B2F;  /* красная ошибка формы */
  --f-on-dark:      #FFFFFF;              /* текст на тёмных фонах */
  --f-on-dark-soft: rgba(255, 255, 255, 0.82); /* приглушённый на тёмном */

  /* --- Геометрия --- */
  --f-radius:        10px;   /* скругление блоков/кнопок */
  --f-radius-input:  8px;    /* скругление полей формы */
  --f-radius-round:  50%;    /* круглые элементы (кнопка «наверх») */
  --f-maxw:          760px;  /* макс. ширина контента (комфортная строка чтения) */
}

/* ==========================================================================
   БАЗОВЫЕ СТИЛИ — применяем токены к странице.
   !important в ряде мест — сознательно, чтобы перебить дефолты Astra.
   ========================================================================== */

body {
  background-color: var(--f-bg) !important;
  color: var(--f-text) !important;
  font-family: var(--f-font-body) !important;
  font-size: var(--f-text-size);
  line-height: var(--f-line);
  font-weight: var(--f-w-regular);
}

/* Заголовки — Alice, спокойные, не жирные (как в оригинале) */
h1, h2, h3, h4, h5, h6,
.entry-title {
  font-family: var(--f-font-head) !important;
  color: var(--f-heading) !important;
  font-weight: var(--f-w-regular) !important;
  line-height: var(--f-line-head);
}

/* Размеры заголовков — сдержанная, «книжная» шкала */
h1 { font-size: var(--f-size-3xl); }
h2 { font-size: var(--f-size-2xl); }
h3 { font-size: var(--f-size-lg); }

/* Абзацы — комфортный вертикальный ритм */
p {
  margin: 0 0 1.15em;
}

/* Ссылки — в цвет акцента, аккуратное подчёркивание */
a {
  color: var(--f-accent);
  text-decoration-color: var(--f-border);
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--f-accent-hover);
}

/* Кнопки Astra и типовые кнопки — наш акцент */
.button, button,
input[type="submit"], .wp-block-button__link {
  background-color: var(--f-accent) !important;
  color: var(--f-on-accent) !important;
  border: none !important;
  border-radius: var(--f-radius) !important;
  font-family: var(--f-font-body) !important;
  font-weight: var(--f-w-semibold) !important;
  padding: 0.85em 1.6em !important;
  box-shadow: 0 4px 14px var(--f-shadow);
  transition: background-color 0.15s ease;
}
.button:hover, button:hover,
input[type="submit"]:hover, .wp-block-button__link:hover {
  background-color: var(--f-accent-hover) !important;
}

/* Тонкие горизонтальные разделители */
hr {
  border: none;
  border-top: 1px solid var(--f-border);
  margin: 2.5em auto;
  max-width: 120px;
}

/* Выделение текста мышью — в тёплых тонах */
::selection {
  background: var(--f-accent);
  color: var(--f-on-accent);
}
/* ==========================================================================
   РАСКЛАДКА ОДНОСТРАНИЧНИКА — контейнер контента и вертикальный ритм секций.
   ========================================================================== */

.fp-container {
  max-width: var(--f-maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.fp-section {
  padding: 3.2rem 0;
}

/* Чётные секции слегка выделяем «поверхностью» — для ритма чтения */
.fp-section:nth-child(even) {
  background-color: var(--f-surface);
}

/* Кнопочная строка внутри карточек (историческое имя класса) */
.fp-hero__cta {
  margin: 0;
}

/* Основная кнопка-акцент (переиспользуемый класс) */
.fp-btn {
  /* Единый стандарт CTA: один размер вне зависимости от текста */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(320px, 100%);
  min-height: 56px;
  box-sizing: border-box;
  background-color: var(--f-accent);
  color: var(--f-on-accent) !important;
  font-family: var(--f-font-body);
  font-weight: var(--f-w-semibold);
  font-size: var(--f-size-md);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  padding: 0.6em 2em;
  border-radius: var(--f-radius);
  box-shadow: 0 4px 14px var(--f-shadow);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.fp-btn:hover {
  background-color: var(--f-accent-hover);
  color: var(--f-on-accent) !important;
  transform: translateY(-1px);
}
/* ==========================================================================
   СЕКЦИИ КОНТЕНТА — типографика прозы, карточки, списки, расписания.
   ========================================================================== */

/* Заголовки секций */
.fp-section > .fp-container > h2,
.fp-prose > h2 {
  text-align: center;
  font-size: var(--f-size-3xl);
  margin: 0 0 2.2rem;
}
/* Тонкий фирменный разделитель под заголовком секции */
.fp-section > .fp-container > h2::after,
.fp-prose > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--f-accent);
  opacity: 0.45;
  margin: 0.9rem auto 0;
}

.fp-prose h3 {
  font-size: var(--f-size-2xl);
  margin: 2rem 0 0.8rem;
}
.fp-prose h4 {
  font-family: var(--f-font-body);
  font-weight: var(--f-w-semibold);
  font-size: var(--f-size-md);
  color: var(--f-heading);
  margin: 1.5rem 0 0.6rem;
}

.fp-prose p {
  margin: 0 0 1.1em;
}

/* Списки */
.fp-list {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.fp-list li {
  margin: 0 0 0.5em;
  line-height: 1.65;
}

/* Карточка направления/группы — на «поверхности», со скруглением */
.fp-card {
  background-color: var(--f-surface);
  border-radius: var(--f-radius);
  padding: 1.5rem 1.6rem;
  margin: 1.1rem 0;
  box-shadow: 0 2px 12px var(--f-shadow);
}
.fp-card h3 {
  margin-top: 0;
}

/* Блок расписания/цены внутри карточки — выделен рамкой сверху */
.fp-schedule {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--f-border);
}
.fp-schedule p {
  margin: 0 0 0.5em;
}

/* Цена — акцентная строка */
.fp-price {
  font-family: var(--f-font-head);
  font-size: var(--f-size-xl);
  color: var(--f-accent);
  margin: 0.6rem 0 0 !important;
}

/* Маленькая кнопка (для карточек) */

/* ==========================================================================
   ФОРМА ЗАЯВКИ
   ========================================================================== */
.fp-form {
  max-width: 560px;
  margin: 1.5rem auto 0;
}
.fp-field {
  margin: 0 0 1.2rem;
}
.fp-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: var(--f-w-semibold);
  color: var(--f-heading);
}
.fp-field input[type="text"],
.fp-field input[type="email"],
.fp-field select {
  width: 100%;
  padding: 0.75em 0.9em;
  font-family: var(--f-font-body);
  font-size: var(--f-size-base);
  color: var(--f-text);
  background: #fff;
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-input);
  box-sizing: border-box;
}

/* Селект: сбрасываем фиксированную высоту и line-height Astra,
   иначе текст выбранного пункта режется по вертикали. */
.fp-field select {
  height: auto !important;
  line-height: 1.4 !important;
  padding-top: 0.7em;
  padding-bottom: 0.7em;
}
.fp-field input:focus,
.fp-field select:focus {
  outline: none;
  border-color: var(--f-focus);
  box-shadow: 0 0 0 2px rgba(74, 67, 60, 0.12);
}

/* Чекбоксы согласий */
.fp-field--check label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: var(--f-w-regular);
  cursor: pointer;
}
.fp-field--check input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--f-focus);
  flex-shrink: 0;
}
.fp-field--check span {
  color: var(--f-text);
}

/* Honeypot — прячем от людей */
.fp-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Сообщения о результате */
.fp-form__msg {
  padding: 0.9em 1.1em;
  border-radius: var(--f-radius-input);
  margin: 0 auto 1.2rem;
  max-width: 560px;
}
.fp-form__msg--ok {
  background: #e7efe4;
  color: var(--f-success);
}
.fp-form__msg--err {
  background: #f3e4e0;
  color: var(--f-error);
}

/* ==========================================================================
   ЮР-СТРАНИЦЫ (Оферта, Политика) — читаемая колонка
   ========================================================================== */
.fp-legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 20px;
}
.fp-legal h1 {
  font-size: var(--f-size-4xl);
  margin-bottom: 0.5rem;
}
.fp-legal h2 {
  font-size: var(--f-size-xl);
  margin: 2rem 0 0.8rem;
  text-align: left;
}
.fp-legal h3 {
  font-size: var(--f-size-md);
  margin: 1.4rem 0 0.6rem;
}
.fp-legal p { margin: 0 0 1em; }
.fp-legal ul, .fp-legal ol { margin: 0 0 1em; padding-left: 1.4em; }
.fp-legal li { margin-bottom: 0.4em; }
.fp-legal__meta {
  color: var(--f-text-soft);
  font-size: var(--f-size-sm);
  margin-bottom: 2rem;
}

/* ==========================================================================
   ГАЛЕРЕЯ ДИПЛОМОВ — адаптивная сетка, клик открывает оригинал.
   ========================================================================== */
.fp-diplomas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.9rem;
  margin-top: 0.5rem;
  align-items: start;   /* горизонтальные сканы не растягиваются до высоты вертикальных */
}
.fp-diplomas__item {
  display: block;
  border-radius: var(--f-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--f-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: #fff;
}
.fp-diplomas__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--f-shadow);
}
.fp-diplomas__item img {
  display: block;
  width: 100%;
  height: auto;
}

/* Placeholder — приглушённый, чтобы не путался с введённым текстом */
.fp-field input::placeholder {
  color: var(--f-text-soft);
  opacity: 0.7;
}


/* ==========================================================================
   ДИЗАЙН-ПРОХОД v1.3.0 — ритм, сетки, цифры, инверсная секция.
   ========================================================================== */

/* --- «Обо мне»: портрет + текст в две колонки на десктопе --- */
.fp-about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: stretch;   /* фото тянется на высоту текста */
  text-align: left;
}
.fp-about__photo {
  margin: 0 auto;
  max-width: 260px;
}
.fp-about__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--f-radius);
  box-shadow: 0 6px 24px var(--f-shadow);
}
@media (min-width: 700px) {
  .fp-about {
    grid-template-columns: 340px 1fr;
    gap: 2.4rem;
  }
  .fp-about__photo {
    margin: 0;
    max-width: none;
    height: 100%;
  }
  .fp-about__photo picture {
    display: block;
    height: 100%;
  }
  .fp-about__photo img {
    height: 100%;
    object-fit: cover;      /* заполняет колонку, лишнее обрезается */
    object-position: center 20%;
  }
}

/* --- Лента цифр доверия --- */
.fp-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin: 0 0 2.2rem;
  text-align: center;
}
@media (min-width: 520px) {
  .fp-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .fp-stats { grid-template-columns: repeat(4, 1fr); }
}
.fp-stats__item {
  padding: 1.1rem 0.8rem;
  border-top: 1px solid var(--f-border);
  border-bottom: 1px solid var(--f-border);
}
.fp-stats__num {
  display: block;
  font-family: var(--f-font-head);
  font-size: var(--f-size-4xl);
  color: var(--f-accent);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.fp-stats__label {
  display: block;
  color: var(--f-text-soft);
  font-size: var(--f-size-sm);
}

/* --- Сетка карточек «Направления работы» --- */
.fp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 720px) {
  .fp-grid { grid-template-columns: 1fr 1fr; }
  .fp-grid .fp-card { margin: 0; }
}
/* Широкий десктоп: плитка в три колонки, меньше пустых полей */
@media (min-width: 1100px) {
  .fp-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Расширенный контейнер для секций-плиток */
.fp-container--wide {
  max-width: 1280px;
}
.fp-grid .fp-card {
  display: flex;
  flex-direction: column;
}
.fp-grid .fp-card p:last-child { margin-bottom: 0; }

/* --- Повторные CTA-кнопки после «тяжёлых» секций --- */
.fp-cta-row {
  text-align: center;
  margin: 3rem 0 0 !important;   /* !important: перебиваем схлопывание отступов в fp-prose */
}
@media (max-width: 640px) {
  .fp-cta-row {
    margin: 4rem 0 0.5rem !important;   /* на мобильном карточки ближе — воздуха больше */
  }
}

/* --- Инверсная (тёмная) секция — «Услуги и стоимость» --- */
.fp-section--dark {
  background-color: var(--f-heading) !important;
}
.fp-section--dark h2,
.fp-section--dark h3,
.fp-section--dark p,
.fp-section--dark li,
.fp-section--dark strong {
  color: var(--f-bg) !important;
}
.fp-section--dark h2::after {
  background: var(--f-bg);
  opacity: 0.35;
}
/* Светлая кнопка на тёмном фоне */
.fp-btn--light {
  background-color: var(--f-bg);
  color: var(--f-heading) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.fp-btn--light:hover {
  background-color: #fff;
  color: var(--f-heading) !important;
}


/* ==========================================================================
   СВЁРНУТЫЕ БЛОКИ <details> — облегчение длинных секций (v1.4.0).
   ========================================================================== */
.fp-details {
  margin: 1.4rem 0 0;
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius);
  background: rgba(255, 255, 255, 0.45);
}
.fp-details summary {
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  font-weight: var(--f-w-semibold);
  color: var(--f-accent);
  list-style: none;
  position: relative;
  padding-right: 2.4rem;
  user-select: none;
}
.fp-details summary::-webkit-details-marker { display: none; }
.fp-details summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--f-accent);
  border-bottom: 2px solid var(--f-accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.fp-details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.fp-details[open] summary {
  border-bottom: 1px solid var(--f-border);
}
.fp-details > *:not(summary) {
  margin-left: 1.1rem;
  margin-right: 1.1rem;
}
.fp-details > *:last-child {
  margin-bottom: 1.1rem;
}
.fp-details h4:first-of-type {
  margin-top: 1.1rem;
}


/* ==========================================================================
   СОДЕРЖАНИЕ ЮР-ДОКУМЕНТОВ + плавный скролл (v1.4.1).
   ========================================================================== */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.fp-toc {
  background: var(--f-surface);
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius);
  padding: 1.2rem 1.4rem;
  margin: 0 0 2.2rem;
}
.fp-toc__title {
  font-weight: var(--f-w-semibold);
  margin: 0 0 0.6rem;
}
.fp-toc__list {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  column-gap: 2rem;
}
.fp-toc__list li {
  margin-bottom: 0.35em;
  break-inside: avoid;
}
@media (max-width: 640px) {
  .fp-toc__list { columns: 1; }
}
/* Якорь не прячется под шапкой при прыжке */
.fp-legal h2[id] {
  scroll-margin-top: 90px;
}

/* ==========================================================================
   БАЗА (v2.0.0) — своя тема: мини-сброс вместо стилей Astra.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--f-font-body);
  font-size: var(--f-size-base);
  line-height: 1.65;
  color: var(--f-text);
  background: var(--f-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--f-accent); }

.fp-skip-link {
  position: absolute;
  left: -9999px;
}
.fp-skip-link:focus {
  left: 1rem; top: 1rem;
  background: var(--f-bg);
  padding: 0.6rem 1rem;
  z-index: 200;
}

/* ==========================================================================
   ШАПКА — липкая, название + якорное меню, бургер на мобильных (без JS).
   ========================================================================== */
.fp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(30, 25, 20, 0.55);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
/* Смещение под админ-панель WordPress (видна только залогиненным) */
body.admin-bar .fp-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .fp-header { top: 46px; }
}
/* Шапка фиксированная и не занимает место в потоке:
   всем страницам, кроме главной (там Hero на весь экран), даём отступ */
body:not(.home) .fp-main { padding-top: 72px; }
.fp-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.9rem 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.fp-header__brand { flex-shrink: 0; }
@media (max-width: 880px) {
  .fp-header__inner { padding: 0.7rem 16px; }
  .fp-header__title { font-size: var(--f-size-lg); white-space: nowrap; }
}
.fp-header__title {
  font-family: var(--f-font-head);
  font-size: var(--f-size-xl);
  color: var(--f-on-dark);
  text-decoration: none;
}
.fp-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.6rem;
}
.fp-nav__list a {
  color: var(--f-on-dark-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.fp-nav__list a:hover,
.fp-nav__list a:focus {
  color: var(--f-on-dark);
}
.fp-nav-toggle { display: none; }
.fp-nav-burger { display: none; }

@media (max-width: 880px) {
  /* Три точки (⋯) в духе референса вместо классических полос */
  .fp-nav-burger {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px 4px;
  }
  .fp-nav-burger span {
    width: 6px;
    height: 6px;
    border-radius: var(--f-radius-round);
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .fp-nav {
    flex-basis: 100%;
    display: none;
  }
  .fp-nav-toggle:checked ~ .fp-nav {
    display: block;
  }
  /* Открыто: крайние точки вытягиваются в чёрточки крестика, средняя гаснет */
  .fp-nav-toggle:checked ~ .fp-nav-burger span:nth-child(1) {
    transform: translateX(11px) scaleX(3.2) rotate(45deg);
    border-radius: 2px;
    height: 2.5px;
  }
  .fp-nav-toggle:checked ~ .fp-nav-burger span:nth-child(2) { opacity: 0; }
  .fp-nav-toggle:checked ~ .fp-nav-burger span:nth-child(3) {
    transform: translateX(-11px) scaleX(3.2) rotate(-45deg);
    border-radius: 2px;
    height: 2.5px;
  }
  .fp-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.8rem;
  }
  .fp-nav__list a {
    display: block;
    padding: 0.7rem 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* Якоря секций не прячутся под липкой шапкой */
.fp-section[id] {
  scroll-margin-top: 74px;
}

/* ==========================================================================
   ПОДВАЛ — собственный.
   ========================================================================== */
.fp-footer {
  background: var(--f-surface);
  border-top: 1px solid var(--f-border);
  margin-top: 3rem;
}
.fp-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.6rem 20px;
  text-align: center;
}
.fp-footer__copyright {
  margin: 0;
  color: var(--f-text-soft);
  font-size: var(--f-size-sm);
}
.fp-footer__copyright a {
  color: var(--f-text-soft);
  text-decoration: underline;
}
.fp-footer__copyright a:hover { color: var(--f-accent); }


/* ==========================================================================
   ПОЛНОЭКРАННЫЙ HERO (v2.1.0) — фото фоном, тёмная вуаль, крупный заголовок.
   ========================================================================== */
.fp-hero-full {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fp-hero-full__bg,
.fp-hero-full__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fp-hero-full__bg img {
  object-fit: cover;
  object-position: center 22%;   /* держим лицо в кадре при обрезке */
}
.fp-hero-full__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(30, 25, 20, 0.80) 0%,
      rgba(30, 25, 20, 0.55) 45%,
      rgba(30, 25, 20, 0.40) 100%);
}
.fp-hero-full__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5.5rem 1.25rem 4.5rem;
  max-width: 880px;
}
.fp-hero-full__title {
  font-family: var(--f-font-head);
  color: var(--f-on-dark) !important;   /* глобальное правило h1..h6 стоит с !important */
  font-size: var(--f-size-hero);
  line-height: 1.12;
  margin: 0 0 2.2rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.fp-btn--hero {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
/* Стрелка-приглашение к скроллу */
.fp-hero-full__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: translateX(-50%) rotate(45deg);
  animation: fp-hero-bounce 2.2s infinite;
}
@keyframes fp-hero-bounce {
  0%, 100% { transform: translateX(-50%) rotate(45deg) translate(0, 0); }
  50%      { transform: translateX(-50%) rotate(45deg) translate(4px, 4px); }
}
@media (prefers-reduced-motion: reduce) {
  .fp-hero-full__scroll { animation: none; }
}

/* --- Мобильная подгонка --- */
@media (max-width: 640px) {
  .fp-hero-full__content {
    padding: 4.5rem 1rem 3.5rem;
  }
  .fp-hero-full__bg img {
    object-position: center 15%;  /* на узком экране портрет ближе к верху */
  }
}
/* Совсем низкие экраны (телефон в ландшафте) — не даём контенту вылезать */
@media (max-height: 560px) {
  .fp-hero-full { min-height: 100vh; }
}


/* ==========================================================================
   ВЫПАДАЮЩИЕ ПОДМЕНЮ (v2.2.0) — тёмные, по ховеру и фокусу (клавиатура).
   ========================================================================== */
.fp-nav__list > li {
  position: relative;
}
.fp-nav__list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  background: rgba(30, 25, 20, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 0 var(--f-radius) var(--f-radius);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 110;
}
.fp-nav__list > li:hover > .sub-menu,
.fp-nav__list > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
}
.fp-nav__list .sub-menu a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: var(--f-size-sm);
  white-space: nowrap;
}
/* Стрелка у пунктов с подменю */
.fp-nav__list > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

/* Мобильное меню: подпункты раскрыты списком с отступом */
@media (max-width: 880px) {
  .fp-nav__list .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    padding: 0;
  }
  .fp-nav__list .sub-menu a {
    padding: 0.6rem 0.2rem 0.6rem 1.4rem;
    font-size: var(--f-size-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    white-space: normal;
  }
  .fp-nav__list > li.menu-item-has-children > a::after {
    display: none;
  }
}


/* ==========================================================================
   ПРОФЕССИОНАЛЬНЫЕ СООБЩЕСТВА (v2.4.0) — приглушённые логотипы, цвет по ховеру.
   ========================================================================== */
.fp-membership {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.4rem 1rem;
  align-items: start;
  margin-top: 0.5rem;
}
.fp-membership__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  text-align: center;
}
.fp-membership__item img {
  max-height: 72px;
  width: auto;
  max-width: 100%;
  filter: grayscale(1) opacity(0.65);
  transition: filter 0.2s ease;
}
.fp-membership__item:hover img,
.fp-membership__item:focus img {
  filter: grayscale(0) opacity(1);
}
.fp-membership__name {
  font-size: var(--f-size-xs);
  color: var(--f-text-soft);
  line-height: 1.35;
}
.fp-membership__item:hover .fp-membership__name {
  color: var(--f-accent);
}


/* ==========================================================================
   КНОПКА «НАВЕРХ» (v2.4.1) — появляется после первого экрана.
   ========================================================================== */
.fp-totop {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: var(--f-radius-round);
  background: var(--f-accent);
  box-shadow: 0 4px 16px rgba(58, 51, 43, 0.30);
  transition: background 0.2s ease, transform 0.2s ease;
}
.fp-totop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  width: 12px;
  height: 12px;
  border-left: 2.5px solid #fff;
  border-top: 2.5px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.fp-totop:hover {
  background: var(--f-focus);
  transform: translateY(-2px);
}
.fp-totop[hidden] {
  display: none;
}
@media (max-width: 640px) {
  .fp-totop {
    right: 1rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
  }
}


/* ==========================================================================
   ФОТО В СЕКЦИЯХ (v2.5.0): фон «Услуг» + две колонки «Совместной работы».
   ========================================================================== */

/* --- Секция с фоновым фото под плотной вуалью --- */
.fp-section--photo {
  position: relative;
  overflow: hidden;
}
.fp-section--photo .fp-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fp-section--photo .fp-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.fp-section--photo .fp-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 25, 20, 0.82);   /* плотнее, чем в Hero: фото — текстура */
}
.fp-section--photo > .fp-container {
  position: relative;
  z-index: 1;
}

/* --- «Совместная работа»: фото + текст --- */
.fp-work {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: start;
  text-align: left;
}
.fp-work__photo {
  margin: 0 auto;
  max-width: 280px;
}
.fp-work__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--f-radius);
  box-shadow: 0 6px 24px var(--f-shadow);
}
.fp-work__text > p:first-child {
  margin-top: 0;
}
@media (min-width: 700px) {
  .fp-work {
    grid-template-columns: 340px 1fr;
    gap: 2.4rem;
    align-items: stretch;
  }
  .fp-work__photo {
    margin: 0;
    max-width: none;
    height: 100%;
  }
  .fp-work__photo picture {
    display: block;
    height: 100%;
  }
  .fp-work__photo img {
    height: 100%;
    object-fit: cover;
    object-position: center 30%;   /* держим руки и блокнот в кадре */
  }
}


/* ==========================================================================
   КЛИКАБЕЛЬНЫЕ КАРТОЧКИ И ЦЕНЫ (v2.6.2) — вся плитка и ценники ведут к форме.
   ========================================================================== */
.fp-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fp-card--link:hover,
.fp-card--link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--f-shadow);
}
.fp-card--link h3,
.fp-card--link p {
  color: inherit;
}
.fp-card--link:hover h3 {
  color: var(--f-accent);
}

.fp-price a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--f-accent);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.fp-price a:hover,
.fp-price a:focus {
  color: var(--f-accent-hover);
  border-bottom-style: solid;
}
