/* ===== Базовые переменные ===== */
:root {
  --bg: #f7f6f2;
  --bg-alt: #eef0e9;
  --ink: #1e2a22;
  --ink-soft: #55645b;
  --green: #2f6b3f;
  --green-dark: #24512f;
  --moss: #7c9a6d;
  --clay: #c96f3b;
  --card: #ffffff;
  --line: #dcdfd4;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(30, 42, 34, 0.07);
  --shadow-hover: 0 10px 28px rgba(30, 42, 34, 0.13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

img { max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 780px; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }

a { color: var(--green); }

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 4px 14px rgba(201, 111, 59, 0.35);
}
.btn-primary:hover { background: #b55f2e; }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-small { padding: 8px 18px; font-size: 0.9rem; background: var(--clay); color: #fff !important; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

/* ===== Шапка ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(30, 42, 34, 0.92);
  backdrop-filter: blur(8px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.4vw, 28px);
  max-width: 1280px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-mark { color: var(--moss); letter-spacing: -3px; }
.nav-links {
  display: flex;
  align-items: center;
  /* пунктов много: на узких десктопах ужимаем отступы, а не переносим строки */
  gap: clamp(10px, 1vw, 18px);
  list-style: none;
}
.nav-links li { white-space: nowrap; }
.nav-links a {
  color: #e8ece5;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
}
.nav-links a:hover { color: #fff; }
.nav-links .btn-small { padding: 8px 14px; }
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: #1e2a22;
  color: #fff;
  overflow: hidden;
}
/* Фотофон + затемняющий градиент, чтобы текст оставался читаемым */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(22, 32, 26, 0.90) 0%, rgba(30, 55, 36, 0.74) 45%, rgba(47, 107, 63, 0.42) 100%);
  z-index: 1;
}
.hero-contours {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  z-index: 2;
}
.hero-contours svg { width: 100%; height: 100%; }
.hero-contours path {
  fill: none;
  stroke: #a9c39a;
  stroke-width: 1.5;
}
.hero-inner {
  position: relative;
  z-index: 3;
  padding: 90px 20px 70px;
  max-width: 820px;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--moss);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 1.1rem;
  color: #d5decf;
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 26px;
}
.hero-stats dt { font-size: 1.7rem; font-weight: 800; }
.hero-stats dd { color: #b9c5b2; font-size: 0.9rem; }

/* ===== Секции ===== */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 38px; }
.section-head p { color: var(--ink-soft); margin-top: 10px; }

/* ===== О клубе ===== */
.club-lead { max-width: 760px; }
.club-lead p { color: var(--ink-soft); }
.club-lead p + p { margin-top: 14px; }
.club-lead .club-strong {
  font-size: 1.1rem;
  color: var(--ink);
  border-left: 3px solid var(--moss);
  padding-left: 18px;
}

.creed {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.creed li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.creed-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 8px;
}
.creed h3 { font-size: 1.02rem; margin-bottom: 6px; }
.creed p { font-size: 0.92rem; color: var(--ink-soft); }

/* ===== Фильтры ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin-bottom: 30px;
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); }
.chip {
  border: 1.5px solid var(--line);
  background: var(--card);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ===== Карточки забегов ===== */
.race-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.race-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.race-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.race-card.is-hidden { display: none; }

/* Фото-баннер карточки с датой поверх снимка */
.race-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.race-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.race-card:hover .race-photo img { transform: scale(1.05); }

.race-date {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 62px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(22, 32, 26, 0.28);
}
.race-date .d { font-size: 1.2rem; font-weight: 800; color: var(--green-dark); }
.race-date .m { font-size: 0.75rem; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }

.race-body { padding: 20px 22px 22px; }
.race-body h3 { font-size: 1.08rem; margin: 8px 0 4px; }

/* Бейдж тематики забега */
.race-theme {
  display: inline-block;
  margin: 8px 0 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
  background: #eef3e9;
  border: 1px solid #dbe6d2;
  padding: 3px 11px;
  border-radius: 999px;
}

