@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;900&display=swap');

body {
	background: url("../img/fon2.jpg") #758d35;
    margin: 0;
    background-repeat: no-repeat;
    background-size: cover;
	background-position-x: center;
	background-attachment: fixed;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../img/fon2.jpg") center / cover no-repeat;
    filter: blur(0px);
    opacity: 0;
    transition: opacity 0.4s ease, filter 0.4s ease;
    z-index: -1;
}
body.is-scrolling::before {
    filter: blur(6px);
    opacity: 0.9;
}
body.is-scrolling {
    background: none;
}
a{
    cursor: pointer;
	    transition: auto .5s ease;
}
.container {
	max-width: 80%;
	margin: 0 auto;
   /* position: absolute;*/
   /* display: flex;
    margin: auto;
    bottom: -130px;
    align-items: flex-end;
    height: 100%;*/

}
.container p{
font-family: 'serif';
font-style: normal;
font-weight: 400;
font-size: 32px;
line-height: inherit;
text-align: center;
color: #3c4858;
}
.container h1{
    font-family: 'serif';
    font-style: normal;
    font-weight: 900;
    font-size: 100px;
    line-height: inherit;
    text-align: center;
    color: #7a98b5;
    margin-block-start: 0.1em;
    margin-block-end: 0.2em;
}
.container-in {	
    padding-top: 550px;
}
.c-found {
	max-width: 80%;
    margin: auto;
    background-color: antiquewhite;
    margin-bottom: 25px;
    border-radius: 25px;
}
.found {
    display: flex;
    padding: 10px 50px;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row-reverse;
}
.found p{
    font-size: 18px;
	font-family: arial, helvetica, sans-serif;
	padding: 0 25px;
}
.found img{
    max-width: 250px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 10px;
   max-width: 80%;
    margin: 0 auto;
	padding-bottom: 50px;
	/*margin-top: 450px;*/
}
.gallery img {
    max-width: -webkit-fill-available;
	max-width: -moz-available;
	    border-radius: 20px;
		    transition: auto .5s ease;
}
.gallery a:hover {
    transform: rotate(-5deg); 
	    transition: auto .5s ease;
}
h2 {
    text-align: center;
    font-family: sans-serif;
    font-size: xxx-large;
    color: #faebd7;
}
.section {
    margin: 30px 0 50px;
}
.section h2 {
    margin: 0 0 20px;
}
.eco-lessons {
    max-width: 80%;
    margin: 40px auto;
    background: #ecf8c9;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px 32px;
    box-shadow: 0 10px 25px rgba(60, 72, 88, 0.15);
}
.eco-text {
    max-width: 45%;
}
.eco-text h3 {
    margin: 0 0 12px 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 40px;
    color: #2c3a24;
}
.eco-text p {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.4;
    color: #2c3a24;
    text-align: left;
}
.eco-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 28px;
    background: #2f8f3a;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 18px rgba(47, 143, 58, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.eco-btn:hover {
    background: #277a31;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(47, 143, 58, 0.3);
}
.eco-btn:active {
    transform: translateY(0);
}
.eco-media {
    flex: 1 1 55%;
    display: flex;
    justify-content: flex-end;
}
.eco-media img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}
.book {
    max-height: 640px;
    width: auto;
    margin: auto;
    display: block;
}

.site-footer {
    margin-top: 40px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.65), rgba(236, 248, 201, 0.88));
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 -12px 28px rgba(60, 72, 88, 0.18);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    margin-left: 12px;
    margin-right: 12px;
}
.site-footer__inner {
    max-width: 80%;
    margin: 0 auto;
    padding: 18px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: 'Roboto', sans-serif;
    color: #2c3a24;
}
.site-footer__copy {
    font-weight: 700;
    letter-spacing: 0.4px;
}
.site-footer__cookies {
    border: 0;
    background: linear-gradient(135deg, #2f8f3a, #6ab04c);
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 18px rgba(47, 143, 58, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.site-footer__cookies:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(47, 143, 58, 0.3);
    filter: brightness(1.03);
}
.site-footer__cookies:active {
    transform: translateY(0);
}
.site-footer__cookies:focus-visible {
    outline: 3px solid rgba(47, 143, 58, 0.35);
    outline-offset: 2px;
}

    

@media (max-width: 900px) {
	.container {
    width: 100%;
    display: block;
    margin: auto;
	}
	.gallery {
		display: grid;
		grid-template-columns: repeat(1, minmax(0, 1fr));
		grid-gap: 10px;
		max-width: 90%;
		margin: 0 auto;
		/* top: -50vh; */
		/* position: absolute; */
		width: 100%;
		text-align: center;
		/*margin-top: 350px;*/
	}
	.container-in {	
    padding-top: 350px;
	}
    .eco-lessons {
        flex-direction: column;
        max-width: 90%;
        padding: 20px;
    }
    .eco-text {
        max-width: 100%;
    }
    .eco-text h3 {
        font-size: 32px;
        text-align: left;
    }
    .eco-media {
        width: 100%;
    }
    .site-footer__inner {
        max-width: 90%;
    }
}
@media (max-width: 768px) {
    h2 {
        font-size: 32px;
    }
    .container {
        max-width: 92%;
    }
    .found {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .found p {
        padding: 0;
        text-align: center;
    }
    .book {
        max-height: 70vh;
        width: 100%;
        max-width: 420px;
    }
    .site-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 800px) {
	/*.gallery {
    margin-top: 300px;
	}*/
	.container-in {	
    padding-top: 300px;
	}

}
@media (max-width: 700px) {
	/*.gallery {
    margin-top: 200px;
	}*/
	.container-in {	
    padding-top: 200px;
	}

}
@media (max-width: 550px) {

/*.gallery {
    margin-top: 200px;
	}*/
}
@media (max-width: 512px) {
body {
    background-size: 100%;
}
/*.gallery {
    margin-top: 100px;
	}*/
	.container-in {	
    padding-top: 100px;
	}
}
