@charset "UTF-8";
/* Баллы для поступления — /enroll/help/minscores/. Все правила внутри #ms#ms. */
/* ===== Сброс глобальных стилей шаблона внутри блока #ms ===== */
#ms#ms,
#ms#ms div,
#ms#ms p,
#ms#ms ul,
#ms#ms ol,
#ms#ms li,
#ms#ms h1,
#ms#ms h2,
#ms#ms h3,
#ms#ms h4,
#ms#ms dl,
#ms#ms dt,
#ms#ms dd,
#ms#ms form,
#ms#ms nav,
#ms#ms section,
#ms#ms header,
#ms#ms main,
#ms#ms footer,
#ms#ms figure,
#ms#ms span,
#ms#ms a,
#ms#ms b,
#ms#ms strong,
#ms#ms small,
#ms#ms i,
#ms#ms em,
#ms#ms label,
#ms#ms input,
#ms#ms select,
#ms#ms button,
#ms#ms img {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  outline: 0;
  float: none;
  clear: none;
  position: static;
  inset: auto;
  z-index: auto;
  width: auto;
  height: auto;
  min-height: 0;
  font: inherit;
  color: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  text-shadow: none;
  text-align: inherit;
  text-indent: 0;
  white-space: inherit;
  vertical-align: baseline;
  list-style: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
  animation: none;
  filter: none;
  cursor: inherit;
  box-sizing: border-box;
  overflow: visible;
  gap: 0;
  flex: 0 1 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: normal;
  align-items: normal;
  align-self: auto;
  order: 0;
  columns: auto;
  max-height: none;
  clip-path: none;
  pointer-events: auto;
  text-overflow: clip;
}
#ms#ms div,
#ms#ms p,
#ms#ms ul,
#ms#ms ol,
#ms#ms li,
#ms#ms h1,
#ms#ms h2,
#ms#ms h3,
#ms#ms h4,
#ms#ms dl,
#ms#ms dt,
#ms#ms dd,
#ms#ms form,
#ms#ms nav,
#ms#ms section,
#ms#ms header,
#ms#ms main,
#ms#ms footer,
#ms#ms figure {
  display: block;
}
#ms#ms span,
#ms#ms a,
#ms#ms b,
#ms#ms strong,
#ms#ms small,
#ms#ms i,
#ms#ms em,
#ms#ms label {
  display: inline;
}
#ms#ms img {
  display: inline-block;
  max-width: 100%;
}
#ms#ms input,
#ms#ms select,
#ms#ms button {
  display: inline-block;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
#ms#ms input {
  cursor: text;
}
#ms#ms button {
  text-align: center;
}
#ms#ms input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  cursor: pointer;
}
#ms#ms *::before,
#ms#ms *::after {
  content: none;
  display: none;
  background: none;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
#ms#ms a:where(:link, :visited, :hover, :active, :focus) {
  color: inherit;
  text-decoration: none;
  border: 0;
  background: none;
}
#ms#ms input::placeholder {
  color: #8c969d;
  opacity: 1;
}
#ms#ms {
  display: block;
  max-width: none;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
