/* Единые элементы интерфейса: шапка, подвал, главная-выбор.
   Подключается ПОСЛЕ страничных стилей, чтобы привести навигацию к одному виду. */
:root {
  --bg: #101014;
  --panel: #19191f;
  --muted: #a6a6b0;
  --text: #f7f7f8;
  --orange: #ff4b12;
  --pink: #f0008b;
  --line: #ffffff18;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #ffb18d; outline-offset: 3px; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: auto; }

/* ---------- Единая шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #101014e8;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .nav {
  width: min(1160px, calc(100% - 40px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  line-height: .9;
  flex: none;
}
.site-header .brand .logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.site-header .brand .bt { font-weight: 950; letter-spacing: -.8px; font-size: 20px; }
.site-header .brand .bt > span { color: var(--orange); }
.site-header .brand small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #aaa;
  font-weight: 700;
  text-transform: uppercase;
}
.site-header .switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff08;
  max-width: 100%;
}
.site-header .switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #c9c9cf;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.site-header .switch a:hover { color: #fff; background: #ffffff10; }
.site-header .switch a[aria-current="page"] {
  background: var(--orange);
  color: #140b05;
}
.site-header .nav-contact {
  font-size: 13px;
  font-weight: 700;
  color: #d6d6dc;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
}
.site-header .nav-contact:hover { color: #fff; }

/* ---------- Главная: выбор направления ---------- */
.choice-page { min-height: 100vh; display: flex; flex-direction: column; }
.choice-main {
  flex: 1;
  width: min(1240px, calc(100% - 40px));
  margin: auto;
  padding: clamp(28px, 5vh, 64px) 0 clamp(24px, 4vh, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.masthead { text-align: center; margin: 0 auto clamp(24px, 5vh, 60px); }
.masthead .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.masthead .brand-mark img {
  width: clamp(48px, 7vw, 68px);
  height: clamp(48px, 7vw, 68px);
  border-radius: 50%;
  object-fit: cover;
}
.masthead h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  letter-spacing: -2.5px;
  line-height: 1;
}
.masthead h1 span { color: var(--orange); }
.masthead p {
  margin: 12px 0 0;
  color: #b9b9c2;
  font-size: clamp(12px, 1.5vw, 15px);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  font-weight: 700;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 30px);
}
.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: clamp(280px, 52vh, 560px);
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(125deg, var(--orange), var(--pink)) border-box;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.choice-card::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -140px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff4b1233, transparent 68%);
  pointer-events: none;
}
.choice-card:nth-child(2)::before {
  background: radial-gradient(circle, #f0008b33, transparent 68%);
}
.choice-card:hover,
.choice-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px #ff7a3d66, 0 22px 70px #ff4b1226, 0 0 46px #f0008b26;
}
.choice-card .kicker {
  position: relative;
  color: #ffb18d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.choice-card h2 {
  position: relative;
  margin: 0;
  font-size: clamp(28px, 4.4vw, 52px);
  letter-spacing: -2px;
  line-height: 1.04;
}
.choice-card p {
  position: relative;
  margin: 10px 0 0;
  color: #c1c1ca;
  font-size: clamp(14px, 1.6vw, 17px);
  max-width: 34ch;
}
.choice-card .card-cta {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #ffffff0d;
  border: 1px solid #ffffff26;
  font-size: 14px;
  font-weight: 800;
}
.choice-card:hover .card-cta,
.choice-card:focus-visible .card-cta {
  background: linear-gradient(100deg, var(--orange), var(--pink));
  border-color: transparent;
  color: #fff;
}
.choice-card .card-cta span { font-size: 18px; line-height: 1; }

/* ---------- Единый подвал ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  color: #92929c;
  font-size: 13px;
  padding: 22px 0 28px;
}
.site-footer .footrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-contacts { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Утилиты вместо inline style (строгое CSP). */
.field-gap { margin-top: 14px; }
.hint-flush { margin: 0 !important; }
.lead-note { color: #ffb18d; font-weight: 800; }
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.file-meta { margin-top: 6px; color: var(--muted); font-size: 12px; }
.msg { display: block; margin-top: 4px; color: #ff9b7a; font-size: 12px; }
.retry { margin-top: 12px; min-height: 40px; padding: 8px 16px; }
.files img, .files audio, .files .fname { max-width: 140px; }
.files > * { position: relative; display: inline-block; margin: 0 8px 8px 0; vertical-align: top; }
.files .rm {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: var(--orange); color: #140b05; font-weight: 900; cursor: pointer;
}

/* Переключатель валюты перенесён из шапки в блок цен */
.currency-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #a6a6b0;
  font-size: 12px;
}
.currency-bar .cur button[aria-pressed="true"] { color: #101014; }

@media (max-width: 767px) {
  .site-header .nav { min-height: 62px; width: calc(100% - 24px); }
  .site-header .brand .logo { width: 38px; height: 38px; }
  .site-header .brand .bt { font-size: 16px; }
  .site-header .brand small { display: none; }
  .site-header .switch a { min-height: 44px; padding: 8px 12px; font-size: 12px; }
  .site-header .nav-contact { display: none; }
  .choice-main { width: calc(100% - 24px); padding: 18px 0 16px; }
  .masthead { margin-bottom: 18px; }
  .masthead .brand-mark img { width: 44px; height: 44px; }
  .masthead h1 { font-size: clamp(30px, 9vw, 44px); }
  .masthead p { font-size: 10px; letter-spacing: 1.6px; margin-top: 8px; }
  .choice-grid { grid-template-columns: 1fr; gap: 12px; }
  .choice-card { min-height: 31vh; padding: 20px; border-radius: 20px; gap: 10px; }
  .choice-card h2 { font-size: clamp(24px, 7vw, 34px); letter-spacing: -1px; }
  .choice-card p { font-size: 13px; margin-top: 4px; }
  .choice-card .card-cta { min-height: 44px; padding: 8px 16px; font-size: 13px; }
  .site-footer .footrow { flex-direction: column; align-items: flex-start; }
}
@media (max-height: 680px) and (min-width: 768px) {
  .choice-card { min-height: 46vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .choice-card, .choice-card .card-cta { transition: none; }
  .choice-card:hover, .choice-card:focus-visible { transform: none; }
}
