/* ============================================================
   F4Media — design system
   Тёмная тема по умолчанию, светлая через [data-theme="light"].
   Акцент раздела приходит из переменной --c на блоке.
   ============================================================ */

:root {
  /* бренд (из логотипа) */
  --brand: #2C7BFF;
  --brand-deep: #0568FA;
  --red: #F2321F;
  --ink-logo: #FFFFFF;

  /* поверхности */
  --bg: #080B13;
  --bg-2: #0C111C;
  --surf: #10161F;
  --surf-2: #151C28;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .16);

  /* текст */
  --tx: #EEF2F8;
  --tx-2: #B4BECE;
  --tx-3: #7E8A9E;

  --c: var(--brand);

  --shadow: 0 18px 50px -22px rgba(0, 0, 0, .85);
  --glow: 0 0 0 1px rgba(255, 255, 255, .05);

  --f-disp: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-read: 'Lora', Georgia, 'Times New Roman', serif;

  --wrap: 1320px;
  --gap: 28px;
  --r: 14px;
  --r-sm: 8px;
  --art-fs: 1.075rem;
  /* Ширина текстовой колонки статьи. В пикселях, а не в ch: единица ch
     считается от шрифта элемента, и заголовок с крупным кеглем получал
     совсем другую ширину, чем текст под ним. */
  --art-col: 747px;
}

[data-theme="light"] {
  --brand: #0568FA;
  --brand-deep: #0250C8;
  --ink-logo: #121B2F;
  --bg: #FFFFFF;
  --bg-2: #F4F6FB;
  --surf: #FFFFFF;
  --surf-2: #F2F5FA;
  --line: rgba(18, 27, 47, .12);
  --line-2: rgba(18, 27, 47, .2);
  --tx: #0E1626;
  --tx-2: #46536B;
  --tx-3: #6B788E;
  --shadow: 0 18px 44px -26px rgba(16, 28, 54, .38);
  --glow: 0 0 0 1px rgba(18, 27, 47, .06);
}

/* ---------------------------------------------------------- база */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-disp); font-weight: 800; letter-spacing: -.022em; margin: 0; line-height: 1.08; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }

[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.sec { padding: 46px 0; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .45; display: inline-block; }
.dotv { width: 4px; height: 4px; border-radius: 50%; background: var(--tx-3); display: inline-block; }
.ic { flex: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

/* ---------------------------------------------------------- кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--brand); color: #fff; border: 0; cursor: pointer;
  font-family: var(--f-disp); font-weight: 700; font-size: .92rem; letter-spacing: .01em;
  padding: 12px 22px; border-radius: 999px; transition: transform .18s, background .18s, box-shadow .18s;
  box-shadow: 0 10px 26px -14px var(--brand);
}
.btn:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .84rem; }
.btn-gh { background: transparent; color: var(--tx); border: 1px solid var(--line-2); box-shadow: none; }
.btn-gh:hover { background: var(--surf-2); border-color: var(--brand); color: var(--tx); }

.ib {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--tx-2); cursor: pointer; transition: .18s;
}
.ib:hover { background: var(--surf-2); color: var(--tx); border-color: var(--line); }

/* ---------------------------------------------------------- логотип */
.logo-mark { width: 36px; height: 36px; flex: none; display: block; position: relative; }
/* Знак несёт «F4», надпись — остаток названия: буквы не повторяются */
.logo-mark { width: 38px; height: 38px; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-mark .lm-l { display: none; }
[data-theme="light"] .logo-mark .lm-d { display: none; }
[data-theme="light"] .logo-mark .lm-l { display: block; }
.logo-xl { width: 96px; height: 96px; }
/* Локап: знак F4 вплотную к слову — читается одним словом «F4media.az» */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-tx {
  font-family: var(--f-disp); font-weight: 800; font-size: 1.34rem;
  letter-spacing: -.015em; line-height: 1; white-space: nowrap; color: var(--tx);
}
.brand-tx i { font-style: normal; color: var(--tx-3); font-weight: 700; }
.brand:hover .brand-tx i { color: var(--brand); }

/* ---------------------------------------------------------- топбар */
.topbar {
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  font-size: .78rem; color: var(--tx-3);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 18px; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.tb-w { display: inline-flex; align-items: center; gap: 6px; }
.tb-w b { color: var(--tx-2); }
.tb-ic { color: #FFB020; }
.rates { display: flex; gap: 13px; overflow: hidden; }
.rate b { color: var(--tx-2); font-weight: 600; margin-right: 4px; }
.rate i { font-style: normal; margin-left: 5px; font-size: .72rem; }
.rate .up { color: #23C87A; }
.rate .down { color: #FF6058; }
.rate .flat { color: var(--tx-3); }
.tb-link:hover { color: var(--tx); }
.tb-hot { display: inline-flex; align-items: center; gap: 6px; color: var(--tx-2); }
.tb-hot b { color: var(--tx); font-weight: 600; }
.tb-hot:hover { color: var(--brand); }
.langsw { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang {
  padding: 3px 11px; font-weight: 600; font-size: .74rem; letter-spacing: .06em;
  color: var(--tx-3); transition: .16s;
}
.lang:hover { color: var(--tx); background: var(--surf-2); }
.lang.is-on { background: var(--brand); color: #fff; }

/* ---------------------------------------------------------- шапка */
.hdr {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.burger { display: none; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: 1; min-width: 0; }
.nv {
  position: relative; padding: 9px 12px; border-radius: 9px;
  font-family: var(--f-disp); font-weight: 600; font-size: .93rem; color: var(--tx-2);
  white-space: nowrap; transition: .16s; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nv::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--c, var(--brand)); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nv:hover { color: var(--tx); }
.nv:hover::after, .nv.is-on::after { transform: scaleX(1); }
.nv.is-on { color: var(--tx); }
.more { position: relative; }
/* Раскрывается ВЛЕВО от кнопки: «Ещё» — последний пункт навигации, и панель
   шириной 330px, прижатая к его левому краю, вылезала за окно на ширинах
   ~1024–1180px. Скрытая панель всё равно участвует в раскладке (visibility,
   не display), поэтому страница получала горизонтальный скролл ещё до того,
   как меню кто-нибудь открыл. */
.mn {
  position: absolute; top: calc(100% + 8px); right: 0; left: auto; width: 330px; padding: 8px;
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: .18s; z-index: 5;
}
.more:hover .mn, .more:focus-within .mn { opacity: 1; visibility: visible; transform: none; }
.mn-i { display: block; padding: 10px 12px; border-radius: 9px; transition: .15s; }
.mn-i:hover { background: var(--surf-2); }
.mn-i span { display: block; font-size: .78rem; color: var(--tx-3); margin-top: 2px; line-height: 1.4; }
.mn-i::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px;
  background: var(--c); margin-right: 8px; vertical-align: middle;
}
.hdr-act { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.demo-chip {
  font-family: var(--f-disp); font-size: .62rem; font-weight: 800; letter-spacing: .16em;
  color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 45%, transparent);
  padding: 3px 7px; border-radius: 5px;
}
.ic-moon { display: none; }
[data-theme="light"] .ic-sun { display: none; }
[data-theme="light"] .ic-moon { display: block; }
.hdr-prog { height: 2px; background: var(--brand); width: 0; transition: width .1s linear; }

.mob { display: none; border-top: 1px solid var(--line); background: var(--bg-2); }
.mob.open { display: block; }
.mob-in { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 12px 22px 18px; }
.mob-in a {
  padding: 12px 14px; border-radius: 10px; background: var(--surf);
  font-family: var(--f-disp); font-weight: 600; border-left: 3px solid var(--c);
}

/* ---------------------------------------------------------- бегущая строка */
.tick { background: var(--surf); border-bottom: 1px solid var(--line); overflow: hidden; }
.tick-in { display: flex; align-items: center; gap: 18px; height: 46px; }
.tick-l {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-family: var(--f-disp); font-weight: 800; font-size: .76rem; letter-spacing: .16em;
  color: var(--red);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 60%, transparent);
  animation: pulse 1.9s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.tick-vp { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 92%, transparent); }
.tick-tr { display: flex; gap: 34px; width: max-content; animation: tick 70s linear infinite; }
.tick:hover .tick-tr { animation-play-state: paused; }
.tick-tr a { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--tx-2); white-space: nowrap; }
.tick-tr a:hover { color: var(--tx); }
.tick-tr i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------- герой */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: var(--gap); padding-top: 34px; padding-bottom: 10px; }
.hero-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.lead { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surf); border: 1px solid var(--line); }
.lead-img { display: block; aspect-ratio: 21 / 9; overflow: hidden; }
.lead-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .3, 1); }
.lead:hover .lead-img img { transform: scale(1.035); }
.lead-bd { padding: 22px 26px 26px; }
.lead-t { font-size: clamp(1.9rem, 3.1vw, 2.85rem); margin: 10px 0 12px; letter-spacing: -.03em; }
.lead-t a { background-image: linear-gradient(var(--c), var(--c)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s; }
.lead:hover .lead-t a { background-size: 100% 2px; }
.lead-l { color: var(--tx-2); font-size: 1.06rem; max-width: 70ch; margin-bottom: 14px; }
.hero-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.c-meta { display: flex; align-items: center; gap: 10px; font-size: .76rem; color: var(--tx-3); flex-wrap: wrap; }
.c-meta time { font-variant-numeric: tabular-nums; }
.chip {
  font-family: var(--f-disp); font-weight: 700; font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c); border-bottom: 2px solid var(--c); padding-bottom: 1px;
}
.chip:hover { color: var(--tx); }
.brk {
  font-family: var(--f-disp); font-weight: 800; font-size: .66rem; letter-spacing: .13em;
  background: var(--red); color: #fff; padding: 3px 7px; border-radius: 4px;
}
.c-foot { display: flex; align-items: center; gap: 9px; font-size: .78rem; color: var(--tx-3); margin-top: 12px; }

/* ---------------------------------------------------------- карточки */
.card { display: flex; flex-direction: column; min-width: 0; }
.c-img { display: block; border-radius: 10px; overflow: hidden; background: var(--surf-2); aspect-ratio: 16 / 9; }
.c-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .3, 1); }
.card:hover .c-img img { transform: scale(1.05); }
.c-body { padding: 14px 0 0; }
.c-title { font-size: 1.06rem; line-height: 1.24; margin: 8px 0 0; letter-spacing: -.015em; }
.c-title a { transition: color .16s; }
.card:hover .c-title a { color: var(--c); }
.c-lede { color: var(--tx-3); font-size: .9rem; margin: 8px 0 0; }
.c-sm .c-title { font-size: .98rem; }
.c-lg .c-title { font-size: 1.42rem; }
.c-lg .c-lede { font-size: .95rem; color: var(--tx-2); }
.c-xl { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: center; margin-bottom: 34px; }
.c-xl .c-img { aspect-ratio: 16 / 10; }
.c-xl .c-title { font-size: clamp(1.6rem, 2.5vw, 2.3rem); }
.c-xl .c-lede { font-size: 1.02rem; color: var(--tx-2); }
.c-row { display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: start; padding-top: 16px; border-top: 1px solid var(--line); }
.c-row .c-img { aspect-ratio: 4 / 3; border-radius: 7px; }
.c-row .c-body { padding: 0; }
.c-row .c-title { font-size: .95rem; margin-top: 6px; }
.c-row .c-foot { display: none; }

/* ---------------------------------------------------------- живая лента */
.feed {
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r);
  padding: 6px 0 8px; align-self: start; position: sticky; top: 84px; overflow: hidden;
}
.feed-h {
  display: flex; align-items: center; gap: 9px; padding: 14px 18px 12px;
  font-family: var(--f-disp); font-weight: 800; font-size: .93rem;
  border-bottom: 1px solid var(--line);
}
.feed-h a { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--tx-3); font-family: var(--f-ui); }
.feed-h a:hover { color: var(--brand); }
.feed-l { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; }
.fi { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); position: relative; }
.fi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--c); opacity: 0; transition: .2s; }
.fi:hover::before { opacity: 1; }
.fi:hover { background: var(--surf-2); }
.fi:last-child { border-bottom: 0; }
.fi time { font-size: .76rem; color: var(--c); font-weight: 600; font-variant-numeric: tabular-nums; }
.fi a { font-size: .9rem; line-height: 1.35; font-weight: 500; }
.fi-cat { grid-column: 2; font-size: .7rem; color: var(--tx-3); text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------- секции */
.sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-bottom: 12px; padding-top: 16px; border-bottom: 2px solid var(--line); }
.sh-t { font-size: 1.5rem; position: relative; }
.sh-t::before { content: ""; position: absolute; left: 0; top: -16px; width: 38px; height: 4px; border-radius: 2px; background: var(--brand); }
.sh-sub { margin: 8px 0 0; color: var(--tx-3); font-size: .88rem; max-width: 62ch; }
.sh-more { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--tx-3); font-weight: 500; white-space: nowrap; }
.sh-more:hover { color: var(--brand); }
.sh-more:hover .ic { transform: translateX(3px); }
.sh-more .ic { transition: transform .18s; }

