:root {
    --light-yellow: #FDFFDA;
    --primary: #1C199A;
    --maize: #FEEB71;
    --misty-rose: #FADBE3;
    --citron: #C8C341;

    --font-default-size: 18px;
    --font-size-sm: 14px;
    --font-h1-size: 90px;
    --font-h2-size: 40px;
    --font-h5-size: 20px;

    --font-old-standard: "Old Standard TT", serif;

    --spacing-default: 50px;

    @media screen and (max-width: 768px) {
        --font-default-size: 16px;
        --font-h1-size: 44px;
        --font-h2-size: 28px;
        --font-h5-size: 18px;
        --spacing-default: 20px;
    }
}

*, body {
    font-family: "Roboto Flex", sans-serif;
    font-size: var(--font-default-size);
    line-height: 1.5;
    box-sizing: border-box;
}

body {
    background: var(--light-yellow);
    color: var(--primary);
}

.overflow-hidden {
    overflow: hidden;
}

h1, h2, h3, h4, h5 {
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: var(--font-h1-size);
}

h2, h3 {
    font-size: var(--font-h2-size);
}

h4, h5 {
    font-size: var(--font-h5-size);
}

input {
    font-size: var(--font-default-size);
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #FDFFDA7F;
    background: transparent;
    color: var(--light-yellow);

    width: 100%;

    &:focus {
        outline: none;
    }
}

.wrapper {
    max-width: 1600px;
    margin: 0 auto;
}

.button {
    display: inline-block;
    border-radius: var(--spacing-default);
    padding: 16px 32px;
    border: 0;
    text-decoration: none;
    cursor: pointer;

    @media screen and (max-width: 768px) {
        padding: 12px 24px;
        border-radius: 48px;
    }
}

.button--primary {
    background: var(--primary);
    color: var(--light-yellow);
}

.button--secondary {
    background: var(--light-yellow);
    color: var(--primary);
}

.button--misty-rose {
    background: var(--misty-rose);
    color: var(--primary);
}

.section {
    margin: calc(var(--spacing-default) * 1.6) var(--spacing-default);
}

.section__title {
    font-family: var(--font-old-standard);
    font-size: var(--font-h2-size);
    font-weight: 400;
    font-style: italic;
    max-width: 400px;

    @media screen and (max-width: 768px) {
        text-align: center;
    }
}

.section--titled {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-default);

    @media screen and (max-width: 768px) {
        flex-direction: column;
    }
}

.header {
    padding: 25px var(--spacing-default);
    display: flex;
    align-items: center;
    justify-content: space-between;

    @media screen and (max-width: 768px) {
        .button-form {
            display: none;
        }
    }
}

.navWrapper {
    .navWrapper__mobileHeader {
        display: none;
    }

    &.active {
        display: flex;
        flex-direction: column;

        position: fixed;
        top: 0;
        left: 0;
        z-index: 100;

        width: 100vw;
        height: 100vh;

        background: var(--primary);

        .navWrapper__mobileHeader {
            display: flex;
            padding: var(--spacing-default);
            align-items: center;
            justify-content: space-between;
            margin-right: 48px;
        }

        .nav {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-grow: 1;
        }

        .link {
            color: var(--light-yellow);
            font-size: 44px;
            font-family: var(--font-old-standard);
            font-style: italic;
        }

        svg {
            display: block;
        }
    }


    .nav {
        @media screen and (max-width: 768px) {
            display: none;
        }
    }
}

.nav {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-default);

    a {
        text-decoration: none;
        color: var(--primary);
    }
}

.burger {
    font-size: 30px;
    padding: 10px;
    background: none;
    display: none;

    gap: 6px;
    width: 40px;
    z-index: 101;
    cursor: pointer;

    span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary);
        transition: all 0.3s ease;
    }

    &.active {
        span {
            background: var(--light-yellow);
            &:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
            &:nth-child(2) { opacity: 0; }
            &:nth-child(3) { transform: rotate(-45deg) translate(8px, -8px); }
        }
    }

    @media screen and (max-width: 768px) {
        display: flex;
        flex-direction: column;
    }
}

.hero {
    background: var(--primary);
    border-radius: 50px;
    margin: 0 var(--spacing-default);
    color: var(--light-yellow);
    padding: 80px 180px;

    h1 {
        font-family: var(--font-old-standard);
        font-style: italic;
        font-size: var(--font-h1-size);
        text-align: center;
        font-weight: 400;
    }

    p {
        text-align: center;
        max-width: 440px;
        margin: 60px auto 0;
    }

    @media screen and (max-width: 768px) {
        padding: 30px 12px;

        p {
            margin-top: 16px;
        }
    }
}

.stats {
    margin: 12px var(--spacing-default);
    gap: 12px;
}

