/* ===== Спортивный профиль москвича =====
   Отдельная тема в московском городском стиле: красный акцент,
   белые карточки на светло-сером фоне, крупная плотная типографика.
   Подключается ПОСЛЕ styles.css — шапка и подвал сайта не меняются. */

.mos {
  --mos-red: #ec1b2e;
  --mos-red-dark: #c2121f;
  --mos-ink: #16191d;
  --mos-ink-soft: #5b6570;
  --mos-bg: #f2f3f5;
  --mos-card: #ffffff;
  --mos-line: #e3e6ea;
  --mos-blue: #0a5dba;
  --mos-gold: #d9a441;
  --mos-r: 20px;
  --mos-shadow: 0 2px 12px rgba(22, 25, 29, 0.07);

  background: var(--mos-bg);
  color: var(--mos-ink);
  font-feature-settings: "tnum";
}

.mos h1, .mos h2, .mos h3, .mos h4 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.mos-section { padding: 56px 0; }
.mos-section-head { margin-bottom: 26px; }
.mos-section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.mos-section-head p { color: var(--mos-ink-soft); margin-top: 8px; max-width: 640px; }

/* ===== Кнопки в городском стиле (прямоугольные, радиус 10) ===== */
.mos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mos-btn-primary { background: var(--mos-red); color: #fff; }
.mos-btn-primary:hover { background: var(--mos-red-dark); }
.mos-btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.mos-btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.mos-btn-outline {
  border-color: var(--mos-line);
  background: var(--mos-card);
  color: var(--mos-ink);
}
.mos-btn-outline:hover { border-color: var(--mos-red); color: var(--mos-red); }
.mos-btn-sm { padding: 9px 16px; font-size: 0.88rem; border-radius: 8px; }
.mos-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ===== Шапка раздела ===== */
.mos-hero {
  position: relative;
  background: linear-gradient(105deg, #ec1b2e 0%, #c2121f 62%, #8f0d18 100%);
  color: #fff;
  overflow: hidden;
}
/* Силуэт башен — декоративная городская графика */
.mos-hero-skyline {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(46%, 560px);
  opacity: 0.18;
  pointer-events: none;
}
.mos-hero-skyline svg { display: block; width: 100%; height: auto; }
.mos-hero-inner {
  position: relative;
  z-index: 1;
  padding: 62px 20px 54px;
  max-width: 760px;
}
.mos-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}
.mos-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.mos-hero-sub {
  font-size: 1.08rem;
  color: #ffe3e5;
  max-width: 560px;
  margin-bottom: 28px;
}
.mos-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mos-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.mos-hero-stats dt { font-size: 1.6rem; font-weight: 800; }
.mos-hero-stats dd { font-size: 0.88rem; color: #ffd6d9; }

/* ===== Карточка ===== */
.mos-card {
  background: var(--mos-card);
  border: 1px solid var(--mos-line);
  border-radius: var(--mos-r);
  box-shadow: var(--mos-shadow);
  padding: 28px;
}
.mos-card + .mos-card { margin-top: 20px; }
.mos-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.mos-card-head h3 { font-size: 1.15rem; }
.mos-card-head p { font-size: 0.88rem; color: var(--mos-ink-soft); margin-top: 4px; }

/* ===== Карточка подключения профиля ===== */
.mos-connect {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}
.mos-connect-logo {
  width: 64px;
  height: 64px;
  color: var(--mos-red);
}
.mos-connect-logo svg { display: block; width: 100%; height: 100%; }
.mos-connect-text h3 { font-size: 1.2rem; }
.mos-connect-text p {
  font-size: 0.92rem;
  color: var(--mos-ink-soft);
  margin: 6px 0 12px;
  max-width: 52ch;
}
.mos-connect-list { list-style: none; display: grid; gap: 6px; }
.mos-connect-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.88rem;
  font-weight: 600;
}
.mos-connect-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mos-red);
  font-weight: 800;
}
.mos-connect-actions { text-align: center; }
.mos-connect-actions .mos-note { margin-top: 8px; }

.mos-connect-demo { text-align: center; }
.mos-linkbtn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--mos-red);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.mos-linkbtn:hover { color: var(--mos-red-dark); }

