/* G-Connect 0.8.0 (G-STUDIO) — основные стили темы (база 0.7.0; Базилиса — basilisa.css, главная v4 — home.css).
   Перенесено из утверждённого прототипа prototype/redesign-v3 (styles.css).
   Цвета — только утверждённая палитра и её прозрачные варианты:
   #f4f1ec, #fbfaf8, #efe5db, #1f1f1f, #26231f, #6b4a2f, #d1ac80 (логотип: #3f3426, #9c6a40).
   Промежуточные оттенки прототипа (#665f58, #e3ddd5, #52361f, #302b25, #c4b8a7, #e1c49a, #8c8279)
   заменены прозрачными вариантами палитры. Шрифт Montserrat 400/700 (OFL, assets/fonts/OFL.txt).
   Внешних запросов нет. Стили загрузчика v4 — home.css (только главная). */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Светлые */
  --bg: #f4f1ec;
  --paper: #fbfaf8;
  --text: #1f1f1f;
  --muted: rgb(31 31 31 / 74%);          /* вместо #665f58 */
  --line: rgb(107 74 47 / 16%);          /* вместо #e3ddd5 */
  --accent: #6b4a2f;
  --accent-hover: #26231f;               /* вместо #52361f */
  --soft: #efe5db;
  --dark: #26231f;
  /* Тёмные */
  --d-surface: #26231f;
  --d-raised: rgb(239 229 219 / 6%);     /* вместо #302b25 (поверх #26231f) */
  --d-solid: #26231f;                    /* сплошная заливка узлов SVG поверх линий */
  --d-text: #efe5db;
  --d-muted: rgb(239 229 219 / 78%);     /* вместо #c4b8a7 */
  --d-gold: #d1ac80;
  --d-glow: #efe5db;                     /* вместо #e1c49a */
  --d-line: rgb(209 172 128 / 24%);
  /* Граница полей ввода: контраст ≥ 3:1 к бумаге (WCAG 1.4.11) */
  --field-line: rgb(31 31 31 / 55%);     /* вместо #8c8279 */

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-display: "Montserrat", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Montserrat", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* Стекло (frosted glass) */
  --glass-light: rgb(251 250 248 / 80%);
  --glass-light-solid: #fbfaf8;
  --glass-dark: rgb(38 35 31 / 92%);
  --glass-dark-solid: #26231f;
  --glass-edge: rgb(251 250 248 / 70%);
  --glass-line: rgb(107 74 47 / 16%);
  --glass-line-dark: rgb(209 172 128 / 28%);
  --glass-blur: 16px;
  --glass-saturate: 140%;

  /* Совместимость с плагином gconnect-core: он читает эти переменные темы.
     Имена и значения сохранены из темы 0.6.8 (accent-dark — основной бронзовый, accent — hover). */
  --gc-container: 1200px;
  --gc-bg: #f4f1ec;
  --gc-surface: #fbfaf8;
  --gc-surface-soft: #efe5db;
  --gc-text: #1f1f1f;
  --gc-muted: #26231f;
  --gc-line: rgba(38, 35, 31, 0.16);
  --gc-accent: #26231f;
  --gc-accent-dark: #6b4a2f;
  --gc-blue: #6b4a2f;
  --gc-amber: #d1ac80;
  --gc-on-accent: #fbfaf8;
  --gc-shadow: 0 18px 55px rgba(38, 35, 31, 0.1);
}

/* Слабые телефоны: радиус размытия меньше. */
@media (max-width: 600px) {
  :root { --glass-blur: 8px; }
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 106.25%; /* 17 px на телефоне */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (min-width: 768px) {
  html { font-size: 112.5%; } /* 18 px, как у школы */
}

html.has-motion { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

html.menu-open body { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  overflow-wrap: break-word;
}

p { margin: 0; }

a { color: var(--accent); text-underline-offset: 0.2em; }

a:hover { color: var(--accent-hover); }

ul[role="list"],
ol[role="list"] { margin: 0; padding: 0; list-style: none; }

button,
input,
select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.dark :focus-visible,
.site-header :focus-visible,
.mobile-panel :focus-visible,
.panel-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--d-gold);
}

main:focus { outline: none; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  flex: 0 0 auto;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic--fill { fill: currentColor; stroke: none; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: var(--d-text);
  font-family: var(--font-display);
  font-weight: 700;
}

.skip-link:focus { top: 12px; color: var(--d-text); }

.container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container { width: min(100% - 48px, 1200px); }
}

[data-section] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn--primary { background: var(--accent); color: var(--paper); box-shadow: 0 12px 28px rgb(107 74 47 / 20%); }
.btn--primary:hover { background: var(--accent-hover); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--accent); border-color: rgb(107 74 47 / 45%); }
.btn--ghost:hover { background: var(--soft); color: var(--accent-hover); border-color: var(--accent); }
.btn--gold { background: var(--d-gold); color: var(--dark); box-shadow: 0 12px 30px rgb(31 31 31 / 28%); }
.btn--gold:hover { background: var(--d-glow); color: var(--dark); }
.btn--outline-light { background: rgb(251 250 248 / 4%); color: var(--d-text); border-color: rgb(209 172 128 / 55%); }
.btn--outline-light:hover { background: rgb(209 172 128 / 12%); color: var(--d-text); border-color: var(--d-gold); }
.btn--sm { min-height: 44px; padding: 0.6rem 1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}

