/* =========================================================
   ОМСК-ИНФОРМ — стили страницы новости
   Макет: десктоп 1440 (контент 730px), мобильный 400
   ========================================================= */

:root {
  --navy: #0d1f3c;          /* шапка */
  --orange: #f05a1a;        /* акценты, автор, теги */
  --text: #111111;
  --muted: #777777;
  --line: #d9d9d9;
  --bg: #f2f2f2;
  --quote-bg: #ececec;
  --num: #e4e4e4;
  --content-w: 730px;
  --side-w: 180px;
  --gap: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
svg { display: block; }

.container {
  width: 100%;
  max-width: calc(var(--content-w) + var(--side-w) + var(--gap) + 42px);
  margin: 0 auto;
  padding: 0 21px;
}

/* ---------- Заглушки изображений ---------- */
.ph {
  position: relative;
  width: 100%;
  background: #cfd4da;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(0,0,0,.45);
  white-space: nowrap;
  text-transform: uppercase;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--photo  { aspect-ratio: 820 / 465; background: linear-gradient(135deg, #8d9aa5, #5e6b78); }
.ph--thumb  { width: 48px; height: 48px; flex: 0 0 48px; background: #b9c1c9; }
.ph--car    { aspect-ratio: 1 / 1; background: #d6d6d6; }
.ph--ad300  { aspect-ratio: 1 / 2; background: linear-gradient(180deg, #1a1a1a, #3c2f28); }
.ph--ad300::after { color: rgba(255,255,255,.55); }
.ph--ad300-dark { background: linear-gradient(180deg, #0d1118, #26303d); }
.ph--special { aspect-ratio: 1000 / 360; background: linear-gradient(180deg, #f08a2a 0 40%, #3b2c7e 40%); }
.ph--banner  { aspect-ratio: 400 / 140; background: linear-gradient(90deg, #1b55b5, #2d7be0); }
.ph--banner::after, .ph--special::after { color: rgba(255,255,255,.7); }
.ph--slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph--slide1 { background: linear-gradient(135deg, #2b3139, #5a6673); }
.ph--slide2 { background: linear-gradient(135deg, #8e8e86, #c9c4b4); }
.ph--slide3 { background: linear-gradient(135deg, #30363d, #6d7681); }
.ph--slide4 { background: linear-gradient(135deg, #6a3f2a, #c0865c); }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  height: 28px;
}
.header__inner {
  display: flex;
  align-items: center;
  height: 28px;
  gap: 24px;
}
.header__burger {
  width: 16px; height: 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  flex: 0 0 auto;
}
.header__burger span { display: block; height: 1.5px; background: #fff; border-radius: 1px; }
.header__logo {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.header__nav { display: flex; gap: 46px; margin-left: 20px; }
.header__link { font-weight: 700; font-size: 11.5px; letter-spacing: .02em; }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 36px; }
.header__weather { font-weight: 600; font-size: 11.5px; }
.header__search { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 500; }
.header__search svg { width: 14px; height: 14px; }

/* ---------- Мобильное меню ---------- */
.mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 280px; max-width: 85%;
  background: #fff;
  z-index: 70;
  transform: translateX(-100%);
  transition: transform .3s ease;
  padding: 70px 24px 24px;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__nav a {
  display: block;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 60;
  opacity: 0; visibility: hidden;
  transition: opacity .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- Сетка ---------- */
.page { padding-bottom: 60px; }
.layout {
  display: grid;
  grid-template-columns: var(--content-w) var(--side-w);
  gap: var(--gap);
  justify-content: center;
  background: #fff;
  padding: 0 0 20px;
}
.layout__main { min-width: 0; }
.layout__side { min-width: 0; }
.side__sticky { position: sticky; top: 40px; }

/* ---------- Статья ---------- */
.article { padding: 12px 45px 0; }
.article__meta {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 14px;
}
.article__meta a { color: var(--muted); }
.article__meta .article__author { color: var(--orange); }
.article__title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -.01em;
}
.article__lead {
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.article__figure { position: relative; margin-bottom: 18px; }
.article__caption {
  position: absolute;
  right: 10px; bottom: 8px;
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.article__body p {
  font-size: 11.5px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.article__body a { color: #1b5bd6; text-decoration: underline; }

.quote {
  position: relative;
  background: var(--quote-bg);
  padding: 20px 12px 18px;
  margin-bottom: 16px;
}
.quote__mark {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1;
  color: #bdbdbd;
}
.quote p { margin: 0; }

.article__tags { margin: 6px 0 22px; }
.tag {
  display: inline-block;
  color: var(--orange);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 11.5px;
}

.related-mobile { display: none; }

.article__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-bottom: 6px;
}
.btn-comments {
  display: inline-block;
  border: 1.5px solid #222;
  border-radius: 3px;
  padding: 7px 60px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .01em;
}
.share { display: flex; gap: 8px; }
.share__btn {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.share__btn svg { width: 14px; height: 14px; fill: #fff; }

/* ---------- Реклама (карточки) ---------- */
.adv { padding: 20px 0 0; }
.adv__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
  margin-bottom: 8px;
  font-size: 9.5px;
}
.adv__label { color: #9a9a9a; font-size: 7px; letter-spacing: .08em; }
.adv__brand { margin: 0 auto; display: flex; align-items: center; gap: 4px; font-weight: 500; }
.adv__brand i {
  font-style: normal; font-weight: 800;
  background: #000; color: #fff;
  width: 12px; height: 12px; border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.adv__more { color: #888; letter-spacing: 1px; }
.adv__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.adv__item b { display: block; margin-top: 6px; font-size: 9.5px; }
.adv__item span { display: block; font-size: 7.5px; color: #555; line-height: 1.3; }

/* ---------- Больше по тегу / Рубрика ---------- */
.more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.more__col { padding-right: 20px; }
.more__col + .more__col { border-left: 1px solid var(--line); padding-left: 20px; padding-right: 0; }
.more__title { font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.more__title a { color: var(--orange); }
.news-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 10.5px;
  line-height: 1.35;
}
.news-row span { padding-top: 1px; }

/* ---------- Главная новость (слайдер) ---------- */
.top { margin-top: 28px; }
.top__title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .01em;
  margin-bottom: 8px;
}
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track {
  display: flex;
  gap: 8px;
  transition: transform .4s ease;
  will-change: transform;
}
.slide {
  position: relative;
  flex: 0 0 calc((100% - 24px) / 4);
  aspect-ratio: 170 / 115;
  overflow: hidden;
  color: #fff;
}
.slide__badge {
  position: absolute;
  top: 5px; left: 0;
  background: var(--orange);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 3px 5px;
}
.slide__text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 8px 7px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.3;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.75) 45%);
}
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #e8e8e8;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.slider__arrow svg { width: 12px; height: 12px; fill: none; stroke: #222; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider__arrow--prev { left: -13px; }
.slider__arrow--next { right: -13px; }

/* ---------- Спецпроект ---------- */
.special { display: block; margin-top: 20px; }

/* ---------- Вторая статья ---------- */
.article--second { padding-top: 10px; }

/* ---------- Сайдбар ---------- */
.side-banner { display: block; margin-top: 12px; }
.side-banner--second { margin-top: 20px; }
.daily { margin-top: 18px; }
.daily__title {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--orange);
  font-size: 11.5px;
  font-weight: 800;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.daily__icon { width: 13px; height: 13px; fill: var(--orange); }
.daily__list li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 10px 24px 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.3;
}
.daily__list li:last-child { border-bottom: 0; }
.daily__list a { position: relative; z-index: 1; }
.daily__num {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--num);
  letter-spacing: -.04em;
}

/* ---------- Баннер (мобильный) ---------- */
.banner-mobile { display: none; }

/* ---------- Футер ---------- */
.footer { background: var(--navy); color: #fff; padding: 28px 0; margin-top: 10px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer__logo { font-weight: 800; font-size: 16px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 11.5px; font-weight: 600; }
.footer__copy { width: 100%; font-size: 10px; color: rgba(255,255,255,.6); }

/* ---------- Кнопка наверх ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #222;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s;
  z-index: 40;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 14px; height: 14px; fill: none; stroke: #222; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   ПЛАНШЕТ
   ========================================================= */
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) var(--side-w); }
  .container { max-width: 100%; }
  .slider__arrow--prev { left: 4px; }
  .slider__arrow--next { right: 4px; }
}

/* =========================================================
   МОБИЛЬНЫЙ (макет 400px)
   ========================================================= */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0; }

  /* шапка */
  .header, .header__inner { height: 46px; }
  .header__inner { padding: 0 16px; gap: 0; justify-content: space-between; }
  .header__burger { width: 22px; height: 16px; }
  .header__burger span { height: 2.5px; }
  .header__logo { font-size: 22px; position: absolute; left: 50%; transform: translateX(-50%); }
  .header__inner { position: relative; }
  .header__nav, .header__weather, .header__search span { display: none; }
  .header__search svg { width: 22px; height: 22px; }
  .header__right { gap: 0; }

  /* сетка: одна колонка, сайдбар уходит под слайдер */
  .layout { display: flex; flex-direction: column; padding-bottom: 0; }
  .layout__main { display: contents; }
  .layout__side { order: 9; }
  .side__sticky { position: static; }

  .article { padding: 14px 20px 0; order: 1; }
  .article__meta { font-size: 13px; margin-bottom: 10px; }
  .article__title { font-size: 24px; line-height: 1.2; margin-bottom: 14px; }
  .article__lead { font-size: 17px; margin-bottom: 14px; }
  .article__figure { margin: 0 -20px 16px; }
  .ph--photo { aspect-ratio: 400 / 225; }
  .article__caption { font-size: 12px; right: 16px; bottom: 12px; }
  .article__body p { font-size: 16.5px; line-height: 1.5; margin-bottom: 20px; }
  .quote { margin: 0 -20px 20px; padding: 30px 20px 22px; }
  .quote__mark { font-size: 44px; top: 0; }
  .tag { font-size: 15px; padding: 8px 14px; }
  .article__tags { margin-bottom: 24px; }

  .related-mobile { display: block; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
  .related-mobile li { margin-bottom: 14px; font-size: 17px; line-height: 1.3; color: #1f3763; }
  .related-mobile a { color: #1f3763; }

  .article__footer { flex-direction: column; gap: 16px; margin-bottom: 22px; }
  .btn-comments { width: 100%; text-align: center; font-size: 15px; padding: 12px 0; border-radius: 6px; }
  .share { display: none; }

  .adv, .more, .special { display: none; }

  .banner-mobile { display: block; order: 2; }

  .top { order: 3; margin-top: 10px; }
  .top__title { font-size: 20px; padding: 0 20px; margin-bottom: 10px; }
  .slide { flex: 0 0 100%; aspect-ratio: 400 / 300; }
  .slide__badge { font-size: 11px; padding: 6px 10px; top: 16px; }
  .slide__text { font-size: 18px; padding: 50px 20px 16px; }
  .slider__arrow { width: 36px; height: 36px; background: #e9e9e9; }
  .slider__arrow svg { width: 16px; height: 16px; }
  .slider__arrow--prev { left: 10px; }
  .slider__arrow--next { right: 10px; }

  .layout__side { padding: 0 20px; }
  .side-banner { display: none; }
  .daily { margin-top: 26px; }
  .daily__title { font-size: 20px; padding-bottom: 10px; }
  .daily__icon { width: 18px; height: 18px; }
  .daily__list li { font-size: 17px; min-height: 84px; padding: 18px 60px 18px 0; }
  .daily__num { font-size: 72px; }

  .article--second { order: 10; padding-top: 24px; }

  .to-top { width: 40px; height: 40px; right: 16px; bottom: 16px; }
  .to-top svg { width: 18px; height: 18px; }

  .footer { padding: 20px; }
}