#ms#ms [hidden] {
  display: none !important;
}
/* ===== Стили страницы ===== */
#ms#ms {
  --navy: #083f63;
  --deep: #0a5f93;
  --blue: #1383c6;
  --red: #8b0e04;
  --red-dk: #6e0b03;
  --gold: #f0a81c;
  --ink: #1f262b;
  --text: #4a535a;
  --muted: #5f6870;
  --line: #e4e9ed;
  --line2: #cfd9e1;
  --paper: #fff;
  --mist: #f4f7f9;
  --serif: Merriweather, Georgia, "Times New Roman", serif;
  --sans: SFProDisplay, "SF Pro Display", Roboto, -apple-system, Arial,
    sans-serif;
}
#ms#ms *,
#ms#ms *::before,
#ms#ms *::after {
  display: block;
  box-sizing: border-box;
}
#ms#ms {
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  hyphens: manual;
}
#ms#ms h1,
#ms#ms h2,
#ms#ms h3,
#ms#ms p,
#ms#ms ul,
#ms#ms ol,
#ms#ms dl,
#ms#ms dd,
#ms#ms figure {
  margin: 0;
  padding: 0;
}
#ms#ms ul,
#ms#ms ol {
  list-style: none;
}
#ms#ms h1,
#ms#ms h2,
#ms#ms h3 {
  text-wrap: balance;
}
#ms#ms p,
#ms#ms li {
  text-wrap: pretty;
}
#ms#ms a {
  color: inherit;
  text-decoration: none;
}
#ms#ms button,
#ms#ms input,
#ms#ms select {
  font: inherit;
  color: inherit;
}
#ms#ms :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
#ms#ms .ms-w {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
#ms#ms .ms-k {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep);
}
#ms#ms .ms-h2 {
  margin-top: 12px;
  font: 700 clamp(25px, 7.4vw, 32px) / 1.22 var(--serif);
  color: var(--ink);
  overflow-wrap: break-word;
}
#ms#ms .ms-ct > *,
#ms#ms .ms-split > *,
#ms#ms .ms-opts li > *,
#ms#ms .ms-r > * {
  min-width: 0;
}
#ms#ms .ms-sub {
  margin-top: 14px;
  max-width: 60ch;
  font: 400 17px/1.6 var(--sans);
  color: var(--text);
}
#ms#ms .ms-sec {
  padding-block: 72px;
}
#ms#ms .ms-mist {
  background: var(--mist);
}
#ms#ms .ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  font: 500 13px/1.2 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s;
}
#ms#ms .ms-btn:hover {
  background: var(--red-dk);
}
#ms#ms .ms-lnk {
  display: inline-block;
  padding-block: 11px;
  margin-block: -11px;
  color: var(--deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
#ms#ms .ms-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 2px;
  margin-right: 8px;
}
@media (min-width: 900px) {
  #ms#ms .ms-split {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }
  #ms#ms .ms-split > header {
    position: sticky;
    top: 32px;
  }
  #ms#ms .ms-h2 {
    font-size: 38px;
  }
}
@media (max-width: 899px) {
  #ms#ms .ms-split > header {
    margin-bottom: 36px;
  }
}
#ms#ms .ms-crumbs {
  padding-top: 22px;
  font: 400 13px/1.4 var(--sans);
  color: var(--muted);
}
#ms#ms .ms-crumbs a:hover {
  color: var(--deep);
}
#ms#ms .ms-hero {
  padding-block: 44px 56px;
}
#ms#ms .ms-hero h1 {
  margin-top: 14px;
  font: 700 clamp(30px, 8.6vw, 42px) / 1.15 var(--serif);
  color: var(--ink);
  letter-spacing: -0.01em;
}
#ms#ms .ms-hero h1 b {
  color: var(--deep);
}
#ms#ms .ms-hero__lead {
  margin-top: 18px;
  max-width: 52ch;
  font: 400 18px/1.6 var(--sans);
}
#ms#ms .ms-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  margin-top: 22px;
  font: 400 15px/1.4 var(--sans);
}
#ms#ms .ms-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--deep);
  border-bottom: 1px solid var(--line2);
  transition: border-color 0.2s;
}
#ms#ms .ms-jump a:hover {
  border-color: var(--deep);
}
@media (min-width: 900px) {
  #ms#ms .ms-hero {
    padding-block: 64px 72px;
  }
  #ms#ms .ms-hero h1 {
    font-size: 60px;
  }
}
#ms#ms .ms-two {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
#ms#ms .ms-two > div {
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}
#ms#ms .ms-two em {
  font-style: normal;
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
#ms#ms .ms-two h3 {
  margin-top: 10px;
  font: 700 clamp(24px, 6.6vw, 28px) / 1.2 var(--serif);
  color: var(--ink);
}
#ms#ms .ms-two p {
  margin-top: 12px;
  max-width: 44ch;
  font: 400 16px/1.6 var(--sans);
}
#ms#ms .ms-two a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  font-size: 15px;
  border-bottom: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (min-width: 760px) {
  #ms#ms .ms-two {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    border-top: 0;
  }
  #ms#ms .ms-two > div {
    border-top: 1px solid var(--line);
  }
}
#ms#ms .ms-mins {
  margin-top: 8px;
}
#ms#ms .ms-mins li {
  display: grid;
  grid-template-columns: clamp(72px, 22vw, 96px) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
