:root {
    --primary-color: #4a90e2;
    --secondary-color: #50c878;
    --accent-color: #ff7b00;
    --background-color: #f0f5f9;
    --text-color: #333;
    --light-text: #fff;
}

.arsenal-sc-regular {
    font-family: "Arsenal SC", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.arsenal-sc-bold {
    font-family: "Arsenal SC", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.arsenal-sc-regular-italic {
    font-family: "Arsenal SC", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.arsenal-sc-bold-italic {
    font-family: "Arsenal SC", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.roboto-thin {
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.roboto-light {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.roboto-regular {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.roboto-medium {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.roboto-bold {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.roboto-black {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.roboto-thin-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.roboto-light-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.roboto-regular-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.roboto-medium-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.roboto-bold-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.roboto-black-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-style: italic;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: large;

    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    font-family: "Arsenal SC", sans-serif;
    font-weight: 700;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

header {
    background: var(--primary-color);
    color: var(--light-text);
}

#logo {
    width: 70px;
    height: 70px;

    overflow: hidden;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.site-name {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    font-family: "Arsenal SC", sans-serif;
    font-weight: 400;
    /* font-style: italic; */
}

.top-header a {
    color: var(--light-text);
    text-decoration: none;
}


.site-name span {
    margin-left: 0.5rem;
    font-size: 1.6em;
}


nav {
    /* background-color: rgba(0, 0, 0, 0.1); */
    width: 100%;
    font-family: "Arsenal SC", sans-serif;
    font-weight: 600;
    /* margin: 0 10em; */
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
}

nav ul li {
    padding: 0.5rem 0;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    padding: 0.9rem;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-selector {
    display: flex;
    align-items: center;
    font-family: "Arsenal SC", sans-serif;
    font-weight: 700;
}

.language-selector span {
    color: var(--light-text);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.language-selector a {
    color: var(--light-text);
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    margin: 0 0.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.language-selector a:hover,
.language-selector a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.danger-alert {
    color: var(--accent-color) !important;
    text-align: center;
}

.main-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 1rem;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.news-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 123, 0, 0.65);
    color: var(--light-text) !important;
    padding: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 0 !important;
}

.hot-news {
    grid-column: span 6;
    grid-row: span 3;
}

.economics,
.politics {
    grid-column: span 3;
    grid-row: span 2;
}

.criminals,
.sports,
.celebrities {
    grid-column: span 2;
    grid-row: span 3;
}

.interview {
    grid-column: span 6;
    grid-row: span 2;
}

.culture,
.health,
.children {
    grid-column: span 2;
    grid-row: span 2;
}

.animals,
.humour {
    grid-column: span 3;
    grid-row: span 2;
}

.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.sidebar h2:first-child {
    margin-top: 0;
}

.video-container {
    position: relative;
    padding-bottom: 0%;
    /* height: 0; */
    overflow: hidden;
    width: 100%;
    max-width: 240px;
}

footer {
    background: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

.article-meta span {
    padding: 0.2rem 0.5rem;
    margin: 0.2em 0.3em 0.5em 0.2em;
    border-radius: 0.3em;
    font-size: 0.9rem;
    font-weight: 300;
}

.article-date {
    background-color: #dae0e4;
}

.article-theme {
    background-color: var(--accent-color);
}

.link-box {
    font-size: smaller;
    background-color: var(--primary-color);
    text-decoration: none;
    padding: 0.2em;
    color: var(--light-text);
    display: inline-block;
    border-radius: 0.3em;
    margin-top: 0.3em;
}

.article-img {
    width: 100%;
    /* По умолчанию для мобильных устройств */
}

.article-content::after {
    content: "";
    display: table;
    clear: both;
}

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

    .hot-news,
    .interview {
        grid-column: span 4;
    }

    .economics,
    .politics,
    .criminals,
    .sports,
    .celebrities,
    .culture,
    .health,
    .children,
    .animals,
    .humour {
        grid-column: span 2;
    }
}

@media (min-width: 1200px) {

    .article-img {
        width: 60%;
        float: left;
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    .language-selector {
        margin-top: 1rem;
        align-self: flex-start;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

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

    .news-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

.weather-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.forecast {
    flex: 1;
    margin-right: 20px;
}

.weather-image {
    flex-shrink: 0;
}

.weather-header {
    padding-left: 1rem;
}

.weather-details {
    padding-left: 2rem;
}

.warning-item {
    margin-bottom: 1em;
}

.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px;
}

.song-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}



video {
    width: 100%;
    height: auto;
}