.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap) 24px; }
.g2c { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.col { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------------------------------------------------------- проекты */
.sec-prj { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prj-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.prj-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.prj {
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; position: relative; overflow: hidden; transition: .2s;
}
.prj::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); }
.prj:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.prj-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.prj-code { font-family: var(--f-disp); font-size: .72rem; letter-spacing: .14em; color: var(--tx-3); font-weight: 700; }
.prj-st { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--tx-2); }
.st-live { color: #23C87A; border-color: color-mix(in srgb, #23C87A 40%, transparent); }
.st-active { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.st-beta { color: #FFB020; border-color: color-mix(in srgb, #FFB020 40%, transparent); }
.prj h3 { font-size: 1.1rem; margin-bottom: 8px; }
.prj p { color: var(--tx-3); font-size: .87rem; }
.prj-c p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prj-stages { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.prj-stages li { display: flex; align-items: center; gap: 9px; font-size: .82rem; color: var(--tx-3); }
.prj-stages i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.prj-stages .ok { color: var(--tx-2); }
.prj-stages .ok i { background: var(--c); border-color: var(--c); box-shadow: inset 0 0 0 2px var(--surf); }
.prj-bar { height: 5px; border-radius: 3px; background: var(--surf-2); overflow: hidden; margin-top: 4px; }
.prj-bar span { display: block; height: 100%; background: var(--c); border-radius: 3px; }
.prj-foot { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--tx-3); margin-top: 10px; }
.prj-foot b { color: var(--tx); font-family: var(--f-disp); }

/* ---------------------------------------------------------- видео */
.sec-vid { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.vid-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.vid-g-all { grid-template-columns: repeat(3, 1fr); }
.vid-b { grid-column: span 2; grid-row: span 2; }
.vid { min-width: 0; }
.vid-img { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surf-2); }
.vid-b .vid-img { aspect-ratio: 16 / 10.4; }
.vid-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.vid:hover .vid-img img { transform: scale(1.05); }
.vid-dur {
  position: absolute; right: 10px; bottom: 10px; background: rgba(8, 11, 19, .84); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 5px; font-variant-numeric: tabular-nums;
}
.vid-play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #0B1120; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.vid-play:hover { transform: scale(1.08); background: #fff; }
.vid h3 { font-size: 1rem; margin-top: 12px; line-height: 1.28; }
.vid-b h3 { font-size: 1.32rem; }
.vid:hover h3 { color: var(--c); }
.vid-meta { font-size: .74rem; color: var(--tx-3); margin-top: 6px; text-transform: uppercase; letter-spacing: .09em; }

/* ---------------------------------------------------------- интервью */
.spot {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center;
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.spot-l { padding: 40px 20px 40px 42px; }
.spot-k { font-family: var(--f-disp); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.spot blockquote {
  margin: 14px 0 16px; font-family: var(--f-disp); font-weight: 800; letter-spacing: -.028em;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.12;
}
.spot p { color: var(--tx-2); max-width: 54ch; }
.spot-r { display: block; height: 100%; min-height: 300px; }
.spot-r img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------- цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; text-align: center;
}
.stat b { display: block; font-family: var(--f-disp); font-size: 2.5rem; font-weight: 900; letter-spacing: -.04em; color: var(--brand); line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--tx-3); font-size: .84rem; }

/* ---------------------------------------------------------- рубрика */
.cat-hd { padding: 40px 0 34px; background: var(--bg-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.cat-hd::before {
  content: ""; position: absolute; right: -8%; top: -60%; width: 46%; height: 260%;
  background: var(--c); opacity: .1; transform: skewX(-16deg); filter: blur(6px);
}
.cat-hd h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 10px 0 10px; }
.cat-hd p { color: var(--tx-2); max-width: 66ch; margin: 0; }
.cat-n { display: inline-block; margin-top: 16px; font-size: .78rem; color: var(--tx-3); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--tx-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs b { color: var(--c); font-weight: 600; }

.oth-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.oth {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surf);
  border-left: 3px solid var(--c); transition: .18s;
}
.oth:hover { transform: translateY(-2px); border-color: var(--line-2); border-left-color: var(--c); }
.oth b { font-family: var(--f-disp); font-size: 1rem; display: block; }
.oth span { display: block; font-size: .78rem; color: var(--tx-3); margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------- статья */
/* Шапка статьи выравнивается по той же сетке, что и текст под ней.
   Раньше у неё была своя ширина 900 px и своя центровка: заголовок начинался
   с 292 px, а картинка и текст — со 167 px, и страница читалась ступенькой.
   Ширина = пара колонок ниже (мера строки + зазор + боковая) плюс боковые
   отступы .wrap, потому что box-sizing здесь border-box. */
.art-hd { padding-top: 30px; max-width: calc(var(--art-col) + 40px + 320px + 44px); }
/* Сами строки не длиннее меры текста — заголовок в 1100 px не читается. */
.art-hd > * { max-width: var(--art-col); }
.art-hd h1 { font-size: clamp(2rem, 3.8vw, 3.15rem); margin: 14px 0 16px; letter-spacing: -.035em; }
.art-hd .c-meta { margin-top: 14px; }
.art-lede { font-size: 1.2rem; color: var(--tx-2); font-family: var(--f-read); line-height: 1.5; }
.art-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 22px;
}
.art-au { display: flex; align-items: center; gap: 11px; }
.av {
  width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff;
  display: grid; place-items: center; font-family: var(--f-disp); font-weight: 800; font-size: 1.05rem;
}
.art-au b { display: block; font-size: .92rem; font-weight: 600; }
.art-au i { font-style: normal; font-size: .78rem; color: var(--tx-3); }
.art-tools { display: flex; align-items: center; gap: 8px; }
.fs { display: flex; align-items: center; gap: 4px; margin-right: 6px; }
.fs span { font-size: .76rem; color: var(--tx-3); margin-right: 4px; }
.fs button {
  background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px;
  font-size: .78rem; cursor: pointer; color: var(--tx-2); transition: .16s;
}
.fs button:hover { border-color: var(--brand); color: var(--tx); }
/* Снимок статьи живёт в текстовой колонке, поэтому ширину ему задаёт колонка,
   а не окно. Прежние правила рассчитывали на полноширинную figure: центровка
   подписи по --wrap и боковые отступы теперь только мешали бы. */
.art-fig { margin: 0 0 30px; }
.art-fig img { width: 100%; }
.art-fig figcaption { margin: 10px 0 0; font-size: .76rem; color: var(--tx-3); }
/* Колонка текста больше не растягивается на всё свободное место.
   Было: `minmax(0, 1fr) 320px` при `.art-body { max-width: 74ch }` — колонка
   занимала 900 px, а текст внутри 660 px, и между статьёй и «Самое читаемое»
   зияла пустота под 300 px. Теперь ширину колонки задаёт сама мера строки,
   а пара «текст + боковая» центрируется в контейнере. */
.art-grid {
  display: grid; grid-template-columns: minmax(0, var(--art-col)) 320px;
  justify-content: center; gap: 40px; padding-top: 34px; padding-bottom: 20px;
}
.art-body { max-width: var(--art-col); font-family: var(--f-read); font-size: var(--art-fs); line-height: 1.72; color: var(--tx); }
.art-body p { margin: 0 0 1.35em; }
.art-body > p:first-of-type::first-letter {
  font-family: var(--f-disp); font-weight: 900; float: left; font-size: 3.4em; line-height: .82;
  padding: .06em .12em 0 0; color: var(--c);
}
.pg-art .art-body p + p { text-indent: 0; }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--f-ui); font-size: .8rem; color: var(--tx-3); margin: 30px 0 22px; }
.tag { background: var(--surf-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--tx-2); }
.art-share { display: flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-size: .82rem; color: var(--tx-3); padding-top: 18px; border-top: 1px solid var(--line); }
.art-share a, .art-share .ib { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--tx-2); transition: .16s; }
.art-share a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.art-side { align-self: start; position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.side-b { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.side-h { font-family: var(--f-disp); font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 14px; }
.most { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.most li { border-top: 1px solid var(--line); }
.most li:first-child { border-top: 0; }
.most a { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 11px 0; font-size: .88rem; line-height: 1.35; }
.most b { font-family: var(--f-disp); font-size: 1.05rem; color: var(--tx-3); }
.most a:hover { color: var(--brand); }
.side-cta p { font-size: .82rem; color: var(--tx-3); }
.side-hot { display: block; font-family: var(--f-disp); font-weight: 800; font-size: 1.18rem; color: var(--brand); margin-bottom: 10px; }

/* ---------------------------------------------------------- о нас / контакты */
.ab-hero, .ct-hero { padding: 44px 0 36px; background: var(--bg-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.ab-hero::after {
  content: ""; position: absolute; right: -6%; top: -80%; width: 40%; height: 280%;
  background: linear-gradient(180deg, var(--brand), transparent); opacity: .14; transform: skewX(-16deg);
}
.ab-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 12px 0; letter-spacing: -.045em; }
.ab-lede { font-size: 1.14rem; color: var(--tx-2); max-width: 74ch; }
.ab-tags { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .78rem; color: var(--tx-3); }
.ab-tags span:not(.dotv) { border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 11px; }
.ab-g { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; }
.ab-tx { font-family: var(--f-read); font-size: 1.06rem; line-height: 1.72; color: var(--tx-2); }
.ab-of { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.ab-of h2 { font-size: 1.2rem; margin-bottom: 16px; }
.ab-of ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ab-of li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--tx-2); }
.ab-of .ic { color: var(--brand); margin-top: 2px; }
.pr-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pr-c { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.pr-n { font-family: var(--f-disp); font-weight: 900; font-size: 1.6rem; color: var(--brand); opacity: .5; }
.pr-c h3 { font-size: 1.08rem; margin: 8px 0 8px; }
.pr-c p { font-size: .86rem; color: var(--tx-3); margin: 0; }

.ct-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 12px 0 10px; }
.ct-hero p { color: var(--tx-2); margin: 0; }
.ct-g { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ct-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-c {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r);
  background: var(--surf); border: 1px solid var(--line); transition: .18s;
}
.ct-c:hover { border-color: var(--brand); transform: translateY(-2px); }
.ct-c .ic { color: var(--brand); }
.ct-c i { font-style: normal; display: block; font-size: .76rem; color: var(--tx-3); }
.ct-c b { font-size: .95rem; font-weight: 600; }
.ct-soc { margin-top: 26px; }
.ct-soc-g { display: flex; flex-wrap: wrap; gap: 9px; }
.ct-soc-g a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; color: var(--tx-2); transition: .16s; }
.ct-soc-g a:hover { border-color: var(--brand); color: var(--tx); }
.ct-addr { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--tx-3); font-size: .88rem; }
.ct-f { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.ct-f label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; color: var(--tx-3); }
.ct-f input, .ct-f textarea {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px;
  outline: none; transition: .16s; font-size: .95rem; resize: vertical;
}
.ct-f input:focus, .ct-f textarea:focus { border-color: var(--brand); }
.map {
  height: 260px; border-radius: var(--r); border: 1px solid var(--line); display: grid; place-items: center;
  gap: 10px; color: var(--tx-3); background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 55%),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 46px), var(--surf);
}
.map-pin { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 22%, transparent); }

