/* Основные стили */
html {
    font-size: 62.5%; /* 1rem = 10px */
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
}

body {
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
    font-family: 'Roboto', sans-serif;
    background-color: black;
    color: white;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 1.6rem; /* основной текст 16px */
}

header {
    z-index: 10;
    position: relative;
    width: 100%;
    max-height: 50px;
    background-color: black;
    color: white;
    display: flex;
    text-align: left;
    padding: 25px;
    align-items: center;

}

.logo {
    width: 1.6rem;
    height: 1.6rem;
}

.menu {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    padding-left: 35px;
}

a, a:visited {
    color: white;
    font-weight: bold;
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

a:active {
    opacity: 0.5;
}

.intro {
    max-width: 85%;
    margin: 20px auto;
    padding: 20px 30px;
    box-sizing: border-box;
}

.intro p {
    text-align: left;
    margin-bottom: 10px;
    justify-content: center;
    font-size: 1.8rem;
}

.horizontal-scroll {
    display: flex;
    overflow-x: hidden;
    height: 100%;
    margin-top: 0px;
}

.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 83vh;
    margin-right: -10vw;
    flex: 0 0 100%;
}

h1 {
    font-family: 'Roboto Black', sans-serif;
    font-size: 3.5rem; /* заголовки 35px */
}

.image-container {
    height: 75vh;
    width: fit-content;
    display: inline-block;
}

.horizontal-scroll img {
    height: 100%;
    align-self: center;
}

.text {
    padding-top: 1rem;
    height: fit-content;
    width: fit-content;
    display: inline-flex;
    visibility: visible;
    text-align: left;
    font-weight: bold;
    font-size: 1.8rem;
}

footer {
    text-align: right;
    padding-right: 20px;
    padding-bottom: 15px;
    color: #666;
    font-size: 1rem;
}

.mag-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.mag-pair {
    margin-bottom: 40px;
}

.mag-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.mag-images img {
    margin: 5px;
    width: calc(50% - 10px); /* Два изображения в ряд на широких экранах */
}

.mag-description {
    justify-content: center;
    padding: 0px 3%;
    color: #ccc;
    font-family: 'Roboto Thin', sans-serif;
    font-weight: 200;
    font-size: 1.3rem;
    font-style: italic;
}
.scroll-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.push {
    flex: 1;
    height: 100%;
}

.future {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.examples-pair {
    margin-bottom: 40px;
}

.examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.examples img {
    margin: 5px;
    max-height: 50vh;
    max-width: 90vw;
    margin-bottom: 20px;
}

/* Медиа-запросы для вертикальных экранов */
@media screen and (orientation: portrait) and (min-width: 320px) {
    .mag-images img {
        width: calc(100% - 20px); /* Обложки во всю ширину на портретной ориентации */
    }
    .menu { 
        font-size: 3rem; 
    }
    .logo { 
        width: 3rem; 
        height: 3rem; 
    }
}

@media screen and (orientation: portrait) and (min-width: 480px) {
    .mag-images img {
        width: calc(100% - 20px); /* Обложки во всю ширину на портретной ориентации */
    }
    .menu { 
        font-size: 3rem; 
    }
    .logo { 
        width: 3rem; 
        height: 3rem; 
    }
}

@media screen and (orientation: portrait) and (min-width: 768px) {
    .mag-images img {
        width: calc(100% - 20px); /* Обложки во всю ширину на портретной ориентации */
    }
    .menu { 
        font-size: 2rem; 
    }
    .logo { 
        width: 2rem; 
        height: 2rem; 
    }
}

@media screen and (orientation: portrait) and (min-width: 1024px) {
    .mag-images img {
        width: calc(100% - 20px); /* Обложки во всю ширину на портретной ориентации */
    }
    .menu { 
        font-size: 2rem; 
    }
    .logo { 
        width: 2rem; 
        height: 2rem; 
    }
}

/* Медиа-запросы для горизонтальных экранов */
@media screen and (orientation: landscape) and (min-width: 768px) {
    .mag-description { 
        padding: 0px 20%;

    }
}