#ms#ms .ms-mins li:first-child {
  border-top: 1px solid var(--line);
}
#ms#ms .ms-mins b {
  font: 400 56px/1 var(--serif);
  color: var(--deep);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}
#ms#ms .ms-mins span {
  font: 400 16px/1.5 var(--sans);
  color: var(--ink);
}
#ms#ms .ms-mins small {
  display: block;
  margin-top: 4px;
  font: 400 14px/1.5 var(--sans);
  color: var(--muted);
}
#ms#ms .ms-blk + .ms-blk {
  margin-top: 52px;
}
#ms#ms .ms-blk h3 {
  font: 700 20px/1.3 var(--serif);
  color: var(--ink);
  margin-bottom: 18px;
}
#ms#ms .ms-blk > p {
  max-width: 60ch;
  font: 400 15px/1.6 var(--sans);
  margin-bottom: 18px;
}
#ms#ms .ms-cre {
  border-top: 1px solid var(--line);
}
#ms#ms .ms-cre li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: baseline;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
#ms#ms .ms-cre .ms-n {
  font: 400 16px/1.4 var(--sans);
  color: var(--ink);
}
#ms#ms .ms-cre .ms-v {
  font: 400 15px/1.4 var(--sans);
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#ms#ms .ms-cre .ms-v b {
  font: 400 20px/1 var(--serif);
  color: var(--deep);
}
#ms#ms .ms-cre .ms-todo .ms-v {
  color: var(--red);
  font-size: 13px;
}
@media (min-width: 900px) {
  #ms#ms .ms-mins li {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  #ms#ms .ms-mins b {
    font-size: 64px;
  }
}
#ms#ms .ms-share {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
#ms#ms .ms-share li {
  display: grid;
  grid-template-columns: clamp(88px, 27vw, 118px) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
#ms#ms .ms-share b {
  font: 400 clamp(20px, 6.4vw, 26px) / 1.1 var(--serif);
  color: var(--deep);
  font-variant-numeric: lining-nums;
}
#ms#ms .ms-share b small {
  display: block;
  margin-top: 2px;
  font: 400 11px/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
