/* АДАПТИВ */

@media (max-width: 767px) {
    
    .article-copy p{
        font-size: 1rem;
    }

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

    .banner2 {
        grid-template-columns: repeat(1, 1fr);
    }

    .card p {
        font-size: 0.8rem;
    }

    .aidar-banner1 {
        width: 80%;
    }

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

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

    .gallery-memory {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
        padding: 0.7rem;
    }
    
    .banner4 img{
        width: 100%;
    }

    .memory2-item p {
        font-size: 1rem;
    }

    /* верхний ряд */
    .memory-item:nth-child(2) {
        grid-column: 1 / 4;
        grid-row: 1;
    }

    .memory-item:nth-child(4) {
        grid-column: 4 / 7;
        grid-row: 1;
    }

    /* нижний ряд */
    .memory-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .memory-item:nth-child(3) {
        grid-column: 3 / 5;
        grid-row: 2;
    }

    .memory-item:nth-child(5) {
        grid-column: 5 / 7;
        grid-row: 2;
    }

    .poetry-section {
        padding-left: 3rem;
    }

    .cycle-title {
        padding-left: 1.5rem;
    }

    .epigrof {
        padding: 0.5rem;
        grid-template-columns: 1fr;
        text-align: center;
        
    }

    .epigrof pre {
        font-size: 1rem;
        margin-top: 1.5rem;
        font-family: Times New Roman;
    }

    .arrow {
        color: white;
        font-size: 2.5rem;
        padding: 0.25em;
    }

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

    header {
        padding: 5px 12px;
    }

    .desktop-navigation {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex: 0 0 auto;
    }

    .mobile-navigation:not([hidden]) {
        display: block;
    }

    .section-navigation a {
        font-size: 22px;
    }

    .section-navigation {
        gap: 1em;
    }

    .order1 {
        order: 2;
    }

    .order2 {
        order: 1;
    }

    .index-main-part1 {
        width: 80vw;
    }

    .index-main-part2 {
        width: 95%;
    }

    .footer-navigation {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4em;
    }

    .footer-navigation > .footer-navigation__link:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 0.4em) / 2);
    }

    .footer-navigation__link {
        font-size: 14px;
        min-height: 3.5rem;
        padding: 0.65em 0.4em;
        text-align: center;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        padding: 0.5em;
    }

    .gallery-caption {
        font-size: 1rem;
    }

    .costume-card {
        width: 90%;
    }

    .banner19btn a {
        font-size: 1.5rem;
    }
    
    .costume-feature{
        min-width: 90%;
    }

    .costume-card p {
        font-size: 1.5rem;
    }
    .animation-grid{
        grid-template-columns: 1fr 1fr;
    }
}






