* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    font-family: sans-serif;
    text-decoration: none;
}

html {
    font-size: 16px;
}

#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: 1rem;
}

.arrow.left {
    left: 0.3em;
}

.arrow.right {
    right: 0.3em;
}

.big-img {
    width: auto;
    height: 85vh;
}

.photo {
    transition: 0.1s;
    cursor: pointer;
}

.container {
    max-width: 100vw;
    width: 100%;
    background-color: #B8C45E;
}

header {
    width: 100%;
    height: auto;
    padding: 1rem 3rem;
    background-color: #596120;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

h1 {
    font-family: serif;
    font-size: 3.5rem;
}

.links {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.links a {
    color: black;
    font-style: bold;
    font-size: 2rem;
    font-family: serif;
}

.links a:hover {
    text-decoration: underline;
    color: #8e992a;
    transition: 0.2s;
}

.banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 6rem;
}

.banner-main {
    background-color: rgb(0, 177, 0, 0.07);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
    width: 40%;
    height: auto;
    padding: 2rem;
}

.banner-main p {
    font-size: 5rem;
    font-weight: 550;
    font-family: serif;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.p2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.photo1 {
    padding: 0.5rem 1rem;
    width: 35%;
    height: auto;
    box-shadow: 0 0.5rem 0.75rem rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.photo1 p {
    font-size: 1rem;
    font-weight: 500;
}

.photo1 img {
    width: 100%;
    height: auto;
}

/* main */

.main {
    width: 100%;
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.main img {
    width: 50%;
    height: auto;
}

.buttons {
    width: 50%;
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
}

.btn1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 1.4rem;
    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;
}

.bannermain2 {
    width: 100%;
    height: auto;
}

.footer {
    background-color: #596120de;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buttonsfoot {
    width: 50%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.btnfoot {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6b7528d5;
    color: #d3d3d3;
    border: 0.125rem solid #5a6422;
    border-radius: 1rem;
    font-size: 1rem;
    height: auto;
    padding: 0.5rem;
    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;
}

/* АДАПТИВ */

@media (min-width: 300px) {
    html {
        font-size: 4px;
    }

    .buttonsfoot {
        width: 90%;
    }

    .btnfoot {
        height: 3.5rem;
    }
}

@media (min-width: 400px) {
    html {
        font-size: 5px;
    }
}

@media (min-width: 600px) {
    html {
        font-size: 7px;
    }
}

@media (min-width: 800px) {
    html {
        font-size: 9px;
    }
}

@media (min-width: 1000px) {
    html {
        font-size: 11px;
    }
    .buttonsfoot {
        width: 70%;
    }
    .btnfoot {
        height: 3rem;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 12px;
    }
}

@media (min-width: 1400px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1600px) {
    html {
        font-size: 18px;
    }
}

@media (min-width: 1800px) {
    html {
        font-size: 20px;
    }
}

@media (min-width: 2000px) {
    html {
        font-size: 22px;
    }
}

@media (min-width: 2200px) {
    html {
        font-size: 24px;
    }
}

@media (min-width: 2400px) {
    html {
        font-size: 26px;
    }
}