:root {
    --primary-bg-color: #f2f4f7;

    --primary-block-color: #ffffff;
    --secondary-block-color: #eaeaea;
    --active-block-color: #0070f0;
    --special-block-color: #202021;

    --primary-text-color: #000000;
    --secondary-text-color: #656565;
    --active-text-color: #0070f0;
    --active-block-text-color: #ffffff;

    --primary-element-color: #eeeeee;
    --primary-border-round: 20px;
}

body {
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
    font-family: "Google Sans", sans-serif;
    padding: 0;
    margin: 0;
    margin-bottom: 40px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    height: 160px;
    background-color: var(--primary-block-color);
}

nav {
    padding-top: 20px;
    padding-bottom: 20px;
}

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

.menu {
    display: flex;
    gap: 10px;
}

.menu-item {
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
    position: relative;
}

.menu-item a {
    text-decoration: none;
    color: var(--primary-text-color);
    font-size: 18px;
    font-weight: 400;
    line-height: 20px;
    padding: 10px 20px;
    display: block;
    transition: all 0.3s ease;
}

.menu-item a:hover {
    background-color: var(--active-block-color);
    color: var(--active-block-text-color);
}

.active-menu>a {
    background-color: var(--active-block-color);
    color: var(--active-block-text-color);
}

/* Dropdown Menu Styles */
.menu-item.has-dropdown {
    position: relative;
    overflow: visible;
}

.menu-item.has-dropdown>a {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--primary-border-round);
}

.menu-item.has-dropdown>a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
}

.menu-item.has-dropdown.active>a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.menu-item.has-dropdown:hover .dropdown-menu,
.menu-item.has-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    border-bottom: 1px solid var(--primary-element-color);
}

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

