:root {
  /* primitives */
  --porcelain: oklch(98.8% 0.006 85);
  --paper: oklch(99.7% 0.002 85);
  --ink: oklch(38% 0.105 248);
  --ink-soft: oklch(53% 0.03 245);
  --line: oklch(88% 0.035 78);
  --line-strong: oklch(65% 0.045 78);
  --gold: oklch(73% 0.105 78);
  --gold-strong: oklch(60% 0.11 72);
  --gold-soft: oklch(94% 0.025 80);
  --blue-soft: oklch(96% 0.018 242);
  --danger: oklch(53% 0.18 25);
  --success: oklch(50% 0.11 150);
  --shadow: 0 18px 48px oklch(32% 0.025 250 / 0.09);
  --shadow-soft: 0 8px 24px oklch(32% 0.025 250 / 0.06);
  --radius: 18px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, sans-serif;

  /* semantic */
  --bg: var(--porcelain);
  --surface: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --border: var(--line);
  --accent: var(--ink);

  /* components */
  --button-bg: var(--ink);
  --button-fg: var(--paper);
  --control-bg: oklch(100% 0 0 / 0.82);
  --control-border: var(--line-strong);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { color: inherit; }
.bare-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--accent) 82%, var(--paper));
  outline-offset: 3px;
}
#order:focus { outline: none; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid color-mix(in oklch, var(--line) 75%, transparent);
  background: oklch(99.7% 0.002 85 / 0.92);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 34px);
}
.brand {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  width: 46px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-copy { min-width: 0; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 27px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  /* Название не переносится, но и не выезжает на навигацию в узкой шапке */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tagline {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 26px);
}
.nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-color: var(--gold-strong); }
.nav-phone { display: none; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface) url("assets/icons/icon-menu.png") center / 27px 27px no-repeat;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  z-index: -1;
  content: "";
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(560px, 1.08fr);
  align-items: center;
  min-height: 600px;
  padding-block: 34px 72px;
}
.hero-copy {
  grid-column: 2;
  text-align: center;
  padding-inline: clamp(0px, 2vw, 26px);
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
}
.ornament img { width: 34px; height: 34px; object-fit: contain; }
.ornament::before,
.ornament::after {
  width: min(110px, 21vw);
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.72;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
}
h1 {
  margin: 18px auto 16px;
  max-width: 660px;
  font-size: clamp(40px, 3.8vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero-lead {
  max-width: 54ch;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 15px;
}
.hero-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}
.hero-type {
  min-width: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
}
.type-icon {
  width: 58px;
  height: 68px;
  margin: 0 auto 8px;
  padding: 12px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50% 50% 42% 42% / 34% 34% 62% 62%;
  background: oklch(100% 0 0 / 0.68);
}
.type-icon img { width: 100%; height: 100%; object-fit: contain; }

.order-section {
  position: relative;
  z-index: 5;
  margin-top: -32px;
}
.order-card {
  padding: 0 54px 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: oklch(99.7% 0.002 85 / 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-inline: -54px;
  border-bottom: 1px solid var(--border);
}
.tab {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-display);
  font-size: 18px;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.tab:last-child { border-right: 0; }
.tab img { width: 32px; height: 32px; object-fit: contain; }
.tab[aria-pressed="true"] {
  color: var(--accent);
  background: var(--blue-soft);
  box-shadow: inset 0 -3px 0 var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(250px, 0.84fr) minmax(230px, 0.76fr);
  gap: 44px;
  padding-top: 36px;
}
.order-side { display: contents; }
.order-card[data-service-type="Неусыпаемая псалтирь"] .form-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
}
.order-card[data-service-type="Неусыпаемая псалтирь"] .order-side {
  display: flex;
  grid-column: 2;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.order-card[data-service-type="Неусыпаемая псалтирь"] .summary {
  order: -1;
  min-height: 290px;
}
.field { margin-bottom: 24px; }
fieldset.field { margin-top: 0; }
.field-label,
.panel-title {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
}
.choice-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.choice {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  background: var(--control-bg);
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--gold-strong); }
.choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}
.text-control {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  color: var(--fg);
  border: 1px solid var(--control-border);
  border-radius: 8px;
  background: var(--control-bg);
}
textarea.text-control {
  min-height: 136px;
  resize: vertical;
}
.field-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.01em;
}
.scale-column { min-width: 0; }
.scale-options { display: grid; gap: 12px; }
.scale-option {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--control-border);
  border-radius: 9px;
  background: var(--control-bg);
  cursor: pointer;
}
.scale-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.scale-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.scale-option img { width: 38px; height: 38px; object-fit: contain; }
.scale-option strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
}
.scale-option small { color: var(--muted); font-size: 12px; }
.summary {
  min-height: 290px;
  padding: 24px;
  border-radius: 14px;
  background: color-mix(in oklch, var(--gold-soft) 72%, var(--surface));
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid color-mix(in oklch, var(--gold) 28%, transparent);
}
.summary-row strong { color: var(--fg); font-size: 15px; }
.summary-total {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 17px;
}
.summary-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.submit-wrap {
  margin-top: 18px;
}
.submit {
  position: relative;
  width: 100%;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  overflow: hidden;
  color: var(--button-fg);
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--button-bg);
  box-shadow: 0 10px 22px oklch(38% 0.105 248 / 0.2), inset 0 0 0 1px oklch(86% 0.12 85 / 0.38);
  font-family: var(--font-display);
  font-size: 24px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 180ms,
    background-color 200ms, color 200ms, border-color 200ms;
}
/* Золотой блик пробегает по готовой к отправке кнопке */
.submit::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    104deg,
    transparent 38%,
    oklch(86% 0.12 85 / 0.4) 50%,
    transparent 62%
  );
  transform: translateX(-100%);
  animation: submit-sheen 4.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes submit-sheen {
  0%, 62% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.submit > * { position: relative; }
.submit:hover { transform: translateY(-2px); box-shadow: 0 14px 28px oklch(38% 0.105 248 / 0.24), inset 0 0 0 1px oklch(86% 0.12 85 / 0.55); }
.submit:active { transform: translateY(1px); }
.submit:disabled { cursor: wait; opacity: 0.68; transform: none; }
/* Форма не заполнена: кнопка приглушена, перелив выключен */
.submit[aria-disabled="true"] {
  color: oklch(46% 0.02 250);
  border-color: var(--control-border);
  background: oklch(88% 0.008 250);
  box-shadow: none;
  cursor: not-allowed;
}
.submit[aria-disabled="true"]::before { animation: none; opacity: 0; }
.submit[aria-disabled="true"]:hover,
.submit[aria-disabled="true"]:active { transform: none; box-shadow: none; }
.submit[aria-disabled="true"] img { opacity: 0.45; }
.submit img { width: 30px; height: 30px; object-fit: contain; }
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.secure-note img { width: 15px; height: 15px; object-fit: contain; }
.repeat-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 0;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.repeat-dialog::backdrop {
  background: color-mix(in oklch, var(--fg) 42%, transparent);
  backdrop-filter: blur(4px);
}
.repeat-dialog-form { padding: 28px; }
.repeat-dialog h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.repeat-dialog-copy {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.repeat-dialog fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.repeat-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.repeat-choice {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--control-border);
  border-radius: 9px;
  background: var(--control-bg);
  cursor: pointer;
}
.repeat-choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.repeat-choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}
.repeat-disclosure {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.repeat-actions {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 10px;
  margin-top: 22px;
}
.repeat-actions button {
  min-height: 50px;
  padding: 11px 16px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}
.repeat-back {
  color: var(--fg);
  background: var(--surface);
}
.repeat-confirm {
  color: var(--button-fg);
  border-color: var(--button-bg);
  background: var(--button-bg);
  font-weight: 600;
}
.repeat-actions button:active {
  transform: translateY(1px);
}
.error {
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 12px;
}
.success-message {
  display: none;
  grid-column: 1 / -1;
  padding: 18px;
  text-align: center;
  color: var(--success);
  border: 1px solid color-mix(in oklch, var(--success) 32%, var(--border));
  border-radius: 10px;
  background: color-mix(in oklch, var(--success) 6%, var(--surface));
}
.success-message.is-visible { display: block; }

.section { padding-block: 54px; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 30px;
  text-align: center;
}
.section-heading::before,
.section-heading::after {
  width: 54px;
  height: 1px;
  content: "";
  background: var(--gold);
}
.section-heading h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-soft);
}
.service-card.is-active {
  border-color: var(--gold-strong);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--gold-strong);
  transform: translateY(-4px);
}
.service-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  font-size: 21px;
  line-height: 1.1;
}
.service-card h3 img { width: 38px; height: 38px; flex: 0 0 auto; object-fit: contain; }
.service-card > p { min-height: 48px; color: var(--muted); font-size: 13px; }
.service-card strong {
  display: block;
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
}
.service-card ul {
  min-height: 110px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}
