@charset "UTF-8";
/* ------------------------------------------------------------------
   it-russia.ru — светлая тема.
   Файл держится в чистом ASCII везде, кроме этого комментария и
   немногих строковых значений, чтобы кодировка отдачи не влияла на стили.
   ------------------------------------------------------------------ */

:root {
  --ink:        #0d1526;
  --ink-2:      #46536c;
  --ink-3:      #7a869d;
  --line:       #e3e8f1;
  --line-soft:  #eef2f8;
  --bg:         #ffffff;
  --surface:    #f5f8fd;
  --surface-2:  #eef3fb;
  --brand:      #0f1e4d;
  --accent:     #2b5cff;
  --accent-ink: #1d47d6;
  --accent-soft:#e8eeff;
  --hot:        #ff6a2b;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(13, 21, 38, .06), 0 4px 12px rgba(13, 21, 38, .05);
  --shadow-md:  0 12px 32px rgba(13, 21, 38, .10);
  --shadow-lg:  0 28px 64px rgba(13, 21, 38, .14);

  --wrap:       1240px;
  --gap:        clamp(24px, 3vw, 44px);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
/* Распорки старого движка: без этого правило height:auto раздувает их. */
img[src*="blank.gif"], img[src*="spacer.gif"] { display: none; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------- шапка */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head.is-stuck { box-shadow: var(--shadow-sm); }

.site-head__bar {
  display: flex; align-items: center; gap: 20px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand); flex: 0 0 auto; }
.brand:hover { color: var(--brand); }
.brand__mark { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.brand__dash { color: var(--accent); }
.brand__tag { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }

.search { position: relative; margin-left: auto; flex: 0 1 320px; }
.search__input {
  width: 100%; height: 42px; padding: 0 44px 0 16px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid transparent; border-radius: 999px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search__input::placeholder { color: var(--ink-3); }
.search__input:focus {
  outline: none; background: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search__go {
  position: absolute; right: 4px; top: 4px; width: 34px; height: 34px;
  display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-2);
}
.search__go svg { width: 18px; height: 18px; }
.search__go:hover { background: var(--accent-soft); color: var(--accent-ink); }

.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav { border-top: 1px solid var(--line-soft); background: #fff; }
.site-nav__list {
  display: flex; gap: 4px; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.site-nav__list::-webkit-scrollbar { display: none; }
.site-nav__list a {
  display: block; white-space: nowrap; padding: 12px 12px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  border-bottom: 2px solid transparent;
}
.site-nav__list a:hover { color: var(--accent-ink); }
.site-nav__list a.is-current { color: var(--brand); border-bottom-color: var(--accent); font-weight: 650; }

/* ---------------------------------------------------------- хлебные крошки */

.crumbs { padding-top: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent-ink); }

/* ------------------------------------------------------------- раскладка */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: var(--gap);
  align-items: start;
  padding-block: 32px 64px;
}
.layout__main { min-width: 0; }
.layout__aside { position: sticky; top: 96px; display: grid; gap: 22px; }

/* ---------------------------------------------------------------- герой */

.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(1100px 420px at 88% -10%, rgba(43, 92, 255, .16), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(255, 106, 43, .10), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.hero__kicker {
  margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-ink);
}
/* На главной это единственный h1: в тексте главной своего заголовка нет. */
.hero__title {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.08; color: var(--brand); margin-bottom: 18px;
}
.hero__lede { color: var(--ink-2); font-size: 16px; max-width: 56ch; }
.hero__lede p { margin: 0 0 12px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.hero__art { position: relative; }
.hero__art img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2; object-fit: cover;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--brand);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--brand); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }

/* ----------------------------------------------------------------- блоки */

.block { margin-top: clamp(40px, 5vw, 64px); }
.block__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.block__title { font-size: clamp(21px, 2.4vw, 27px); color: var(--brand); }
.block__title::after {
  content: ""; display: block; width: 46px; height: 3px; margin-top: 10px;
  border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--hot));
}
.block__more { margin-left: auto; font-size: 14.5px; font-weight: 600; white-space: nowrap; }

/* ---------------------------------------------------------------- сетки */

.grid { display: grid; gap: 26px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.grid--tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }

.card { min-width: 0; }
.card__link { display: grid; gap: 12px; color: inherit; height: 100%; align-content: start; }
.card__link:hover { color: inherit; }
.card__pic {
  display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--surface-2); aspect-ratio: 16 / 10;
}
.card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.card__link:hover .card__pic img { transform: scale(1.045); }
.card__body { display: block; }
.card__date { display: block; font-size: 12.5px; color: var(--hot); font-weight: 600; margin-bottom: 5px; }
.card__title {
  display: block; font-weight: 650; font-size: 16.5px; line-height: 1.32;
  letter-spacing: -.01em; color: var(--ink);
}
.card__link:hover .card__title { color: var(--accent-ink); }
.card__teaser { display: block; margin-top: 7px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

/* Карточка подраздела: без фотографии, зато с описанием и счётчиком. */
.subsec {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: inherit; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.subsec:hover { color: inherit; border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.subsec__name { font-weight: 650; font-size: 16.5px; letter-spacing: -.01em; color: var(--brand); }
.subsec:hover .subsec__name { color: var(--accent-ink); }
.subsec__teaser { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.subsec__count { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--ink-3); }

.feature { margin-bottom: 30px; }
.feature__link {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-sm); color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.feature__link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.feature__pic { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--surface-2); }
.feature__pic img { width: 100%; height: 100%; object-fit: cover; }
.feature__date { display: block; font-size: 13px; font-weight: 600; color: var(--hot); margin-bottom: 8px; }
.feature__title { display: block; font-size: clamp(20px, 2.3vw, 27px); font-weight: 750; line-height: 1.2; letter-spacing: -.02em; }
.feature__teaser { display: block; margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.feature__cta { display: inline-block; margin-top: 16px; font-weight: 650; color: var(--accent-ink); }
.feature__cta::after { content: "\2009\2192"; }

.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: var(--brand); color: #fff;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.tile__pic { display: block; aspect-ratio: 4 / 3; }
.tile__pic img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.tile__pic.is-blank { background: linear-gradient(135deg, var(--accent), var(--brand)); }
.tile__pic.is-blank img { display: none; }
.tile__name {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px;
  font-weight: 650; font-size: 15px; line-height: 1.25;
  background: linear-gradient(180deg, rgba(9, 16, 38, 0), rgba(9, 16, 38, .86));
}

/* ------------------------------------------------------- шапка раздела */

.sec-head { margin-bottom: 30px; }
.sec-head__title { font-size: clamp(27px, 3.4vw, 40px); color: var(--brand); }
.sec-head__count { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }
.sec-head__intro { margin-top: 18px; max-width: 76ch; }

.empty { color: var(--ink-2); background: var(--surface); padding: 22px; border-radius: var(--radius); }

/* ---------------------------------------------------------------- статья */

.post__head { margin-bottom: 24px; }
.post__section {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .02em;
  color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px;
}
.post__section:hover { background: var(--accent); color: #fff; }
.post__title { font-size: clamp(27px, 3.6vw, 42px); color: var(--brand); max-width: 20ch; max-width: 22ch; }
@supports (text-wrap: balance) { .post__title { text-wrap: balance; max-width: none; } }
.post__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; font-size: 13.5px; color: var(--ink-3); }
.post__lead { margin: 0 0 30px; }
.post__lead img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  max-height: 460px; object-fit: cover;
}

/* --------------------------------------------------------------- текст */

.prose { font-size: 17.5px; line-height: 1.75; color: #16203a; max-width: 74ch; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose div { margin: 0 0 1.15em; }
.prose div:empty { display: none; }
.prose h2 { margin: 1.9em 0 .6em; font-size: 1.42em; color: var(--brand); }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.18em; color: var(--brand); }
.prose h1 { margin: 0 0 .6em; font-size: 1.6em; color: var(--brand); }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { border-bottom: 1px solid rgba(43, 92, 255, .28); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose img { margin: 1.4em 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  color: var(--ink-2); font-size: 1.03em;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .94em; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 650; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose--doc h2 { font-size: 1.25em; }

.video { position: relative; margin: 1.6em 0; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin: 32px 0 0; }
.gallery__item { margin: 0; }
.gallery__item img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gallery figcaption { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }

.block--related { border-top: 1px solid var(--line); padding-top: 34px; }

/* ------------------------------------------------------------ пагинация */

.pager { margin-top: 40px; }
.pager__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pager__item {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
}
.pager__item:hover { border-color: var(--accent); color: var(--accent-ink); }
.pager__item.is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager__item--nav { font-weight: 500; }
.pager__gap { display: inline-block; padding: 0 4px; color: var(--ink-3); line-height: 42px; }
.pager__all { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.pager__all summary { cursor: pointer; }
.pager__all-list { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 12px 0 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------- сайдбар */

.side-block {
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
}
.side-block__title {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.side-list, .side-news { margin: 0; padding: 0; list-style: none; }
.side-list li + li { border-top: 1px solid var(--line-soft); }
.side-list a { display: block; padding: 8px 0; font-size: 15px; color: var(--ink-2); }
.side-list a:hover, .side-list a.is-current { color: var(--accent-ink); }
.side-news li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.side-news a { font-size: 14.8px; font-weight: 550; line-height: 1.35; color: var(--ink); display: block; }
.side-news a:hover { color: var(--accent-ink); }
.side-news time { display: block; margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }
.side-block__more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; }

/* Блоки внешних ссылок: содержимое приходит извне, поэтому только рамка. */
.side-block--links { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.side-block--links ul { margin: 0; padding: 0; list-style: none; }
.side-block--links li + li { margin-top: 10px; }
.side-block--links a { color: var(--ink-2); }
.side-block--links a:hover { color: var(--accent-ink); }
.side-block--links table { width: 100%; }

/* ------------------------------------------------------------ карта сайта */

.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.sitemap__group h2 { font-size: 17px; margin-bottom: 10px; }
.sitemap__group ul { margin: 0; padding: 0; list-style: none; }
.sitemap__group li { margin-bottom: 6px; font-size: 15px; }
.sitemap__group li a { color: var(--ink-2); }
.sitemap__group li a:hover { color: var(--accent-ink); }
.sitemap__extra { margin-top: 36px; color: var(--ink-3); }

/* ---------------------------------------------------------------- подвал */

.site-foot { background: var(--brand); color: #c7d2ec; margin-top: 40px; padding-top: 52px; }
.site-foot a { color: #dbe4ff; }
.site-foot a:hover { color: #fff; }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 44px; padding-bottom: 40px; }
.site-foot__about p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.6; max-width: 46ch; }
.brand--foot { color: #fff; }
.brand--foot .brand__name { font-size: 22px; }
.site-foot__nav ul {
  margin: 0; padding: 0; list-style: none;
  columns: 3; column-gap: 26px;
}
.site-foot__nav li { margin-bottom: 9px; font-size: 14.5px; break-inside: avoid; }
.site-foot__legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px 26px; }
.site-foot__legal p { margin: 0; font-size: 13px; color: #8fa2cf; }

/* ------------------------------------------------------------ адаптив */

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .layout__aside { position: static; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .feature__link { grid-template-columns: 1fr; }
  .feature__pic { order: -1; }
  .site-foot__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-foot__nav ul { columns: 2; }
}

@media (max-width: 700px) {
  .site-head__bar { min-height: 62px; gap: 12px; flex-wrap: wrap; }
  .brand__tag { display: none; }
  .burger { display: inline-flex; order: 3; margin-left: auto; }
  .search { order: 4; flex: 1 1 100%; margin: 0 0 12px; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; border-top: 1px solid var(--line); }
  .site-nav__list { flex-direction: column; overflow: visible; padding-bottom: 10px; }
  .site-nav__list a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav__list a.is-current { border-bottom-color: var(--accent); }
  .grid--cards { grid-template-columns: 1fr; gap: 22px; }
  /* Размер картинки задан явно: aspect-ratio внутри грид-колонки ведёт себя
     непредсказуемо, и превью съезжало относительно заголовка. */
  .card__link { grid-template-columns: 104px minmax(0, 1fr); align-items: start; gap: 14px; }
  .card__pic { width: 104px; height: 104px; aspect-ratio: auto; border-radius: 10px; }
  .card__teaser { display: none; }
  .grid--tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .prose { font-size: 16.5px; }
  .post__lead img { border-radius: var(--radius); }
  .layout { padding-block: 22px 44px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-head, .site-foot, .layout__aside, .crumbs, .pager, .block--related { display: none !important; }
  .layout { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}