/* ---------- Шапка: сплошная графитовая полоса с золотой кромкой ---------- */
.chip {
  border: 1px solid rgb(209 172 128 / 40%);
  background: var(--d-raised);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgb(209 172 128 / 35%);
  background: var(--dark); /* 0.8.1: сплошной #26231f — при 97 % текст страницы просвечивал под шапкой на телефоне */
  box-shadow: 0 10px 30px rgb(31 31 31 / 18%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--d-text);
  text-decoration: none;
}

.brand:hover { color: var(--d-text); }

/* S-13/S-16: горизонтальный логотип G-CONNECT. Шапка — assets/brand/gconnect-header-on-dark.svg
   (без слогана, viewBox 3937×866, ≈ 4.55:1); подвал — gconnect-horizontal-on-dark.svg (со слоганом, ≈ 4.58:1).
   Высота задаёт размер, ширина — по пропорции (width: auto). */
.brand__logo {
  display: block;
  width: auto;
  height: 34px;
  max-width: 100%;
}

.header-actions { display: flex; align-items: center; gap: 6px; }

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
}

.lang__btn {
  min-width: 38px;
  min-height: 44px;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--d-text);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.lang__btn:hover { background: rgb(251 250 248 / 12%); }
.lang__btn[aria-pressed="true"] { background: var(--soft); color: var(--dark); }

.login-btn {
  display: none;
  align-items: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  color: var(--d-text);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.login-btn:hover { color: var(--d-gold); }

.menu-toggle {
  display: grid;
  place-content: center;
  gap: 4px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 12px;
  color: var(--d-text);
  cursor: pointer;
}

.menu-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-desktop { display: none; }

.nav-desktop ul { display: flex; gap: 2px; }

.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: var(--d-text);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-desktop a:hover { background: rgb(251 250 248 / 10%); color: var(--d-text); }
.nav-desktop a[aria-current="page"] { background: var(--soft); color: var(--dark); }

@media (min-width: 480px) {
  .brand__logo { height: 38px; }
  .lang__btn { min-width: 44px; }
  .header-actions { gap: 8px; }
}

@media (min-width: 640px) {
  .login-btn { display: inline-flex; }
}

@media (min-width: 1024px) {
  .brand__logo { height: 44px; }
}

/* v3: Montserrat шире системного шрифта, а RO/EN-пункты длиннее — десктопное меню с 1360 px,
   шапка шире основного контейнера, чтобы «Войти»/«Conectare» не выходили за край. */
@media (min-width: 1360px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
  .site-header__inner { width: min(100% - 48px, 1340px); }
  .nav-desktop a { padding: 0 0.7rem; }
}

/* Мобильная панель */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 16px 16px 24px;
  overflow-y: auto;
  background: var(--d-surface);
  color: var(--d-text);
}

html.has-motion .mobile-panel.is-open { animation: panel-in 260ms var(--ease) both; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

.mobile-panel__head { display: flex; align-items: center; justify-content: space-between; }

.mobile-panel__title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }

.mobile-panel__close {
  width: 48px;
  height: 48px;
  border: 1px solid rgb(209 172 128 / 48%);
  border-radius: 50%;
  background: var(--d-raised);
  color: var(--d-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-panel__list li + li { border-top: 1px solid rgb(209 172 128 / 17%); }

.mobile-panel__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  color: var(--d-text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-panel__list a:hover { color: var(--d-gold); }

.mobile-panel__actions { display: grid; gap: 0.75rem; margin-top: auto; }

/* Прогресс страницы (ориентир на телефоне) */
.page-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}

.page-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--d-gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* Рейка разделов 01–10 */
.rail {
  position: fixed;
  top: 50%;
  right: 14px;
  z-index: 40;
  display: none;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(251 250 248 / 86%);
  box-shadow: 0 10px 30px rgb(38 35 31 / 10%);
  transform: translateY(-50%);
}

.rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 2px 0;
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-decoration: none;
}

.rail a:hover { color: var(--accent); background: var(--soft); }

.rail a[aria-current="true"] { background: var(--dark); color: var(--d-gold); }

.rail__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--dark);
  color: var(--d-text);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.rail a:hover .rail__label,
.rail a:focus-visible .rail__label { opacity: 1; transform: translate(0, -50%); }

@media (min-width: 1280px) {
  .rail { display: block; }
}

/* ---------- Секции ---------- */
.section {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(40% 50% at 8% 15%, rgb(209 172 128 / 13%), transparent 70%),
    radial-gradient(35% 45% at 95% 85%, rgb(107 74 47 / 7%), transparent 70%),
    var(--bg);
}

.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--soft { background: linear-gradient(180deg, var(--bg), var(--soft)); }
.section--last { padding-bottom: clamp(4rem, 8vw, 6rem); }

.dark { background: var(--d-surface); color: var(--d-text); }

