/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
@-webkit-keyframes animate {
    0% {
        transform: scale(.5);
        opacity: 0
    }

    50% {
        opacity: 1
    }

    to {
        transform: scale(1.2);
        opacity: 0
    }
}

@keyframes animate {
    0% {
        transform: scale(.5);
        opacity: 0
    }

    50% {
        opacity: 1
    }

    to {
        transform: scale(1.2);
        opacity: 0
    }
}

@-webkit-keyframes shake {

    0%,
    to {
        transform: rotateZ(0deg);
        -ms-transform: rotateZ(0deg);
        -webkit-transform: rotateZ(0deg)
    }

    10% {
        transform: rotateZ(-30deg);
        -ms-transform: rotateZ(-30deg);
        -webkit-transform: rotateZ(-30deg)
    }

    20% {
        transform: rotateZ(15deg);
        -ms-transform: rotateZ(15deg);
        -webkit-transform: rotateZ(15deg)
    }

    30% {
        transform: rotateZ(-10deg);
        -ms-transform: rotateZ(-10deg);
        -webkit-transform: rotateZ(-10deg)
    }

    40% {
        transform: rotateZ(7.5deg);
        -ms-transform: rotateZ(7.5deg);
        -webkit-transform: rotateZ(7.5deg)
    }

    50% {
        transform: rotateZ(-6deg);
        -ms-transform: rotateZ(-6deg);
        -webkit-transform: rotateZ(-6deg)
    }

    60% {
        transform: rotateZ(5deg);
        -ms-transform: rotateZ(5deg);
        -webkit-transform: rotateZ(5deg)
    }

    70% {
        transform: rotateZ(-4.28571deg);
        -ms-transform: rotateZ(-4.28571deg);
        -webkit-transform: rotateZ(-4.28571deg)
    }

    80% {
        transform: rotateZ(3.75deg);
        -ms-transform: rotateZ(3.75deg);
        -webkit-transform: rotateZ(3.75deg)
    }

    90% {
        transform: rotateZ(-3.33333deg);
        -ms-transform: rotateZ(-3.33333deg);
        -webkit-transform: rotateZ(-3.33333deg)
    }
}

@keyframes shake {

    0%,
    to {
        transform: rotateZ(0deg);
        -ms-transform: rotateZ(0deg);
        -webkit-transform: rotateZ(0deg)
    }

    10% {
        transform: rotateZ(-30deg);
        -ms-transform: rotateZ(-30deg);
        -webkit-transform: rotateZ(-30deg)
    }

    20% {
        transform: rotateZ(15deg);
        -ms-transform: rotateZ(15deg);
        -webkit-transform: rotateZ(15deg)
    }

    30% {
        transform: rotateZ(-10deg);
        -ms-transform: rotateZ(-10deg);
        -webkit-transform: rotateZ(-10deg)
    }

    40% {
        transform: rotateZ(7.5deg);
        -ms-transform: rotateZ(7.5deg);
        -webkit-transform: rotateZ(7.5deg)
    }

    50% {
        transform: rotateZ(-6deg);
        -ms-transform: rotateZ(-6deg);
        -webkit-transform: rotateZ(-6deg)
    }

    60% {
        transform: rotateZ(5deg);
        -ms-transform: rotateZ(5deg);
        -webkit-transform: rotateZ(5deg)
    }

    70% {
        transform: rotateZ(-4.28571deg);
        -ms-transform: rotateZ(-4.28571deg);
        -webkit-transform: rotateZ(-4.28571deg)
    }

    80% {
        transform: rotateZ(3.75deg);
        -ms-transform: rotateZ(3.75deg);
        -webkit-transform: rotateZ(3.75deg)
    }

    90% {
        transform: rotateZ(-3.33333deg);
        -ms-transform: rotateZ(-3.33333deg);
        -webkit-transform: rotateZ(-3.33333deg)
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth
}

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

body {
    overflow-x: hidden;
    margin: 0;
    background: #fff;
    font-family: "Public Sans", sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    line-height: 140%;
    color: #000;
    min-width: 320px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

details,
main {
    display: block
}

h1 {
    font-size: 2em
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible
}

code,
kbd,
pre,
samp {
    font-family: monospace, monospace;
    font-size: 1em
}

a {
    background-color: transparent
}

abbr[title] {
    border-bottom: none;
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted
}

b,
strong {
    font-weight: bolder
}

small {
    font-size: 80%
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

img {
    border-style: none
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0
}

button,
input {
    overflow: visible
}

button,
select {
    text-transform: none
}

[type=button],
[type=reset],
[type=submit],
button {
    -webkit-appearance: button
}

[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner,
button::-moz-focus-inner {
    border-style: none;
    padding: 0
}

[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring,
button:-moz-focusring {
    outline: 1px dotted ButtonText
}

fieldset {
    padding: .35em .75em .625em
}

legend {
    color: inherit;
    display: table;
    max-width: 100%;
    white-space: normal
}

progress {
    vertical-align: baseline
}

textarea {
    overflow: auto
}

[type=checkbox],
[type=radio],
legend {
    box-sizing: border-box;
    padding: 0
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
    height: auto
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px
}

[type=search]::-webkit-search-decoration {
    -webkit-appearance: none
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
}

summary {
    display: list-item
}

[hidden],
template {
    display: none
}

.overflow {
    overflow: hidden
}

.center {
    max-width: 1344px;
    width: calc(100% - 30px);
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px
}

@media (max-width: 767px) {
    .center {
        padding-right: 8px;
        padding-left: 8px;
    }
}

:active,
:focus,
:hover {
    outline: 0;
    outline-offset: 0
}

h1,
p {
    margin: 0
}

.button {
    border-radius: 30px;
    display: inline-block;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    outline: none;
    border: none;
    text-decoration: none;
    flex: 0 0 auto;
    transition: background-color .2s linear, color .2s linear, box-shadow .2s linear;
}

.button:disabled {
    pointer-events: none;
    opacity: .6;
}

.button--white {
    background-color: #fff;
    color: var(--background);
}

.button--white:hover {
    background-color: hsla(0, 0%, 100%, .8);
}

.button--red {
    background-color: var(--background);
    color: #fff;
}

.button--red:hover {
    background-color: var(--background);
    box-shadow: 0 5px 15px 0 rgba(25, 103, 210, .4);
}

.button__content {
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
    white-space: nowrap;
    font-size: 18px;
    line-height: 25px;
    padding: 12px 32px 15px;
}

.section__title {
    font-size: 50px;
    line-height: 56px;
    margin: 0 0 30px;
}

.mt {
    margin-top: 86px;
}

.pt-70 {
    padding-top: 70px;
}

.pt-110 {
    padding-top: 110px;
}

@media (max-width: 767px) {
    .mt {
        margin-top: 40px;
    }

    .pt-110 {
        padding-top: 80px;
    }
}

.page__title {
    padding-top: 30px;
}

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    background: rgb(255 255 255);
}

.header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 90px;
    padding: 15px 25px;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 38px;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    width: 160px;
    height: 50px;
    text-decoration: none;
}

.header__logo-image {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
}

.header__logo-text {
    color: #111010;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 45px;
}

.header__work-time,
.header__communication {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #111010;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.header__work-time {
    min-width: 70px;
}

.header__communication {
    min-width: 155px;
}

.header__contact-link {
    color: #111010;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header__contact-link:hover {
    color: var(--background);
}

.header__mobile {
    display: none;
    align-items: center;
    gap: 20px;
}

.header__phone-link--mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
}

.header__phone-link--mobile svg {
    display: block;
    width: 23px;
    height: 23px;
}

.header__burger {
    display: flex;
    z-index: 9;
}

.header__burger-btn {
    position: relative;
    margin: 0;
    padding: 0;
    width: 28px;
    height: 20px;
    display: flex;
    align-items: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    background: 0 0;
}

.header__burger-lines {
    display: block;
    width: 15px;
    height: 3px;
    background: #000;
    border-radius: 10px;
    transition: all .4s;
}

.header__burger-lines::after,
.header__burger-lines::before {
    position: absolute;
    display: block;
    left: 0;
    height: 3px;
    background-color: #000;
    content: "";
    transition: all .4s;
}

.header__burger-lines::before {
    top: 0;
    width: 21px;
}

.header__burger-lines::after {
    bottom: 0;
    width: 28px;
}

.header__burger-btn:hover .header__burger-lines {
    width: 28px;
}

.header__burger-btn:hover .header__burger-lines::before {
    width: 15px;
}

.header__burger-btn:hover .header__burger-lines::after {
    width: 21px;
}

.header__burger.active .header__burger-lines {
    background-color: transparent;
}

.header__burger.active .header__burger-lines::before {
    top: 50%;
    transform: rotate(45deg);
    width: 28px;
}

.header__burger.active .header__burger-lines::after {
    bottom: auto;
    top: 50%;
    transform: rotate(-45deg);
    width: 28px;
}

.header__nav {
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
}

body.mobile-menu-open {
    overflow: hidden;
}

.header__nav.active {
    opacity: 1;
    visibility: visible;
}

.header__nav::before {
    display: block;
    width: calc(100% - 44px);
    height: 1px;
    margin: 0 auto;
    background: rgba(98, 112, 132, 0.2);
    content: "";
}

.header .nav__list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    margin: 0;
    padding: 20px 22px 25px;
    list-style: none;
}

.header .header__desknav .nav__list {
    flex-direction: row;
    align-items: center;
    padding: 0;
}

.header .nav__list>li {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: right;
}

.header .header__desknav .nav__list>li {
    width: auto;
}

.header .nav__list>li+li {
    margin-top: 15px;
}

.header .header__desknav .nav__list>li+li {
    margin: 0 0 0 30px;
}

.header .nav__list a {
    display: inline-block;
    width: fit-content;
    padding: 0 0 2px;
    color: #111010;
    border-bottom: 1px solid #000;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.15;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header .header__desknav .nav__list a {
    border-bottom: none;
    font-size: 18px;
}

.header .nav__list a:hover {
    color: var(--background);
}

.header__nav .nav__item {
    opacity: 0;
    transform: translateY(-12px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    transition-delay: 0s;
}

.header__nav.active .nav__item {
    opacity: 1;
    transform: translateY(0);

    transition-delay:
        calc(0.2s + var(--nav-item-index) * 0.1s);
}

/*
 * Поведение вложенного меню оставляем таким же,
 * как раньше было на мобильной версии.
 */
.header .nav__list li.dropdown>a {
    display: none;
}

.header .nav__submenu {
    position: static;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.header .nav__submenu>li {
    width: 100%;
    margin: 0;
    padding: 0;
    opacity: 1;
    list-style: none;
}

.header .nav__submenu>li+li {
    margin-top: 14px;
}

.header .nav__submenu a {
    padding: 0 0 4px;
    background: transparent;
}

.header .nav__caret {
    display: none;
}

@media (max-width: 1024px) {
    .header__desknav {
        display: none;
    }

    .header__mobile {
        display: flex;
    }
}

@media (max-width: 767px) {
    .header__top {
        gap: 15px;
        min-height: auto;
        padding: 15px 0;
    }

    /*
     * На мобильном скрываем время,
     * текстовый телефон и email.
     */
    .header__contacts {
        display: none;
    }

    .header__right {
        gap: 0;
    }

    .header__mobile {
        display: flex;
        align-items: center;
        gap: 20px;
        position: relative;
    }

    .header__mobile::before {
        content: '';
        width: 1.5px;
        height: calc(100% - 12px);
        position: absolute;
        top: 6px;
        bottom: 6px;
        right: 50%;
        background-color: #cfcfd5;
    }

    .header__phone-link--mobile {
        display: flex;
    }

    .header .nav__list {
        padding: 18px;
    }

    .header .nav__list a {
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .header__contacts {
        gap: 12px;
    }

    .header__work-time,
    .header__communication {
        font-size: 12px;
    }

    .header__communication {
        align-items: flex-end;
        text-align: right;
    }
}

.nav__switch {
    display: none;
    gap: 25px;
    align-items: center;
    font-size: 26px;
    margin-bottom: 50px;
}

@media (max-width:991px) {
    .nav__switch {
        display: flex;
    }
}

.nav__switch a {
    text-decoration: none;
    font-size: 16px;
    line-height: 18px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    color: #838383;
    cursor: pointer;
    padding: 11px 34px;
    border-radius: 5px;
}

.nav__switch a.active {
    background: #F7F7F7;
    color: #DA422F;
}

.banner {
    position: relative;
    width: 100%;
    min-height: 85vh;
    min-height: 85svh;
    margin: 0 auto;
    overflow: hidden;
    color: #fff;
    background-color: #111;
}

.banner__media {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    background-color: #111;
}

.banner__background-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.banner__video-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100vw, 177.7778vh);
    height: max(56.25vw, 100vh);
    min-width: 100%;
    min-height: 100%;
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.banner__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.42) 55%,
            rgba(0, 0, 0, 0.18) 100%
        );
}

