:root {
    --bg-primary: #fff;
    --color-primary: #000;
    --bg-secondary: #f5f5f5;
    --color-secondary: #fff;
    --bg-accent: #79c001;
    --color-accent: #79c001;
    --bg-third: #374b15;
    --shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

body,
html {
    font-family: "Montserrat", sans-serif;
    background-color: var(--bg-primary);
    color: var(--color-primary);

    /* smooth scroll behavior for anchor links */
    scroll-behavior: smooth;
}
.container {
    margin: 0 auto;
    padding: 0 16px;
}

/* tablet */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* desktop */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
}

main {
    margin-top: 88px;
    min-height: 100vh;
}
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 15px;
    transition:
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
    border-radius: 25px;
    font-size: 20px;
    font-weight: 700;
}

.btn:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
/**
  |============================
  | header
  |============================
*/
.header {
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(231, 231, 231, 0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 12px 0;
}
.header__container {
    display: flex;
    align-items: center;
}
.header__logo {
    width: 120px;
}
.header__nav {
    /* display: none; */
}
.lang {
    padding: 6px;
    margin: 0 14px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--shadow);
    border-radius: 12px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    transition: transform 0.2s ease;
}
.lang:hover {
    transform: scale(1.1);
}
.header__menu {
}
.header__item {
}
.header__link {
    position: relative;
    padding: 6px;
}
.header__link.active {
    color: var(--color-accent);
}
.header__link {
    position: relative;
}

.header__link::after,
.header__link:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--bg-accent);
    transition: 0.3s;
}

.header__link.active::after,
.header__link:hover::after {
    width: 100%;
}
.header__link:hover,
.header__link:focus {
    color: var(--color-accent);
    transition: color 0.2s ease;
}

.header__button {
    margin-left: auto;
    background-color: var(--bg-accent);
    color: var(--color-secondary);
}

.header__button:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .header__logo {
        width: 100px;
    }
    .header__nav {
        display: block;
        margin-left: 20px;
    }
    .header__menu {
        display: flex;
        align-items: center;
        gap: 4px;

        font-size: 16px;
        font-weight: 700;
    }
    .header__button {
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    .header__logo {
        width: 130px;
    }
    .header__nav {
        margin-left: 60px;
    }
    .header__menu {
        gap: 20px;

        font-size: 20px;
    }
    .header__button {
        font-size: 22px;
    }
}

/**
  |============================
  | burger
  |============================
*/

.burger {
    margin-left: 12px;
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #000;
    transition: 0.3s;
}