.dropdown-item a {
    padding: 12px 20px;
    font-size: 16px;
    color: var(--primary-text-color);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-item a:hover,
.dropdown-item.active a {
    background-color: var(--active-block-color);
    color: var(--active-block-text-color);
    padding-left: 24px;
}

.nav-social {
    display: flex;
    gap: 10px;
}

.nav-social-item {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background-color: var(--primary-element-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
}

.nav-social-item:hover {
    background-color: var(--active-block-color);
}

.nav-social-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.nav-social-item img {
    width: 100%;
    height: 100%;
}

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

.featured-lent {
    column-count: 2;
    column-gap: 20px;
    column-fill: auto;
    padding: 20px;
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    height: 640px;
    box-shadow: 0px 0px 8px 0px rgba(31, 11, 11, 0.02);
}

.featured-lent-hero {
    break-inside: avoid;
    border-bottom: 1px solid var(--primary-element-color);
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    padding-left: 10px;
    padding-right: 10px;
}

.featured-lent-hero:hover {
    transform: translateY(-2px);
}

.featured-lent-hero:hover .featured-lent-article-title {
    color: var(--active-text-color);
}

.featured-lent-hero-image {
    width: 100%;
    height: 280px;
    background-color: var(--primary-element-color);
    margin-bottom: 10px;
    border-radius: var(--primary-border-round);
    transition: all 0.3s ease;
}

.featured-bg-image {
    background-size: cover;
    background-position: center;
}

.featured-lent-hero:hover .featured-lent-hero-image {
    background-color: var(--active-block-color);
}

.featured-lent-article {
    break-inside: avoid;
    padding-top: 10px;
    border-bottom: 1px solid var(--primary-element-color);
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    padding-left: 10px;
    padding-right: 10px;
}

.featured-lent-article:hover {}

.featured-lent-article:hover .featured-lent-article-title {
    color: var(--active-text-color);
}

.featured-lent-article-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    color: var(--primary-text-color);
    margin-bottom: 10px;
}

.featured-lent-article-date {
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: var(--secondary-text-color);
    padding-bottom: 10px;
}

.featured-side {
    display: grid;
    grid-template-rows: 1fr;
    gap: 20px;
}

.featured-side-articles {
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.featured-side-article {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.news-category {
    display: none;
}

.news-category-active {
    display: block;
}

.news-category-hidden {
    display: none;
}

.featured-side-meteo {
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
    padding: 20px;
}

.featured-side-controller {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--primary-border-round);
    border: 1px solid var(--active-block-color);
    margin-bottom: 20px;
}

.featured-side-controller-item {
    background-color: var(--primary-block-color);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.featured-side-controller-item:first-child {
    border-right: 1px solid var(--active-block-color);
    border-radius: calc(var(--primary-border-round) - 1px) 0 0 calc(var(--primary-border-round) - 1px);
}

.featured-side-controller-item:last-child {
    border-radius: 0 calc(var(--primary-border-round) - 1px) calc(var(--primary-border-round) - 1px) 0;
}

.featured-side-controller-item a {
    text-decoration: none;
    color: var(--active-block-color);
    font-size: 20px;
    font-weight: 400;
    line-height: 16px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 16px;
    transition: all 0.3s ease;
}

.featured-side-controller-item:hover {
    background-color: var(--active-block-color);
}

.featured-side-controller-item:hover a {
    color: var(--active-block-text-color);
}

.active-controller {
    background-color: var(--active-block-color);
}

.active-controller a {
    color: var(--active-block-text-color);
}

.radio-lent {
    margin-top: 20px;
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
    padding: 20px;
    box-sizing: border-box;
}

.radio-lent-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.radio-lent-list-wrapper {
    overflow: hidden;
    width: 100%;
    cursor: pointer;
}

.radio-lent-list {
    display: flex;
    white-space: nowrap;
    box-sizing: border-box;
    animation: scroll-infinite 40s linear infinite;
    gap: 0;
}

.radio-lent-list-set {
    display: flex;
    flex-shrink: 0;
    gap: 20px;
}

.radio-lent-list-item {
    font-size: 20px;
    flex-shrink: 0;
    padding-right: 20px;
    position: relative;
    cursor: pointer;
}

.radio-lent-list-item::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--active-block-color);
    border-radius: 50%;
}

.radio-lent-list-item:first-child {
    padding-left: 20px;
}

.radio-lent-controller-button {
    background-color: var(--active-block-color);
    color: var(--active-block-text-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 400;
    line-height: 16px;
    padding: 8px 24px;
    border-radius: var(--primary-border-round);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.radio-lent-controller-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 112, 240, 0.3);
}

.radio-lent-controller-button:active {
    transform: scale(0.98);
}

.radio-lent-controller-button.playing {
    background-color: #ff4444;
    animation: glow 2s ease-in-out infinite;
}

.radio-lent-controller-button .radio-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 68, 68, 0.5),
            0 0 10px rgba(255, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.8),
            0 0 30px rgba(255, 68, 68, 0.4);
    }
}

/* Стили для заголовка радио с громкостью */
.radio-lent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Стили для управления громкостью */
.radio-lent-controller {
    display: flex;
    align-items: center;
    gap: 16px;
}

.radio-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    padding: 4px 6px;
    border-radius: var(--primary-border-round);
}

.radio-volume-icon {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    padding: 4px;
}

.radio-volume-icon:hover {
    transform: scale(1.1);
    color: #333;
}

.radio-volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.radio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #666;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #333;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.radio-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #666;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.radio-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #333;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.radio-lent-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: var(--primary-text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    width: 36px;
    height: 36px;

    border-radius: 8px;
    overflow: hidden;
}

.title-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes scroll-infinite {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(var(--scroll-distance, -50%));
    }
}

.vesti-lent-section {
    margin-top: 20px;
    position: relative;
}

.vesti-lent {
    background-color: var(--special-block-color);
    border-radius: var(--primary-border-round);
    padding: 20px;
    box-sizing: border-box;
}

