/*!
Theme Name: terracotta
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: terracotta
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

terracotta is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

@import "assets/css/normalize.css";

body{
	font-family: 'Plus Jakarta Sans', sans-serif;
}



/*#68745A*/

/*----------------------Start Contacts----------------------------------------*/
/*----------------------End Contacts----------------------------------------*/




/*----------------------Start Header ----------------------------------------*/

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}
.header-short{
    position: relative;
    background: #68745A;
}
.header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding:15px 0;
	gap: 10px;
}
.header__logo{
    display: flex;
    align-items: center;
    gap:5px;
}
.header__logo span{
	font-family: 'Caveat', cursive;
    font-size: 24px;
    font-weight: 600;
    text-transform: capitalize;
    color:#f4f1eb;
}
.header__logo span:last-child {
    display: inline-block;
    font-size: 24px;
    transition: transform 0.3s ease;
}
.header__logo:hover span:last-child {
    animation: heartMove 0.6s ease-in-out;
}
@keyframes heartMove {
    0% {
        transform: scale(1) rotate(0);
    }
    30% {
        transform: scale(1.4) rotate(-12deg);
    }
    60% {
        transform: scale(1.2) rotate(12deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}
.header__btn{
	border:solid 1px #f4f1eb;
	color:#f4f1eb;
	font-size: 18px;
 	text-transform: uppercase;	
 	padding:10px 20px;
 	border-radius: 5px;
 	font-weight: 600;
}
.header__menu{
    display: flex;
}
.header__menu>ul {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header__menu>ul li a {
    position: relative;
    display: inline-block;
    padding: 5px 3px;
    margin: 0;
    text-transform: capitalize;
    font-size: 16px;
    font-weight: 600;
    color: #f4f1eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header__menu>ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #f4f1eb;
    opacity: 0;
    transition: width 0.4s ease, opacity 0.4s ease;
}

.header__menu>ul li a::after {
    bottom: 0;
    left: 0;
}

.header__menu>ul li a:hover::after {
    width: 100%;
    opacity: 1;
}
.menu-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s ease;
}

.has-submenu:hover .menu-arrow {
    transform: rotate(225deg) translate(-2px, -2px);
}
.header__submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 200px;
    box-sizing: border-box;
    display: block !important;
    margin: 0 !important;
    padding: 8px !important;
    list-style: none;
    background: #f4f1eb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -10px);
    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
    z-index: 1000;
}
.has-submenu:hover > .header__submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.header__submenu li {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}
.header__submenu li a {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px !important;
    margin: 0 !important;
    color: #68745A !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.3;
    text-decoration: none !important;
    border-radius: 5px;
    transition:
        background .2s ease,
        color .2s ease;
}
.header__submenu li a::before,
.header__submenu li a::after {
    display: none !important;
}

.header__submenu li a:hover {
    background: rgba(104, 116, 90, .1);
    color: #68745A !important;
}

.has-submenu{
    position: relative;
}
.has-submenu:hover .menu-arrow {
    transform: rotate(225deg) translate(-2px, -2px);
}
/*----------------------End Header ----------------------------------------*/


/*****************Start круг кувшин ************************/
.rotating-seal-circle{
	position: absolute;
	top:0px;
	right: 0px;
}
.rotating-seal {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
     color: #fff;
}
.seal-svg {
    width: 100%;
    height: 100%;
    display: block;
    animation: sealRotate 18s linear infinite;
}
.seal-text {
    font-size: 6px;
    font-weight: 500;
    letter-spacing: 2.1px;
    text-transform: uppercase;
    fill: currentColor;
}
.seal-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.seal-icon svg {
    width: 38px;
    height: 38px;
    display: block;
    color: currentColor;
}
@keyframes sealRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}
/*****************Start круг кувшин************************/



/*****************Start Hero************************/
.hero{
	position: relative;
	background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    min-height: 600px;
}
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 2;
}
.hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}
.hero-wave path {
    fill: #f4f1eb;
}
.hero .container{
	position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 120px;
    background: transparent;
    clip-path: ellipse(75% 60% at 50% 100%);
}
    
.hero .contact__hero {
    position: relative;
    z-index: 1;
}
/*****************End Hero************************/

