/* Пионовый двор — свадебное агентство.
   Слоновая кость, пудровый розовый, приглушённое золото; тонкий serif с курсивом,
   тонкие линии и двойные рамки. Системные шрифты, без внешних ресурсов. */

:root {
  --bg: #fbf7ef;
  --bg-alt: #f6eee3;
  --surface: #fffdf9;
  --blush: #f3e2de;
  --blush-deep: #e6c9c4;
  --fg: #3a312d;
  --fg-muted: #6a5d56;
  --gold: #b3925c;
  --gold-text: #7a5c2b;
  --line: #dcc9a8;
  --line-soft: #eadfcb;
  --on-gold: #fffaf0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1715;
    --bg-alt: #231e1b;
    --surface: #211c19;
    --blush: #33262a;
    --blush-deep: #4a3539;
    --fg: #efe6da;
    --fg-muted: #bcae9f;
    --gold: #c9a96e;
    --gold-text: #d9b980;
    --line: #5a4c38;
    --line-soft: #3a3128;
    --on-gold: #1b1715;
  }
}

/* ---------- База ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.7 var(--serif);
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--gold-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }

h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-text); }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold-text);
  color: var(--on-gold);
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Каркас ---------- */

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 44rem); }
.wrap.narrow-wide { width: min(100% - 2.5rem, 54rem); }
.is-center { text-align: center; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section-blush { background: var(--blush); border-block: 1px solid var(--blush-deep); }

.section-head { max-width: 40rem; margin: 0 auto 2.75rem; text-align: center; }
.section-head h2 { margin-bottom: 0.2em; }
.section-head .lead { margin-inline: auto; }

.eyebrow {
  margin: 0 0 1rem;
  font: 600 0.75rem/1.5 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.lead { max-width: 38rem; font-size: 1.2rem; line-height: 1.65; color: var(--fg-muted); }
.is-center .lead { margin-inline: auto; }

/* Орнамент: тонкая линия с ромбиком */
.orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: min(12rem, 60%);
  margin: 1.1rem auto 1.4rem;
  color: var(--gold);
}
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.75; }
.orn span { flex: none; width: 0.5rem; height: 0.5rem; border: 1px solid currentColor; transform: rotate(45deg); }

.more {
  margin: 2.75rem 0 0;
  text-align: center;
  font: 600 0.8rem/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.more a { text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 0.2rem; }

.note { margin: 2rem 0 0; font: 400 0.9rem/1.6 var(--sans); color: var(--fg-muted); text-align: center; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  background: var(--gold-text);
  border: 1px solid var(--gold-text);
  color: var(--on-gold);
  font: 600 0.78rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--gold-text); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--gold-text); }
.btn-ghost:hover { background: var(--gold-text); color: var(--on-gold); }
.btn-sm { padding: 0.65rem 1.3rem; font-size: 0.7rem; }

/* ---------- Шапка ---------- */

.topbar { background: var(--blush); font: 400 0.8rem/1.4 var(--sans); letter-spacing: 0.03em; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0.5rem; }
.topbar a { color: var(--fg); font-weight: 600; text-decoration: none; }
.topbar a:hover { color: var(--gold-text); text-decoration: underline; }

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; padding-top: 1.4rem; }

.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 0.25rem; color: var(--fg); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-name { font: italic 400 1.9rem/1.1 var(--serif); letter-spacing: 0.01em; }
.logo-sub { font: 500 0.62rem/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-text); }

.site-nav {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 2.4rem;
  margin-top: 1.1rem;
  padding-block: 0.5rem;
  border-top: 1px solid var(--line-soft);
}
.site-nav a {
  padding: 0.55rem 0;
  border-bottom: 1px solid transparent;
  color: var(--fg);
  font: 500 0.78rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-text); border-bottom-color: var(--gold); }

.nav-check { display: none; position: absolute; width: 1px; height: 1px; opacity: 0; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--gold);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 1.15rem; height: 1px; background: var(--fg); }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-check:focus-visible + .nav-toggle { outline: 2px solid var(--gold-text); outline-offset: 3px; }

/* ---------- Рамки и арки для картинок ---------- */

.frame { position: relative; margin: 0; padding: 0.55rem; background: var(--surface); border: 1px solid var(--gold); }
.frame::after { content: ""; position: absolute; inset: -0.55rem; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.frame-in { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--blush); }
.frame-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-wide { aspect-ratio: 3 / 2; }
.arch, .arch .frame-in { border-radius: 999px 999px 0 0; }