.vesti-lent-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vesti-lent-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: var(--active-block-text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vesti-lent-container {
    position: relative;
}

.vesti-lent-list-wrapper {
    overflow: hidden;
}

.vesti-lent-list {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    width: fit-content;
}

.vesti-lent-list-item {
    width: 454px;
    height: 280px;
    background-color: #282829;
    border-radius: var(--primary-border-round);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
}

.vesti-video-item {
    cursor: pointer;
}

.vesti-lent-button-left {
    position: absolute;
    left: -21px;
    top: 58%;
    transform: translateY(-50%);
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
    z-index: 10;
}

.vesti-lent-button-right {
    position: absolute;
    right: -21px;
    top: 58%;
    transform: translateY(-50%);
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
    z-index: 10;
}

.vesti-lent-button-left svg {
    width: 20px;
    height: 20px;
    display: block;
}

.vesti-lent-button-left svg path {
    stroke: #212223;
}

.vesti-lent-button-left svg {
    transform: rotate(180deg);
    transform-origin: 50% 50%;
}

.vesti-lent-button-right svg {
    width: 20px;
    height: 20px;
    display: block;
}

.vesti-lent-button-right svg path {
    stroke: #212223;
}

.vesti-lent-archive a {
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    color: var(--active-block-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.vesti-lent-archive:hover a {
    color: var(--active-block-color);
}

.news-block {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
}

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

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

.news-block-grid.news-block-grid--4cols {
    grid-template-columns: repeat(4, 1fr);
}

.news-block-container--full {
    grid-template-columns: 1fr;
}

.news-block-list {
    display: flex;
    flex-direction: column;
}

.news-block-grid-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-block-grid-item:hover {
    transform: translateY(-2px);
}

.news-block-grid-item:hover .news-block-grid-item-title {
    color: var(--active-text-color);
}

.news-block-grid-item-image {
    width: 100%;
    height: 210px;
    background-color: var(--primary-element-color);
    border-radius: var(--primary-border-round);
    margin-bottom: 10px;
}

.news-bg-image {
    background-size: cover;
    background-position: center;
}

.news-block-grid-item-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 20px;
    color: var(--primary-text-color);
    margin-bottom: 10px;
}

.news-block-grid-item-date {
    display: flex;
    justify-content: space-between;
}

.news-block-grid-item-date-category {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: var(--secondary-text-color);
}

.news-block-grid-item-date-item {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: var(--secondary-text-color);
}

.news-block-header {
    margin-bottom: 40px;
    margin-top: 20px;

}

.news-block-button {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    cursor: grab;
    user-select: none;
    margin-right: 20px;
}

.news-block-button::-webkit-scrollbar {
    display: none;
}

.news-block-button:active {
    cursor: grabbing;
}

.news-block-button-item {
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    flex-shrink: 0;
}

.news-block-button-item a {
    text-decoration: none;
    color: var(--primary-text-color);
    font-size: 16px;
    padding: 8px 26px;
    background-color: var(--secondary-block-color);
    border-radius: var(--primary-border-round);
    display: block;
    white-space: nowrap;
}

.news-block-button-active a {
    background-color: var(--active-block-color);
    color: var(--active-block-text-color);
}

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

.news-block-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--primary-element-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 10px;
}

.news-block-list-item:hover {}

.news-block-list-item:hover .news-block-list-item-title {
    color: var(--active-text-color);
}

.news-block-list-item-category {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: var(--secondary-text-color);
}

.news-block-list-item-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.news-block-list-item-date {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: var(--secondary-text-color);
}

.news-block-list-item-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    color: var(--primary-text-color);
}

.footer-menu {
    display: flex;
    justify-content: space-between;
}

.footer-menu-nav {
    display: flex;
    gap: 20px;
}

.footer-menu-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.copyright {
    color: var(--secondary-text-color);
}

.copyright-title {
    font-size: 18px;
    margin-bottom: 40px;
    margin-top: 40px;
}

.copyright-text {
    margin-bottom: 40px;
}

.footer-menu-item-title a {
    text-decoration: none;
    color: var(--primary-text-color);
    font-size: 18px;
    margin-bottom: 40px;
    margin-top: 40px;
}

.footer-menu-item-title a:hover {
    color: var(--active-block-color);
}

.footer-menu-social-title {
    font-size: 24px;
    text-align: right;
    margin-bottom: 10px;
}