/* Прошедшие забеги — тот же вид карточки, но приглушённый */
.past-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.past-card .race-photo img { filter: saturate(0.85); }
.tag-done { background: #e6e8e3; color: #55645b; }
.past-result {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.race-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 8px; }
.race-desc { font-size: 0.92rem; margin-bottom: 12px; }

.race-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
}
.tag-open { background: #e2f0e2; color: var(--green-dark); }
.tag-soon { background: #fdeadd; color: #a35426; }
.tag-plan { background: #e8e9ee; color: #4b5265; }

.race-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.race-facts li {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 8px;
}

.empty-note { margin-top: 20px; color: var(--ink-soft); font-style: italic; }
.disclaimer { margin-top: 30px; font-size: 0.83rem; color: var(--ink-soft); }

/* ===== Локации ===== */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.loc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.loc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.loc-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 18px;
}
.loc-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.loc-card:hover .loc-photo img { transform: scale(1.05); }

.loc-card h3 { margin: 0 24px 8px; }
.loc-card p { font-size: 0.93rem; color: var(--ink-soft); margin: 0 24px 14px; }
.loc-badge {
  display: inline-block;
  margin-left: 24px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  background: #e2f0e2;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ===== Галерея ===== */
/* 3 колонки: крупный кадр 2×2 + пять обычных заполняют сетку без пустот */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}
.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ===== Шаги для новичков ===== */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 22px;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 26px 78px;
  position: relative;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 26px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin-bottom: 6px; font-size: 1.05rem; }
.steps p { font-size: 0.93rem; color: var(--ink-soft); }

/* ===== FAQ ===== */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--green);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 22px 18px; color: var(--ink-soft); font-size: 0.95rem; }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(160deg, #24512f, #1e2a22);
  color: #fff;
  padding: 70px 0;
}
.cta-inner { text-align: center; }
.cta p { color: #c9d4c3; margin: 10px 0 26px; }

/* ===== Подвал ===== */
.site-footer {
  background: #16201a;
  color: #aeb8ab;
  padding: 40px 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-inner strong { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #aeb8ab; }
.footer-links a:hover { color: #fff; }
.credits { font-size: 0.82rem; margin-top: 6px; opacity: 0.75; }
.credits a { color: #aeb8ab; }

/* ===== Кликабельные карточки ===== */
.race-card { cursor: pointer; }
.race-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clay);
}
.race-card:hover .race-more { text-decoration: underline; }

/* ===== Модалка ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(22, 32, 26, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal {
  position: relative;
  background: var(--bg);
  border-radius: 18px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: modal-in 0.22s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.32); }

.modal-head {
  position: relative;
  background: linear-gradient(160deg, #24512f, #1e2a22);
  color: #fff;
  padding: 30px 32px 24px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* Фото шапки + затемнение снизу под текст */
.modal-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.modal-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 32, 26, 0.95) 12%, rgba(22, 32, 26, 0.62) 55%, rgba(22, 32, 26, 0.25) 100%);
  z-index: 1;
}
.modal-head > .race-tag,
.modal-head > h2,
.modal-head > .modal-meta { position: relative; z-index: 2; }
.modal-head > .race-tag { align-self: flex-start; }
.modal-head h2 { margin: 10px 0 6px; font-size: 1.5rem; }
.modal-meta { color: #c9d4c3; font-size: 0.92rem; }

.modal-body { padding: 26px 32px 32px; }
.modal-theme {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  background: #eef3e9;
  border: 1px solid #dbe6d2;
  padding: 4px 13px;
  border-radius: 999px;
}
.modal-desc { margin-bottom: 22px; }

.modal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 26px;
}
.modal-columns h4 { margin-bottom: 8px; font-size: 0.95rem; }
.modal-list { list-style: none; }
.modal-list li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 5px 0 5px 22px;
  position: relative;
}
.modal-list li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: var(--green);
}

/* ===== Уведомление о регистрации по почте (?notice=pay) ===== */
.notice-overlay { align-items: center; }
.notice { max-width: 480px; }
.notice-close { color: var(--ink); background: rgba(22, 32, 26, 0.08); }
.notice-close:hover { background: rgba(22, 32, 26, 0.16); }
.notice-body { padding: 40px 32px 32px; text-align: center; }
.notice-icon { font-size: 2.4rem; line-height: 1; margin-bottom: 14px; }
.notice-body h2 { font-size: 1.35rem; margin-bottom: 12px; }
.notice-body p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 22px;
}
.notice-mail {
  display: inline-block;
  /* Длинный адрес не должен распирать модалку на узких экранах */
  max-width: 100%;
  word-break: break-word;
}
.notice-dismiss {
  display: block;
  margin: 16px auto 0;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}
.notice-dismiss:hover { color: var(--ink); }