/* ===== Формы ===== */
.mos-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.mos-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}
.mos-field input,
.mos-field select,
.mos-field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--mos-line);
  border-radius: 10px;
  background: #fbfbfc;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mos-ink);
}
.mos-field textarea { resize: vertical; min-height: 78px; }
.mos-field input:focus,
.mos-field select:focus,
.mos-field textarea:focus {
  outline: none;
  border-color: var(--mos-red);
  box-shadow: 0 0 0 3px rgba(236, 27, 46, 0.14);
  background: #fff;
}
.mos-field input.is-invalid,
.mos-field select.is-invalid { border-color: var(--mos-red); background: #fff5f6; }
.mos-field-full { grid-column: 1 / -1; }

.mos-agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--mos-ink-soft);
  margin-bottom: 18px;
  cursor: pointer;
}
.mos-agree input { margin-top: 3px; accent-color: var(--mos-red); }
.mos-form-error {
  color: var(--mos-red);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.mos-note { font-size: 0.82rem; color: var(--mos-ink-soft); margin-top: 12px; }

/* ===== Карточка профиля ===== */
.mos-profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border-radius: var(--mos-r);
  background: linear-gradient(105deg, #16191d 0%, #2a2f36 100%);
  color: #fff;
  box-shadow: var(--mos-shadow);
}
.mos-avatar {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: var(--mos-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
}
.mos-profile-name { font-size: 1.45rem; font-weight: 800; }
.mos-profile-meta { font-size: 0.9rem; color: #b8c0c9; margin-top: 4px; }
.mos-profile-id {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 10px;
}
.mos-profile-side { text-align: right; }
.mos-level-name { font-size: 1.05rem; font-weight: 800; }
.mos-level-hint { font-size: 0.8rem; color: #b8c0c9; margin-top: 2px; }
.mos-progress {
  width: 190px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin-top: 10px;
  overflow: hidden;
}
.mos-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--mos-red);
  transition: width 0.4s ease;
}

/* ===== Плитки статистики ===== */
.mos-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.mos-stat {
  background: var(--mos-card);
  border: 1px solid var(--mos-line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--mos-shadow);
}
.mos-stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.mos-stat-label {
  font-size: 0.8rem;
  color: var(--mos-ink-soft);
  margin-top: 8px;
  font-weight: 600;
}
.mos-stat-accent .mos-stat-value { color: var(--mos-red); }

/* ===== Достижения ===== */
.mos-ach-list { display: flex; flex-direction: column; gap: 12px; }
.mos-ach {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--mos-line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fbfbfc;
}
.mos-ach-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fdeaec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.mos-ach-title { font-weight: 700; font-size: 1rem; }
.mos-ach-meta { font-size: 0.84rem; color: var(--mos-ink-soft); margin-top: 3px; }
.mos-ach-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mos-ach-tags span {
  font-size: 0.76rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--mos-line);
  border-radius: 7px;
  padding: 3px 9px;
  color: var(--mos-ink-soft);
}
.mos-ach-del {
  border: none;
  background: none;
  color: var(--mos-ink-soft);
  font-size: 1.3rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.mos-ach-del:hover { background: #fdeaec; color: var(--mos-red); }
.mos-ach-verified {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #0a7a3c;
  background: #e6f5ec;
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: 2px;
}

.mos-empty {
  text-align: center;
  padding: 34px 20px;
  border: 1.5px dashed var(--mos-line);
  border-radius: 16px;
  color: var(--mos-ink-soft);
}
.mos-empty strong { display: block; color: var(--mos-ink); margin-bottom: 6px; }

/* ===== Значки ===== */
.mos-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.mos-badge {
  text-align: center;
  border: 1px solid var(--mos-line);
  border-radius: 16px;
  padding: 18px 12px;
  background: #fbfbfc;
}
.mos-badge-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #eef0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  filter: grayscale(1);
  opacity: 0.5;
}
.mos-badge-name { font-weight: 700; font-size: 0.9rem; }
.mos-badge-req { font-size: 0.78rem; color: var(--mos-ink-soft); margin-top: 4px; }
.mos-badge.is-earned { background: #fff; border-color: var(--mos-red); }
.mos-badge.is-earned .mos-badge-icon {
  background: #fdeaec;
  filter: none;
  opacity: 1;
}

/* ===== Возможности раздела ===== */
.mos-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.mos-feature {
  background: var(--mos-card);
  border: 1px solid var(--mos-line);
  border-radius: var(--mos-r);
  padding: 24px;
  box-shadow: var(--mos-shadow);
}
.mos-feature-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--mos-red);
  margin-bottom: 10px;
}
.mos-feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.mos-feature p { font-size: 0.92rem; color: var(--mos-ink-soft); }

/* ===== Служебное ===== */
.mos-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.mos-disclaimer {
  margin-top: 26px;
  font-size: 0.83rem;
  color: var(--mos-ink-soft);
  border-left: 3px solid var(--mos-red);
  padding-left: 14px;
}
.mos-disclaimer a { color: var(--mos-blue); }

/* Промо-блок раздела на главной */
.mos-promo {
  background: linear-gradient(105deg, #ec1b2e 0%, #c2121f 100%);
  color: #fff;
  padding: 54px 0;
}
.mos-promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.mos-promo h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -0.02em; }
.mos-promo p { color: #ffe3e5; margin-top: 10px; max-width: 560px; }
.mos-promo .mos-kicker { margin-bottom: 14px; }

@media (max-width: 760px) {
  .mos-profile {
    grid-template-columns: auto 1fr;
    padding: 20px;
    gap: 14px;
  }
  .mos-avatar { width: 58px; height: 58px; border-radius: 14px; font-size: 1.3rem; }
  .mos-profile-name { font-size: 1.2rem; }
  .mos-profile-side { grid-column: 1 / -1; text-align: left; }
  .mos-progress { width: 100%; }
  .mos-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mos-stat { padding: 16px; }
  .mos-stat-value { font-size: 1.6rem; }
  .mos-hero-stats { gap: 22px; }
  .mos-card { padding: 20px; }
  .mos-badges { grid-template-columns: 1fr 1fr; }
  .mos-connect { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .mos-connect-logo { width: 52px; height: 52px; }
  .mos-connect-actions { text-align: left; }
  .mos-connect-actions .mos-btn { display: block; text-align: center; }
  .mos-ach { grid-template-columns: 40px 1fr auto; gap: 12px; }
}