.footer-menu-social-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    float: right;
}

.footer-menu-social-item {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--primary-element-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-menu-social-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.footer-menu-social-item img {
    width: 100%;
    height: 100%;
}

footer {
    padding-bottom: 80px;
}

.article-container {
    display: grid;
    grid-template-columns: 1fr 452px;
    gap: 20px;
}

.article-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
}

.article-text-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: var(--primary-text-color);
}

.article-sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
}

.article-sidebar-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: var(--primary-text-color);
}

.article-sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;

}

.article-sidebar-article {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-sidebar-article-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    color: var(--primary-text-color);
}

.article-sidebar-article {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--primary-element-color);
    padding-bottom: 20px;
    text-decoration: none;
}

.article-sidebar-article-date {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: var(--secondary-text-color);
}

.article-text-date {
    display: flex;
    gap: 10px;
}

.article-text-date-category {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: var(--secondary-text-color);
}

.article-text-date-item {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: var(--secondary-text-color);
}

.article-text-image {
    width: 100%;
    height: 380px;
    border-radius: var(--primary-border-round);
    overflow: hidden;
}

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

.article-text-content {
    font-size: 18px;
    font-weight: 400;
    line-height: 2;
    color: var(--primary-text-color);
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: var(--primary-bg-color);
    border-radius: 12px;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
}

.breadcrumb-link {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: var(--secondary-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.breadcrumb-link:hover {
    color: var(--active-block-color);
}

.breadcrumb-separator {
    font-size: 14px;
    color: var(--primary-element-color);
    user-select: none;
    flex-shrink: 0;
}

.breadcrumb-current {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: var(--primary-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
    flex-shrink: 1;
}

.vesti-lent-social-items {
    display: flex;
    gap: 20px;
}

.vesti-lent-social-item {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--primary-element-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vesti-lent-social-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.vesti-lent-social-item img {
    width: 20px;
    height: 20px;
}

.vesti-lent-social-lent {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.vesti-lent-social-title {
    font-size: 22px;
}

.article-text-related-articles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.article-text-related-article {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
}

.article-text-related-img {
    width: 100%;
    height: 210px;
    background-color: var(--primary-element-color);
    border-radius: var(--primary-border-round);
    overflow: hidden;
}

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

.article-text-related-name {
    font-size: 22px;
    font-weight: 400;
    line-height: 22px;
    color: var(--primary-text-color);
    margin-bottom: 10px;
    margin-top: 20px;
}

.article-text-related-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    color: var(--primary-text-color);
}

.article-text-related-date {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: var(--secondary-text-color);
}

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

.video-grid-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.video-grid-item-image {
    width: 100%;
    height: 240px;
    margin-bottom: 10px;
}

.video-grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.video-grid-item-title {
    font-size: 18px;
}

.video-grid-item-date {
    font-size: 14px;
    color: var(--secondary-text-color);
}

.video-more {
    margin-top: 20px;
}

.video-more-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
}

.video-more-button a {
    text-decoration: none;
    color: var(--primary-text-color);
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
}

.video-more-button a:hover {
    background-color: var(--active-block-color);
    color: var(--active-block-text-color);
}

/* Стили для видео в ленте */
.vesti-lent-list-item .video-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.vesti-lent-list-item .video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vesti-lent-list-item .video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.vesti-lent-list-item .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vesti-lent-list-item .video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 3px;
}

.vesti-lent-list-item .video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vesti-lent-list-item .video-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    color: #fff;
}

.vesti-lent-list-item .video-category {
    font-size: 13px;
    color: var(--primary-accent-color);
}

.vesti-lent-list-item .video-date {
    font-size: 12px;
    color: var(--secondary-text-color);
    margin-top: auto;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.video-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
}

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

.video-modal-close:hover {
    color: #ccc;
}

.video-modal-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   RESPONSIVE STYLES - MEDIA QUERIES
   ============================================ */

/* Desktop Large - 1440px+ (Base styles above) */

/* Desktop Medium - 1024px to 1439px */
@media (max-width: 1439px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }

    .featured {
        grid-template-columns: 1fr 380px;
    }

    .article-container {
        grid-template-columns: 1fr 380px;
    }

    .vesti-lent-list-item {
        width: 380px;
    }
}