#ms#ms .ms-share span {
  font: 400 15px/1.5 var(--sans);
  color: var(--ink);
}
#ms#ms .ms-share span i {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
#ms#ms .ms-aside {
  margin-top: 22px;
  max-width: 60ch;
  font: 400 15px/1.6 var(--sans);
  color: var(--text);
}
#ms#ms .ms-aside + .ms-aside {
  margin-top: 10px;
}
#ms#ms .ms-aside b {
  font-weight: 500;
  color: var(--ink);
}
#ms#ms .ms-lv {
  display: flex;
  gap: 28px;
  margin-top: 52px;
  border-bottom: 1px solid var(--line2);
  overflow-x: auto;
  scrollbar-width: none;
}
#ms#ms .ms-lv::-webkit-scrollbar {
  display: none;
}
#ms#ms .ms-lv button {
  flex: none;
  min-height: 44px;
  padding: 12px 0 14px;
  border: 0;
  background: none;
  font: 700 19px/1.2 var(--serif);
  color: var(--muted);
  cursor: pointer;
  position: relative;
}
#ms#ms .ms-lv button[aria-selected="true"] {
  color: var(--deep);
}
#ms#ms .ms-lv button[aria-selected="true"]::after {
  display: block;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
}
@media (max-width: 480px) {
  #ms#ms .ms-lv {
    gap: 18px;
    overflow: visible;
  }
  #ms#ms .ms-lv button {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    text-align: left;
    font-size: 16px;
    line-height: 1.25;
    display: flex;
    align-items: flex-end;
  }
}
#ms#ms .ms-fm {
  display: flex;
  margin-top: 18px;
  max-width: 320px;
}
#ms#ms .ms-fm button {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line2);
  background: transparent;
  font: 400 14px/1 var(--sans);
  color: var(--text);
  cursor: pointer;
}
#ms#ms .ms-fm button + button {
  border-left: 0;
}
#ms#ms .ms-fm button[aria-pressed="true"] {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}
#ms#ms .ms-fm button:disabled {
  opacity: 0.35;
  cursor: default;
}
#ms#ms .ms-rows {
  margin-top: 10px;
}
#ms#ms .ms-rows.ms-fade {
  animation: ms-fd 0.45s ease both;
}
@keyframes ms-fd {
  from {
    opacity: 0.25;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#ms#ms .ms-r {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 20px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
#ms#ms .ms-r__n {
  font: 500 17px/1.35 var(--sans);
  color: var(--ink);
}
#ms#ms .ms-r__n .ms-pl {
  display: block;
  margin-top: 6px;
  font: 500 13px/1.4 var(--sans);
  color: var(--ink);
}
#ms#ms .ms-r__n .ms-pl.ms-u {
  color: var(--red);
}
#ms#ms .ms-r__n small {
  display: block;
  margin-top: 3px;
  font: 400 13px/1.4 var(--sans);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#ms#ms .ms-r__s {
  text-align: right;
  white-space: nowrap;
}
#ms#ms .ms-r__s b {
  display: block;
  font: 400 40px/1 var(--serif);
  color: var(--deep);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}
#ms#ms .ms-r__s small {
  display: block;
  margin-top: 6px;
  font: 400 12px/1.3 var(--sans);
  color: var(--muted);
}
#ms#ms .ms-r__d {
  grid-column: 1/-1;
  font: 400 14px/1.55 var(--sans);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
#ms#ms .ms-r__q {
  grid-column: 1/-1;
  font: 400 13px/1.45 var(--sans);
  color: var(--ink);
}
#ms#ms .ms-r--q {
  grid-template-columns: minmax(0, 1fr) !important;
}
#ms#ms .ms-r--q .ms-r__s {
  text-align: left;
  order: -1;
}
#ms#ms .ms-r--q .ms-r__s b {
  font: 500 13px/1.3 var(--sans);
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: 4px;
}
#ms#ms .ms-r--q .ms-r__d {
  color: var(--ink);
}
#ms#ms .ms-hint {
  margin-top: 16px;
  font: 400 13px/1.55 var(--sans);
  color: var(--muted);
}
#ms#ms .ms-hint b {
  font-weight: 500;
  color: var(--text);
}
#ms#ms .ms-r--q .ms-r__go {
  grid-column: 1/-1;
  margin-top: 2px;
  font-size: 14px;
  justify-self: start;
}
#ms#ms .ms-r__w {
  grid-column: 1/-1;
  font: 400 15px/1.55 var(--sans);
  color: var(--ink);
}
#ms#ms .ms-hero__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
}
#ms#ms .ms-links {
  display: grid;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
#ms#ms .ms-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  font: 400 16px/1.4 var(--sans);
  color: var(--ink);
}
#ms#ms .ms-links a::after {
  display: block;
  content: "→";
  color: var(--deep);
}
#ms#ms .ms-links a:hover {
  color: var(--deep);
}
#ms#ms .ms-more-cta {
  margin-top: 28px;
}
#ms#ms .ms-legend {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  max-width: 66ch;
  font: 400 13px/1.6 var(--sans);
  color: var(--muted);
}
#ms#ms .ms-legend b {
  font-weight: 500;
  color: var(--text);
}
@media (min-width: 760px) {
  #ms#ms .ms-r {
    grid-template-columns: minmax(0, 1fr) 150px;
    padding-block: 24px;
  }
  #ms#ms .ms-r__s b {
    font-size: 46px;
  }
}
#ms#ms .ms-opts {
  border-top: 1px solid var(--line);
}
#ms#ms .ms-opts li {
  display: grid;
  grid-template-columns: clamp(84px, 27vw, 118px) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