.section.dark {
  background:
    radial-gradient(50% 60% at 85% 10%, rgb(209 172 128 / 12%), transparent 70%),
    var(--d-surface);
}

.sec-head {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  max-width: 780px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.sec-num {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.sec-num::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.dark .sec-num,
.panel-dark .sec-num { color: var(--d-gold); }

.sec-title {
  font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.dark .sec-title,
.panel-dark .sec-title { color: var(--d-text); }

.sec-lead { max-width: 62ch; color: var(--muted); font-size: 1.05rem; }

.dark .sec-lead,
.panel-dark .sec-lead { color: var(--d-muted); }

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  color: var(--d-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.eyebrow--plain { color: var(--d-gold); }

/* ---------- Карточки «матовое стекло» ---------- */
.card {
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
}

/* Базовое стекло = сплошной запасной вариант: #fbfaf8 с той же рамкой и бликом кромки.
   Он же используется без поддержки backdrop-filter, при prefers-reduced-transparency,
   при html.no-blur (Save-Data) и у всех карточек без .glass--blur. */
.glass {
  border: 1px solid var(--glass-line);
  background: var(--glass-light-solid);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 14px 34px rgb(38 35 31 / 7%);
}

.glass--dark {
  border-color: var(--glass-line-dark);
  background: var(--glass-dark-solid);
  color: var(--d-text);
  box-shadow: inset 0 1px 0 rgb(239 229 219 / 8%), 0 24px 50px rgb(38 35 31 / 18%);
}

/* Размытие — только у карточек с .glass--blur (первые ~4 на странице), только при поддержке.
   Радиус не анимируется; у карточки анимируются лишь transform и opacity. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass--blur {
    background: var(--glass-light);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  }

  .glass--dark.glass--blur { background: var(--glass-dark); }
}

/* Экономия трафика (класс ставит JS при navigator.connection.saveData) — сплошной фон. */
html.no-blur .glass--blur {
  background: var(--glass-light-solid);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.no-blur .glass--dark.glass--blur { background: var(--glass-dark-solid); }

/* Декоративные световые пятна под стеклом (aria-hidden, data-decor). Статичны. */
.spots {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.spots span { position: absolute; display: block; }

.spots span:nth-child(1) {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(209 172 128 / 55%), rgb(209 172 128 / 0%));
}

.spots span:nth-child(2) {
  width: 220px;
  height: 150px;
  border-radius: 26px;
  background: rgb(107 74 47 / 12%);
  transform: rotate(-8deg);
}

.spots span:nth-child(3) {
  width: 180px;
  height: 180px;
  border: 2px solid rgb(209 172 128 / 45%);
  border-radius: 50%;
}

.spots--a span:nth-child(1) { left: -90px; top: 32%; }
.spots--a span:nth-child(2) { right: 6%; top: 52%; }
.spots--a span:nth-child(3) { left: 46%; top: 30%; }
.spots--b span:nth-child(1) { right: -80px; top: 20%; }
.spots--b span:nth-child(2) { left: 4%; top: 30%; }
.spots--b span:nth-child(3) { left: 30%; bottom: 8%; }
.spots--c span:nth-child(1) { left: 30%; top: 25%; }
.spots--c span:nth-child(2) { right: 10%; bottom: 10%; }
.spots--c span:nth-child(3) { left: 4%; top: 40%; }
.spots--d span:nth-child(1) { left: -60px; top: 6%; }
.spots--d span:nth-child(2) { right: 8%; top: 28%; }
.spots--d span:nth-child(3) { left: 38%; top: 46%; }

.section > .container { position: relative; z-index: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: max-content;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.badge--example { border: 1px solid rgb(107 74 47 / 28%); background: var(--soft); color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tags li {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

/* ---------- 01 · Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(2rem, 6vw, 4rem)) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(55% 60% at 78% 42%, rgb(209 172 128 / 16%), transparent 70%),
    repeating-linear-gradient(90deg, rgb(209 172 128 / 4%) 0 1px, transparent 1px 80px),
    var(--d-surface);
}

.hero__glow {
  position: absolute;
  inset: auto -10% -40% 30%;
  height: 60%;
  background: radial-gradient(closest-side, rgb(209 172 128 / 12%), transparent);
  pointer-events: none;
}

.hero__decor { position: absolute; display: none; pointer-events: none; }

@media (min-width: 768px) {
  .hero__decor { display: block; }
}

.hero__decor--a {
  right: 6%;
  bottom: 10%;
  width: 120px;
  height: 120px;
  border: 1px solid rgb(209 172 128 / 30%);
  border-radius: 14px;
  transform: rotate(12deg);
}

.hero__decor--b {
  left: -60px;
  top: 18%;
  width: 220px;
  height: 220px;
  border: 1px dashed rgb(209 172 128 / 20%);
  border-radius: 50%;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__copy { display: grid; justify-items: start; gap: 1.25rem; }

.hero__title {
  max-width: 20ch;
  color: var(--d-text);
  font-size: clamp(1.9rem, 1.2rem + 2.9vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero__lead { max-width: 40ch; color: var(--d-muted); font-size: 1.1rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; width: 100%; }

.hero__cta .btn { flex: 1 1 100%; }

.hero__micro { color: var(--d-muted); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; }

.hero__scene { width: 100%; max-width: 520px; margin-inline: auto; }

@media (min-width: 640px) {
  .hero__cta .btn { flex: 0 1 auto; }
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: 3rem; }
}

/* Сцена hero и сеть связей: общие узлы */
.scene .base { stroke: rgb(209 172 128 / 26%); }

.scene .flow {
  stroke: var(--d-gold);
  stroke-dasharray: 6 12;
  stroke-linecap: round;
  animation: flow 1.4s linear infinite;
  animation-play-state: paused;
}

[data-inview].is-in .scene .flow { animation-play-state: running; }

@keyframes flow { to { stroke-dashoffset: -18; } }

.node circle,
.net__node circle { fill: var(--d-solid); stroke: rgb(209 172 128 / 70%); stroke-width: 2; }

.node use,
.net__node use {
  fill: none;
  stroke: var(--d-glow);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node text,
.net__node text,
.net__center text {
  fill: var(--d-text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  text-anchor: middle;
}

.scene__cabinet { filter: drop-shadow(0 18px 30px rgb(31 31 31 / 35%)); }

@media (max-width: 600px) {
  .node text { font-size: 22px; }
  .net__node text { font-size: 26px; }
}

.nowrap { white-space: nowrap; }

/* ---------- 02 · Три маршрута ---------- */
.routes { display: grid; gap: 1rem; }

.route { display: flex; flex-direction: column; gap: 0.85rem; }

.route__top { display: flex; align-items: center; justify-content: space-between; }

.route__top img { width: 84px; height: 84px; }

.route__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--d-gold);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.route h3 { font-size: 1.3rem; }

.route p { color: var(--muted); }

.route .btn { margin-top: auto; align-self: flex-start; }

@media (min-width: 860px) {
  .routes { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .route__top img { width: 96px; height: 96px; }
}

@media (hover: hover) and (pointer: fine) {
  .route,
  .role:not(.role--cta),
  .spec-card { transition: transform 220ms ease; }
  /* Стеклянные карточки: при наведении анимируется только transform (без тени и без размытия). */
  .route:hover,
  .role:not(.role--cta):hover,
  .spec-card:hover { transform: translateY(-4px); }
}

/* ---------- 03 · Цепочка заказа ---------- */
.chain-intro { display: grid; gap: 1.5rem; align-items: center; margin-bottom: 2.5rem; }

.chain-intro .sec-head { margin-bottom: 0; }

/* 0.8.0: мини-сборка только с 860 px. На узком экране она стоит между описанием и шагами, детали проявляются
   по прогрессу цепочки, а цепочка ещё ниже экрана, поэтому была видна только пустая пунктирная рамка (кадр 390-s03). */
.build { display: none; width: min(100%, 200px); justify-self: center; }

.build__p { transform-box: fill-box; transform-origin: 50% 50%; }

html.chain-ready .build__p {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

html.chain-ready .build__p.is-on { opacity: 1; transform: none; }

@media (min-width: 860px) {
  .chain-intro { grid-template-columns: 1fr auto; }
  .build { display: block; width: 220px; }
}

.chain { position: relative; }

.chain__list { display: grid; gap: 1.6rem; }

.chain__step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 1rem;
  align-items: start;
  align-content: start;
}

.chain__dot {
  position: relative;
  z-index: 1;
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(209 172 128 / 45%);
  border-radius: 50%;
  background: var(--d-solid);
  color: var(--d-muted);
  transition: background-color 300ms ease, color 300ms ease, transform 300ms var(--ease), box-shadow 300ms ease;
}

.chain__step.is-done .chain__dot {
  background: var(--d-gold);
  color: var(--dark);
  box-shadow: 0 0 0 6px rgb(209 172 128 / 14%);
  transform: scale(1.06);
}

.chain__n { color: var(--d-gold); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; }

.chain__step h3 { color: var(--d-text); font-size: 1.1rem; }

.chain__step p { color: var(--d-muted); font-size: 0.95rem; }

.chain__track {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background: rgb(209 172 128 / 22%);
}

.chain__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--d-gold), var(--d-glow));
  transform: scaleY(var(--p, 1));
  transform-origin: 50% 0;
}

@media (min-width: 960px) {
  .chain__list { grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
  .chain__step { grid-template-columns: 1fr; row-gap: 0.45rem; }
  .chain__dot { grid-row: auto; margin-bottom: 0.5rem; }
  .chain__track { top: 23px; bottom: auto; left: 24px; right: auto; width: auto; height: 2px; }
  .chain__fill { background: linear-gradient(90deg, var(--d-gold), var(--d-glow)); transform: scaleX(var(--p, 1)); transform-origin: 0 50%; }
}

/* ---------- 04 · Роли ---------- */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }

.role { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0.5rem; padding: 1rem; }

/* Узкий телефон: длинные слова (RU «Проектировщики», RO/EN) не помещаются в две колонки —
   одна колонка, иллюстрация слева от текста. */
@media (max-width: 479px) {
  .roles { grid-template-columns: minmax(0, 1fr); }
  .role:not(.role--cta) { grid-template-columns: 64px minmax(0, 1fr); column-gap: 1rem; row-gap: 0.25rem; align-items: center; }
  .role:not(.role--cta) img { grid-row: span 2; width: 64px; height: 64px; }
  .role--cta { gap: 1rem; }
}

.role img { width: 72px; height: 72px; }

.role h3 { font-size: 1rem; line-height: 1.2; }

.role p { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

/* Фон и рамка — от .glass--dark. */
.role--cta { align-content: space-between; }

.role--cta .role--cta__text { color: var(--d-text); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }

.role--cta .btn { padding-inline: 0.9rem; font-size: 0.85rem; }

@media (min-width: 700px) {
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .role { padding: 1.25rem; }
  .role img { width: 88px; height: 88px; }
}

@media (min-width: 1024px) {
  .roles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 05 · Связи между ролями ---------- */
/* Тёмный блок: фон, рамка и тень — от .glass.glass--dark. */
.panel-dark {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 4vw, 3rem);
  color: var(--d-text);
}

.net-panel { display: grid; gap: 1.5rem; align-items: center; }

.net-copy .sec-head { margin-bottom: 1.25rem; }

.net-list li {
  padding: 0.75rem 0;
  border-top: 1px solid rgb(209 172 128 / 18%);
  color: var(--d-muted);
  font-size: 0.95rem;
}

.net-list b { color: var(--d-text); font-weight: 700; }

.net { width: 100%; max-width: 640px; margin-inline: auto; }

.net__link { stroke: rgb(209 172 128 / 60%); stroke-width: 2; }

.net__link--side { stroke: rgb(209 172 128 / 30%); stroke-width: 1.5; }

html.net-ready .net__link {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease) var(--d, 0s);
}

html.net-ready .is-drawn .net__link { stroke-dashoffset: 0; }

.net__flow {
  stroke: var(--d-glow);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 0.015 0.185;
  opacity: 0;
  animation: net-flow 5s linear infinite;
  animation-play-state: paused;
  transition: opacity 600ms ease 1.2s;
}

.is-drawn .net__flow { opacity: 1; }

.is-in .net__flow { animation-play-state: running; }

@keyframes net-flow { to { stroke-dashoffset: -1; } }

.net__center circle { fill: var(--d-gold); }

.net__center text { fill: var(--dark); font-weight: 700; font-size: 18px; letter-spacing: 0.08em; }

.net__center .net__sub { font-size: 12px; font-weight: 700; letter-spacing: 0; }

@media (min-width: 960px) {
  .net-panel { grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; }
}

/* ---------- 06 · Пример в цифрах ---------- */
.counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }

.counter { display: grid; align-content: start; gap: 0.4rem; }

.counter__value {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.counter__label { color: var(--muted); font-size: 0.92rem; line-height: 1.35; }

@media (min-width: 900px) {
  .counters { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

/* ---------- 07 · Профили ---------- */
.profiles { display: grid; gap: 2.5rem; align-items: center; }

.profiles__copy { display: grid; justify-items: start; gap: 1.25rem; }

.profiles__copy .sec-head { margin-bottom: 0; }

.profiles__copy > p { max-width: 54ch; color: var(--muted); }

.checks { display: grid; gap: 0.6rem; }

.checks li { display: flex; align-items: center; gap: 0.65rem; }

.checks .ic { color: var(--accent); width: 1.4em; height: 1.4em; }

.profiles__stack { display: grid; gap: 0.9rem; }

.mini-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.mini-card h3 { margin-top: 0.4rem; font-size: 1.05rem; }

.mini-card__city,
.spec-card__city { display: flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.9rem; }

.mini-card__photo,
.spec-card__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--soft);
}

.mini-card__photo img,
.spec-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.is-locked img { filter: blur(7px); transform: scale(1.15); }

.lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(38 35 31 / 34%);
  color: var(--paper);
}

.lock .ic { width: 28px; height: 28px; }

@media (min-width: 960px) {
  .profiles { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .profiles__stack .mini-card:nth-child(2) { margin-left: 2.5rem; }
  .profiles__stack .mini-card:nth-child(3) { margin-left: 5rem; }
}

/* ---------- 08 · G-STUDIO ---------- */
.gstudio { position: relative; display: grid; gap: 1.5rem; align-items: end; }

.gstudio .sec-head { margin-bottom: 0; }

.gstudio__body { display: grid; justify-items: start; gap: 1rem; color: var(--d-muted); font-size: 1.05rem; }

.gstudio__body b { color: var(--d-text); font-weight: 700; }

.gstudio__note { font-size: 0.92rem; }

@media (min-width: 960px) {
  .gstudio { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}

/* «Сборка»: декоративные панели слетаются и встают в сетку при появлении блока (transform + opacity). */
.assemble-host { overflow: hidden; }

.assemble-host > .container { position: relative; z-index: 1; }

.assemble {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  padding: 12px;
  pointer-events: none;
}

.assemble span {
  border: 1px solid rgb(209 172 128 / 7%);
  border-radius: 14px;
  background: linear-gradient(160deg, rgb(38 35 31 / 45%), rgb(38 35 31 / 0%) 70%);
}

html.assemble-ready .assemble span {
  opacity: 0;
  transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--r, 0deg));
  transition: opacity 500ms var(--ease), transform 650ms var(--ease);
}

html.assemble-ready .assemble span:nth-child(1) { --tx: -40%; --ty: -30%; --r: -6deg; transition-delay: 0ms; }
html.assemble-ready .assemble span:nth-child(2) { --tx: 10%; --ty: -45%; --r: 4deg; transition-delay: 60ms; }
html.assemble-ready .assemble span:nth-child(3) { --tx: -10%; --ty: -40%; --r: -3deg; transition-delay: 120ms; }
html.assemble-ready .assemble span:nth-child(4) { --tx: 40%; --ty: -25%; --r: 6deg; transition-delay: 180ms; }
html.assemble-ready .assemble span:nth-child(5) { --tx: -45%; --ty: 30%; --r: 5deg; transition-delay: 240ms; }
html.assemble-ready .assemble span:nth-child(6) { --tx: -5%; --ty: 45%; --r: -4deg; transition-delay: 300ms; }
html.assemble-ready .assemble span:nth-child(7) { --tx: 15%; --ty: 40%; --r: 3deg; transition-delay: 360ms; }
html.assemble-ready .assemble span:nth-child(8) { --tx: 45%; --ty: 30%; --r: -6deg; transition-delay: 420ms; }
html.assemble-ready .is-built .assemble span { opacity: 1; transform: none; }

/* ---------- 09 · FAQ ---------- */
.faq__list { display: grid; gap: 0.75rem; max-width: 860px; }

.faq__item { padding: 0; }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 200ms ease;
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p { padding: 0 1.25rem 1.2rem; color: var(--muted); }

/* ---------- 10 · Финальный CTA ---------- */
.final {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  text-align: center;
}

.final .sec-title,
.final .sec-lead,
.final .sec-num,
.final__cta { position: relative; z-index: 1; }

.final__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; }

.final__tool { position: absolute; width: 70px; height: 70px; opacity: 0.45; pointer-events: none; }

.final__tool--a { top: 10px; left: 6px; }
.final__tool--b { right: 6px; bottom: 6px; }
.final__tool--c { display: none; }

@media (min-width: 768px) {
  .final__tool { width: 110px; height: 110px; opacity: 0.9; }
  .final__tool--a { top: 24px; left: 24px; }
  .final__tool--b { right: 28px; bottom: 20px; }
  .final__tool--c { display: block; top: 28px; right: 9%; width: 90px; height: 90px; }
}

/* ---------- Подвал ---------- */
.site-footer { padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; color: var(--d-muted); }

.site-footer__grid { display: grid; gap: 2rem; }

.brand--footer { padding: 0; min-height: 0; }

.brand--footer .brand__logo { height: 48px; }

.site-footer__brand { display: grid; justify-items: start; align-content: start; gap: 0.75rem; }

.site-footer__tagline { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }

.site-footer a { color: var(--d-text); }

.site-footer a:hover { color: var(--d-gold); }

.site-footer__nav ul { display: grid; gap: 0 1.5rem; }

@media (min-width: 420px) {
  .site-footer__nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.site-footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }

.site-footer__contacts { display: grid; align-content: start; gap: 0.75rem; font-style: normal; }

.site-footer__contacts a { display: inline-flex; align-items: center; min-height: 44px; width: max-content; }


.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--d-line);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
}

/* ---------- Страницы: компактный тёмный hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(50% 70% at 85% 30%, rgb(209 172 128 / 15%), transparent 70%),
    repeating-linear-gradient(90deg, rgb(209 172 128 / 4%) 0 1px, transparent 1px 80px),
    var(--d-surface);
}

.page-hero__inner { position: relative; display: grid; gap: 1.5rem; align-items: center; }

.page-hero__copy { display: grid; justify-items: start; gap: 1rem; }

.page-hero h1 { color: var(--d-text); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -0.035em; }

.page-hero__lead { max-width: 58ch; color: var(--d-muted); font-size: 1.08rem; }

.page-hero__art { display: none; width: 220px; justify-self: end; }

@media (min-width: 860px) {
  .page-hero__inner { grid-template-columns: 1fr auto; }
  .page-hero__art { display: block; }
}

/* ---------- Появление при прокрутке ---------- */
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--stagger, 0ms);
}

html.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

[data-parallax] { will-change: auto; }

html.parallax-on [data-parallax] { will-change: transform; }

/* ---------- Сниженное движение: всё статично и видимо ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .scene .flow,
  .net__flow { display: none; }

  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Сниженная прозрачность: стекло становится сплошным ---------- */
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--dark); }
  .rail { background: var(--paper); }

  .glass--blur {
    background: var(--glass-light-solid) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .glass--dark.glass--blur { background: var(--glass-dark-solid) !important; }
}