.banner__container {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-height: 85vh;
    min-height: 85svh;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.banner__content {
    display: flex;
    width: 100%;
    max-width: 760px;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.banner__title {
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 5vw, 76px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.banner__subtitle {
    max-width: 680px;
    margin-top: 24px;
    color: #fff;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.45;
}

.banner__subtitle > :first-child {
    margin-top: 0;
}

.banner__subtitle > :last-child {
    margin-bottom: 0;
}

.banner__actions {
    margin-top: 40px;
}

.banner--youtube .banner__background-image {
    z-index: 0;
}

.banner--youtube .banner__video-frame {
    z-index: 1;
}

.banner--youtube .banner__overlay {
    z-index: 2;
}

@media (max-width: 1024px) {
    .banner__container {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .banner__content {
        max-width: 650px;
    }

    .banner__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.72) 0%,
                rgba(0, 0, 0, 0.5) 70%,
                rgba(0, 0, 0, 0.32) 100%
            );
    }
}

@media (max-width: 767px) {
    .banner {
        min-height: 600px;
    }

    .banner__container {
        min-height: 100svh;
        padding-top: 90px;
        padding-bottom: 70px;
    }

    .banner__content {
        max-width: 100%;
    }

    .banner__title {
        font-size: clamp(38px, 11vw, 54px);
        line-height: 1.1;
    }

    .banner__subtitle {
        margin-top: 20px;
        font-size: 18px;
        line-height: 1.5;
    }

    .banner__actions {
        width: 100%;
        margin-top: 32px;
    }

    .banner__overlay {
        background: rgba(0, 0, 0, 0.58);
    }
}

.features {
    height: 60px;
    position: relative;
}

.features__container {
    align-items: center;
    background-color: #fff;
    border-radius: 30px;
    bottom: 0;
    box-shadow: 0 3px 20px 0 rgba(0, 0, 0, .1);
    color: #111;
    display: flex;
    height: 120px;
    left: 15px;
    right: 15px;
    padding: 10px 40px;
    position: absolute;
    width: calc(100% - 30px);
    gap: 12px;
}

.features__item {
    flex: 1;
    max-height: 100%;
}

.features__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 32px;
    transition: .3s;
}

.features__text {
    line-height: 22px;
    margin-top: 4px;
}

.features__item:hover .features__title {
    color: var(--background);
}

.calculator {
    padding: 60px 0;
    background-color: #f5f5f7;
}

.calculator__container {
    display: flex;
    flex-wrap: wrap;
}

.calculator__left {
    flex: 0 0 auto;
    width: 50%;
    padding-right: 15px;
    box-sizing: border-box;
}

.calculator__right {
    flex: 0 0 auto;
    width: 50%;
    display: flex;
    flex-wrap: wrap;
    gap: 25px 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.calculator__row {
    flex: 0 0 auto;
    width: 100%;
}

.calculator__half {
    flex: 0 0 auto;
    width: calc(50% - 8px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.calculator__third {
    flex: 0 0 auto;
    width: calc(33% - 8px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.calculator__title {
    font-weight: 700;
    font-size: 52px;
    line-height: 1.23;
    color: #111;
    margin-bottom: 10px;
}

.calculator__subtitle {
    font-weight: 500;
    font-size: 24px;
    line-height: 1.23;
    color: #111;
    margin-bottom: 15px;
}

.calculator__note {
    color: #2b2d32cc;
    text-indent: -9px;
    padding-left: 9px;
}

.calculator__label {
    color: #2b2d3299;
    display: block;
    padding-bottom: 6px;
}

.calculator__input,
.calculator__select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 30px;
    box-sizing: border-box;
    outline: none;
    font-size: 18px;
    color: #2b2d32;
    padding: 15px;
    transition: .3s;
}

.calculator__input::-webkit-outer-spin-button,
.calculator__input::-webkit-inner-spin-button {
    display: none;
    -webkit-appearance: none;
    margin: 0;
}

.calculator__select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url("data:image/svg+xml, %3Csvg width='24' height='24' viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.9998 13.1717L16.9498 8.22168L18.3638 9.63568L11.9998 15.9997L5.63574 9.63568L7.04975 8.22168L11.9998 13.1717Z'/%3E%3C/svg%3E") 98% center no-repeat, #fff;
}

.calculator__select::-ms-expand {
    display: none;
}

.calculator__input:hover,
.calculator__input:focus,
.calculator__select:hover,
.calculator__select:focus {
    border-color: #000;
}

.calculator__radio {
    display: none;
}

.calculator__radio-circle {
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.calculator__radio-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid #2b2d3266;
    border-radius: 50%;
}

.calculator__radio-inner {
    position: absolute;
    top: 1px;
    left: 1px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    transform: scale(0, 0);
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
    background: #2b2d32;
    transition: transform 90ms cubic-bezier(0, 0, 0.2, 1), border-color 90ms cubic-bezier(0, 0, 0.2, 1);
}

.calculator__radio:checked+.calculator__radio-circle .calculator__radio-inner {
    transform: scale(.6) !important;
}

.calculator__radio-label {
    font-size: 22px;
    padding-left: 35px;
    position: relative;
    z-index: 2;
    padding-bottom: 0;
    color: #000;
}

.calculator__submit {
    width: 100%;
}

.calculator__slider {
    position: relative;
    padding-right: 150px;
}

.nouislider-container {
    margin: 10px 0 5px;
}

.calculator__slider-labels {
    display: flex;
    justify-content: space-between;
    color: #2b2d3299;
}

.calculator__term-display {
    position: absolute;
    right: 0;
    top: -7px;
    text-align: end;
    font-size: 22px;
}

.noUi-base {
    position: relative;
}

.noUi-target {
    background: #ddd;
    border-radius: 32px;
    height: 12px;
    border: none;
}

.noUi-horizontal .noUi-handle {
    width: 22px;
    height: 22px;
    right: -11px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    background: var(--background);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.noUi-handle:after {
    content: none;
}

.noUi-handle::before {
    content: "";
    height: 48px;
    width: 48px;
    border-radius: 50%;
    position: absolute;
    background-color: transparent;
    left: -12px;
    top: -12px;
    transition: .3s;
}

.noUi-handle:focus::before {
    background-color: var(--background);
}

.noUi-connect {
    background: var(--background);
    border-radius: 32px;
}

.slider-blocks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    pointer-events: none;
}

.slider-blocks div {
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: white;
}

.slider-marks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.slider-marks>div {
    position: absolute;
    background-color: #f5f5f7;
    width: 3px;
    height: 100%;
}

.slider-marks>div:last-child {
    display: none;
}

.calculator__result-label {
    color: #2b2d32cc;
    width: 100%;
    flex: 0 0 auto;
}

.calculator__result-value {
    font-size: 26px;
    color: #2b2d32;
    margin-top: 10px;
    line-height: 1.4;
}

@media (max-width: 1300px) {
    .calculator__third {
        width: 100%;
    }

    .calculator__result-value {
        margin-top: 0;
        margin-left: 10px;
    }

    .calculator__result-label {
        width: auto;
    }
}

@media (max-width:1100px) {
    .calculator__title {
        font-size: 36px;
    }
}

@media (max-width:991px) {

    .calculator__left,
    .calculator__right {
        width: 100%;
    }

    .calculator__left {
        padding-right: 0;
        padding-bottom: 30px;
    }

    .calculator__right {
        padding-left: 0;
        gap: 10px;
        justify-content: space-between;
    }

    .calculator__half {
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }

    .calculator__half--mobile {
        width: calc(50% - 8px);
        box-sizing: border-box;
    }

    .calculator__slider {
        padding-right: 120px;
    }

    .calculator__term-display {
        font-size: 18px;
    }

    .slider-marks>div {
        width: 2px;
    }

    .noUi-target {
        height: 8px;
    }

    .noUi-horizontal .noUi-handle {
        width: 20px;
        height: 20px;
    }

    .calculator__radio-circle {
        display: none;
    }

    .calculator__radio-label {
        font-size: 15px;
        padding: 15px;
        white-space: nowrap;
        border-radius: 30px;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }

    .calculator__radio:checked+.calculator__radio-circle+.calculator__radio-label {
        background: #2b2d32;
        color: #fff;
    }

    .calculator__submit {
        margin-top: 6px;
    }
}

@media (max-width:767px) {
    .calculator__title {
        font-size: 26px;
        line-height: 110%;
    }

    .calculator__subtitle {
        font-size: 18px;
    }
}

.offers {
    overflow-x: hidden;
}

.offers__body {
    position: relative;
}

.offers__controls {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 9;
    transition: opacity .3s ease-in-out, visibility 0s linear .3s;
}

.offers__body:hover .offers__controls,
.offers__slider:hover+.offers__controls {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .3s ease-in-out, visibility 0s;
}

.offers__arrow {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background-color: hsla(0, 0%, 7%, .4);
    border-radius: 36px;
    height: 72px;
    width: 72px;
    border: 0;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    cursor: pointer;
    transition: opacity .3s ease-in-out, background-color .3s ease-in-out;
}

.offers__arrow--prev {
    left: 0;
    right: unset;
    transform: translate(0, -50%) rotate(180deg);
}

.offers__arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    transform: translate(-35%, -50%);
    margin: auto;
    width: 16px;
    height: 28px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='28' viewBox='0 0 16 28' aria-hidden='true'%3e%3cpath d='m.708 22.892 9.386-9.387L.708 4.12a2.41 2.41 0 0 1 0-3.411 2.41 2.41 0 0 1 3.41 0l11.105 11.104a2.41 2.41 0 0 1 0 3.41L4.119 26.328a2.41 2.41 0 0 1-3.411 0c-.92-.944-.944-2.492 0-3.435Z' fill='%23ffffff' fill-rule='nonzero'/%3e%3c/svg%3e ");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    transition: .3s ease-in-out;
}

.offers__arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.offers__slider {
    overflow: visible;
}

.offers__wrapper {
    align-items: stretch;
}

.offers__slide {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    background-color: var(--background);
    color: #fff;
    border-radius: 30px;
    overflow: hidden;
    padding: 32px 32px 109px;
    position: relative;
    min-width: 360px;
    max-width: 424px;
}

@media (max-width: 768px) {
    .offers__slide {
        min-width: 320px;
        max-width: 380px;
    }
}

.offers__slide-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    margin: 0 0 8px;
}

.offers__slide:hover .offers__slide-title {
    color: #000;
}

.offers__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.offers__list li {
    margin-top: 12px;
    position: relative;
}

.offers__btn {
    left: 50%;
    opacity: 1;
    position: absolute;
    top: 100%;
    transform: translate(-50%);
    transition: opacity .3s ease-in-out, transform .3s ease-in-out;
    z-index: 1;
}

.offers__slide:hover {
    background-color: #f5f5f7;
    color: #000;
}

.offers__slide:hover .offers__list li::before {
    background-color: var(--background);
}

.offers__slide:hover .offers__btn {
    transform: translate(-50%, calc(-100% + -32px));
}

.info-block__container {
    border-radius: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    padding: 32px;
    background-color: var(--background);
    color: #f5f5f7;
}

.info-block__container--reverse {
    flex-direction: row-reverse;
}

.info-block__container.info-block__container--grey {
    background-color: #f5f5f7;
    color: #000;
}

.info-block__container+.info-block__container {
    margin-top: 80px;
}

.info-block__content {
    flex: 0 1 70%;
    width: 70%;
}

.info-block__text *+p {
    margin-top: 16px;
}

.info-block__button {
    margin-top: 26px;
}

.info-block__image {
    flex: 0 1 30%;
    width: 30%;
}

.info-block__image img {
    height: 270px;
    width: auto;
    display: block;
    margin-left: auto;
    border-radius: 30px;
}

.info-block__container--reverse .info-block__image img {
    margin: 0 auto 0 0;
}

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

.text-blocks__item {
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    padding: 32px;
    background-color: var(--background);
    font-size: 20px;
    line-height: 32px;
    color: #f5f5f7;
    transition: .3s;
}

.text-blocks__item--red {
    background-color: #f5f5f7;
    color: #000;
}

.text-blocks__item:hover {
    background-color: #f5f5f7;
    color: #000;
}

.text-blocks__item--red:hover {
    background-color: var(--background);
    color: #f5f5f7;
}

.credit-table__wrap {
    border: 1px solid #cfcfcf;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .15);
    background: #f5f5f7;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

.credit-table__table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: #f5f5f7;
    line-height: 22px;
}

.credit-table__table th,
.credit-table__table td {
    padding: 17px 25px;
    border: 0;
    border-right: 1px solid #cfcfcf;
    border-bottom: 1px solid #cfcfcf;
    text-align: left;
    background: #f5f5f7;
}

.credit-table__table tr>*:last-child {
    border-right: 0;
}

.credit-table__table tbody tr:last-child>* {
    border-bottom: 0;
}

.credit-table__table tbody tr:hover>* {
    background: #fff;
}

.credit-table__note {
    margin-top: 26px;
    color: grey;
    display: block;
    font-size: 16px;
}

@media (max-width: 767px) {
    .credit-table__table {
        min-width: 720px;
    }
}

.accordion__item {
    border-bottom: 1px solid #cfcfcf;
    padding: 32px 0;
    overflow: hidden;
}

.accordion__top {
    cursor: pointer;
    position: relative;
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 20px;
    justify-content: space-between;
    line-height: 35px;
    padding-right: 56px;
}

.accordion__top::marker {
    display: none;
}

.accordion__top::-webkit-details-marker {
    display: none;
}

.accordion__top::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='16' height='16' viewBox='0 0 16 16' aria-hidden='true' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0 8c0-.88.72-1.6 1.6-1.6h4.8V1.6C6.4.72 7.12 0 8 0c.88 0 1.6.72 1.6 1.6v4.8h4.8c.88 0 1.6.72 1.6 1.6 0 .88-.72 1.6-1.6 1.6H9.6v4.8c0 .88-.72 1.6-1.6 1.6-.88 0-1.6-.72-1.6-1.6V9.6H1.6C.72 9.6 0 8.88 0 8Z' fill='%23959595'/%3e%3c/svg%3e");
    right: 12px;
    transition: transform .4s;
    z-index: 2;
}

