@font-face {
  font-family: "Manrope IRK";
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope IRK";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Onest IRK";
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest IRK";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body.irk-legal-v2 {
  --irk-ink: #10213b;
  --irk-muted: #62748a;
  --irk-blue: #0f6fbf;
  --irk-blue-dark: #075594;
  --irk-blue-soft: #eaf5ff;
  --irk-green: #189878;
  --irk-line: #dde8f0;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #f4f8fb;
  color: var(--irk-ink);
  font-family: "Onest IRK", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

.irk-legal-v2 *,
.irk-legal-v2 *::before,
.irk-legal-v2 *::after { box-sizing: border-box; }
.irk-legal-v2 img { display: block; max-width: 100%; height: auto; }
.irk-legal-v2 a { color: inherit; text-decoration: none; }
.irk-legal-v2 button { color: inherit; font: inherit; }
.irk-legal-v2 svg { width: 20px; height: 20px; }
.irk-legal-v2 .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.irk-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.irk-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(219, 231, 241, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}
.irk-header__inner { display: flex; min-height: 82px; align-items: center; gap: 42px; }
.irk-brand { display: flex; flex: none; }
.irk-brand img { width: 164px; }
.irk-main-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 620; }
.irk-main-nav a,
.irk-header__clinic { transition: color 160ms ease; }
.irk-main-nav a:hover,
.irk-header__clinic:hover { color: var(--irk-blue); }
.irk-header__actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.irk-header__clinic { color: var(--irk-muted); font-size: 14px; font-weight: 620; }

.irk-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 720;
}
.irk-button--small { min-height: 44px; padding-inline: 17px; border-radius: 14px; font-size: 14px; }
.irk-button--dark { background: var(--irk-ink); color: #fff !important; box-shadow: 0 10px 24px rgba(16, 33, 59, 0.16); }

.irk-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--irk-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.irk-mobile-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  border-radius: 5px;
  background: var(--irk-ink);
  transition: transform 180ms ease, opacity 180ms ease;
}
.irk-mobile-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.irk-mobile-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.irk-mobile-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.irk-mobile-nav { display: none; }