/* ---------------------------------------------------------- поиск */
.sdlg { position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center; padding-top: 9vh; }
.sdlg-bd { position: absolute; inset: 0; background: rgba(4, 7, 13, .72); backdrop-filter: blur(4px); }
.sdlg-in { position: relative; width: min(720px, 92vw); background: var(--surf); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; animation: pop .22s ease-out; }
@keyframes pop { from { transform: translateY(-12px); opacity: 0; } }
.sdlg-top { display: flex; align-items: center; gap: 12px; padding: 16px 16px; border-bottom: 1px solid var(--line); color: var(--tx-3); }
.sdlg-top input { flex: 1; background: transparent; border: 0; outline: none; font-size: 1.05rem; }
.sdlg-res { max-height: 56vh; overflow-y: auto; padding: 8px; }
.sdlg-hint { color: var(--tx-3); font-size: .84rem; padding: 16px; margin: 0; }
.sr { display: block; padding: 12px 14px; border-radius: 10px; border-left: 3px solid var(--c, var(--brand)); }
.sr:hover, .sr.on { background: var(--surf-2); }
.sr b { display: block; font-family: var(--f-disp); font-size: .98rem; font-weight: 700; }
.sr span { display: block; font-size: .8rem; color: var(--tx-3); margin-top: 3px; }
.sr em { font-style: normal; color: var(--c, var(--brand)); }
.srch-pg h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 20px; }
.srch-in { display: flex; align-items: center; gap: 12px; background: var(--surf); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px 18px; color: var(--tx-3); }
.srch-in input { flex: 1; background: transparent; border: 0; outline: none; font-size: 1.1rem; padding: 14px 0; }
.srch-res { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }

/* ---------------------------------------------------------- 404 / выбор языка */
.e404 { text-align: center; padding: 90px 0 110px; }
.e-code { font-family: var(--f-disp); font-weight: 900; font-size: clamp(6rem, 20vw, 12rem); line-height: .85; letter-spacing: -.06em; background: linear-gradient(120deg, var(--brand), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e404 h1 { font-size: 1.9rem; margin: 12px 0 8px; }
.e404 p { color: var(--tx-3); }
.e-act { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }

.pg-lang { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(circle at 50% 0%, #10203C, var(--bg) 60%); }
.ls { text-align: center; padding: 40px 22px; }
.ls-logo img { width: min(260px, 62vw); height: auto; border-radius: 22px; }
.ls h1 {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.ls h1.vis { position: static; width: auto; height: auto; clip: auto; clip-path: none;
  font-family: var(--f-disp); font-size: clamp(2.2rem, 7vw, 3.4rem); letter-spacing: .04em; margin: 18px 0 6px; }
.ls h1 b { color: var(--brand); }
.ls h1 i { font-style: normal; color: var(--tx-3); }
.ls > p { color: var(--tx-3); }
.ls-g { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 30px 0 26px; }
.ls-c {
  display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 14px;
  background: var(--surf); border: 1px solid var(--line); transition: .18s; min-width: 190px;
}
.ls-c:hover { border-color: var(--brand); transform: translateY(-2px); }
.ls-c b { font-family: var(--f-disp); font-size: 1.2rem; color: var(--brand); }
.ls-c span { color: var(--tx-2); }
.ls-c .ic { margin-left: auto; color: var(--tx-3); }
.ls-note { font-size: .76rem; color: var(--tx-3); max-width: 52ch; margin: 0 auto; }

/* ---------------------------------------------------------- подвал */
.ftr { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 20px; }
.ftr-top { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 44px; padding: 48px 0 34px; }
.ftr-tag { color: var(--tx-3); font-size: .88rem; margin: 14px 0 18px; }
.soc { display: flex; gap: 8px; flex-wrap: wrap; }
.soc a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--tx-3); transition: .18s; }
.soc a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.ftr-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-content: start; }
.fcol-h { grid-column: 1 / -1; font-family: var(--f-disp); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 4px; }
.fcol { display: flex; flex-direction: column; gap: 9px; }
.fcol a { font-size: .89rem; color: var(--tx-2); }
.fcol a:hover { color: var(--brand); }
.ftr-cta .fcol-h { margin-bottom: 12px; }
.ftr-hot { display: flex; align-items: center; gap: 12px; color: var(--tx); }
.ftr-hot .ic { color: var(--brand); }
.ftr-hot i { font-style: normal; display: block; font-size: .74rem; color: var(--tx-3); }
.ftr-hot b { font-family: var(--f-disp); font-size: 1.1rem; }
.ftr-mail { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--tx-2); margin-top: 14px; }
.ftr-mail:hover, .ftr-hot:hover b { color: var(--brand); }
.ftr-links { display: flex; gap: 16px; margin-top: 16px; font-size: .82rem; color: var(--tx-3); }
.ftr-links a:hover { color: var(--brand); }
.demo-note {
  display: flex; align-items: flex-start; gap: 9px; font-size: .76rem; color: var(--tx-3);
  border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px 14px; margin: 0 0 20px;
}
.demo-note .ic { color: var(--red); margin-top: 2px; }
.ftr-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 34px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--tx-3); }

