/* === 26 КАДР — внутренние страницы: 404, политика, согласие === */

/* 404 — контент; shell header/footer/consult → kadr-home.css + kadr-consult.css */
body.page-error .error_page__code {
  margin: 0 0 16px;
  font-family: var(--kadr-font-display, 'Bebas Neue', Arial, sans-serif);
  font-size: 128px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: var(--kadr-accent);
}

body.page-error .error_page__title {
  margin: 0 0 24px;
  font-family: var(--kadr-font-display, 'Bebas Neue', Arial, sans-serif);
  font-size: 64px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
}

body.page-error .error_page__text {
  margin: 0 0 50px;
  font-family: var(--kadr-font-body, 'Inter', Arial, sans-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
  color: rgba(255, 255, 255, 0.72);
}

body.page-error .error_page__actions {
  gap: 20px;
}

body.page-error .error_page__actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 200px;
  min-height: 60px;
  padding: 14px 40px 10px;
  font-family: var(--kadr-font-display, 'Bebas Neue', Arial, sans-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  background: var(--kadr-accent);
  border: none;
  border-radius: 0;
}

body.page-error .error_page__actions .button_tr {
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
}

body.page-error .error_page__actions .button:hover {
  opacity: 0.92;
  color: #000;
}

body.page-error .error_page__actions .button_tr:hover {
  color: var(--kadr-accent);
  border-color: var(--kadr-accent);
  background: transparent;
}

/* Согласие ПДн — Figma S4k0aTe0rcNyllPzvopcsM 2451:3558 · mobile 2525:3201 */
body.page-consent .page-inner {
  padding-bottom: 0;
}

body.page-consent .consent_page {
  position: relative;
  overflow: hidden;
}

body.page-consent .consent_page__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: min(var(--kadr-content, 1324px), calc(100vw - 40px));
  max-width: var(--kadr-content, 1324px);
  margin-left: auto;
  margin-right: auto;
  padding: 167px 0 186px;
}

body.page-consent .consent_section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
  word-break: break-word;
}

body.page-consent .consent_section__head {
  width: 100%;
}

body.page-consent .consent_section__title {
  margin: 0;
  font-family: var(--kadr-font-display, 'Bebas Neue', Arial, sans-serif);
  font-size: 64px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
}