.accordion__top::before {
    content: "";
    position: absolute;
    background-color: #f5f5f7;
    border-radius: 50%;
    color: #959595;
    height: 40px;
    width: 40px;
    right: 0;
    z-index: 1;
}

.accordion__item[open] .accordion__top::after {
    transform: rotate(135deg);
}

.accordion__bottom {
    margin-top: 12px;
    line-height: 26px;
    max-height: 0;
    overflow: hidden;
    padding-right: 56px;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.accordion__item[open] .accordion__bottom {
    max-height: 500px;
    opacity: 1;
}

.accordion__bottom *+p,
.accordion__bottom *+ul,
.accordion__bottom *+ol {
    margin-top: 32px;
}

.steps__list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.steps__item {
    flex: 0 1 100%;
    width: 100%;
    background-color: var(--background);
    color: #fff;
    border-radius: 30px;
    font-size: 20px;
    line-height: 32px;
    padding: 26px 32px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    transition: .3s;
}

.steps__item:hover {
    background-color: #f5f5f7;
    color: #000;
}

.steps__number {
    background-color: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    color: var(--background);
    font-size: 22px;
    flex-shrink: 0;
    transition: .3s;
}

.steps__item:hover .steps__number {
    background-color: var(--background);
    color: #fff;
}

.partners__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.partners__item {
    text-align: center;
    background-color: #f5f5f7;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.partners__logo {
    width: auto;
    height: 65px;
    object-fit: contain;
}

.partners__text {
    margin-top: 36px;
    color: grey;
    display: block;
    font-size: 16px;
}

.partners__text *+p {
    margin-top: 16px;
}

.text-block__image {
    height: 500px;
    background-size: cover;
    background-position: 50%;
    margin-bottom: 30px;
    border-radius: 30px;
}

@media (max-width:767px) {
    .text-block__image {
        height: 280px;
        background-size: 230%;
        background-position: 60% 0
    }
}

.text-block__content *+* {
    margin-top: 32px;
}

.text-block__content ul li,
.text-block__content ol li {
    margin-top: 5px;
}

.text-block__content a {
    color: #000;
}

.text-block__content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #f5f5f7;
    line-height: 22px;
}

.text-block__content table th,
.text-block__content table td {
    padding: 17px 25px;
    border: 0;
    border-right: 1px solid #cfcfcf;
    border-bottom: 1px solid #cfcfcf;
    text-align: left;
    background: #f5f5f7;
}

.text-block__content table tr>*:last-child {
    border-right: 0;
}

.text-block__content table tbody tr:last-child>* {
    border-bottom: 0;
}

.text-block__content table tbody tr:hover>* {
    background: #fff;
}

.contact-form {
    padding: 30px 0;
    box-shadow: 0 2px 24px 0 rgba(0, 0, 0, .05);
}

.contact-form--noshadow {
    box-shadow: none;
}

.contact-form__form {
    max-width: 648px;
    width: 100%;
    margin: 0 auto;
}

.contact-form__title {
    margin: 8px 0 38px;
    text-align: center;
    font-size: 24px;
    line-height: 30px;
}

.contact-form__fields {
    display: flex;
    flex-direction: column;
    gap: 26px;
    width: 100%;
}

.contact-form__field {
    position: relative;
    flex: 0 1 100%;
    width: 100%;
}

.contact-form__input {
    border: 1px solid hsla(0, 0%, 58%, .4);
    border-radius: 30px;
    cursor: text;
    padding: 14px 12px 14px;
    position: relative;
    width: 100%;
}

.contact-form__input::placeholder {
    font-family: "Public Sans", sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
}

.contact-form__input::-webkit-outer-spin-button,
.contact-form__input::-webkit-inner-spin-button {
    display: none;
    -webkit-appearance: none;
    margin: 0;
}

textarea.contact-form__input {
    height: 120px;
    resize: none;
}

.contact-form__input.valid {
    background: url("data:image/svg+xml,%0A%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.646 14.818a.5.5 0 00.707 0l8.132-8.132A1 1 0 1119.9 8.1l-9.193 9.193a1 1 0 01-1.414 0l-4.95-4.95a1 1 0 111.414-1.414l3.89 3.89z' fill='%2315AF40'/%3E%3C/svg%3E") 98% center no-repeat, #fff;
}

.contact-form__input.invalid {
    background: url("data:image/svg+xml,%0A%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7L7 17' stroke='%23DC5858' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M17 17L7 7' stroke='%23DC5858' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E%0A") 98% center no-repeat, #fff;
}

select.contact-form__input {
    background: url("data:image/svg+xml, %3Csvg width='24' height='24' viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.9998 13.1717L16.9498 8.22168L18.3638 9.63568L11.9998 15.9997L5.63574 9.63568L7.04975 8.22168L11.9998 13.1717Z'/%3E%3C/svg%3E") 98% center no-repeat, #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
}

.contact-form__label {
    color: #959595;
    font-size: 12px;
    font-weight: 400;
    left: 16px;
    line-height: 1;
    position: absolute;
    top: -8px;
    z-index: 2;
    background: #fff;
    padding: 2px 5px;
}

.contact-form__confirm {
    margin-top: 16px;
    position: relative;
}

.contact-form__agreement {
    color: #959595;
    font-size: 14px;
    letter-spacing: 0;
    line-height: 18px;
    padding-left: 35px;
}

.contact-form__agreement::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 1px solid #d0d0d0;
    position: absolute;
    top: calc(50% - 12px);
    left: 0;
    border-radius: 4px;
    z-index: 9;
}

.contact-form__checkbox:checked~.contact-form__agreement::before {
    background: url("data:image/svg+xml,%0A%3Csvg width='16' height='11' viewBox='0 0 16 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.35961 4.00188L6.75449 9.26391L15.0784 0.620314' stroke='%23116a6d' stroke-width='1.5'/%3E%3C/svg%3E%0A") #fff center no-repeat;
}

.contact-form__agreement a {
    color: var(--background);
    text-decoration: none;
}

.contact-form__checkbox {
    display: none;
}

.contact-form__actions {
    margin-top: 30px;
    text-align: center;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 34, 34, .6);
    z-index: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transform: scale(0);
    overflow: auto
}

.modal.active {
    transform: scale(1);
    z-index: 9999
}