@media (min-width: 768px) {
    
    .article-copy p{
        font-size: 2rem;
    }
    
    .banner4 img{
        width: 50vw;
    }
    .animation-grid{
        grid-template-columns: 1fr 1fr 1fr;
    }

    .banner67 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

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

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

    .banner4> :nth-child(3) {
        order: 4;
    }

    .banner4> :nth-child(4) {
        order: 3;
    }

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

    .banner2 {
        grid-template-columns: 2fr 3fr 3fr;
    }

    .ver-card p {
        font-size: 1.3rem;
    }

    .aidar-banner1 {
        width: 25%;
    }

    .gallery-caption {
        font-size: 1.5rem;
    }

    .family-grid {
        grid-template-columns: 2fr 3fr 2fr 2fr;
    }

    .memory-block {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        gap: 30px;
        align-items: start;
    }

    .article-copy--narrow {
        width: 60%;
    }


    .gallery-memory {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }

    .memory-item {
        grid-column: auto;
        grid-row: auto;
    }

    .memory2-item {
        grid-column: auto;
        grid-row: auto;
    }

    .memory2-item p {
        font-size: 2rem;
    }

    .text-block {
        grid-column: auto;
        grid-row: auto;
    }

    .memory-block {
        align-items: center;
    }

    .epigrof {
        grid-template-columns: 5fr 2fr;
    }

    .epigrof pre {
        font-size: 1.7rem;
        margin-top: 12rem;
    }

    .costume-card {
        width: 70%;
        gap: 2em;
        padding: 3em;
    }

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

    .banner19btn a {
        font-size: 2rem;
    }

    .costume-card p {
        font-size: 2rem;
    }

    .costume-feature {
        width: 50%;
    }
    .gallery {
        max-width: 100%;
        grid-template-columns: repeat(4, 1fr);
        padding: 2.5rem;
    }

    .gallery-center-last-row> :nth-last-child(2):nth-child(odd) {
        grid-column: 2;
    }

    .arrow {
        color: white;
    }

    .index-main {
        grid-template-columns: 3fr 2fr;
    }

    .index-main2 {
        grid-template-columns: 5fr 4fr;
    }

    .section-navigation__item {
        padding: 0.8em
    }

    .section-navigation a {
        font-size: 18px;
    }

    .order1 {
        order: 1;
    }

    .order2 {
        order: 2;
    }

    header {
        padding: 9px 27px;
    }

    .desktop-navigation {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 18px;
    }

    .desktop-navigation a {
        font-size: 20px;
    }

    .index-main-part1 {
        width: 100%;
    }

    .index-main-part2 {
        width: 100%;
    }

    .footer-navigation {
        width: 90%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-navigation > .footer-navigation__link:last-child {
        grid-column: auto;
        justify-self: stretch;
        width: auto;
    }

    .footer-navigation__link {
        font-size: 18px;
        min-height: 0;
        padding: 0.7em;
    }
}


@media (min-width: 1024px) {

    .banner2 {
        grid-template-columns: 2fr 2fr 3fr;
    }

    .ver-card p {
        font-size: 1.5rem;
    }

    .epigrof pre {
        margin-top: 5rem;
        font-size: 2.5rem;
    }

    header {
        padding: 11px 33px;
    }

    .desktop-navigation {
        gap: 22px;
    }

    .section-navigation {
        gap: 1em;
    }

    .section-navigation__item {
        padding: 1em
    }

    .section-navigation a {
        font-size: 28px;
    }

    .desktop-navigation a {
        font-size: 22px;
    }

    .footer-navigation__link {
        font-size: 18px;
    }

    .footer-navigation {
        width: 80%;
    }
}






@media (min-width: 1200px) {
    .section-navigation a {
        font-size: 28px;
    }

    .section-navigation__item {
        padding: 1em;
    }

    .desktop-navigation {
        gap: 24px;
    }

    .desktop-navigation a {
        font-size: 24px;
    }

    header {
        padding: 12px 36px;
    }

    .index-main-part1 {
        width: 80%;
    }

    .footer-navigation {
        width: 70%;
    }

    .footer-navigation__link {
        font-size: 20px;
    }

    .costume-card {
        width: 70%;
        gap: 2em;
        padding: 3em;
    }

    .banner19btn a {
        font-size: 2.5rem;
    }

    .costume-card p {
        font-size: 3rem;
    }

    .article-copy p {
        font-size: 2.5rem;
    }
}







@media (min-width: 1400px) {
    .card p {
        font-size: 1.7rem;
    }

    header {
        padding: 15px 45px;
    }

    .desktop-navigation {
        gap: 30px;
    }

    .desktop-navigation a {
        font-size: 30px;
    }

    .section-navigation {
        gap: 20px;
    }

    .section-navigation a {
        font-size: 36px;
    }

    .footer-navigation__link {
        font-size: 22px;
    }
}


@media (min-width: 1800px) {

    .card p{font-size: 2rem;}



    header {
        padding: 20px 60px;
    }

    .desktop-navigation {
        gap: 40px;
    }

    .desktop-navigation a {
        font-size: 40px;
    }

    .section-navigation {
        gap: 30px;
    }

    .section-navigation a {
        font-size: 46px;
    }

    .footer-navigation__link {
        font-size: 24px;
    }
}