#ms#ms .ms-opts b {
  font: 400 clamp(22px, 7.2vw, 30px) / 1.05 var(--serif);
  color: var(--deep);
}
#ms#ms .ms-opts b small {
  display: block;
  margin-top: 6px;
  font: 500 11px/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
#ms#ms .ms-opts h3 {
  font: 500 16px/1.4 var(--sans);
  color: var(--ink);
}
#ms#ms .ms-opts p {
  margin-top: 4px;
  font: 400 15px/1.55 var(--sans);
}
#ms#ms .ms-opts a {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
}
@media (min-width: 900px) {
  #ms#ms .ms-opts li {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  #ms#ms .ms-opts b {
    font-size: 36px;
  }
}
#ms#ms .ms-ct {
  display: grid;
  gap: 40px;
}
#ms#ms .ms-ct__dl dl {
  display: grid;
  gap: 18px;
}
#ms#ms .ms-ct__dl dt {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
#ms#ms .ms-ct__dl dd {
  margin-top: 4px;
  font: 400 17px/1.45 var(--sans);
  color: var(--ink);
}
#ms#ms .ms-ct__dl dd small {
  display: block;
  font: 400 14px/1.4 var(--sans);
  color: var(--muted);
}
#ms#ms .ms-card {
  background: var(--paper);
  border-top: 4px solid var(--blue);
  padding: 28px 22px 26px;
  box-shadow: 0 24px 60px -36px rgba(8, 63, 99, 0.35);
}
#ms#ms .ms-card h3 {
  font: 700 24px/1.25 var(--serif);
  color: var(--ink);
}
#ms#ms .ms-card > p {
  margin-top: 8px;
  font: 400 15px/1.5 var(--sans);
}
#ms#ms .ms-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
#ms#ms .ms-role {
  display: flex;
}
#ms#ms .ms-role button {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line2);
  background: transparent;
  font: 400 14px/1 var(--sans);
  color: var(--text);
  cursor: pointer;
}
#ms#ms .ms-role button + button {
  border-left: 0;
}
#ms#ms .ms-role button[aria-pressed="true"] {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}
#ms#ms .ms-pair {
  display: grid;
  gap: 16px;
}
#ms#ms .ms-fld label {
  display: block;
  margin-bottom: 6px;
  font: 400 13px/1.3 var(--sans);
  color: var(--text);
}
#ms#ms .ms-fld label i {
  font-style: normal;
  color: var(--red);
}
#ms#ms .ms-fld input,
#ms#ms .ms-fld select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line2);
  border-radius: 0;
  background: var(--paper);
  font-size: 16px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
