:root {
  --color-primary: #57a4db;
  --color-text: #000000;
  --color-white: #ffffff;
  --color-background-light: #f8f8f8;
  --color-background-main: #ededed;
  --color-background-card: #f6f6f6;
  --color-border: #000000;
  --font-main: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: #E5E5E5;
  color: var(--color-text);
}


.sponsors-container{ 
    background: white; 
    border-radius: 10px; 
    opacity: 1;
    padding: 14px 20px!important;
  }
  
.page-wrapper { 
  margin: 0 auto;
  background-color: transparent;
  overflow: visible;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: visible;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #56a4db;
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #4a8ac0;
}

/* Home2 header theme */
.home2-header-theme .top-ad-banner { display: none; }
.home2-header-theme .header-main-wrapper { padding: 12px 0; background: #fff; box-shadow: none; }
.home2-header-theme .header-main-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}
.home2-header-theme .logo img { height: 80px; width: auto; }
.home2-header-theme .main-navigation { background: #fff; border: none; }
.home2-header-theme .main-navigation .container {
    max-width: 1200px;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}
.home2-header-theme .nav-links {
    display: flex;
    gap: 32px;
    font-weight: 700;
    font-size: 18px;
    align-items: center;
}
.home2-header-theme .nav-links li a { color: #000; }
.home2-header-theme .search-toggle {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: transparent; cursor: pointer;
}
.home2-header-theme .header-separator { height: 48px; background: #000; }
@media (max-width: 992px) {
    .home2-header-theme .nav-links { flex-wrap: wrap; justify-content: center; }
    .home2-header-theme .header-main-container { grid-template-columns: 1fr auto; }
}

/* Footer new - Figma styles */
.footer-new {
  padding: 76px 0 50px;
  background: #FFFFFF;
  color: #000000;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
}
.footer-new__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.footer-new__col-about {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-new__logo { width: 117px; height: auto; flex-shrink: 0; }
.footer-new__desc {
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
}
.footer-new__desc a { color: #000; text-decoration: underline; }
.footer-new__desc a:hover { text-decoration: none; }
.footer-new__section h4 {
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}
.footer-new__section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-new__section ul li {
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
}
.footer-new__section ul li a { color: #000; text-decoration: none; }
.footer-new__section ul li a:hover { text-decoration: underline; }
.footer-sections-columns {
  display: flex;
  gap: 60px;
}
.footer-sections-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-sections-columns ul li {
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
}
.footer-sections-columns ul li a { color: #000; text-decoration: none; }
.footer-sections-columns ul li a:hover { text-decoration: underline; }
.footer-new__bottom {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
}
.footer-new__legal {
  flex: 0 0 calc(66.666% - 20px);
  max-width: calc(66.666% - 20px);
}
.footer-new__rights {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  text-align: right;
}
.footer-new__rights a { color: #000; }
@media (max-width: 1200px) {
  .footer-new__grid { gap: 30px; }
}
@media (max-width: 992px) {
  .footer-new__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-new__col-about { grid-column: 1 / -1; }
  .footer-new__bottom { flex-direction: column; gap: 20px; }
  .footer-new__legal { max-width: 100%; }
  .footer-new__rights { text-align: left; }
}
@media (max-width: 768px) {
  .footer-new__grid { grid-template-columns: 1fr; }
  .footer-new__col-about { flex-direction: column; }
}
@media (max-width: 768px) {
  .footer-new { padding: 40px 0 30px; font-size: 16px; line-height: 20px; }
  .footer-new__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-new__section h4 { font-size: 18px; margin-bottom: 16px; }
  .footer-new__section ul li { font-size: 16px; line-height: 20px; }
  .footer-sections-columns { gap: 40px; }
  .footer-sections-columns ul li { font-size: 16px; line-height: 20px; }
  .footer-new__desc { font-size: 16px; line-height: 20px; }
  .footer-new__bottom { font-size: 14px; line-height: 18px; flex-direction: column; gap: 20px; margin-top: 30px; }
  .footer-new__legal { flex: 1 1 100%; }
  .footer-new__rights { flex: 1 1 100%; text-align: left; }
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 40px 0;
}

/* Стили для карточек новостей с боковой панелью */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
    align-items: start;
}

/* Стили для страницы категории с сайдбаром */
.category-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.category-content {
    min-width: 0;
}

.category-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    align-self: start;
    height: fit-content;
}

.sidebar-subcategories {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 12px;
}

.subcategories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subcategories-list li {
    margin-bottom: 12px;
}

.subcategories-list li:last-child {
    margin-bottom: 0;
}

.subcategory-link {
    display: block;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.subcategory-link:hover {
    background: var(--color-primary);
    color: #fff;
    border-left-color: #4a8ac0;
    transform: translateX(4px);
}

@media (max-width: 1200px) {
    .category-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .category-sidebar {
        position: static;
    }
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-list-grid .news-card-img {
    height: 250px;
    width: 100%;
}

.news-list-grid .news-card-img.no-image {
    height: 250px;
    width: 100%;
}

.home-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    align-self: start;
    height: fit-content;
}

.sidebar-banner {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Стили для карточек новостей */
.news-card {
    background: #F8F8F8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 240px;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.news-card a {
    text-decoration: none;
    color: inherit;
}

.news-card > a {
    height: 100%;
    display: block;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    background-color: #e0e0e0;
}

.news-card-img.no-image {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 48px;
    min-height: 250px;
    width: 100%;
    height: 100%;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: var(--color-text-primary);
}

.news-card-excerpt {
    font-size: 13px;
    color: #666;
    margin: 0 0 14px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 59px;
    min-height: 59px;
    max-height: 59px;
}

.news-card-footer {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 20px;
}

.news-card-meta {
    display: none;
    align-items: center;
    gap: 8px;
}

.news-card-btn {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-text-primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;

    top: 201px;
    left: 439px;
    border-radius: 10px;
    angle: 0 deg;
    opacity: 1;
    gap: 10px;
    border-width: 1px;
    border: 1px solid #000000;
}

.news-card-btn:hover {
    background: #56A4DB;
    border: 1px solid #56A4DB;
    color: white;
}
.load-more-btn{
    padding: 15px 120px;
    cursor: pointer;
}
.load-more-btn:hover {
    background: #56A4DB;
    border: 1px solid #56A4DB;
    color: white;
}
/* Адаптивность */
@media (max-width: 1200px) {
    .home-layout,
    .news-feed-container {
        grid-template-columns: 3fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .home-layout,
    .news-feed-container {
        grid-template-columns: 1fr;
        gap: 40px;
        display: block !important;
    }
    
    .home-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .news-list-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-list-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-list-grid .news-card-img,
    .news-list-grid .news-card-img.no-image {
        height: 250px;
    }
    
    .category-2-columns .news-card-img,
    .category-2-columns .news-card-img-container,
    .category-2-columns .news-card-img.no-image {
        height: 250px;
    }
    
    .home-sidebar {
        grid-template-columns: 1fr;
    }
    
    .news-feed-sidebar {
        grid-template-columns: 1fr 1fr;
    }
    
    .news-card {
        display: flex;
        flex-direction: column;
        grid-template-columns: unset;
        min-height: auto;
        height: auto;
    }
    
    .news-card-img {
        height: 200px;
        width: 100%;
    }
    
    .news-card-body {
        flex: 1;
    }
    
    .news-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .news-card-btn {
        width: 100%;
        text-align: center;
    }
}

/* Стили для страницы категорий */
.category-header {
    padding: 40px 0;
    background-color: var(--color-background-main);
}

.category-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

.news-list-section {
    padding: 50px 0;
    background-color: var(--color-white);
    width: 100%;
}

/* 2 колонки для категорий */
.category-2-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.category-2-columns .news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    grid-template-columns: none;
}

.category-2-columns .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.category-2-columns .news-card > a {
    display: flex;
    flex-direction: column;
    height: auto;
}

.category-2-columns .news-card-img {
    height: 280px;
}

.category-2-columns .news-card-img-container {
    height: 280px;
    width: 100%;
}

.category-2-columns .news-card-img.no-image {
    height: 280px;
    width: 100%;
}

.category-2-columns .news-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-2-columns .news-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    /* Убираем ограничения на высоту и обрезку текста */
    display: block !important;
    -webkit-line-clamp: none !important;
    -webkit-box-orient: initial !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
}

.category-2-columns .news-card-title-link {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    width: 100%;
}

.category-2-columns .news-card-title-link:hover {
    color: var(--color-primary);
}

.category-2-columns .news-card-excerpt {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 16px 0;
    color: var(--color-text-secondary);
    flex: 1;
}

.category-2-columns .news-card-meta {
    display: flex;
    margin-top: auto;
    font-size: 13px;
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .category-title {
        font-size: 28px;
    }
    
    .category-2-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-2-columns .news-card-title {
        min-height: auto;
    }
    
    .category-2-columns .news-card-img,
    .category-2-columns .news-card-img-container,
    .category-2-columns .news-card-img.no-image {
        height: 250px;
    }
}

/* Стили для страницы поиска */
.search-page {
    padding: 50px 0;
    background-color: #f8f9fa;
    min-height: 60vh;
}

.search-form {
    max-width: 800px;
    margin: 0 auto 40px;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-size: 18px;
}

.search-button {
    padding: 15px 40px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.search-button:hover {
    background-color: #4a8ac0;
    transform: translateY(-2px);
}

.search-results-header {
    margin-bottom: 30px;
    text-align: center;
}

.search-results-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.search-highlight {
    background-color: #ffd700;
    padding: 2px 4px;
    font-weight: 600;
}

/* Вертикальные карточки для поиска */
.search-page .news-list-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.search-page .news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    grid-template-columns: none;
}

.search-page .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.search-page .news-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-page .news-card-img {
    height: 250px;
}

.search-page .news-card-img-container {
    height: 250px;
    width: 100%;
}

.search-page .news-card-img.no-image {
    height: 250px;
    width: 100%;
}

.search-page .news-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-page .news-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.search-page .news-card-title-link {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-page .news-card-title-link:hover {
    color: var(--color-primary);
}

.search-page .news-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px 0;
    color: var(--color-text-secondary);
    flex: 1;
}

.search-page .news-card-meta {
    display: flex;
    margin-top: auto;
    font-size: 13px;
    color: var(--color-text-secondary);
}

@media (max-width: 1200px) {
    .search-page .news-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-page .news-card-img,
    .search-page .news-card-img-container,
    .search-page .news-card-img.no-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .search-page .news-list-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-page .news-card-img,
    .search-page .news-card-img-container,
    .search-page .news-card-img.no-image {
        height: 250px;
    }
}

/* Фильтр сортировки */
.sort-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sort-label {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-right: 15px;
}

.sort-buttons {
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 10px 24px;
    border: 2px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-primary);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.sort-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.sort-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Пагинация */
.pagination-wrapper {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: inline-block;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    line-height: 44px;
    text-align: center;
    border-radius: 8px;
    background: var(--color-background-light);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.pagination .page-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination a, .pagination span {
    display: inline-block;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    line-height: 44px;
    text-align: center;
    border-radius: 8px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.pagination a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.pagination .active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination-info {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

/* Стили для страницы новости */
.news-header {
    padding: 40px 0;
    background-color: var(--color-background-main);
}

.news-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.news-content-section {
    padding: 50px 0;
    background-color: var(--color-white);
    width: 100%;
}

.news-content-container {
    display: grid; 
    gap: 40px;
}

/* Контейнер изображения с размытым фоном */
.news-image-container {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Размытый фон */
.news-image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
}

/* Обертка для основного изображения */
.news-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Основное изображение */
.news-main-image {
    object-fit: contain;
    max-height: 100%;
    max-width: 100%;
    height: 100%;
    width: auto;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .news-image-container {
        height: 300px;
    }
}

/* ========================================
   Изображения в карточках новостей
   ======================================== */

/* Контейнер изображения карточки с размытым фоном */
.news-card-img-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
    min-height: 200px;
}

/* Размытый фон для карточки */
.news-card-img-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.1);
}

/* Обертка для изображения карточки */
.news-card-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Изображение карточки внутри контейнера с размытым фоном */
.news-card-img-container .news-card-img {
    object-fit: contain !important;
    max-height: 100%;
    max-width: 100%;
    height: 100% !important;
    width: auto !important;
}

/* Обычное изображение карточки (без контейнера) остается как было */
.news-card > a > .news-card-img:not(.news-card-img-container .news-card-img) {
    object-fit: cover;
} 

.news-content {
    font-size: 18px;
    line-height: 1.8;
}

.news-content p {
    margin: 0 0 20px 0;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.news-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.news-gallery img:hover {
    transform: scale(1.05);
}

/* Modal/Lightbox стили */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.gallery-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.gallery-modal-prev,
.gallery-modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    border-radius: 3px;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    z-index: 10000;
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background-color: rgba(0,0,0,0.8);
}

.gallery-modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background-color: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 20px;
}

.related-news {
    position: sticky;
    top: 20px;
}

.related-news-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.related-news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.related-news-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.related-news-title-small {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: #333;
}

/* Улучшенные метаданные */
.news-meta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.news-meta-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.news-meta-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Категории-бейджи */
.news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--color-primary), #1976d2);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Превью новости */
.news-preview {
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
}

/* Улучшенный контент */
.news-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.news-content p {
    margin: 0 0 20px 0;
}

.news-content h2,
.news-content h3 {
    margin: 30px 0 15px 0;
    color: #222;
}

.news-content ul,
.news-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-content li {
    margin-bottom: 10px;
}

.news-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: #f8f9fa;
    border-left: 4px solid var(--color-primary);
    font-style: italic;
    color: #555;
}

/* Мета-блоки (источники, фото) */
.news-meta-block {
    margin: 15px 0;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.news-meta-label {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.news-source-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.news-source-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

.news-source-link i {
    font-size: 10px;
    margin-left: 3px;
    opacity: 0.7;
}

.news-source-text {
    color: #555;
}

.news-photo-authors {
    color: #666;
    font-style: italic;
}

/* Теги */
.news-tags {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
}

.news-tags h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.news-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-tag {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.news-tag:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.2);
}


@media (max-width: 1024px) {
    .news-content-container {
        grid-template-columns: 1fr;
    }
    
    .news-meta-primary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .news-title {
        font-size: 24px;
    }
    
    .news-content {
        font-size: 16px;
    }
    
    .news-preview {
        font-size: 18px;
        padding: 15px;
    }
    
    .breadcrumbs {
        font-size: 12px;
    }
}

/* Статические страницы */
.static-page {
    padding: 50px 0;
    background-color: #f8f9fa;
    min-height: 70vh;
}

.static-content {
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin: 0 0 40px 0;
    text-align: center;
}

.content-block {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.content-block h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.content-block h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
}

.content-block p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 15px;
}

.content-block .lead {
    font-size: 18px;
    color: #555;
    font-weight: 500;
}

.content-block ul {
    margin: 15px 0;
    padding-left: 25px;
}

.content-block li {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}

/* Сетки */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}

.feature-icon {
    color: #2196F3;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    margin: 10px 0;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.principles-list {
    list-style: none;
    padding: 0;
}

.principles-list li {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid #2196F3;
}

/* CTA блок */
.cta-block {
    text-align: center;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.cta-block h2 {
    color: white;
}

.cta-block p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
}

.cta-block .btn-primary {
    background: white;
    color: #2196F3;
    margin-top: 20px;
}

.cta-block .btn-primary:hover {
    background: #f8f9fa;
}

/* Реклама */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2196F3;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.format-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.format-item:last-child {
    border-bottom: none;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.advantage-item svg {
    color: #2196F3;
    flex-shrink: 0;
}

.advantage-item p {
    margin: 0;
    font-size: 15px;
}

.contact-info {
    margin: 20px 0;
}

.contact-info p {
    font-size: 16px;
    margin: 10px 0;
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #2196F3;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #999;
}

.contact-details p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.contact-details a {
    color: #2196F3;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.department-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.department-item:last-child {
    border-bottom: none;
}

.department-item h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.department-item p {
    margin: 5px 0;
}

.department-item a {
    color: #2196F3;
    text-decoration: none;
}

.department-item a:hover {
    text-decoration: underline;
}

.note {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: #2196F3;
    color: white;
}

.useful-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.useful-links li {
    margin-bottom: 10px;
}

.useful-links a {
    color: #2196F3;
    text-decoration: none;
}

.useful-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .content-block {
        padding: 25px 20px;
    }
    
    .features-grid,
    .stats-grid,
    .advantages-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

/* Стили для layout секций */

/* Header */
.site-header {
    background-color: var(--color-white);
    width: 100%;
}

.top-ad-banner {
    background-color: var(--color-white);
}

.top-ad-banner img {
    width: 100%;
    height: auto;
}

.header-main-wrapper {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    background-color: var(--color-white);
    width: 100%;
}

.header-main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle, .search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.logo img {
    height: 70px;
    width: auto;
}

.main-navigation {
    padding: 15px 0;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
    background-color: var(--color-white);
    width: 100%;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.nav-links a {
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Hero */
.hero-section {
    padding: 50px 0;
    background-color: var(--color-background-main);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.hero-main-article {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    min-height: 600px;
}

.hero-main-article a {
    display: block;
    height: 100%;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: var(--color-white);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

.hero-main-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.6);
}

.hero-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 250px);
    gap: 18px;
    height: 100%;
}

.sidebar-article {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

.sidebar-article a {
    display: block;
    height: 100%;
}

.sidebar-article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-img.no-image {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sidebar-article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    color: var(--color-white);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%);
}

.sidebar-article-content h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0px 6px 6px #000000;
}
 
/* Sponsors */
.sponsors-section {
    padding:  0;
    background-color: var(--color-background-main);
}

.news-list-content{
    margin-bottom: 30px;
}

.sponsors-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.sponsor-card {
    display: flex;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    min-height: 151px;
}

.sponsor-image-wrapper {
    flex-shrink: 0;
    width: 45%;
    position: relative;
}

.sponsor-text-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.ad-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.sponsor-title {
    margin: 0 0 8px 0;
    font-weight: 700;
    flex-grow: 1;
}

.sponsor-title.style-large {
    font-size: 24px;
}

.sponsor-title.style-small {
    font-size: 14px;
}

.ad-url {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* NewsGrid */
.news-grid-section {
    padding: 50px 0;
    background-color: var(--color-white);
    overflow: visible;
}

.news-grid-container {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.news-card-horizontal {
    display: flex;
    gap: 15px;
    background: var(--color-background-light);
    border-radius: 10px;
    overflow: hidden;
    padding: 12px;
}

.news-card-image {
    width: 45%;
    flex-shrink: 0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.news-card-content {
    display: flex;
    flex-direction: column;
}

.news-card-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.news-card-content p {
    font-size: 12px;
    line-height: 1.3;
    margin: 0 0 15px 0;
    flex-grow: 1;
    color: #555;
}

.btn.btn-secondary {
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-load-more {
    display: block;
    margin: 40px auto 0;
    width: 350px;
    padding: 15px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    color: var(--color-text);
    font-weight: 600;
}

.news-grid-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-vertical img {
    width: 100%;
    border-radius: 10px;
}

/* Categories */
.categories-section {
    padding: 50px 0;
    background-color: var(--color-background-main);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sidebar-article-content h3 {
        font-size: 0.7rem; 
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--color-background-card);
    transition: transform 0.2s, box-shadow 0.2s; 
    min-height: 120px;
    position: relative;
    align-items: flex-start;
}

.category-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);

    background-color: var(--color-primary);
    color: var(--color-white);
}

.category-link span { 
    font-family: Inter;
    font-weight: 500; 
    font-size: 28px; 
    line-height: 110%; 
}

.category-link svg { 
    position: absolute;
    right: 0;
    bottom: 0;
    width: 80px;
    height: 80px;
}
.category-link svg path {
    fill: #9C9C9C;
}
.category-link:hover svg path {
    fill: #fff;
}
.category-link.style-blue {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.category-link.style-blue img {
    filter: brightness(0) invert(1);
}

/* NewsFeed */
.news-feed-section {
    padding: 50px 0;
    background-color: var(--color-white);
    width: 100%;
}

.news-feed-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.feed-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 60px;
}

.feed-item {
    display: block;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.3s;
}

.feed-item:hover {
    color: var(--color-primary);
}

.news-feed-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
    align-self: start;
}

/* Footer */
.site-footer-bottom {
    background-color: var(--color-background-main);
    padding-top: 80px;
    font-size: 20px;
    line-height: 1.4;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1.5fr 1fr;
    grid-template-areas:
        "about links contacts feedback"
        "legal legal copyright copyright";
    gap: 40px 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.footer-col, .footer-legal, .footer-copyright {
    font-size: 20px;
}

.footer-col p, .footer-col address {
    margin: 0;
    font-style: normal;
}

.footer-col a {
    text-decoration: underline;
}

.footer-col a:hover {
    text-decoration: none;
}

.footer-about { grid-area: about; }
.footer-links { grid-area: links; }
.footer-contacts { grid-area: contacts; }
.footer-feedback { grid-area: feedback; }
.footer-legal { grid-area: legal; }
.footer-copyright { grid-area: copyright; }

.footer-logo { 
    margin-bottom: 20px;
}

.footer-links-columns {
    display: flex;
    gap: 40px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-legal, .footer-copyright {
    font-size: 16px;
    color: #555;
}

.footer-copyright {
    text-align: right;
}

.bottom-ad-banner img {
    width: 100%;
}

/* Media queries для layout секций */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .hero-main-article {
        height: 100%;
        min-height: 500px;
    }
    
    .hero-sidebar {
        grid-template-rows: repeat(3, 250px);
    }
    
    .sidebar-article {
        height: 250px;
    }
    
    .news-grid-container {
        grid-template-columns: 1fr;
    }
    
    .news-grid-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 40px;
    }
    
    .news-feed-container {
        grid-template-columns: 1fr;
    }
    
    .news-feed-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 40px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "about about"
            "links contacts"
            "feedback feedback"
            "legal legal"
            "copyright copyright";
    }
    
    .footer-copyright {
        text-align: left;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .nav-links a {
        font-size: 16px;
    }
    
    .logo img {
        height: 50px;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero-main-article {
        height: auto;
        aspect-ratio: 16/9;
        min-height: auto;
    }
    
    .hero-sidebar {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 250px);
        height: auto;
    }
    
    .sidebar-article {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .header-main-container {
        justify-content: space-between;
    }
    
    .logo {
        flex-grow: 1;
        text-align: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .feed-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .feed-item {
        font-size: 18px;
        padding: 20px 0;
    }
    
    .site-footer-bottom {
        font-size: 16px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "about"
            "links"
            "contacts"
            "feedback"
            "legal"
            "copyright";
    }
    
    .footer-links-columns {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .hero-sidebar {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 250px);
    }
    
    .sidebar-article {
        min-height: 200px;
    }
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 10000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: var(--color-primary);
    color: white;
}

.mobile-menu-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 36px;
    color: white;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-links li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-links a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu-links a:hover {
    background: var(--color-primary);
    color: white;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sponsors Section */
.sponsors-section {
    padding: 50px 0;
    background-color: var(--color-white);
}

.sponsors-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sponsor-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sponsor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.sponsor-image-wrapper {
    position: relative;
    width: 140px;
    min-width: 140px;
    height: 140px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}
.carousel-indicators {
    display: none !important;
}
.sponsor-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sponsor-text-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.ad-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sponsor-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.sponsor-title.style-large {
    font-size: 16px;
}

.sponsor-title.style-small {
    font-size: 14px;
}

.ad-url {
    font-size: 12px;
    color: #57a4db;
    margin: 0;
    margin-top: 8px;
}

@media (max-width: 1200px) {
    .sponsors-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sponsors-section {
        padding: 30px 0;
        position: relative;
    }

    .sponsors-section .container {
        padding: 0;
        max-width: 100%;
    }

    .sponsors-container {
        display: flex;
        overflow: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: relative;
        gap: 0;
        scroll-snap-type: x mandatory;
        width: 100%;

        padding: 0 !important;
    }
    
    .sponsors-container::-webkit-scrollbar {
        display: none;
    }
    
    .sponsor-card {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        flex-shrink: 0;
        margin: 0;
        scroll-snap-align: start;
        box-sizing: border-box;
    }
    
    .sponsor-image-wrapper {
        width: 140px;
        min-width: 140px;
        height: 140px;
    }
    
    .sponsor-text-content {
        padding: 16px;
    }
    
    /* Индикаторы карусели */
    .sponsors-section .carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    
    .sponsors-section .carousel-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.3s;
    }
    
    .sponsors-section .carousel-indicator.active {
        background: #2196F3;
        width: 24px;
        border-radius: 4px;
    }
    
    .sponsor-title {
        font-size: 14px;
    }
}

/* ========================================
   Статические страницы
   ======================================== */

.static-page-wrapper {
    background: #f5f5f5;
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.static-page-layout {
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 30px;
    margin-top: 20px;
}

.static-page-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.static-page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.about-logo {
    text-align: center;
    margin: 40px 0;
}

.static-text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.static-text-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 20px;
    color: #1a1a1a;
}

.static-text-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 25px 0 15px;
    color: #1a1a1a;
}

.static-text-content p {
    margin-bottom: 15px;
}

.static-text-content a {
    color: #0066cc;
    text-decoration: none;
}

.static-text-content a:hover {
    text-decoration: underline;
}

.static-text-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.static-text-content ul li {
    margin-bottom: 10px;
}

.static-page-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.contact-map {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Мобильная версия */
@media (max-width: 968px) {
    .static-page-layout {
        grid-template-columns: 1fr;
    }
    
    .static-page-content {
        padding: 25px;
    }
    
    .static-page-title {
        font-size: 28px;
    }
    
    .static-page-sidebar {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .static-page-wrapper {
        padding: 20px 0;
    }
    
    .static-page-content {
        padding: 20px;
    }
    
    .static-page-title {
        font-size: 24px;
    }
    
    .static-text-content {
        font-size: 15px;
    }
}

/* ========================================
   Модальное окно поиска
   ======================================== */

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.search-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.search-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}

.search-modal-close {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.search-modal-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.search-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.search-modal-input {
    width: 100%;
    padding: 18px 18px 18px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.search-modal-input:focus {
    outline: none;
    border-color: #57a4db;
    box-shadow: 0 0 0 4px rgba(87, 164, 219, 0.1);
}

.search-modal-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #57a4db 0%, #4a8fc7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-button:hover {
    background: linear-gradient(135deg, #4a8fc7 0%, #3d7ab3 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(87, 164, 219, 0.3);
}

.search-modal-button:active {
    transform: translateY(0);
}

.search-modal-hint {
    margin-top: 20px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .search-modal-content {
        padding: 30px 20px;
        width: 95%;
        border-radius: 16px;
    }
    
    .search-modal-header h2 {
        font-size: 20px;
    }
    
    .search-modal-input {
        padding: 16px 16px 16px 46px;
        font-size: 15px;
    }
    
    .search-modal-button {
        padding: 16px;
        font-size: 15px;
    }
    
    .search-modal-hint {
        font-size: 12px;
    }
}

/* ========================================
   Home2 Page Styles
   ======================================== */

.home2-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 16px;
    align-items: start;
    overflow: visible;
    position: relative;
    min-height: 100vh;
}
.home2-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow: visible;
}
.home2-hero-section {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 16px;
    padding: 0;
}
.home2-hero-main {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    height: 500px;
}
.home2-hero-main a,
.home2-hero-main-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.home2-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home2-hero-main-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}
.home2-hero-side {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    height: 500px;
}
.home2-hero-side a,
.home2-hero-side-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}
.home2-hero-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home2-hero-side-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 12px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}
.home2-hero-fallback {
    background: #f3f3f3;
    border-radius: 10px;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-weight: 600;
}
.home2-ad-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.home2-ad-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.home2-ad-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}
.home2-ad-text { font-weight: 700; font-size: 14px; line-height: 1.3; }
.home2-section { 
    border-radius: 10px; 
    border: 1px solid #e9e9e9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.home2-section-title {
    font-size: 32px;
    font-weight: 400;
    margin: 0 12px;
    text-align: left;
}
.home2-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 12px;
}
.home2-news-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    border: 1px solid #e5e8f0;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.04);
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}
.home2-news-card.highlight { background: #e8f2ff; }
.home2-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    background: #4AA5DD;
    border-color: var(--news-hover-border, #d6e7ff);
} 
.home2-news-card:hover * {
   color: #fff!important;
}
.home2-news-card:hover svg path {
    stroke: #fff!important;
}
.home2-news-card-thumb {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}
 


.home2-news-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home2-news-card-body { display: flex; flex-direction: column; gap: 6px; padding: 0; }
.home2-news-card-title { font-weight: 800; font-size: 14px; line-height: 1.3; color: #000; margin: 0; }
.home2-news-card-title a { color: inherit; text-decoration: none; }
.home2-news-card-title a:hover { text-decoration: underline; }
.home2-news-card-excerpt {
    font-size: 14px;
    color: #444;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home2-news-card-date { font-size: 14px; color: #1a73e8; display: inline-flex; align-items: center; gap: 8px; }
.home2-news-card-date svg { width: 20px; height: 20px; }
.home2-video-strip {
    background: #4a90e2;
    border-radius: 12px;
    padding: 14px;
}

 

.home2-video-grid-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.home2-video-thumb {
    width: 100%;
    aspect-ratio: 16 / 12;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home2-video-thumb:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.home2-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home2-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
}
.home2-video-placeholder i {
    font-size: 48px;
    color: #fff;
    opacity: 0.5;
}
.home2-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}
.home2-video-play-icon i {
    font-size: 28px;
    color: #333;
    margin-left: 4px;
}
.home2-video-thumb:hover .home2-video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}
.home2-video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* Video Popup */
.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.video-popup.active {
    display: flex;
}
.video-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease;
    z-index: 10;
}
.video-popup-close:hover {
    background: rgba(255,255,255,0.2);
}
.video-popup-wrapper {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
}
.video-popup-main {
    flex: 1;
    min-width: 0;
}
.video-popup-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.video-popup-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.video-popup-sidebar {
    width: 280px;
    flex-shrink: 0; 
    flex-direction: column;
    overflow: scroll;
}
.video-popup-sidebar-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.video-popup-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 8px;
    min-height: 0;
}
.video-popup-list::-webkit-scrollbar {
    width: 4px;
}
.video-popup-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}
.video-popup-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}
.video-popup-item {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    background: #333;
}
.video-popup-item:hover {
    opacity: 0.8; 
} 
.video-popup-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-popup-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-popup-item-placeholder i {
    font-size: 24px;
    color: #666;
}
@media (max-width: 900px) {
    .video-popup { padding: 20px; }
    .video-popup-wrapper { flex-direction: column; max-height: none; }
    .video-popup-sidebar { width: 100%; max-height: 120px; }
    .video-popup-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; gap: 12px; }
    .video-popup-item { width: 140px; flex-shrink: 0; }
}
.home2-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    height: fit-content;
    background: rgba(255,255,255,0.85);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08); 
    color: #000;
    transition: top 0.1s ease-out;
}
.sidebar-news-list{
    padding: 18px 16px;
}
.home2-sidebar h3 {
    font-family: 'Inter', sans-serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 39px;
    margin: 0 0 16px;
    text-align: center;
    color: #000;
}
.home2-sidebar ul { list-style: none; padding: 0; margin: 0; }
.home2-sidebar li {
    padding: 14px 0;
    border-bottom: 1px solid #000;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 24px;
    color: #000;
}
.home2-sidebar li:last-child { border-bottom: none; }
.home2-sidebar a { color: #000; text-decoration: none; }
.home2-sidebar a:hover { text-decoration: underline; }

/* Время в ленте новостей */
.feed-time {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #007bff;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}
.home2-sidebar li {
    display: flex;
    flex-direction: column;
}
.home2-load-more {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid #000;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 600;
}

/* Заголовок ленты с иконкой календаря */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.feed-header h3 {
    margin: 0 !important;
}
.cal-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
}
.cal-toggle-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}
.cal-toggle-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* Календарь в сайдбаре */
.sidebar-calendar {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.calendar-header span {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.cal-nav {
    width: 28px;
    height: 28px;
    border: none;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.cal-nav:hover {
    background: #e9ecef;
}
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
}
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}
.cal-day:not(.empty):not(.future):hover {
    background: #e9ecef;
}
.cal-day.empty {
    cursor: default;
}
.cal-day.future {
    color: #ccc;
    cursor: not-allowed;
}
.cal-day.today {
    background: #007bff;
    color: #fff;
    font-weight: 600;
}
.cal-day.selected {
    background: #28a745;
    color: #fff;
    font-weight: 600;
}
.cal-day.today.selected {
    background: #28a745;
}
.sidebar-news-list .no-news-msg {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px 0;
    border-bottom: none !important;
}

.home2-national-projects {
    width: 100%;
    height: 150px;
    background: #2d2d7a;
    border-radius: 10px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 1100px) {
    .home2-page { grid-template-columns: 1fr; }
    .home2-sidebar { position: relative; }
}
@media (max-width: 768px) {
    .home2-hero-section { grid-template-columns: 1fr; }
    .home2-hero-main { height: 300px; }
    .home2-hero-side { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; height: 120px; }
}

/* ========================================
   Banner Positions
   ======================================== */

/* Баннер в шапке */
.header-banner {
    width: 100%; 
    padding: 20px 0px;
}
.header-banner a {
    display: block;
}
.header-banner img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: cover;
    display: block;   
}

