/* 404 and legal documents: page-scoped additions loaded after the shared base bundle. */

.site-page.route-404 .lost-hero {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 18%, rgba(2, 175, 242, .22), transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(42, 201, 174, .16), transparent 31%),
    linear-gradient(135deg, #effbff 0%, #f8fcfd 48%, #e8f7fb 100%);
}

.site-page.route-404 .lost-hero::before,
.site-page.route-404 .lost-hero::after {
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(0, 117, 163, .12);
  border-radius: 50%;
  content: "";
}

.site-page.route-404 .lost-hero::before {
  top: -230px;
  left: -120px;
}

.site-page.route-404 .lost-hero::after {
  right: -170px;
  bottom: -260px;
  width: 520px;
  height: 520px;
}

.site-page.route-404 .lost-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  padding-top: 34px;
  padding-bottom: clamp(72px, 8vw, 112px);
}

.site-page.route-404 .lost-hero .crumbs {
  grid-column: 1 / -1;
  margin-bottom: -16px;
}

.site-page.route-404 .lost-hero__copy {
  max-width: 760px;
}

.site-page.route-404 .lost-hero__copy h1 {
  max-width: 760px;
  margin: 12px 0 22px;
  font-size: clamp(52px, 6.2vw, 92px);
  line-height: .98;
  letter-spacing: -.06em;
}

.site-page.route-404 .lost-hero__copy > p {
  max-width: 650px;
  margin: 0;
  color: #526d7b;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.62;
}

.site-page.route-404 .lost-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.site-page.route-404 .lost-actions .btn {
  gap: 10px;
  min-height: 54px;
  padding-inline: 24px;
}

.site-page.route-404 .lost-actions .lost-phone {
  color: #183342;
  border-color: rgba(24, 51, 66, .18);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 26px rgba(24, 51, 66, .09);
}

.site-page.route-404 .lost-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 410px;
}

.site-page.route-404 .lost-code {
  position: relative;
  z-index: 2;
  color: #08779f;
  font-size: clamp(116px, 15vw, 230px);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.095em;
  text-shadow: 0 25px 50px rgba(0, 117, 163, .14);
}

.site-page.route-404 .lost-code span {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 3px #02aff2;
}

.site-page.route-404 .lost-orbit {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px dashed rgba(0, 117, 163, .28);
  border-radius: 50%;
}

.site-page.route-404 .lost-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #2ac9ae;
  box-shadow: 0 8px 18px rgba(24, 51, 66, .16);
}

.site-page.route-404 .lost-dot--one { top: 46px; right: 45px; }
.site-page.route-404 .lost-dot--two { right: 21px; bottom: 97px; width: 20px; height: 20px; background: #02aff2; }
.site-page.route-404 .lost-dot--three { bottom: 42px; left: 57px; width: 11px; height: 11px; background: #08779f; }

.site-page.route-404 .lost-links {
  padding: clamp(58px, 7vw, 92px) 0;
  background: #fff;
}

.site-page.route-404 .lost-links__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.site-page.route-404 .lost-links__head h2 {
  max-width: 700px;
  margin: 7px 0 0;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.08;
}

.site-page.route-404 .lost-links__head > p {
  max-width: 480px;
  margin: 0;
  color: #526d7b;
}

.site-page.route-404 .lost-links__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.site-page.route-404 .lost-link-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 16px;
  min-height: 142px;
  padding: 26px;
  color: #183342;
  border: 1px solid #d9e8ee;
  border-radius: 18px;
  background: #f9fcfd;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.site-page.route-404 .lost-link-card:hover,
.site-page.route-404 .lost-link-card:focus-visible {
  color: #183342;
  border-color: rgba(2, 175, 242, .54);
  background: #fff;
  box-shadow: 0 18px 42px rgba(24, 51, 66, .1);
  transform: translateY(-3px);
}

.site-page.route-404 .lost-link-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #08779f;
  border-radius: 15px;
  background: #e5f7fc;
  font-size: 20px;
}

.site-page.route-404 .lost-link-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 19px;
  line-height: 1.25;
}

.site-page.route-404 .lost-link-card small {
  display: block;
  color: #647d89;
  font-size: 14px;
  line-height: 1.45;
}

.site-page.route-404 .lost-link-card > i {
  color: #08779f;
}

.site-page.legal-support-page .legal-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 66px;
  border-bottom: 1px solid #d9e8ee;
  background:
    linear-gradient(90deg, rgba(234, 248, 252, .97), rgba(255, 255, 255, .82)),
    url("../img/hero-waves-visible-04.svg") center / cover no-repeat;
}

.site-page.legal-support-page .legal-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 370px);
  align-items: end;
  gap: clamp(38px, 6vw, 88px);
}

.site-page.legal-support-page .legal-hero__grid > * {
  min-width: 0;
}