/* ---------- Язык: пока i18n.js не применил перевод (не RU), страница скрыта — не дольше 1,5 с ---------- */
html.i18n-pending body {
  opacity: 0;
  animation: i18n-failsafe 1ms linear 1.5s forwards;
}

@keyframes i18n-failsafe { to { opacity: 1; } }

/* =====================================================================
   WordPress: дополнения темы 0.7.0 (не из прототипа)
   ===================================================================== */

/* Кнопка «Создать профиль» в шапке: с 900 px; на узких экранах — в мобильной панели. */
.header-cta { display: none; }

@media (min-width: 900px) {
  .header-cta { display: inline-flex; min-height: 44px; padding: 0.55rem 1.05rem; font-size: 0.82rem; }
}

@media (min-width: 1360px) {
  .nav-desktop a { padding: 0 0.65rem; }
}

/* Панель администратора WordPress: шапка не уходит под неё. */
.admin-bar .site-header { top: 32px; }
.admin-bar .mobile-panel { top: 32px; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .mobile-panel { top: 46px; }
}

/* Пункт меню текущей страницы в мобильной панели и подвале. */
.mobile-panel__list a[aria-current="page"] { color: var(--d-gold); }
.site-footer__nav a[aria-current="page"] { color: var(--d-gold); }

/* Нижняя строка подвала: копирайт и политика. */
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; }
.site-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Универсальная страница (page.php, index.php, 404.php) ---------- */
.page-hero .eyebrow { margin: 0; }

