/* Repairs shared by the restored pages. The approved landing composition,
   native navigation, footer artwork and product blocks stay unchanged. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  scroll-padding-top: 90px;
}

body,
button,
input,
textarea,
select,
.tn-atom,
.tn-atom span,
[style*="Nunito"],
[style*="Arimo"],
.t-descr,
.t-descr span,
.t-descr strong,
.t-btnflex,
.t-btnflex__text {
  font-family: Inter, Arial, sans-serif !important;
}

#allrecords {
  width: 100%;
  max-width: 100%;
}

/* Imported articles had a different font token and automatic grid minimums.
   Long Russian titles expanded the grid beyond the phone viewport. */
#rihlp {
  --f: Inter, Arial, sans-serif !important;
}

#rihlp .layout {
  grid-template-columns: 248px minmax(0, 1fr) !important;
}

#rihlp .layout > *,
#rihlp .hero .in > *,
.kb-layout > *,
.kb-grid > * {
  min-width: 0;
}

.kb-hero .kb-search {
  display: block;
  width: 100%;
  max-width: 720px;
  min-width: 0;
}

.kb-hero .kb-search input {
  box-sizing: border-box;
  max-width: 100%;
}

.kb-grid .kb-card[hidden],
.rih-blog-card[hidden] {
  display: none !important;
}

#rihlp .toc,
#rihlp article,
main.article,
main.article .content {
  overflow-wrap: anywhere;
}

#rihlp .tbl-wrap,
main.article .content table {
  max-width: 100%;
  overflow-x: auto;
}

main.article .content table {
  display: block;
}

main.article .content iframe,
main.article .content video {
  width: 100%;
  max-width: 100%;
}

/* Feed exports omit the original video wrapper stylesheet. Keep the complete
   frame visible, with a proportional height rather than height="100%". */
main.article .content figure { margin: 24px 0; max-width: 100%; }
main.article .t-redactor__video-container { position: relative; width: 100%; aspect-ratio: 16 / 9; }
main.article .t-redactor__video-container iframe { position: absolute; inset: 0; height: 100%; border: 0; }

/* Standard Tilda sliders already use responsive widths. Zero Block's page-wide
   zoom must not scale their measured slide widths a second time. */
body[data-rih-route="/prilozhenie-dlya-prokata"] #rec340333204 { zoom: 1 !important; }
body[data-rih-route="/prilozhenie-dlya-prokata"] .t994__bgimg { background-size: contain !important; background-repeat: no-repeat; }

@media (max-width: 640px) {
  #rec629501014 [data-group-id="1779889171850000008"],
  #rec629501014 #molecule-1779889171850000008 { height: auto !important; min-height: 160px; }
  #rec629501014 #molecule-1779889171850000008 > .tn-elem {
    position: relative !important; inset: auto !important; width: 100% !important; height: auto !important;
  }
  main.article .content { padding: 20px 16px; }
}

#rihlp [id],
.kb-main [id],
main.article [id] {
  scroll-margin-top: 90px;
}

/* Preserve the native social artwork and the actual dropdown menu. */
#t-header .t-btnflex,
#t-footer .tn-atom,
#t-header .t-btnflex__text {
  font-family: Inter, Arial, sans-serif !important;
}