.service-card li {
  position: relative;
  padding: 5px 0 5px 18px;
}
.service-card li::before {
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  content: "";
  background: url("assets/icons/icon-check.png") center / contain no-repeat;
}
.price-panel {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(110px, 0.6fr) minmax(180px, 0.8fr);
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
}
.price-row h3 { font-size: 19px; }
.price-row p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.price-value {
  font-family: var(--font-display);
  font-size: 23px;
  text-align: right;
  white-space: nowrap;
}
.price-scale { color: var(--muted); font-size: 13px; text-align: right; }
.price-note {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.temple-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.temple-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.temple-card img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}
.temple-card-copy {
  min-width: 0;
  padding: 15px 16px;
}
.temple-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
}
.temple-card p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.temple-card address {
  font-style: normal;
  font-size: 12px;
  line-height: 1.4;
}
.temple-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--control-border);
  border-radius: 10px;
  background: color-mix(in oklch, var(--gold-soft) 22%, var(--surface));
  font-family: var(--font-display);
  font-size: 17px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  max-width: 1040px;
  margin: 0 auto;
}
.step {
  position: relative;
  text-align: center;
}
.step:not(:last-child)::after {
  position: absolute;
  top: 42px;
  left: calc(50% + 56px);
  width: calc(100% - 78px);
  content: "";
  border-top: 1px dashed var(--gold);
}
.step-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--accent);
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--surface);
}
.step-icon img { width: 54px; height: 54px; object-fit: contain; }
.step-copy {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  text-align: left;
}
.step-number {
  font-family: var(--font-display);
  font-size: 22px;
}
.step h3 { font-size: 17px; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.faq-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}
.faq-column { display: grid; gap: 8px; align-content: start; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 4px 14px oklch(32% 0.025 250 / 0.035);
}
.faq-question {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--font-display);
  font-size: 15px;
  cursor: pointer;
  letter-spacing: 0;
}
.faq-question img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
  transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