.page-hero h1 { max-width: 22ch; overflow-wrap: break-word; hyphens: auto; }

.page-body { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 7vw, 5.5rem); }

/* Содержимое страниц WordPress (блоки Gutenberg и шорткоды плагинов). */
.entry-content {
  max-width: 860px;
  color: var(--text);
  overflow-wrap: break-word;
}

.entry-content--wide { max-width: none; }

.entry-content > * + * { margin-top: 1.1em; }

.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--text); }

.entry-content h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 1.05rem + 1.3vw, 2rem); letter-spacing: -0.025em; }
.entry-content h3 { margin-top: 1.8em; font-size: clamp(1.12rem, 1rem + 0.5vw, 1.35rem); }
.entry-content h4 { margin: 1.6em 0 0; font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; line-height: 1.25; }

.entry-content > :first-child { margin-top: 0; }

.entry-content p,
.entry-content li { color: var(--text); }

.entry-content ul,
.entry-content ol { margin-bottom: 0; padding-left: 1.3em; }

.entry-content li + li { margin-top: 0.35em; }

.entry-content li::marker { color: var(--accent); }

.entry-content a:not(.btn):not(.wp-block-button__link) { color: var(--accent); }
.entry-content a:not(.btn):not(.wp-block-button__link):hover { color: var(--accent-hover); }

