* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    font-family: serif;
    text-decoration: none;
}

#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 1em;
}

.arrow.left {
    left: 0.3em;
}

.arrow.right {
    right: 0.3em;
}

.big-img {
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 85vh;
}

img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.photo {
    transition: 0.1s;
    cursor: pointer;
}

.container {
    display: block;
    width: 100%;
    overflow-x: hidden;
    background-color: #ff3939d8;
}

header {
    width: 100%;
    height: auto;
    padding: 1em 4em;
    background-color: #910000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.links a {
    color: black;
}

.links a:hover {
    text-decoration: underline;
    color: #8e992a;
    transition: 0.2s;
}

.index-main {
    padding: 2em;
    display: grid;
}

.index-main2 {
    padding: 2em;
    display: grid;
}

.index-main-part {
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.index-main-part1 {
    display: block;
    background-color: rgb(0, 177, 0, 0.07);
    box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.2);
    width: 95%;
    height: auto;
    padding: 2em;
}

.index-main-part1 p{
    font-size: 2.5rem;
}

.index-main-part2 {
    box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.2);
    width: 65%;
    height: auto;
    padding: 2em;
    display: flex;
    flex-direction: column;
}

.buttons {
    width: 100%;
    display: flex;
    gap: 3em;
    flex-direction: column;
}

.btn1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 1rem 1.5rem;
    background-color: rgba(0, 177, 0, 0.137);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5);
}


.btn1 a {
    color: black;
    background-color: rgb(0, 0, 0, 0);
    font-size: 1.5rem;
    font-weight: 600;
}

.btn1 a:hover {
    text-decoration: underline;
    color: #398000;
    transition: 0.3s;
}

.footer {
    background-color: #910000;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1.5em;
    gap: 1em;
}

.buttonsfoot {
    width: 70%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 1rem;
}

.btnfoot {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #910000;
    color: #d3d3d3;
    border: 0.25rem solid #ffffff;
    border-radius: 1rem;
    font-size: 32px;
    height: auto;
    padding: 0.7em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btnfoot:hover {
    background-color: #c3d64ade;
    color: #000;
    border-color: #c3d64ade;
}

.footer p {
    background-color: rgb(0, 0, 0, 0);
    grid-column: 1 / -1;
    text-align: center;
    color: aliceblue;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2.5em;
    font-size: 2.5rem;
}

.gallery-item {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item p {
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.banner-jiv p {
    text-align: center;
    padding: 1em;
    background-color: #59612077;
    font-size: 2em;
}

.costum_btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
    background-color: #86A62E;
    padding: 1rem;
}

.costum_btn p {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.774);
    padding: 1rem;
}

.costumbase {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2em;
}

.banner19btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #006E00;
    width: 80%;
    padding: 1rem;
    height: auto;
}

.banner19btn a {
    color: white;
    font-size: 2rem;
    font-family: 'Times New Roman', Times, serif;
}

.banner19btn a:hover {
    text-decoration: underline;
    color: #d3d3d3fa;
    transition: 0.3s;
}

.banner19 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem 4rem;
    gap: 2rem;
}

.banner19_1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #86A62E;
    padding: 2rem;
    justify-content: space-between;
    gap: 2rem;
}

.banner19_1 p {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.774);
}

.title_prot p {
    margin-top: 0.3rem;
    text-indent: 3rem;
    font-size: 2rem;
    padding: 1rem;
}

.title_prot a {
    font-size: 1.7rem;
}

.epigrof {
    padding: 2rem;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1rem;
}

.epigrof pre {
    font-size: 2rem;
}

.poetry-section {
    max-width: 850px;
    margin: 0 auto;
    font-family: Georgia, "Times New Roman", serif;
    color: #2f2f2f;
}

.poem {
    margin: 2.5rem 0;
    line-height: 1.9;
    font-size: 1.05rem;
}

.poem-line {
    display: block;
    font-size: 2rem;
}

.poem-separator {
    text-align: center;
    margin: 2rem 0;
    color: #000000;
    letter-spacing: .3em;
}

.cycle-title {
    margin: 4rem 0 2rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid #d9d9d9;
    font-size: 2.5rem;
    font-weight: 600;
}

