/* font-family: 'Playfair Display', serif; */

html, body {
    margin: 0;
    min-height: 100svh;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    overflow-x: hidden;
    color: #1C202B;
}

.body-wrapper {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h1, h2, h3 {
   font-family: 'Playfair Display', serif; 
   font-weight: 700;
   letter-spacing: 1.2px;
}

/* Container */

.container {
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
}

/* Header */

.header {
    height: 75px;
    width: 100%;
    display: flex;
    align-items: center;
}

.header-wrap {
    display: flex;
    padding: 0 31px;
}

.logo {
    width: 51px;
    height: 51px;
}

.header-content {
    display: flex;
    width: 100%;
}

.navigation-wrap {
    display: flex;
    width: 100%;
}

.navigation {
    margin: 0 auto;
}

.nav-link {
    font-size: 16px;
    color: #1C202B;
    text-decoration: none;
    text-transform: uppercase;  
    transition: font-weight 0.2s, color 0.2s;
}


.nav-link:not(:last-of-type) {
    margin-right: 90px;
}

.nav-item-group {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.nav-item-group .nav-link {
    margin-right: 0;
}

.nav-demo-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.2;
    padding: 0 14px;
    height: 36px;
    border-radius: 6px;
    color: #ffffff;
    background: #008a5f;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.nav-demo-btn:hover {
    background: #006b4a;
    color: #ffffff;
}

.nav-demo-btn:focus,
.nav-demo-btn:visited,
.nav-demo-btn.active {
    background: #008a5f;
    color: #ffffff;
}

.nav-demo-btn--header {
    height: 46px;
    min-width: 300px;
    padding: 0 18px;
    font-size: 12px;
    line-height: 1.25;
    flex-shrink: 0;
    text-align: center;
}

.active {
    font-weight: 600;
    color: #008a5f;
}

.btn {
    font-weight: 500;
    font-size: 15px;
    width: 305px;
    height: 51px;
    border-radius: 4px;
    border: 1px solid #008a5f;
    color: #ffffff;
    background: #008a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

/* Hamburger menu */

.hamburger {
    position: relative;
    width: 25px;
    height: 3px;
    background: #58606e;
    opacity: 0.7;
    border-radius: 10px;
    cursor: pointer;
    z-index: 3;
    transition: 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    height: 3px;
    right: 0;
    background: #58606e;
    border-radius: 10px;
    transition: 0.3s;
}

.hamburger::before {
    top: -8px;
    width: 25px;
}

.hamburger::after {
    top: 8px;
    width: 25px;
}

.toggle-menu {
    position: absolute;
    width: 25px;
    height: 30px;
    z-index: 4;
    cursor: pointer;
    opacity: 0;
}

.hamburger,
.toggle-menu {
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* наприклад, напівпрозорий чорний фон */
    display: none;
    z-index: 1;
}

.overlay.open {
    display: block;
}

/* Reviews */

.reviews {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
}

.reviews-title {
    padding-bottom: 2%;
    text-align: center;   
}

.swiper {
    padding-top: 2% !important;
}

.swiper-slide:nth-child(odd) {
    display: flex;
    justify-content: flex-end;
}

.swiper-slide:nth-child(odd) .review {
    margin-right: 40px;
}

.swiper-slide:nth-child(even) .review {
    margin-left: 40px;
}

.review {
    width: 443px;
    height: 398px;
    fill: #FFF;
    border: solid 0.695px #000;
    border-radius: 35px;
    box-shadow: 8px -8px 0px 0px #ffffff;  
}

.stars-row {
    margin-top: 9%;
    margin-left: 9%;
    font-size: 22px;
    color: #f5a623;
    letter-spacing: 3px;
    line-height: 1;
}

.stars {
    display: block;
    margin-top: 9%;
    margin-left: 9%;
    max-width: 140px;
    height: auto;
}

.text {
    margin-top: 2%;
    margin-left: 13%;
}

.review-title {
    text-align: justify;
    font-size: 31px;
    font-weight: 600;
    line-height: 140%; 
}

.review-text {
    text-align: justify;
    width: 100%;
    max-width: 327px;
    font-size: 16px;
    line-height: 140%; 
}

.swiper-button-prev {
    left: 18% !important; 
    top: 50% !important;
    color: #008a5f !important;
}

.swiper-button-next {
    right: 18% !important;
    top: 50% !important;
    color: #008a5f !important;
}

/* Footer */

.footer {
    height: 236px;
    background: #f5fff9;
}

.foot-logo {
    width: 71px;
    height: 71px;
}

.footer-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-top: 42px;
}

.school-name {
    color: #008a5f;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    width: 265px;
}

.school-name-span {
    color: #5D616B;
    font-weight: 400;
}

.footer-navigation {
    margin-left: 139px;
}

.social-media {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-right: 140px;
}

.media-img {
    height: 24px;
    width: 24px;
}

.footer-line {
    width: 1481px;
    height: 1.3px;
    background: #1C202B80;
    opacity: 0.5;
    margin: 5px auto 14px;
}

.footer-text {
    display: flex;
    justify-content: space-between;
}

.footer-nav-link {
    font-size: 14px;
    opacity: 0.7;
}

.footer-nav-link:not(:last-of-type) {
    margin-right: 48px;
}

.phone-number {
    color: #1C202B;
    font-size: 14px;
    opacity: 0.7;
    width: 148px;
    margin-right: 118px;
}

@media (hover: hover) {
    .nav-link:hover {
        transition: 0.2s;
        font-weight: 600; 
        color: #008a5f;
    }

    .btn:hover {
        background: #ffffff;
        color: #000; 
        transition: 0.3s;
    }

}

@media (max-width: 1720px) {
    .container {
        max-width: 1760px;
    }

    .swiper {
        padding-top: 1% !important;
    }

    .swiper-slide:nth-child(odd) .review {
        margin-right: 30px;
    }
    
    .swiper-slide:nth-child(even) .review {
        margin-left: 30px;
    }

    .swiper-button-prev {
        left: 17% !important;
    }

    .swiper-button-next {
        right: 17% !important;
    }

    .footer {
        height: 200px;
    }

    .footer-logo {
        padding-top: 20px;
    }

    .foot-logo {
        width: 55px;
        height: 55px;
    }

    .school-name {
        font-size: 19px;
        width: 230px;
    }

    .social-media {
        gap: 17px;
        margin-right: 2%;
    }

    .footer-line {
        width: 95.5%;
        margin: 0px auto 4px;
    }

    .footer-navigation {
        margin-left: 2.1%;
    }

    .footer-nav-link:not(:last-of-type) {
        margin-right: 40px;
    }

    .phone-number {
        margin-top: 18px;
        margin-right: 1%;
    }
}

@media (max-width: 1600px) {
    .container {
        max-width: 1326px;
    }

    .header {
        height: 60px;
    }

    .logo {
        width: 47px;
        height: 47px;
    }
    
    .nav-link {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
        width: 300px;
        height: 47px;
    }

    .reviews-title {
        font-size: 38px;
    }

    .review {
        width: 390px;
        height: 320px;
    }

    .stars-row {`n        font-size: 20px;
        margin-top: 8%;
        margin-left: 8%;
    }

    .text {
        margin-top: 0%;
        margin-left: 11%;
    }

    .review-title {
        font-size: 28px;
    }

    .review-text {
        max-width: 300px;
        font-size: 14px;
    }

    .swiper-button-prev {
        left: 13% !important;
    }

    .swiper-button-next {
        right: 13% !important;
    }

    .footer {
        height: 200px;
    }

    .footer-logo {
        padding-top: 20px;
    }

    .foot-logo {
        width: 55px;
        height: 55px;
    }

    .school-name {
        font-size: 19px;
        width: 230px;
    }

    .social-media {
        gap: 17px;
    }

    .footer-line {
        width: 97%;
        margin: 0px auto 4px;
    }

    .footer-nav-link:not(:last-of-type) {
        margin-right: 40px;
    }

    .phone-number {
        margin-top: 18px;
    }
}

@media (max-width: 1440px) {
    .reviews-title {
        font-size: 32px;
    }

    .review {
        width: 342px;
        height: 274px;
    }

    .stars-row {`n        font-size: 18px;
        margin-top: 8%;
        margin-left: 8%;
    }

    .text {
        margin-top: 0%;
        margin-left: 11%;
    }

    .review-title {
        font-size: 24px;
    }

    .review-text {
        max-width: 260px;
        font-size: 12px;
    }

    .swiper-button-prev {
        left: 17% !important;
    }

    .swiper-button-prev::after, 
    .swiper-button-next::after {
        font-size: 36px !important;
    }

    .swiper-button-next {
        right: 17% !important;
    }

    .footer {
        height: 100px;
        position: relative;
    }

    .footer-logo {
        padding: 0;
        margin-left: 40px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        gap: 8px;
    }

    .foot-logo {
        width: 50px;
        height: 50px;
    }

    .school-name {
        margin-top: 26px;
    }

    .social-media {
        position: absolute;
        right: 4%;
        top: 53%;
        transform: translateY(-50%);
    }

    .media-img {
        height: 19px;
        width: 19px;
    }

    .footer-line {
        display: none;
    }

    .footer-text {
        display: none;
    }
}

@media (max-width: 1335px) {
    .container {
        max-width: 1235px;
    }

    .logo {
        width: 43px;
        height: 43px;
    }

    .nav-link {
        font-size: 13px;
    }

    .nav-link:not(:last-of-type) {
        margin-right: 70px;
    }

    .btn {
        font-size: 13px;
        width: 285px;
    }

    .reviews-title {
        font-size: 32px;
    }

    .swiper-slide:nth-child(odd) .review {
        margin-right: 20px;
    }

    .swiper-slide:nth-child(even) .review {
        margin-left: 20px;
    }

    .review {
        width: 342px;
        height: 274px;
    }

    .stars-row {`n        font-size: 18px;
        margin-top: 8%;
        margin-left: 8%;
    }

    .text {
        margin-top: 0%;
        margin-left: 11%;
    }

    .review-title {
        font-size: 24px;
    }

    .review-text {
        max-width: 260px;
        font-size: 12px;
    }

    .swiper-button-prev {
        left: 16% !important;
    }

    .swiper-button-next {
        right: 16% !important;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1120px;
    }
    
    .header {
        height: 50px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .navigation {
        margin-top: -5px;
    }

    .nav-link {
        font-size: 12px;
    }

    .btn {
        font-size: 12px;
        width: 245px;
        height: 38px;
    }

    .reviews-title {
        font-size: 28px;
    }

    .review {
        width: 305px;
        height: 244px;
    }

    .stars-row {`n        font-size: 16px;
    }

    .text {
        margin-top: -2%;
        margin-left: 10%;
    }

    .review-title {
        font-size: 21px;
    }

    .review-text {
        max-width: 240px;
        font-size: 11px;
    }

    .footer {
        height: 80px;
    }
}

@media (max-width: 1100px) {
    .container {
        max-width: 980px;
    }

    .header-wrap {
        padding: 0px 12px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .nav-link:not(:last-of-type) {
        margin-right: 62px;
    }

    .swiper-button-prev {
        left: 12% !important;
    }

    .swiper-button-next {
        right: 12% !important;
    }

    .footer-logo {
        gap: 12px;
    }

    .foot-logo {
        width: 38px;
        height: 38px;
    }

    .school-name {
        margin-top: 22px;
        font-size: 16px;
        width: 180px;
    }
}

@media (max-width: 960px) {
    .container {
        max-width: 900px;
    }

    .header {
        position: sticky;
        top: 0;
        z-index: 3;
    }

    .header-wrap {
        padding: 2%;
    }
    
    .hamburger,
    .toggle-menu {
        display: block;
    }

    .header-content {
        justify-content: flex-end;
        align-items: center;
    }

    .navigation-wrap {
        display: flex;
        flex-direction: column;
        width: 300px;
        height: 100%;
        position: fixed;
        right: -300px;
        top: 0;
        gap: 12px;
        padding-top: 72px;
        background: #ffffff;
        transition: 0.3s;
        z-index: 2;
    }

    .navigation {
        display: flex;
        flex-direction: column;
        margin-left: 22px;
        width: 85%;
    }

    .nav-link {
        font-size: 13px;
        padding: 10px 8px;
    }

    .nav-link:not(:first-of-type) {
        border-top: 1px solid #657085cd;
    }

    .btn {
        font-size: 13px;
        margin: 0 auto;
        width: 255px;
        height: 42px;
    }

    .nav-link:not(:last-of-type) {
        margin-right: 0;
    }

    .nav-item-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-demo-btn--header {
        font-size: 12px;
        margin: 0 auto;
        width: min(100%, 300px);
        min-width: unset;
        height: 42px;
    }

    .header-content input:checked ~ .hamburger {
        background: transparent;
    }
    
    .header-content input:checked ~ .hamburger::before {
        top: 0;
        transform: rotate(-45deg);
    }
    
    .header-content input:checked ~ .hamburger::after {
        top: 0;
        transform: rotate(45deg);
    }
    
    .header-content input:checked ~ .navigation-wrap {
        right: 0;
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.3);
    }
    
    .header-content input:checked ~ body {
        background-color: rgba(128,128,128, 0.3);
    }

    .reviews-title {
        font-size: 24px;
    }

    .review {
        width: 265px;
        height: 215px;
    }

    .stars-row {`n        font-size: 14px;
    }

    .text {
        margin-top: -2%;
        margin-left: 10%;
    }

    .review-title {
        font-size: 18px;
    }

    .review-text {
        max-width: 210px;
        margin-top: 8px;
        font-size: 10px;
    }

    .swiper-button-prev {
        left: 13% !important;
    }

    .swiper-button-next {
        right: 13% !important;
    }

    .swiper-button-prev::after, 
    .swiper-button-next::after {
        font-size: 30px !important;
    }

    .footer {
        height: 70px;
    }

    .footer-logo {
        margin-left: 16px;
    }

    .social-media {
        right: 3%;
    }
}

@media (max-width: 820px) {
    .container {
        max-width: 780px;
    }

    .review {
        margin: 0 auto !important;
    }

    .swiper-button-prev {
        left: 25% !important;
    }

    .swiper-button-next {
        right: 25% !important;
    }
}

@media (max-width: 755px) {
    .container {
        max-width: 715px;
    }

    .header {
        height: 42px;
    }

    .logo {
        width: 34px;
        height: 34px;
    }

    .nav-link {
        font-size: 12px;
    }

    .btn {
        font-size: 12px;
    }

    .reviews-title {
        font-size: 22px;
        padding-bottom: 3%;
    }

    .review {
        width: 240px;
        height: 206px;
    }

    .stars-row {`n        font-size: 13px;
    }

    .review-title {
        font-size: 16px;
    }

    .review-text {
        max-width: 190px;
        margin-top: 6px;
        font-size: 10px;
    }

    .swiper-button-prev::after, .swiper-button-next::after {
        font-size: 26px !important;
    }

    .school-name {
        font-size: 14px;
        width: 156px;
    }
}

@media (max-width: 680px) {
    .container {
        max-width: 650px;
    }

    .logo {
        width: 32px;
        height: 32px;
    }

    .hamburger::before {
        top: -7px;
    }

    .hamburger::after {
        top: 7px;
    }

    .swiper-button-prev {
        left: 24% !important;
    }

    .swiper-button-next {
        right: 24% !important;
    }

    .media-img {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 630px) {
    .container {
        max-width: 600px;
    }

    .swiper-button-prev {
        left: 22% !important;
    }

    .swiper-button-next {
        right: 22% !important;
    }
}

@media (max-width: 585px) {
    .container {
        max-width: 555px;
    }

    .swiper-button-prev {
        left: 20% !important;
    }

    .swiper-button-next {
        right: 20% !important;
    }
}

@media (max-width: 500px) {
    .container {
        max-width: 470px;
    }  

    .course-plan-title {
        font-size: 22px;
    }

    .swiper-button-prev {
        left: 15% !important;
    }

    .swiper-button-next {
        right: 15% !important;
    }

    .footer-logo {
        margin-left: 20px;
    }

    .school-name {
        margin-top: 20px;
    }

    .social-media {
        margin-right: 32px;
    }
}

@media (max-width: 430px) {
    .container {
        max-width: 400px;
    }

    .reviews-title {
        font-size: 20px;
        padding-bottom: 4%;
    }

    .review {
        width: 215px;
        height: 185px;
    }

    .stars-row {`n        font-size: 12px;
        margin-top: 8%;
        margin-left: 9%;
    }

    .text {
        margin-top: -3%;
    }

    .review-title {
        font-size: 15px;
    }

    .review-text {
        max-width: 170px;
        margin-top: 5px;
        font-size: 11px;
    }

    .swiper-button-prev {
        left: 11% !important;
    }

    .swiper-button-next {
        right: 11% !important;
    }

    .footer {
        height: 60px;
    }

    .footer-logo {
        margin-left: 16px;
    }

    .foot-logo {
        width: 34px;
        height: 34px;
    }

    .school-name {
        font-size: 12px;
        width: 150px;
        margin-top: 18px;
    }

    .school-name-span {
        font-size: 12px;
    }

    .media-img {
        width: 16px;
        height: 16px;
    }

    .social-media {
        margin-right: 28px;
        top: 50%;
    }
}

@media (max-width: 390px) {
    .container {
        max-width: 370px;
    }

    .header-wrap {
        padding: 3%;
        height: 30px;
    }

    .logo {
        width: 30px;
        height: 30px;
    }

    .header-content {
        height: 30px;
    }

    .swiper-button-prev {
        left: 10% !important;
    }

    .swiper-button-next {
        right: 10% !important;
    }

    .foot-logo {
        width: 30px;
        height: 30px;
    }

    .school-name {
        font-size: 11px;
        width: 138px;
    }
    
    .school-name-span {
        font-size: 11px;
    }

    .social-media {
        gap: 12px;
        margin-right: 16px;
    }

    .media-img {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 360px) {
    .container {
        max-width: 335px;
    }

    .swiper-button-prev {
        left: 6% !important;
    }

    .swiper-button-next {
        right: 6% !important;
    }

    .school-name {
        margin-top: 15px;
    }
}

@media (max-width: 340px) {
    .container {
        max-width: 335px;
    }
}