/*****************Start Category************************/
    .category-lessons{
        padding:60px 0 60px 0;
    }
    .category-lessons__img {
        height: 250px;
        overflow: hidden;
    }

    .category-lessons__img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .category-lessons__title h1, .category-lessons__title h2{
        font-family: 'Caveat', cursive;
        font-size: 42px;
        font-weight: 700;
        color: #68745A;
    }
	
    .category-lessons__items{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap:20px;
        margin-top:30px;
    }
    .category-lessons__item{
        background: #eae5dc;
        overflow: hidden;
        border-radius: 10px;
    }
    .category-lessons__name{
        padding:20px 15px 20px 15px;
    }
    .category-lessons__name h3{
        color:#c08a64;
        font-size: 18px;
        margin-bottom:15px;
        text-transform: uppercase;
    }
    .category-lessons__name span{
        display: block;
        align-items: center;
        width: fit-content;
        padding: 10px 30px;
        color: #79502d;
        background: #e8ded0;
        border-radius: 50px;
        font-size: 16px;
        margin-bottom:15px;
        font-weight: 600;
    }
    .category-lessons__btn{
        background:#68745A;
        color:#fff;
        padding:10px 30px;
        text-transform: uppercase;
        font-size: 16px;
        border-radius: 10px;
        transition: 0.3s ease;
    }
    .category-lessons__btn:hover{
        background: #333;
        transform: translateY(-2px);
    }
/*****************End Category************************/


/*****************Start Home************************/
#home-herro{
    padding: 130px 0 100px;   
}
.stats {
    padding: 80px 0;
    background: #f4f1eb;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.stats__item {
    position: relative;
    text-align: center;
    padding: 20px 15px;
}
.stats__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 70px;
    background: rgba(104, 116, 90, 0.25);
    transform: translateY(-50%);
}
.stats__number {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: #68745A;
    font-family: 'Caveat', cursive;
    font-size: 64px;
    font-weight: 600;
    line-height: 1;
}
.stats__plus {
    font-size: 40px;
    margin-left: 3px;
}
.stats__title {
    margin-top: 12px;
    color: #68745A;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#home-about{
    background: #FAF8F5;
    padding:50px 0;
}
.home-about__content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.home-about__content-text h2{
    font-family: 'Caveat', cursive;
    font-size: 42px;
    font-weight: 700;
    color: #68745A;
    margin-bottom: 30px;
}
.home-about__content-text h2 span{
     color: #68745A;
}
.home-about__content-text p{
    margin: 0 0 18px;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 700;
    color: #111;
    font-family: 'Caveat', cursive;
    margin-bottom: 30px;
}
.home-about__content-text a{
    background: #c08a64;
    color: #fff;
    padding: 10px 30px;
    text-transform: uppercase;
    font-size: 16px;
    border-radius: 10px;
    transition: 0.3s ease;    
}
.home-about__content-text a:hover{
    background: #333;
    transform: translateY(-2px);
}
.home-lessons{
    padding:60px 0;
}
.home-lessons__titl h2{
    font-family: 'Caveat', cursive;
    font-size: 42px;
    font-weight: 700;
    color: #68745A;
    margin-bottom: 30px;
}
/*****************End Home************************/


/*****************Start Single************************/
    .single{
        padding:60px 0 60px 0;
    }
    .single__title h1{
        font-family: 'Caveat', cursive;
        font-size: 42px;
        font-weight: 700;
        color: #68745A;
    }
    .single__content{
        margin-top:30px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap:30px;
    }
    .single__text p{
        margin-bottom: 15px;
    }
    .single__text span{
        font-weight: 700;
        font-size: 24px;
        color:#a6724d;
    }
    .single__img{
        max-width: 450px;
        margin-bottom:15px;
    }
    .single__img img{
        border-radius: 10px;
    }
    .single__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}
.single__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}
.single__btn svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
    flex-shrink: 0;
}
.single__btn:hover {
    transform: translateY(-3px);
}
.single__btn--telegram {
    color: #fff;
    background: #747961;
}
.single__btn--telegram:hover {
    box-shadow: 0 8px 22px rgba(34, 158, 217, .25);
}
.single__btn--whatsapp {
    color: #fff;
    background: #8B8256;
}
.single__btn--whatsapp:hover {
    box-shadow: 0 8px 22px rgba(37, 211, 102, .25);
}
.single__btn--viber {
    color: #fff;
    background: #907887;
}
.single__btn--viber:hover {
    box-shadow: 0 8px 22px rgba(115, 96, 242, .25);
}

