.rating {
  color: #29293a;
  background: white;
  font-size: 16px;
  line-height: 1.55;
}
.rating [hidden] { display: none !important; }
.rating [id] { scroll-margin-top: 125px; }
.r-wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.rating h1, .rating h2, .rating h3, .rating p, .rating figure { margin: 0; }
.rating h1, .rating h2, .rating h3 { color: inherit; font-family: inherit; letter-spacing: -.04em; }
.rating h1 { font-weight: 800; font-size: clamp(46px, 4.4vw, 76px); line-height: 1.02; max-width: 700px; }
.rating h1 em { color: #d50007; font-style: normal; }
.rating h2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.08; font-weight: 700; }
.rating h3 { font-size: 25px; line-height: 1.18; }
.r-hero { background: linear-gradient(118deg, #fff 18%, #fff7f6 68%, #f3effb); border-bottom: 1px solid #ede9ed; }
.r-crumb { padding-top: 26px; color: #555563; font-size: 13px; }
.r-crumb a, .r-secondary, .r-source, .r-inline { color: #283e87; text-underline-offset: 4px; }
.rating a:hover { text-decoration: underline; }
.r-lead { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 3%; padding-block: 54px 64px; }
.r-kicker { font-size: 13px; letter-spacing: .1em; color: #a0000a; text-transform: uppercase; font-weight: 700; }
.r-lead .r-kicker, .r-request .r-kicker { margin-bottom: 17px; }
.rating .r-intro { margin-top: 22px; max-width: 615px; font-size: clamp(16px, 1.25vw, 20px); }
.r-actions { display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: center; margin: 26px 0 17px; }
.r-primary { background: #d60007; color: white; border-radius: 100px; padding: 13px 24px; font-weight: 700; }
.r-primary:hover { background: #b80005; }
.r-secondary, .r-byline { font-size: 14px; }
.r-byline { color: #5c5864; }
.r-byline span { padding-inline: 4px; }
.r-figure { position: relative; isolation: isolate; display: grid; place-items: center; }
.r-figure::before { content: ''; position: absolute; inset: 0 5% 3%; border-radius: 50%; background: radial-gradient(ellipse at 25% 25%, #ffe0db, #e4dcfa); z-index: -1; }
.r-figure img { display: block; width: 100%; height: auto; }
.r-section { padding-block: clamp(44px, 5.5vw, 88px); }
.rating .r-note { max-width: 820px; margin: 16px 0 24px; }
.r-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.r-filters button { font: inherit; cursor: pointer; font-size: 14px; border: 1px solid #d3d1db; border-radius: 100px; background: white; padding: 9px 16px; color: #29293a; }
.r-filters button[aria-pressed=true] { background: #29293a; color: white; border-color: #29293a; }
.rating .r-result { font-size: 13px; color: #605c67; margin: 10px 0; }
.rating table { border-collapse: collapse; width: 100%; text-align: left; font-size: 16px; }
.rating table td, .rating table th { padding: 15px 12px; border-bottom: 1px solid #e1e0e6; }
.rating table thead { color: #5c5865; background: #f5f4f8; font-size: 13px; }
.rating table a { color: inherit; text-decoration: underline; text-decoration-color: #c9c8d0; text-underline-offset: 4px; }
.rating tbody tr:first-child { background: #fff5f4; }
.rating tbody td:first-child { color: #a4000a; font-variant-numeric: tabular-nums; }
.r-band { background: #f8f7fa; }
.r-cards { margin-top: 26px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.r-card { display: flex; flex-direction: column; padding: clamp(22px, 2.5vw, 38px); background: white; border: 1px solid #e5e2e9; border-radius: 20px; }
.r-card:first-child { border-top: 3px solid #d50007; }
.r-card-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.r-card-heading span { color: #b0000c; font-weight: 700; }
.rating .r-case { margin-top: 14px; border-left: 3px solid #d50007; padding-left: 12px; }
.r-inline { display: inline-block; margin-top: 12px; font-weight: 600; }
.rating .r-question { padding-block: 15px; color: #53505c; }
.r-source { margin-top: auto; font-size: 14px; align-self: start; }
.r-guide, .r-request { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px); }
.r-guide p, .r-request p:not(.r-kicker) { margin-top: 16px; }
.r-guide aside { border-radius: 18px; padding: 30px; background: #f9f5f4; }
.r-guide ul { margin: 14px 0 0; padding-left: 20px; }
.r-guide li + li { margin-top: 9px; }
.r-faq details { border-bottom: 1px solid #d7d4de; padding: 16px 0; }
.r-faq details:first-of-type { margin-top: 16px; border-top: 1px solid #d7d4de; }
.r-faq summary { font-weight: 600; font-size: 18px; cursor: pointer; }
.r-faq details p { max-width: 850px; margin-top: 10px; }
.r-request { align-items: center; background: linear-gradient(120deg,#fff1ef,#f0eff9); padding: clamp(24px,4vw,58px); border-radius: 24px; }
.r-request .form { display: grid; width: 100%; max-width: none; gap: 12px; margin: 0; }
.r-request .form__input { padding: 12px 16px; width: 100%; min-height: 48px; margin: 0; background: #fff; border: 1px solid #c9c7d1; border-radius: 10px; color: #29293a; font: inherit; }
.r-request .form__label { margin: 0; }
.r-request .form__btn { width: 100%; margin: 0; padding: 14px 20px; }
.r-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media(max-width: 800px) {
  .r-wrap { width: calc(100% - 40px); }
  .r-guide, .r-request { grid-template-columns: 1fr; }
  .r-lead { grid-template-columns: 1.5fr 1fr; padding-block: 34px; }
  .rating h1 { font-size: clamp(36px,6vw,48px); }
  .rating table { font-size: 14px; }
}
@media(max-width: 600px) {
  .rating [id] { scroll-margin-top: 92px; }
  .r-wrap { width: calc(100% - 32px); }
  .r-crumb { padding-top: 16px; font-size: 12px; }
  .r-lead, .r-cards { grid-template-columns: 1fr; }
  .r-lead { gap: 16px; padding-block: 25px 22px; }
  .r-figure { width: min(240px,75%); justify-self: center; }
  .rating .r-intro { margin-top: 14px; }
  .r-actions { gap: 12px; margin: 18px 0 12px; }
  .r-filters button { padding: 8px 12px; }
  .rating table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .rating tbody, .rating table { display: block; }
  .rating tbody tr { display: grid; grid-template-columns: 33px 1fr; gap: 2px 8px; padding: 13px 12px; border-bottom: 1px solid #e1e0e6; }
  .rating table td, .rating table th { padding: 0; border: 0; }
  .rating tbody td:nth-child(n+3) { grid-column: 2; }
  .rating tbody td:last-child { color: #5a5766; }
  .r-guide aside { padding: 22px; }
}
.r-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.r-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0; accent-color: #c60008; }
.r-consent a { color: #283e87; text-decoration: underline; }

.rating[data-audience="applicant"] .r-cards { grid-template-columns: 1fr; }
.rating .r-card-label { margin: 4px 0 8px; font-weight: 700; color: #a4000a; }
.r-employer-details { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e5e2e9; }
.r-card:first-child > .r-source { margin-top: 10px; }
.rating a:focus-visible, .rating button:focus-visible, .rating summary:focus-visible { outline: 2px solid #283e87; outline-offset: 4px; }

@media (max-width: 600px) {
  .rating[data-audience="applicant"] tbody td:nth-child(3)::before { content: "Кого трудоустраивают"; display: block; font-weight: 600; margin-top: 6px; }
}

/* Place the consultation ticker in the document flow below the forms. */
.rating-page.page__body:has(.ticking_line) { margin-bottom: 0; padding-bottom: 0; }
.rating-page .rating-ticker { position: relative; inset: auto; z-index: auto; cursor: pointer; margin-bottom: clamp(44px, 5.5vw, 88px); }
body.rating-page:has(.cookie-banner:not(.cookie-banner--hidden)) .rating-ticker { visibility: visible; }

.rating #request { padding-bottom: 0; }

.r-filters button[data-filter="applicant"] {
  background: #fff0f0;
  border-color: #e00000;
  color: #b90000;
  font-weight: 700;
}
.r-filters button[data-filter="applicant"]:hover {
  background: #ffe0e0;
}
.r-filters button[data-filter="applicant"][aria-pressed="true"] {
  background: #d60000;
  border-color: #d60000;
  color: #fff;
}
/* Give the title enough space for two deliberate lines. */
.r-lead {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 32px;
  padding-block: 48px 56px;
}
.rating .r-hero h1 {
  max-width: none;
  font-size: clamp(32px, 4.1vw, 62px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.r-hero h1 > span { display: block; white-space: nowrap; }
.r-lead > div { min-width: 0; }
.r-lead .r-figure { width: 100%; max-width: 440px; justify-self: end; }
.rating .r-hero .r-intro { max-width: 590px; line-height: 1.6; margin-top: 24px; }
.r-hero .r-actions { margin-bottom: 0; }
@media (max-width: 1000px) {
  .rating .r-hero h1 { font-size: clamp(28px, 4.1vw, 41px); }
  .r-lead { gap: 20px; }
}
@media (max-width: 600px) {
  .r-lead { grid-template-columns: 1fr; gap: 24px; padding-block: 28px 32px; }
  .rating .r-hero h1 { font-size: clamp(26px, 7.4vw, 44px); }
  .r-lead .r-figure { width: min(280px, 75%); justify-self: center; }
  .rating .r-hero .r-intro { margin-top: 18px; }
}