/* MOBILE */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;

        background: #fff;
        padding: 80px 20px;

        transition: right 0.3s ease;
        z-index: 1000;
    }

    .header__nav.active {
        right: 0;
    }

    .header__menu {
        display: flex;
        flex-direction: column;
        gap: 18px;
        font-size: 24px;
        font-weight: 700;
    }
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);

    opacity: 0;
    visibility: hidden;

    transition: 0.3s;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.burger.active span:nth-child(1) {
    transform: rotate(40deg) translate(6px, 7px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
/**
  |============================
  | main
  |============================
*/

.hero,
.enmg,
.advantages {
    background-image: url(../images/main/big.svg), url(../images/main/small.svg);
    background-repeat: no-repeat, no-repeat;
    background-size: 160px, auto;
}
.hero {
    background-position:
        105% 40%,
        0% 30%;
    background-size: 100px, auto;
}
.enmg {
    background-position:
        105% 66%,
        0% 45%;
}
.advantages {
    background-position:
        100% 61%,
        0% 32%;
}
@media (min-width: 768px) {
    .hero,
    .enmg,
    .advantages {
        padding: 70px 0;
        background-size: 240px, auto;
    }
    .hero {
        background-position:
            100% 70%,
            0% 55%;
    }
    .enmg {
        background-position:
            105% 66%,
            0% 45%;
    }
    .advantages {
        background-position:
            100% 63%,
            0% 32%;
    }
}
@media (min-width: 1024px) {
    .hero {
        background-position:
            100% 70%,
            0% 117%;
    }
    .advantages {
        background-position:
            100% 2%,
            0% 40%;
    }
}
.hero {
    padding: 70px 0;
}
.hero__container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero__title {
    font-size: 26px;
    font-weight: 700;
}
.hero__title-accent {
    color: var(--bg-accent);
}
.hero__text {
    font-size: 14px;
    font-weight: 400;
}
.hero__text > strong {
    color: var(--color-accent);
}
.hero__mobile,
.hero__image {
    border: 8px solid var(--bg-third);
}
.hero__image {
    display: none;
    /* width: calc(40% - 20px); */
}

@media (min-width: 768px) {
    .hero {
        padding: 70px 0;
    }
    .hero__container {
        gap: 60px;
    }
    .hero__content {
        gap: 20px;
    }
    .hero__title {
        margin-bottom: 6px;
        font-size: 32px;
    }
    .hero__text {
        font-size: 16px;
    }
    .hero__mobile {
        display: none;
    }
    .hero__image {
        order: 0;
        display: block;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 80px 0;
    }
    .hero__container {
        align-items: start;
        flex-direction: row;
        gap: 60px;
    }
    .hero__content {
        gap: 22px;
        width: 60%;
    }
    .hero__title {
        font-size: 40px;
    }
    .hero__text {
        font-size: 16px;
    }
    .hero__image {
        width: 40%;
    }
}

/**
  |============================
  | enmg 
  |============================
*/

.enmg {
    background-color: var(--bg-secondary);
    padding: 70px 0;
}
.enmg__container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.enmg__wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.enmg__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.enmg__info--box {
    border-radius: 35px;
    padding: 12px 20px;
    box-shadow: var(--shadow);
    background-color: var(--color-secondary);
}
.enmg__title {
    font-size: 26px;
    font-weight: 700;
}
.accent {
    color: var(--color-accent);
}
.enmg__text {
    font-size: 14px;
    font-weight: 600;
}
.enmg__text--light {
    font-size: 14px;
    font-weight: 500;
}
.enmg__info--box > .enmg__text {
    margin-bottom: 20px;
}
.enmg__text > strong {
    color: var(--color-accent);
}
.enmg__list {
    font-size: 14px;
    font-weight: 500;
    list-style: disc;
    padding-left: 20px;
}
.enmg__list--ordered {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.enmg__list--ordered > .enmg__item {
    border-radius: 35px;
    padding: 12px 20px;
    box-shadow: var(--shadow);
}
.enmg__list--ordered > .enmg__item > strong {
    color: var(--color-accent);
}
.enmg__image {
    border: 8px solid var(--bg-third);
    /* display: none; */
}
@media screen and (max-width: 1024px) {
    .enmg__image--one {
        order: 1;
    }
    .enmg__image--two {
        order: -1;
    }
}
.enmg__subtitle {
    color: var(--color-accent);
    font-size: 22px;
}
.enmg__info--item > .enmg__subtitle {
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-primary);
}
@media (min-width: 768px) {
    .enmg {
        padding: 70px 0;
    }
    .enmg__title {
        font-size: 32px;
    }
    .enmg__subtitle {
        font-size: 26px;
    }
    .enmg__text,
    .enmg__list,
    .enmg__text--light {
        font-size: 16px;
    }
}
@media (min-width: 1024px) {
    .enmg__wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 70px;
    }
    .enmg__info {
        width: 60%;
    }
    .enmg__info--item {
        width: 50%;
    }
    .enmg {
        padding: 80px 0;
    }
    .enmg__title {
        font-size: 38px;
    }
    .enmg__mobile {
        display: none;
    }
    .enmg__image {
        margin-top: 70px;
        width: 40%;
        display: block;
    }
}

/**
  |============================
  | about
  |============================
*/

.advantages {
    padding: 70px 0;
}
.advantages__container {
}
.advantages__title {
    margin-bottom: 24px;
    font-size: 26px;
    font-weight: 700;
}
.advantages__accent {
    color: var(--bg-accent);
}
.advantages__row + .advantages__row {
    margin-top: 40px;
}
.advantages__row {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.advantages__row--reverse > .advantages__image {
    order: 1;
}
.advantages__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.advantages__subtitle {
    border-radius: 35px;
    box-shadow: var(--shadow);
    padding: 12px 20px;
    color: var(--color-accent);
    background-color: var(--color-secondary);
    font-size: 22px;
}
.advantages__text {
    font-size: 14px;
    font-weight: 500;
}
.advantages__image {
}
.advantages__image > img {
    border: 8px solid var(--bg-third);
}

.advantages__list {
    padding-left: 20px;
    list-style: disc;
}
.advantages__item {
}
@media (min-width: 768px) {
    .advantages {
        padding: 70px 0;
    }
    .advantages__title {
        font-size: 32px;
    }
    .advantages__row--reverse > .advantages__image {
        order: 1;
    }
    .advantages__subtitle {
        font-size: 26px;
    }
    .advantages__text {
        font-size: 16px;
    }
}
@media (min-width: 1024px) {
    .advantages {
        padding: 80px 0;
    }
    .advantages__title {
        font-size: 40px;
    }
    .advantages__row {
        align-items: center;
        flex-direction: row;
        gap: 70px;
    }
    .advantages__row--reverse > .advantages__image {
        order: 0;
    }
    .advantages__content {
        width: 50%;
    }
    .advantages__image {
        width: 50%;
    }
}

/**
  |============================
  | prices
  |============================
*/
.price {
    padding: 70px 0;
    background-color: var(--bg-secondary);
}
.price__container {
}
.price__title {
    margin-bottom: 24px;
    font-size: 26px;
    font-weight: 700;
}
.swiper {
}
.price__slider {
}
.swiper-wrapper {
}
.swiper-slide {
}
.price__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 50px;
    padding: 20px;
    min-height: 200px;
    background: var(--color-secondary);
    border-radius: 35px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}
.price__card-title {
    font-size: 18px;
}
.price__card-text {
    font-size: 14px;
    font-weight: 500;
}
.price__value {
    margin-top: auto;
    font-weight: 700;
    color: var(--color-accent);
    font-size: 24px;
}
@media screen and (min-width: 768px) {
    .price {
        padding: 70px 0;
    }
}
@media screen and (min-width: 1024px) {
    .price {
        padding: 80px 0;
    }
    .price__container {
    }
    .price__title {
        margin-bottom: 34px;
        font-size: 30px;
    }
    .price__card {
        gap: 12px;
        min-height: 220px;
    }
    .price__card-title {
        font-size: 22px;
    }
    .price__card-text {
        font-size: 16px;
    }
    .price__value {
        font-size: 28px;
    }
}
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-accent);
    background-color: var(--bg-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.swiper-button-next {
    right: 2px;
}
.swiper-button-prev {
    left: 2px;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: 700;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;

    background: var(--bg-secondary);
    opacity: 1;
    outline: 2px solid var(--color-primary);
    border: none;
}

.swiper-pagination-bullet-active {
    background: var(--color-accent);
    opacity: 1;
}
/**
  |============================
  | cta-final
  |============================
*/
.cta-final {
    padding: 70px 0;
}
.cta-final__container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}
.cta-final__title {
    font-size: 26px;
    font-weight: 700;
}
.cta-final__accent {
    color: var(--color-accent);
}
.cta-final__text {
    font-size: 16px;
    font-weight: 500;
}
.cta-final__button {
    max-width: 160px;
    background-color: var(--bg-accent);
    color: var(--color-secondary);
}
@media (min-width: 768px) {
    .cta-final {
        padding: 70px 0;
    }
    .cta-final__title {
        font-size: 32px;
    }
}
@media (min-width: 1024px) {
    .cta-final {
        padding: 80px 0;
    }
    .cta-final__title {
        font-size: 38px;
    }
}

