html {
    scroll-behavior: smooth;
}

/* Body */
body {
    margin: 0 0;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #111827;
    font-weight: 400;

    transition: .7s ease;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1536px;
}

@media (max-width: 1536px) {
    .container {
        max-width: 1024px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 640px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    margin: 0 0;
}

p {
    margin: 0 0;
}

/* Header */
.header__logo span {
    font-size: 24px;
    line-height: 32px;
    font-weight: 750;
}

@media (max-width: 768px) {
    .header__logo span {
        font-size: 18px;
        line-height: 28px;
    }
}

@media (max-width: 768px) {
    .header__logo span {
        font-size: 18px;
        line-height: 28px;
    }
}

.header__description {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .header__description {
        width: calc(100% - 24px);
        margin-right: 16px;
        margin-bottom: 0;
    }
    .header .container {
        display: grid;
        grid-template-columns: calc(100% - 24px) 24px;
        justify-items: center;
        align-items: center;
        row-gap: 12px;
    }
    .header .chapters {
        display: none;
        
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 2;

        position: relative;
    }

    .header .chapters::before {
        position: absolute;
        content: "";
        height: 2px;
        width: 100%;
        background-color: #A78BFA;
        top: -12px;
    }

    .header .chapters::after {
        position: absolute;
        content: "";
        height: 2px;
        width: 100%;
        background-color: #A78BFA;
        bottom: -12px;
    }

    .header__burger__about__info {
        display: none;
        
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 3;
    }
}

.header__logo {
    display: flex;
    align-items: center;
}

.company__name {
    display: flex;
    align-items: center;
}

.header {
    padding: 24px 0;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .header {
        padding: 8px 0;
    }
}

.header__about__info {
    margin-right: 12px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .header__about__us .header__about__info {
        display: none;
    }
    .header__about__phone .header__calls-free {
        display: none;
    }
}

.header__about__info {
    display: flex;
    flex-direction: column;
    text-align: right;
    position: relative;
}

.header__about__us {
    display: flex;
    align-items: center;
}

.header__about__phone .header__phone__number {
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .header__about__us .header__about__phone .header__phone__number {
        font-size: 20px;
        line-height: 28px;
    }
    .header__about__phone .header__phone__number {
        margin-bottom: 0;
    }
}

.header__about__phone p {
    font-size: 24px;
    line-height: 32px;
    font-weight: 300;
}

@media (max-width: 1536px) {
    .header__about__phone .header__phone__number {
        font-size: 30px;
        line-height: 36px;
        font-weight: 600;
    }
    .header__about__phone p {
        font-size: 20px;
        line-height: 28px;
    }
}

.header__about__phone {
    margin-left: 12px;
}

.header__about__info:after {
    content: "";
    width: 1px;
    height: 100%;
    background: #A78BFA;
    right: -11.5px;
    bottom: 0;
    position: absolute;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav__link {
    margin-right: 24px;
    text-decoration: none;
    color: #111827;
    font-weight: 700;

    transform: color .2s linear;
}

.nav__link__last {
    margin-right: 0;
}

.nav__link-active {
    color: #8B5CF6;
    text-decoration-line: underline;
    text-decoration-style: dashed;
    text-decoration-color: #8B5CF6;
    text-underline-offset: 4px;
}

.nav__link:hover {
    color: #8B5CF6;
}

.chapters__button {
    background-color: #8B5CF6;
    border-color: #8B5CF6;
    color: #F9FAFB;
    width: 196px;
    height: 44px;
    border-radius: 4px;
    
    transition: 0.2s;
}

.chapters__button a {
    text-decoration: none;
    color: #F9FAFB;
}

.chapters__button:hover {
    color: #8B5CF6;
    background-color: #F9FAFB;
    border-color: #A78BFA;
}

.chapters__button:hover a {
    color: #8B5CF6;
}

@media (max-width: 768px) {
    .chapters__button {
        margin-left: 24px;
    }
}

.chapters {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .chapters {
        margin: 12px 16.75px;
    }
}

.company__name {
    cursor: default;
}

/* Burger */
#menu-toggle {
    display: none;
}

.burger {
    display: none;
    width: 24px;
    height: 16px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
}

.burger span {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 2px;
    background-color: #A78BFA;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }
    #menu-toggle:checked ~ .chapters {
        display: flex;
    }
    #menu-toggle:checked ~ .header__burger__about__info {
        display: grid;
        align-items: center;
        justify-items: center;
        grid-template-columns: 1fr 1fr auto;
        gap: 24px;
        margin-right: 0;
        font-size: 14px;
        line-height: 20px;
        text-align: center;
    }
    #menu-toggle:checked ~ .header__burger__about__info::after {
        display: none;
    }
    .burger span {
        transition: .6s;
    }
    #menu-toggle:checked ~ .burger span {
        transition: .6s;
    }
    #menu-toggle:checked ~ .burger span:nth-child(1) {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }
    #menu-toggle:checked ~ .burger span:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle:checked ~ .burger span:nth-child(3) {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}