@media (max-width: 900px) {
  #rihlp .layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 480px) {
  #rihlp .gl-h {
    gap: 8px;
    flex-wrap: wrap;
  }

  #rihlp .hero .in {
    grid-template-columns: minmax(0, 1fr);
  }

  main.article {
    width: calc(100% - 32px);
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #0aa89e;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

.rih-consent {
  position: fixed;
  z-index: 100002;
  left: 24px;
  bottom: 24px;
  box-sizing: border-box;
  width: min(390px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid #dce9e7;
  border-radius: 20px;
  background: #fff;
  color: #2d4150;
  box-shadow: 0 10px 36px rgba(45,65,80,.16);
  font: 12px/1.45 Inter, Arial, sans-serif;
}

.rih-consent[hidden],
.rih-consent [hidden] { display: none !important; }
.rih-consent h2 { margin: 0 0 6px; font-size: 14px; line-height: 1.3; letter-spacing: -.02em; }
.rih-consent p { margin: 0 0 10px; }
.rih-consent a { color: #078e83 !important; text-decoration: underline; }
.rih-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rih-consent button { min-height: 44px; border-radius: 8px; border: 1px solid #168c80; padding: 6px 9px; color: #fff; background: #0b9f93; font-size: 12px; line-height: 1.3; cursor: pointer; }
.rih-consent button[data-choice="essential"],
.rih-consent button[data-choice="settings"] { background: #fff; color: #078e83; }
.rih-consent-options label { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; font-weight: 600; }
.rih-consent-options input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: #0b9f93; }
.rih-consent-options small { display: block; color: #687b83; font-weight: 400; font-size: 12px; margin-top: 3px; }
.rih-consent-options p { font-size: 12px; color: #687b83; }
.rih-consent .rih-consent-actions button { box-sizing: border-box; height: auto; min-height: 44px; padding: 6px 9px; }

@media (max-width: 550px) {
  /* The Jivo launcher sits bottom-left on phones. */
  .rih-consent { left: 92px; right: 12px; bottom: 12px; width: auto; padding: 12px; }
  .rih-consent-actions { gap: 6px; }
  .rih-consent-actions button { flex: 1 1 auto; }
}

.rih-contact-card {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid #dce9e7;
  border-radius: 30px;
  background: #f5faf9;
  color: #2d4150;
  font: 17px/1.65 Inter, Arial, sans-serif;
}
.rih-contact-card h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin: 0 0 18px; font-weight: 650; }
.rih-contact-card p { margin: 0 0 20px; }
.rih-contact-card a { color: #087f75 !important; }
.rih-contact-card .rih-contact-action { display: inline-flex; gap: 18px; align-items: center; min-height: 48px; padding: 12px 22px; box-sizing: border-box; border-radius: 30px; background: #0aa89e; color: #fff !important; font-weight: 600; text-decoration: none; }
.rih-contact-card .rih-contact-address { margin-top: 12px; font-weight: 600; overflow-wrap: anywhere; }
.rih-contact-card .rih-contact-note { margin-bottom: 0; color: #687b83; font-size: 14px; }

/* Role-based editorial scale; leave the legacy landing's positioned geometry
   untouched. Inner spans in imported updates must not retain a second font. */
:root {
  --rih-type-body: 16px;
  --rih-type-label: 14px;
  --rih-type-card: 20px;
}
.t776 span, .t776 strong, .kb-card span,
#rihlp, #rihlp p, #rihlp li {
  font-family: Inter, Arial, sans-serif !important;
}
.rih-blog-filter, .kb-filter {
  font-size: var(--rih-type-label) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}
.rih-blog-count, .kb-card small { font-size: 12px !important; }
#rec340156600 .t-card__title, .kb-card strong, #rec763291025 .t776__title {
  font-size: var(--rih-type-card) !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}
#rec340156600 .t-card__descr, .kb-card em, #rec763291025 .t776__descr {
  font-size: var(--rih-type-body) !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}
main.article .content, #rihlp article, .rih-legal-content {
  font-size: var(--rih-type-body) !important;
  line-height: 1.75 !important;
}
@media (max-width: 560px) {
  :root { --rih-type-card: 18px; }
}
.t794__tooltip-menu:has(.rih-language-choice) { min-width: 112px !important; }
.rih-language-choice { display: flex !important; align-items: center; justify-content: center; gap: 10px; min-height: 44px; font-family: Inter, Arial, sans-serif !important; font-size: 16px !important; color: #04a89f !important; }
.rih-language-flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 22px; line-height: 1; }
.rih-mobile-languages { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 20px; border-top: 1px solid #dce5e5; padding-top: 12px; }