/* Баннеры в сайдбаре */
.sidebar-banner {
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}
.sidebar-banner a {
    display: block;
}
.sidebar-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Баннер над футером */
.above-footer-banner {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}
.above-footer-banner a {
    display: block;
}
.above-footer-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* =================================
   ПАНЕЛЬ ПОИСКА (выезжает сверху)
================================= */
.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.search-panel.active {
    transform: translateY(0);
}

.search-panel-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-panel-form {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
}

.search-panel-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.search-panel-input::placeholder {
    color: #9ca3af;
}

.search-panel-submit {
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: #374151;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-panel-submit:hover {
    color: #1e40af;
}

.search-panel-submit svg {
    width: 20px;
    height: 20px;
}

.search-panel-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.search-panel-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.search-panel-close svg {
    width: 20px;
    height: 20px;
}

/* Затемнение фона */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =================================
   АДАПТИВНАЯ ШАПКА
================================= */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-toggle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.search-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Бургер-меню кнопка */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    padding: 12px;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 10001;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-links {
    list-style: none;
    margin: 0;
    padding: 16px 0;
}

.mobile-menu-links li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-links a {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu-links a:hover {
    background: #f5f5f5;
    color: var(--color-primary, #1a73e8);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =================================
   МЕДИА-ЗАПРОСЫ ДЛЯ ШАПКИ
================================= */
@media (max-width: 1200px) {
    .home2-header-theme .nav-links {
        gap: 20px;
    }
    
    .home2-header-theme .nav-links li a {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .header-nav,
    .home2-header-theme .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .home2-header-theme .header-main-container {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }
    
    .header-main-container {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .header-banner img {
        max-height: 80px;
    }
    .above-footer-banner img {
        max-height: 100px;
    }
    .home2-ad-strip { grid-template-columns: 1fr; }
    .home2-news-grid { grid-template-columns: 1fr; }
    .home2-news-card { grid-template-columns: 1fr; }
    .home2-news-card-thumb { height: 140px; }
    .home2-video-grid-thumbs { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    
    /* Шапка на мобильных */
    .logo img {
        height: 40px;
    }
    
    .search-toggle {
        width: 40px;
        height: 40px;
    }
    
    .search-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .search-panel-inner {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .search-panel-input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .search-panel-submit {
        padding: 12px 16px;
    }
    
    .search-panel-close {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .header-main-container,
    .home2-header-theme .header-main-container {
        padding: 12px 16px;
    }
    
    .logo img {
        height: 36px;
    }
    
    .mobile-menu {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }
}

/* ========== Форма подписки ========== */
.footer-subscribe {
    margin-top: 1.5rem;
}

.subscribe-form__row {
    display: flex;
    gap: 8px;
}

.subscribe-form__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.subscribe-form__input::placeholder {
    color: rgba(255,255,255,0.5);
}

.subscribe-form__input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}

.subscribe-form__btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subscribe-form__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.subscribe-form__btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.subscribe-form__message {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
}

.subscribe-form__message.success {
    color: #4ade80;
}

.subscribe-form__message.error {
    color: #f87171;
}

/* RSS ссылка */
.footer-rss__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,165,0,0.2);
    border-radius: 4px;
    color: #ffa500;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.footer-rss__link:hover {
    background: rgba(255,165,0,0.3);
    color: #ffc107;
}

.footer-rss__link i {
    font-size: 14px;
}