#ms#ms .ms-fld select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  display: flex;
    align-items: center;
}
#ms#ms .ms-fld input:focus,
#ms#ms .ms-fld select:focus {
  outline: 0;
  border-color: var(--blue);
}
#ms#ms .ms-fld.ms-err input {
  border-color: var(--red);
}
#ms#ms .ms-fld .ms-e {
  display: none;
  margin-top: 5px;
  font-size: 12px;
  color: var(--red);
}
#ms#ms .ms-fld.ms-err .ms-e {
  display: block;
}
#ms#ms .ms-agree {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font: 400 13px/1.5 var(--sans);
  color: var(--text);
}
#ms#ms .ms-agree input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--deep);
}
#ms#ms .ms-agree a {
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#ms#ms .ms-agree.ms-err {
  color: var(--red);
}
#ms#ms .ms-form .ms-btn {
  width: 100%;
}
#ms#ms .ms-form__err {
  font: 400 14px/1.45 var(--sans);
  color: var(--red);
  text-align: center;
}
#ms#ms .ms-form .ms-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
#ms#ms .ms-form__n {
  font: 400 13px/1.4 var(--sans);
  color: var(--muted);
  text-align: center;
}
#ms#ms .ms-msg {
  display: grid;
  gap: 10px;
  order: 0;
}
#ms#ms .ms-msg p {
  font: 400 14px/1.4 var(--sans);
  color: var(--text);
}
#ms#ms .ms-msg__b {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
#ms#ms .ms-msg__b a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line2);
  font: 400 14px/1 var(--sans);
  color: var(--ink);
  transition: border-color 0.2s;
}
#ms#ms .ms-msg__b a:hover {
  border-color: var(--deep);
}
#ms#ms .ms-msg__b i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font: 700 8px/1 var(--sans);
  font-style: normal;
  color: #fff;
  letter-spacing: 0.02em;
}
#ms#ms .ms-msg__b a {
  min-width: 0;
  padding: 0 4px;
}
#ms#ms .ms-i-tg {
  background: #229ed9;
}
#ms#ms .ms-i-max {
  background: #5b3df5;
}
#ms#ms .ms-i-wa {
  background: #25a244;
}
#ms#ms .ms-card__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 22px;
}
#ms#ms .ms-card__body .ms-form {
  margin-top: 0;
}
#ms#ms .ms-card__body .ms-msg {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
@media (max-width: 759px) {
  #ms#ms .ms-msg__l {
    display: block;
  }
  #ms#ms .ms-msg__b {
    grid-template-columns: minmax(0, 1fr);
  }
  #ms#ms .ms-msg__b a {
    justify-content: flex-start;
    gap: 14px;
    min-height: 56px;
    padding: 0 16px;
    font-size: 16px;
  }
  #ms#ms .ms-msg__b i {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }
}
#ms#ms .ms-done {
  padding: 20px 0 4px;
}
#ms#ms .ms-done b {
  display: block;
  font: 700 22px/1.3 var(--serif);
  color: var(--ink);
}
#ms#ms .ms-done p {
  margin-top: 8px;
  font: 400 15px/1.5 var(--sans);
}
@media (min-width: 900px) {
  #ms#ms .ms-ct {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: "info card" "dl card";
    grid-template-rows: auto 1fr;
    gap: 0 64px;
    align-items: start;
  }
  #ms#ms .ms-ct__info {
    grid-area: info;
  }
  #ms#ms .ms-card {
    grid-area: card;
  }
  #ms#ms .ms-ct__dl {
    grid-area: dl;
    margin-top: 28px;
  }
  #ms#ms .ms-pair {
    grid-template-columns: 1fr 1fr;
  }
  #ms#ms .ms-card {
    padding: 36px 36px 32px;
  }
}
#ms#ms .ms-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  transform: translateY(110%);
  transition: transform 0.3s;
}
#ms#ms .ms-bar.ms-on {
  transform: none;
}
#ms#ms .ms-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  font: 400 14px/1.2 var(--sans);
  color: var(--ink);
}
#ms#ms .ms-bar a:first-child {
  background: var(--red);
  color: #fff;
  font-weight: 500;
}
@media (min-width: 760px) {
  #ms#ms .ms-bar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #ms#ms .ms-rows.ms-fade {
    animation: none;
  }
  #ms#ms .ms-bar {
    transition: none;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px !important;
  }
  #pk#pk .pc-mode label {
    margin-bottom: -4px !important;
  }
}

.c-header__mobile-line {
  display: none !important;
}

@media (max-width: 396px) {
  body {
    padding-top: 70px !important;
  }
  #pk#pk .pc-mode label {
    margin-bottom: -4px !important;
  }
}

/* --- ФИКС ЛОГОТИПА ДЛЯ SAFARI (iOS) --- */

/* 4. Мобильная адаптация (чтобы не сломать шапку на телефонах) */
@media (max-width: 767px) {
  .c-header .c-logo__icon.icon {
    width: 250px !important; /* Чуть уменьшаем на телефоне */
    height: 45px !important;
    min-width: 180px !important;
    min-height: 45px !important;
  }
}
