/* Шрифт как на majestic-rp.ru: Proxima Nova (платный, подключается Adobe Fonts kit или своими файлами с веб-лицензией).
   Пока лицензии нет, работает бесплатный аналог Montserrat (SIL OFL 1.1, assets/fonts). */
@font-face {
  font-family: "URP Sans";
  src: url("../assets/fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "URP Sans";
  src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "URP Sans";
  src: url("../assets/fonts/montserrat-cyrillic-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "URP Sans";
  src: url("../assets/fonts/montserrat-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  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;
}
:root {
  --font-heading: "Proxima Nova", "proxima-nova", "URP Sans", Arial, sans-serif;
  --font-text: "Proxima Nova", "proxima-nova", "URP Sans", Arial, sans-serif;
  --ink: #0b0a0e;
  --paper: #faf9fc;
  --purple: #d189fc;
  --muted: #b6b0bd;
  --edge: #353139;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--font-text); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(90%, 1480px); margin-inline: auto; }
.skip-link { position: absolute; top: -110px; left: 1rem; z-index: 10; background: var(--purple); color: #111; padding: 12px; }
.skip-link:focus { top: 4px; }
.site-head { background: var(--ink); }
.head-inner, .foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.head-inner { min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { display: block; }
.head-inner .brand { flex-direction: column; align-items: flex-start; gap: 2px; }
.head-inner .brand img { width: 110px; }
.brand-rp { color: #ddd7e2; font-size: .58rem; font-weight: 800; line-height: 1; letter-spacing: .3em; margin-left: 3px; }
.site-nav, .foot-links { display: flex; align-items: center; gap: clamp(17px, 2vw, 36px); }
.site-nav a { position: relative; padding: 13px 0; color: #cec9d0; font-size: .83rem; font-weight: 800; }
.site-nav a[aria-current] { color: var(--purple); }
.site-nav a::after { content: ''; height: 2px; background: var(--purple); position: absolute; bottom: 4px; left: 0; right: 0; transform: scaleX(0); transform-origin: left; }
.site-nav a[aria-current]::after { transform: scaleX(1); }
.download-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: #241e29; border: 1px solid #56405f; border-radius: 100px; padding: 10px 17px; font-size: .83rem; }

.download-link img { width: 18px; filter: brightness(0) invert(1); }
.site-foot { border-top: 1px solid var(--edge); padding: 34px 0; }
.footer-brand img { height: 30px; }
.footer-brand { font-weight: 800; letter-spacing: -.009em; }
.foot-links { gap: 16px; font-size: .86rem; }
.site-foot small { color: var(--muted); }
@media (max-width: 950px) {
  .head-inner, .foot-inner { gap: 15px; }
}
@media (max-width: 720px) {
  .head-inner { flex-wrap: wrap; min-height: 0; padding: 14px 0 7px; gap: 4px; }
  .head-inner .brand img { width: 90px; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 4px; }
  .site-nav a { font-size: .78rem; }
  .download-link { padding: 8px 14px; }
  .foot-inner, .foot-links { flex-wrap: wrap; }
  .foot-links { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; animation-duration: 0s !important; }
}

.site-foot {
  background: #100e13;
  padding: clamp(42px, 5vw, 78px) 0;
}
.footer-sections {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(115px, .67fr) minmax(225px, 1.1fr) minmax(165px, .8fr);
  gap: clamp(20px, 3vw, 56px);
}
.footer-identity .footer-brand {
  font-size: 1.18rem;
  gap: 12px;
}
.footer-identity .footer-brand img {
  width: 37px;
  height: 29px;
  object-fit: contain;
}
.footer-identity p, .footer-identity small {
  color: #a8a0ad;
  font-size: .84rem;
  line-height: 1.6;
}
.footer-identity p { margin: 12px 0 16px; }
.footer-column {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
}
.footer-column h2 {
  color: #fff;
  font-size: .95rem;
  line-height: 1.3;
  margin: 0 0 7px;
}
.footer-column a {
  color: #c0b8c6;
  font-size: .88rem;
  line-height: 1.5;
}

.footer-payment-state {
  margin: 10px 0 0;
  border-top: 1px solid var(--edge);
  padding-top: 10px;
  color: #b4a8ba;
  font-size: .8rem;
}
@media (max-width: 910px) {
  .footer-sections { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-sections { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 17px; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-identity p { display: inline; margin-right: 8px; }
  .footer-identity p br { display: none; }
  .footer-identity .footer-brand { display: flex; width: max-content; margin-bottom: 8px; }
  .footer-column a { overflow-wrap: anywhere; }
}
@media (max-width: 375px) {
  .footer-sections { grid-template-columns: 1fr; }
  .footer-identity { grid-column: auto; }
}

/* Кнопки в шапке: лаунчер и личный кабинет */
.head-actions { display: flex; align-items: center; gap: 8px; }
.cabinet-link { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 100px; background: var(--purple); color: #1c0e25; font-size: .83rem; font-weight: 800; }
.cabinet-link:hover { background: #ddaafd; }
@media (max-width: 720px) {
  .cabinet-link { padding: 8px 14px; }
  .head-actions .download-link { padding: 8px 11px; font-size: 0; gap: 0; }
}
