/* ===== Мобильная навигация-пилюли (скрыта на десктопе) ===== */
.mnav { display: none; }

/* ===== Планшеты ===== */
@media (max-width: 1180px) {
  .nav__link { padding: 10px 10px; font-size: 13px; }
  .header__login { display: none; }
  .hero__thumbs { width: 250px; }
  .a-layout { grid-template-columns: 60px minmax(0, 1fr); }
  .a-aside { display: none; }
}

@media (max-width: 1000px) {
  .nav { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .widgets { grid-template-columns: 1fr 1fr; }
  .widgets .panel--cta { grid-column: 1 / -1; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .hero__thumbs { display: none; }
  .hero__dots {
    display: flex; gap: 8px; position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%);
  }
  .hero__dots button { width: 8px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.35); transition: width .4s var(--ease), background .3s; }
  .hero__dots button.is-active { width: 26px; background: var(--red-2); }
  .clock__date { display: none; }
}

/* ===== Телефоны (как в мобильном макете) ===== */
@media (max-width: 760px) {
  :root { --header-h: 64px; --topbar-h: 34px; }
  body { font-size: 15px; padding-bottom: 76px; }
  .container { padding: 0 14px; }

  .topbar { font-size: 12px; }
  .live-label { padding: 2px 8px; font-size: 10px; }
  .live-label span { display: none; }
  .clock { padding: 2px 8px; border: 0; }
  .clock__city { display: none; }
  .clock__time { font-size: 13px; }
  .clock-pop { right: 10px; left: 10px; width: auto; }

  .header__in { gap: 12px; }
  .header.is-scrolled .header__in { height: 56px; }
  .logo__img, .header.is-scrolled .logo__img { height: 36px; }
  .header__actions .icon-btn--user { display: none; }

  /* горизонтальное меню-пилюли */
  .mnav {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    padding: 10px 14px; border-top: 1px solid var(--line);
    scroll-snap-type: x proximity;
  }
  .mnav::-webkit-scrollbar { display: none; }
  .mnav a {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
    height: 40px; padding: 0 14px; border-radius: 10px;
    font-family: var(--font-head); font-weight: 700; font-size: 14px; color: rgba(255,255,255,.85);
    scroll-snap-align: start; transition: background .25s, color .25s;
  }
  .mnav a.is-active { background: var(--red); color: #fff; box-shadow: 0 6px 18px -6px rgba(30,136,255,.9); }
  .mnav a.is-home { padding: 0 16px; }

  /* hero */
  .hero { padding-top: 0; }
  .hero .container { padding: 0; }
  .hero__box { height: 430px; border-radius: 0; }
  .slide__content { padding: 0 18px 48px; }
  .slide__title { font-size: 27px; margin-top: 10px; }
  .slide__title::after { width: 56px; height: 3px; margin-top: 14px; }
  .slide__lead { display: none; }
  .slide__cta { display: none; }
  .slide__meta { font-size: 12px; }
  .hero__arrows { display: none; }
  .hero__counter { right: 16px; top: 16px; font-size: 12px; }
  .hero__counter b { font-size: 20px; }
  .hero__stripes i:nth-child(1) { left: 72%; }
  .hero__stripes i:nth-child(2) { left: 76%; }

  .section { padding-top: 34px; }
  .section__head { margin-bottom: 16px; }
  .section__title { font-size: 24px; }
  .section__title::before { width: 8px; height: 22px; }
  .filters { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { padding: 8px 14px; font-size: 12px; }

  /* карточки-строки: текст слева, фото справа (как в макете) */
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card, .card--wide { grid-column: auto; height: 156px; flex-direction: column; justify-content: center; border-radius: 16px; }
  .card__media { left: 40%; }
  .card__media img { object-position: center 20%; }
  .card__media::after { background: linear-gradient(90deg, var(--surface) 0%, rgba(12,31,62,.75) 30%, transparent 75%); }
  .card__top { padding: 0 16px; position: absolute; top: 16px; left: 0; }
  .card__play { position: absolute; right: -0px; left: auto; width: 34px; height: 34px; }
  .card__top { right: 16px; }
  .card__body { padding: 30px 16px 0; max-width: 62%; }
  .card__title, .card--wide .card__title { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card__lead { display: none; }
  .card__meta { margin-top: 8px; font-size: 12px; gap: 10px; }
  .card__meta .hide-sm { display: none; }
  .card__bar { left: 16px; height: 2px; width: 46px; }
  .card:hover .card__title { transform: none; }
  .tag { font-size: 10.5px; padding: 3px 9px; }

  .widgets { grid-template-columns: 1fr; }
  .panel { padding: 20px; }

  .footer { margin-top: 60px; }
  .footer__in { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 20px; }
  .footer__bottom { flex-direction: column; gap: 6px; }

  .to-top { bottom: 90px; right: 16px; width: 46px; height: 46px; }
  .toasts { bottom: 96px; }

  /* нижнее меню-таббар как в приложении */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 65;
    height: 62px; padding: 6px; border-radius: 20px;
    background: rgba(9,25,52,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line-2); box-shadow: 0 20px 40px -10px rgba(0,0,0,.8);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 10.5px; font-weight: 600; color: var(--muted); border-radius: 14px; position: relative;
    transition: color .25s;
  }
  .tabbar .is-active { color: #fff; }
  .tabbar .is-active::before { content: ""; position: absolute; inset: 0; border-radius: 14px; background: rgba(30,136,255,.16); z-index: -1; animation: riseIn .4s var(--ease); }
  .tabbar .is-active svg { color: var(--red-2); }

  .drawer__nav a, .drawer__nav button { font-size: 20px; }
  .modal__box { padding: 28px 22px; border-radius: 22px; }
  .modal { align-items: end; padding: 10px; }
  .modal__box { transform: translateY(100%); }

  .search__in { padding-top: 70px; }
  .result img { width: 78px; height: 54px; }
  .result__t { font-size: 14px; }

  /* статья */
  .a-hero { height: 56vh; min-height: 380px; }
  .a-hero__in { padding-bottom: 26px; }
  .a-title { font-size: 28px; }
  .a-meta { gap: 12px; font-size: 13px; margin-top: 16px; }
  .a-layout { grid-template-columns: 1fr; gap: 0; padding-top: 10px; }
  .a-side {
    position: relative; top: 0; z-index: 20;
    display: flex; justify-content: flex-start; align-items: center; gap: 8px; padding: 6px 0 16px;
    margin-bottom: 10px; border-bottom: 1px solid var(--line);
  }
  .a-side hr, .a-side__n { display: none; }
  .a-side .fs-ctrl { flex-direction: row !important; margin-left: auto; }
  .a-side .icon-btn { width: 42px; height: 42px; }
  .share-pop { left: 0; top: calc(100% + 8px); }
  .a-lead { font-size: 18px; padding-left: 16px; }
  .a-body { --fs: 16.5px; margin-top: 24px; }
  .callout { padding: 20px 18px 20px 60px; }
  .callout::before { left: 16px; top: 20px; }
  .pn { grid-template-columns: 1fr; }
  .pn a:last-child { text-align: left; }
  .not-found h1 { font-size: 80px; }
}
