a {
    color: inherit;
    text-decoration: none;
}

p {
    font-family: 'Roboto', sans-serif;
    padding: 0px;
    margin: 0px;
    line-height: 130%; /* интерлиньяж */
}

h2 {
    font-family: 'Roboto', sans-serif;
    padding: 0px 0px 32px 0px;
    margin: 0px;
    font-size: 40px;
    font-weight: 600;
    height: 48px;
    line-height: 130%; /* интерлиньяж */
}

.develop {
    background: #EB2424;
    height: 40px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
    color: white;
}

body {
    background-color: white;
    font-family: 'Roboto', sans-serif;
    margin: 0px; /* Если убрать, то появляется 8px */
}















.main-header {
    background-color: white;
    position: fixed;
    width: 100%;
    height: 80px;
    z-index: 1000; /* Чтобы был поверх контента */
    display: flex; /* Размещаем всё в одну строку */
    transition: box-shadow 0.3s ease; /* Плавное появление тени */  
}

.main-header.scrolled {
    box-shadow: 0px 0px 21px #BFBFBF;
}

.header-container {
    max-width: 1138px;      /* Максимальная ширина */
    width: 100%;            /* Занимает всю доступную ширину */
    display: flex;
    padding: 0px 80px;
    justify-content: space-between; /* равномерно распределяет элементы по горизонтали, прижимая первый к левому краю, а последний к правому. */
    margin: 0 auto /* 0 - отступы сверху, снизу; auto - слева справа */
}

.header-logo {
    display: flex;
    place-items: center;
}

.header-soc {
    display: flex;
}

.header-soc-container {
    display: inline-grid;
    place-items: center;
    width: 80px;
    height: 80px;
}

.vk-svg {
    fill: #888888;
    width: 32px;
    height: 20px;
    transition: fill 0.2s ease;
}

.youtube-svg {
    fill: #888888;
    width: 32px;
    height: 23px;
    transition: fill 0.2s ease;
}

.discord-svg {
    fill: #888888;
    width: 32px;
    height: 26px;
    transition: fill 0.2    s ease;
}

.header-soc-container:hover .vk-svg,
.header-soc-container:focus .vk-svg {
    fill: #0077FF;
    width: 38px;
    height: auto;
}

.header-soc-container:hover .youtube-svg,
.header-soc-container:focus .youtube-svg {
    fill: #FF0000;
    width: 38px;
    height: auto;
}

.header-soc-container:hover .discord-svg,
.header-soc-container:focus .discord-svg {
    fill: #5865F2;
    width: 38px;
    height: auto;
}








.container {
    max-width: 1138px;      /* Максимальная ширина */
    width: 100%;            /* Занимает всю доступную ширину */
    margin: 0 auto;         /* Выравнивание по центру */  
    justify-content: space-between;
    align-items: center;     /* Выравнивание по вертикали */ 
}

.content-container {
    padding: 120px 80px 0px 80px;
}

.anime_list-ongoing {
    margin-bottom: 56px;
    display: grid;    
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-content: center;    
    column-gap: max(40px, 2%);
    row-gap: 40px;
}

.anime_list {    
    display: grid;    
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 196px), 1fr));
    justify-content: center;    
    column-gap: max(40px, 2%);
    row-gap: 40px;
}

.anime_cover_block {
    position: relative;
    background-color: white;    
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
    color: #1B1B1B;
}


.anime_name {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: 0.3s ease;
}
.anime_cover_img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    pointer-events: none;
}

.img-hover {
    max-width: 100%;
    display: block;
    height: auto;
    border-radius: 24px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: 0.3s ease;
    pointer-events: none;
}

.a_hover:hover .img-hover,
.a_hover:hover .anime_name,
.a_hover:hover .anime_order_text,
.a_hover:hover .anime-order-svg,
.a_hover:focus .img-hover,
.a_hover:focus .anime_name,
.a_hover:focus .anime_order_text,
.a_hover:focus .anime-order-svg {
    color: #EB2424;
    fill: #EB2424;
    opacity: 1;
}

