body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
}

/* --- Красная полоса на всю ширину --- */
.top-bar-bg {
    background: #e81f14;
    width: 100vw;
    min-width: 100%;
}
.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    box-sizing: border-box;
}
.lang#lang-switch {
    margin-left: auto;
    margin-right: 0;
    color: #fff;
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 14px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.18s;
    z-index: 9;
}

/* На мобильных — чуть компактнее */
@media (max-width: 1000px) {
  .top-bar-content {
    padding: 0 7px;
    height: 46px;
    min-height: 46px;
  }
  .mobile-logo { display: inline-block !important; }
  .desktop-logo { display: none !important; }
  .lang#lang-switch {
    font-size: 15px;
    padding: 6px 16px;
    margin-left: auto;
    margin-right: 0;
    border-radius: 13px;
  }
}
/* Логотипы */
.desktop-logo {
    display: inline-block;
    height: 46px;
}

.mobile-logo {
    display: none;
    height: 31px;
}

/* Переключатель языка */
.top-bar-content .lang {
    margin-left: 20px;
}
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}
nav {
    flex: 1 1 auto;
    min-width: 0;
}
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 14px;
}
.nav-list li {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    background: none;
    transition: color 0.2s;
    user-select: none;
    white-space: nowrap;
}
.nav-list li:not(.lang):hover {
    color: #fff;
    background: none;
}
.nav-list .lang {
    color: #ffffff;
    font-weight: bold;
    padding: 8px 16px;
    margin-left: 14px;
    cursor: pointer;
    transition: none;
    border-radius: 14px;
}
.nav-list .age {
    background: transparent;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    border: 1.5px solid #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

/* --- Белая подшапка на всю ширину --- */
.sub-bar-bg {
    background: #fff;
    width: 100vw;
    min-width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sub-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-sizing: border-box;
    position: relative;
}

/* Валюты слева */
.currencies {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 11px;
    color: #222;
    font-weight: 500;
    min-width: 260px;
    flex-shrink: 0;
}
.currencies span {
    white-space: nowrap;
}

/* Правая часть: прямой эфир + погода вместе */
.right-block {
    display: flex;
    align-items: center;
    gap: 34px; /* расстояние между эфиром и погодой */
}

/* Прямой эфир */
.live-block {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #222;
    font-weight: 600;
}
.logo-31 {
    height: 23px;
    vertical-align: middle;
}
.live-text {
    font-weight: 600;
    color: #222;
    letter-spacing: 0.01em;
}

/* Погода */
.weather-block {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    padding: 7px 18px 7px 14px;
    border-radius: 22px;
    white-space: nowrap;
    min-width: 140px;
    flex-shrink: 0;
}
#weather-emoji {
    font-size: 21px;
    margin-right: 4px;
}
#weather-city {
    font-weight: 500;
    margin-right: 3px;
}
#geo-weather b {
    font-weight: 600;
}
.weather-arrow {
    font-size: 15px;
    color: #1a1a1a;
    margin-left: 2px;
    opacity: 0.7;
}

/* --- Центрирование основного контента (пример) --- */
main {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Центрируем всё внутри main */
    min-height: 80vh;
    margin-top: 18px;
    width: 100%;
}