.entry-content hr {
  height: 1px;
  margin-block: 2em;
  border: 0;
  background: var(--line);
}

.entry-content blockquote {
  margin: 1.5em 0;
  padding: 0.25em 0 0.25em 1.1em;
  border-left: 4px solid var(--accent);
  color: var(--text);
}

.entry-content img { border-radius: var(--radius-sm); }

.entry-content figure { margin: 1.5em 0; }

.entry-content figcaption { margin-top: 0.5em; color: var(--muted); font-size: 0.88rem; }

.entry-content .has-small-font-size { font-size: 0.88rem; }

/* Таблицы: прокрутка внутри блока, а не всей страницы. */
.entry-content .wp-block-table { overflow-x: auto; }

.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

.entry-content th,
.entry-content td { padding: 0.65rem 0.75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }

.entry-content th { background: var(--soft); font-weight: 700; }

/* 0.9.0: на телефоне таблица (например, cookie в политике) не сжимается в узкие столбцы, а прокручивается внутри блока. */
@media (max-width: 599px) {
  .entry-content .wp-block-table table { min-width: 34rem; }
}

/* Кнопки блоков WordPress — как кнопки прототипа. */
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6em; }

.entry-content .wp-block-button__link,
.entry-content .gconnect-shortcode-placeholder__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 28px rgb(107 74 47 / 20%);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.entry-content .wp-block-button__link:hover,
.entry-content .gconnect-shortcode-placeholder__link:hover { background: var(--accent-hover); color: var(--paper); }

