/*
 * ====================================================================
 * page.css — калькулятор стоимости
 * ====================================================================
 *
 * Внутренняя страница в оболочке mosaic: светлый фон, белые карточки,
 * акцент #EB4036, шрифты Unbounded / Rubik.
 */

html.mw-calc {
    --mw-calc-accent: #EB4036;
    --mw-calc-accent-hover: #d6362c;
    --mw-calc-ink: #131a1e;
    --mw-calc-muted: rgba(19, 26, 30, 0.62);
    --mw-calc-line: rgba(19, 26, 30, 0.12);
    --mw-calc-card: #ffffff;
    --mw-calc-page: #efefef;
}

html.mw-calc,
html.mw-calc body {
    overflow-x: hidden;
}

/* ----- Шапка контента (крошки + заголовок) ----- */
html.mw-calc .mw-calc-shell {
    background: var(--mw-calc-page);
    color: var(--mw-calc-ink);
    font-family: Rubik, sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

html.mw-calc .mw-calc-shell__inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 0 32px;
    box-sizing: border-box;
}

html.mw-calc .mw-calc-shell__wide {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 64px;
    box-sizing: border-box;
}

html.mw-calc .mosaic-crumbs--u-il34i0uoy {
    margin-bottom: 16px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

html.mw-calc .mosaic-crumbs__item_link--u-ik176n4nq {
    color: var(--mw-calc-accent);
    opacity: 1;
    text-decoration: none;
}

html.mw-calc .mosaic-crumbs__item_link--u-ik176n4nq:hover {
    color: var(--mw-calc-accent-hover);
}

html.mw-calc .mosaic-crumbs__last--u-id4cppw9k {
    color: var(--mw-calc-ink);
    opacity: 1;
}

html.mw-calc .page-title--u-id4ryxzo8 {
    color: var(--mw-calc-ink);
    max-width: 100%;
    overflow-wrap: anywhere;
    margin-bottom: 12px;
}

html.mw-calc .mw-calc-lead {
    margin: 0 0 32px;
    max-width: 46rem;
    color: var(--mw-calc-muted);
    font-size: 18px;
    line-height: 1.55;
}

html.mw-calc .mw-calc-lead strong {
    color: var(--mw-calc-ink);
    font-weight: 500;
}

html.mw-calc .mw-calc-banner {
    margin-bottom: 28px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--mw-calc-line);
    background: #fff;
}

html.mw-calc .mw-calc-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
}

/* ----- Сетка формы / результата ----- */
html.mw-calc .mw-calc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: start;
}

html.mw-calc .mw-calc-card {
    background: var(--mw-calc-card);
    border: 1px solid var(--mw-calc-line);
    border-radius: 20px;
    padding: 28px;
    box-sizing: border-box;
    min-width: 0;
}

html.mw-calc .mw-calc-card__title {
    margin: 0 0 20px;
    font-family: Unbounded, sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.25;
    color: var(--mw-calc-ink);
}

html.mw-calc .mw-calc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

html.mw-calc .mw-calc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

html.mw-calc .mw-calc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

html.mw-calc .mw-calc-field--full {
    grid-column: 1 / -1;
}

html.mw-calc .mw-calc-label {
    font-size: 15px;
    line-height: 1.3;
    color: var(--mw-calc-muted);
}

html.mw-calc .mw-calc-input,
html.mw-calc .mw-calc-select,
html.mw-calc .mw-calc-textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 56px;
    padding: 14px 18px;
    border: 1px solid var(--mw-calc-line);
    border-radius: 12px;
    background: #f7f7f8;
    color: var(--mw-calc-ink);
    font-family: Rubik, sans-serif;
    font-size: 17px;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

html.mw-calc .mw-calc-textarea {
    min-height: 110px;
    resize: vertical;
}

html.mw-calc .mw-calc-input:focus,
html.mw-calc .mw-calc-select:focus,
html.mw-calc .mw-calc-textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--mw-calc-accent);
    box-shadow: 0 0 0 1px var(--mw-calc-accent);
}

html.mw-calc .mw-calc-input::placeholder,
html.mw-calc .mw-calc-textarea::placeholder {
    color: rgba(19, 26, 30, 0.4);
}

html.mw-calc .mw-calc-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 28px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: var(--mw-calc-accent);
    color: #fff;
    font-family: Unbounded, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

html.mw-calc .mw-calc-submit:hover {
    background: var(--mw-calc-accent-hover);
}

html.mw-calc .mw-calc-submit:active {
    transform: scale(0.98);
}