body.page-consent .consent_section__subtitle {
  margin: 0;
  font-family: var(--kadr-font-body, 'Inter', Arial, sans-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 29px;
  min-height: 29px;
  letter-spacing: 0;
  color: #c9c6c6;
}

body.page-consent .consent_section__subtitle-accent {
  text-transform: lowercase;
}

body.page-consent .consent_section__body {
  width: 100%;
  font-family: var(--kadr-font-body, 'Inter', Arial, sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  color: #fff;
  text-align: left;
}

body.page-consent .consent_section__body .consent_p {
  margin: 0 0 10px;
  white-space: pre-wrap;
}

body.page-consent .consent_section__body .consent_p--gap {
  height: 0;
  min-height: 0;
  margin: 0 0 10px;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  white-space: nowrap;
}

body.page-consent .consent_section:nth-of-type(2) .consent_p--gap {
  height: 10px;
  line-height: 10px;
  font-size: 10px;
}

body.page-consent .consent_section:first-of-type .consent_section__body .consent_p,
body.page-consent .consent_section:first-of-type .consent_section__body.rich_edit p,
body.page-consent .consent_section:first-of-type .consent_section__body li {
  line-height: 19.08px;
}

body.page-consent .consent_section__body.rich_edit p {
  margin: 0 0 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

body.page-consent .consent_section__body > :last-child {
  margin-bottom: 0;
}

body.page-consent .consent_section__body .consent_p:nth-of-type(3) .consent_hint {
  font-style: normal;
}

body.page-consent .consent_hint {
  font-style: italic;
  color: #c9c6c6;
}

body.page-consent .consent_hint--plain {
  font-style: normal;
}

body.page-consent .consent_list {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

body.page-consent .consent_list--plain {
  list-style: none;
  padding-left: 0;
}

body.page-consent .consent_list li {
  position: relative;
  margin: 0;
  padding: 0 0 0 24px;
}

body.page-consent .consent_list li::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 100%;
}

body.page-consent .consent_section__body a {
  color: #fff;
  text-decoration: underline;
}

body.page-consent .consent_page__rule {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--kadr-content, 1324px);
  height: 4px;
  margin: 0;
  flex-shrink: 0;
  background: url('/img/live_line.png') 0 0 no-repeat;
  background-size: 100% 100%;
}

body.page-consent .consent_page__glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 0;
  filter: none;
  opacity: 1;
  overflow: visible;
}

body.page-consent .consent_page__glow::before {
  content: '';
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

body.page-consent .consent_page__glow--tl {
  top: 161px;
  left: 31px;
  width: 359px;
  height: 529px;
}

body.page-consent .consent_page__glow--tl::before {
  inset: -43.67% -64.42%;
  background-image: url(/img/consent-glow-tl.svg);
}

body.page-consent .consent_page__glow--tr {
  top: 405px;
  left: 1579px;
  right: auto;
  width: 682px;
  height: 431px;
}

body.page-consent .consent_page__glow--tr::before {
  inset: -68.21% -43.11%;
  background-image: url(/img/consent-glow-tr.svg);
}

body.page-consent .consent_page__glow--br {
  top: 2721px;
  left: 1360px;
  width: 637px;
  height: 575px;
}

body.page-consent .consent_page__glow--br::before {
  top: 50%;
  left: 50%;
  width: 821px;
  height: 991px;
  inset: auto;
  margin: 0;
  transform: translate(-50%, -50%) rotate(120deg);
  background-image: url(/img/consent-glow-br.svg);
}

body.page-consent .consent_page__glow--cm,
body.page-consent .consent_page__glow--mr {
  display: none;
}

/* Политика ПДн — Figma 2451:3779 */
body.page-privacy .page-inner {
  padding-bottom: 0;
}

body.page-privacy .privacy_page {
  position: relative;
  overflow: hidden;
}

body.page-privacy .privacy_page__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: var(--kadr-content, 1324px);
  max-width: var(--kadr-content, 1324px);
  margin: 0 auto;
  padding: 167px 0 61px;
}

body.page-privacy .privacy_section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
  word-break: break-word;
}

body.page-privacy .privacy_section__head {
  width: 100%;
}

body.page-privacy .privacy_section__title {
  margin: 0;
  font-family: var(--kadr-font-display, 'Bebas Neue', Arial, sans-serif);
  font-size: 64px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
}