.site-page.legal-support-page .legal-hero h1 {
  max-width: 980px;
  margin: 10px 0 18px;
  font-size: clamp(42px, 4.9vw, 68px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.site-page.legal-support-page .legal-hero__lead {
  max-width: 820px;
  margin: 0;
  color: #526d7b;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.62;
}

.site-page.legal-support-page .legal-hero__stamp {
  position: relative;
  align-self: stretch;
  display: grid;
  align-content: end;
  min-height: 236px;
  padding: 27px;
  color: #fff;
  border-radius: 24px;
  background: linear-gradient(145deg, #183342, #0d617c);
  box-shadow: 0 24px 55px rgba(24, 51, 66, .2);
}

.site-page.legal-support-page .legal-hero__stamp::before {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 55px;
  height: 55px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  content: "";
}

.site-page.legal-support-page .legal-hero__stamp i {
  position: absolute;
  top: 41px;
  right: 42px;
  font-size: 20px;
}

.site-page.legal-support-page .legal-hero__stamp small,
.site-page.legal-support-page .legal-hero__stamp span {
  display: block;
}

.site-page.legal-support-page .legal-hero__stamp small {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 800;
}

.site-page.legal-support-page .legal-hero__stamp strong {
  font-size: 19px;
  line-height: 1.35;
}

.site-page.legal-support-page .legal-hero__stamp span {
  margin-top: 9px;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
}

.site-page.legal-support-page .legal-section {
  padding: clamp(32px, 3.6vw, 50px) 0 clamp(58px, 7vw, 96px);
  background: #f3f8fa;
}

.site-page.legal-support-page .legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 54px);
}

.site-page.legal-support-page .legal-layout > *,
.site-page.legal-support-page .legal-paper,
.site-page.legal-support-page .legal-block {
  min-width: 0;
}

.site-page.legal-support-page .legal-toc {
  position: sticky;
  top: 112px;
  padding: 22px;
  border: 1px solid #d9e8ee;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 34px rgba(24, 51, 66, .06);
}

.site-page.legal-support-page .legal-toc > span {
  display: block;
  margin-bottom: 13px;
  color: #718894;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 800;
}

.site-page.legal-support-page .legal-toc nav {
  display: grid;
  gap: 2px;
}

.site-page.legal-support-page .legal-toc a {
  padding: 9px 10px;
  color: #476471;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.site-page.legal-support-page .legal-toc a:hover,
.site-page.legal-support-page .legal-toc a:focus-visible {
  color: #006f99;
  background: #eaf8fc;
}

.site-page.legal-support-page .legal-toc__meta {
  display: grid;
  gap: 3px;
  margin-top: 18px;
  padding: 15px 10px 0;
  border-top: 1px solid #d9e8ee;
}

.site-page.legal-support-page .legal-toc__meta small {
  color: #718894;
  font-size: 11px;
}

.site-page.legal-support-page .legal-toc__meta strong {
  color: #183342;
  font-size: 13px;
}

.site-page.legal-support-page .legal-paper {
  padding: clamp(28px, 4.5vw, 58px);
  border: 1px solid #d9e8ee;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(24, 51, 66, .08);
}

.site-page.legal-support-page .legal-paper__intro {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 38px;
  padding: 22px;
  border: 1px solid #bee4ef;
  border-radius: 16px;
  background: #effafd;
}

.site-page.legal-support-page .legal-paper__intro > i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 15px;
  background: #08779f;
  font-size: 20px;
}

.site-page.legal-support-page .legal-paper__intro strong {
  display: block;
  margin-bottom: 4px;
  color: #183342;
  font-size: 17px;
}

.site-page.legal-support-page .legal-paper__intro p {
  margin: 0;
}

.site-page.legal-support-page .legal-block {
  scroll-margin-top: 120px;
  padding: 34px 0;
  border-top: 1px solid #e1ebef;
}

.site-page.legal-support-page .legal-paper__intro + .legal-block {
  padding-top: 0;
  border-top: 0;
}

.site-page.legal-support-page .legal-block:last-child {
  padding-bottom: 0;
}

.site-page.legal-support-page .legal-block h2 {
  margin: 0 0 16px;
  color: #183342;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.site-page.legal-support-page .legal-block h3 {
  margin: 24px 0 9px;
  color: #183342;
  font-size: 19px;
  line-height: 1.3;
}

.site-page.legal-support-page .legal-block p,
.site-page.legal-support-page .legal-block li,
.site-page.legal-support-page .legal-table {
  color: #526d7b;
}

.site-page.legal-support-page .legal-block p {
  margin: 0 0 13px;
}

.site-page.legal-support-page .legal-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.site-page.legal-support-page .legal-list li {
  position: relative;
  padding-left: 25px;
}

.site-page.legal-support-page .legal-list li::before {
  position: absolute;
  top: .64em;
  left: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #02aff2;
  box-shadow: 0 0 0 4px rgba(2, 175, 242, .11);
  content: "";
}

.site-page.legal-support-page .legal-requisites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.site-page.legal-support-page .legal-requisites > div {
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid #e1ebef;
  border-radius: 12px;
  background: #f8fbfc;
}

.site-page.legal-support-page .legal-requisites dt {
  margin-bottom: 4px;
  color: #718894;
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: 11px;
  font-weight: 800;
}

.site-page.legal-support-page .legal-requisites dd {
  margin: 0;
  color: #183342;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.site-page.legal-support-page .legal-table-scroll {
  max-width: 100%;
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid #d9e8ee;
  border-radius: 14px;
}

.site-page.legal-support-page .legal-table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.site-page.legal-support-page .legal-table th,
.site-page.legal-support-page .legal-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #e1ebef;
  text-align: left;
  vertical-align: top;
}