.modal .modal__wrap {
    background: #fff;
    padding: 35px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    width: calc(100% - 30px);
    box-sizing: border-box;
    margin-right: 15px;
    margin-left: 15px;
    transform: scale(0);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999999999;
    border-radius: 14px;
    height: auto;
}

@media (max-width: 480px) {
    .modal .modal__wrap {
        padding: 35px 30px;
    }
}

.modal.active .modal__wrap {
    transform: scale(1) translateY(-50%);
    transition: transform .5s ease-in-out
}

.modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
}

.modal__title {
    margin: 8px 0 15px;
    text-align: center;
    font-size: 24px;
    line-height: 30px;
}

.footer {
    background: #222;
    padding-top: 60px;
    padding-bottom: 60px;
    box-shadow: 0 0 40px rgba(0, 0, 0, .1);
}

.footer__link,
.footer__logo,
.footer__text {
    font-family: "Public Sans", sans-serif;
    font-style: normal;
    font-size: 14px;
}

.footer__logo-image {
    display: block;
    width: 160px;
    height: auto;
    margin-left: 5px;
}

.footer__link,
.footer__text {
    font-weight: 160;
    line-height: 24px;
    color: #fff;
    margin-bottom: 0;
}

.footer__link:hover,
.footer__logo:hover {
    color: var(--background);
}

.footer__logo {
    font-weight: 400;
    line-height: 140%;
    color: #000;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    text-decoration: none;
}

.footer__logo svg {
    margin-left: 5px;
    max-width: 160px;
    height: auto;
}

.footer__logo:hover svg {
    fill: var(--background);
}

.footer__nav .footer__link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: .3s;
    position: relative;
    font-size: 18px;
}

.footer__nav .footer__link::before {
    content: "";
    background: url("data:image/svg+xml, %3Csvg width='24' height='24' viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.9998 13.1717L16.9498 8.22168L18.3638 9.63568L11.9998 15.9997L5.63574 9.63568L7.04975 8.22168L11.9998 13.1717Z'/%3E%3C/svg%3E") center center no-repeat;
    position: absolute;
    right: -22px;
    top: 55%;
    width: 16px;
    height: 23px;
    transition: all 0.3s;
    transform: translateY(-50%) rotate(-90deg);
}

.footer__nav .footer__link:hover {
    color: var(--background);
}

.footer__nav .footer__link:hover::before {
    background: url("data:image/svg+xml, %3Csvg width='24' height='24' viewBox='0 0 24 24' fill='%23116a6d' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.9998 13.1717L16.9498 8.22168L18.3638 9.63568L11.9998 15.9997L5.63574 9.63568L7.04975 8.22168L11.9998 13.1717Z'/%3E%3C/svg%3E") center center no-repeat;
    right: -27px;
}

.footer__table {
    margin: 15px 0;
}

.footer__table-title {
    margin-bottom: 5px;
    margin-top: 15px;
    font-weight: 700;
    color: #fff;
}

.footer__table-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.footer__table-row {
    display: flex;
    flex-direction: row;
    border-top: 1px solid #fff;
}

.footer__table-row:last-of-type {
    border-bottom: 1px solid #fff;
}

.footer__table-cell {
    flex-basis: 50%;
    border-right: 1px solid #fff;
    padding: 5px;
    color: #fff;
    font-size: 12px;
}

.footer__table-cell:first-child {
    border-left: 1px solid #fff;
}

.socials {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.social__link {
    line-height: 0;
}

.social__link img {
    max-height: 25px;
}

.footer__info {
    height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: .3s;
}

.footer__info.active {
    height: 100%;
    opacity: 1;
    visibility: visible;
}

.footer__more-btn {
    font-weight: 160;
    line-height: 24px;
    color: #fff;
    margin-bottom: 15px;
    background-color: transparent;
    border: none;
    font-family: "Public Sans", sans-serif;
    font-style: normal;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.footer__more-btn:hover {
    color: var(--background);
}

.footer__top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer__main-links {
    display: flex;
    gap: 45px;
}

.footer__main-links .footer__link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: .3s;
    position: relative;
}

.footer__main-links .footer__link:hover {
    color: var(--background);
}

.footer__main-links .footer__link::before {
    content: "";
    background: url("data:image/svg+xml, %3Csvg width='24' height='24' viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.9998 13.1717L16.9498 8.22168L18.3638 9.63568L11.9998 15.9997L5.63574 9.63568L7.04975 8.22168L11.9998 13.1717Z'/%3E%3C/svg%3E") center center no-repeat;
    position: absolute;
    right: -22px;
    top: 0;
    transform: translateY(-50%) rotate(-90deg);
    width: 16px;
    height: 23px;
    transition: all 0.3s;
}

.footer__main-links .footer__link:hover::before {
    background: url("data:image/svg+xml, %3Csvg width='24' height='24' viewBox='0 0 24 24' fill='%23116a6d' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.9998 13.1717L16.9498 8.22168L18.3638 9.63568L11.9998 15.9997L5.63574 9.63568L7.04975 8.22168L11.9998 13.1717Z'/%3E%3C/svg%3E") center center no-repeat;
    right: -27px;
}

.loader {
    background: rgba(0, 0, 0, .3);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.loader.active {
    z-index: 999999999;
    display: flex
}

@media (min-width: 1344px) {
    .offers__slide {
        min-width: 360px;
        max-width: 424px;
    }
}

@media (max-width: 1343px) and (min-width: 992px) {
    .offers__slide {
        min-width: 320px;
        max-width: 380px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .offers__slide {
        min-width: calc(100% / 2 - 24px);
        max-width: calc(100% / 2 - 24px);
    }
}

@media (max-width: 767px) {
    .offers__slide {
        min-width: calc(100% - 60px);
        max-width: calc(100% - 60px);
    }
}

@media (max-width: 1199px) {
    .banner__container {
        min-height: 480px;
        gap: 32px;
    }

    .banner__title {
        font-size: 42px;
        line-height: 50px;
    }

    .banner__subtitle {
        font-size: 20px;
        line-height: 28px;
    }
}

@media (max-width: 991px) {
    .banner__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
        padding: 140px 0 40px;
        gap: 0;
    }

    .banner__content {
        max-width: 100%;
        align-items: center;
    }

    .banner__title {
        font-size: 32px;
        line-height: 40px;
    }

    .banner__subtitle {
        font-size: 18px;
        line-height: 26px;
        margin-top: 12px;
        text-align: left;
    }

    .banner__actions {
        margin-top: 24px;
    }
}

@media (max-width: 991px) {

    .section__title,
    .banner__title {
        font-size: 40px;
        line-height: 48px;
    }

    .banner__subtitle {
        font-size: 20px;
        line-height: 28px;
    }

    .info-block__container {
        flex-wrap: wrap;
        gap: 25px;
        padding: 15px;
    }

    .info-block__image {
        flex: 0 1 100%;
        width: 100%;
        order: 1;
    }

    .info-block__image img,
    .info-block__container--reverse .info-block__image img {
        margin: 0 auto;
    }

    .info-block__content {
        flex: 0 1 100%;
        width: 100%;
        order: 2;
    }

    .info-block__text p strong {
        font-size: 18px;
    }

    .info-block__button {
        width: 100%;
    }
}

@media (max-width: 767px) {

    .section__title,
    .banner__title {
        font-size: 28px;
        line-height: 36px;
    }

    .banner__subtitle {
        font-size: 18px;
        line-height: 24px;
    }
}

@media (max-width: 767px) {
    .button__content {
        font-size: 16px;
        line-height: 22px;
        padding: 10px 20px 12px;
    }
}

@media (max-width: 767px) {
    .banner__content {
        padding: 0 15px;
    }

    .features {
        height: auto;
    }

    .features__container {
        flex-wrap: wrap;
        position: static;
        transform: translateY(-170px);
        height: auto;
        width: 100%;
        margin-bottom: -170px;
    }

    .features__item {
        flex: 0 1 100%;
        width: 100%;
    }

    .features__text {
        margin-top: 0;
    }

    .text-blocks__item {
        font-size: 18px;
        line-height: 24px;
        padding: 15px;
    }

    .text-blocks__grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .steps__item {
        font-size: 18px;
        line-height: 24px;
        padding: 15px;
    }

    .partners__list {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }

    .partners__logo {
        max-width: 200px;
        width: auto;
        height: 55px;
        margin: 0 auto;
    }

    .offers__arrow {
        height: 35px;
        width: 35px;
    }

    .offers__arrow::before {
        width: 10px;
        height: 20px;
    }
}

[class*="ymaps-2"][class*="-ground-pane"] {
    filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
    -webkit-filter: grayscale(100%);
}

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

.disable-page {
    justify-content: center;
    align-items: center;
    font-family: "Public Sans", sans-serif
}

.disable-page {
    background: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999999;
    display: none;
    flex-direction: column;
    padding-right: 15px;
    padding-left: 15px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    line-height: 120%
}

.disable-page span {
    font-weight: 400;
    margin-top: 5px
}

.disable-page.active {
    display: flex
}

.disable-page_close {
    position: absolute;
    top: 20px;
    right: 20px
}

.disable-page_close:hover {
    cursor: pointer
}

.disable-page_close:hover path {
    fill: #ef3124
}

@media (max-width:767px) {
    .disable-page {
        font-size: 18px
    }
}

.sending-error {
    position: fixed;
    background: rgba(34, 34, 34, .6);
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 0;
    display: none;
    align-items: center;
    justify-content: center
}

.sending-error.active {
    display: flex;
    z-index: 99999
}

.sending-error .wrapper {
    background: #fff;
    position: relative;
    border-radius: 16px;
    padding: 50px 15px 40px
}

.sending-error p {
    font-size: 18px;
    text-align: center
}

.sending-error_close {
    position: absolute;
    top: 14px;
    right: 14px
}

.sending-error_close:hover {
    cursor: pointer
}

.thanks_title {
    font-weight: 700;
    font-size: 40px;
    line-height: 120%;
    margin-bottom: 25px;
}

.error_title {
    font-weight: 700;
    font-size: 60px;
    line-height: 120%;
    margin-bottom: 50px;
}

.thanks_subtitle,
.error_subtitle,
.thanks_text,
.thanks_title {
    text-align: center;
    color: #000;
    margin-top: 0;
}

.error_subtitle {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.error_button {
    margin-top: 30px;
}

.thanks_text br {
    display: none;
}

.thanks {
    padding: 60px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.thanks_img {
    margin-bottom: 20px;
}

@media (max-width:767px) {
    .thanks_title {
        font-size: 21px;
        line-height: 120%;
        margin-bottom: 14px;
    }

    .thanks {
        padding: 35px 15px;
    }
}

#cookies {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 9999;

    transition:
        transform 0.5s ease,
        opacity 0.5s ease;

    transform: translateY(100%);
    opacity: 0;
}

#cookies.active {
    transform: translateY(-40px);
    opacity: 1;
}

#cookies .cookies {
    width: 100%;
}

.cookies_block {
    width: 100%;
    box-sizing: border-box;

    background: #fff;
    padding: 28px 40px;
    margin-bottom: 30px;

    border-radius: 30px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);

    font-family: sans-serif;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cookies_content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookies__title {
    color: #111010;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.cookies_block p {
    margin: 0;
    color: #111010;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
}

.cookies_block p a {
    color: #111010;
    text-decoration: underline;
}

.cookies_actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookies_actions button {
    min-width: 130px;
    height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    cursor: pointer;
}

.cookies_decline {
    background: #e8e8e8;
    color: #333;
    transition: background-color 0.2s ease;
}

.cookies_decline:hover {
    background: #dcdcdc;
}

@media (max-width: 767px) {
    #cookies.active {
        transform: translateY(-65px);
    }

    .cookies__title {
        font-size: 16px;
    }

    .cookies_block {
        padding: 20px 16px;
        margin-bottom: 12px;

        border-radius: 24px;

        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .cookies_title {
        font-size: 18px;
    }

    .cookies_block p {
        font-size: 14px;
    }

    .cookies_actions {
        width: 100%;
        gap: 10px;
    }

    .cookies_actions button {
        flex: 1;
        min-width: 0;
        height: 48px;

        padding-left: 12px;
        padding-right: 12px;

        font-size: 14px;
    }
}

.contacts__container {
    display: flex;
}

.contacts__block {
    min-width: 400px;
    padding: 30px 40px;
    overflow: hidden;
    line-height: 1.4;
    letter-spacing: 0.03em;
    border: 1px solid #e3e3e3;
    border-right: none;
    border-radius: 30px 0 0 30px;
}

.contacts__block a {
    color: #111;
    text-decoration: none;
}

.contacts__title {
    margin-bottom: 25px;
    color: #111;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: 0.03em;
    opacity: 0.9;
}

.contacts__subtitle {
    margin: 25px 0 10px;
    color: #7a7a7a;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.contacts__value {
    margin: 0;
}

.contacts__map {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border: 1px solid #e3e3e3;
    border-left: none;
    border-radius: 0 30px 30px 0;
}

.contacts__container--without-map .contacts__block {
    width: 100%;
    border-right: 1px solid #e3e3e3;
    border-radius: 30px;
}

.contacts__map--image {
    overflow: hidden;
}

.contacts__map-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[class*="ymaps-2"][class*="-ground-pane"] {
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
    -webkit-filter: grayscale(100%);
}

@media (max-width: 1300px) {
    .contacts__block {
        min-width: 450px;
    }
}

@media (max-width: 991px) {
    .contacts__container {
        display: block;
    }

    .contacts__block {
        min-width: 100%;
        padding: 15px;
        border: 1px solid #e3e3e3;
        border-bottom: none;
        border-radius: 30px 30px 0 0;
    }

    .contacts__map {
        height: 450px;
        border: 1px solid #e3e3e3;
        border-top: none;
        border-radius: 0 0 30px 30px;
    }

    .contacts__container--without-map .contacts__block {
        border: 1px solid #e3e3e3;
        border-radius: 30px;
    }
}

.portfolio-page {
    overflow: hidden;
}

.portfolio-section {
    position: relative;
    padding: 100px 0;
}

.portfolio-section__subtitle {
    position: relative;
    margin: 0 0 16px;
    padding-left: 64px;
    color: var(--background);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.portfolio-section__subtitle::before {
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 48px;
    height: 1px;
    background: currentColor;
    content: "";
}

.portfolio-section__title {
    margin: 0 0 35px;
    color: inherit;
    font-size: 50px;
    font-weight: 600;
    line-height: 1.12;
}

.portfolio-section__text {
    font-size: 16px;
    line-height: 1.6;
}

.portfolio-section__text > *:first-child {
    margin-top: 0;
}

.portfolio-section__text > *:last-child {
    margin-bottom: 0;
}

.portfolio-section__text p,
.portfolio-section__text ul,
.portfolio-section__text ol {
    margin: 0 0 16px;
}

.portfolio-section__text ul,
.portfolio-section__text ol {
    padding-left: 24px;
}

/* =========================================================
   Цели и задачи
   ========================================================= */

.portfolio-aims {
    position: relative;
    z-index: 2;
    margin: 60px 0 90px;
    padding: 0;
}

.portfolio-aims__container {
    display: grid;
    grid-template-columns:
        minmax(0, 3fr)
        minmax(380px, 2fr);
    gap: 70px;
    align-items: stretch;
}


/* =========================================================
   Текстовая часть
   ========================================================= */

.portfolio-aims__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 65px 0;
}

.portfolio-aims__subtitle {
    margin-bottom: 25px;
}

.portfolio-aims__title {
    margin-bottom: 45px;
}

.portfolio-aims__text {
    max-width: 100%;
}

.portfolio-aims__text > :first-child {
    margin-top: 0;
}

.portfolio-aims__text > :last-child {
    margin-bottom: 0;
}


/* =========================================================
   Изображение
   ========================================================= */

.portfolio-aims__media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 30px;
}

