@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap");

@font-face {
  font-family: "Source Code Pro";
  src: url("fonts/SourceCodePro-Regular.45a9e965b61b.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #3d5aff;
  --dark: #0f243d;
  --soft: #edf6ff;
  --gray: #f6f6f6;
  --muted: #a6a6a6;
  --white: #fff;
  --radius: 28px;
}

* { box-sizing: border-box; }
[hidden], [x-cloak] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--dark);
  font: 400 16px/1.5 Onest, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
button, input, textarea, select { font: inherit; }
.main-content { flex: 1; }
.container-wide { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.container-page { width: min(980px, calc(100% - 64px)); margin-inline: auto; padding: 56px 0 96px; }
.feed-wrap, .home-page { padding: 56px 0 96px; }
.page-section { max-width: 656px; margin-bottom: 30px; }
.home-page__heading { margin-top: 80px; }
.section-title {
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.055em;
}
.page-lead { max-width: 656px; margin-bottom: 34px; font-size: 21px; line-height: 1.5; }
.container-page > .article-body { max-width: 656px; }
@media (min-width: 981px) {
  .container-page > .article-body > img.richtext-image,
  .container-page > .article-body > figure.captioned-image {
    width: 800px;
    max-width: none;
    margin-left: 0;
  }
  .container-page > .article-body > figure.captioned-image img { width: 100%; }
}
.feed-empty { grid-column: 1/-1; padding: 64px 0; text-align: center; color: var(--muted); }

/* Header */
.site-header { position: sticky; z-index: 40; top: 0; background: var(--white); border-bottom: 1px solid var(--gray); }
.header-inner { height: 82px; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.header-logo, .header-logo img { display: block; width: 200px; }
.header-nav { display: flex; justify-content: center; align-items: center; gap: 22px; min-width: 0; white-space: nowrap; }
.header-nav a, .subnav a { font-size: 16px; font-weight: 500; }
.header-nav a:hover, .header-nav a[aria-current="page"], .subnav a:hover, .subnav a[aria-current="page"] { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.search-link, .btn-ctf {
  min-height: 42px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
}
.search-link { background: var(--gray); }
.btn-ctf { background: var(--blue); color: var(--white); }
.btn-ctf:hover { background: var(--dark); color: var(--white); }
.subnav { min-height: 54px; display: flex; align-items: center; gap: 34px; overflow-x: auto; border-top: 1px solid var(--gray); scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.burger-wrap { display: none; position: relative; }
.burger { min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--gray); color: var(--dark); font-weight: 700; }
.mobile-menu { position: absolute; z-index: 60; top: 52px; right: 0; width: min(320px, calc(100vw - 32px)); padding: 14px; border: 1px solid var(--soft); border-radius: 24px; background: var(--white); }
.mobile-menu a { display: block; padding: 10px 14px; border-radius: 14px; font-weight: 600; }
.mobile-menu a:hover { background: var(--soft); color: var(--blue); }

/* Cards and feeds */
.feed-stack { display: grid; gap: 28px; }
.feed-grid, .articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.home-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.hero-main, .hero-side { border-radius: var(--radius); overflow: hidden; }
.hero-main { min-height: 470px; padding: 42px 64px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--blue); color: var(--white); }
.hero-main:hover { color: var(--white); background: var(--blue); }
.hero-main span, .hero-side small { font-size: 13px; font-weight: 700; letter-spacing: .07em; }
.hero-main h1 { margin: 18px 0 20px; font-size: clamp(44px, 4.4vw, 78px); line-height: .98; letter-spacing: -.06em; }
.hero-main p { max-width: 730px; font-size: 21px; line-height: 1.45; }
.hero-side { min-height: 470px; padding: 38px; display: flex; flex-direction: column; background: var(--soft); }
.hero-side__cover { height: 190px; margin-bottom: 34px; display: block; border-radius: 22px; background: var(--blue); }
.hero-side small { color: var(--blue); }
.hero-side h2 { margin: 12px 0 14px; font-size: 30px; line-height: 1.13; letter-spacing: -.04em; }
.hero-side p { margin-top: auto; color: rgba(15, 36, 61, .62); }
.form-page { padding-top: 70px; padding-bottom: 100px; }
.eyebrow { color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.suggest-form { max-width: 760px; margin-top: 42px; }
.form-field { margin: 0 0 24px; }
.form-field label { display: block; margin-bottom: 9px; font-weight: 700; }
.form-field input, .form-field textarea { box-sizing: border-box; width: 100%; border: 1px solid rgba(15, 36, 61, .25); border-radius: 12px; padding: 14px 16px; font: inherit; color: var(--ink); background: var(--white); }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 3px solid rgba(82, 91, 245, .2); border-color: var(--blue); }
.form-error { margin-top: 7px; color: #be1e2d; }
.article-card {
  min-height: 390px;
  padding: 18px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  background: var(--gray);
  transition: background-color .18s;
}
.article-card:nth-child(3n + 2) { background: var(--soft); }
.article-card:hover { background: var(--soft); }
.article-card__cover { height: 190px; margin-bottom: 22px; overflow: hidden; border-radius: 22px; background: var(--blue); }
.article-card__cover img, .article-card__placeholder { width: 100%; height: 100%; display: block; object-fit: cover; }
.article-card__placeholder { background: var(--blue); }
.article-card__body { flex: 1; display: flex; flex-direction: column; }
.article-card__date { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.article-card__title { margin: 10px 0 8px; font-size: 23px; line-height: 1.14; letter-spacing: -.03em; }
.article-card__lead { margin-top: auto; color: rgba(15, 36, 61, .66); font-size: 14px; line-height: 1.45; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.system-block {
  position: relative;
  min-height: 300px;
  padding: 38px;
  overflow: hidden;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  background: var(--gray);
  color: var(--dark);
}
.system-block--wide { grid-column: span 2; }
.system-block--compact { grid-column: span 1; min-height: 300px; padding: 30px; background: var(--soft); }
.system-block--compact .system-block__content { max-width: 100%; }
.system-block--compact .system-block__title { font-size: 28px; }
.system-block:hover { color: var(--dark); background: var(--soft); }
.system-block__content { position: relative; z-index: 2; max-width: 62%; }
.system-block__title { margin-bottom: 12px; color: var(--blue); font-size: 35px; line-height: 1.12; letter-spacing: -.04em; }
.system-block__text { margin-bottom: 24px; font-size: 17px; line-height: 1.45; }
.system-block__art { position: absolute; z-index: 1; inset: 0 0 0 auto; width: 45%; height: 100%; object-fit: contain; object-position: center; }
.pagination { display: flex; justify-content: center; margin-top: 2px; }
.load-more { min-width: 142px; }

/* Article */
.article-header { max-width: 900px; }
.article-title { margin: 16px 0 24px; font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -.06em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 14px; }
.article-cover { margin-top: 28px; }
.article-cover img { width: 100%; display: block; border-radius: var(--radius); }
.article-updated { margin-top: 12px; color: var(--muted); font-size: 13px; }
.article-layout { margin-top: 38px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; align-items: start; }
.article-body { min-width: 0; font-size: 18px; line-height: 1.72; }
.article-body__lead { margin-bottom: 28px; font-size: 23px; line-height: 1.5; font-weight: 500; }
.article-body h2 { margin: 48px 0 18px; font-size: 34px; line-height: 1.15; letter-spacing: -.04em; scroll-margin-top: 150px; }
.article-body h3 { margin: 34px 0 14px; font-size: 25px; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body pre, .article-body figure { margin: 0 0 22px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body blockquote { padding: 26px 30px; border-radius: 22px; background: var(--soft); font-size: 20px; }
.article-body pre { position: relative; padding: 22px; overflow-x: auto; border-radius: 20px; background: var(--dark); color: var(--white); font: 15px/1.6 "Source Code Pro", monospace; }
.article-body pre code.hljs { padding: 0; overflow: visible; border-radius: 0; background: transparent; font-family: inherit; }
.code-copy { position: absolute; z-index: 1; top: 12px; right: 12px; border: 0; border-radius: 10px; padding: 7px 10px; cursor: pointer; background: rgba(255, 255, 255, .14); color: var(--white); font: 600 12px/1 Onest, Arial, sans-serif; }
.code-copy:hover { background: rgba(255, 255, 255, .24); }
.article-body img, .article-body iframe, .article-body video { max-width: 100%; border-radius: 22px; }
.article-body .captioned-image { margin: 0 0 26px; }
.captioned-image figcaption { margin-top: 9px; color: rgba(15, 36, 61, .62); font-size: 14px; line-height: 1.45; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.margin-note { display: block; width: 240px; margin: 8px -312px 20px 28px; float: right; font-size: 15px; line-height: 1.4; }
.margin-note a { color: var(--blue); font-weight: 500; }
.article-layout .margin-note { width: auto; margin: 0 0 22px; float: none; padding: 16px 18px; border-radius: 18px; background: var(--soft); }
.toc-card { position: sticky; top: 158px; padding: 24px; border-radius: 24px; background: var(--gray); }
.toc-title { margin-bottom: 12px; font-size: 16px; }
.toc-list { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.toc-list a { font-size: 14px; line-height: 1.35; }
.related-section { padding: 10px 0 96px; }
.related-section .section-title { font-size: 44px; }

/* Images begin on the text column and extend only to the right. */
@media (min-width: 981px) {
  .article-layout .article-body > img.richtext-image,
  .article-layout .article-body > figure.captioned-image {
    width: 800px;
    max-width: none;
    margin-left: 0;
  }
  .article-layout .article-body > figure.captioned-image img { width: 100%; }
}

/* Calendar */
.calendar-toolbar { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calendar-toolbar__nav { display: flex; gap: 8px; }
.chip-nav { min-height: 40px; padding: 0 17px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--gray); font-weight: 600; }
.calendar-card { padding: 28px; overflow-x: auto; border-radius: var(--radius); background: var(--gray); }
.calendar-title { margin-bottom: 22px; text-align: center; color: var(--blue); font-size: 30px; }
.calendar-weekdays, .calendar-grid { min-width: 790px; display: grid; grid-template-columns: repeat(7, minmax(105px, 1fr)); gap: 8px; }
.calendar-weekdays { margin-bottom: 8px; color: var(--blue); font-size: 12px; font-weight: 700; text-align: center; }
.calendar-cell { min-height: 120px; padding: 12px; border: 2px solid transparent; border-radius: 20px; background: var(--white); }
.calendar-cell.is-today { border-color: var(--blue); }
.calendar-cell.is-empty { visibility: hidden; }
.calendar-cell__day { margin-bottom: 8px; font-weight: 700; }
.calendar-cell__events { display: grid; gap: 6px; }
.calendar-event { padding: 7px 8px; overflow: hidden; border-radius: 10px; background: var(--blue); color: var(--white); font-size: 11px; line-height: 1.25; text-overflow: ellipsis; }
.calendar-event:hover { background: var(--dark); color: var(--white); }
.calendar-events, .embedded-feed { margin-top: 64px; }
.calendar-events .section-title, .embedded-feed .section-title { font-size: 44px; }
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.sidebar-sticky { position: sticky; top: 158px; }
.calendar-mini { min-height: 0; padding: 30px 24px; border-radius: var(--radius); background: var(--soft); }
.calendar-mini__title { margin: 0 0 18px; color: var(--ink); font-size: 28px; font-weight: 700; letter-spacing: -.04em; }
.calendar-mini__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calendar-mini__month { color: var(--blue); font-size: 21px; font-weight: 700; text-align: center; }
.calendar-mini__chips { margin: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chip-nav--small { min-height: 32px; padding: 0 11px; font-size: 12px; }
.chip-nav.is-active { background: var(--blue); color: var(--white); }
.event-row { margin-bottom: 7px; padding: 10px 12px; border-radius: 14px; display: grid; grid-template-columns: 54px 1fr; gap: 8px; background: var(--white); font-size: 13px; }
.event-row__date { color: var(--blue); font-weight: 700; }
.event-row__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-mini__empty { padding: 24px 0 34px; color: rgba(15, 36, 61, .65); text-align: center; }
.calendar-mini__link { margin-top: 14px; display: block; color: var(--blue); font-weight: 700; text-align: center; }

/* Authors, career, forms */
.author-card { padding: 30px; border-radius: var(--radius); background: var(--gray); }
.author-card:nth-child(2n) { background: var(--soft); }
.author-card__head { display: flex; align-items: center; gap: 18px; }
.author-card__photo, .author-card__avatar { width: 88px; height: 88px; flex: 0 0 auto; border-radius: 50%; }
.author-card__photo { object-fit: cover; }
.author-card__avatar { display: grid; place-items: center; background: var(--blue); color: var(--white); font-size: 30px; font-weight: 700; }
.author-card__name { font-size: 25px; line-height: 1.1; }
.author-card__role { margin-top: 5px; color: var(--blue); font-weight: 600; }
.author-card__bio { margin-top: 20px; }
.author-card__socials { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.author-card__divider { margin: 22px 0; border: 0; border-top: 1px solid var(--white); }
.author-card__articles { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.author-more { margin: 22px auto 0; display: flex; }
.career-intro { margin-bottom: 34px; padding: 34px; border-radius: var(--radius); background: var(--soft); }
.career-intro h2 { margin-bottom: 8px; color: var(--blue); font-size: 34px; }
.career-intro p { max-width: 780px; font-size: 18px; }
.form-search { margin-bottom: 38px; display: flex; gap: 10px; }
.search-input { width: 100%; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; outline: 0; background: var(--gray); color: var(--dark); }
.search-input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.form-card { padding: 30px; border-radius: var(--radius); background: var(--gray); }
.form-card form > div { margin-bottom: 18px; }
.form-card label { margin-bottom: 6px; display: block; font-weight: 600; }
.form-card input, .form-card textarea, .form-card select { width: 100%; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--white); }
.form-actions { display: flex; justify-content: flex-end; }

/* Footer */
.site-footer { margin-top: 36px; border-radius: 32px 32px 0 0; background: var(--gray); }
.footer-inner { padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px; }
.footer-contact h2 { margin-bottom: 22px; color: var(--blue); font-size: 34px; line-height: 1.15; }
.footer-contact a { margin: 7px 0; display: block; color: rgba(15, 36, 61, .62); font-size: 20px; }
.footer-column h2 { margin-bottom: 12px; color: var(--blue); font-size: 17px; }
.footer-column .footer-subsection { margin-top: 24px; }
.footer-column a { padding: 7px 0; display: block; color: rgba(15, 36, 61, .62); }
.footer-slogan { max-width: 100%; margin: 46px auto 0; color: var(--muted); font-size: clamp(8px, .7vw, 14px); line-height: 1.35; letter-spacing: -.035em; text-align: center; white-space: nowrap; }
.footer-brandline { margin-top: 34px; color: var(--blue); font-size: clamp(28px, 4vw, 49px); font-weight: 700; letter-spacing: -.04em; text-align: center; }
.footer-copyright { margin-top: 25px; color: var(--blue); font-size: 14px; text-align: center; }

/* Error and static pages */
.simple-page .article-body { max-width: 656px; }

/* CTF под ключ */
.ctf-key-page { padding: 44px 0 110px; overflow: hidden; }
.ctf-key-hero {
  min-height: 630px;
  padding: clamp(38px, 7vw, 86px);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: var(--blue);
  color: var(--white);
}
.ctf-key-kicker { margin-bottom: 20px; color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ctf-key-hero .ctf-key-kicker { color: var(--white); }
.ctf-key-hero h1 { max-width: 1040px; font-size: clamp(48px, 6.3vw, 88px); line-height: .98; letter-spacing: -.06em; }
.ctf-key-hero__lead { max-width: 850px; margin-top: 34px; font-size: clamp(18px, 2vw, 24px); line-height: 1.4; }
.ctf-key-button { min-height: 50px; margin-top: 34px; padding: 0 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: var(--white); font-weight: 700; }
.ctf-key-button:hover { background: var(--dark); color: var(--white); }
.ctf-key-button--light { background: var(--white); color: var(--blue); }
.ctf-key-button--light:hover { background: var(--dark); color: var(--white); }
.ctf-key-section { margin-top: 100px; }
.ctf-key-section h2 { font-size: clamp(42px, 5.4vw, 72px); line-height: 1; letter-spacing: -.055em; }
.ctf-key-about { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.ctf-key-heading { position: sticky; top: 170px; }
.ctf-key-heading--wide { position: static; max-width: 940px; margin-bottom: 40px; }
.ctf-key-about__copy { max-width: 690px; font-size: 20px; line-height: 1.55; }
.ctf-key-about__copy > * + * { margin-top: 24px; }
.ctf-key-intro { font-size: 27px; line-height: 1.35; letter-spacing: -.02em; }
.ctf-key-checklist { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
.ctf-key-checklist li { padding: 16px 18px; border-radius: 18px; background: var(--soft); font-weight: 600; }
.ctf-key-marquee-section h2 { margin-bottom: 34px; }
.logo-marquee { width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
.logo-marquee__track { width: max-content; display: flex; animation: ctf-key-marquee 36s linear infinite; }
.logo-marquee--reverse .logo-marquee__track { animation-direction: reverse; animation-duration: 42s; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__group, .logo-marquee__repeat { display: flex; gap: 16px; padding-right: 16px; }
.logo-tile { width: 190px; height: 126px; padding: 24px; border-radius: 22px; flex: 0 0 auto; display: grid; place-items: center; background: var(--gray); }
.logo-tile--wide { width: 240px; }
.logo-tile--dark { background: var(--dark); }
.logo-tile img { width: 100%; height: 64px; display: block; object-fit: contain; }
@keyframes ctf-key-marquee { to { transform: translateX(-50%); } }
.ctf-key-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.ctf-key-service { min-height: 650px; padding: 34px; border-radius: var(--radius); display: flex; flex-direction: column; background: var(--gray); }
.ctf-key-service--blue { background: var(--blue); color: var(--white); }
.ctf-key-service--soft { background: var(--soft); }
.ctf-key-service__number { margin-bottom: 70px; color: var(--blue); font-size: 15px; font-weight: 700; }
.ctf-key-service--blue .ctf-key-service__number { color: var(--white); }
.ctf-key-service h3 { margin-bottom: 22px; font-size: clamp(27px, 2.4vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.ctf-key-service p, .ctf-key-service li { font-size: 17px; line-height: 1.45; }
.ctf-key-service__label { margin-top: 26px; font-weight: 700; }
.ctf-key-service ul { margin: 12px 0 26px; padding-left: 20px; }
.ctf-key-service li + li { margin-top: 7px; }
.ctf-key-service__note { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(15, 36, 61, .15); }
.ctf-key-service--blue .ctf-key-service__note { border-color: rgba(255, 255, 255, .35); }
.ctf-key-process { padding: clamp(34px, 6vw, 72px); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); gap: 70px; background: var(--dark); color: var(--white); }
.ctf-key-process .ctf-key-kicker { color: var(--white); }
.ctf-key-process__intro > p:not(.ctf-key-kicker) { max-width: 620px; margin-top: 26px; font-size: 20px; }
.ctf-key-process__steps { margin: 0; padding: 0; list-style: none; }
.ctf-key-process__steps li { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); display: grid; grid-template-columns: 48px 1fr; gap: 16px; font-size: 18px; font-weight: 600; }
.ctf-key-process__steps span { color: var(--blue); }
.ctf-key-trust { padding-bottom: 12px; }

@media (max-width: 980px) {
  .ctf-key-page { padding-top: 28px; }
  .ctf-key-hero { min-height: 560px; }
  .ctf-key-about { grid-template-columns: 1fr; gap: 34px; }
  .ctf-key-heading { position: static; }
  .ctf-key-about__copy { max-width: 760px; }
  .ctf-key-services { grid-template-columns: 1fr; }
  .ctf-key-service { min-height: auto; }
  .ctf-key-service__number { margin-bottom: 38px; }
  .ctf-key-service__note { margin-top: 32px; }
  .ctf-key-process { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 600px) {
  .ctf-key-page { padding: 12px 0 76px; }
  .ctf-key-hero { min-height: 540px; padding: 28px 22px; }
  .ctf-key-hero h1 { font-size: 46px; }
  .ctf-key-hero__lead { margin-top: 24px; font-size: 17px; }
  .ctf-key-section { margin-top: 70px; }
  .ctf-key-section h2 { font-size: 42px; }
  .ctf-key-about__copy { font-size: 17px; }
  .ctf-key-intro { font-size: 22px; }
  .ctf-key-checklist { grid-template-columns: 1fr; }
  .logo-tile { width: 160px; height: 104px; padding: 20px; }
  .logo-tile--wide { width: 200px; }
  .logo-tile img { height: 54px; }
  .ctf-key-service { padding: 26px; }
  .ctf-key-process { padding: 28px 22px; }
  .ctf-key-process__steps li { font-size: 16px; }
}

/* В новостях сноска занимает правое поле, а оглавление уходит влево. */
@media (min-width: 1344px) {
  .article-layout:has(.margin-note) {
    width: min(1280px, calc(100vw - 64px));
    margin-left: 50%;
    transform: translateX(-50%);
    grid-template-columns: 280px 656px;
    gap: 44px;
  }
  .article-layout:has(.margin-note) .article-body { grid-column: 2; }
  .article-layout:has(.margin-note) .toc-card { grid-column: 1; grid-row: 1; }
  .article-layout:has(.margin-note) .margin-note {
    width: 240px;
    margin: 8px -312px 20px 28px;
    float: right;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
}

@media (max-width: 1100px) {
  .header-nav { gap: 14px; }
  .header-nav a { font-size: 14px; }
  .header-actions .btn-ctf { display: none; }
}
@media (max-width: 980px) {
  .container-wide, .container-page { width: min(100% - 32px, 760px); }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .header-nav, .subnav, .header-actions > .search-link, .header-actions > .btn-ctf { display: none; }
  .burger-wrap { display: block; }
  .feed-grid, .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero { grid-template-columns: 1fr; }
  .hero-main, .hero-side { min-height: 380px; }
  .system-block { grid-column: span 2; }
  .feed-layout, .article-layout { grid-template-columns: 1fr; }
  .sidebar-sticky, .toc-card { position: static; }
  .calendar-mini { width: min(360px, 100%); justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-contact { grid-column: 1/-1; }
  .footer-slogan { white-space: normal; line-height: 1.7; }
}
@media (max-width: 600px) {
  .container-wide, .container-page { width: calc(100% - 24px); }
  .container-page, .feed-wrap, .home-page { padding: 34px 0 70px; }
  .header-inner { height: 70px; }
  .header-logo, .header-logo img { width: 176px; }
  .burger { min-height: 38px; padding: 0 15px; font-size: 13px; }
  .section-title { font-size: 39px; }
  .page-lead { font-size: 18px; }
  .feed-grid, .articles-grid { grid-template-columns: 1fr; }
  .home-page__heading { margin-top: 54px; }
  .hero-main { min-height: 390px; padding: 28px; }
  .hero-main h1 { font-size: 46px; }
  .hero-main p { font-size: 18px; }
  .hero-side { min-height: 390px; padding: 22px; }
  .hero-side__cover { height: 170px; margin-bottom: 22px; }
  .article-card { min-height: 360px; }
  .system-block { grid-column: auto; min-height: 260px; padding: 26px; }
  .system-block__content { max-width: 100%; }
  .system-block__art { display: none; }
  .system-block__title { font-size: 28px; }
  .article-title { font-size: 43px; }
  .article-body { font-size: 17px; }
  .article-body__lead { font-size: 20px; }
  .margin-note, .article-layout .margin-note { width: auto; margin: 0 0 20px; float: none; padding: 15px 16px; border-radius: 16px; background: var(--soft); }
  .calendar-card { padding: 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; row-gap: 30px; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact h2 { margin-bottom: 16px; font-size: 30px; }
  .footer-contact a { margin: 4px 0; font-size: 18px; }
  .footer-column h2 { margin-bottom: 7px; font-size: 15px; }
  .footer-column .footer-subsection { margin-top: 18px; }
  .footer-column a { padding: 4px 0; font-size: 14px; }
  .footer-slogan { margin-top: 32px; font-size: 10px; line-height: 1.55; }
  .footer-brandline { margin-top: 30px; font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