/* ----- Квиз-калькулятор ----- */
html.mw-calc .mw-calc-quiz-wrap {
    width: 100%;
    max-width: none;
    margin-bottom: 28px;
}

html.mw-calc .mw-calc-quiz {
    min-width: 0;
    padding: 36px 40px;
}

html.mw-calc .mw-calc-quiz__progress {
    margin-bottom: 24px;
}

html.mw-calc .mw-calc-quiz__progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-family: Rubik, sans-serif;
    font-size: 14px;
    line-height: 1.3;
}

html.mw-calc .mw-calc-quiz__step-label {
    color: var(--mw-calc-ink);
    font-weight: 500;
}

html.mw-calc .mw-calc-quiz__percent {
    color: var(--mw-calc-accent);
    font-weight: 600;
    flex-shrink: 0;
}

html.mw-calc .mw-calc-quiz__progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(19, 26, 30, 0.1);
    overflow: hidden;
}

html.mw-calc .mw-calc-quiz__progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mw-calc-accent) 0%, #ff6b62 100%);
    transition: width 0.35s ease;
}

html.mw-calc .mw-calc-quiz__panels {
    min-height: 280px;
}

html.mw-calc .mw-calc-quiz__step {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

html.mw-calc .mw-calc-quiz__step:not(.is-active) {
    display: none;
}

html.mw-calc .mw-calc-quiz__step.is-error .mw-calc-quiz__options {
    animation: mw-calc-shake 0.35s ease;
}

@keyframes mw-calc-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

html.mw-calc .mw-calc-quiz__question {
    margin: 0 0 28px;
    padding: 0;
    font-family: Unbounded, sans-serif;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--mw-calc-ink);
    letter-spacing: -0.02em;
}

html.mw-calc .mw-calc-quiz__lead {
    margin: -8px 0 18px;
    color: var(--mw-calc-muted);
    font-size: 15px;
    line-height: 1.45;
}

html.mw-calc .mw-calc-quiz__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

html.mw-calc .mw-calc-quiz__options input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

html.mw-calc .mw-calc-quiz__option {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 16px 22px;
    border: 1px solid var(--mw-calc-line);
    border-radius: 16px;
    background: #f7f7f8;
    color: var(--mw-calc-ink);
    font-family: Rubik, sans-serif;
    font-size: 17px;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

html.mw-calc .mw-calc-quiz__option:hover {
    border-color: rgba(235, 64, 54, 0.35);
    background: #fff;
}

html.mw-calc .mw-calc-quiz__options input:checked + .mw-calc-quiz__option {
    border-color: var(--mw-calc-accent);
    background: #fff;
    box-shadow: 0 0 0 1px var(--mw-calc-accent);
}

html.mw-calc .mw-calc-quiz__option-text {
    display: block;
    width: 100%;
}

html.mw-calc .mw-calc-quiz__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 560px;
}

html.mw-calc .mw-calc-label em {
    color: var(--mw-calc-accent);
    font-style: normal;
}

html.mw-calc .mw-calc-quiz__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--mw-calc-muted);
    font-family: Rubik, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

html.mw-calc .mw-calc-quiz__check input {
    appearance: none;
    -webkit-appearance: none;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(19, 26, 30, 0.28);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

html.mw-calc .mw-calc-quiz__check input:checked {
    background: var(--mw-calc-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M3 8.5 6.5 12 13 4'/%3E%3C/svg%3E") center / 11px no-repeat;
    border-color: var(--mw-calc-accent);
}

html.mw-calc .mw-calc-quiz__check a {
    color: var(--mw-calc-accent);
}

html.mw-calc .mw-calc-quiz__msg {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

html.mw-calc .mw-calc-quiz__msg.is-ok {
    background: #e8f6ec;
    color: #1b5e20;
}

html.mw-calc .mw-calc-quiz__msg.is-err {
    background: #fdeceb;
    color: #8f1818;
}

html.mw-calc .mw-calc-quiz__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--mw-calc-line);
}

html.mw-calc .mw-calc-quiz__nav[hidden] {
    display: none !important;
}

html.mw-calc .mw-calc-quiz__back[hidden],
html.mw-calc .mw-calc-quiz__next[hidden] {
    display: none !important;
}

html.mw-calc .mw-calc-quiz__back,
html.mw-calc .mw-calc-quiz__next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 120px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: Rubik, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

html.mw-calc .mw-calc-quiz__back {
    border: 1px solid var(--mw-calc-line);
    background: #fff;
    color: var(--mw-calc-ink);
}

html.mw-calc .mw-calc-quiz__back:hover {
    border-color: rgba(19, 26, 30, 0.25);
}

html.mw-calc .mw-calc-quiz__next {
    margin-left: auto;
    border: 0;
    background: var(--mw-calc-accent);
    color: #fff;
}

html.mw-calc .mw-calc-quiz__next:hover {
    background: var(--mw-calc-accent-hover);
}

html.mw-calc .mw-calc-quiz__success {
    text-align: center;
    padding: 24px 8px 8px;
}

html.mw-calc .mw-calc-quiz__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(235, 64, 54, 0.12);
    color: var(--mw-calc-accent);
    font-size: 32px;
}

