@font-face{font-family:"Noto Sans";font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/noto-sans-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Noto Sans";font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/noto-sans-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Noto Sans";font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/noto-sans-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Noto Sans Armenian";font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/noto-sans-armenian.woff2) format("woff2");unicode-range:U+0308,U+0530-058F,U+2010,U+2024,U+25CC,U+FB13-FB17}
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1b1a19;
  --muted: #6b665e;
  --line: #e3ddd3;
  --accent: #9a2c1f;
  --button-bg: #1b1a19;
  --button-text: #faf8f5;
  --focus: #2f5bd3;
  --todo-bg: #ffe58a;
  --todo-text: #1b1a19;
  --error: #b3261e;
  --ok: #1e6b3a;
  --radius: 10px;
  --wrap: 44rem;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151412;
    --surface: #1e1d1a;
    --text: #efebe4;
    --muted: #a39d93;
    --line: #34312c;
    --accent: #e8927c;
    --button-bg: #efebe4;
    --button-text: #151412;
    --focus: #8fb0ff;
    --error: #ff8a80;
    --ok: #7fd49c;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #151412;
  --surface: #1e1d1a;
  --text: #efebe4;
  --muted: #a39d93;
  --line: #34312c;
  --accent: #e8927c;
  --button-bg: #efebe4;
  --button-text: #151412;
  --focus: #8fb0ff;
  --error: #ff8a80;
  --ok: #7fd49c;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 750; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.0625rem; font-weight: 650; }
p, ul, dl { margin: 0.75em 0 0; }
ul { padding-left: 1.25em; }
li + li { margin-top: 0.35em; }

/* Шапка */
.site-header { border-bottom: 1px solid var(--line); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}
.brand {
  color: var(--text);
  font-weight: 750;
  font-size: 1.0625rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.lang-switch { display: flex; gap: 0.25rem; font-size: 0.9375rem; }
.lang-switch a, .lang-switch span {
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
}
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--text); background: var(--surface); }
.lang-switch span { color: var(--text); font-weight: 650; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding-bottom: 0.9rem;
  font-size: 0.9375rem;
}
.section-nav a { color: var(--muted); text-decoration: none; }
.section-nav a:hover { color: var(--text); }

/* Контент */
main.wrap { padding-top: 2.5rem; padding-bottom: 4rem; }
main > h1 + * { margin-top: 0.75rem; }
main > h2 { margin-top: 2.25rem; }

section { padding-top: 2rem; }
section + section { margin-top: 2rem; border-top: 1px solid var(--line); }
.hero { padding-top: 1rem; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 36rem; }
.meta { color: var(--muted); font-size: 0.9375rem; }
.note { color: var(--muted); font-size: 0.9375rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--button-bg);
  color: var(--button-text);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { opacity: 0.88; }
.button[disabled] { opacity: 0.55; cursor: progress; }
.button-small { min-height: 2.25rem; padding: 0.35rem 0.9rem; font-size: 0.9375rem; }
.button-quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

/* Цены */
.prices { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.price-info p { margin-top: 0.2rem; color: var(--muted); font-size: 0.9375rem; }
.price-buy { display: flex; align-items: center; gap: 1rem; white-space: nowrap; }
.price { font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.cur { font-weight: 500; color: var(--muted); font-size: 0.875rem; }

@media (max-width: 560px) {
  .price-row { grid-template-columns: 1fr; }
  .price-buy { justify-content: space-between; }
}

/* Контакты */
.contacts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; }
.contacts dt { color: var(--muted); }
.contacts dd { margin: 0; }
@media (max-width: 560px) {
  .contacts { grid-template-columns: 1fr; gap: 0; }
  .contacts dd { margin-bottom: 0.75rem; }
}

/* Незаполненные реквизиты */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0 0.3em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Форма оплаты */
.pay-form { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.products { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.products legend { font-weight: 650; margin-bottom: 0.5rem; padding: 0; }
.product-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.product-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--text); }
.product-option.locked-out { display: none; }
.product-option input { margin: 0.3rem 0 0; width: 1.1rem; height: 1.1rem; accent-color: var(--text); }
.po-body { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; }
.po-name { font-weight: 650; }
.po-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.po-desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.9375rem; }

.field { display: grid; gap: 0.3rem; }
.field-label { font-weight: 650; }
.field small { color: var(--muted); font-size: 0.875rem; }
.field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field input:focus-visible { outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--error); }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.9375rem; }
.consent input { margin: 0.2rem 0 0; width: 1.1rem; height: 1.1rem; accent-color: var(--text); }

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1.125rem;
}
.total strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }

.pay-form .button { width: 100%; }
.secure-note { color: var(--muted); font-size: 0.875rem; margin: 0; }
.notice { margin: 0; padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.error { margin: 0; color: var(--error); font-weight: 600; }

.status { margin-top: 1.25rem; font-size: 1.125rem; }
.status[data-state="paid"] { color: var(--ok); }
.status[data-state="failed"] { color: var(--error); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Логотипы карт — на светлой плашке в обеих темах, как требуют правила брендов */
.cards { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.card-logo {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e3ddd3;
}
.card-logo img { height: 1.5rem; width: auto; display: block; }

/* Подвал */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-footer .wrap { display: grid; gap: 1rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.legal-links a { color: var(--text); }
.cards-label { margin-right: 0.25rem; }
.requisites { margin: 0; }