/* ===== Форма регистрации ===== */
#regForm { border-top: 1px solid var(--line); padding-top: 22px; }
#regForm h3 { margin-bottom: 16px; }

.dist-picker { border: none; margin-bottom: 18px; }
.dist-picker legend {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.dist-options { display: flex; flex-wrap: wrap; gap: 10px; }
.dist-option input { position: absolute; opacity: 0; }
.dist-option span {
  display: inline-block;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dist-option span small {
  display: block;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.78rem;
}
.dist-option input:checked + span {
  border-color: var(--green);
  background: #e2f0e2;
  color: var(--green-dark);
}
.dist-option input:focus-visible + span { outline: 2px solid var(--green); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}
.form-grid input {
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--card);
}
.form-grid input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 107, 63, 0.15);
}
.form-grid input.is-invalid { border-color: #c0392b; }

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  cursor: pointer;
}
.agree input { margin-top: 3px; accent-color: var(--green); }

.form-error {
  color: #c0392b;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.btn-submit { width: 100%; text-align: center; }
.form-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}
.form-note.is-warning {
  color: #a35426;
  background: #fdeadd;
  border-radius: 8px;
  padding: 8px 12px;
}

/* ===== Шаг оплаты ===== */
.pay-step { border-top: 1px solid var(--line); padding-top: 22px; }
.pay-step h3 { margin-bottom: 16px; }
.pay-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.pay-summary dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.pay-summary dd { font-size: 0.95rem; font-weight: 600; }
.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}
.btn-pay { width: 100%; text-align: center; margin-bottom: 10px; }

/* ===== Выбор способа оплаты ===== */
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pay-method:hover:not(.is-disabled) {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.pay-method.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--bg-alt);
}
.pay-method-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
}
.pay-method-logo svg { display: block; width: 100%; height: 100%; }
.pay-method-text { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.pay-method-name { font-weight: 700; font-size: 1rem; }
.pay-method-note { font-size: 0.82rem; color: var(--ink-soft); }
.pay-method-arrow { font-size: 1.2rem; font-weight: 800; color: var(--clay); }

.pay-back {
  background: none;
  border: none;
  padding: 2px 0;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.pay-back:hover { color: var(--green); }
.pay-confirm-card {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--card);
}
.pay-confirm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.pay-confirm-logo {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
}
.pay-confirm-logo svg { display: block; width: 100%; height: 100%; }
.pay-confirm-card h4 { font-size: 1.05rem; }
.pay-confirm-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 16px; }

/* ===== Экран успеха ===== */
.reg-success {
  text-align: center;
  padding: 20px 0 6px;
}
.success-icon { font-size: 3rem; margin-bottom: 8px; }
.reg-success h3 { margin-bottom: 8px; }
.reg-success p { color: var(--ink-soft); max-width: 420px; margin: 0 auto 8px; }
.success-bib {
  font-size: 1.05rem;
  margin: 14px auto 20px !important;
  color: var(--ink) !important;
}

body.modal-open { overflow: hidden; }

/* ===== Страница «Мои заявки» ===== */
.nav-current { color: #fff !important; border-bottom: 2px solid var(--moss); padding-bottom: 3px; }
.page-head-section { min-height: 60vh; }

.entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.entry-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.entry-bib {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--green-dark);
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 8px;
}
.entry-card h3 { font-size: 1.08rem; margin-bottom: 14px; }
.entry-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 18px;
}
.entry-details dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.entry-details dd { font-size: 0.92rem; font-weight: 600; }
.btn-cancel {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: none;
  color: #a5432a;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-cancel:hover { border-color: #c0392b; background: #fdf0ed; }

.entries-empty { text-align: center; padding: 40px 0; }
.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.entries-empty h3 { margin-bottom: 8px; }
.entries-empty p { color: var(--ink-soft); margin-bottom: 22px; }

/* ===== Мобильная версия ===== */
@media (max-width: 1240px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(30, 42, 34, 0.98);
    padding: 10px 20px 20px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links .btn-small {
    display: inline-block;
    padding: 8px 18px;
    margin-top: 6px;
  }
}

@media (max-width: 760px) {
  .hero-inner { padding-top: 60px; padding-bottom: 50px; }
  .hero-stats { gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-item:first-child,
  .gallery-item:last-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .modal-overlay { padding: 12px; }
  .modal-head { padding: 24px 20px 20px; }
  .modal-body { padding: 20px; }
  .modal-columns { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