.faq-question[aria-expanded="true"] img { transform: rotate(180deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  opacity: 0;
  transition: grid-template-rows 200ms cubic-bezier(0.23, 1, 0.32, 1), opacity 140ms, visibility 0s 200ms;
}
.faq-answer > div { overflow: hidden; }
.faq-question[aria-expanded="true"] + .faq-answer {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.faq-answer-content {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 13px;
}
.faq-answer-content ul { margin: 8px 0; padding-left: 20px; }

/* Страница документов: та же система, узкая колонка для длинного чтения */
.doc-page { padding-block: 48px 64px; }
.doc-head {
  max-width: 70ch;
  margin-bottom: 40px;
}
.doc-head h1 {
  margin: 0 0 12px;
  max-width: none;
  font-size: clamp(32px, 4vw, 46px);
}
.doc-head p { margin: 0; color: var(--muted); font-size: 15px; }
.doc-block {
  max-width: 78ch;
  margin-bottom: 44px;
  padding: 32px 36px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.doc-block h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
}
.doc-block h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}
.doc-block p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.doc-block ul,
.doc-block ol {
  margin: 0 0 12px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.6;
}
.doc-block li { margin-bottom: 8px; }
.doc-requisites {
  padding: 16px 18px;
  border-radius: 10px;
  background: color-mix(in oklch, var(--gold-soft) 44%, var(--surface));
  font-size: 13px;
}
.doc-figure-note { margin-top: 16px; color: var(--muted); font-size: 13px; }

.hero-proof {
  display: grid;
  gap: 7px;
  max-width: 640px;
  margin: 0 auto 22px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.hero-proof li {
  position: relative;
  padding: 3px 0 3px 27px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.hero-proof li::before {
  position: absolute;
  left: 0;
  top: 4px;
  width: 17px;
  height: 17px;
  content: "";
  background: url("assets/icons/icon-check.png") center / contain no-repeat;
}
.hero-proof strong { color: var(--fg); font-weight: 600; }

.consent-field { margin-bottom: 6px; }
.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 11px;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}
.consent:has(input:checked) { border-color: var(--gold-strong); }
.consent input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
}
.consent a { color: var(--fg); text-underline-offset: 3px; }

.donation-grid {
  display: grid;
  max-width: 720px;
  margin-inline: auto;
}
.donation-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.donation-card h3 { margin-bottom: 18px; font-size: 23px; line-height: 1.15; }
.donation-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.blessing-quote {
  margin: 0;
  padding: 18px 20px;
  border-left: 2px solid var(--gold-strong);
  background: color-mix(in oklch, var(--gold-soft) 46%, var(--surface));
  border-radius: 0 10px 10px 0;
}
.blessing-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.4;
}
.blessing-quote footer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.text-link {
  font-family: var(--font-display);
  font-size: 15px;
  text-underline-offset: 4px;
}