.poem-year {
    margin-top: 1rem;
    font-style: italic;
    color: #777;
    font-size: 2rem;
}

.poem-note {
    color: #666;
    font-style: italic;
    font-size: 2rem;
}

.links_w {
    width: 90%;
}

.memory-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 1rem;
}

.memory2-item:first-child {
    grid-column: 1;
    grid-row: 1;
}

.memory2-item:last-child {
    grid-column: 2;
    grid-row: 1;
}

.text-block {
    grid-column: 1 / 3;
    grid-row: 2;
}

.grid2322 {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr 2fr;
    gap: 1rem;
    padding: 2.5rem;
}

.multiki {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem;
}

.gallery-item a {
    font-size: 1.5rem;
}

.aidar-banner {
    padding: 1rem;
    display: flex;
    gap: 2rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.aidar-banner2 {
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.title_prot p2 {
    margin-top: 0.3rem;
    text-indent: 3rem;
    font-size: 3rem;
}

/* Биография */

.ver-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
    max-width: 85vw;
}

.l-card {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    max-width: 85vw;
    max-width: 100%;
}

.r-card {
    align-items: center;
    display: flex;
    flex-direction: row-reverse;
    gap: 0.5rem;
    text-align: right;
    max-width: 85vw;
    max-width: 100%;
}


.banner3-1 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.banner {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: grid;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    max-width: 100%;
}
.banner4-1{
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}









/* АДАПТИВ */

@media (min-width: 320px) {
    
    .title_prot 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;
    }

    .grid2322 {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-memory {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
        padding: 0.7rem;
    }
    
    .banner4 img{
        width: 95vw;
    }

    .memory2-item p {
        font-size: 1rem !important;
    }

    /* верхний ряд */
    .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: rgb(0, 0, 0, 0);
    }

    .index-main {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 1.5rem;
        color: #174700;
        font-weight: 500;
    }

    h3 {
        font-size: 2.4rem;
        color: #174700;
        font-weight: 500;
        text-align: center;
    }

    h5 {
        font-size: 36px;
    }

    h6 {
        text-align: center;
        font-size: 2rem;
        font-weight: 500;
        text-align: center;
    }

    p {
        font-size: 12px;
    }

    header {
        padding: 5px 12px;
    }

    .links {
        padding: 0.5em;
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 8px;
        column-gap: 16px;
    }

    .links a {
        font-size: 16px;
    }

    .buttons a {
        font-size: 22px;
    }

    .buttons {
        gap: 1em;
    }

    .order1 {
        order: 2;
    }

    .order2 {
        order: 1;
    }

    .index-main-part1 {
        width: 80vw;
    }

    .index-main-part2 {
        width: 95%;
    }

    .buttonsfoot {
        width: 100%;
        gap: 0.4em;
    }

    .btnfoot {
        font-size: 14px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        padding: 0.5em;
    }

    .gallery-item p {
        font-size: 1rem;
    }

    .costum_btn {
        width: 90%;
    }

    .banner19btn a {
        font-size: 1.5rem;
    }
    
    .costumbase{
        min-width: 90%;
    }

    .costum_btn p {
        font-size: 1.5rem;
    }
    .multiki{
        grid-template-columns: 1fr 1fr;
    }
}