.irk-legal-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 76px;
  border-bottom: 1px solid #dce8f0;
  background:
    radial-gradient(circle at 82% 30%, rgba(34, 185, 154, 0.13), transparent 26%),
    radial-gradient(circle at 10% 92%, rgba(46, 146, 218, 0.15), transparent 30%),
    linear-gradient(135deg, #eff8ff 0%, #fbfdff 54%, #eefaf7 100%);
}
.irk-legal-hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 111, 191, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 96%);
  opacity: 0.2;
  pointer-events: none;
}
.irk-legal-hero .irk-container { position: relative; z-index: 2; }
.irk-breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-bottom: 46px;
  color: #77899d;
  font-size: 11px;
  font-weight: 620;
}
.irk-breadcrumbs a { display: inline-flex; align-items: center; gap: 6px; }
.irk-breadcrumbs a:hover { color: var(--irk-blue); }
.irk-breadcrumbs svg { width: 13px; height: 13px; flex: none; }
.irk-legal-hero__grid { display: grid; grid-template-columns: minmax(0, 790px) 240px; align-items: center; justify-content: space-between; gap: 70px; }
.irk-legal-kicker {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid #cfe2ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--irk-blue-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.irk-legal-hero h1 {
  max-width: 820px;
  margin: 21px 0 20px;
  font-family: "Manrope IRK", sans-serif;
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 760;
  hyphens: auto;
  letter-spacing: -0.06em;
  line-height: 1.02;
  overflow-wrap: break-word;
}
.irk-legal-hero__copy > p { max-width: 720px; margin: 0; color: #536b81; font-size: 17px; line-height: 1.72; }
.irk-legal-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; color: #6f8295; font-size: 12px; font-weight: 620; }
.irk-legal-hero__meta button { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--irk-blue-dark); cursor: pointer; font-weight: 700; }
.irk-legal-hero__meta button:hover { color: var(--irk-blue); }
.irk-legal-hero__meta svg { width: 16px; height: 16px; }
.irk-legal-hero__mark {
  position: relative;
  display: grid;
  width: 210px;
  height: 240px;
  border: 1px solid rgba(199, 220, 234, 0.9);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 70px rgba(30, 76, 108, 0.13);
  place-items: center;
  transform: rotate(3deg);
}
.irk-legal-hero__mark > span { display: grid; width: 92px; height: 92px; border-radius: 28px; background: linear-gradient(145deg, var(--irk-blue), #20aa8d); color: #fff; place-items: center; box-shadow: 0 22px 42px rgba(15, 111, 191, 0.24); }
.irk-legal-hero__mark > span svg { width: 45px; height: 45px; stroke-width: 1.45; }
.irk-legal-hero__mark i { position: absolute; left: 44px; right: 44px; height: 3px; border-radius: 3px; background: #d8e6ef; }
.irk-legal-hero__mark i:nth-of-type(1) { bottom: 42px; }
.irk-legal-hero__mark i:nth-of-type(2) { right: 70px; bottom: 29px; }
.irk-legal-hero__mark i:nth-of-type(3) { right: 92px; bottom: 16px; }

.irk-legal-main { padding: 72px 0 108px; background: #f4f8fb; }
.irk-legal-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 28px; }
.irk-legal-aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.irk-legal-switcher,
.irk-legal-toc,
.irk-legal-help { border: 1px solid var(--irk-line); border-radius: 22px; background: #fff; box-shadow: 0 15px 42px rgba(31, 68, 95, 0.06); }
.irk-legal-switcher { padding: 12px; }
.irk-legal-switcher > span,
.irk-legal-toc > span { display: block; padding: 8px 10px 12px; color: #8696a6; font-size: 9px; font-weight: 760; letter-spacing: 0.09em; text-transform: uppercase; }
.irk-legal-switcher > a { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px; border-radius: 15px; color: #60758a; transition: background 160ms ease, color 160ms ease; }
.irk-legal-switcher > a:hover { background: #f3f8fc; color: var(--irk-blue-dark); }
.irk-legal-switcher > a.is-current { background: var(--irk-blue-soft); color: var(--irk-blue-dark); }
.irk-legal-switcher > a > svg { width: 20px; height: 20px; margin: auto; }
.irk-legal-switcher > a > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.irk-legal-switcher strong { font-size: 12px; font-weight: 720; }
.irk-legal-switcher small { color: #8a9aaa; font-size: 9px; }
.irk-legal-toc { max-height: min(48vh, 520px); padding: 12px; overflow: auto; scrollbar-width: thin; }
.irk-legal-toc[hidden] { display: none; }
.irk-legal-toc div { display: grid; }
.irk-legal-toc a { padding: 7px 10px; border-left: 2px solid #e4edf3; color: #667b8f; font-size: 10px; line-height: 1.42; transition: border-color 160ms ease, color 160ms ease; }
.irk-legal-toc a:hover { border-color: var(--irk-blue); color: var(--irk-blue-dark); }
.irk-legal-toc a.is-subsection { padding-left: 20px; font-size: 9px; }
.irk-legal-help { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; padding: 16px; color: var(--irk-blue-dark); }
.irk-legal-help > svg { width: 21px; height: 21px; margin: auto; }
.irk-legal-help > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.irk-legal-help strong { color: var(--irk-ink); font-size: 11px; }
.irk-legal-help a { font-size: 10px; font-weight: 680; }

.irk-legal-document { min-width: 0; padding: 50px 58px 64px; border: 1px solid var(--irk-line); border-radius: 28px; background: #fff; box-shadow: 0 22px 64px rgba(29, 68, 97, 0.08); }
.irk-legal-document__label { display: flex; align-items: center; gap: 9px; margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid var(--irk-line); color: var(--irk-blue-dark); font-size: 10px; font-weight: 740; letter-spacing: 0.06em; text-transform: uppercase; }
.irk-legal-document__label svg { width: 19px; height: 19px; }
.irk-legal-document__content { color: #354d63; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.irk-legal-document__content > *:first-child { margin-top: 0; }
.irk-legal-document__content > *:last-child { margin-bottom: 0; }
.irk-legal-document__content p { margin: 0 0 22px; }
.irk-legal-document__content h2,
.irk-legal-document__content h3,
.irk-legal-section-title { scroll-margin-top: 24px; }
.irk-legal-document__content h2 {
  margin: 48px 0 16px;
  color: var(--irk-ink);
  font-family: "Manrope IRK", sans-serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1.18;
}
.irk-legal-document__content h3 {
  margin: 30px 0 10px;
  color: var(--irk-ink);
  font-family: "Manrope IRK", sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.3;
}
.irk-legal-document__content a { color: var(--irk-blue-dark); text-decoration: underline; text-decoration-color: rgba(15, 111, 191, 0.3); text-underline-offset: 3px; }
.irk-legal-document__content br { display: block; margin-bottom: 7px; content: ""; }
.irk-legal-section-title {
  display: block;
  margin: 38px 0 10px;
  color: var(--irk-ink);
  font-family: "Manrope IRK", sans-serif;
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.irk-legal-document__content > p:first-child[style*="right"] {
  margin: 0 0 32px auto;
  padding: 18px 20px;
  border: 1px solid #d9e7ef;
  border-radius: 16px;
  background: #f4f9fc;
  color: #64798c;
  font-size: 11px;
  line-height: 1.6;
}

.irk-footer { background: #0b1d33; color: rgba(255, 255, 255, 0.78); }
.irk-footer__top { display: grid; grid-template-columns: 1.35fr repeat(3, 0.65fr); gap: 52px; padding-block: 62px 46px; }
.irk-footer__brand img { width: 164px; filter: brightness(0) invert(1); }
.irk-footer__brand p { max-width: 260px; margin: 17px 0 0; color: rgba(255, 255, 255, 0.52); font-size: 12px; line-height: 1.65; }
.irk-footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 11px; }
.irk-footer nav strong { margin-bottom: 5px; color: #fff; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.irk-footer nav a:hover { color: #fff; }
.irk-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-block: 19px 25px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.46); font-size: 9px; }
.irk-footer__bottom p { margin: 0 0 0 auto; }
.irk-footer__bottom a:hover { color: #fff; }

.irk-scroll-top { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: grid; width: 46px; height: 46px; border: 0; border-radius: 15px; background: var(--irk-ink); color: #fff; cursor: pointer; opacity: 0; place-items: center; pointer-events: none; box-shadow: 0 13px 35px rgba(16, 33, 59, 0.22); transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease; }
.irk-scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.irk-scroll-top svg { width: 18px; height: 18px; }

@media (max-width: 1020px) {
  .irk-main-nav { gap: 18px; }
  .irk-header__clinic { display: none; }
  .irk-legal-hero__grid { grid-template-columns: minmax(0, 1fr) 190px; gap: 45px; }
  .irk-legal-hero__mark { width: 170px; height: 200px; }
  .irk-legal-layout { grid-template-columns: 235px minmax(0, 1fr); gap: 20px; }
  .irk-legal-document { padding-inline: 42px; }
}

@media (max-width: 820px) {
  .irk-main-nav,
  .irk-header__actions > .irk-button { display: none; }
  .irk-mobile-toggle { display: block; }
  .irk-mobile-nav { border-top: 1px solid var(--irk-line); background: #fff; }
  .irk-mobile-nav.is-open { display: block; }
  .irk-mobile-nav nav { display: grid; padding-block: 13px 20px; }
  .irk-mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 11px 3px; border-bottom: 1px solid #edf2f6; font-size: 13px; font-weight: 650; }
  .irk-mobile-nav-open { overflow: hidden; }
  .irk-legal-hero__grid { grid-template-columns: 1fr; }
  .irk-legal-hero__mark { display: none; }
  .irk-legal-layout { grid-template-columns: 1fr; }
  .irk-legal-aside { position: static; grid-template-columns: 1fr 1fr; }
  .irk-legal-switcher { grid-column: 1 / -1; }
  .irk-legal-toc { max-height: none; }
  .irk-footer__top { grid-template-columns: 1.2fr repeat(2, 0.8fr); }
  .irk-footer__top nav:last-child { display: none; }
}

@media (max-width: 560px) {
  .irk-container { width: min(100% - 30px, 1180px); }
  .irk-header__inner { min-height: 70px; }
  .irk-brand img { width: 145px; }
  .irk-breadcrumbs { align-items: flex-start; margin-bottom: 34px; overflow: hidden; white-space: nowrap; }
  .irk-breadcrumbs span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .irk-legal-hero { padding: 27px 0 54px; }
  .irk-legal-hero h1 { margin-top: 17px; font-size: 34px; letter-spacing: -0.05em; }
  .irk-legal-hero__copy > p { font-size: 14px; line-height: 1.65; }
  .irk-legal-hero__meta { gap: 13px; margin-top: 22px; }
  .irk-legal-main { padding: 36px 0 72px; }
  .irk-legal-aside { display: grid; grid-template-columns: 1fr; }
  .irk-legal-switcher { grid-column: auto; }
  .irk-legal-document { padding: 28px 22px 38px; border-radius: 22px; }
  .irk-legal-document__label { margin-bottom: 25px; padding-bottom: 18px; }
  .irk-legal-document__content { font-size: 13px; line-height: 1.76; }
  .irk-legal-document__content h2 { margin-top: 38px; font-size: 27px; }
  .irk-legal-document__content h3 { margin-top: 26px; font-size: 18px; }
  .irk-legal-section-title { margin-top: 32px; font-size: 19px; }
  .irk-footer__top { grid-template-columns: 1fr 1fr; gap: 34px 18px; padding-block: 45px 34px; }
  .irk-footer__brand { grid-column: 1 / -1; }
  .irk-footer__bottom { align-items: flex-start; gap: 14px 20px; }
  .irk-footer__bottom p { width: 100%; margin: 0; }
  .irk-scroll-top { right: 15px; bottom: 15px; }
}

@media print {
  body.irk-legal-v2 { background: #fff; color: #000; }
  .irk-header,
  .irk-legal-hero,
  .irk-legal-aside,
  .irk-footer,
  .irk-scroll-top { display: none !important; }
  .irk-legal-main { padding: 0; background: #fff; }
  .irk-container,
  .irk-legal-layout { display: block; width: 100%; }
  .irk-legal-document { padding: 0; border: 0; box-shadow: none; }
  .irk-legal-document__content { color: #000; font-size: 11pt; }
  .irk-legal-document__content h2,
  .irk-legal-document__content h3,
  .irk-legal-section-title { break-after: avoid; color: #000; }
  .irk-legal-document__content p { orphans: 3; widows: 3; }
}
