/* Сжатая копия calculator.css - собирает wp-theme/tools/sync-calculator.py, руками не править. */
.calc-card--sm .calc-card__box { padding: 13px 13px 15px; }
.calc-card--sm .calc-card__name { font-size: 14px; }
.calc-card--sm .calc-card__note { font-size: 12px; line-height: 16px; }
.calc-counter__btn:active { background: #e6e9ee; transform: scale(0.94); }
.calc-toggle:active,
.calc-cta:active { opacity: 0.9; }
.calc-model__box:active,
.calc-card__box:active,
.calc-color__box:active { border-color: #b6bcc5; }
.calc {
padding: 90px 59px 100px;
background: var(--bg-page);
}
.calc__layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 810px;
gap: 32px;
align-items: start;
}
.calc-step {
padding: 28px 30px 30px;
background: #f4f6f9;
border-radius: 18px;
}
.calc-step + .calc-step { margin-top: 16px; }
.calc-step__head {
display: flex;
align-items: baseline;
gap: 14px;
margin-bottom: 22px;
}
.calc-step__num {
font-family: 'Manrope', sans-serif;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.06em;
color: #b3b6bb;
}
.calc-step__title {
font-family: 'Onest', sans-serif;
font-weight: 500;
font-size: 20px;
line-height: 1.3;
color: #0e0e0e;
}
.calc-sublabel {
margin-bottom: 12px;
font-family: 'Manrope', sans-serif;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #797979;
}
.calc-field { margin-bottom: 18px; }
.calc-field__label {
display: block;
margin-bottom: 8px;
font-family: 'Manrope', sans-serif;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #797979;
}
.calc-select {
width: 100%;
padding: 14px 44px 14px 16px;
background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230e0e0e' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
border: 1px solid #e0e4ea;
border-radius: 12px;
font-family: 'Manrope', sans-serif;
font-size: 15px;
color: #0e0e0e;
appearance: none;
cursor: pointer;
transition: border-color 0.25s ease;
}
.calc-select:focus-visible { border-color: #0e0e0e; outline: none; }
@media (hover: hover) and (pointer: fine) {
.calc-select:hover { border-color: #0e0e0e; }
}
.calc-field__meta {
display: flex;
flex-wrap: wrap;
gap: 6px 20px;
margin-top: 10px;
font-family: 'Manrope', sans-serif;
font-size: 13px;
color: #797979;
}
.calc-field__meta b { font-weight: 600; color: #0e0e0e; }
.calc-models {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.calc-model input,
.calc-card input,
.calc-color input,
.calc-switch input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.calc-model__box {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 3px;
height: 100%;
padding: 0 0 17px;
overflow: hidden;
background: #ffffff;
border: 2px solid #e6e9ee;
border-radius: 14px;
cursor: pointer;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
.calc-model__box:hover { border-color: #c2c7cf; }
}
.calc-model input:checked + .calc-model__box { border-color: #0e0e0e; }
.calc-model input:focus-visible + .calc-model__box {
outline: 2px solid #0e0e0e;
outline-offset: 2px;
}
.calc-model__pic {
display: block;
width: 100%;
margin-bottom: 14px;
background: #eef0f3;
}
.calc-model__pic img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 4 / 3;
object-fit: cover;
filter: grayscale(0.35);
transition: filter 0.25s ease, transform 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
.calc-model__box:hover .calc-model__pic img { transform: scale(1.03); }
}
.calc-model input:checked + .calc-model__box .calc-model__pic img { filter: none; }
.calc-model__name,
.calc-model__type,
.calc-model__range { padding: 0 18px; }
.calc-model__name {
font-family: 'Onest', sans-serif;
font-weight: 600;
font-size: 16px;
color: #0e0e0e;
}
.calc-model__type {
font-family: 'Onest', sans-serif;
font-size: 14px;
color: #0e0e0e;
}
.calc-model__range {
font-family: 'Manrope', sans-serif;
font-size: 12px;
color: #797979;
}
.calc-range + .calc-range { margin-top: 22px; }
.calc-range__top {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 16px;
margin-bottom: 10px;
}
.calc-range__label {
font-family: 'Onest', sans-serif;
font-size: 15px;
color: #0e0e0e;
}
.calc-range__value {
font-family: 'Onest', sans-serif;
font-weight: 600;
font-size: 18px;
color: #0e0e0e;
white-space: nowrap;
}
.calc-range__input {
width: 100%;
height: 4px;
margin: 0;
background: #dfe3e9;
border-radius: 4px;
appearance: none;
-webkit-appearance: none;
cursor: pointer;
}
.calc-range__input::-webkit-slider-thumb {
-webkit-appearance: none;
width: 22px;
height: 22px;
background: #0e0e0e;
border: 4px solid #ffffff;
border-radius: 50%;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
cursor: grab;
}
.calc-range__input::-moz-range-thumb {
width: 16px;
height: 16px;
background: #0e0e0e;
border: 4px solid #ffffff;
border-radius: 50%;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
cursor: grab;
}
.calc-range__input:active::-webkit-slider-thumb { cursor: grabbing; }
.calc-range__scale {
display: flex;
justify-content: space-between;
margin-top: 8px;
font-family: 'Manrope', sans-serif;
font-size: 12px;
color: #797979;
}
.calc-hint {
margin-top: 18px;
font-family: 'Onest', sans-serif;
font-size: 13px;
line-height: 19px;
color: #797979;
}
.calc-cards {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.calc-cards--three { grid-template-columns: repeat(3, 1fr); }
.calc-cards--four  { grid-template-columns: repeat(4, 1fr); }
.calc-cards--auto {
grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}
.calc-card__pic + .calc-card__name { margin-top: auto; }
.calc-cards + .calc-counters,
.calc-cards + .calc-range,
.calc-cards + .calc-switch { margin-top: 20px; }
.calc-card__box {
display: flex;
flex-direction: column;
gap: 4px;
height: 100%;
padding: 15px 17px 17px;
background: #ffffff;
border: 2px solid #e6e9ee;
border-radius: 14px;
cursor: pointer;
transition: border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
.calc-card__box:hover { border-color: #c2c7cf; }
}
.calc-card input:checked + .calc-card__box { border-color: #0e0e0e; }
.calc-card input:focus-visible + .calc-card__box {
outline: 2px solid #0e0e0e;
outline-offset: 2px;
}
.calc-card__pic {
display: block;
margin-bottom: 6px;
color: #0e0e0e;
}
.calc-card__pic svg {
display: block;
width: 100%;
max-width: 90px;
height: auto;
}
.calc-card__name {
font-family: 'Onest', sans-serif;
font-weight: 500;
font-size: 15px;
line-height: 1.3;
color: #0e0e0e;
}
.calc-card__note {
font-family: 'Manrope', sans-serif;
font-size: 12px;
line-height: 17px;
color: #797979;
}
.calc-colors {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
.calc-color__box {
display: flex;
flex-direction: column;
gap: 2px;
height: 100%;
padding: 11px 11px 13px;
background: #ffffff;
border: 2px solid #e6e9ee;
border-radius: 14px;
cursor: pointer;
transition: border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
.calc-color__box:hover { border-color: #c2c7cf; }
}
.calc-color input:checked + .calc-color__box { border-color: #0e0e0e; }
.calc-color input:focus-visible + .calc-color__box {
outline: 2px solid #0e0e0e;
outline-offset: 2px;
}
.calc-color__chip {
display: block;
height: 42px;
margin-bottom: 8px;
background: var(--chip);
border: 1px solid rgba(14, 14, 14, 0.12);
border-radius: 8px;
}
.calc-color__name {
font-family: 'Onest', sans-serif;
font-weight: 500;
font-size: 13px;
color: #0e0e0e;
}
.calc-color__note {
font-family: 'Manrope', sans-serif;
font-size: 11px;
color: #797979;
}
.calc-counters {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.calc-counters--two { grid-template-columns: repeat(2, 1fr); }
.calc-hint + .calc-counters,
.calc-switch + .calc-counters,
.calc-cards + .calc-sublabel { margin-top: 20px; }
.calc-gate-series { margin-top: 20px; }
.calc-gate-series[hidden] { display: none; }
.calc-lining { margin-top: 20px; }
.calc-lining[hidden] { display: none; }
.calc-gate-series + .calc-sublabel { margin-top: 20px; }
.calc-gate-colors { margin-top: 20px; }
.calc-gate-colors[hidden] { display: none; }
.calc-gate-colors + .calc-sublabel { margin-top: 20px; }
.calc-gate-sizes { display: contents; }
.calc-switches {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-top: 20px;
}
.calc-switches .calc-switch { margin-top: 0; }
.calc-sublabel + .calc-switches { margin-top: 0; }
.calc-switches .calc-counter {
display: flex;
flex-direction: column;
justify-content: center;
}
.calc-counter {
padding: 13px 15px 15px;
background: #ffffff;
border: 2px solid #e6e9ee;
border-radius: 14px;
}
.calc-counter__label {
display: block;
margin-bottom: 10px;
font-family: 'Manrope', sans-serif;
font-size: 12px;
color: #797979;
}
.calc-counter__ctrl {
display: flex;
align-items: center;
gap: 6px;
}
.calc-counter__btn {
width: 32px;
height: 32px;
flex: none;
display: grid;
place-items: center;
padding: 0;
background: #f4f6f9;
border: 1px solid #e6e9ee;
border-radius: 8px;
font-size: 18px;
line-height: 1;
color: #0e0e0e;
cursor: pointer;
transition: background 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
.calc-counter__btn:hover {
background: #ffffff;
border-color: #0e0e0e;
}
}
.calc-counter__value {
width: 100%;
min-width: 0;
padding: 4px 0;
background: none;
border: 0;
font-family: 'Onest', sans-serif;
font-weight: 600;
font-size: 18px;
text-align: center;
color: #0e0e0e;
appearance: textfield;
-moz-appearance: textfield;
}
.calc-counter__value::-webkit-outer-spin-button,
.calc-counter__value::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.calc-counter--row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-top: 12px;
padding: 10px 15px;
}
.calc-counter--row[hidden] { display: none; }
.calc-switches .calc-counter[hidden],
.calc-counter[hidden],
.calc-switch[hidden] { display: none; }
.calc-counter--row .calc-counter__label {
margin-bottom: 0;
font-family: 'Onest', sans-serif;
font-weight: 500;
font-size: 14px;
color: #0e0e0e;
}
.calc-counter--row .calc-counter__ctrl { flex: none; width: 140px; }
.calc-counter--row + .calc-sublabel { margin-top: 20px; }
.calc-counter--item {
display: flex;
flex-direction: column;
}
.calc-counter--item .calc-counter__label { margin-bottom: 12px; }
.calc-counter__name {
display: block;
margin-bottom: 4px;
font-family: 'Onest', sans-serif;
font-weight: 500;
font-size: 14px;
line-height: 1.3;
color: #0e0e0e;
}
.calc-counter__note {
display: block;
line-height: 16px;
}
.calc-counter--item .calc-counter__ctrl { margin-top: auto; }
.calc-counter--item.is-on { border-color: #0e0e0e; }
.calc-counter__btn.is-limit {
color: #c3c8ce;
background: #f7f8fa;
border-color: #eef0f3;
cursor: not-allowed;
}
@media (hover: hover) and (pointer: fine) {
.calc-counter__btn.is-limit:hover { background: #f7f8fa; border-color: #eef0f3; }
}
.calc-counter__ctrl.is-shake { animation: calcShake 0.36s ease; }
@keyframes calcShake {
0%, 100% { transform: translateX(0); }
20% { transform: translateX(-4px); }
40% { transform: translateX(4px); }
60% { transform: translateX(-3px); }
80% { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
.calc-counter__ctrl.is-shake { animation: none; }
}
.calc-tip {
position: fixed;
z-index: 60;
padding: 10px 12px;
background: #0e0e0e;
border-radius: 10px;
box-shadow: 0 8px 24px rgba(14, 14, 14, 0.2);
font-family: 'Manrope', sans-serif;
font-size: 13px;
line-height: 18px;
color: #ffffff;
opacity: 0;
transform: translateY(4px);
pointer-events: none;
transition: opacity 0.2s ease, transform 0.2s ease;
}
.calc-tip.is-shown { opacity: 1; transform: translateY(0); }
.calc-tip::after {
content: '';
position: absolute;
top: 100%;
left: var(--arrow, 50%);
border: 6px solid transparent;
border-top-color: #0e0e0e;
transform: translateX(-50%);
}
.calc-tip.is-below::after {
top: auto;
bottom: 100%;
border-top-color: transparent;
border-bottom-color: #0e0e0e;
}
.calc-switch {
display: flex;
align-items: center;
gap: 14px;
margin-top: 12px;
padding: 16px 18px;
background: #ffffff;
border: 1px solid #e6e9ee;
border-radius: 14px;
cursor: pointer;
}
.calc-switch.is-off {
opacity: 0.6;
cursor: default;
}
.calc-switch__box {
position: relative;
width: 44px;
height: 26px;
flex: none;
background: #dfe3e9;
border-radius: 20px;
transition: background 0.2s ease;
}
.calc-switch__box::after {
content: '';
position: absolute;
top: 3px;
left: 3px;
width: 20px;
height: 20px;
background: #ffffff;
border-radius: 50%;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
transition: transform 0.2s ease;
}
.calc-switch input:checked + .calc-switch__box { background: #0e0e0e; }
.calc-switch input:checked + .calc-switch__box::after { transform: translateX(18px); }
.calc-switch__text { display: block; }
.calc-switch__name {
display: block;
font-family: 'Onest', sans-serif;
font-size: 15px;
color: #0e0e0e;
}
.calc-switch__note {
display: block;
font-family: 'Manrope', sans-serif;
font-size: 12px;
color: #797979;
}
.calc__result {
position: sticky;
top: 100px;
max-height: calc(100vh - 116px);
margin: 0 -24px;
padding: 0 24px 40px;
overflow: hidden;
scrollbar-gutter: stable;
scrollbar-width: thin;
scrollbar-color: #c9ced6 transparent;
}
.calc__result.is-panel-scroll {
overflow-y: auto;
overscroll-behavior-y: contain;
}
.calc-result__card {
padding: 16px 16px 26px;
background: #ffffff;
border: 1px solid #e6e9ee;
border-radius: 20px;
box-shadow: 0 18px 46px rgba(14, 14, 14, 0.07);
}
.calc-viz {
position: relative;
display: grid;
aspect-ratio: 1320 / 800;
margin: -16px -16px 0;
overflow: hidden;
background: #eef1f5;
border-radius: 19px 19px 0 0;
}
.calc-viz__svg {
display: block;
width: 100%;
height: 100%;
cursor: grab;
touch-action: pan-y;
user-select: none;
-webkit-user-select: none;
}
.calc-viz.is-dragging .calc-viz__svg { cursor: grabbing; }
.calc-viz { contain: layout paint; }
.calc-viz__svg { will-change: transform; }
.calc-viz__svg--fade { cursor: default; }
.calc-viz__svg .vz-gate { cursor: pointer; }
.calc-viz.is-dragging .calc-viz__svg .vz-gate { cursor: grabbing; }
.calc-viz__svg .vz-hot__btn,
.calc-viz__svg .vz-hot__icon { transition: fill 0.2s ease, stroke 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
.calc-viz__svg .vz-gate:hover .vz-hot__btn { fill: #0e0e0e; }
.calc-viz__svg .vz-gate:hover .vz-hot__icon { stroke: #ffffff; }
}
.calc-viz.is-gates-tried .vz-hot__pulse { display: none; }
.calc-viz__hint {
position: absolute;
left: 50%;
bottom: 14px;
padding: 6px 12px;
background: rgba(255, 255, 255, 0.92);
border-radius: 20px;
font-family: 'Manrope', sans-serif;
font-size: 12px;
color: #797979;
white-space: nowrap;
box-shadow: 0 2px 10px rgba(14, 14, 14, 0.08);
transform: translateX(-50%);
pointer-events: none;
transition: opacity 0.3s ease;
}
.calc-viz.is-rotated .calc-viz__hint-rotate,
.calc-viz.is-rotated .calc-viz__hint-sep,
.calc-viz.is-gates-tried .calc-viz__hint-gates,
.calc-viz.is-gates-tried .calc-viz__hint-sep,
.calc-viz:not(.has-gates) .calc-viz__hint-gates,
.calc-viz:not(.has-gates) .calc-viz__hint-sep { display: none; }
.calc-viz.is-rotated.is-gates-tried .calc-viz__hint,
.calc-viz.is-rotated:not(.has-gates) .calc-viz__hint { opacity: 0; }
.calc-sheet-close { display: none; }
.calc-toggle__open { display: none; }
.calc-sheet-close__grip {
width: 44px;
height: 4px;
border-radius: 2px;
background: #d9dde3;
}
.calc-sheet-close__text {
font-family: 'Manrope', sans-serif;
font-size: 11px;
letter-spacing: 0.04em;
text-transform: uppercase;
color: #9a9da2;
}
.calc-viz__reset {
position: absolute;
top: 54px;
right: 12px;
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
padding: 0;
background: #ffffff;
border: 0;
border-radius: 50%;
color: #0e0e0e;
box-shadow: 0 2px 10px rgba(14, 14, 14, 0.12);
cursor: pointer;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease, background 0.2s ease;
}
.calc-viz.is-rotated .calc-viz__reset {
opacity: 1;
pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
.calc-viz__reset:hover { background: #f4f6f9; }
}
.calc-viz__inside {
position: absolute;
top: 12px;
right: 12px;
display: flex;
align-items: center;
gap: 7px;
height: 34px;
padding: 0 14px 0 11px;
background: #ffffff;
border: 0;
border-radius: 17px;
font-family: 'Manrope', sans-serif;
font-size: 12px;
font-weight: 600;
color: #0e0e0e;
white-space: nowrap;
box-shadow: 0 2px 10px rgba(14, 14, 14, 0.12);
cursor: pointer;
transition: background 0.2s ease, color 0.2s ease;
}
.calc-viz.is-inside .calc-viz__inside { background: #0e0e0e; color: #ffffff; }
@media (hover: hover) and (pointer: fine) {
.calc-viz__inside:hover { background: #0e0e0e; color: #ffffff; }
.calc-viz.is-inside .calc-viz__inside:hover { background: #333333; }
}
.calc-viz:not(.is-inside) .calc-viz__hint-inside,
.calc-viz.is-inside .calc-viz__hint-rotate,
.calc-viz.is-inside .calc-viz__hint-sep,
.calc-viz.is-inside .calc-viz__hint-gates { display: none; }
.calc-viz.is-inside:not(.is-looked) .calc-viz__hint { opacity: 1; }
.calc-viz.is-inside.is-looked .calc-viz__hint { opacity: 0; }
.calc-viz.is-inside .calc-viz__reset { opacity: 0; pointer-events: none; }
.calc-viz.is-inside.is-looked .calc-viz__reset { opacity: 1; pointer-events: auto; }
@media (max-width: 560px) {
.calc-viz__inside { width: 34px; padding: 0; justify-content: center; }
.calc-viz__inside-text { display: none; }
}
.calc-viz__tag {
position: absolute;
top: 14px;
left: 16px;
padding: 6px 12px;
background: #ffffff;
border-radius: 20px;
font-family: 'Manrope', sans-serif;
font-size: 12px;
color: #0e0e0e;
box-shadow: 0 2px 10px rgba(14, 14, 14, 0.08);
}
.calc-metrics {
display: grid;
grid-template-columns: 1fr;
gap: 10px;
margin-top: 18px;
}
.calc-metric {
padding: 14px 12px;
background: #f4f6f9;
border-radius: 12px;
text-align: center;
}
.calc-metric__value {
display: block;
font-family: 'Onest', sans-serif;
font-weight: 600;
font-size: 24px;
line-height: 1.2;
color: #0e0e0e;
}
.calc-metric__label {
display: block;
margin-top: 2px;
font-family: 'Manrope', sans-serif;
font-size: 11px;
line-height: 15px;
color: #797979;
}
.calc-price {
margin-top: 22px;
padding-top: 22px;
border-top: 1px solid #eef0f2;
}
.calc-price__label {
font-family: 'Manrope', sans-serif;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #797979;
}
.calc-price__row {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 8px;
margin-top: 6px;
}
.calc-price__from {
font-family: 'Onest', sans-serif;
font-size: 18px;
color: #797979;
}
.calc-price__value {
font-family: 'Onest', sans-serif;
font-weight: 600;
font-size: clamp(26px, 7vw, 44px);
line-height: 1.1;
min-width: 0;
color: #0e0e0e;
}
.calc-price__value.is-bumped { animation: calcBump 0.7s ease; }
@keyframes calcBump {
0%   { color: #0e0e0e; }
18%  { color: #c8102e; transform: translateY(-2px); }
100% { color: #0e0e0e; transform: translateY(0); }
}
.calc-price__cur {
font-family: 'Onest', sans-serif;
font-size: 26px;
color: #0e0e0e;
}
.calc-price__sq {
display: block;
margin-top: 4px;
font-family: 'Manrope', sans-serif;
font-size: 13px;
color: #797979;
}
.calc-price__vat {
display: block;
margin-top: 6px;
font-family: 'Manrope', sans-serif;
font-size: 14px;
color: #0e0e0e;
}
.calc-price__vat[hidden] { display: none; }
.calc-price__vat b {
font-weight: 600;
white-space: nowrap;
}
.calc-price__discount {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: 4px 12px;
margin-top: 14px;
padding: 10px 14px;
background: #fbeef0;
border-radius: 10px;
font-family: 'Onest', sans-serif;
font-size: 14px;
line-height: 1.35;
color: #c8102e;
}
.calc-price__discount[hidden] { display: none; }
.calc-price__discount b {
font-weight: 600;
white-space: nowrap;
}
.calc-toggle {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-top: 16px;
padding: 12px 14px;
background: #f4f6f9;
border: 0;
border-radius: 10px;
font-family: 'Onest', sans-serif;
font-size: 14px;
color: #0e0e0e;
cursor: pointer;
transition: background 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
.calc-toggle:hover { background: #eceff3; }
}
.calc-toggle svg { transition: transform 0.2s ease; }
.calc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.calc-toggle--nodetails { display: none; }
.calc-details { list-style: none; margin-top: 10px; }
.calc-details__row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 16px;
padding: 9px 2px;
border-bottom: 1px solid #f0f2f4;
font-family: 'Onest', sans-serif;
font-size: 13px;
line-height: 18px;
color: #797979;
}
.calc-details__row b {
font-weight: 600;
color: #0e0e0e;
white-space: nowrap;
}
.calc-cta {
width: 100%;
justify-content: center;
margin-top: 18px;
padding: 18px 26px;
background: #0e0e0e;
border: 0;
border-radius: 12px;
color: #ffffff;
font-family: 'Manrope', sans-serif;
font-size: 15px;
font-weight: 500;
line-height: 20px;
cursor: pointer;
transition: background 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
.calc-cta:hover {
background: #2a2a2a;
transform: translateY(-1px);
}
}
.calc-cta:active { transform: none; }
.calc-kp {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-top: 10px;
padding: 16px 26px;
background: #ffffff;
border: 1px solid #0e0e0e;
border-radius: 12px;
color: #0e0e0e;
font-family: 'Manrope', sans-serif;
font-size: 15px;
font-weight: 500;
line-height: 20px;
cursor: pointer;
transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
.calc-kp:hover {
background: #0e0e0e;
color: #ffffff;
transform: translateY(-1px);
}
}
.calc-kp:active { transform: none; }
.calc-kp.is-busy { cursor: progress; }
.calc-kp.is-busy svg { animation: calcKpBusy 0.9s ease-in-out infinite; }
@keyframes calcKpBusy {
50% { transform: translateY(3px); opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
.calc-kp.is-busy svg { animation: none; opacity: 0.5; }
}
.calc-actions { display: contents; }
@media (min-width: 1201px), (min-width: 981px) and (min-height: 881px) {
.calc-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 18px;
}
.calc-actions > .calc-cta,
.calc-actions > .calc-kp {
flex: 1 1 0;
min-width: max-content;
width: auto;
margin-top: 0;
}
.calc-actions > .calc-kp { padding-left: 25px; padding-right: 25px; }
}
@media (min-width: 1201px), (min-width: 981px) and (min-height: 881px) {
.calc-result__card {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
column-gap: 20px;
}
.calc-result__card > *,
.calc-price > * { grid-column: 1 / -1; }
.calc-price { display: contents; }
.calc-price__label,
.calc-price__row,
.calc-price__vat,
.calc-price__sq { grid-column: 1; }
.calc-price__label { margin-top: 20px; }
.calc-metrics {
grid-column: 2;
grid-row: 2 / span 4;
align-self: center;
margin-top: 20px;
}
.calc-metric { min-width: 124px; padding: 14px 18px; }
}
.kp-modal {
position: fixed;
inset: 0;
z-index: 1200;
display: flex;
flex-direction: column;
background: rgba(21, 21, 21, 0.96);
opacity: 0;
visibility: hidden;
transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.kp-modal.is-open {
opacity: 1;
visibility: visible;
transition: opacity 0.25s ease;
}
html.kp-open { overflow: hidden; }
html.kp-open body { overflow: clip; }
.kp-modal__bar {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
background: #0e0e0e;
}
.kp-modal__title {
flex: 1;
min-width: 0;
font-family: 'Manrope', sans-serif;
font-size: 14px;
font-weight: 500;
color: rgba(255, 255, 255, 0.7);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.kp-modal__btn {
padding: 10px 18px;
background: #ffffff;
border: 0;
border-radius: 10px;
color: #0e0e0e;
font-family: 'Manrope', sans-serif;
font-size: 14px;
font-weight: 500;
line-height: 20px;
cursor: pointer;
white-space: nowrap;
}
.kp-modal__btn--ghost {
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.4);
color: #ffffff;
}
@media (max-width: 480px) {
.kp-modal__bar { gap: 8px; padding: 10px 12px; }
.kp-modal__title { display: none; }
.kp-modal__btn { flex: 1; padding: 13px 10px; text-align: center; }
}
.kp-modal__frame {
flex: 1;
width: 100%;
border: 0;
background: #e9ecef;
}
.calc-disclaimer {
margin-top: 14px;
font-family: 'Manrope', sans-serif;
font-size: 11.5px;
line-height: 16px;
color: #9a9da2;
}
@media (max-width: 1750px) {
.calc-cards--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1600px) {
.calc__layout { grid-template-columns: minmax(0, 1fr) 740px; gap: 28px; }
}
@media (max-width: 1400px) {
.calc__layout { grid-template-columns: minmax(0, 1fr) 640px; gap: 24px; }
}
@media (max-width: 1200px) {
.calc__layout { grid-template-columns: minmax(0, 1fr) 540px; }
.calc-colors { grid-template-columns: repeat(3, 1fr); }
.calc-cards--three { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
}
@media (max-width: 980px), (max-width: 1200px) and (max-height: 880px) {
.calc { padding: 70px 24px 80px; }
.calc-cards--four { grid-template-columns: repeat(2, 1fr); }
.calc-cards--auto { grid-template-columns: repeat(3, 1fr); }
.calc-colors { grid-template-columns: repeat(4, 1fr); }
.calc__layout { display: block; }
.calc__result {
position: sticky;
top: auto;
bottom: 0;
z-index: 30;
max-height: none;
margin: 16px 0 0;
padding: 0;
overflow: visible;
scrollbar-gutter: auto;
}
.calc-result__card {
display: grid;
grid-template-columns: 92px minmax(0, 1fr) 44px;
align-items: center;
gap: 12px;
padding: 10px 12px;
border-radius: 16px 16px 0 0;
box-shadow: 0 -10px 30px rgba(14, 14, 14, 0.14);
}
.calc-viz {
grid-column: 1;
margin: 0;
padding: 0;
border-radius: 10px;
}
.calc-price {
grid-column: 2;
margin: 0;
padding: 0;
border-top: 0;
}
.calc-price__label { display: none; }
.calc__result:not(.is-open) .calc-price__row { flex-wrap: nowrap; white-space: nowrap; }
.calc__result:not(.is-open) .calc-price { min-width: 0; }
.calc-price__value { font-size: 26px; }
.calc-price__cur { font-size: 18px; }
.calc-price__sq { font-size: 12px; }
.calc__result:not(.is-open) .calc-price__discount {
flex-wrap: nowrap;
justify-content: flex-start;
gap: 6px;
margin-top: 2px;
padding: 0;
background: none;
font-size: 12px;
white-space: nowrap;
}
.calc__result:not(.is-open) .calc-price__discount-note { display: none; }
.calc__result:not(.is-open) .calc-price__vat { display: none; }
.calc__result:not(.is-open) .calc-price__sq[data-vat]::after { content: ' · ' attr(data-vat); }
.calc-toggle {
grid-column: 3;
width: 44px;
height: 44px;
margin: 0;
padding: 0;
justify-content: center;
}
.calc-toggle span { display: none; }
.calc__result:not(.is-open) .calc-toggle--nodetails { display: flex; }
@media (min-width: 781px) {
.calc__result:not(.is-open) .calc-result__card { grid-template-columns: 92px minmax(0, 1fr) auto; }
.calc__result:not(.is-open) .calc-toggle {
width: auto;
gap: 8px;
padding: 0 16px;
}
.calc__result:not(.is-open) .calc-toggle .calc-toggle__open { display: inline; }
}
.calc-viz__tag,
.calc-viz__hint,
.calc-viz__reset,
.calc-viz__inside,
.calc-metrics,
.calc-details,
.calc-cta,
.calc-kp,
.calc-disclaimer { display: none; }
.calc__result:not(.is-open) .vz-hot { display: none; }
.calc__result.is-open .calc-result__card {
display: block;
max-height: 78vh;
max-height: 78dvh;
padding: 18px 16px 20px;
overflow-y: auto;
overscroll-behavior: contain;
}
.calc__result.is-open .calc-viz { margin: 0 0 14px; }
.calc__result.is-open .calc-viz__hint {
display: block;
width: max-content;
max-width: calc(100% - 24px);
white-space: normal;
text-align: center;
line-height: 1.35;
}
.calc__result.is-open .calc-viz__reset,
.calc__result.is-open .calc-viz__inside { display: flex; }
.calc__result.is-open .calc-viz__tag,
.calc__result.is-open .calc-metrics,
.calc__result.is-open .calc-cta,
.calc__result.is-open .calc-disclaimer { display: block; }
.calc__result.is-open .calc-metrics { display: grid; }
.calc__result.is-open .calc-kp { display: flex; }
.calc__result.is-open .calc-price__label { display: block; }
.calc__result.is-open .calc-details:not([hidden]) { display: block; }
.calc__result.is-open .calc-price {
margin-top: 18px;
padding-top: 18px;
border-top: 1px solid #eef0f2;
}
.calc__result.is-open .calc-price__sq { display: inline-block; margin-top: 4px; }
.calc__result.is-open .calc-toggle {
width: 100%;
height: auto;
margin-top: 16px;
padding: 14px 16px;
justify-content: space-between;
}
.calc__result.is-open .calc-sheet-close {
display: flex;
position: sticky;
top: -18px;
z-index: 2;
flex-direction: column;
align-items: center;
gap: 5px;
width: calc(100% + 32px);
margin: -18px -16px 10px;
padding: 10px 0 9px;
border: 0;
background: #ffffff;
cursor: pointer;
}
.calc__result.is-open .calc-toggle span { display: inline; }
.calc__result.is-open .calc-toggle .calc-toggle__open { display: none; }
@media (min-width: 700px) and (max-height: 900px) {
.calc__result.is-open .calc-result__card {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
grid-template-areas:
"grip grip"
"viz metrics"
"viz price"
"viz toggle"
"viz details"
"viz cta"
"viz kp"
"viz free"
"note note";
grid-template-rows: auto auto auto auto auto auto auto 1fr auto;
column-gap: 22px;
align-content: start;
}
.calc__result.is-open .calc-sheet-close { grid-area: grip; }
.calc__result.is-open .calc-viz { grid-area: viz; align-self: start; margin: 0; }
.calc__result.is-open .calc-metrics { grid-area: metrics; }
.calc__result.is-open .calc-price { grid-area: price; }
.calc__result.is-open .calc-toggle { grid-area: toggle; }
.calc__result.is-open .calc-details { grid-area: details; }
.calc__result.is-open .calc-cta { grid-area: cta; }
.calc__result.is-open .calc-kp { grid-area: kp; }
.calc__result.is-open .calc-disclaimer { grid-area: note; }
}
@media (min-width: 700px) and (min-height: 901px) {
.calc__result.is-open .calc-result__card {
max-height: 86vh;
max-height: 86dvh;
}
}
.calc-step { scroll-margin-bottom: 120px; }
}
@media (max-width: 780px) {
.calc { padding: 56px 20px 70px; }
.calc-step { padding: 22px 18px 24px; }
.calc__params,
.calc__result,
.calc-model,
.calc-card,
.calc-color,
.calc-counter { min-width: 0; }
.calc-model__box > *,
.calc-card__box > * { min-width: 0; }
.calc-model__name,
.calc-model__type,
.calc-model__range,
.calc-card__name,
.calc-card__note { overflow-wrap: anywhere; }
.calc-range__input {
height: 40px;
background: none;
border-radius: 0;
}
.calc-range__input::-webkit-slider-runnable-track {
height: 5px;
background: #dfe3e9;
border-radius: 4px;
}
.calc-range__input::-moz-range-track {
height: 5px;
background: #dfe3e9;
border-radius: 4px;
}
.calc-range__input::-webkit-slider-thumb { margin-top: -13px; }
.calc__result.is-open .calc-viz__hint {
width: auto;
max-width: calc(100% - 20px);
bottom: 10px;
padding: 5px 11px;
font-size: 11px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.calc-viz__hint-gates,
.calc-viz__hint-sep { display: none; }
.calc-counter__btn { width: 44px; height: 44px; font-size: 20px; }
.calc-counter__value { height: 44px; padding: 0; }
.calc-viz__inside { min-width: 40px; height: 40px; padding: 0 10px; justify-content: center; border-radius: 20px; }
.calc-viz__reset { top: 60px; width: 40px; height: 40px; }
.calc-range__scale { margin-top: 2px; }
.calc-select { font-size: 16px; }
.calc-toggle { padding: 14px 16px; font-size: 15px; }
.calc-cta { margin-top: 24px; }
.calc-card__note,
.calc-color__note,
.calc-counter__label,
.calc-switch__note,
.calc-metric__label,
.calc-range__scale { font-size: 13px; color: #6a6a6a; }
.calc-disclaimer { font-size: 12px; color: #7a7d82; }
.calc-models { grid-template-columns: minmax(0, 1fr); }
.calc-model__box {
display: grid;
grid-template-columns: 104px minmax(0, 1fr);
grid-template-rows: auto auto auto;
align-content: center;
column-gap: 14px;
gap: 0 14px;
padding: 0 13px 0 0;
}
.calc-model__pic {
grid-column: 1;
grid-row: 1 / span 3;
width: 104px;
align-self: stretch;
margin-bottom: 0;
}
.calc-model__pic img { height: 100%; aspect-ratio: auto; min-height: 104px; }
.calc-model__name { grid-column: 2; align-self: end; padding-top: 14px; }
.calc-model__type { grid-column: 2; }
.calc-model__range { grid-column: 2; align-self: start; padding-bottom: 14px; }
.calc-cards--three { grid-template-columns: 1fr; }
.calc-cards--auto { grid-template-columns: repeat(2, 1fr); }
.calc-counters { grid-template-columns: 1fr; }
.calc-colors { grid-template-columns: repeat(3, 1fr); }
.calc-metrics { gap: 8px; }
.calc-metric { padding: 12px 8px; }
.calc-metric__value { font-size: 20px; }
}
@media (max-width: 480px) {
.calc { padding: 48px 16px 60px; }
.calc__result:not(.is-open) .calc-result__card {
grid-template-columns: clamp(56px, 22vw, 78px) minmax(0, 1fr) 44px;
gap: 10px;
}
.calc__result:not(.is-open) .calc-price { overflow: hidden; }
.calc__result:not(.is-open) .calc-price__row { gap: 4px 5px; }
.calc__result:not(.is-open) .calc-price__value { font-size: clamp(16px, 5.1vw, 23px); }
.calc__result:not(.is-open) .calc-price__cur { font-size: clamp(13px, 4vw, 16px); }
.calc__result:not(.is-open) .calc-price__sq { font-size: clamp(11px, 3.4vw, 13px); }
.calc-cards { grid-template-columns: 1fr; }
.calc-cards--auto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-gate-series .calc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-cards--four { grid-template-columns: 1fr; }
.calc-switches { grid-template-columns: 1fr; }
.calc-colors { grid-template-columns: repeat(2, 1fr); }
}
.contact-form__calc {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 12px 14px;
background: #f4f5f8;
border-radius: 12px;
font-family: 'Onest', sans-serif;
font-size: 13px;
line-height: 1.45;
color: var(--line);
}
.contact-form__calc[hidden] { display: none; }
.contact-form__calc svg { flex: none; margin-top: 2px; color: #0e0e0e; }
.contact-form__calc b {
display: block;
margin-bottom: 2px;
font-weight: 500;
color: #0e0e0e;
}
.cookie-banner { bottom: calc(24px + var(--dock-h, 0px)); }
body.is-sheet-open .cookie-banner {
opacity: 0;
pointer-events: none;
}
@media (max-width: 560px) {
.cookie-banner { bottom: calc(16px + var(--dock-h, 0px)); }
}
.calc-preview-bar {
position: sticky;
top: 0;
z-index: 200;
padding: 12px 24px;
background: #fff4d6;
border-bottom: 1px solid #f0d890;
font-family: 'Onest', sans-serif;
font-size: 14px;
line-height: 1.45;
color: #4a3a00;
text-align: center;
}