.entry-content .is-style-outline > .wp-block-button__link {
  border-color: rgb(107 74 47 / 45%);
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.entry-content .is-style-outline > .wp-block-button__link:hover { border-color: var(--accent); background: var(--soft); color: var(--accent-hover); }

@media (hover: hover) and (pointer: fine) {
  .entry-content .wp-block-button__link:hover { transform: translateY(-2px); }
}

/* Раскрывающиеся блоки (FAQ) — как карточки вопросов прототипа. */
.entry-content .wp-block-details {
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  background: var(--glass-light-solid);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 14px 34px rgb(38 35 31 / 7%);
}

.entry-content .wp-block-details + .wp-block-details { margin-top: 0.75rem; }

.entry-content .wp-block-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }

.entry-content .wp-block-details summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 200ms ease;
}

.entry-content .wp-block-details[open] summary::after { transform: rotate(45deg); }

.entry-content .wp-block-details > :not(summary) { margin: 0; padding: 0 1.25rem 1.2rem; color: var(--muted); }

/* Плашка «черновик» и выделенные группы старого содержимого. */
.entry-content .gc-draft-notice,
.entry-content .gconnect-shortcode-placeholder,
.entry-content .gc-card,
.entry-content .gc-step {
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  background: var(--glass-light-solid);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 14px 34px rgb(38 35 31 / 7%);
}