.news-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 26px rgba(0,0,0,0.06);
    width: 70vw;
    max-width: 1200px;
    min-width: 340px;
    padding: 48px 48px 38px 48px;  /* одинаковые большие отступы */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* <--- по умолчанию! */
    margin: 0 auto;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 36px;
    color: #999;
    font-size: 15px;
    margin-bottom: 18px;
    margin-top: 2px;
}
.news-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
}
.news-img {
    display: block;
    width: 100%;           /* всегда 100% ширины колонки, без margin! */
    max-width: 650px;      /* максимум, чтобы не растягивать огромные фото */
    max-height: 450px;
    object-fit: cover;
    border-radius: 16px;
    margin: 28px auto 0 auto; /* сверху небольшой отступ, авто — по центру */
}
.tg-btn {
    display: inline-block;
    background: #229ed9;
    color: #fff !important;
    font-weight: 600;
    font-size: 17px;
    padding: 13px 32px;
    border-radius: 28px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(34,158,217,0.11);
    letter-spacing: 0.04em;
    transition: background 0.2s, box-shadow 0.2s;
}
.tg-btn:hover {
    background: #188cc4;
    box-shadow: 0 4px 16px rgba(34,158,217,0.17);
    text-decoration: none;
    color: #fff !important;
}
.breadcrumbs {
    font-size: 14px;
    color: #b2b2b2;
    margin: 0 0 18px 0;   /* Верхний отступ вниз, убрать отступы слева! */
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.breadcrumbs a {
    color: #999;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s;
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #e81f14; /* Красный при наведении */
}

.bc-sep {
    color: #dedede;
    font-size: 13px;
    margin: 0 5px;
}

.bc-current {
    color: #b2b2b2;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.18s;
}

.bc-current:hover {
    color: #e81f14; /* Красный при наведении на "Новости" */
}

/* ---- БУРГЕР и Мобильная адаптация ---- */

.burger {
    display: none;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-right: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 51;
}
.burger span,
.burger span:before,
.burger span:after {
    content: '';
    display: block;
    height: 3px;
    width: 23px;
    border-radius: 2px;
    background: #fff;
    position: relative;
    transition: 0.22s;
}
.burger span:before {
    position: absolute;
    top: -7px;
}
.burger span:after {
    position: absolute;
    bottom: -7px;
}

/* --- Медиазапросы --- */

@media (max-width: 1050px) {
    .top-bar-content {
        max-width: 98vw;
        padding-left: 8px;
        padding-right: 8px;
    }
    .news-card {
        padding: 32px 18px 32px 18px;
        max-width: 98vw;
    }
    .news-img { max-width: 100vw; }
}

@media (max-width: 1000px) {
  .sub-bar-content {
    flex-wrap: nowrap; /* элементы в один ряд */
    justify-content: space-between;
    height: 46px;
    padding: 0 16px;
  }

  /* Скрываем все валюты кроме USD */
  .currencies {
    gap: 0;
    min-width: auto;
    width: auto;
  }
  .currencies span:not(.usd) {
    display: none;
  }
  .currencies span.usd {
    display: inline-block;
    font-size: 13px;
  }
  .right-block {
    gap: 16px;
    font-size: 13px;
    justify-content: flex-end;
  }
}

@media (max-width:1200px) {
    .top-bar-content, .sub-bar-content { height: 54px; }
    .logo { height: 36px; margin-right: 14px; }
    .right-block { gap: 20px; }
    .live-block, .weather-block, .currencies { font-size: 13px; }
    .nav-list li { font-size: 15px; padding: 8px 9px; }
    .nav-list .lang, .nav-list .age { font-size: 15px; }
    .news-card { padding: 19px 7px 28px 7px; }
}

/* --- Мобильная шапка --- */
@media (max-width: 1000px) {
    .top-bar-content, .sub-bar-content {
        max-width: 100vw;
        padding: 0 4px;
        height: 46px;
    }
    .logo { height: 31px; margin-right: 9px; }
    .currencies { font-size: 11px; min-width: unset; gap: 11px;}
    .weather-block, .live-block { font-size: 12px; padding: 4px 8px 4px 6px; }
    .right-block { gap: 7px; }
    .news-card {
        padding: 11px 2vw 17px 2vw;
        width: 98vw;
        max-width: 98vw;
        min-width: 0;
        border-radius: 8px;
    }
    .news-img { border-radius: 7px; margin-top: 15px;}
    .breadcrumbs { font-size: 13px; margin-bottom: 6px; }
}

/* --- Прячем меню, показываем бургер --- */
@media (max-width: 1000px) {
    .nav-list {
        display: none !important;
    }
    .burger {
        display: flex !important;
    }
}

/* --- Мобильное меню выплывающее --- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: rgba(0,0,0,0.15);
}
.mobile-nav.open { display: block; }
.mobile-nav-content {
    background: #fff;
    width: 85vw;
    max-width: 340px;
    height: 100%;
    box-shadow: 2px 0 16px rgba(0,0,0,0.09);
    padding: 24px 0 0 0;
    position: relative;
    overflow-y: auto;
}
.mobile-nav-content ul {
    list-style: none;
    margin: 0; padding: 0 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mobile-nav-content li {
    color: #333;
    font-size: 19px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.18s;
    user-select: none;
}
.mobile-nav-content li:hover { color: #e81f14; }
.mobile-nav-close {
    position: absolute;
    top: 11px;
    right: 17px;
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.14s;
    user-select: none;
}
.mobile-nav-close:hover { color: #e81f14; }
@media (max-width: 1000px) {
    /* Основной блок */
    .news-card {
        width: 98vw;
        max-width: 98vw;
        padding: 16px 16px 24px 16px;
        border-radius: 8px;
    }

    /* Метаданные — флекс с переносом, чтобы данные не ломались */
    .news-meta {
        flex-wrap: wrap;
        gap: 10px 20px;
        justify-content: flex-start;
        font-size: 13px;
        margin-bottom: 12px;
    }
    .news-meta span {
        flex-shrink: 0;
    }

    /* Текст и ссылки */
    .news-body p {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Кнопка на всю ширину с центровкой */
    .tg-btn {
        display: block;
        width: 100%;
        max-width: 360px;
        margin: 24px auto 0 auto;
        padding: 14px 0;
        font-size: 16px;
        text-align: center;
    }

    /* Картинки уже центрируются автоматически по max-width и margin auto */

    /* Навигация и хлебные крошки тоже подстрой */
    .breadcrumbs {
        font-size: 13px;
        margin-bottom: 10px;
        justify-content: flex-start;
        padding-left: 8px;
    }
}

/* Логотипы */
.desktop-logo {
    display: inline-block;
    height: 46px;
}

.mobile-logo {
    display: none;
    height: 31px;
}

/* Переключатель языка */
.top-bar-content .lang {
    margin-left: 20px;
}

/* Медиазапрос для мобильных: меняем breakpoint на 1000px */
@media (max-width: 1000px) {
    .desktop-logo {
        display: none !important;  /* добавил !important чтобы перебить возможные другие стили */
    }
    .mobile-logo {
        display: inline-block !important;
    }
    .top-bar-content .lang {
        padding: 8px 12px;
        font-size: 14px;
        margin-left: 20px;
    }
}

.site-footer {
  background: #151515;
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
  padding-top: 28px;
  margin-top: 32px;
  width: 100%;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.footer-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px 42px;
  justify-content: flex-start;
}

.footer-logo-block {
  min-width: 150px;
  margin-right: 16px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.footer-logo {
  display: block;
  height: 43px;
  margin-bottom: 14px;
}

.mobile-footer-logo { display: none; }

.footer-links {
  display: flex;
  flex-direction: column;
  min-width: 170px;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.19s;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.footer-links a:hover {
  color: #e81f14;
}

/* --- Футер: Соцблок для ПК и мобилы --- */
.footer-social-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.footer-mobile-social {
  display: none;
}

/* --- Логотипы футера --- */
.desktop-footer-logo { display: block; }
.mobile-footer-logo { display: none; }

/* --- Стили ссылок футера --- */
.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #e81f14;
}

/* --- Социконки --- */
.footer-social-icons a img {
  width: 34px;
  height: 34px;
  margin: 0 3px;
  border-radius: 6px;
  padding: 3px;
  transition: box-shadow 0.16s;
}
.footer-social-icons a:hover img {
  box-shadow: 0 0 7px #e81f14;
}
.footer-social-title, .footer-projects-title {
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  margin: 15px 0 8px 0;
  text-align: center;
}
.footer-projects-logo svg {
  display: block;
  margin: 0 auto;
  margin-top: 6px;
}

/* --- Копирайт и счетчики --- */
.footer-bottom {
  color: #fff;
  background: #181818;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  padding: 10px 24px 10px 24px;
  border-radius: 0 0 12px 12px;
  gap: 10px;
}
.footer-counters {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-arrow { height: 26px; }
.footer-stat { height: 22px; }

/* --- Футер колонки --- */
.footer-main {
  background: #181818;
  border-radius: 0 0 18px 18px;
  padding: 38px 2vw 8px 2vw;
}
.footer-cols {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo-block {
  min-width: 170px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 190px;
}

/* --- ПК: Только десктопная версия соцблока --- */
@media (min-width: 901px) {
  .footer-social-block {
    display: flex !important;
  }
  .footer-mobile-social {
    display: none !important;
  }
  .desktop-footer-logo { display: block; }
  .mobile-footer-logo { display: none; }
}

/* --- Мобильная версия --- */
@media (max-width: 900px) {
  .footer-cols {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-links {
    flex-direction: column;
    gap: 6px;
    min-width: unset;
    font-size: 16px;
    margin-bottom: 14px;
  }
  .footer-main {
    padding: 23px 7vw 2px 7vw;
    border-radius: 0 0 12px 12px;
  }
  .footer-logo-block {
    margin-bottom: 18px;
    min-width: unset;
  }
  .footer-social-block {
    display: none !important;  /* скрыть десктопный соцблок */
  }
  .footer-mobile-social {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 7px;
    margin-bottom: 9px;
  }
  .desktop-footer-logo { display: none !important; }
  .mobile-footer-logo { display: block !important; }
  .footer-bottom {
    font-size: 12px;
    padding: 9px 6vw 9px 6vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border-radius: 0 0 10px 10px;
  }
  .footer-social-title,
  .footer-projects-title {
    font-size: 14px;
    margin: 10px 0 7px 0;
  }
  .footer-social-icons a img {
    width: 32px;
    height: 32px;
  }
  .footer-projects-logo svg {
    width: 43px;
    height: 43px;
  }
}

/* --- Блок лайков и соцсетей --- */

.likes-section {
  margin: 36px 0 0 0;
  padding-top: 28px;
  border-top: 1.5px solid #ededed;
  width: 100%; /* строго по .news-card */
  min-width: 0; /* убираем ограничения */
  box-sizing: border-box;
}
.likes-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 11px;
}
.likes-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 17px;
}
.like-btn, .dislike-btn {
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 22px;
  color: #e81f14;
  transition: transform 0.14s;
  margin: 0 4px;
  padding: 0;
}
.like-btn:active, .dislike-btn:active {
  transform: scale(1.18);
}
.like-count, .dislike-count {
  font-size: 17px;
  margin-left: 3px;
  color: #1a1a1a;
  font-weight: 500;
  min-width: 22px;
  text-align: left;
}

/* --- Кнопки поделиться --- */
.share-title {
  font-weight: bold;
  margin-bottom: 11px;
  font-size: 17px;
}
.share-buttons {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: #e7edf500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.18s, background 0.15s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.share-btn img {
  width: 27px;
  height: 27px;
  display: block;
}
.share-btn.facebook { background: #4468b000; }
.share-btn.x  { background: #59a2ec00; }
.share-btn.vk       { background: #4c75a300; }
.share-btn.telegram { background: #309fd700; }
.share-btn.whatsapp { background: #26d16a00; }
.share-btn:hover {
  box-shadow: 0 2px 13px #b6d2f1;
  filter: brightness(1.09);
}

@media (max-width: 1000px) {
  .likes-section {
    width: 95vw;
    min-width: unset;
    max-width: 99vw;
    margin-left: auto;
    margin-right: auto;
  }

  .likes-title {
    font-size: 16px;
    text-align: center;
    margin-bottom: 8px;
  }
  .likes-row {
    gap: 15px;
    margin-bottom: 13px;
    justify-content: center;
  }
  .share-title {
    font-size: 15px;
    margin-bottom: 7px;
    text-align: center;
  }
  .share-buttons {
    gap: 7px;
    justify-content: center;
  }
  .share-btn {
    width: 38px;
    height: 38px;
  }
  .share-btn x {
    width: 22px;
    height: 22px;
  }
}