.event__locations-title {
    margin: 0 0 15px;
    color: #68745A;
    font-size: 20px;
    font-weight: 600;
}

.event__locations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event__location {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 13px 16px;

    border: 1px solid rgba(104, 116, 90, 0.15);
    border-radius: 10px;

    background: #f4f1eb;
}

.event__location-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 18px;
    font-weight: 700;
}

.event__location--available .event__location-icon {
    background: #68745A;
    color: #fff;
}

.event__location--unavailable .event__location-icon {
    background: #86534A;
    color: #fff;
}

.event__location-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event__location-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.event__location-address {
    font-size: 15px;
    font-weight: 500;
    color: #68745A;
}
.single__text > span{
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 20px;
    padding: 13px 30px;
    color: #79502d;
    background: #e8ded0;
    border-radius: 50px;
    font-family: 'Caveat', cursive;
    font-size: 28px;
    font-weight: 600;
}

.single-main {
    position: relative;
    overflow: hidden;
}

.corner {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    background: #e7e0d5;
}

/* Верхний левый */
.corner--top-left {
    width: 230px;
    height: 140px;
    top: -80px;
    left: -90px;
    border-radius: 20% 70% 50% 30%;
    transform: rotate(-20deg);
}

/* Верхний правый */
.corner--top-right {
    width: 380px;
    height: 210px;
    top: -110px;
    right: -100px;
    border-radius: 70% 20% 30% 80%;
    transform: rotate(8deg);
}

/* Нижний левый */
.corner--bottom-left {
    width: 340px;
    height: 190px;
    bottom: -100px;
    left: -110px;
    border-radius: 20% 80% 10% 40%;
    transform: rotate(-12deg);
}

/* Нижний правый */
.corner--bottom-right {
    width: 260px;
    height: 170px;
    bottom: -100px;
    right: -80px;
    border-radius: 80% 20% 40% 10%;
    transform: rotate(15deg);
}
/*****************End Single************************/



/*****************Start Gallery************************/
#gallery-herro {
    padding: 130px 0 100px;
}
.gallery__title h2{
    font-family: 'Caveat', cursive;
    font-size: 42px;
    font-weight: 700;
    color: #68745A;
}
.gallery {
    margin:30px 0 50px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
}

.gallery__item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.gallery__item:hover img {
    transform: scale(1.05);
}
/*****************End Gallery************************/


/*----------------------Start About----------------------------------------*/
#about-herro{
	padding: 130px 0 100px 0;
}
.about__theme{
	padding:60px 0;
}
.about__theme-title h2{
	font-family: 'Caveat', cursive;
    font-size: 42px;
    font-weight: 700;
    color: #68745A;
} 
.about__theme-itmes{
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	margin-top:30px;
	gap:30px;
}
.about__theme-itme{
    background: #eae5dc;
    border-radius: 10px;
    overflow: hidden;	
}
.about__theme-itme-info{
	padding:15px;
}
.about__theme-itme-info strong{
 	color: #000;
 	font-size:20px;
}
.about__theme-itme-info p{
	color: #000;
 	font-size:14px;
 	margin-top:10px;
}
.about__theme-itme img{
	width: 100%;
	height: 275px;
	object-fit: cover;
}

.about__content{
	margin:50px 0 50px 0;
}
.about__content-text h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #111;
    font-family: 'Caveat', cursive;
}

.about__content-text p {
    margin: 0 0 25px;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
    color: #222;
    letter-spacing: 0.1px;
    font-family: 'Caveat', cursive;
}

.about__content-text p:last-child {
    margin-bottom: 0;
}

.heart {
    position: relative;
    display: inline-block;
    font-size: 30px;
    line-height: 1;
    color: #000;
}

.heart-fly {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 10;
    color: inherit;
    font-size: 12px;
    line-height: 1;
    pointer-events: none;
    animation: heartFloat 4s ease-out forwards;
}