.temple-caption {
  max-width: 780px;
  margin: 20px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.review-card {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
/* Лёгкий сдвиг средней карточки: ряд не читается как шаблонная тройка */
.review-card:nth-child(2) { margin-top: 26px; }
.review-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.review-card footer {
  display: grid;
  gap: 3px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.review-card strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
}
.review-card span { color: var(--muted); font-size: 12px; }

.limits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.limits-card {
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in oklch, var(--surface) 94%, transparent);
}
.limits-card h3 { margin-bottom: 14px; font-size: 21px; }
.limits-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.limits-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.limits-card li::before {
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  content: "";
  border: 1px solid var(--gold-strong);
  border-radius: 50%;
}
.limits-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 38px 0;
  border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--gold-soft) 28%, var(--surface));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: 28px;
  align-items: center;
}
.footer-blessing {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
}
.footer-blessing img { width: 52px; height: 64px; object-fit: contain; }
.footer-blessing p { margin: 0; }
.footer-blessing span { color: var(--muted); font-size: 14px; }
.footer-links { display: grid; gap: 8px; font-size: 12px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contacts {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.4;
}
.footer-contacts a {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 19px;
  text-decoration: none;
}
.footer-contacts a:hover { text-decoration: underline; }
.footer-contacts a + span { margin-bottom: 8px; }
.footer-legal {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in oklch, var(--gold) 34%, transparent);
}
.legal-requisites {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 12px 0;
  font-size: 12px;
}
.legal-links a { text-decoration: underline; text-underline-offset: 3px; }
.legal-disclaimer {
  max-width: 88ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cookie-bar {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.cookie-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.cookie-accept {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 10px 24px;
  color: var(--button-fg);
  border: 1px solid var(--button-bg);
  border-radius: 8px;
  background: var(--button-bg);
  font-family: var(--font-display);
  font-size: 16px;
  cursor: pointer;
}
.cookie-accept:active { transform: translateY(1px); }

@media (max-width: 1120px) {
  .nav {
    position: absolute;
    inset: 100% 20px auto;
    display: grid;
    gap: 0;
    padding: 8px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: opacity 140ms, transform 200ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s 200ms;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .nav a { min-height: 44px; display: flex; align-items: center; padding: 8px 12px; }
  .menu-toggle { display: block; }
  /* Телефон живёт только в выпадающем меню */
  .nav-phone {
    display: flex;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--fg);
  }
  .hero { min-height: 760px; }
  .hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(to bottom, oklch(100% 0 0 / 0.08), oklch(99% 0.003 85 / 0.92) 67%);
  }
  .hero-art { object-position: 34% top; }
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: end;
    min-height: 740px;
    padding-block: 300px 74px;
  }
  .hero-copy { grid-column: 1; }
  .order-section { margin-top: -24px; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .order-card[data-service-type="Неусыпаемая псалтирь"] .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .summary { min-height: 100%; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .step:not(:last-child)::after { display: none; }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-card:nth-child(2) { margin-top: 0; }
  .limits-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 560px); }
  .header-inner { min-height: 72px; }
  .brand-mark { width: 34px; height: 44px; }
  .brand-name { font-size: clamp(19px, 5.6vw, 25px); white-space: normal; }
  .brand-tagline { display: none; }
  .hero { min-height: 790px; }
  .hero-art {
    width: 145%;
    max-width: none;
    height: 60%;
    object-position: 25% top;
  }
  .hero-inner { min-height: 780px; padding-block: 268px 44px; }
  .hero-copy { padding: 0; }
  .ornament { font-size: 16px; }
  h1 { margin-top: 12px; font-size: clamp(33px, 9vw, 43px); }
  .hero-types { grid-template-columns: repeat(2, 1fr); max-width: 360px; gap: 14px 20px; }
  .hero-type { font-size: 15px; }
  .type-icon { width: 48px; height: 56px; padding: 10px; }
  .order-section { margin-top: 0; }
  .order-card { padding: 0 16px 20px; border-radius: 18px; }
  .tabs {
    grid-template-columns: repeat(2, 1fr);
    margin-inline: -16px;
  }
  .tab { min-height: 60px; font-size: 15px; }
  .tab:nth-child(1),
  .tab:nth-child(2) { border-bottom: 1px solid var(--border); }
  .tab:nth-child(2) { border-right: 0; }
  .form-grid { grid-template-columns: 1fr; gap: 10px; padding-top: 24px; }
  .order-card[data-service-type="Неусыпаемая псалтирь"] .form-grid {
    grid-template-columns: 1fr;
  }
  .order-card[data-service-type="Неусыпаемая псалтирь"] .order-side { grid-column: 1; }
  .order-card[data-service-type="Неусыпаемая псалтирь"] .summary { min-height: 0; }
  .summary { min-height: 0; }
  .submit { min-height: 58px; font-size: 21px; }
  .repeat-dialog-form { padding: 22px 18px; }
  .repeat-choices,
  .repeat-actions { grid-template-columns: 1fr; }
  .section { padding-block: 42px; }
  .section-heading { gap: 8px; margin-bottom: 22px; }
  .section-heading::before,
  .section-heading::after { width: 26px; overflow: hidden; }
  .section-heading h2 { font-size: 28px; }
  .service-cards { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 20px; }
  .service-card > p,
  .service-card ul { min-height: 0; }
  .service-card.is-active { transform: none; }
  .price-row {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }
  .price-scale { grid-column: 1 / -1; text-align: left; }
  .temple-grid { grid-template-columns: 1fr; }
  .temple-card { grid-template-columns: 110px minmax(0, 1fr); }
  .temple-card img { min-height: 124px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 18px;
    text-align: left;
  }
  .step:not(:last-child)::after {
    top: 79px;
    left: 35px;
    width: 1px;
    height: 24px;
    border-top: 0;
    border-left: 1px dashed var(--gold);
  }
  .step-icon { width: 72px; height: 72px; margin: 0; }
  .step-icon img { width: 44px; height: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-blessing,
  .footer-contacts { grid-column: 1 / -1; }
  .hero-proof { gap: 5px; margin-bottom: 18px; }
  .hero-proof li { font-size: 12px; }
  .donation-card { padding: 22px 20px; }
  .review-grid { grid-template-columns: 1fr; }
  .limits-card { padding: 22px 20px; }
  .cookie-bar {
    inset: auto 12px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
  .legal-links { gap: 6px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  /* Зацикленный блик снимаем полностью, а не ускоряем до мерцания */
  .submit::before { animation: none !important; opacity: 0; }
}