@media (min-width: 768px) {
    
    .title_prot p{
        font-size: 2rem;
    }
    
    .banner4 img{
        width: 50vw;
    }
    .multiki{
        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-item p {
        font-size: 1.5rem;
    }

    .grid2322 {
        grid-template-columns: 2fr 3fr 2fr 2fr;
    }

    .memory-block {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        gap: 30px;
        align-items: start;
    }

    .links_w {
        width: 60%;
    }


    .gallery-memory {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }

    .memory-item {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .memory2-item {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .memory2-item p {
        font-size: 2rem !important;
    }

    .text-block {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .memory-block {
        align-items: center;
    }

    .epigrof {
        grid-template-columns: 5fr 2fr;
    }

    .epigrof pre {
        font-size: 1.7rem;
        margin-top: 12rem;
    }

    .costum_btn {
        width: 70%;
        gap: 2em;
        padding: 3em;
    }

    .banner19 {
        grid-template-columns: 1fr 1fr;
    }

    .banner19btn a {
        font-size: 2rem;
    }

    .costum_btn p {
        font-size: 2rem;
    }

    .costumbase {
        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;
    }

    h1 {
        font-size: 32px;
    }


    h3 {
        font-size: 3rem;
        color: #174700;
        font-weight: 500;
        text-align: center;
    }

    h5 {
        font-size: 52px;
    }

    h6 {
        text-align: left;
        font-size: 3rem;
        font-weight: 500;
    }

    p {
        font-size: 14px;
    }

    .index-main {
        grid-template-columns: 3fr 2fr;
    }

    .index-main2 {
        grid-template-columns: 5fr 4fr;
    }

    .btn1 {
        padding: 0.8em
    }

    .buttons a {
        font-size: 18px;
    }

    .order1 {
        order: 1;
    }

    .order2 {
        order: 2;
    }

    header {
        padding: 9px 27px;
    }

    .links {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 18px;
    }

    .links a {
        font-size: 20px;
    }

    .index-main-part1 {
        width: 100%;
    }

    .index-main-part2 {
        width: 100%;
    }

    .buttonsfoot {
        width: 90%;
    }

    .btnfoot {
        font-size: 18px;
    }
}


@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;
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 3rem;
        color: #174700;
        font-weight: 500;
    }

    h5 {
        font-size: 56px;
    }

    h6 {
        font-size: 3.6rem;
        font-weight: 500;
    }

    p {
        font-size: 18px;
    }

    header {
        padding: 11px 33px;
    }

    .links {
        gap: 22px;
    }

    .buttons {
        gap: 1em;
    }

    .btn1 {
        padding: 1em
    }

    .buttons a {
        font-size: 28px;
    }

    .links a {
        font-size: 22px;
    }

    .btnfoot {
        font-size: 18px;
    }

    .buttonsfoot {
        width: 80%;
    }
}






@media (min-width: 1200px) {
    h1 {
        font-size: 42px;
    }

    h5 {
        font-size: 60px;
    }

    h6 {
        font-size: 4rem;
        font-weight: 500;
    }

    p {
        font-size: 22px;
    }

    .buttons a {
        font-size: 28px;
    }

    .btn1 {
        padding: 1em;
    }

    .links {
        gap: 24px;
    }

    .links a {
        font-size: 24px;
    }

    header {
        padding: 12px 36px;
    }

    .index-main-part1 {
        width: 80%;
    }

    .buttonsfoot {
        width: 70%;
    }

    .btnfoot {
        font-size: 20px;
    }

    .costum_btn {
        width: 70%;
        gap: 2em;
        padding: 3em;
    }

    .banner19btn a {
        font-size: 2.5rem;
    }

    .costum_btn p {
        font-size: 3rem;
    }

    .title_prot p {
        font-size: 2.5rem;
    }
}







@media (min-width: 1400px) {
    h1 {
        font-size: 52px;
    }

    h5 {
        font-size: 75px;
    }

    h6 {
        font-size: 5rem;
        font-weight: 500;
    }

    .card p {
        font-size: 1.7rem;
    }

    p {
        font-size: 24px;
    }

    header {
        padding: 15px 45px;
    }

    .links {
        gap: 30px;
    }

    .links a {
        font-size: 30px;
    }

    .buttons {
        gap: 20px;
    }

    .buttons a {
        font-size: 36px;
    }

    .btnfoot {
        font-size: 22px;
    }
}


@media (min-width: 1800px) {

    .card p{font-size: 2rem;}



    h1 {
        font-size: 70px;
    }

    h2 {
        font-size: 4rem;
        color: #174700;
        font-weight: 500;
    }

    h3 {
        font-size: 4rem;
        color: #174700;
        font-weight: 500;
        text-align: center;
    }

    h5 {
        font-size: 110px;
    }

    h6 {
        font-size: 6rem;
        font-weight: 500;
    }

    p {
        font-size: 30px;
    }

    header {
        padding: 20px 60px;
    }

    .links {
        gap: 40px;
    }

    .links a {
        font-size: 40px;
    }

    .buttons {
        gap: 30px;
    }

    .buttons a {
        font-size: 46px;
    }

    .btnfoot {
        font-size: 24px;
    }
}