/* ---------------------------------------------------------- прочее */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surf); border: 1px solid var(--line-2); color: var(--tx-2); cursor: pointer;
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .22s; box-shadow: var(--shadow);
}
.totop.on { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: 400px; padding: 18px 20px;
  background: var(--surf); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow);
}
.cookie p { font-size: .84rem; color: var(--tx-2); margin: 0 0 14px; }
.cookie div { display: flex; gap: 8px; }

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1); }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------- адаптив */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .feed { position: static; }
  .feed-l { max-height: 380px; }
  .g4 { grid-template-columns: repeat(3, 1fr); }
  .prj-rail { grid-template-columns: repeat(2, 1fr); }
  .oth-g, .pr-g { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: 1fr; gap: 34px; }
  .art-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-b { flex: 1 1 260px; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .rates, .tb-link { display: none; }
  .g3, .g4, .g2c, .vid-g, .ab-g, .ct-g, .stats { grid-template-columns: repeat(2, 1fr); }
  .vid-b { grid-column: span 2; grid-row: auto; }
  .vid-g-all { grid-template-columns: repeat(2, 1fr); }
  .c-xl { grid-template-columns: 1fr; gap: 18px; }
  .spot { grid-template-columns: 1fr; }
  .spot-l { padding: 30px 24px; order: 2; }
  .spot-r { min-height: 220px; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .brand-tx { font-size: 1.24rem; }
}
@media (max-width: 680px) {
  .sec { padding: 34px 0; }
  .topbar-in { height: 34px; font-size: .72rem; }
  .tb-hot b { display: none; }
  .hero-sub, .g2, .g3, .g4, .g2c, .vid-g, .vid-g-all, .stats, .oth-g, .pr-g, .ct-cards, .ftr-top, .ftr-nav { grid-template-columns: 1fr; }
  /* в одну колонку большая видеокарточка не должна тянуться на две — иначе появляется
     фантомная колонка и карточки наезжают друг на друга */
  .vid-b { grid-column: auto; grid-row: auto; }
  .vid-b .vid-img { aspect-ratio: 16 / 9; }
  .vid-b h3 { font-size: 1.08rem; }
  .mob-in { grid-template-columns: 1fr; }
  .lead-bd { padding: 18px; }
  .demo-chip { display: none; }
  .hdr-in { height: 56px; gap: 8px; }
  .hdr-act { gap: 2px; }
  .c-row { grid-template-columns: 92px 1fr; }
  .art-bar { gap: 12px; }
  .fs { display: none; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .totop { right: 12px; bottom: 78px; }
  .stat b { font-size: 2rem; }
}

@media print {
  .topbar, .hdr, .ftr, .tick, .totop, .cookie, .art-tools, .art-share, .nl, .art-side { display: none !important; }
  body { background: #fff; color: #000; }
  .art-body { max-width: none; }
}

/* источник материала */
.art-src {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-ui);
  font-size: .82rem; color: var(--tx-2); background: var(--surf-2);
  border: 1px solid var(--line); border-left: 3px solid var(--c);
  padding: 11px 16px; border-radius: 10px; margin-bottom: 22px; transition: .16s;
}
.art-src:hover { border-color: var(--line-2); color: var(--tx); }
.art-src .ic { color: var(--c); }

@media (max-width: 520px) {
  .tb-date, .tb-w { display: none; }
  .topbar-in { justify-content: flex-end; }
}

/* ---------------------------------------------------------- соседние материалы */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.pn-i {
  display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surf); transition: .18s; min-height: 92px;
}
.pn-i:hover { border-color: var(--c); transform: translateY(-2px); }
.pn-i i { display: flex; align-items: center; gap: 7px; font-style: normal; font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 8px; }
.pn-i b { font-family: var(--f-disp); font-size: 1rem; line-height: 1.25; display: block; }
.pn-prev i .ic { transform: rotate(180deg); }
.pn-next { text-align: right; }
.pn-next i { justify-content: flex-end; }
span.pn-i { border: 0; background: none; }

/* ---------------------------------------------------------- доступность и производительность */
html { scroll-padding-top: 120px; }
.sec, .ftr { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.lang { padding: 6px 12px; }               /* минимальная область нажатия */
.vid-play { text-decoration: none; }
.sr.on { outline: 2px solid var(--brand); outline-offset: -2px; }
@media (max-width: 680px) { .pn { grid-template-columns: 1fr; } .pn-next { text-align: left; } .pn-next i { justify-content: flex-start; } }

/* ---------------------------------------------------------- темы */
.sec-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mn-sep { height: 1px; background: var(--line); margin: 8px 12px; }
.tpc-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tpc {
  position: relative; padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surf); border-left: 3px solid var(--c); transition: .18s; overflow: hidden;
}
.tpc:hover { transform: translateY(-3px); border-color: var(--line-2); border-left-color: var(--c); }
.tpc-n {
  position: absolute; right: 16px; top: 14px; font-family: var(--f-disp); font-weight: 900;
  font-size: 2.4rem; line-height: 1; color: var(--c); opacity: .22;
}
.tpc b { display: block; font-family: var(--f-disp); font-size: 1.14rem; margin-bottom: 8px; }
.tpc i {
  font-style: normal; font-size: .82rem; color: var(--tx-3); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surf); font-size: .88rem; color: var(--tx-2);
  transition: .16s;
}
.tchip:hover { border-color: var(--c, var(--brand)); color: var(--tx); transform: translateY(-1px); }
.tchip sup { font-size: .68rem; color: var(--c, var(--brand)); font-weight: 700; }
.tchip.is-main { font-weight: 500; color: var(--tx); }