/* ---------- Главная ---------- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-note { margin: 1.4rem 0 0; font: 400 0.9rem/1.5 var(--sans); color: var(--fg-muted); }
.hero-frame { width: min(100%, 26rem); margin-inline: auto; }

.facts-strip { background: var(--surface); border-block: 1px solid var(--line); }
.facts-strip-flat { margin-top: 1rem; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.facts li { padding: 1.7rem 1rem; text-align: center; border-left: 1px solid var(--line-soft); }
.facts li:first-child { border-left: 0; }
.fact-num { display: block; font: italic 400 2rem/1.1 var(--serif); color: var(--gold-text); }
.fact-text { display: block; margin-top: 0.4rem; font: 400 0.85rem/1.45 var(--sans); color: var(--fg-muted); }

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 1.6rem 1.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.card::before { content: ""; position: absolute; inset: 0.35rem; border: 1px solid var(--line-soft); pointer-events: none; }
.card h3 { margin: 0.4rem 0 0.6rem; font-size: 1.45rem; }
.card > p:not([class]) { font-size: 1rem; color: var(--fg-muted); }
.card-num { margin: 0; font: italic 400 1.5rem/1 var(--serif); color: var(--gold-text); }
.card-price { margin-top: auto; margin-bottom: 0.4rem; font: italic 400 1.3rem/1.3 var(--serif); color: var(--fg); }
.card-link { margin: 0; font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.card-title { margin: 0 0 0.8rem; font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.contact-value { margin: 0 0 0.8rem; font: italic 400 1.3rem/1.35 var(--serif); overflow-wrap: anywhere; }
.contact-value a { color: var(--fg); }

/* Портфолио */
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 3.25rem 2.5rem; }
.wcard { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.wcard .frame { margin: 0.55rem 0.55rem 0; }
.wcard-season { margin: 0; font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.wcard-couple { margin: 0.25rem 0 0.6rem; font: italic 400 1.8rem/1.2 var(--serif); }
.wcard-note { font-size: 1rem; color: var(--fg-muted); }
.wcard-facts { margin: 1rem 0 0; border-top: 1px solid var(--line); }
.wcard-facts div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line-soft); font: 400 0.9rem/1.45 var(--sans); }
.wcard-facts dt { padding-top: 0.15rem; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.wcard-facts dd { margin: 0; }

/* Как мы работаем (главная) */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.mini-stages { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--gold); }
.mini-stages li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.mini-when { font: italic 400 1.15rem/1.3 var(--serif); color: var(--gold-text); }
.mini-title { font-size: 1.1rem; line-height: 1.4; }

/* Отзывы */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 2.25rem; }
.quote { margin: 0; padding: 1.5rem 1rem 0; border-top: 1px solid var(--gold); text-align: center; }
.quote::before { content: "\00ab"; display: block; margin-bottom: 0.4rem; font: 3rem/1 var(--serif); color: var(--gold); }
.quote p { margin: 0 0 1.25rem; font: italic 400 1.2rem/1.6 var(--serif); }
.quote footer { font: 400 0.85rem/1.5 var(--sans); color: var(--fg-muted); }
.quote cite { display: block; margin-bottom: 0.2rem; font-style: normal; font-weight: 600; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }

/* ---------- Внутренние страницы ---------- */

.page-hero { padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
.page-hero-grid .frame { width: min(100%, 22rem); margin-inline: auto; }
.page-hero-grid.is-solo { grid-template-columns: minmax(0, 1fr); width: min(100% - 2.5rem, 50rem); text-align: center; }
.page-hero-grid.is-solo .lead { margin-inline: auto; }

.crumbs { margin: 0 0 1rem; font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--gold); }