@keyframes heartFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.4);
    }

    15% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translate(
            calc(-50% + var(--moveX)),
            -100px
        ) scale(1);
    }
}

/*----------------------End About----------------------------------------*/

/*----------------------Start Contacts----------------------------------------*/

#contact-herro {
    padding: 130px 0 100px 0;
}

.contact__hero h1 {
    font-family: 'Caveat', cursive;
    font-size: 64px;
    font-weight: 700;
    text-transform: capitalize;
    color: #68745A;
}
.contact__hero p {
    max-width: 600px;
    color: #f4f1eb;
    font-size: 20px;
    margin-top:15px;
}
#contact-address{
	margin-top:50px;
}

.contact__address-title h2{
	font-family: 'Caveat', cursive;
	font-size: 42px;
	font-weight: 700;
	color: #68745A;
}
.contact__address{
	display: flex;
	flex-wrap: wrap;
    justify-content: center;
	gap:20px;
	margin-top: 30px;
}
.contact__address-item{
 	width: calc((100% - 40px) / 3);
	background: #eae5dc;
	border-radius: 10px;
    overflow: hidden;
}
.contact__address-item img{
	max-height: 320px;
    width: 100%;
    object-fit: cover;
}
.contact__address-info{
	padding:30px 20px 20px 20px;
}

.contact__address-info h2 {
    margin: 0 0 15px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 400;
    color: #1a1a1a;
    font-family: 'Caveat', cursive;   
}

.contact__address-info > a:not(.contact__address-link) {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
}

.contact__address-info p {
    margin: 0 0 30px;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    min-height: 100px;
}

.contact__address-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: 100%;
    padding: 13px 24px;
    border-radius: 10px;
    background: #68745A;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
}

.contact__address-link:hover {
    background: #333;
    transform: translateY(-2px);
}
.contact__form{
	padding:100px 0;
	display: grid;
    gap:20px;
	grid-template-columns: 1fr 1fr;
}
.contact__form-left{
	display: grid;
	gap:10px;
}
.contact__form-left h3{
	font-family: 'Caveat', cursive;
    font-size: 42px;
    font-weight: 700;
    color:#68745A;
}
.contact__form-left p{

}
.contact__form-left ul{
	list-style: none;
	display: grid;
	gap:8px;
}
.contact__form-left ul li{
	display: flex;
	align-items: center;
	gap:10px;
}
.contact__form-left ul li svg{
	width: 20px;
}
.contact__form-left a{
	color:#68745A;
}
.contact__form-right form{
	display: grid;
	gap:15px;
}
.contact__form-inps{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap:15px;
}
.contact__form-right form input{
	background: #D9CFC6;
	padding:10px;
	border-radius: 5px;
}
.contact__form-right form textarea{
	background: #D9CFC6;
	padding:10px;
	min-height: 100px;
	border: 1px transparent;
	border-radius: 5px;
}
.contact__form-right form button{
	background: #68745A;
	padding:10px;
	color:#fff;
	border-radius: 5px;
}
/*----------------------End Contacts----------------------------------------*/

/*----------------------Start Footer----------------------------------------*/

.footer {
    background: #68745A;
    color: #fff;
    padding: 80px 0 25px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 50px;
    padding-bottom: 70px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-family: 'Caveat', cursive;
    font-size: 32px;
    font-weight: 600;
    text-transform: capitalize;
}
	
.footer__brand p {
    max-width: 280px;
    margin-top: 25px;
    color: rgba(255,255,255,.75);
    line-height: 1.6;
}

.footer h3 {
    margin: 0 0 22px;
    font-size: 16px;
    font-weight: 500;
}

.footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer li {
    margin-bottom: 12px;
}

.footer a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    transition: .3s;
}

.footer a:hover {
    color: #fff;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__contacts h3 {
    margin-bottom: 10px;
}

.footer__address p {
    color: rgba(255,255,255,.78);
    line-height: 1.7;
    margin: 0 0 18px;
}

.footer__map {
    color: #fff !important;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,.2);
    font-size: 13px;
    line-height: 2;
    flex-wrap: wrap;
}

.footer__social{
    display: flex;
    gap: 5px;
}
.footer__legal {
    display: flex;
    flex-direction:column;
}
.footer__social a{
    color: #c08a64;
    font-weight: 700;
}
.footer__socials{
    display: flex;
    gap:20px;
    margin-top: 30px;
}
/*----------------------End Footer----------------------------------------*/



