:root {
    --bg-color: #f7f7fe;
    --main-text-color: #6e728e;
    --main-text-color-active: #fff;
    --box-bg-color: #fff;
    --box-bg-color-active: #696edd;
    --main-btn-hover: #6d72de;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 700;
    src:url("../fonts/montserrat-v23-latin-700.woff2") format("woff2"), 
         url("../fonts/montserrat-v23-latin-700.woff") format("woff");
    font-display: swap;
  }

  html {
    height: 100%;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

*:focus {
    outline: 3px dashed var(--box-bg-color-active);
    outline-offset: 2px;
}

.main-button--active:focus {
    outline: 3px dashed var(--box-bg-color)
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
  }

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-color);
    background-image: url(../img/right.png), url(../img/left.png);
    background-position: right top, left bottom;
    background-repeat: no-repeat;
    font-family: "Montserrat", "Arial", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    line-height: 28px;
    color: var(--main-text-color);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    display: inline-block;
    text-decoration: none;
}

h2, h3 {
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1100px;
    padding-left: 25px;
    padding-right: 25px;
    margin-left: auto;
    margin-right: auto;
}

/* PRICING */
.pricing {
    background-repeat: no-repeat;
    position: relative;
    padding: 71px 0 103px;
}

.pricing__header {
    text-align: center;
    font-size: 32px;
    line-height: 39px;
    margin-bottom: 40px;
}

.form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 65px;
}

.form__controll {
    position: relative;
    width: 56px;
    height: 32px;
    background-image: linear-gradient(135deg, #A2A7F0 0%, #696EDD 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 4px;
    margin-right: 24px;
    margin-left: 24px;
}

.form__controll:hover {
    background-image: none;
    background-color: #979797;
}

.form__controller {
    margin-left: 24px;
    width: 24px;
    height: 24px;
    background-color: var(--box-bg-color);
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.form__control-annually,
.form__control-monthly {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.form__input-annually:checked ~ .form__controll .form__control-monthly,
.form__input-monthly:checked ~ .form__controll .form__control-annually {
    z-index: 5;
}


.form__input-annually:checked ~ .form__controll .form__controller {
    transform: translateX(-100%);
}

.form__control-annually:checked .form__controller {
    transform: translateX(-100%);
}

.form__label {
    font-size: 15px;
    line-height: 28px;
    text-align: right;
    color: rgb(110, 114, 142, 0.5);
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: color 0.4s ease;
}

.form__label:hover {
    color: #6e728e;
}

/* PRICING__BOXES */
.pricing__boxes {
    display: flex;
    align-items: center;
}

.pricing__box {
    width: 350px;
    padding: 31px;
    border-radius: 10px 0px 0px 10px;
    background-color: var(--box-bg-color);
    box-shadow: 0px 20px 40px rgba(212, 210, 244, 0.5);
}

.pricing__box--active {
    border-radius: 10px;
    padding: 55px 31px;
    color: var(--main-text-color-active);
    background-image: linear-gradient(135.06deg, #A2A7F0 -0.05%, #696EDD 100.05%);
}

.pricing__box-third {
    border-radius: 0px 10px 10px 0px;
}

.pricing__box-heading {
    font-size: 18px;
    text-align: center;
    margin-bottom: 24px;
}

.pricing__box-price {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(110, 114, 142, 0.25);
}

.pricing__box-price--active {
    border-bottom: 1px solid rgb(255, 255, 255, 0.25);
}

.pricing__box-price-mark {
    font-size: 40px;
    line-height: 49px;
    text-align: center;
    letter-spacing: -1.2px;
    color: #4A4D60;
    margin-right: 8px;
}

.pricing__box-price-mark--active {
    color: var(--main-text-color-active);
}

.pricing__box-price-number {
    font-size: 72px;
    line-height: 71px;
    letter-spacing: -2.16px;
    color: #4A4D60;
}

.pricing__box-price-number--active {
    color: var(--main-text-color-active);
}

.pricing__box-components {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 32px;
}

.pricing__box-component {
    padding: 12px 0;
    border-bottom: 1px solid rgba(110, 114, 142, 0.25);
}

.pricing__box-component--active {
    border-bottom: 1px solid rgb(255, 255, 255, 0.25);
}

.main-button {
    width: 100%;
    padding: 14px;
    background-image: linear-gradient(135deg, #A2A7F0 0%, #696EDD 100%);
    color: var(--main-text-color-active);
    border: 1px solid transparent;
    border-radius: 6px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: background-color 0.5s ease,
    color 0.5s ease,
    background-image 0.5s ease,
    border 0.5s ease;
}

.main-button:hover {
    background-image: none;
    border: 1px solid var(--main-btn-hover);
    background-color: var(--box-bg-color);
    color: var(--main-btn-hover);
}

.main-button--active {
    background-image: none;
    background-color: var(--box-bg-color);
    color: #6d72de;
    border: 1px solid transparent;
}

.main-button--active:hover {
    background-color: transparent;
    color: var(--box-bg-color);
    border: 1px solid var(--box-bg-color);
}

@media only screen and (max-width:1100px) {
    .pricing__boxes {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: -24px;
    }

    .pricing__box {
        width: 100%;
        margin-bottom: 24px;
        border-radius: 10px;
    }

    .pricing__box--active {
        padding: 31px;
    }
}

@media only screen and (max-width:450px) {
    .pricing {
        padding: 50px 0;
    }

    .pricing__header {
        margin-bottom: 30px;
    }

    .form {
        margin-bottom: 30px;
    }

    .pricing__box-price-number {
        font-size: 56px;
    }
}