.portfolio-aims__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   Вариант без изображения
   ========================================================= */

.portfolio-aims--without-image
.portfolio-aims__container {
    grid-template-columns: minmax(0, 1fr);
}

.portfolio-aims--without-image
.portfolio-aims__content {
    max-width: 1100px;
}


/* =========================================================
   Планшеты
   ========================================================= */

@media (max-width: 1100px) {
    .portfolio-aims__container {
        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(320px, 0.8fr);
        gap: 40px;
    }

    .portfolio-aims__content {
        padding: 45px 0;
    }

    .portfolio-aims__media {
        min-height: 430px;
        border-radius: 32px;
    }

    .portfolio-aims__title {
        margin-bottom: 35px;
    }
}


/* =========================================================
   Мобильные устройства
   ========================================================= */

@media (max-width: 767px) {
    .portfolio-aims {
        margin: 40px 0 60px;
    }

    .portfolio-aims__container {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .portfolio-aims__content {
        padding: 0;
    }

    .portfolio-aims__subtitle {
        margin-bottom: 20px;
    }

    .portfolio-aims__title {
        margin-bottom: 25px;
    }

    .portfolio-aims__media {
        min-height: 0;
        aspect-ratio: 4 / 3;
        border-radius: 24px;
    }
}

/* Особенности проекта */

.portfolio-features {
    background: #2b2b2b;
    color: #fff;
}

.portfolio-features__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8%;
}

.portfolio-features__media {
    flex: 0 1 50%;
    min-width: 0;
}

.portfolio-features__image {
    display: block;
    width: 100%;
    height: auto;
    border: 17px solid #111;
    border-radius: 30px;
}

.portfolio-features__content {
    flex: 0 1 40%;
    min-width: 0;
}

/* Проектирование */

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

.portfolio-design__content {
    flex: 0 1 60%;
    min-width: 0;
    padding-right: 85px;
}

.portfolio-design__media {
    flex: 0 1 40%;
    min-width: 0;
}

.portfolio-design__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
}

/* Описание проекта */

.portfolio-description__visual {
    position: relative;
    z-index: 2;
    min-height: clamp(440px, 72vw, 1048px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.portfolio-description__content {
    background: #fff;
}

.portfolio-description__text {
    max-width: 980px;
    margin: 0 auto;
}

/* Результаты */

.portfolio-results {
    background: #2b2b2b;
    color: #fff;
}

.portfolio-results .portfolio-section__subtitle {
    color: #fff;
}

.portfolio-results__container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10%;
}

.portfolio-results__content {
    flex: 0 1 30%;
    min-width: 0;
}

.portfolio-results__gallery {
    flex: 0 1 60%;
    min-width: 0;
    column-count: 2;
    column-gap: 20px;
}

.portfolio-results__item {
    break-inside: avoid;
    margin: 0 0 20px;
}

.portfolio-results__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
}

@media (max-width: 1366px) {
    .portfolio-section__title {
        font-size: 38px;
        line-height: 1.16;
    }
}

@media (max-width: 1024px) {
    .portfolio-section {
        padding: 80px 0;
    }

    .portfolio-features__container {
        flex-wrap: wrap;
    }

    .portfolio-features__media,
    .portfolio-features__content {
        flex-basis: 100%;
    }

    .portfolio-features__content {
        order: 1;
        margin-bottom: 30px;
    }

    .portfolio-features__media {
        order: 2;
    }

    .portfolio-design__content {
        flex-basis: 100%;
        padding-right: 0;
    }

    .portfolio-design__media {
        display: none;
    }

    .portfolio-results__container {
        display: block;
    }

    .portfolio-results__gallery {
        margin-top: 35px;
    }

    .portfolio-related__slide {
        width: min(560px, 72vw);
    }
}

@media (max-width: 767px) {
    .portfolio-section {
        padding: 60px 0;
    }

    .portfolio-section__title {
        margin-bottom: 25px;
        font-size: 28px;
        line-height: 1.25;
    }

    .portfolio-section__subtitle {
        padding-left: 54px;
    }

    .portfolio-section__subtitle::before {
        width: 40px;
    }

    .portfolio-features__image {
        border-width: 10px;
    }

    .portfolio-description__visual {
        min-height: 65vw;
    }

    .portfolio-results__gallery {
        column-count: 1;
    }

    .portfolio-results__item {
        margin-bottom: 30px;
    }

    .portfolio-related__title {
        margin-bottom: 35px;
    }

    .portfolio-related__slide {
        width: calc(100vw - 60px);
    }
}

.portfolio-banner {
    position: relative;
    display: flex;
    min-height: calc(100vh - 110px);
    align-items: center;
    color: #fff;
    background-color: #2b2b2b;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.portfolio-banner::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.38) 55%,
        rgba(0, 0, 0, 0.08) 100%
    );
    content: "";
}

.portfolio-banner__container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.portfolio-banner__content {
    max-width: 760px;
    padding: 120px 0;
}

.portfolio-banner__title {
    margin: 0;
    color: #fff;
    font-size: 54px;
    font-weight: 600;
    line-height: 1.15;
}

.portfolio-banner__subtitle {
    max-width: 650px;
    margin: 25px 0 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.5;
}

.portfolio-banner__actions {
    margin-top: 40px;
}

.portfolio-banner-features {
    position: relative;
    z-index: 2;
    margin-top: -1px;
    background: #fff;
}

.portfolio-banner-features__container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-banner-features__item {
    min-width: 0;
    padding: 40px;
    border-right: 1px solid #e3e3e3;
    border-bottom: 1px solid #e3e3e3;
}

.portfolio-banner-features__item:first-child {
    border-left: 1px solid #e3e3e3;
}

.portfolio-banner-features__title {
    margin: 0 0 15px;
    color: #111;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.portfolio-banner-features__text {
    color: #7a7a7a;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .portfolio-banner {
        min-height: 700px;
    }

    .portfolio-banner__title {
        font-size: 44px;
    }

    .portfolio-banner-features__item {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .portfolio-banner {
        min-height: 620px;
        background-position: center;
    }

    .portfolio-banner::before {
        background: rgba(0, 0, 0, 0.58);
    }

    .portfolio-banner__content {
        padding: 100px 0 70px;
    }

    .portfolio-banner__title {
        font-size: 34px;
        line-height: 1.2;
    }

    .portfolio-banner__subtitle {
        margin-top: 20px;
        font-size: 17px;
    }

    .portfolio-banner__actions {
        margin-top: 30px;
    }

    .portfolio-banner-features__container {
        grid-template-columns: 1fr;
    }

    .portfolio-banner-features__item {
        padding: 25px 20px;
        border-left: 1px solid #e3e3e3;
    }
}