/*----------------------Start Page ----------------------------------------*/
.page {
    padding: 80px 0;
}

.page .container {
    max-width: 900px;
}

.page h1 {
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 40px;
    font-weight: 600;
}

.page h2 {
    font-size: 26px;
    line-height: 1.3;
    margin: 40px 0 18px;
    font-weight: 600;
}

.page h3 {
    font-size: 21px;
    line-height: 1.4;
    margin: 30px 0 15px;
    font-weight: 600;
}

.page p {
    font-size: 17px;
    line-height: 1.75;
    margin: 0 0 20px;
}

.page ul,
.page ol {
    margin: 0 0 25px;
    padding-left: 25px;
}

.page li {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.page strong {
    font-weight: 600;
}

.page a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

/*----------------------End Page ----------------------------------------*/




/******************Start 404****************************/
#error-herro{
    padding: 130px 0 100px;   
}
#error-herro .contact__hero{
    display: flex;
    justify-content: center;
    align-items: center;
     min-height: 300px;   
}
#error-herro h1{
    font-size: 64px;
    color: #fff;
    font-size: 16vw;
}
/******************End 404****************************/







/******************Start @Media****************************/

@media screen and (max-width: 1200px) {
    .header__btn{
        display: none;
    }
    .header__menu>ul li a{
        font-size: 14px;
    }
}
@media screen and (max-width: 992px) {
   .header__menu .header__submenu {
        display: block !important;
    }
    .header__menu .has-submenu:hover .header__submenu {
        display: block !important;
    }
    .header__menu .has-submenu > a:hover {
        color: #fff !important;
    }
    .header__menu .menu-arrow {
        display: none !important;
    }
    .has-submenu .header__submenu {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        position: relative;
        width: 100%;
    }
    .header__menu>ul{
        align-items: flex-start;
    }
    .header-short {
        position: relative !important;
        min-height: 60px;
    }

    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        position: relative;
        z-index: 1001;
    }
    .header__logo {
        max-width: 140px;
        z-index: 1002;
    }
    .header__logo img {
        max-height: 40px;
        width: auto;
    }
    .header__burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        padding: 10px 5px;
        cursor: pointer;
        z-index: 1002;
        position: relative;
    }
    .header__burger span {
        display: block;
        width: 28px;
        height: 3px;
        background: #ffffff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    .header__overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
    }
    .header__overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .header__menu {
        position: fixed;
        top: 0;
        right: -80%;
        width: 80%;
        height: 100vh;
        background: #68745A;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        padding: 70px 25px 30px;
        overflow-y: auto;
        transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1001;
        display: block !important;
    }
    .header__menu.active {
        right: 0;
        background: #68745A;
    }
    .header__menu-close {
        position: absolute;
        top: 18px;
        right: 18px;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
    }
    .header__menu-close span {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 24px;
        height: 2px;
        background: #68745A;
        border-radius: 2px;
    }
    .header__menu-close span:first-child {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .header__menu-close span:last-child {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    /* --- СПИСОК МЕНЮ --- */
    .header__menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .header__menu-list > li {
        border-bottom: 1px solid #e8ede3;
        padding: 4px 0;
    }
    .header__menu-list > li:last-child {
        border-bottom: none;
    }

    /* --- ССЫЛКИ (цвет #68745A) --- */
    .header__menu-list > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 18px;
        font-weight: 600;
        color: #68745A;
        text-decoration: none;
        padding: 10px 0;
        transition: color 0.2s;
    }
    .header__menu-list > li > a:hover {
        color: #4d5a3f;
    }

    /* --- СТРЕЛКА --- */
    .header__menu-list > li > a .menu-arrow {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        margin-left: 10px;
        flex-shrink: 0;
    }
    .header__menu-list > li.open > a .menu-arrow {
        transform: rotate(-135deg);
    }

    /* --- САБМЕНЮ (ОТКРЫТО ПО УМОЛЧАНИЮ) --- */
    .header__submenu {
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
        background: #f6f8f4;
        border-radius: 8px;
        padding-left: 0;
    }
    .header__menu-list > li.open .header__submenu {
        max-height: 600px;
        padding: 12px 0 12px 18px;
        margin-top: 4px;
    }

    /* --- ЭЛЕМЕНТЫ САБМЕНЮ --- */
    .header__submenu li {
        padding: 8px 0;
        border-bottom: 1px solid #e8ede3;
    }
    .header__submenu li:last-child {
        border-bottom: none;
    }
    .header__submenu a {
        font-size: 16px;
        font-weight: 400;
        color: #68745A;
        text-decoration: none;
        display: block;
        padding: 4px 0 4px 10px;
        border-left: 3px solid transparent;
        transition: all 0.25s ease;
        position: relative;
    }
    .header__submenu a::before {
        content: "›";
        position: absolute;
        left: -8px;
        color: #68745A;
        font-size: 20px;
        opacity: 0;
        transition: opacity 0.25s ease, left 0.25s ease;
    }
    .header__submenu a:hover {
        color: #4d5a3f;
        padding-left: 20px;
        border-left-color: #68745A;
    }
    .header__submenu a:hover::before {
        opacity: 1;
        left: 0;
    }

    /* --- СКРЫВАЕМ ДЕСКТОПНУЮ КНОПКУ --- */
    .header__btn {
        display: none !important;
    }

    /* --- АНИМАЦИЯ БУРГЕРА В КРЕСТИК --- */
    .header__burger.active span:first-child {
        transform: translateY(8px) rotate(45deg);
        background: #ffffff;
    }
    .header__burger.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    .header__burger.active span:last-child {
        transform: translateY(-8px) rotate(-45deg);
        background: #ffffff;
    } 


    .contact__hero h1{
        font-size: 42px;
    }
    .contact__hero p{
        font-size: 18px;
    }
    .home-about__content-text p{
        font-size: 18px;
    }
    .home-lessons__titl h2,.home-about__content-text h2, 
    .about__theme-title h2, .gallery__title h2, .contact__address-title h2, 
    .contact__form-left h3{
        font-size: 38px;
    }
    .about__theme-itmes, .category-lessons__items{
        grid-template-columns: 1fr 1fr 1fr;
    }
    .contact__address-item{
        width: calc((100% - 40px) / 2);       
    }
    .footer__top {
        gap:20px;
    }
}
@media screen and (max-width: 768px) {
    .hero{
        min-height: 500px;
    }
    .stats__grid{
        gap:10px;
    }
    .stats__number{
        font-size: 48px;
    }
    .stats__item{
        padding: 5px 10px;
    }
    .footer__top{
        grid-template-columns: 1.3fr 1fr 1.2fr;       
    }
    .about__theme-itmes, .category-lessons__items {
        grid-template-columns: 1fr 1fr;
    }
    .gallery{
        grid-template-columns: repeat(3, 1fr); 
    }
    .contact__form{
        grid-template-columns: 1fr;    
    }
    .single__content{
        grid-template-columns: 1fr;   
    }
    .single__btns, .single__title h1{
        position: relative;
    }
    .contact__hero p{
        max-width: 450px;
    }
    .rotating-seal{
        width: 100px;
        height: 100px;
    }
}
@media screen and (max-width: 576px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-about__content-text p {
        font-size: 16px;
    }
    .home-about__content{
        grid-template-columns: 1fr;
        gap:20px;
    }
    .about__theme-itmes, .category-lessons__items {
        grid-template-columns: 1fr;
    }
    .footer__top {
        grid-template-columns: 1fr;
    }
    .contact__hero h1, .category-lessons__title h1, .single__title h1, .category-lessons__title h2 {
        font-size: 28px;
    }
    .contact__hero p {
        font-size: 16px;
    }
    .home-lessons__titl h2, .home-about__content-text h2, .about__theme-title h2, .gallery__title h2, .contact__address-title h2, .contact__form-left h3{
        font-size: 24px;
    }
    .about__content-text h2{
        font-size: 20px;
    }
    .about__content-text p{
        font-size: 16px;
    }
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact__address-item {
        width: calc((100% - 40px) / 1);
    }
    .contact__form-inps{
        grid-template-columns: 1fr;    
    }
}
@media screen and (max-width: 480px) {

}
/******************End @Media****************************/