.stats__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stats__item {
    color: var(--primary);
    border-radius: 30px;
    padding: 40px 25px;
    flex: 1;

    h5 {
        margin-bottom: 10px;
    }

    p {
        opacity: 0.6;
    }

    &:nth-child(1) { background: #FEEB71; }
    &:nth-child(2) { background: #FADBE3;}
    &:nth-child(3) { background: #C8C341;}
}

.call-to-action {
    gap: calc(var(--spacing-default) * 2);
}

.call-to-action__content {
    @media screen and (max-width: 768px) {
        order: 1;
    }
}

.call-to-action__content h2 {
    font-size: var(--font-h2-size);
    font-weight: 500;
    margin-bottom: 40px;
}

.my-advantages {
    display: flex;
    justify-content: space-between;
    gap: 40px;

    @media screen and (max-width: 768px) {
        flex-direction: column;
    }
}

.option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-default);
    padding-bottom: var(--spacing-default);
    border-bottom: 1px solid var(--primary);
    gap: 10px;
    flex-basis: auto;

    &:nth-child(1) .number, &:nth-child(4) .number { background-color: var(--primary); color: var(--light-yellow); }
    &:nth-child(2) .number { background-color: var(--citron); }
    &:nth-child(3) .number { background-color: var(--misty-rose); }
    &:nth-child(5) .number { background-color: var(--maize) }

    @media screen and (max-width: 768px) {
        &:last-child {
            border: 0;
        }
    }

    h5 {
        flex-basis: 180px;
    }

    p {
        flex-basis: 240px;
    }

    @media screen and (max-width: 768px) {
        flex-direction: column;
        align-items: center;
        text-align: center;

        h5, p {
            flex-basis: auto;
        }
    }
}

.number {
    font-size: 20px;
    font-weight: 500;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.about {
    background: var(--primary);
    padding: 30px var(--spacing-default);
    color: var(--light-yellow);
}

.about__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;

    .text {
        display: flex;
        gap: calc(var(--spacing-default) * 0.8);
    }

    @media screen and (max-width: 768px) {
        flex-direction: column;
        align-items: center;
    }
}

.about__content {
    margin-top: var(--spacing-default);
    display: flex;
    justify-content: space-between;
    gap: calc(var(--spacing-default) * 2);
    flex-basis: 50%;
    text-align: justify;

    .column {
        flex-basis: 50%;
    }

    .button {
        margin-top: var(--spacing-default);
    }

    @media screen and (max-width: 768px) {
        flex-direction: column;
        align-items: center;
    }
}

.tariffs {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-default);

    .price {
        margin-top: calc(var(--spacing-default) * 0.75);
    }

    .button {
        margin-top: var(--spacing-default);
    }

    @media screen and (max-width: 768px) {
        flex-direction: column;
        align-items: center;
    }
}

.tariffs__item {
    border-radius: calc(var(--spacing-default) * 1.2);
    max-width: 328px;
    padding: var(--spacing-default);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    &:first-child {
        background: var(--primary);
        color: var(--light-yellow);
    }

    &:last-child {
        background: var(--maize);
        color: var(--primary);
    }

    @media screen and (max-width: 768px) {
        max-width: 420px;
        width: 100%;
    }
}

.tariffs__advantages {
    margin-top: calc(var(--spacing-default) * 0.6);
}

.tariffAdvantages__item {
    margin-bottom: 16px;
    display: flex;
    gap: 8px;

    svg {
        flex-shrink: 0;
        margin-top: 6px;
    }
}

.testimonials {
    display: flex;
    justify-content: space-between;
    gap: calc(var(--spacing-default) * 0.5);
    margin-top: var(--spacing-default);

    @media screen and (max-width: 768px) {
        flex-direction: column;
        align-items: center;
    }
}

.testimonials__item {
    background: var(--misty-rose);
    border-radius: calc(var(--spacing-default) * 0.6);
    padding: var(--spacing-default);
}

.testimonial__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: calc(var(--spacing-default) * 0.5);
}

.testimonials__img {
    border-radius: 100%;
}

.testimonial__author {
    font-size: var(--font-h5-size);
    font-weight: 500;
}

.testimonial__date {
    opacity: 0.5;
    font-size: var(--font-size-sm);
}

.testimonials__linkWrapper {
    text-align: right;

    @media screen and (max-width: 768px) {
        text-align: center;
    }
}

.testimonialLink {
    display: block;
    margin-top: var(--spacing-default);
    margin-left: auto;
    color: var(--primary);
    text-underline-offset: 10px;

    &:hover {
        text-decoration: underline;
    }
}

.footer {
    margin-top: calc(var(--spacing-default) * 5);
    background: var(--maize);

    border-radius: calc(var(--spacing-default) * 1.5) calc(var(--spacing-default) * 1.5) 0 0;
    padding: var(--spacing-default);
    position: relative;
}

.formWrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-default);
    margin-top: calc(var(--spacing-default) * (-3));

    @media screen and (max-width: 768px) {
        flex-direction: column;
        align-items: center;
    }
}

.form {
    background: var(--primary);
    padding: var(--spacing-default);
    color: var(--light-yellow);
    border-radius: calc(var(--spacing-default) * 0.8);

    form {
        display: flex;
        gap: calc(var(--spacing-default) * 0.5);

        button {
            padding: 8px 32px;
        }
    }

    @media screen and (max-width: 768px) {
        width: 100%;

        form {
            flex-direction: column;
            align-items: center;
        }

        .button {
            width: 100%;
            margin-top: var(--spacing-default);
        }
    }
}

.form__title {
    font-family: var(--font-old-standard);
    font-style: italic;
    font-weight: 400;
    margin-bottom: calc(var(--spacing-default) * 0.6);
}

.footer__mascot {
    right: var(--spacing-default);
    margin-top: calc(var(--spacing-default) * (-2));
}


.contact {
    display: flex;
    gap: calc(var(--spacing-default) * 2);
    margin-top: calc(var(--spacing-default) * (-2));

    @media screen and (max-width: 768px) {
        flex-direction: column;
        align-items: center;
        margin-top: var(--spacing-default);
    }

    .nav {
        display: flex;
    }

    .social {
        display: flex;
        gap: 20px;
        margin-top: calc(var(--spacing-default) * 0.5);

        @media screen and (max-width: 768px) {
            justify-content: center;
            margin-top: var(--spacing-default);
        }
    }

    .social_item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--primary);
        border-radius: 50%;

        cursor: pointer;
    }
}

.copyright {
    margin-top: var(--spacing-default);
    color: var(--primary);
    opacity: 0.5;
    font-size: var(--font-size-sm);

    @media screen and (max-width: 768px) {
        text-align: center;
    }
}
