/* Оформление калькулятора, общие поля и обработчики сохранены. */
.calculator-crumbs {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 64px;
    color: #a6a6a6;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
}
.calculator-crumbs a { color: var(--green); }
.site__main:has(.calc) { background: #fff; }
.calc-hero { padding: 38px 0 146px; background: #bc9ac6; }
.calc-hero__title { margin-bottom: 16px; font-size: 32px; line-height: 1.15; }
.calc-hero__text { font-family: "Roboto", sans-serif; font-weight: 300; }
.calc { margin-top: -116px; padding-bottom: 90px; position: relative; isolation: isolate; }
.calc__layout {
    width: 100%;
    max-width: 1232px;
    margin-inline: auto;
    grid-template-columns: minmax(0, 894fr) minmax(0, 280fr);
    gap: 10px;
}
.calc__main { gap: 16px; border: 0; border-radius: 0; background: transparent; }
.calc__configuration, .calc-order {
    min-width: 0;
    border: 1px solid var(--green);
    border-radius: 13px;
    background: #fff;
}
.calc-step { padding: 40px 36px; min-width: 0; }
.calc-step[data-calc-step="1"] { padding-bottom: 0; }
.calc-step[data-calc-step="2"] { padding: 40px 68px 48px; }
.calc-step[data-calc-step="3"] { padding-top: 32px; padding-bottom: 64px; }
.calc-step__head { gap: 24px; margin-bottom: 28px; }
.calc-step__titles { flex: 1 1 auto; gap: 46px; min-width: 0; }
.calc-step__num, .calc-step__title { line-height: 1.2; }
.calc-step__pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 287px;
    max-width: none;
    flex-shrink: 0;
    padding: 8px 20px;
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0;
    white-space: pre-line;
}
.calc-types { width: 100%; min-width: 0; max-width: 100%; margin-bottom: 53px; }
.calc-types .swiper-wrapper { min-width: 0; align-items: center; }
.calc-types .swiper-slide, .calc-types__icon, .calc-types__svg { min-width: 0; }
.calc-types__icon { height: 106px; padding: 12px 4px; }
.calc-types__svg { width: 100%; display: flex; align-items: center; justify-content: center; }
.calc-types__svg svg { flex: 0 1 auto; max-width: 100%; max-height: 76px; }
.calc-types__icon { transition: border-color 180ms ease; }
.calc-types__nav {
    color: var(--violet);
    background: #fff;
    width: 24px;
    border-radius: 0;
}
.calc-types__nav--prev { left: 0; }
.calc-types__nav--next { right: 0; }
.calc-builder { padding: 60px 44px 30px 70px; }
.calc-builder__top {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 43px;
    gap: 16px;
    margin-bottom: 10px;
}
.calc-builder__top .calc-builder__hint { position: absolute; left: 0; top: -1px; }
.calc-builder__top .calc-builder__line { width: auto; min-width: 0; }
.calc-builder__top .calc-builder__hint + .calc-builder__line { margin-left: 166px; }
.calc-builder__stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    height: 416px;
    gap: 0;
    margin-bottom: 6px;
}
.calc-builder__spacer { display: none; }
.calc-builder__preview {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 524px;
    width: 524px;
    max-width: calc(100% - 150px);
    min-width: 0;
    height: 416px;
}
.calc-builder__preview > img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* Координаты значков отсчитываются от самого изображения окна. */
.calc-builder__badges {
    inset: auto;
    display: block;
    visibility: hidden;
}
.calc-builder__badge {
    position: absolute;
    padding: 0;
    border-radius: 0;
    background: transparent;
    transform: none;
    transition: opacity 0.3s ease-in-out;
}
.calc-builder__badge-icon {
    position: absolute;
    left: var(--badge-x, 50%);
    top: var(--badge-y, 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px;
    border-radius: 30px;
    background: var(--white);
    transform: translate(-50%, -50%);
}
.calc-builder__badge:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}
.calc-builder__badge img { width: 28px; height: 28px; }
.calc-dim__div {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    height: 100%;
    width: 120px;
}
.calc-dim__div::before, .calc-dim__div::after {
    top: 0;
    right: 0;
    width: 1px;
    height: calc(50% - 60px);
}
.calc-dim__div::before { top: 7px; }
.calc-dim__div::after { top: auto; bottom: 51px; height: calc(50% - 95px); }
.calc-builder__stage .calc-dim--h { margin: 0; }
.calc-builder__top .calc-dim .calc-dim__input,
.calc-builder__stage .calc-dim--h .calc-dim__input {
    width: 91px;
    min-height: 43px;
    border-radius: 22px;
    appearance: textfield;
    -moz-appearance: textfield;
}
.calc-dim__input::-webkit-outer-spin-button,
.calc-dim__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-open {
    grid-template-columns: minmax(142px, 200px) repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
    align-items: start;
}
.calc-open__hint { margin: 0; }
.calc-open__field { min-width: 0; }
.calc-open__select { min-width: 0; padding-right: 24px; background-size: 8px 5px; }
.calc [hidden] { display: none !important; }
.calc-glass-slider { position: relative; min-width: 0; }
.calc-glass { display: block; width: 100%; min-width: 0; }
.calc-glass:not(.swiper-initialized) > .swiper-wrapper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc-glass__item { position: relative; min-width: 0; height: auto; padding: 8px 4px 16px; gap: 6px; }
.calc-glass__media { height: 208px; min-height: 0; padding: 0; border: 0; }
.calc-glass__media img { max-height: 244px; max-width: 100%; }
.calc-glass__input:checked + .calc-glass__media { background: transparent; border: 0; }
.calc-glass__item::after {
    content: "";
    position: absolute;
    inset: 0 8px;
    border: 1px solid transparent;
    border-radius: 5px;
    pointer-events: none;
}
.calc-glass__item:has(.calc-glass__input:checked)::after { border-color: var(--orange); }
.calc-glass__item:has(.calc-glass__input:checked)::before {
    content: "";
    width: 13px;
    height: 10px;
    background: url("../images/calculate/extras-check.svg") center / contain no-repeat;
    position: absolute;
    right: 12px;
    top: 4px;
    color: var(--orange);
    font-size: 16px;
}
.calc-glass__nav {
    display: none;
    position: absolute;
    top: calc(50% - 22px);
    z-index: 2;
    padding: 0;
    width: 28px;
    height: 44px;
    border: 0;
    background: #fff;
    color: var(--violet);
    font-size: 34px;
    cursor: pointer;
}
.calc-glass__nav--prev { left: -14px; }
.calc-glass__nav--next { right: -14px; }
.calc-glass__nav.swiper-button-disabled { opacity: .3; }
.calc-types__nav img { display: none; }
.calc-types__nav::before { content: ""; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.calc-types__nav--prev::before { transform: rotate(-135deg); }
.calc-extras { gap: 10px; }
.calc-extras__card { border-color: transparent; border-radius: 5px; min-width: 0; }
.calc-extras__icon { width: 100%; max-width: 100px; height: 84px; overflow: visible; }
.calc-extras__icon img { max-height: 84px; }
.calc-order { padding: 40px 68px 64px; }
.calc-cart__item { box-shadow: none; }
.calc-cart__item--editing { box-shadow: none; }
.calc-cart__add { display: flex; justify-content: flex-end; align-items: center; gap: 32px; }
.calc-lead::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 -68px -154px;
    background: var(--green);
    box-shadow: 0 0 0 100vmax var(--green);
    clip-path: inset(0 -100vmax);
    pointer-events: none;
}
.calc-lead { position: relative; }
.calc-lead__form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc-lead__field, .calc-lead__submit { min-width: 0; width: 100%; }
.calc-aside { min-width: 0; }
.calc-aside { gap: 10px; }
.calc-aside__card { border: 0; }
.calc-aside__photo { height: auto; aspect-ratio: 282 / 276; }
.calc-aside__card--measure .calc-aside__photo > img {
    width: 141.97%;
    height: 121.63%;
    left: -24.11%;
    top: -5.25%;
    max-width: none;
}
.calc-aside__card--child .calc-aside__photo > img {
    width: 179.43%;
    height: 100%;
    left: -23.43%;
    top: 0;
    max-width: none;
}
.calc-aside__photo > img { position: absolute; inset: 0; }
.calc-aside__body {
    padding: 24px 22px 20px;
    border: 1px solid #ebebeb;
    border-top: 0;
    border-radius: 0 0 8px 8px;
}
.calc-aside__title { font-size: 18px; line-height: 1.2; margin-bottom: 14px; }
.calc-aside__list { padding: 44px 28px 52px; }
.calc-aside__list li { display: flex; flex-direction: column; margin-bottom: 28px; }
.calc-aside__addr { order: 0; color: var(--green); }
.calc-aside__metro { order: 1; font-family: "Roboto", sans-serif; }
.calc-aside__tel { order: 2; }
.calc-aside__offices-title { font-size: 18px; }
.calc-aside__phone-ico { width: 33px; height: 33px; }
.calc-aside__offices-head { padding: 24px 26px; gap: 24px; }
.calc-aside__addr { font-size: 19px; }
.calc-aside__tel { font-size: 21px; }
.calc-aside__hours { font-size: 18px; line-height: 1.2; padding: 24px 20px; }
@media (min-width: 1451px) {
    .calc-hero > .container { padding-left: 58px; }
    .calc-step[data-calc-step="1"] > .calc-step__head .calc-step__titles { margin-left: 22px; gap: 36px; }
    .calc-step[data-calc-step="3"] > .calc-step__head { margin-left: 32px; }
}
@media (max-width: 1450px) and (min-width: 993px) {
    .calc-step__titles { gap: 16px; }
    .calc-step__title, .calc-step__num { font-size: 18px; }
    .calc-step__pill { font-size: 13px; padding: 8px 20px; }
    .calc-builder { padding-left: 40px; padding-right: 32px; }
    .calc-builder__stage { height: clamp(276px, 27vw, 392px); }
    .calc-builder__preview { height: 100%; max-width: calc(100% - 240px); }
    .calc-builder .calc__divid { width: calc(100% + 72px); margin-left: -40px; }
    .calc-open { grid-template-columns: 142px repeat(3, minmax(0, 1fr)); gap: 16px; }
    .calc-aside__list { padding: 40px 24px; }
    .calc-order, .calc-step[data-calc-step="2"] { padding-left: 36px; padding-right: 36px; }
}
@media (min-width: 993px) and (max-width: 1200px) {
    .calc-open { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .calc-open__hint { grid-column: 1 / -1; }
}
@media (max-width: 992px) {
    .calculator-crumbs { min-height: 44px; }
    .calc-hero { padding: 36px 0 116px; }
    .calc-hero__title { font-size: 32px; }
    .calc { margin-top: -88px; padding-bottom: 48px; }
    .calc__layout { width: 100%; max-width: none; margin: 0; padding: 0 16px; grid-template-columns: minmax(0, 1fr); }
    .calc-aside { display: none; }
    .calc-step { padding: 40px 26px; }
    .calc-step__titles { gap: 20px; }
    .calc-step__title, .calc-step__num { font-size: 17px; }
    .calc-step__pill { width: 215px; max-width: 35%; min-height: 44px; padding: 0 16px; font-size: 13px; }
    .calc-step--full { margin-left: -26px; margin-right: -26px; }
    .calc-types { margin-bottom: 40px; }
    .calc-types__icon { height: 84px; min-height: 84px; }
    .calc-builder { padding: 52px 34px 38px; }
    .calc-builder__stage { height: 356px; }
    .calc-builder__preview { max-width: calc(100% - 115px); height: 356px; }
    .calc-builder__top .calc-builder__hint { font-size: 13px; }
    .calc-builder__top .calc-builder__hint + .calc-builder__line { margin-left: 145px; }
    .calc-builder .calc__divid { width: 100%; margin-left: 0; }
    .calc-builder__top .calc-dim .calc-dim__input, .calc-builder__stage .calc-dim--h .calc-dim__input { width: 68px; min-height: 40px; }
    .calc-dim__div { width: 100px; }
    .calc-open { grid-template-columns: 142px repeat(3, minmax(0, 1fr)); gap: 18px; }
    .calc-open__hint, .calc-open__label { font-size: 13px; }
    .calc-open__select { font-size: 11px; padding-left: 10px; padding-right: 18px; background-position: right 7px center; }
    .calc-step[data-calc-step="2"] { padding: 40px 34px; }
    .calc-glass__media { height: 210px; }
    .calc-glass__media img { max-height: 190px; }
    .calc-glass__name { font-size: 13px; }
    .calc-step[data-calc-step="3"] { padding-bottom: 48px; }
    .calc-extras__card { padding: 14px 4px; }
    .calc-extras__icon { height: 68px; }
    .calc-extras__icon img { max-height: 64px; }
    .calc-extras__name { font-size: 13px; }
    .calc-order { padding: 40px 34px 56px; }
    .calc-lead::before { inset: 0 -34px -104px; }
    .calc-cart__item { grid-template-columns: 92px minmax(0, 1fr) auto; padding: 24px 16px; gap: 16px; }
    .calc-cart__thumb { width: 88px; }
    .calc-lead__submit { font-size: 12px; padding: 0 12px; }
}
@media (min-width: 701px) and (max-width: 992px) {
    .calc-step[data-calc-step="1"] { padding-top: 64px; }
    .calc-types { margin-bottom: 52px; }
    .calc-glass__media { height: 190px; }
    .calc-step[data-calc-step="3"] { padding-bottom: 66px; }
}
@media (min-width: 551px) and (max-width: 700px) {
    .calc-builder__stage { height: 260px; }
    .calc-builder__preview { height: 260px; max-width: calc(100% - 220px); }
    .calc-step__head { flex-wrap: wrap; }
    .calc-step__pill { margin-left: auto; max-width: none; }
    .calc-open { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .calc-open__hint { grid-column: 1 / -1; }
    .calc-extras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 550px) {
    .calculator-crumbs { min-height: 76px; padding: 0 9px; font-size: 12px; align-items: flex-start; padding-top: 14px; }
    .calculator-crumbs span:last-child { max-width: 190px; }
    .calc-hero { padding: 35px 0 116px; }
    .calc-hero__title { font-size: 24px; line-height: 1.2; margin-bottom: 20px; }
    .calc-hero__text { font-size: 15px; line-height: 1.25; }
    .calc { margin-top: -95px; padding-bottom: 50px; }
    .calc__layout { padding: 0 8px; }
    .calc__configuration, .calc-order { border-radius: 10px; }
    .calc-step { padding: 40px 20px; }
    .calc-step__head { margin-bottom: 24px; gap: 24px; }
    .calc-step__titles { gap: 16px; align-items: baseline; }
    .calc-step__num { flex: 0 0 55px; }
    .calc-step__title { font-size: 18px; }
    .calc-step__pill { flex-basis: calc(100% + 40px); max-width: none; width: auto; margin: 16px -20px 0; border-radius: 0; min-height: 44px; font-size: 13px; }
    .calc-step--full { margin-left: -20px; margin-right: -20px; }
    .calc-types { margin-bottom: 36px; }
    .calc-types__icon { height: 106px; }
    .calc-types__svg svg { max-height: 84px; }
    .calc-types__nav--prev img, .calc-types__nav--next img { margin: 0; }
    .calc-builder { padding: 28px 16px 40px; }
    .calc-builder__top { display: none; }
    .calc-builder__top--mobile { margin-bottom: 40px; }
    .calc-m-dims__fields { justify-content: space-between; padding: 0 18px; margin-top: 24px; }
    .calc-m-dims__input { width: 68px; min-height: 40px; }
    .calc-builder__stage { height: auto; min-height: 235px; margin: 0 0 36px; }
    .calc-builder__preview { width: 100%; flex-basis: 100%; max-width: 100%; height: 235px; min-height: 0; }
    .calc-builder__badge-icon { padding: 8px; }
    .calc-builder__badge img { width: 20px; height: 24px; }
    .calc-dim__div { display: none; }
    .calc-builder .calc__divid { width: calc(100% + 32px); margin-left: -16px; }
    .calc-open { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
    .calc-open__hint { margin: 0 8px 4px; font-size: 14px; }
    .calc-open__hint br { display: none; }
    .calc-open__label { font-size: 14px; margin: 0 8px 12px; color: #aaa; }
    .calc-open__select { height: 35px; font-size: 13px; padding: 0 32px; background-position: right 20px center; }
    .calc-step[data-calc-step="2"] { padding: 40px 20px; }
    .calc-glass__nav { display: flex; align-items: center; justify-content: center; }
    .calc-glass__item { padding: 8px 12px 20px; }
    .calc-glass__item::after { inset: 0 max(24px, calc((100% - 191px) / 2)); }
    .calc-glass__item:has(.calc-glass__input:checked)::before { right: max(30px, calc((100% - 179px) / 2)); }
    .calc-glass__media { height: 192px; }
    .calc-glass__media img { max-height: 180px; }
    .calc-glass__name { font-size: 13px; }
    .calc-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; margin: 0 -10px; }
    .calc-extras__card { min-height: 173px; padding: 20px 8px 16px; gap: 12px; }
    .calc-extras__icon { height: 80px; }
    .calc-extras__icon img { max-height: 80px; }
    .calc-extras__name { font-size: 16px; }
    .calc-order { padding: 40px 10px 50px; }
    .calc-order > .calc-step__head { margin-left: 12px; margin-right: 12px; }
    .calc-cart__item { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 28px 20px 36px; gap: 12px; }
    .calc-cart__thumb { width: 116px; height: 116px; }
    .calc-cart__body { display: flex; flex-direction: column; align-items: center; width: 100%; }
    
    .calc-cart__qty { margin-top: 12px; }
    .calc-step__head--promo { margin-top: 30px; padding-top: 32px; }
    .calc-promo__item { padding: 14px 12px; column-gap: 16px; }
    .calc-promo__text { font-size: 13px; }
    .calc-promo__save-label, .calc-promo__save-val { font-size: 10px; }
    .calc-lead { margin-top: 34px; padding: 38px 12px 0; }
    .calc-lead__title { font-size: 22px; line-height: 1.12; }
    .calc-lead__form { grid-template-columns: minmax(0, 1fr); gap: 7px; }
    .calc-lead__submit { font-size: 14px; }
    .calc-lead__note { font-size: 11px; line-height: 1.25; }
    .calc-lead::before { inset: 0 -10px -100px; }
}
@media (prefers-reduced-motion: reduce) {
    .calc * { scroll-behavior: auto; }
}

/* Пропорциональные схемы и устойчивые строки расчёта. */
.calc-types {
    border-top: 1px solid #ededed;
    padding-top: 28px;
}
.calc-types .swiper-wrapper { justify-content: space-between; }
.calc-types .calc-types__item { width: auto; flex-shrink: 0; }
.calc-types .calc-types__icon {
    width: auto;
    height: calc(88px * var(--type-scale, 1));
    min-height: 0;
    padding: 0 calc(9px * var(--type-scale, 1));
    border-radius: 2px;
}
.calc-types .calc-types__svg {
    width: var(--scheme-width);
    height: var(--scheme-height);
    flex: none;
}
.calc-types .calc-types__svg svg {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    flex: none;
    transform: scale(var(--type-scale, 1));
}
.calc-types__check, .calc-types__check img { width: 10px; height: 9px; }
.calc-types__check { right: 2px; top: 2px; }
.calc-types__svg [stroke="none"] { stroke: none !important; }
.calc-open__select {
    padding-left: 29px;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6' fill='none'%3E%3Cpath d='M1 1L4.5 4.5L8 1' stroke='%2380C552' stroke-width='1.8'/%3E%3C/svg%3E");
    background-size: 9px 6px;
    background-position: right 20px center;
}
.calc-cart__item {
    grid-template-columns: 110px minmax(0, 1fr) auto;
    grid-template-areas: "thumb body qty" "edit links links" "meta meta meta";
    align-items: start;
    column-gap: 32px;
    row-gap: 4px;
    padding: 34px 50px;
    transition: border-color 180ms ease;
}
.calc-cart__thumb { grid-area: thumb; width: auto; min-width: 96px; max-width: 110px; height: 78px; padding: 10px; justify-self: start; }
.calc-cart__body { grid-area: body; align-self: center; min-width: 0; }
.calc-cart__size { margin: 0 0 16px; }
.calc-cart__title { margin: 0; line-height: 1.2; }
.calc-cart__edit { grid-area: edit; display: block; justify-self: start; color: var(--orange); }
.calc-cart__links { grid-area: links; margin: 0; gap: 0; min-width: 0; }
.calc-cart__link { text-align: left; line-height: 1.3; }
.calc-cart__qty { grid-area: qty; align-self: center; gap: 24px; margin: 0; }
.calc-cart__meta { grid-area: meta; margin-top: 28px; text-align: left; width: 100%; }
.calc-cart__meta dt { font-weight: 400; }
.calc-cart__meta div { margin-bottom: 12px; }
.calc-cart__meta div:last-child { margin-bottom: 0; }
.calc-promo__save { flex-direction: row; align-items: center; gap: 40px; }
.calc-promo__check { width: 29px; height: 24px; }
.calc-promo__item { padding-left: 40px; padding-right: 40px; column-gap: 30px; }
.calc-lead__title { line-height: 1; }
@media (min-width: 551px) and (max-width: 1450px) {
    .calc-cart__item { padding: 24px; column-gap: 20px; grid-template-columns: 90px minmax(0, 1fr) auto; }
    .calc-cart__thumb { min-width: 78px; max-width: 90px; }
    .calc-cart__qty { gap: 12px; }
    .calc-cart__qty-btn { width: 32px; height: 32px; }
    .calc-cart__qty-val { min-width: 16px; font-size: 16px; }
    .calc-cart__remove { margin: 0; width: 24px; }
    .calc-cart__title { font-size: 18px; }
    .calc-cart__link { font-size: 13px; }
    .calc-cart__size { font-size: 13px; margin-bottom: 12px; }
    .calc-open__select { padding-left: 16px; background-position: right 12px center; }
    .calc-promo__item { padding-left: 24px; padding-right: 24px; column-gap: 20px; }
    .calc-promo__save { gap: 24px; }
}
@media (min-width: 551px) and (max-width: 700px) {
    .calc-cart__item { padding: 22px 16px; column-gap: 12px; grid-template-columns: 70px minmax(0, 1fr) auto; }
    .calc-cart__thumb { min-width: 68px; max-width: 70px; }
    .calc-cart__qty { gap: 6px; }
    .calc-cart__qty-btn { width: 27px; }
    .calc-promo__save { flex-direction: column; gap: 2px; }
}
@media (max-width: 550px) {
    .calc-types { border: 0; padding-top: 0; }
    .calc-types .swiper-wrapper { justify-content: flex-start; }
    .calc-types .calc-types__icon { margin: 0 12px; }
    .calc-open__select { padding-left: 32px; }
    .calc-cart__item {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "thumb" "edit" "body" "links" "qty" "meta";
        justify-items: center;
        padding: 28px 20px 36px;
        gap: 12px;
    }
    .calc-cart__thumb { justify-self: center; min-width: 116px; max-width: 116px; height: 116px; }
    .calc-cart__thumb svg { width: auto; max-width: 90%; max-height: 92px; }
    .calc-cart__body { align-items: center; }
    .calc-cart__size { margin-bottom: 12px; font-size: 15px; }
    .calc-cart__title { font-size: 20px; }
    .calc-cart__edit { justify-self: center; font-size: 21px; }
    .calc-cart__links { justify-content: center; }
    .calc-cart__link--muted { font-size: 12px; text-align: center; }
    .calc-cart__qty { margin-top: 12px; gap: 16px; justify-content: center; }
    .calc-cart__qty-btn { width: 32px; height: 32px; font-size: 17px; }
    .calc-cart__qty-val { min-width: 18px; font-size: 17px; }
    .calc-cart__remove { width: 28px; margin-left: 8px; }
    .calc-cart__meta { margin-top: 12px; font-size: 13px; }
    .calc-promo__item { padding: 14px 12px; column-gap: 16px; }
    .calc-promo__save { flex-direction: column; gap: 2px; }
    .calc-promo__check { width: 24px; height: 24px; }
    .calc-cart__add { justify-content: center; gap: 36px; font-size: 13px; }
}

.calc-extras__icon { display: flex; justify-content: center; align-items: center; height: 88px; }
.calc-extras__icon img {
    width: var(--icon-width);
    height: var(--icon-height);
    max-width: 100%;
    max-height: 88px;
    object-fit: contain;
}
.calc-cart__add > span:last-child { font-size: 32px; line-height: 1; }
@media (min-width: 1451px) {
    .calc-open { display: flex; gap: 39px; }
    .calc-open__hint { flex: 0 0 185px; }
    .calc-open__field { flex: 1 1 0; max-width: 233px; }
    .calc-step[data-calc-step="2"] > .calc-step__head { margin-bottom: 12px; }
    .calc-glass { width: calc(100% + 32px); margin-left: -32px; }
    .calc-glass__item { height: 259px; }
    .calc-glass__item::after { left: 50%; right: auto; width: 259px; transform: translateX(-50%); }
    .calc-glass__item:has(.calc-glass__input:checked)::before { right: calc(50% - 124px); }
    .calc-glass__media { height: 198px; }
    .calc-step[data-calc-step="2"] { padding-bottom: 55px; }
    .calc-step[data-calc-step="3"] { padding-top: 32px; padding-bottom: 64px; }
    .calc-step[data-calc-step="3"] > .calc-step__head { margin-bottom: 39px; }
    .calc-extras { margin-left: 12px; gap: 10px; }
    .calc-extras__card { height: 159px; padding-top: 10px; padding-bottom: 10px; gap: 4px; }
    .calc-order { padding-top: 50px; }
    .calc-cart__item { column-gap: 40px; }
}
@media (min-width: 701px) and (max-width: 992px) {
    .site:has(.calc) .mainnav:not(.mainnav--open) {
        position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none;
    }
    .site:has(.calc) .mainnav:not(.mainnav--open) .mainnav__inner { min-height: 75px; padding-top: 0; padding-bottom: 0; }
    .site:has(.calc) .mainnav:not(.mainnav--open) .mainnav__list { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 12px; }
    .site:has(.calc) .mainnav:not(.mainnav--open) .mainnav__link { padding: 0; font-size: 11px; white-space: nowrap; }
    .site:has(.calc) .mainnav:not(.mainnav--open) .mainnav__mobile-only { display: none; }
    .calculator-crumbs { display: none; }
    .calc-step[data-calc-step="1"] { padding-top: 57px; }
    .calc-step__num, .calc-step__title { font-size: 18px; }
    .calc-types { padding-top: 24px; margin-bottom: 50px; }
    .calc-types .calc-types__icon { height: 70px; }
    .calc-builder { padding-left: 36px; padding-right: 36px; }
    .calc-builder__preview { width: 429px; flex-basis: 429px; height: 341px; }
    .calc-open { display: flex; gap: 32px; }
    .calc-open__hint { flex: 0 0 132px; }
    .calc-open__field { flex: 1 1 0; max-width: 172px; }
    .calc-open__select { height: 23px; }
    .calc-extras__icon img { max-width: 83%; max-height: 72px; }
    .calc-extras__icon { height: 72px; }
    .calc-extras__card { padding-top: 12px; padding-bottom: 12px; }
    .calc-step[data-calc-step="3"] { padding-top: 32px; }
}
@media (max-width: 550px) {
    .calc-types .calc-types__icon { height: 99px; }
    .calc-builder { padding-bottom: 54px; }
    .calc-step[data-calc-step="2"] { padding-top: 48px; padding-bottom: 39px; }
    .calc-step[data-calc-step="2"] > .calc-step__head { margin-bottom: 32px; }
    .calc-mobile-break { display: block; }
    .calc-glass__item { height: 239px; padding-bottom: 14px; }
    .calc-glass__media { height: 183px; }
    .calc-step[data-calc-step="3"] { padding-top: 50px; padding-bottom: 0; }
    .calc-step[data-calc-step="3"] > .calc-step__head { margin-bottom: 40px; }
    .calc-extras__icon { height: 88px; }
    .calc-extras__icon img { max-height: 88px; }
    .calc-extras__card { gap: 10px; }
}

.calc-glass__media img {
    width: var(--glass-width);
    height: var(--glass-height);
    max-width: none;
    max-height: none;
    flex-shrink: 0;
}
.calc-glass__name { position: absolute; bottom: 26px; left: 0; right: 0; }
@media (min-width: 1451px) {
    .calc-glass__media { height: 220px; }
}
@media (min-width: 551px) and (max-width: 1450px) {
    .calc-glass__media img { width: calc(var(--glass-width) * .825); height: calc(var(--glass-height) * .825); }
}
@media (min-width: 701px) and (max-width: 992px) {
    .calc-builder { padding-bottom: 47px; }
    .calc-step[data-calc-step="2"] { padding-left: 37px; padding-right: 37px; padding-bottom: 28px; }
    .calc-step__titles { gap: 24px; }
    .calc-glass { width: calc(100% + 34px); margin-left: -34px; }
    .calc-glass__media { height: 201px; }
    .calc-glass__item { height: 239px; }
    .calc-glass__item::after { left: 50%; right: auto; width: 191px; transform: translateX(-50%); }
    .calc-glass__item:has(.calc-glass__input:checked)::before { right: calc(50% - 90px); }
    .calc-extras__icon img { width: calc(var(--icon-width) * .825); height: calc(var(--icon-height) * .825); max-width: 100%; max-height: 72px; }
    .calc-cart__item { min-height: 162px; }
}
@media (max-width: 550px) {
    .calc-glass__media img { width: calc(var(--glass-width) * .825); height: calc(var(--glass-height) * .825); }
    .calc-glass__media { height: 201px; }
    .calc-glass__name { bottom: 26px; }
    .calc-cart__item { min-height: 372px; }
    .calc-cart__thumb { margin-top: 0; }
}

/* Стрелки не перекрывают область выбора конструкции. */
.calc-types-slider {
    position: relative;
}

.calc-types__nav {
    background: transparent;
}

.calc-types__nav::before {
    border-width: 1.5px;
}

.calc-open__select:focus,
.calc-open__select:focus-visible {
    outline: 1px solid #c5c5c5;
    outline-offset: 0;
}

@media (max-width: 550px) {
    .calc-types-slider {
        margin: 0 -20px 36px;
        padding: 0 28px;
    }

    .calc-types-slider .calc-types {
        width: 100%;
        margin: 0;
    }

    .calc-types__nav--prev {
        left: 0;
    }

    .calc-types__nav--next {
        right: 0;
    }

    .calc-builder {
        padding-top: 54px;
    }

    .calc-step[data-calc-step="3"] {
        padding-bottom: 10px;
    }

    .calc-lead {
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 22px;
        padding-right: 22px;
    }

    .calc-lead::before {
        left: 0;
        right: 0;
    }
}