html.mw-calc .mw-calc-quiz__success-title {
    margin: 0 0 10px;
    font-family: Unbounded, sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--mw-calc-ink);
}

html.mw-calc .mw-calc-quiz__success-text {
    margin: 0 0 20px;
    color: var(--mw-calc-muted);
    font-size: 16px;
    line-height: 1.5;
}

html.mw-calc .mw-calc-quiz__success-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--mw-calc-accent);
    color: #fff !important;
    text-decoration: none;
    font-family: Rubik, sans-serif;
    font-weight: 500;
}

html.mw-calc .mw-calc-quiz__success-link:hover {
    background: var(--mw-calc-accent-hover);
}

html.mw-calc .mw-calc-total {
    margin: 0;
    font-family: Unbounded, sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--mw-calc-accent);
}

html.mw-calc .mw-calc-hint {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--mw-calc-muted);
}

html.mw-calc .mw-calc-explanations {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--mw-calc-line);
}

html.mw-calc .mw-calc-explanations.is-hidden,
html.mw-calc .mw-calc-notice.is-hidden {
    display: none;
}

html.mw-calc .mw-calc-explanations__title {
    margin: 0 0 12px;
    font-family: Unbounded, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--mw-calc-ink);
}

html.mw-calc .mw-calc-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

html.mw-calc .mw-calc-breakdown__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
}

html.mw-calc .mw-calc-breakdown__row span:first-child {
    color: var(--mw-calc-muted);
}

html.mw-calc .mw-calc-breakdown__row span:last-child {
    color: var(--mw-calc-ink);
    font-weight: 500;
    text-align: right;
}

html.mw-calc .mw-calc-breakdown__row--total span:last-child {
    color: var(--mw-calc-accent);
}

html.mw-calc .mw-calc-meta,
html.mw-calc .mw-calc-note {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--mw-calc-line);
    background: #f7f7f8;
    font-size: 13px;
    line-height: 1.45;
    color: var(--mw-calc-muted);
}

html.mw-calc .mw-calc-meta strong,
html.mw-calc .mw-calc-note strong {
    color: var(--mw-calc-ink);
    font-weight: 500;
}

html.mw-calc .mw-calc-meta ul {
    margin: 8px 0 0;
    padding-left: 1.1em;
}

html.mw-calc .mw-calc-notice {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--mw-calc-line);
    font-size: 14px;
    line-height: 1.4;
}

html.mw-calc .mw-calc-notice.is-success {
    border-color: rgba(34, 140, 80, 0.35);
    background: rgba(34, 140, 80, 0.08);
    color: #1f6b40;
}

html.mw-calc .mw-calc-notice.is-error {
    border-color: rgba(235, 64, 54, 0.35);
    background: rgba(235, 64, 54, 0.08);
    color: #b12f28;
}

/* ----- SEO-блок ----- */
html.mw-calc .mw-calc-seo {
    margin-top: 28px;
    padding: 36px 40px;
}

html.mw-calc .mw-calc-seo__title {
    margin: 0 0 12px;
    font-family: Unbounded, sans-serif;
    font-weight: 500;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.25;
    color: var(--mw-calc-ink);
}

html.mw-calc .mw-calc-seo__title:not(:first-child) {
    margin-top: 28px;
}

html.mw-calc .mw-calc-seo p {
    margin: 0 0 16px;
    color: var(--mw-calc-muted);
}

html.mw-calc .mw-calc-seo a {
    color: var(--mw-calc-accent);
    text-decoration: none;
}

html.mw-calc .mw-calc-seo a:hover {
    text-decoration: underline;
}

html.mw-calc .mw-calc-seo__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin: 8px 0 8px;
}

html.mw-calc .mw-calc-seo h3 {
    margin: 0 0 10px;
    font-family: Unbounded, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--mw-calc-ink);
}

html.mw-calc .mw-calc-seo ul {
    margin: 0;
    padding-left: 1.15em;
    color: var(--mw-calc-muted);
    font-size: 15px;
}

