:root {
  --rp-blue: #0059A6;
  --rp-blue-dark: #013562;
  --rp-red: #E30613;
  --rp-black: #1E1E1E;
  --rp-ink: #0A0A0A;
  --rp-muted: #666;
  --rp-line: #E5E5E5;
  --rp-paper: #fff;
  --rp-font: "Segoe UI", "Helvetica Neue", ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.m-body {
  margin: 0;
  background: #f7f8fa;
  color: var(--rp-ink);
  font-family: var(--rp-font);
  color-scheme: light;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.m-wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.m-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--rp-line);
}
.m-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.m-logo img { height: 40px; width: auto; display: block; }
.m-nav-links { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.m-nav-links a:hover { color: var(--rp-blue); }
.m-lang { display: flex; align-items: center; gap: 8px; }
.m-lang form { display: inline; margin: 0; }
.m-lang button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: .45;
  line-height: 0;
}
.m-lang button img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.m-lang button:hover,
.m-lang button.is-active {
  opacity: 1;
  border-color: var(--rp-blue);
}
.m-footer .m-lang button:hover,
.m-footer .m-lang button.is-active { border-color: #fff; }
.m-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 8px;
}
.m-burger span { display: block; width: 22px; height: 2px; background: var(--rp-ink); }

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
}
.m-btn-primary { background: var(--rp-blue); color: #fff; }
.m-btn-primary:hover { background: var(--rp-blue-dark); }
.m-btn-light { background: #fff; color: var(--rp-blue); }
.m-btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.m-btn-wide { width: 100%; }

.m-hero {
  background: linear-gradient(135deg, var(--rp-blue) 0%, var(--rp-red) 100%);
  color: #fff;
  padding: 72px 0 80px;
}
.m-hero-short { padding: 40px 0 48px; }
.m-hero-inner { text-align: center; max-width: 760px; }
.m-hero-kicker { margin: 0 0 10px; opacity: .9; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.m-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.m-hero-lede { margin: 16px auto 0; max-width: 560px; font-size: 1.15rem; color: rgba(255,255,255,.9); }
.m-hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.m-section { padding: 72px 0; }
.m-section-head { text-align: center; margin-bottom: 36px; }
.m-section-head h2 { margin: 0 0 8px; font-size: 2rem; }
.m-section-head p, .m-login-copy p { color: var(--rp-muted); }

.m-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.m-card, .m-panel {
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  padding: 22px;
}
.m-card h3 { margin: 0 0 8px; }
.m-card p { margin: 0; color: var(--rp-muted); line-height: 1.45; }

.m-section-login { background: #fff; border-top: 1px solid var(--rp-line); }
.m-login-wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}
.m-login-copy h2 { margin: 0 0 8px; }

.m-form { display: grid; gap: 14px; }
.m-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.m-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--rp-ink);
}
.m-form input:focus { outline: 2px solid rgba(0, 89, 166, .25); border-color: var(--rp-blue); }
.m-form-note { margin: 0; text-align: center; color: var(--rp-muted); }
.m-form-note a { color: var(--rp-blue); font-weight: 600; }
.m-banner {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fde8e8;
  color: #B5000B;
}

.m-footer {
  background: var(--rp-black);
  color: #fff;
  padding: 48px 0 28px;
  margin-top: 0;
}
.m-footer a { color: rgba(255,255,255,.72); }
.m-footer a:hover { color: #fff; }
.m-footer-top { display: grid; grid-template-columns: 1.2fr 1.4fr; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.m-footer-logo { height: 72px; width: auto; display: block; margin-bottom: 12px; }
.m-footer-top p { color: rgba(255,255,255,.72); max-width: 360px; line-height: 1.5; }
.m-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.m-footer-title { margin: 0 0 10px; font-weight: 600; color: #fff; }
.m-footer-cols a { display: block; margin-bottom: 8px; }
.m-footer-end { padding-top: 20px; color: rgba(255,255,255,.72); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qr-video { width: 100%; border-radius: 12px; background: #000; margin-top: 12px; }
.is-hidden { display: none; }
.hint { color: var(--rp-muted); font-size: 14px; }

@media (max-width: 900px) {
  .m-grid, .m-login-wrap, .m-footer-top, .m-footer-cols { grid-template-columns: 1fr; }
  .m-burger { display: flex; }
  .m-nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--rp-line);
    align-items: stretch;
  }
  .m-nav-links.is-open { display: flex; }
  .m-nav-links .m-lang { margin-top: 8px; }
  .m-footer-end { flex-direction: column; align-items: flex-start; }
}