/* Услуги */
.svc-list { border-top: 1px solid var(--gold); }
.svc { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 15rem; gap: 2rem; padding: 2.75rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.svc-num { margin: 0; font: italic 400 2.6rem/1 var(--serif); color: var(--gold-text); }
.svc h2 { margin-bottom: 0.3rem; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.svc-tagline { margin: 0 0 0.6rem; font: italic 400 1.2rem/1.5 var(--serif); }
.svc-audience { margin: 0 0 1rem; font-size: 1rem; color: var(--fg-muted); }
.svc-side { padding-left: 1.75rem; border-left: 1px solid var(--line); align-self: start; }
.svc-price { margin: 0; font: italic 400 1.9rem/1.15 var(--serif); }
.svc-term { margin: 0.5rem 0 1.3rem; font: 400 0.85rem/1.5 var(--sans); color: var(--fg-muted); }

.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 0.3rem 0 0.3rem 1.5rem; font-size: 1rem; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.85rem; width: 0.4rem; height: 0.4rem; border: 1px solid var(--gold); transform: rotate(45deg); }

.table-scroll { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
.price-table { width: 100%; min-width: 34rem; border-collapse: collapse; font: 400 0.95rem/1.5 var(--sans); }
.price-table th, .price-table td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table thead th { border-bottom: 1px solid var(--gold); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.price-table tbody th { font: 400 1.1rem/1.4 var(--serif); }
.price-table .num { text-align: right; white-space: nowrap; font: italic 400 1.15rem/1.4 var(--serif); }
.price-table thead .num { font: 600 0.7rem/1.5 var(--sans); }
.table-scroll:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }

/* Вопросы и ответы */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--gold); }
.faq summary { position: relative; padding: 1.15rem 2.25rem 1.15rem 0; list-style: none; cursor: pointer; font: 400 1.2rem/1.4 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.35rem; top: 1rem; font-size: 1.6rem; line-height: 1; color: var(--gold-text); }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 1.3rem; font-size: 1rem; color: var(--fg-muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Этапы подготовки */
.timeline { position: relative; max-width: 62rem; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 12.5rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--gold); }
.stage { position: relative; display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 3rem; padding-bottom: 3.25rem; }
.stage::before { content: ""; position: absolute; left: 12.5rem; top: 0.65rem; width: 0.7rem; height: 0.7rem; background: var(--bg); border: 1px solid var(--gold); transform: translateX(-50%) rotate(45deg); }
.stage:last-child { padding-bottom: 0; }
.stage:last-child::before { background: var(--gold); }
.stage-when { margin: 0; font: italic 400 1.5rem/1.3 var(--serif); color: var(--gold-text); text-align: right; }
.stage-title { margin-bottom: 0.5rem; font-size: 1.7rem; }
.stage-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.3rem; padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line-soft); }
.stage-cols h3 { margin: 0 0 0.4rem; font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); }

/* Команда */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem; }
.person { text-align: center; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.3rem;
  background: var(--blush);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--line);
  font: italic 400 1.9rem/1 var(--serif);
  color: var(--gold-text);
}
.person h3 { margin: 0; font-size: 1.35rem; }
.person-role { margin: 0.35rem 0 0.8rem; font: 600 0.7rem/1.5 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.person p:last-child { margin: 0; font-size: 1rem; color: var(--fg-muted); }

/* Финальный призыв */
.cta { position: relative; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem); background: var(--blush); border: 1px solid var(--gold); text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0.5rem; border: 1px solid var(--blush-deep); pointer-events: none; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.cta p { max-width: 36rem; margin-inline: auto; color: var(--fg-muted); }
.cta .orn { margin-top: 0; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.6rem; }

/* ---------- Журнал ---------- */

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.chip { display: inline-block; padding: 0.5rem 1.05rem; border: 1px solid var(--line); color: var(--fg); font: 600 0.7rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.chip:hover, .chip.is-active { background: var(--gold-text); border-color: var(--gold-text); color: var(--on-gold); }

.entries { display: grid; gap: 2.75rem; }
.entry { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.75rem; align-items: center; padding-bottom: 2.75rem; border-bottom: 1px solid var(--line); }
.entries > .entry:last-child { border-bottom: 0; padding-bottom: 0; }
.entry-cover { position: relative; display: block; margin: 5px; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--gold); outline: 1px solid var(--line); outline-offset: 4px; background: var(--blush); }
.entry-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entry-meta { margin: 0 0 0.5rem; font: 600 0.7rem/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.entry-meta a { color: var(--gold-text); text-decoration: none; }
.entry-meta a:hover { text-decoration: underline; }
.entry-title { margin: 0 0 0.5rem; font-size: 1.5rem; line-height: 1.25; }
.entry-title a { color: var(--fg); text-decoration: none; }
.entry-title a:hover { color: var(--gold-text); text-decoration: underline; }
.entry-text { margin: 0; font-size: 1rem; color: var(--fg-muted); }

.entries-grid { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 2.25rem; }
.entries-grid .entry { grid-template-columns: minmax(0, 1fr); align-items: start; padding-bottom: 0; border-bottom: 0; gap: 1.25rem; }

.post-meta { margin: 0 0 1rem; font: 400 0.85rem/1.6 var(--sans); letter-spacing: 0.04em; color: var(--fg-muted); }
.post-meta a { color: var(--gold-text); }
.post .page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.post-cover { margin: 1.25rem 0.55rem 3.25rem; }

.prose { max-width: 38rem; margin-inline: auto; }
.prose > :first-child { margin-top: 0; }
.prose-serif { font-size: 1.1875rem; line-height: 1.8; }
.prose h2 { margin: 2.4rem 0 0.7rem; font-size: 1.75rem; font-style: italic; }
.prose h3 { margin: 1.8rem 0 0.5rem; font-size: 1.35rem; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4em; padding-left: 0.2rem; }
.prose li::marker { color: var(--gold-text); }
.prose strong { font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2.5rem 0 1.25rem; }
.tag { padding: 0.3rem 0.85rem; border: 1px solid var(--line); color: var(--fg-muted); font: 400 0.82rem/1.4 var(--sans); text-decoration: none; }
.tag:hover { border-color: var(--gold-text); color: var(--gold-text); }
.byline { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font: 400 0.9rem/1.6 var(--sans); color: var(--fg-muted); }

.term-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--gold); }
.term-list li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.term-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--fg); text-decoration: none; }
.term-list a:hover .term-name { color: var(--gold-text); text-decoration: underline; }
.term-name { font-size: 1.5rem; line-height: 1.3; }
.term-count { font: 600 0.8rem/1 var(--sans); color: var(--gold-text); }
.term-list p { margin: 0.3rem 0 0; font-size: 1rem; color: var(--fg-muted); }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font: 600 0.74rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.pager-link { text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 0.15rem; }
.pager-info { color: var(--fg-muted); font-weight: 400; }