body.page-privacy .privacy_section__lead {
  width: 100%;
  font-family: var(--kadr-font-body, 'Inter', Arial, sans-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  color: #c9c6c6;
}

body.page-privacy .privacy_section__subtitle,
body.page-privacy .privacy_section__institution {
  margin: 0;
}

body.page-privacy .privacy_section__body {
  width: 100%;
  font-family: var(--kadr-font-body, 'Inter', Arial, sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  color: #fff;
  text-align: left;
}

body.page-privacy .privacy_section__body .privacy_p {
  margin: 0 0 10px;
  white-space: pre-wrap;
}

body.page-privacy .privacy_section__body.rich_edit p {
  margin: 0 0 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

body.page-privacy .privacy_section__body > :last-child {
  margin-bottom: 0;
}

body.page-privacy .privacy_section__body a {
  color: #fff;
  text-decoration: underline;
}

body.page-privacy .privacy_page__glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 0;
  filter: none;
  opacity: 1;
  overflow: visible;
}

body.page-privacy .privacy_page__glow::before {
  content: '';
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

body.page-privacy .privacy_page__glow--tl {
  top: 254px;
  left: -32px;
  width: 682px;
  height: 820px;
}

body.page-privacy .privacy_page__glow--tl::before {
  inset: -35.85% -43.11%;
  background-image: url(/img/privacy-glow-tl.svg);
}

body.page-privacy .privacy_page__glow--tr {
  top: 919px;
  left: 1539px;
  right: auto;
  width: 359px;
  height: 529px;
}

body.page-privacy .privacy_page__glow--tr::before {
  inset: -43.67% -64.42%;
  background-image: url(/img/privacy-glow-tr.svg);
}

body.page-privacy .privacy_page__glow--cm {
  top: 1612px;
  left: -250px;
  width: 1157px;
  height: 1157px;
}

body.page-privacy .privacy_page__glow--cm::before {
  top: 50%;
  left: 50%;
  width: 1123px;
  height: 1437px;
  inset: auto;
  margin: 0;
  transform: translate(-50%, -50%) rotate(45deg);
  background-image: url(/img/privacy-glow-cm.svg);
}

body.page-privacy .privacy_page__glow--mr {
  top: 4480px;
  left: 1381px;
  right: auto;
  width: 539px;
  height: 365px;
}

body.page-privacy .privacy_page__glow--mr::before {
  top: 50%;
  left: 50%;
  width: 1123px;
  height: 1437px;
  inset: auto;
  margin: 0;
  transform: translate(-50%, -50%) rotate(90deg);
  background-image: url(/img/privacy-glow-mr.svg);
}

body.page-privacy .privacy_page__glow--bl {
  top: 5680px;
  left: -390px;
  width: 1060px;
  height: 1175px;
}

body.page-privacy .privacy_page__glow--bl::before {
  top: 50%;
  left: 50%;
  width: 1123px;
  height: 1437px;
  inset: auto;
  margin: 0;
  transform: translate(-50%, -50%) rotate(30deg);
  background-image: url(/img/privacy-glow-bl.svg);
}

/* === Inner pages adaptive (tablet ≤1323 mobile menu, content ≤1100 / <750) === */

@media (max-width: 1323px) {
  body.page-privacy,
  body.page-consent,
  body.page-error {
    overflow-x: clip;
  }

  body.page-privacy .header__burger,
  body.page-consent .header__burger,
  body.page-error .header__burger {
    display: block;
    grid-column: 1;
    grid-row: 1;
    width: 32px;
    height: 32px;
  }

  body.page-privacy .header__burger span,
  body.page-consent .header__burger span,
  body.page-error .header__burger span {
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  body.page-privacy .header__inner,
  body.page-consent .header__inner,
  body.page-error .header__inner {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 14px var(--container-pad);
    min-height: var(--kadr-header);
    display: grid;
    grid-template-columns: auto 1fr auto;
    justify-content: stretch;
    align-items: center;
  }

  body.page-privacy .header__logo-wrap,
  body.page-consent .header__logo-wrap,
  body.page-error .header__logo-wrap {
    position: static;
    left: auto;
    transform: none;
    order: unset;
    flex-shrink: unset;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  body.page-privacy .header__nav,
  body.page-consent .header__nav,
  body.page-error .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    order: unset;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: min(320px, calc(100vw - 56px));
    margin: 0;
    min-height: 0;
    padding: calc(var(--kadr-header) + 24px) var(--container-pad) 32px;
    background: #000;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 200;
    box-sizing: border-box;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0.28s;
  }

  body.page-privacy .header__nav.is-open,
  body.page-consent .header__nav.is-open,
  body.page-error .header__nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  body.page-privacy.nav_open::before,
  body.page-consent.nav_open::before,
  body.page-error.nav_open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
  }

  body.page-privacy.nav_open .header,
  body.page-consent.nav_open .header,
  body.page-error.nav_open .header {
    position: relative;
    z-index: 210;
    height: auto;
    background: transparent;
  }

  body.page-privacy.nav_open .header__inner,
  body.page-consent.nav_open .header__inner,
  body.page-error.nav_open .header__inner {
    height: auto;
  }

  body.page-privacy.nav_open .header__logo-wrap,
  body.page-consent.nav_open .header__logo-wrap,
  body.page-error.nav_open .header__logo-wrap {
    visibility: hidden;
  }

  body.page-privacy.nav_open .header__burger,
  body.page-consent.nav_open .header__burger,
  body.page-error.nav_open .header__burger {
    position: fixed;
    top: 13px;
    right: var(--container-pad);
    z-index: 210;
    margin-left: 0;
    grid-column: unset;
    grid-row: unset;
  }

  body.page-privacy.nav_open .header__burger span:nth-child(1),
  body.page-consent.nav_open .header__burger span:nth-child(1),
  body.page-error.nav_open .header__burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.page-privacy.nav_open .header__burger span:nth-child(2),
  body.page-consent.nav_open .header__burger span:nth-child(2),
  body.page-error.nav_open .header__burger span:nth-child(2) {
    opacity: 0;
  }

  body.page-privacy.nav_open .header__burger span:nth-child(3),
  body.page-consent.nav_open .header__burger span:nth-child(3),
  body.page-error.nav_open .header__burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  body.page-privacy .header__nav_item,
  body.page-consent .header__nav_item,
  body.page-error .header__nav_item {
    white-space: normal;
  }

  body.page-privacy .header__nav_item--cta,
  body.page-consent .header__nav_item--cta,
  body.page-error .header__nav_item--cta {
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 37px;
  }
}

@media (max-width: 1100px) {
  body.page-privacy,
  body.page-consent,
  body.page-error {
    overflow-x: clip;
    --container-pad: 40px;
  }

  body.page-privacy .header__contacts,
  body.page-consent .header__contacts,
  body.page-error .header__contacts {
    display: none;
  }

  body.page-privacy .privacy_page__inner,
  body.page-consent .consent_page__inner {
    width: 100%;
    max-width: 100%;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
    box-sizing: border-box;
  }

  body.page-privacy .privacy_page__inner {
    padding-top: 120px;
    padding-bottom: 48px;
  }

  body.page-consent .consent_page__inner {
    padding-top: 120px;
    padding-bottom: 80px;
    gap: 48px;
  }

  body.page-privacy .privacy_section__title,
  body.page-consent .consent_section__title {
    font-size: 40px;
  }

  body.page-privacy .privacy_section__lead,
  body.page-consent .consent_section__subtitle {
    font-size: 18px;
    line-height: 1.3;
    min-height: 0;
  }

  body.page-privacy .privacy_section__body,
  body.page-consent .consent_section__body {
    font-size: 15px;
  }

  body.page-error .error_page__code {
    font-size: 96px;
  }

  body.page-error .error_page__title {
    font-size: 48px;
  }

  body.page-error .error_page__text {
    font-size: 18px;
    margin-bottom: 40px;
  }
}

@media (max-width: 749px) {
  body.page-privacy,
  body.page-consent,
  body.page-error {
    --kadr-header: 60px;
    --container-pad: 20px;
  }

  body.page-privacy .header,
  body.page-consent .header,
  body.page-error .header,
  body.page-privacy .header__inner,
  body.page-consent .header__inner,
  body.page-error .header__inner {
    min-height: var(--kadr-header);
    height: var(--kadr-header);
    padding-top: 9px;
    padding-bottom: 9px;
  }

  body.page-privacy .privacy_page__inner {
    padding-top: 85px;
    padding-bottom: 72px;
  }

  body.page-consent .consent_page__inner {
    padding-top: 85px;
    padding-bottom: 72px;
    gap: 0;
  }

  body.page-privacy .privacy_section {
    gap: 0;
  }

  body.page-consent .consent_section {
    gap: 0;
  }

  body.page-privacy .privacy_section__title {
    font-size: 32px;
  }

  body.page-consent .consent_section__title {
    font-size: 32px;
  }

  body.page-privacy .privacy_section__lead {
    font-size: 12px;
    line-height: normal;
  }

  body.page-consent .consent_section__subtitle {
    font-size: 12px;
    line-height: normal;
    min-height: 0;
  }

  body.page-privacy .privacy_section__body,
  body.page-privacy .privacy_section__body .privacy_p,
  body.page-privacy .privacy_section__body.rich_edit p {
    font-size: 10px;
    line-height: normal;
  }

  body.page-consent .consent_section__body,
  body.page-consent .consent_section__body .consent_p,
  body.page-consent .consent_section__body.rich_edit p,
  body.page-consent .consent_section__body li {
    font-size: 10px;
    line-height: normal;
  }

  body.page-consent .consent_section:first-of-type .consent_section__body .consent_p,
  body.page-consent .consent_section:first-of-type .consent_section__body.rich_edit p,
  body.page-consent .consent_section:first-of-type .consent_section__body li {
    line-height: normal;
  }

  body.page-consent .consent_list {
    padding-left: 0;
  }

  body.page-consent .consent_list li {
    padding: 0 0 0 16px;
  }

  body.page-consent .consent_list li::before {
    left: 4px;
    top: 5px;
    width: 4px;
    height: 4px;
  }

  body.page-consent .consent_page__rule,
  body.page-consent .consent_section:nth-of-type(2) {
    display: none;
  }

  body.page-privacy .privacy_page__glow {
    opacity: 1;
  }

  /* Figma 2525:4460 — glow mobile */
  body.page-privacy .privacy_page__glow--tl {
    top: -1px;
    left: -195px;
    width: 694px;
    height: 626px;
    transform: rotate(-60deg);
  }

  body.page-privacy .privacy_page__glow--tl::before {
    inset: -40.13% -59.2%;
  }

  body.page-privacy .privacy_page__glow--tr {
    top: 769px;
    left: 61px;
    right: auto;
    width: 694px;
    height: 626px;
    transform: rotate(-60deg);
  }

  body.page-privacy .privacy_page__glow--tr::before {
    inset: -40.13% -59.2%;
  }

  body.page-privacy .privacy_page__glow--cm {
    top: 3357px;
    left: -438px;
    width: 694px;
    height: 626px;
    transform: rotate(-60deg);
  }

  body.page-privacy .privacy_page__glow--cm::before {
    top: 50%;
    left: 50%;
    width: 1123px;
    height: 1437px;
    inset: auto;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  body.page-privacy .privacy_page__glow--mr {
    top: 8184px;
    left: 44px;
    right: auto;
    width: 626px;
    height: 694px;
    transform: rotate(30deg);
  }

  body.page-privacy .privacy_page__glow--mr::before {
    top: 50%;
    left: 50%;
    width: 1123px;
    height: 1437px;
    inset: auto;
    margin: 0;
    transform: translate(-50%, -50%) rotate(90deg);
  }

  body.page-privacy .privacy_page__glow--bl {
    top: 5680px;
    left: -390px;
    width: 1060px;
    height: 1175px;
    transform: rotate(30deg);
  }

  body.page-privacy .privacy_page__glow--bl::before {
    top: 50%;
    left: 50%;
    width: 1123px;
    height: 1437px;
    inset: auto;
    margin: 0;
    transform: translate(-50%, -50%) rotate(30deg);
  }

  body.page-consent .consent_page__glow {
    opacity: 1;
  }

  body.page-consent .consent_page__glow--tl {
    top: 260px;
    left: -358px;
    width: 694px;
    height: 626px;
    transform: rotate(-60deg);
  }

  body.page-consent .consent_page__glow--tl::before {
    inset: -40.13% -59.2%;
  }

  body.page-consent .consent_page__glow--tr {
    top: 328px;
    left: 225px;
    right: auto;
    width: 288px;
    height: 346px;
  }

  body.page-consent .consent_page__glow--tr::before {
    inset: -84.97% -102.08%;
  }

  /* Figma 2525:4542 — mid glow left */
  body.page-consent .consent_page__glow--cm {
    display: block;
    top: 1162px;
    left: -258px;
    width: 350px;
    height: 292px;
    transform: rotate(-90.72deg);
  }

  body.page-consent .consent_page__glow--cm::before {
    inset: -84.97% -102.08%;
    background-image: url(/img/consent-glow-tr.svg);
  }

  /* Figma 2525:4543 — mid glow right */
  body.page-consent .consent_page__glow--mr {
    display: block;
    top: 1542px;
    left: 170px;
    right: auto;
    width: 305px;
    height: 360px;
    transform: rotate(2.88deg);
  }

  body.page-consent .consent_page__glow--mr::before {
    inset: -84.97% -102.08%;
    background-image: url(/img/consent-glow-br.svg);
  }

  body.page-consent .consent_page__glow--br {
    top: 2228px;
    left: -169px;
    width: 561px;
    height: 662px;
    transform: rotate(2.88deg);
  }

  body.page-consent .consent_page__glow--br::before {
    top: 50%;
    left: 50%;
    width: 821px;
    height: 991px;
    inset: auto;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  body.page-error .error_page__code {
    font-size: 72px;
    margin-bottom: 12px;
  }

  body.page-error .error_page__title {
    font-size: 32px;
    margin-bottom: 16px;
  }

  body.page-error .error_page__text {
    font-size: 16px;
    margin-bottom: 28px;
  }

  body.page-error .error_page__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body.page-error .error_page__actions .button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    font-size: 20px;
    padding: 14px 24px 10px;
  }
}