.header__burger__about__info {
    display: none;
}

/* Main */
.main {
    background-color: #E5E7EB;
    display: flex;
    justify-content: center;
    padding: 72px 0;

    transition: 0.7s ease-in-out;
}


.main .container {
    display: flex;
    flex-direction: column;
    gap: 72px;
}

@media (max-width: 1536px) {
    .main {
        padding: 48px 0;
    }
    .main .container {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 40px 0;
    }
    .main .container {
        gap: 48px;
    }
}

.main__calculation {
    display: flex;
    gap: 24px;
}

@media (max-width: 1536px) {
    .main__calculation {
        flex-direction: column;
        gap: 40px;
    }
}

.main__calculation-left, .main__calculation-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1536px) {
    .main__calculation-left {
        flex-direction: row;
        gap: 16px;
    }
}

@media (max-width: 1536px) {
    .calculation__text-left {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .main__calculation-left {
        flex-direction: column;
    }
}

.calculation__h3-left {
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 12px;
}

@media (max-width: 1536px) {
    .calculation__h3-left {
        font-size: 30px;
        line-height: 36px;
    }
}

.calculation__p-left {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 16px;
}

@media (max-width: 1536px) {
    .calculation__p-left {
        margin-bottom: 0;
    }
}

.calculation__img-left {
    border-radius: 16px;
    width: 756px;
    height: 352px;
}

@media (max-width: 1536px) {
    .calculation__img-left {
        width: 505px;
        height: 232px;
        /* flex: 1; */
    }
}

@media (max-width: 768px) {
    .calculation__img-left {
        width: 640px;
        height: 350px;
    }
}

.main__calculation-right {
    background-color: #F9FAFB;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1536px) {
    .main__calculation-right {
        padding: 24px 0;
    }
}

.calculation__h3-right {
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 16px;
    font-weight: 650;
    white-space: nowrap;
}

.calculation__p-right {
    margin-bottom: 28px;
    text-align: center;
}

.calculation__text-right {
    width: min-content;
}

/* Form */
.form {
    width: 496px;
    margin-bottom: 28px;
}

@media (max-width: 1536px) {
    .form {
        width: 606px;
    }
}

@media (max-width: 768px) {
    .form {
        width: 569px;
    }
}

.form__input__item {
    padding: 12px 12px;
    box-sizing: border-box;
    height: 48px;
    border-width: 2px;
    border-radius: 4px;
    font-size: 16px;
    line-height: 24px;
    width: 100%;
}

.form__input-rest {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 24px;
}

.form__input__item-big {
    margin-bottom: 24px;
    width: 100%;
}

.form__input__item:focus {
    color: #111827;
}

.calculation__button {
    width: 496px;
    height: 44px;
    background-color: #8B5CF6;
    color: #F9FAFB;
    border-radius: 4px;
    border-color: #8B5CF6;
    display: grid;
    place-items: center;

    transition: .2s;
}

@media (max-width: 1536px) {
    .calculation__button {
        width: 606px;
    }
}

@media (max-width: 768px) {
    .calculation__button {
        width: 569px;
    }
}

.main__calculation-right .input__wrapper {
    position: relative;
}

/* .calculation__button:hover {
    color: #8B5CF6;
    background: #F9FAFB;
    border-color: #A78BFA;
} */

/* Advantages */
.advantages {
    display: flex;
    flex-direction: column;
}

.advantages__h4 {
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 24px;
    font-weight: 750;
    text-align: center;
}

.advantages__grid {
    width: 100%;
    display: grid;
    gap: 24px 24px;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1536px) {
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .advantages__grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

.advantages__grid__item {
    padding: 24px 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.advantage__item__h5 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 750;
    margin-bottom: 12px;
}

.advantage__item__p {
    font-size: 14px;
    line-height: 20px;
}

@media (max-width: 768px) {
    .advantages__grid__item {
        width: 372px;
        padding: 0 0;
    }
    .advantage__item__h5 {
        font-size: 20px;
        line-height: 28px;
    }
}

.advantage__item__desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advantages__grid__item svg {
    width: 136px;
    height: 136px;
}

@media (max-width: 768px) {
    .advantage__item__desc {
        height: 100%;
    }
    .advantages__grid__item svg {
        width: 109px;
        height: 109px;
    }
}

/* Warranties */
.warranties {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.warranties__h4 {
    font-size: 30px;
    line-height: 36px;
    font-weight: 750;
}

.warranties__p {
    margin: 12px 390px 24px;
    text-align: center;
}

@media (max-width: 1536px) {
    .warranties__p {
        margin: 12px 135px 24px;
    }
}

@media (max-width: 768px) {
    .warranties__p {
        margin-left: 0;
        margin-right: 0;
    }
}

.certificates {
    display: grid;
    width: 100%;
    gap: 24px 24px;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 36px;
}

@media (max-width: 1536px) {
    .certificates {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .certificates {
        grid-template-columns: 1fr;
    }
}

.certificate__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certificate__item__img {
    margin-bottom: 4px;
    width: 300px;
    height: 375px;
}

.certificate__item__p {
    font-size: 18px;
    line-height: 28px;
    font-weight: 750;
    text-align: center;
}

@media (max-width: 1536px) {
    .certificate__item__p {
        width: 396px;
    }
}

.warranties__button {
    width: 315px;
    height: 56px;
    border-radius: 12px;
}


.warranties__button:hover {
    background-color: #E5E7EB;
}

/* Reviews */
.reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reviews__h4 {
    font-size: 30px;
    line-height: 36px;
    font-weight: 750;
    margin-bottom: 32px;
    text-align: center;
}

/* Slider */
.overflow {
    width: 1276px;
    overflow: hidden;
}

.slider__track {
    width: 400%;
    display: flex;
    transition: transform 1s ease;
}

.slider {
    width: 100%;
    /* overflow: hidden; */
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

@media (max-width: 1536px) {
    .overflow {
        width: 816px;
    }
}

@media (max-width: 768px) {
    .overflow {
        width: 442px;
    }
}

.slide {
    padding: 43px 32px;
    display: flex;
    flex-direction: column;
    background-color: #F9FAFB;
    margin-right: 24px;
    border-radius: 16px;
    width: 626px;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
}

@media (max-width: 1536px) {
    .slide {
        width: 396px;
        padding: 16px 16px;
    }
}

@media (max-width: 768px) {
    .slide {
        width: 442px;
        margin-right: 0px;
    }
}

.last__slide {
    margin-right: 0;
}

.slide__review {
    height: 224px;
    margin-bottom: 30px;
    font-size: 24px;
    line-height: 32px;
    font-weight: 650;
}

@media (max-width: 1536px) {
    .slide__review {
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 24px;
        height: 196px;
    }
}

.slide__reviewer {
    font-size: 24px;
    line-height: 32px;
    color: #6B7280;
    font-weight: 300;
    z-index: 1;
}

@media (max-width: 1536px) {
    .slide__reviewer {
        font-size: 16px;
        line-height: 24px;
    }
}

/* input[type="radio"] {
    display: none;
} */

.slide svg {
    position: absolute;
    z-index: 0;
    bottom: 40px;
    right: 18px;
    pointer-events: none;
}

@media (max-width: 1536px) {
    .slide svg {
        right: 23px;
        bottom: 3px;
    }
}

/* .arrows label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: 5px solid #8B5CF6;
    color: #8B5CF6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    background: transparent;
    box-sizing: border-box;
} */

/* Arrows */
/* .arrows .prev::before {
    font-size: 42px;
    content: "←";
}

.arrows .prev {
    left: -107px;
}

@media (max-width: 1536px) {
    .arrows .prev {
        left: -95px;
    }
}

.arrows .next::before {
    font-size: 42px;
    content: "→";
}

.arrows .next {
    right: -107px;
}

@media (max-width: 1536px) {
    .arrows .next {
        right: -95px;
    }
} */

/*w#s1:checked ~ .overflow .slider__track {
    transform: translateX(0);
}

#s2:checked ~ .overflow .slider__track {
    transform: translateX(-650px);
}

#s3:checked ~ .overflow .slider__track {
    transform: translateX(-1300px);
}

#s4:checked ~ .overflow .slider__track {
    transform: translateX(-1950px);
}

#s5:checked ~ .overflow .slider__track {
    transform: translateX(-2600px);
}

@media (max-width: 1536px) {
    #s1:checked ~ .overflow .slider__track {
        transform: translateX(0);
    }
    
    #s2:checked ~ .overflow .slider__track {
        transform: translateX(-420px);
    }
    
    #s3:checked ~ .overflow .slider__track {
        transform: translateX(-840px);
    }
    
    #s4:checked ~ .overflow .slider__track {
        transform: translateX(-1260px);
    }
    
    #s5:checked ~ .overflow .slider__track {
        transform: translateX(-1680px);
    }
}

@media (max-width: 768px) {
    #s1:checked ~ .overflow .slider__track {
        transform: translateX(0);
    }
    
    #s2:checked ~ .overflow .slider__track {
        transform: translateX(-442px);
    }
    
    #s3:checked ~ .overflow .slider__track {
        transform: translateX(-884px);
    }
    
    #s4:checked ~ .overflow .slider__track {
        transform: translateX(-1326px);
    }
    
    #s5:checked ~ .overflow .slider__track {
        transform: translateX(-1768px);
    }
}

.arrows label {
    display: none;
}

#s1:checked ~ .arrows label:nth-child(1),
#s2:checked ~ .arrows label:nth-child(2),
#s3:checked ~ .arrows label:nth-child(3),
#s4:checked ~ .arrows label:nth-child(4),
#s5:checked ~ .arrows label:nth-child(5) {
    display: flex;
} */

.reviews .slider__button {
    width: 50px;
    height: 50px;
    border: 5px solid #8B5CF6;
    color: #8B5CF6;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    background: transparent;
    box-sizing: border-box;
}

/* Questions */
.questions {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 0;
    background-color: #F9FAFB;
    border-radius: 16px;
}

.questions__h3 {
    font-size: 30px;
    line-height: 36px;
    font-weight: 750;
    text-align: center;
}

.questions .form__input__item-big {
    margin-bottom: 0;
    margin-top: 24px;
    height: 150px;
}

.questions .calculation__button {
    transition: .2s;
}

.questions .calculation__button:hover {
    color: #8B5CF6;
    background-color: #F9FAFB;
}

.questions .form {
    margin: 32px 0 20px;
}

.questions .form .textarea {
    overflow: hidden;
}

@media (max-width: 768px) {
    .questions .calculation__button {
        width: 497px;
    }
}

@media (max-width: 768px) {
    .questions .form {
        width: 497px;
    }
}

/* Footer */
.footer {
    background-color: #111827;
    color: #F9FAFB;
    display: flex;
    justify-content: center;
    padding: 51px 0;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0;
    }
}

@media (max-width: 1440px) {
    .footer .container {
        max-width: 1152px;
    }
}

@media (max-width: 768px) {
    .footer .container {
        max-width: 399px;
    }
}

.footer .nav .nav__link {
    color: #F9FAFB;
}

.footer .header__description {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer .header__description {
        display: flex;
        flex-direction: column;
        flex-direction: column-reverse;
        margin-right: 0;
        align-items: center;
        justify-items: center;
        gap: 18px;
        width: 100%;
    }
}

.footer .header__about__phone {
    margin-left: 0;
}

@media (max-width: 768px) {
    .footer .company__name span {
        font-size: 24px;
        line-height: 32px;
    }
    .footer .header__about__phone .header__phone__number {
        font-size: 30px;
        line-height: 36px;
    }
    .footer .header__about__phone p {
        font-size: 20px;
        line-height: 28px;
    }
}

@media (max-width: 768px) {
    .footer .chapters {
        margin: 0 0;
    }
}

/* Theme */
#theme__mode {
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 50px;
    right: 50px;
    font-size: 24px;
    border-radius: 50%;
    background-color: white;
    border-width: 0px;
    cursor: pointer;

    transition: .5s ease;
}

/* FAQ */
.faq {
    display: grid;
    gap: 8px;

    color: #111827;
}

.faq__item {
    background-color: #d1d2d4;
    border-radius: 5px;
    transition: .5s;
}

.faq__item.faq__item__opened .faq__item__p {
    display: block;
}

.faq__wrapper {
    cursor: pointer;
    padding: 10px 30px;
    user-select: none;
}

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

.faq__open {
    font-size: 24px;
    line-height: 28px;
    text-align: center;
}

.faq__item__header {
    font-size: 24px;
    line-height: 28px;
    font-weight: 600;
}

.faq__item__p {
    display: none;
    font-size: 16px;
    line-height: 20px;
    font-weight: 450;
    margin: 0px 30px 5px;
}

/* Dark theme */
body.dark {
    background-color: #12151a;
    color: rgb(217, 211, 211);

    transition: .7s ease-in-out;
}

body.dark .main {
    background-color: #2b2d33;
    transition: .7s ease-in-out;
}

body.dark .main__calculation-right {
    color: #111827;
}

body.dark .slider {
    color: #111827;
}

body.dark .questions {
    color: #111827;
}

body.dark .nav__link {
    color: rgb(217, 211, 211);
}

body.dark .nav__link-active {
    color: #8B5CF6;
}

.footer .nav__link:hover, .header .nav__link:hover {
    color: #8B5CF6;
}

body.dark .warranties__button:hover {
    color: #8B5CF6;
    background-color: #F9FAFB;
}

/* Подсказки ввода */
.form_calculate .input__wrapper li:hover {
    background-color: #D3D3D3;
}

.form_calculate .input__wrapper li {
    transition: .2s;
    cursor: pointer;
}