/* ---------- Страницы ошибок ---------- */

.error-page { padding-block: clamp(3.5rem, 9vw, 6.5rem); text-align: center; }
.error-code { margin: 0; font: italic 400 clamp(4rem, 15vw, 8rem)/1 var(--serif); color: var(--gold-text); }
.error-page .prose { margin-bottom: 1.5rem; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin: 1.8rem 0 0; }

/* 404: иллюстрация (рисуется линией в цвете сайта) */
.error-art {
  display: block;
  width: 190px;
  max-width: 62%;
  height: auto;
  margin: 0 auto 1.2rem;
  color: var(--gold-text);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.error-art .art-soft { fill: var(--blush); }
.error-art .art-paper { fill: var(--surface); }
.error-art .art-gold { stroke: var(--gold); }
.error-art .art-dash { stroke-dasharray: 3 4; }

/* ---------- Подвал ---------- */

.site-footer { margin-top: 3rem; padding-top: 3.25rem; background: var(--bg-alt); border-top: 1px solid var(--gold); font: 400 0.95rem/1.6 var(--sans); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2.75rem; }
.footer-brand .logo { align-items: flex-start; }
.footer-brand p { margin: 1rem 0 0; max-width: 20rem; color: var(--fg-muted); }
.footer-title { margin: 0 0 1rem; font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { color: var(--gold-text); text-decoration: underline; }
.site-footer .logo:hover { color: var(--fg); text-decoration: none; }
.footer-contact li { color: var(--fg-muted); overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 2rem; padding-block: 1.25rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--fg-muted); }
.footer-bottom p { margin: 0; }

/* ---------- Адаптив ---------- */

@media (min-width: 1000px) {
  .wgrid > .wcard:nth-child(3n + 2) { margin-top: 3.25rem; }
}

@media (max-width: 1000px) {
  .cards, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .svc-side { grid-column: 2; padding-left: 0; border-left: 0; }
}

@media (max-width: 860px) {
  .header-row { justify-content: space-between; padding-block: 0.9rem; }
  .logo { flex-direction: row; gap: 0.7rem; }
  .logo img { width: 30px; height: 30px; }
  .logo-name { font-size: 1.5rem; }
  .logo-sub { display: none; }
  .nav-check { display: block; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; margin-top: 0.9rem; padding: 0 0 0.75rem; }
  .site-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.8rem; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--line-soft); }
  .nav-check:checked ~ .site-nav { display: flex; }

  .hero-grid, .page-hero-grid, .process-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-frame { width: min(100%, 20rem); }
  .page-hero-grid .frame { width: min(100%, 18rem); }

  .cards-3 { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(odd) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
}

@media (max-width: 760px) {
  .timeline::before { left: 0.35rem; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; padding-left: 2rem; }
  .stage::before { left: 0.35rem; }
  .stage-when { text-align: left; }
  .stage-cols { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .topbar-text { display: none; }
  .topbar-row { justify-content: center; }
  .cards, .cards-3, .team { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .svc { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .svc-side { grid-column: auto; }
  .mini-stages li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .wcard-facts div { grid-template-columns: 5.2rem minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; }
  .pager { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