/* ---------------------------------------------------------- лента */
.fd { border-top: 1px solid var(--line); }
.fd-day {
  position: sticky; top: 72px; background: var(--bg); z-index: 2; padding: 18px 0 8px;
  font-family: var(--f-disp); font-weight: 800; font-size: .92rem; color: var(--tx-3);
  border-bottom: 1px solid var(--line);
}
.fd-i {
  display: grid; grid-template-columns: 62px 1fr 160px; gap: 16px; align-items: baseline;
  padding: 13px 8px; border-bottom: 1px solid var(--line); position: relative;
}
.fd-i::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--c); opacity: 0; transition: .18s; }
.fd-i:hover { background: var(--surf); }
.fd-i:hover::before { opacity: 1; }
.fd-i time { font-variant-numeric: tabular-nums; color: var(--c); font-weight: 600; font-size: .84rem; }
.fd-i b { font-family: var(--f-disp); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.fd-i span { font-size: .74rem; color: var(--tx-3); text-transform: uppercase; letter-spacing: .08em; text-align: right; }

/* ---------------------------------------------------------- сервисы */
.svc-g { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.svc-b { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.svc-side { display: flex; flex-direction: column; gap: 18px; }
.rt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rt { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rt th, .rt td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.rt thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tx-3); font-weight: 600; }
.rt tbody th { font-family: var(--f-disp); font-weight: 800; }
.rt-val { font-variant-numeric: tabular-nums; font-weight: 600; }
.rt-nom, .rt-nm { color: var(--tx-3); font-size: .82rem; }
.rt-d { font-variant-numeric: tabular-nums; font-size: .82rem; }
.rt-d.up { color: #23C87A; } .rt-d.down { color: #FF6058; } .rt-d.flat { color: var(--tx-3); }
.svc-src { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .8rem; color: var(--tx-3); }
.svc-src:hover { color: var(--brand); }
.cv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cv input, .cv select {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px;
  outline: none; font-size: 1rem; width: 100%;
}
.cv input:focus, .cv select:focus { border-color: var(--brand); }
.cv-eq {
  grid-column: 1 / -1; font-family: var(--f-disp); font-weight: 800; font-size: 1.5rem;
  color: var(--brand); padding-top: 4px;
}
.wx-now { display: flex; align-items: baseline; gap: 12px; }
.wx-now b { font-family: var(--f-disp); font-size: 2.4rem; font-weight: 900; letter-spacing: -.03em; }
.wx-now span { color: var(--tx-3); font-size: .9rem; }
.wx-days { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.wx-d { flex: 1 1 60px; text-align: center; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; font-size: .8rem; }
.wx-d i { display: block; font-style: normal; color: var(--tx-3); font-size: .72rem; margin-bottom: 4px; }
.wx-d b { font-family: var(--f-disp); }
.mtl-g { display: flex; flex-direction: column; gap: 10px; }
.mtl { display: flex; align-items: baseline; gap: 10px; font-size: .88rem; }
.mtl b { font-family: var(--f-disp); }
.mtl span { color: var(--tx-3); flex: 1; font-size: .8rem; }
.mtl i { font-style: normal; font-variant-numeric: tabular-nums; font-weight: 600; }
a.rates { color: inherit; }
a.rates:hover .rate b { color: var(--brand); }

@media (max-width: 980px) {
  .tpc-g { grid-template-columns: repeat(2, 1fr); }
  .svc-g { grid-template-columns: 1fr; }
  .fd-i { grid-template-columns: 54px 1fr; }
  .fd-i span { display: none; }
}
@media (max-width: 680px) { .tpc-g { grid-template-columns: 1fr; } .cv { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- защита от горизонтального выезда */
/* Элементы grid по умолчанию не сжимаются уже своего содержимого (min-width: auto):
   длинная таблица или заголовок распирали колонку и вылезали за экран. */
.hero > *, .g2c > *, .g3 > *, .g4 > *, .art-grid > *, .svc-g > *, .svc-side > *,
.ct-g > *, .ab-g > *, .spot > *, .pn > *, .fd-i > *, .vid-g > *, .tpc-g > * { min-width: 0; }
.c-title, .lead-t, .art-hd h1, .cat-hd h1, .fd-i b, .tpc b, .vid h3 { overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .rt { font-size: .86rem; }
  .rt th, .rt td { padding: 9px 6px; }
  .rt-nm { font-size: .76rem; }
}

/* Переключатель языков в верхней полосе: набор берётся из Polylang. */
.lang-row{display:inline-flex;gap:2px;margin-right:8px}
.lang-row a{padding:2px 7px;border-radius:6px;font-size:12px;font-weight:600;color:var(--tx-2);text-decoration:none}
.lang-row a:hover{background:var(--surf-2);color:var(--tx)}
.lang-row a.on{background:var(--brand);color:#fff}