/* Tablet Landscape - 768px to 1023px */
@media (max-width: 1023px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }

    header {
        height: auto;
        padding: 0;
    }

    nav {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .nav-container {
        flex-direction: column;
        gap: 16px;
    }

    .menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .menu-item a {
        font-size: 16px;
        padding-top: 8px;
        padding-right: 16px;
        padding-bottom: 8px;
        padding-left: 16px;
    }

    .nav-social {
        width: 100%;
        justify-content: center;
    }

    /* Main Featured Section - Stack vertically */
    .featured {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-lent {
        column-count: 2;
        height: auto;
        min-height: 500px;
    }

    .featured-lent-hero-image {
        height: 240px;
    }

    .featured-side {
        grid-template-rows: auto auto;
    }

    /* Article Page */
    .article-container {
        grid-template-columns: 1fr;
    }

    .article-text-related-articles {
        grid-template-columns: 1fr 1fr;
    }

    /* News Block */
    .news-block-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-block-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-block-grid.news-block-grid--4cols {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Video Grid */
    .video-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Slider Items */
    .vesti-lent-list-item {
        width: 340px;
    }

    .vesti-lent-button-left,
    .vesti-lent-button-right {
        display: none;
    }

    /* Footer */
    .footer-menu {
        flex-direction: column;
        gap: 32px;
    }

    .footer-menu-social-title {
        text-align: left;
    }
}

/* Tablet Portrait & Mobile Large - 480px to 767px */
@media (max-width: 767px) {
    .container {
        padding: 0 12px;
    }

    body {
        margin-bottom: 20px;
    }

    header {
        padding: 0;
    }

    nav {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .menu {
        gap: 6px;
        flex-wrap: wrap;
    }

    .menu-item {
        flex: 0 0 auto;
    }

    .menu-item a {
        font-size: 13px;
        padding-top: 8px;
        padding-right: 12px;
        padding-bottom: 8px;
        padding-left: 12px;
        white-space: nowrap;
    }

    /* Скрыть выпадающие меню на мобильных */
    .dropdown-menu {
        display: none !important;
    }

    /* Скрыть стрелку выпадающего меню */
    .menu-item.has-dropdown>a::after {
        display: none;
    }

    .nav-social-item {
        width: 36px;
        height: 36px;
    }

    /* Featured Section - Single Column on mobile */
    .featured-lent {
        column-count: 1;
        min-height: auto;
    }

    .featured-lent-hero-image {
        height: 220px;
    }

    .featured-lent-article-title {
        font-size: 16px;
        line-height: 20px;
    }

    /* Radio Section */
    .radio-lent {
        padding: 16px;
    }

    .radio-lent-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .radio-lent-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .radio-lent-controller {
        justify-content: center;
    }

    .radio-lent-list-item {
        font-size: 16px;
    }

    .radio-lent-controller-button {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 16px;
    }

    .radio-volume-control {
        width: 100%;
        justify-content: space-between;
    }

    .radio-volume-slider {
        flex: 1;
        max-width: 200px;
    }

    /* Video/News Sliders */
    .vesti-lent {
        padding: 16px;
    }

    .vesti-lent-list-item {
        width: 280px;
        height: 240px;
    }

    .vesti-lent-list-item .video-thumbnail {
        height: 160px;
    }

    .vesti-lent-title {
        font-size: 18px;
    }

    /* News Block */
    .news-block {
        padding: 16px;
    }

    .news-block-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .news-block-button {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .news-block-button-item {
        flex-shrink: 0;
    }

    .news-block-button-item a {
        font-size: 14px;
        padding: 8px 16px;
        white-space: nowrap;
    }

    .news-block-grid {
        grid-template-columns: 1fr;
    }

    .news-block-grid.news-block-grid--4cols {
        grid-template-columns: 1fr;
    }

    .news-block-grid-item-image {
        height: 180px;
    }

    .news-block-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .news-block-list-item-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Article Page */
    .article-text {
        padding: 16px;
    }

    .article-text-title {
        font-size: 18px;
        line-height: 22px;
    }

    .article-text-image {
        height: 240px;
    }

    .article-text-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .article-text-related-articles {
        grid-template-columns: 1fr;
    }

    .article-text-related-img {
        height: 180px;
    }

    .article-breadcrumbs {
        padding: 8px 12px;
        font-size: 12px;
        max-width: 100%;
        overflow: hidden;
    }

    .breadcrumb-link,
    .breadcrumb-separator,
    .breadcrumb-current {
        font-size: 12px;
    }

    .breadcrumb-current {
        max-width: 200px;
    }

    .vesti-lent-social {
        flex-direction: column;
        gap: 12px;
    }

    .vesti-lent-social-items {
        flex-wrap: wrap;
    }

    .vesti-lent-social-item {
        width: 42px;
        height: 42px;
    }

    /* Video Grid */
    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-grid-item {
        padding: 16px;
    }

    .video-grid-item-image {
        height: 200px;
    }

    /* Footer */
    .footer-menu {
        display: none;
    }

    .footer-menu-nav {
        flex-direction: column;
        gap: 16px;
    }

    .footer-menu-item {
        gap: 8px;
    }

    .footer-menu-item-title a {
        font-size: 16px;
    }

    .footer-menu-social-title {
        font-size: 20px;
    }

    .copyright-title {
        font-size: 16px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .copyright-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    footer {
        padding-bottom: 40px;
    }
}

/* Mobile Small - Up to 479px */
@media (max-width: 479px) {
    .container {
        padding: 0 8px;
    }

    :root {
        --primary-border-round: 12px;
    }

    header {
        padding: 0;
    }

    .menu {
        gap: 4px;
    }

    .menu-item a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .nav-social {
        gap: 8px;
    }

    .nav-social-item {
        width: 32px;
        height: 32px;
    }

    .nav-social-item img {
        width: 100%;
        height: 100%;
    }

    /* Featured - Single column on small mobile */
    .featured-lent {
        padding: 12px;
        column-count: 1;
    }

    .featured-lent-hero-image {
        height: 180px;
    }

    .featured-lent-article-title {
        font-size: 15px;
        line-height: 18px;
    }

    .featured-side-articles {
        padding: 12px;
    }

    .featured-side-controller-item a {
        font-size: 16px;
        padding: 12px;
    }

    /* Radio */
    .radio-lent {
        padding: 12px;
    }

    .radio-lent-title {
        font-size: 16px;
    }

    .title-icon {
        width: 28px;
        height: 28px;
    }

    .radio-lent-list-item {
        font-size: 14px;
        padding-right: 16px;
    }

    .radio-lent-list-item:first-child {
        padding-left: 16px;
    }

    .radio-lent-controller-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .radio-lent-controller-button .radio-icon {
        width: 16px;
        height: 16px;
    }

    /* Video Sliders */
    .vesti-lent {
        padding: 12px;
    }

    .vesti-lent-list-item {
        width: 240px;
        height: 200px;
        padding: 12px;
    }

    .vesti-lent-list-item .video-thumbnail {
        height: 130px;
    }

    .vesti-lent-list-item .video-title {
        font-size: 14px;
    }

    .vesti-lent-title {
        font-size: 16px;
    }

    /* News Block */
    .news-block {
        padding: 12px;
    }

    .news-block-grid-item-image {
        height: 160px;
    }

    .news-block-grid-item-title {
        font-size: 16px;
        line-height: 18px;
    }

    .news-block-list-item-title {
        font-size: 16px;
        line-height: 20px;
    }

    /* Article */
    .article-text {
        padding: 12px;
        gap: 16px;
    }

    .article-text-title {
        font-size: 16px;
        line-height: 20px;
    }

    .article-text-image {
        height: 200px;
    }

    .article-text-content {
        font-size: 15px;
    }

    .article-text-related-name {
        font-size: 18px;
        margin-top: 16px;
        margin-bottom: 8px;
    }

    .article-text-related-img {
        height: 160px;
    }

    .article-text-related-title {
        font-size: 16px;
        line-height: 20px;
    }

    .article-sidebar-container {
        padding: 12px;
    }

    .article-sidebar-title {
        font-size: 18px;
    }

    /* Video Grid */
    .video-grid-item {
        padding: 12px;
    }

    .video-grid-item-image {
        height: 180px;
    }

    .video-grid-item-title {
        font-size: 16px;
    }

    /* Breadcrumbs */
    .breadcrumb-current {
        max-width: 150px;
    }

    /* Video Modal */
    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        font-size: 32px;
        top: -35px;
    }

    /* Footer */
    .footer-menu-social-item {
        width: 42px;
        height: 42px;
    }

    footer {
        padding-bottom: 20px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Увеличиваем область клика для touch устройств */
    .menu-item a,
    .nav-social-item,
    .radio-lent-controller-button,
    .news-block-button-item a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Корректируем падинги для тач-устройств */
    .menu-item a {
        padding: 10px 20px;
    }

    /* Для маленьких экранов тач-устройств */
    @media (max-width: 479px) {
        .menu-item a {
            padding: 6px 10px;
        }
    }

    /* Убираем hover эффекты на touch устройствах */
    .menu-item a:hover,
    .news-block-grid-item:hover,
    .featured-lent-article:hover {
        transform: none;
    }

    /* Улучшаем прокрутку слайдеров */
    .vesti-lent-list-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .vesti-lent-list {
        scroll-snap-align: start;
    }

    .vesti-lent-list-item {
        scroll-snap-align: start;
    }

    .radio-lent-list-wrapper {
        -webkit-overflow-scrolling: touch;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        height: auto;
        padding: 0;
    }

    .featured-lent {
        height: auto;
        min-height: 300px;
    }

    .vesti-lent-list-item {
        height: 180px;
    }

    .vesti-lent-list-item .video-thumbnail {
        height: 100px;
    }
}

/* Live Stream Section */
.live-stream-section {
    background-color: var(--primary-block-color);
    border-radius: var(--primary-border-round);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
}

.live-stream-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.live-stream-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.live-stream-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background-color: #000;
    transition: opacity 0.3s ease;
}

.live-stream-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    gap: 20px;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.live-stream-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-stream-fallback-content {
    text-align: center;
    padding: 30px;
    color: white;
    max-width: 500px;
}

.live-stream-fallback-content svg {
    margin-bottom: 20px;
    opacity: 0.9;
}

.live-stream-fallback-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.live-stream-fallback-content p {
    font-size: 16px;
    margin: 0 0 24px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.live-stream-watch-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.live-stream-watch-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: #5568d3;
}

.live-stream-watch-button svg {
    flex-shrink: 0;
}

.live-stream-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(220, 38, 38, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
}

.live-stream-badge svg {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.live-stream-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.live-stream-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-text-color);
    margin: 0;
}

.live-stream-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary-text-color);
    margin: 0;
}

.live-stream-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--secondary-text-color);
}

.live-stream-time svg {
    color: var(--active-block-color);
}


/* Responsive Styles for Live Stream */
@media (max-width: 1024px) {
    .live-stream-container {
        grid-template-columns: 1fr;
    }

    .live-stream-section {
        padding: 20px;
    }

    .live-stream-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .live-stream-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .live-stream-title {
        font-size: 20px;
    }

    .live-stream-badge {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Оптимизация для retina дисплеев */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {

    header,
    nav,
    .nav-container,
    .live-stream-section,
    .featured-side,
    .radio-lent,
    .vesti-lent-section,
    .news-block-header,
    footer,
    .vesti-lent-social,
    .article-sidebar-container {
        display: none !important;
    }

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

    .article-container {
        grid-template-columns: 1fr;
    }

    .article-text {
        box-shadow: none;
        border: none;
    }

    body {
        background-color: white;
        color: black;
    }
}