html.mw-calc .mw-calc-seo li + li {
    margin-top: 6px;
}

html.mw-calc .mw-calc-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

html.mw-calc .mw-calc-faq__item {
    border: 1px solid var(--mw-calc-line);
    border-radius: 14px;
    background: #f7f7f8;
    padding: 14px 16px;
}

html.mw-calc .mw-calc-faq__item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: Unbounded, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--mw-calc-ink);
}

html.mw-calc .mw-calc-faq__item summary::-webkit-details-marker {
    display: none;
}

html.mw-calc .mw-calc-faq__item summary i {
    flex-shrink: 0;
    color: var(--mw-calc-accent);
    font-size: 20px;
    transition: transform 0.2s ease;
}

html.mw-calc .mw-calc-faq__item[open] summary i {
    transform: rotate(180deg);
}

html.mw-calc .mw-calc-faq__item p {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--mw-calc-muted);
}

html.mw-calc .mw-calc-seo__links {
    margin-top: 24px;
    font-size: 14px;
    color: var(--mw-calc-muted);
}

/* Попапы / меню — бренд */
html.mw-calc .mosaic-popup__close--u-izbayip7a,
html.mw-calc .side-panel__button-close--u-iki0lgea4,
html.mw-calc .side-panel__button-open--u-izkrt33zv {
    background-color: #EB4036 !important;
    background-image: none !important;
}

html.mw-calc .div--u-i7w4ftx7p,
html.mw-calc .mosaic-form--u-if8bri88i .div--u-i7w4ftx7p,
html.mw-calc .div--u-ifqtfrgl2 {
    background-color: #EB4036 !important;
    background-image: none !important;
}

html.mw-calc .div--u-ijdnwz0fa,
html.mw-calc .div--u-i9r512qsz {
    background-color: #d6362c !important;
}

@media (max-width: 991px) {
    html.mw-calc .mw-calc-shell__inner {
        padding: 40px 0 24px;
    }

    html.mw-calc .mw-calc-shell__wide {
        padding-bottom: 56px;
    }

    html.mw-calc .mw-calc-quiz {
        padding: 28px 24px;
    }

    html.mw-calc .mw-calc-seo {
        padding: 28px 24px;
    }

    html.mw-calc .mw-calc-grid,
    html.mw-calc .mw-calc-seo__cols {
        grid-template-columns: minmax(0, 1fr);
    }

    html.mw-calc .container--u-itjr1b602 {
        padding-right: 84px;
        box-sizing: border-box;
    }

    html.mw-calc .side-panel__button-open--u-izkrt33zv {
        margin-right: 16px;
        margin-top: 12px;
    }
}

@media (max-width: 767px) {
    html.mw-calc .mw-calc-shell__inner {
        padding: 36px 0 20px;
    }

    html.mw-calc .mw-calc-shell__wide {
        padding-bottom: 48px;
    }

    html.mw-calc .mw-calc-quiz__options {
        grid-template-columns: minmax(0, 1fr);
    }

    html.mw-calc .mw-calc-card {
        padding: 20px;
        border-radius: 16px;
    }

    html.mw-calc .mw-calc-quiz__nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    html.mw-calc .mw-calc-quiz__back,
    html.mw-calc .mw-calc-quiz__next {
        width: 100%;
        min-width: 0;
    }

    html.mw-calc .mw-calc-quiz__next {
        margin-left: 0;
    }

    html.mw-calc .mw-calc-row {
        grid-template-columns: minmax(0, 1fr);
    }

    html.mw-calc .mw-calc-submit {
        width: 100%;
    }

    html.mw-calc .container--u-itjr1b602 {
        padding-right: 72px;
        align-items: flex-start;
    }

    html.mw-calc .div--u-i70mq0jc1 {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    html.mw-calc .mosaic-popup--u-i2sta0m98,
    html.mw-calc .mosaic-popup__inner-bg--u-i9xqong4o {
        padding: 12px;
        box-sizing: border-box;
    }

    html.mw-calc .mosaic-form--u-if8bri88i {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100%;
        padding: 48px 20px 28px !important;
        box-sizing: border-box;
    }
}

@media (max-width: 479px) {
    html.mw-calc .mw-calc-card__title {
        font-size: 18px;
    }

    html.mw-calc .mw-calc-total {
        font-size: 1.75rem;
    }

    html.mw-calc .container--u-itjr1b602 {
        padding-right: 64px;
    }

    html.mw-calc .side-panel__button-open--u-izkrt33zv {
        width: 48px;
        min-height: 48px;
        margin-right: 12px;
        margin-top: 10px;
    }
}