/* Описание проекта: изображение и текст */
.portfolio-description__visual {
    position: relative;
    z-index: 2;
    min-height: clamp(440px, 72vw, 1048px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.portfolio-description__content {
    background: #fff;
}

.portfolio-description__text {
    max-width: 980px;
}

/* Описание проекта: галерея страниц */
.portfolio-pages-gallery {
    background: #2b2b2b;
}

.portfolio-pages-gallery__title {
    margin: 0 0 45px;
    color: #fff;
    font-size: 30px;
    line-height: 1.25;
}

.portfolio-pages-gallery__top {
    column-count: 2;
    column-gap: 3%;
    margin-bottom: 90px;
}

.portfolio-pages-gallery__top-item {
    break-inside: avoid;
    margin-bottom: 90px;
}

.portfolio-pages-gallery__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
}

.portfolio-pages-gallery__bottom-item {
    min-width: 0;
    overflow: hidden;
    border: 8px solid #111;
}

.portfolio-pages-gallery__bottom-item:nth-child(2) .portfolio-pages-gallery__image {
    max-height: 340px;
    object-fit: cover;
}

.portfolio-pages-gallery__image {
    display: block;
    width: 100%;
    height: auto;
}

/* Описание проекта: две непрерывные галереи */
.portfolio-marquee {
    position: relative;
    z-index: 10;
    padding: 90px 0;
    overflow: hidden;
    background: var(--background);
}

.portfolio-marquee__slider {
    overflow: visible;
}

.portfolio-marquee__slider--top {
    margin-bottom: 77px;
}

.portfolio-marquee__wrapper {
    transition-timing-function: linear !important;
}

.portfolio-marquee__slide {
    height: auto;
}

.portfolio-marquee__image {
    display: block;
    width: 100%;
    height: auto;
    padding: 0 25px;
    border-radius: 6px; 
}

/* Описание проекта: темная, светлая и мобильная версии */
.portfolio-versions {
    background: #212121;
}

.portfolio-versions__container {
    display: flex;
    justify-content: space-between;
    gap: 3%;
}

.portfolio-versions__column--dark,
.portfolio-versions__column--light {
    flex: 0 1 38%;
}

.portfolio-versions__column--light {
    margin-top: 60px;
}

.portfolio-versions__column--mobile {
    flex: 0 1 18%;
    margin-top: 120px;
}

.portfolio-versions__title {
    margin: 0 0 40px;
    color: #fff;
    font-size: 26px;
    line-height: 1.3;
}

.portfolio-versions__item:not(:last-child) {
    margin-bottom: 90px;
}

.portfolio-versions__image {
    display: block;
    width: 100%;
    height: auto;
}

.portfolio-versions__mobile {
    display: flex;
    justify-content: space-between;
    gap: 16%;
}

.portfolio-versions__mobile-left,
.portfolio-versions__mobile-right {
    flex: 0 1 42%;
    min-width: 0;
}

.portfolio-versions__mobile-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

/* Описание проекта: изображение и цветовая палитра */
.portfolio-palette {
    text-align: center;
    background: #f3f6ff;
}

.portfolio-palette__main-image {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 100px;
    padding: 0 3px;
}

.portfolio-palette__title {
    margin: 0 0 60px;
    font-size: 30px;
    line-height: 1.25;
}

.portfolio-palette__colors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-palette__item {
    flex: 0 1 20%;
    min-width: 140px;
}

.portfolio-palette__swatch {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    box-shadow: 0 4px 30px rgba(83, 162, 255, 0.15);
    transform: rotate(-45deg);
}

.portfolio-palette__code {
    margin: 0;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .portfolio-versions__container {
        display: block;
    }

    .portfolio-versions__column--mobile {
        display: none;
    }

    .portfolio-versions__column--dark,
    .portfolio-versions__column--light {
        width: 100%;
    }

    .portfolio-versions__item:not(:first-child) {
        display: none;
    }

    .portfolio-versions__item:not(:last-child) {
        margin-bottom: 40px;
    }
}

@media (max-width: 812px) {
    .portfolio-pages-gallery__top {
        column-count: 1;
        margin-bottom: 15px;
    }

    .portfolio-pages-gallery__top-item {
        margin-bottom: 15px;
    }

    .portfolio-pages-gallery__bottom {
        display: block;
    }

    .portfolio-pages-gallery__bottom-item + .portfolio-pages-gallery__bottom-item {
        margin-top: 15px;
    }

    .portfolio-pages-gallery__bottom-item:nth-child(2) .portfolio-pages-gallery__image {
        max-height: none;
    }

    .portfolio-palette__title,
    .portfolio-palette__colors {
        display: none;
    }

    .portfolio-palette__main-image {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .portfolio-description__visual {
        min-height: 65vw;
    }

    .portfolio-marquee {
        padding: 60px 0;
    }

    .portfolio-marquee__slider--top {
        margin-bottom: 35px;
    }

    .portfolio-marquee__image {
        padding: 0 10px;
    }

    .portfolio-pages-gallery__title,
    .portfolio-versions__title,
    .portfolio-palette__title {
        font-size: 24px;
    }

    .portfolio-palette__item {
        flex-basis: 50%;
        margin-bottom: 35px;
    }
}

@media (orientation: landscape) and (min-width: 480px) and (max-width: 820px) {
    .portfolio-marquee__image {
        padding: 0 12px;
    }
}

/* =========================================================
   Другие работы
   Структура и навигация наследуются от блока offers
   ========================================================= */

.portfolio-related {
    overflow: hidden;
}

.portfolio-related .offers__body {
    position: relative;
}

.portfolio-related .offers__slider {
    overflow: visible;
}

.portfolio-related .offers__wrapper {
    align-items: stretch;
}

.portfolio-related .offers__slide {
    height: auto;
}


.portfolio-related .offers__slide.portfolio-card {
    position: relative;
    isolation: isolate;
    display: flex;
    height: 400px;
    min-height: 400px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px;
    overflow: hidden;
    color: var(--portfolio-card-color, #fff);
    background-color: #2b2b2b;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 40px;
}

.portfolio-related .portfolio-card__overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-color: var(
        --portfolio-card-hover,
        var(--background);
    );
    opacity: 0.72;
    transition:
        opacity 0.3s ease-in-out,
        background-color 0.3s ease-in-out;
}

.portfolio-related .portfolio-card:hover
.portfolio-card__overlay,
.portfolio-related .portfolio-card:focus-within
.portfolio-card__overlay {
    opacity: 0.92;
}


.portfolio-related .portfolio-card__title {
    position: relative;
    z-index: 2;
    max-width: 90%;
    margin: 0;
    color: var(--portfolio-card-color, #fff);
}

.portfolio-card:hover .portfolio-card__title {
    color: var(--portfolio-card-color, #fff);
}

.portfolio-related .portfolio-card__hover-content {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 2;
    display: flex;
    width: calc(100% - 80px);
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%);
    transition:
        opacity 0.3s ease-in-out,
        visibility 0.3s ease-in-out,
        transform 0.3s ease-in-out;
}

.portfolio-related .portfolio-card:hover
.portfolio-card__hover-content,
.portfolio-related .portfolio-card:focus-within
.portfolio-card__hover-content {
    opacity: 1;
    visibility: visible;
    transform: translate(
        -50%,
        calc(-100% + -32px)
    );
}

.portfolio-related .portfolio-card__subtitle {
    display: -webkit-box;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--portfolio-card-color, #fff);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.portfolio-related .portfolio-card__button {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin: 0;
}

.portfolio-related .portfolio-card:focus-within {
    outline: 2px solid var(
        --portfolio-card-color,
        #fff
    );
    outline-offset: -6px;
}

@media (max-width: 1024px) {
    .portfolio-related .offers__slide.portfolio-card {
        padding: 30px;
        border-radius: 30px;
    }

    .portfolio-related .portfolio-card__title {
        max-width: 100%;
        font-size: 27px;
    }

    .portfolio-related .portfolio-card__hover-content {
        width: calc(100% - 60px);
        gap: 20px;
    }

    .portfolio-related .portfolio-card:hover
    .portfolio-card__hover-content,
    .portfolio-related .portfolio-card:focus-within
    .portfolio-card__hover-content {
        transform: translate(
            -50%,
            calc(-100% + -30px)
        );
    }

    .portfolio-related .portfolio-card__subtitle {
        font-size: 15px;
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 600px) {
    .portfolio-related .offers__slide.portfolio-card {
        height: 330px;
        min-height: 330px;
        padding: 25px;
        border-radius: 25px;
    }

    .portfolio-related .portfolio-card__title {
        font-size: 24px;
        line-height: 1.25;
    }

    .portfolio-related .portfolio-card__hover-content {
        width: calc(100% - 50px);
        gap: 16px;
    }

    .portfolio-related .portfolio-card:hover
    .portfolio-card__hover-content,
    .portfolio-related .portfolio-card:focus-within
    .portfolio-card__hover-content {
        transform: translate(
            -50%,
            calc(-100% + -25px)
        );
    }

    .portfolio-related .portfolio-card__subtitle {
        font-size: 14px;
        line-height: 1.45;
        -webkit-line-clamp: 4;
    }
}

@media (hover: none) {
    .portfolio-related .portfolio-card__overlay {
        opacity: 0.88;
    }

    .portfolio-related .portfolio-card__hover-content {
        opacity: 1;
        visibility: visible;
        transform: translate(
            -50%,
            calc(-100% + -32px)
        );
    }
}

@media (hover: none) and (max-width: 1024px) {
    .portfolio-related .portfolio-card__hover-content {
        transform: translate(
            -50%,
            calc(-100% + -30px)
        );
    }
}

@media (hover: none) and (max-width: 600px) {
    .portfolio-related .portfolio-card__hover-content {
        transform: translate(
            -50%,
            calc(-100% + -25px)
        );
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-related .portfolio-card__overlay,
    .portfolio-related .portfolio-card__hover-content {
        transition: none;
    }
}

/* =========================================================
   Системные страницы: 404 и Спасибо
   ========================================================= */

.status-page {
    position: relative;
    display: flex;
    min-height: calc(100vh - 110px);
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #ffffff 55%,
            #f4f7fc 100%
        );
}

.status-page__container {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-height: 700px;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.status-page__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
}

.status-page__eyebrow {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 25px;
    color: var(--background);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-page__eyebrow::before {
    width: 70px;
    height: 2px;
    flex-shrink: 0;
    background-color: currentColor;
    content: "";
}

.status-page__title {
    max-width: 950px;
    margin: 0;
    color: #111;
    font-size: clamp(64px, 7vw, 118px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.status-page__title--number {
    color: var(--background);
    font-size: clamp(140px, 19vw, 290px);
    line-height: 0.8;
    letter-spacing: -0.08em;
}

.status-page__subtitle {
    max-width: 820px;
    margin: 35px 0 0;
    color: #111;
    font-size: clamp(26px, 3vw, 44px);
    font-weight: 600;
    line-height: 1.2;
}

.status-page__text {
    max-width: 680px;
    margin-top: 25px;
    color: #666;
    font-size: 18px;
    line-height: 1.65;
}

.status-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 45px;
}

.status-page__button {
    min-width: 230px;
}


/* =========================================================
   Декоративные элементы
   ========================================================= */

.status-page__decor {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: -7%;
    width: min(50vw, 760px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.status-page__circle {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.status-page__circle--large {
    inset: 0;
    border: 1px solid rgba(25, 103, 210, 0.16);
}

.status-page__circle--large::before,
.status-page__circle--large::after {
    position: absolute;
    border-radius: inherit;
    content: "";
}

.status-page__circle--large::before {
    inset: 12%;
    border: 1px solid rgba(25, 103, 210, 0.12);
}

.status-page__circle--large::after {
    inset: 27%;
    background-color: rgba(25, 103, 210, 0.06);
}

.status-page__circle--small {
    top: 6%;
    left: 5%;
    width: 80px;
    height: 80px;
    background-color: var(--background);
    opacity: 0.1;
}


/* =========================================================
   Иконка успешной отправки
   ========================================================= */

.status-page__success-icon {
    position: relative;
    display: flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    background-color: var(--background);
    border-radius: 50%;
    box-shadow:
        0 18px 45px
        rgba(25, 103, 210, 0.22);
}

.status-page__success-icon span {
    position: relative;
    width: 35px;
    height: 19px;
    border-bottom: 5px solid #fff;
    border-left: 5px solid #fff;
    transform: translateY(-4px) rotate(-45deg);
}


/* =========================================================
   Отличия страницы 404
   ========================================================= */

.status-page--404 .status-page__subtitle {
    margin-top: 50px;
}

.status-page--404 .status-page__decor {
    opacity: 0.85;
}


/* =========================================================
   Планшеты
   ========================================================= */

@media (max-width: 1024px) {
    .status-page {
        min-height: calc(100vh - 90px);
    }

    .status-page__container {
        min-height: 650px;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .status-page__content {
        max-width: 760px;
    }

    .status-page__decor {
        right: -22%;
        width: 70vw;
        opacity: 0.65;
    }
}


/* =========================================================
   Мобильные устройства
   ========================================================= */

@media (max-width: 767px) {
    .status-page {
        min-height: calc(100vh - 70px);
    }

    .status-page__container {
        min-height: 600px;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .status-page__content {
        max-width: 100%;
    }

    .status-page__eyebrow {
        gap: 15px;
        margin-bottom: 22px;
        font-size: 13px;
    }

    .status-page__eyebrow::before {
        width: 45px;
    }

    .status-page__title {
        font-size: clamp(52px, 15vw, 76px);
        line-height: 1;
    }

    .status-page__title--number {
        font-size: clamp(130px, 45vw, 210px);
        line-height: 0.82;
    }

    .status-page__subtitle,
    .status-page--404 .status-page__subtitle {
        margin-top: 30px;
        font-size: 27px;
    }

    .status-page__text {
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.55;
    }

    .status-page__actions {
        margin-top: 35px;
    }

    .status-page__button {
        width: 100%;
        min-width: 0;
    }

    .status-page__decor {
        top: auto;
        right: -45%;
        bottom: -15%;
        width: 110vw;
        transform: none;
        opacity: 0.5;
    }

    .status-page__success-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 28px;
    }

    .status-page__success-icon span {
        width: 29px;
        height: 16px;
        border-width: 0 0 4px 4px;
    }
}


/* =========================================================
   Небольшие мобильные устройства
   ========================================================= */

@media (max-width: 420px) {
    .status-page__container {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .status-page__subtitle,
    .status-page--404 .status-page__subtitle {
        font-size: 23px;
    }
}

/* =========================================================
   Отзывы — слайдер превью
   ========================================================= */

.reviews {
    position: relative;
    overflow: hidden;
}

.reviews__title {
    margin-bottom: 55px;
}

.reviews__slider {
    overflow: visible;
}

.reviews__wrapper {
    align-items: stretch;
}

/*
 * 4 карточки в видимой области.
 * Между ними используется spaceBetween: 24px
 * из initOfferSliders().
 */
.reviews .offers__slide.reviews__slide {
    width: calc((100% - 72px) / 4);
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
    color: inherit;
    background: transparent;
    border-radius: 0;
}

.reviews__item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 3 / 4;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
    background-color: #f5f5f7;
    border: 0;
    border-radius: 24px;
}

.reviews__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.reviews__item::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    content: "";
}

.reviews__item:hover::after,
.reviews__item:focus-visible::after {
    background-color: rgba(0, 0, 0, 0.24);
}

.reviews__item:hover .reviews__image,
.reviews__item:focus-visible .reviews__image {
    transform: scale(1.035);
}


/* =========================================================
   Иконка увеличения
   ========================================================= */

.reviews__zoom {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    background-color: var(--background);
    border-radius: 50%;
    opacity: 0;
    transform:
        translate(-50%, -40%)
        scale(0.8);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.reviews__zoom::before {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 50%;
    content: "";
}

.reviews__zoom::after {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 13px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transform: rotate(45deg);
    transform-origin: left center;
    content: "";
}

.reviews__item:hover .reviews__zoom,
.reviews__item:focus-visible .reviews__zoom {
    opacity: 1;
    transform:
        translate(-50%, -50%)
        scale(1);
}


/* =========================================================
   Навигация
   ========================================================= */

.reviews__controls.swiper-button-lock {
    display: none;
}


/* =========================================================
   Планшет
   ========================================================= */

@media (max-width: 1024px) {
    .reviews .offers__slide.reviews__slide {
        width: calc((100% - 24px) / 2);
    }
}


/* =========================================================
   Телефон
   ========================================================= */

@media (max-width: 600px) {
    .reviews__title {
        margin-bottom: 35px;
    }

    .reviews .offers__slide.reviews__slide {
        width: 100%;
    }

    .reviews__item {
        aspect-ratio: 4 / 5;
        border-radius: 20px;
    }
}

/* =========================================================
   Модальное окно
   ========================================================= */

.reviews-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.reviews-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.reviews-modal__backdrop {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
}

.reviews-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    height: min(880px, calc(100vh - 80px));
    height: min(880px, calc(100svh - 80px));
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s ease;
}

.reviews-modal.is-open .reviews-modal__dialog {
    transform: translateY(0) scale(1);
}

.reviews-modal__slider {
    width: 100%;
    height: 100%;
}

.reviews-modal__wrapper {
    align-items: center;
}

.reviews-modal__slide {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.reviews-modal__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
}


/* =========================================================
   Закрытие
   ========================================================= */

.reviews-modal__close {
    position: absolute;
    z-index: 5;
    top: -18px;
    right: -18px;
    width: 48px;
    height: 48px;
    padding: 0;
    cursor: pointer;
    background-color: #fff;
    border: 0;
    border-radius: 50%;
}

.reviews-modal__close::before,
.reviews-modal__close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #111;
    content: "";
}

.reviews-modal__close::before {
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}

.reviews-modal__close::after {
    transform:
        translate(-50%, -50%)
        rotate(-45deg);
}


/* =========================================================
   Стрелки
   ========================================================= */

.reviews-modal__arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 54px;
    height: 54px;
    padding: 0;
    cursor: pointer;
    background-color: #fff;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
}

.reviews-modal__arrow--prev {
    left: -80px;
}

.reviews-modal__arrow--next {
    right: -80px;
}

.reviews-modal__arrow::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #111;
    border-left: 2px solid #111;
    content: "";
}

.reviews-modal__arrow--prev::before {
    transform:
        translate(-35%, -50%)
        rotate(45deg);
}

.reviews-modal__arrow--next::before {
    transform:
        translate(-65%, -50%)
        rotate(225deg);
}

.reviews-modal__arrow.swiper-button-disabled {
    cursor: default;
    opacity: 0.35;
}


/* =========================================================
   Пагинация
   ========================================================= */

.reviews-modal__pagination {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: -28px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.reviews-modal__pagination
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background-color: #fff;
    opacity: 0.4;
}

.reviews-modal__pagination
.swiper-pagination-bullet-active {
    opacity: 1;
}


/* =========================================================
   Планшеты
   ========================================================= */

@media (max-width: 1100px) {
    .reviews__grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }

    .reviews-modal__arrow--prev {
        left: 20px;
    }

    .reviews-modal__arrow--next {
        right: 20px;
    }
}


/* =========================================================
   Мобильные устройства
   ========================================================= */

@media (max-width: 600px) {
    .reviews__title {
        margin-bottom: 35px;
    }

    .reviews__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .reviews__item {
        aspect-ratio: 4 / 5;
        border-radius: 20px;
    }

    .reviews-modal {
        padding: 20px;
    }

    .reviews-modal__dialog {
        height: calc(100svh - 80px);
    }

    .reviews-modal__close {
        top: -8px;
        right: -8px;
        width: 44px;
        height: 44px;
    }

    .reviews-modal__arrow {
        top: auto;
        bottom: 10px;
        width: 46px;
        height: 46px;
        transform: none;
    }

    .reviews-modal__arrow--prev {
        left: 20px;
    }

    .reviews-modal__arrow--next {
        right: 20px;
    }

    .reviews-modal__pagination {
        bottom: 27px;
    }
}


/* =========================================================
   Отключённые анимации
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .reviews__image,
    .reviews__zoom,
    .reviews-modal,
    .reviews-modal__dialog {
        transition: none;
    }
}

.developer {
    display: flex;
    align-items: center;
    margin-top: 25px;
    gap: 10px;
    color: #fff;
    font-size: 14px;
}

.developer__logo {
    line-height: 1;
}

.developer__logo img{
    width: 35px;
    height: auto;
}

.developer__links a {
    text-decoration: none;
}

/* =========================================================
   Сертификация
   ========================================================= */

.calculator__certification {
    position: relative;
    grid-column: 1 / -1;
    margin-top: 4px;
}

.calculator__checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.calculator__agreement {
    position: relative;
    display: flex;
    min-height: 24px;
    align-items: center;
    gap: 10px;
    padding-left: 38px;
    color: #959595;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0;
    cursor: pointer;
    user-select: none;
}

.calculator__agreement::before {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    content: "";
    transform: translateY(-50%);
}

.calculator__checkbox:checked
+ .calculator__agreement::before {
    background:
        url("data:image/svg+xml,%0A%3Csvg width='16' height='11' viewBox='0 0 16 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.35961 4.00188L6.75449 9.26391L15.0784 0.620314' stroke='%23116a6d' stroke-width='1.5'/%3E%3C/svg%3E%0A")
        #fff
        center
        no-repeat;
}

.calculator__checkbox:focus-visible
+ .calculator__agreement::before {
    outline: 2px solid var(
        --background,
        #116a6d
    );
    outline-offset: 3px;
}

.calculator__agreement-title {
    color: #111;
    font-weight: 500;
}

.calculator__agreement-price {
    color: var(
        --background,
        #116a6d
    );
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .calculator__certification {
        grid-column: auto;
    }

    .calculator__agreement {
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
        gap: 4px;
    }
}

@media (max-width: 767px) {
    .header.header--menu-open {
        position: fixed;
        z-index: 9999;
        inset: 0;
        width: 100%;
        height: var(
            --mobile-viewport-height,
            100dvh
        );
        overflow: hidden;
        background-color: #fff;
    }

    .header.header--menu-open
    .header__container {
        height: 100%;
    }

    .header.header--menu-open
    .header__panel {
        display: flex;
        width: 100%;
        height: 100%;
        min-height: 100%;
        flex-direction: column;
        overflow: hidden;
        background-color: #fff;
    }

    .header.header--menu-open
    .header__top {
        flex: 0 0 auto;
    }

    .header.header--menu-open
    .header__nav {
        display: block;
        min-height: 0;
        flex: 1 1 auto;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background-color: #fff;
    }

    body.mobile-menu-open {
        overflow: hidden;
        touch-action: none;
    }
}

.quiz-builder {
    position: relative;
    width: 100%;
}

.quiz-builder,
.quiz-builder * {
    box-sizing: border-box;
}

.quiz-builder .quiz-builder__main,
.quiz-builder .question,
.quiz-builder form {
    flex-direction: column;
    align-items: center;
}

.quiz-builder .quiz-builder__main {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    padding-top: 140px;
}

.quiz-builder__title {
    background-color: var(--background);
    font-weight: 500;
    border-radius: 30px 30px 0 0;
    font-size: 30px;
    line-height: 1.3;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    min-height: 90px;
    padding: 15px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
}

.quiz-builder form,
.quiz-builder .question {
    width: 100%;
}

.quiz-builder form {
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 30px 0;
}

.quiz-builder .question {
    display: none;
    max-width: 900px;
    flex-shrink: 0;
    margin-right: 15px;
    margin-left: 15px;
    padding: 45px 40px;
    border-radius: 0px 0px 30px 30px;
    box-shadow:
        0 15px 10px -15px rgba(0, 0, 0, 0.1),
        1px 2px 20px rgba(0, 0, 0, 0.1);
}

.quiz-builder .question.active {
    display: flex;
}

.quiz-builder .result.question {
    padding: 45px 35px;
}

.quiz-builder .question_steps,
.quiz-builder .question_title {
    margin-bottom: 8px;
    color: #000;
    font-family: "Public Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 120%;
    text-align: center;
}

.quiz-builder .question_title {
    display: inline-block;
    margin-bottom: 34px;
    font-size: 24px;
    font-weight: 700;
}

.quiz-builder .question_body {
    display: flex;
    width: 100%;
    flex-flow: row wrap;
    justify-content: space-between;
}

.quiz-builder .question_body__gap {
    gap: 16px;
}

.quiz-builder .result .question_body {
    max-width: 460px;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.quiz-builder .question_checkbox,
.quiz-builder .contact-form__checkbox {
    display: none;
}

.quiz-builder .question_answer {
    flex: 0 0 calc(50% - 8px);
}

.quiz-builder .question_answer span {
    position: relative;
    display: flex;
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3.25rem;
    border: 1px solid rgba(217, 216, 230, 0.55);
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: box-shadow 0.15s ease-out;
    will-change: box-shadow;
}

.quiz-builder .question_answer span::before,
.quiz-builder .question_answer span::after {
    position: absolute;
    top: 50%;
    left: 1rem;
    width: 1.25em;
    height: 1.25em;
    border-radius: 50%;
    content: "";
}

.quiz-builder .question_answer span::before {
    border: 2px solid #e8e8e8;
    background-color: #e8e8e8;
    transform: translateY(-50%);
    transition: background 0.15s ease-out;
}

.quiz-builder .question_answer span::after {
    background-color: transparent;
    transform: translateY(-50%) scale(0);
    transition: transform 0.15s ease-out;
}

.quiz-builder .question_answer input:checked + span {
    border-color: #f03226;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quiz-builder .question_answer input:checked + span::before {
    border-color: #f03226;
    background: #fff;
    box-shadow: 0 2px 6px rgba(211, 64, 133, 0.5);
}

.quiz-builder .question_answer input:checked + span::after {
    background-color: #f03226;
    transform: translateY(-50%) scale(0.5);
}

.quiz-builder .question_text-input {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    padding: 14px 20px;
    border: 1px solid rgba(148, 148, 148, 0.4);
    border-radius: 30px;
    background: #fff;
    color: #000;
    font-family: "Public Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    cursor: text;
}

.quiz-builder .question_text-input.invalid {
    background:
        url("data:image/svg+xml,%0A%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 7L7 17' stroke='%23DC5858' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M17 17L7 7' stroke='%23DC5858' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E%0A") 98% center no-repeat,
        #fff;
}

.quiz-builder .question_text-input.valid {
    background:
        url("data:image/svg+xml,%0A%3Csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.646 14.818a.5.5 0 00.707 0l8.132-8.132A1 1 0 1119.9 8.1l-9.193 9.193a1 1 0 01-1.414 0l-4.95-4.95a1 1 0 111.414-1.414l3.89 3.89z' fill='%2315AF40'/%3E%3C/svg%3E") 98% center no-repeat,
        #fff;
}

.quiz-builder .question_text-input::-webkit-inner-spin-button,
.quiz-builder .question_text-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.quiz-builder .question_text-input[type="number"] {
    -moz-appearance: textfield;
}

.quiz-builder .question_text-input::placeholder {
    color: #939393;
    font-family: "Public Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.quiz-builder .question_prompt {
    color: #929292;
    font-size: 15px;
}

.quiz-builder .question_attention,
.quiz-builder .question_protection {
    font-family: "Public Sans", sans-serif;
    font-style: normal;
    line-height: 120%;
}

.quiz-builder .question_attention {
    display: inline-block;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 22px;
    color: #959595;
    font-size: 14px;
    font-weight: 300;
    text-align: center;
}

.quiz-builder .question_protection {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #bd4d4e;
    font-size: 16px;
    font-weight: 400;
    margin-top: 15px;
}

.quiz-builder .question_protection svg {
    flex: 0 0 auto;
    margin-right: 12px;
}

.quiz-builder .contact-form__confirm {
    width: 100%;
}

.quiz-builder .contact-form__agreement {
    position: relative;
    display: inline-block;
    margin-bottom: 26px;
    padding-left: 36px;
    color: #959595;
    font-family: "Public Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    text-align: left;
    cursor: pointer;
}

.quiz-builder .contact-form__agreement a {
    color: #f03226;
    text-decoration: none;
}

.quiz-builder .contact-form__agreement::before {
    position: absolute;
    top: calc(50% - 12px);
    left: 0;
    z-index: 1;
    display: block;
    width: 24px;
    height: 24px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: transparent;
    content: "";
}

.quiz-builder .contact-form__checkbox:checked + .contact-form__agreement::before {
    background:
        url("data:image/svg+xml,%0A%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.799805 3.99971L4.53314 6.79971L9.19981 1.19971' stroke='%23f03226'/%3E%3C/svg%3E%0A") center no-repeat;
    background-size: 90%;
}

.quiz-builder .question_pagination {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 34px;
}

.quiz-builder .first-question .question_pagination {
    justify-content: flex-end;
    padding-right: 0;
    padding-left: 0;
}

.quiz-builder .question_prev {
    margin-bottom: 1px;
    border-bottom: 1px solid #2b4fa9;
    color: #2b4fa9;
    font-family: "Public Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 120%;
    cursor: pointer;
}

/* Этот элемент может создаваться скриптом валидации квиза. */
.quiz-builder .valid-error {
    position: relative;
    z-index: -5;
    display: inline-block;
    width: 100%;
    color: #cb3d54;
    font-size: 11px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.quiz-builder .valid-error.active {
    z-index: 2;
    opacity: 1;
}

.quiz-builder .valid-error div {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 5px;
    border-radius: 4px;
    background: #df2f23;
    color: #fff;
    font-size: 11px;
}

.quiz-builder .valid-error div::before {
    position: absolute;
    top: -9px;
    left: 50%;
    display: block;
    width: 18px;
    height: 9px;
    background: url("data:image/svg+xml,%0A%3Csvg width='18' height='9' viewBox='0 0 18 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.375 0L0 9H18L9.375 0Z' fill='%23df2f23'/%3E%3C/svg%3E%0A") center no-repeat;
    content: "";
    transform: translateX(-50%);
}

.quiz-builder input:focus-visible {
    outline: none;
}

.quiz-builder .disable_page {
    position: fixed;
    inset: 0;
    z-index: 99999999;
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 15px;
    padding-left: 15px;
    background: #fff;
    font-family: "Public Sans", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 120%;
    text-align: center;
}

.quiz-builder .disable_page span {
    margin-top: 5px;
    font-weight: 400;
}

.quiz-builder .disable_page.active {
    display: flex;
}

@media (max-width: 767px) {
    .quiz-builder .quiz-builder__main {
        justify-content: flex-start;
        padding-top: 100px;
    }

    .quiz-builder .result.question {
        padding: 24px 12px;
    }

    .quiz-builder .question {
        width: calc(100% - 15px);
        max-width: none;
        padding: 24px 15px;
    }

    .quiz-builder__title {
        width: calc(100% - 15px);
        max-width: none;
        min-height: 75px;
        font-size: 21px;
        padding: 10px;
    }

    .quiz-builder .question_steps,
    .quiz-builder .question_title {
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 120%;
    }

    .quiz-builder .question_title {
        margin-bottom: 24px;
        font-size: 18px;
    }

    .quiz-builder .question_body {
        width: 100%;
        flex-direction: column;
        padding: 0;
    }

    .quiz-builder .question_body__gap {
        gap: 8px;
    }

    .quiz-builder .question_answer {
        width: 100%;
        flex-basis: auto;
    }

    .quiz-builder .result .question_body {
        padding: 0;
    }

    .quiz-builder .question_pagination {
        margin-top: 14px;
        padding-right: 0;
        padding-left: 0;
    }

    .quiz-builder .first-question .question_pagination {
        justify-content: flex-end;
        margin-top: 100px;
    }

    .quiz-builder .question_prev,
    .quiz-builder .question_text-input {
        font-size: 16px;
    }

    .quiz-builder .question_text-input {
        width: 100%;
        margin-bottom: 10px;
    }

    .quiz-builder .question_attention {
        font-size: 14px;
    }

    .quiz-builder .question_attention br {
        display: none;
    }

    .quiz-builder .disable_page {
        font-size: 18px;
    }
}
/* =========================================================
   AI CHAT — iOS Safari / mobile viewport stabilization
   ========================================================= */
@media (max-width: 767px) {
    .popup-chat.popup-chat--active:not(.popup-chat--collapsed) .popup-chat__container {
        overflow: hidden !important;
        overscroll-behavior: none;
        transform: none !important;
        -webkit-transform: none !important;
    }

    .popup-chat.popup-chat--active:not(.popup-chat--collapsed) .popup-chat__body {
        min-height: 0 !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .popup-chat.popup-chat--active:not(.popup-chat--collapsed) .popup-chat__footer {
        flex-shrink: 0;
    }

    /* iOS не должен масштабировать страницу при фокусе на textarea. */
    .popup-chat__input {
        font-size: 16px !important;
    }
}