/**
  |============================
  | faq
  |============================
*/
.faq {
    background-color: var(--bg-secondary);
    padding: 70px 0;
}
.faq__container {
}
.faq__title {
    margin-bottom: 22px;
    font-size: 24px;
    font-weight: 700;
}
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq__answer {
    margin-top: 4px;
    margin-left: 10px;
}
.faq__question {
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    font-size: 18px;
    color: var(--color-accent);
}

.faq__question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -7px;
    font-size: 28px;
}

details[open] .faq__question::after {
    content: "−";
}
.faq__question::-webkit-details-marker {
    display: none;
}
@media (min-width: 768px) {
    .faq {
        padding: 70px 0;
    }
    .faq__title {
        font-size: 32px;
    }
    .faq__question {
        font-size: 22px;
    }
    .faq__question::after {
        top: -5px;
        font-size: 30px;
    }
}
@media (min-width: 1024px) {
    .faq {
        padding: 80px 0;
    }
}
/**
  |============================
  | aside
  |============================
*/

.cta {
    z-index: 10;
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0; opacity: 0;
  transform: translateY(20px);
  transition: 0.5s;
  pointer-events: none;
}

.cta.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cta__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    padding-bottom: 6px;
    width: calc(100% - 10px);

    border-radius: 35px;
    /* стекло */
    background: rgba(121, 192, 1, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    /* лёгкая “светящаяся” граница */
    border: 1px solid rgba(121, 192, 1, 0.8);
    color: var(--color-secondary);
}
.container {
}
.cta__text {
    font-size: 18px;
    font-weight: 700;
}
.cta__button {
    font-size: 16px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

@media screen and (min-width: 768px) {
    .cta__text {
        font-size: 28px;
    }
    .cta__button {
        font-size: 22px;
    }
}
@media screen and (min-width: 1024px) {
    .cta__text {
        font-size: 38px;
    }
}

/**
  |============================
  | footer
  |============================
*/

.footer {
    /* background-color: var(--bg-secondary); */
    padding: 40px 0;
    padding-bottom: 80px;
}
.footer__container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.container {
}
.footer__top {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}
.footer__column {
    text-align: center;
}
.footer__logo {
    display: block;
    width: 170px;
}
.footer__social {
}
.footer__title {
    margin-bottom: 2px;
}
.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.2s ease;
}
.footer__social-link > img {
    width: 32px;
}
.footer__social-link:hover {
    transform: scale(1.1);
}
.footer__contacts {
}
.footer__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 18px;
    font-weight: 500;

    transition: color 0.2s ease;
}
.footer__phone + .footer__phone {
    margin-top: 6px;
}
.footer__phone > img {
    width: 24px;
}
.footer__phone:hover {
    color: var(--color-accent);
}
.footer__schedule {
    font-size: 18px;
    font-weight: 500;
}
.footer__text {
}
.footer__bottom {
}
.footer__copyright {
    text-align: center;
    font-size: 14px;
}
@media screen and (min-width: 768px) {
    .footer {
        padding: 70px 0;
    }
}
@media screen and (min-width: 1024px) {
    .footer {
        padding: 80px 0;
        padding-bottom: 90px;
    }
    .footer__top {
        align-items: start;
        flex-direction: row;
        justify-content: space-between;
    }
}
/**
  |============================
  | modal
  |============================
*/
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

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

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 250ms ease,
        visibility 250ms ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);

    opacity: 0;
    transition: opacity 250ms ease;
}