.entry-content .gc-draft-notice { border-left: 4px solid var(--accent); }

.entry-content .gc-draft-notice > * + * { margin-top: 0.6em; }

.entry-content .gc-kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entry-content .gc-lead { color: var(--muted); font-size: 1.1rem; }

/* Поля форм внутри страниц (если у плагина нет своих стилей). */
.entry-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.entry-content select,
.entry-content textarea {
  max-width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
  font: inherit;
}

.entry-content textarea { min-height: 120px; }

.entry-content input[type="checkbox"],
.entry-content input[type="radio"] { accent-color: var(--accent); }

/* Статусы (общий вид): успех — бронзой, ошибка — жирным #1f1f1f с бронзовой полосой 4 px слева. */
.gc-status-ok { color: var(--accent); font-weight: 700; }
.gc-status-err { padding-left: 0.6rem; border-left: 4px solid var(--accent); color: var(--text); font-weight: 700; }

/* 404 */
.not-found { display: grid; justify-items: start; gap: 1.25rem; }

/* Список записей (index.php) */
.post-list { display: grid; gap: 1rem; }
.post-list .card h2 { font-size: 1.25rem; }
.post-list .card h2 a { color: var(--text); text-decoration: none; }
.post-list .card h2 a:hover { color: var(--accent); }
.post-list .card p { margin-top: 0.5rem; color: var(--muted); }
.pagination-nav { margin-top: 2rem; }
.pagination-nav .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination-nav .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; }
.pagination-nav .page-numbers.current { background: var(--dark); color: var(--d-text); }

/* Пометка «черновой перевод» в подвале: на русском пустая. */
.site-footer__note:empty { display: none; }

/* ---------- Совместимость с плагином gconnect-core: жёстко заданные цвета плагина → палитра ----------
   Плагин берёт основные цвета из --gc-*, но несколько правил у него с фиксированными цветами
   (#ffffff, зелёная/красная рамка уведомлений, красная кнопка удаления фото). Тема только
   перекрашивает их в палитру; разметку и логику плагина не меняет. */
.gc-v3 .gconnect-application-link,
.gc-v3 .gconnect-listing-card__action,
.gc-v3 .gconnect-auth-form__submit,
.gc-v3 .gconnect-auth .login-submit input { color: var(--paper); }

.gc-v3 .gconnect-application-link:hover,
.gc-v3 .gconnect-application-link:focus-visible,
.gc-v3 .gconnect-listing-card__action:hover,
.gc-v3 .gconnect-listing-card__action:focus-visible { color: var(--paper); }

.gc-v3 .gconnect-notice--success { border-color: var(--line); border-left: 4px solid var(--accent); }
.gc-v3 .gconnect-notice--success > :first-child { color: var(--accent); font-weight: 700; }

.gc-v3 .gconnect-notice--error { border-color: var(--line); border-left: 4px solid var(--accent); color: var(--text); font-weight: 700; }

.gc-v3 .gconnect-subscribe-toast { box-shadow: 0 8px 24px rgb(38 35 31 / 16%); }

.gc-v3 .gconnect-photo__staff-note { color: var(--text); font-weight: 700; }

.gc-v3 .gconnect-photo__delete { background: var(--accent); color: var(--paper); }

.gc-v3 .gconnect-photo__delete:hover,
.gc-v3 .gconnect-photo__delete:focus-visible { background: var(--dark); color: var(--paper); }

/* 0.10.0 — рекламные места. Сам баннер оформляет плагин (gconnect-pages/assets/ads.css);
   здесь только место в раскладке страницы. Пустое место тема не печатает. */
.ad-band { padding-block: clamp(1.25rem, 3vw, 2rem); background: var(--bg); }
.ad-band--footer { padding-block: 1.25rem 1.75rem; }

@media (min-width: 1100px) {
  .page-body__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 40px;
    align-items: start;
  }
  .page-body__grid > .entry-content { min-width: 0; }
  .page-body__aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

@media (max-width: 1099px) {
  .page-body__aside { margin-top: clamp(2rem, 5vw, 3rem); max-width: 420px; }
}
/* 0.10.0, попутно: кнопка заявки в карточке списка («Запросить специалиста») была цвета фона внутри .entry-content
   (правило ссылок содержимого перебивало цвет кнопки). */
.gc-v3 .entry-content .gconnect-listing-card .gconnect-listing-card__action,
.gc-v3 .entry-content .gconnect-listing-card .gconnect-listing-card__action:hover,
.gc-v3 .entry-content .gconnect-listing-card .gconnect-listing-card__action:focus-visible { color: var(--paper); }