.anime_order { /* Первичный блок «Заказать озвучку аниме» */
    background: #EFEFEF;
    aspect-ratio: 10 / 14.23; /* Соотношение сторон */
    width: 100%;
    display: flex;
    flex-direction: column;
    place-items: center;
    gap: 10%;
    box-sizing: border-box; /* включает модель, где padding и border включены в общие размеры элемента (width/height), а не добавляются к ним. */
    padding: 24px;
    border-radius: 24px;
    justify-content: center;
}

.anime-order-svg {
    fill: #AAAAAA;
    width: 80%;
    transition: 0.3s ease;
}

.anime_order_text { /* «Заказать озвучку аниме» */
    color: #3A3A3A;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    transition: 0.3s ease;
}











footer {
    width: 100%;
    height: 240px;
    z-index: 2000; /* Чтобы был поверх контента */
    margin: auto;
    margin-top: 80px;
    padding: 24px 0px;
    display: flex; /* Размещаем всё в одну строку */ 
}

.footer-container {
    max-width: 1138px;      /* Максимальная ширина */
    width: 100%;            /* Занимает всю доступную ширину */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin: 0 auto; /* 0 - отступы сверху, снизу; auto - слева справа */
    padding: 0px 80px;
}

.footer-logo {
    margin-bottom: 48px;
}

.footer-column{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: #1B1B1B;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin: 12px;
    margin-bottom: 24px;
}

.a_hover_footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #3A3A3A;
    font-size: 16px;
    font-weight: 400;
}

.footer-text {
    padding: 0px;
    transition: all 0.3s ease;
}

.footer-vk-svg {
    fill: #3A3A3A;
    width: 20px;
    height: auto;
    transition: fill 0.3s ease;
}

.footer-youtube-svg {
    fill: #3A3A3A;
    width: 20px;
    height: auto;
    transition: fill 0.3s ease;
}

.footer-discord-svg {
    fill: #3A3A3A;
    width: 20px;
    height: auto;
    transition: fill 0.3s ease;
}

.a_hover_footer:hover .footer-text,
.a_hover_footer:hover .footer-vk-svg,
.a_hover_footer:hover .footer-youtube-svg,
.a_hover_footer:hover .footer-discord-svg,
.a_hover_footer:focus .footer-text,
.a_hover_footer:focus .footer-vk-svg,
.a_hover_footer:focus .footer-youtube-svg,
.a_hover_footer:focus .footer-discord-svg {
    color: #EB2424;
    fill: #EB2424;
}











@media (max-width: 1158px) {
    .anime_order_text {
        font-size: 20px;
  }
}

@media (max-width: 1090px) {
    .footer-title {
        font-size: 16px;
  }
    .footer-text {
        font-size: 14px;
  }
}

@media (max-width: 1078px) {
    .anime_order_text {
        font-size: 24px;
  }
    .anime_list-ongoing {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 196px), 1fr));
    }
}

@media (max-width: 902px) {
    .anime_order_text {
        font-size: 20px;
  }
}

@media (max-width: 842px) {
    footer {
        height: fit-content;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-logo {
        margin-bottom: 24px;
    }
    
    .footer-title {
    font-size: 20px;
    margin-left: 0px;
    }

    .footer-soc {
        padding-left: 0px;
    }

    .footer-text {
        font-size: 16px;
    }

    .anime_order_text {
        font-size: 24px;
  }
}

@media (max-width: 650px) {

    .header-soc {
    display: none;
  }
    .header-container {
        justify-content: center;
        padding: 0px;
    }
    .anime_order_text {
        font-size: 20px;
    }
    
    h2 {
        font-size: 100%;
        padding: 0px 0px 24px 0px;
    }
}

@media (max-width: 606px) {
    .anime_order_text {
        font-size: 24px;
  }
}

@media (max-width: 582px) {
    .footer-title {
        font-size: 16px;
  }
    .footer-text {
        font-size: 14px;
  }
}

@media (max-width: 450px) {
    .content-container {
        padding: 120px 40px 0px 40px;
    }

    .footer-container {
        padding: 0px 40px;
    }

    .footer-text {
        font-size: 14px;
    }
}