.modal.active .modal__overlay {
    opacity: 1;
}

.modal__content {
    position: relative;
    max-width: 320px;
    margin-top: 100px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    z-index: 2;

    transform: translateY(20px) scale(0.95);
    opacity: 0;

    transition:
        transform 250ms ease,
        opacity 250ms ease;
}

.modal.active .modal__content {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.modal__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.modal__close {
    position: absolute;
    top: -7px;
    right: 5px;
    font-size: 34px;
    background: none;
    border: none;
    cursor: pointer;
}
@media screen and (min-width: 768px) {
    .modal__content {
        max-width: 410px;
    }
    .modal__title {
        font-size: 22px;
        margin-left: 8px;
    }
}
.modal__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal__input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
.modal__submit {
    padding: 6px;
    border-radius: 35px;
    background-color: var(--bg-accent);
    color: var(--color-secondary);
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.modal__field {
    display: flex;
    flex-direction: column;
}

.modal__error {
    font-size: 12px;
    color: red;
    /* height: 14px; */
    margin-top: 2px;
}

.modal__input.error {
    border: 1px solid red;
}

.modal__input.success {
    border: 1px solid #2e7d32;
}
/**
  |============================
  | scroll
  |============================
*/

.scroll-top {
    position: fixed;
    bottom: 80px;
    right: 14px;

    width: 45px;
    height: 45px;

    border-radius: 39%;
    border: none;

    background-color: rgba(121, 192, 1, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    border: 1px solid rgba(121, 192, 1, 0.8);

    color: var(--color-secondary);
    font-size: 20px;

    cursor: pointer;
    z-index: 999;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition: all 250ms ease;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--bg-primary);
    color: var(--color-primary);
}

body.modal-open .scroll-top {
    opacity: 0;
    pointer-events: none;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 20;
}

.popup.active {
    opacity: 1;
    pointer-events: all;
}

.popup__content {
    text-align: center;
    max-width: 320px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
}

@media screen and (min-width:768px) {
    .popup__content {
    text-align: center;
    max-width: 400px;
}
}
.popup.success .popup__content {
    border-left: 6px solid var(--bg-accent);
}

.popup.error .popup__content {
    border-left: 5px solid red;
}