.site-page.legal-support-page .legal-table th {
  color: #183342;
  background: #eef8fb;
  font-size: 12px;
  font-weight: 800;
}

.site-page.legal-support-page .legal-table tr:last-child td {
  border-bottom: 0;
}

.site-page.legal-support-page .legal-note {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 4px solid #02aff2;
  border-radius: 0 12px 12px 0;
  background: #f3f9fb;
}

.site-page.legal-support-page .legal-note strong {
  color: #183342;
}

.site-page.legal-support-page .legal-block a {
  color: #006f99;
  font-weight: 700;
  text-underline-offset: 3px;
}

.site-page.legal-support-page .legal-signature {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding: 20px;
  border: 1px dashed #b8d6df;
  border-radius: 14px;
  background: #fbfdfe;
}

.site-page.legal-support-page .legal-signature strong {
  color: #183342;
}

.site-page.legal-support-page .legal-signature span {
  color: #647d89;
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-page.route-404 .lost-hero__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-page.route-404 .lost-visual {
    min-height: 280px;
  }

  .site-page.route-404 .lost-orbit {
    width: 290px;
    height: 290px;
  }

  .site-page.route-404 .lost-links__grid {
    grid-template-columns: 1fr;
  }

  .site-page.legal-support-page .legal-hero__grid {
    grid-template-columns: 1fr;
  }

  .site-page.legal-support-page .legal-hero__stamp {
    min-height: 190px;
  }

  .site-page.legal-support-page .legal-layout {
    grid-template-columns: 1fr;
  }

  .site-page.legal-support-page .legal-toc {
    position: static;
  }

  .site-page.legal-support-page .legal-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-page.route-404 .lost-hero {
    min-height: 0;
  }

  .site-page.route-404 .lost-hero__inner {
    padding-top: 22px;
    padding-bottom: 56px;
  }

  .site-page.route-404 .lost-hero .crumbs {
    margin-bottom: 2px;
  }

  .site-page.route-404 .lost-hero__copy h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .site-page.route-404 .lost-actions {
    display: grid;
  }

  .site-page.route-404 .lost-actions .btn {
    width: 100%;
  }

  .site-page.route-404 .lost-visual {
    min-height: 210px;
  }

  .site-page.route-404 .lost-code {
    font-size: 112px;
  }

  .site-page.route-404 .lost-orbit {
    width: 220px;
    height: 220px;
  }

  .site-page.route-404 .lost-links__head {
    display: block;
  }

  .site-page.route-404 .lost-links__head > p {
    margin-top: 13px;
  }

  .site-page.route-404 .lost-link-card {
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    min-height: 124px;
    padding: 20px;
  }

  .site-page.route-404 .lost-link-card__icon {
    width: 48px;
    height: 48px;
  }

  .site-page.legal-support-page .legal-hero {
    padding: 23px 0 44px;
  }

  .site-page.legal-support-page .legal-hero h1 {
    overflow-wrap: anywhere;
    font-size: clamp(32px, 9.5vw, 44px);
    hyphens: auto;
  }

  .site-page.legal-support-page .legal-hero__stamp {
    min-height: 170px;
    padding: 22px;
  }

  .site-page.legal-support-page .legal-section {
    padding: 28px 0 42px;
  }

  .site-page.legal-support-page .legal-toc {
    padding: 18px;
  }

  .site-page.legal-support-page .legal-toc nav {
    grid-template-columns: 1fr;
  }

  .site-page.legal-support-page .legal-paper {
    padding: 24px 19px;
    border-radius: 18px;
  }

  .site-page.legal-support-page .legal-paper__intro {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .site-page.legal-support-page .legal-block {
    padding: 28px 0;
  }

  .site-page.legal-support-page .legal-requisites {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-page.legal-support-page .head,
  .site-page.legal-support-page .site-footer,
  .site-page.legal-support-page .legal-toc,
  .site-page.legal-support-page .legal-hero__stamp {
    display: none !important;
  }

  .site-page.legal-support-page .legal-hero,
  .site-page.legal-support-page .legal-section {
    padding: 20px 0;
    background: #fff;
  }

  .site-page.legal-support-page .legal-paper {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
