:root {
    --studio-sky: #30a3d3;
    --studio-sky-deep: #147da9;
    --studio-mint: #dff6fb;
    --studio-ice: #f3fbff;
    --studio-cloud: #fbfdff;
    --studio-text: #253746;
    --studio-muted: #627988;
    --studio-line: rgba(48, 163, 211, 0.16);
    --studio-shadow: 0 28px 70px rgba(15, 92, 128, 0.14);
    --studio-radius: 34px;
}

.constructor-studio-page {
    background:
        radial-gradient(circle at top left, rgba(48, 163, 211, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(114, 198, 223, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fcff 0%, #eef7fb 42%, #ffffff 100%);
    color: var(--studio-text);
    overflow: hidden;
}

.constructor-studio-page .container {
    position: relative;
    z-index: 1;
    max-width: 1368px;
}

.constructor-studio-page section {
    position: relative;
}

.studio-kicker,
.studio-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--studio-sky-deep);
}

.studio-eyebrow::before,
.studio-kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: rgba(20, 125, 169, 0.35);
}

.constructor-studio-hero {
    padding: 56px 0 38px;
}

.studio-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 34px;
    padding: 48px;
    border-radius: 40px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(235, 248, 253, 0.92) 100%);
    box-shadow: var(--studio-shadow);
    border: 1px solid rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.studio-hero-panel::before,
.studio-hero-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.studio-hero-panel::before {
    width: 340px;
    height: 340px;
    top: -160px;
    right: -80px;
    background: rgba(48, 163, 211, 0.08);
}

.studio-hero-panel::after {
    width: 260px;
    height: 260px;
    bottom: -150px;
    left: 42%;
    background: rgba(114, 198, 223, 0.12);
}

.studio-hero-copy h1 {
    margin: 16px 0 18px;
    max-width: 720px;
    font-size: 50px;
    line-height: 1.08;
    color: #1d3442;
}

.studio-lead {
    max-width: 650px;
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--studio-muted);
}

.studio-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 34px;
}

.studio-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid rgba(48, 163, 211, 0.26);
    background: rgba(255, 255, 255, 0.72);
    color: var(--studio-text);
    text-decoration: none;
}

.studio-secondary-link:hover {
    background: #fff;
    box-shadow: 0 16px 34px rgba(48, 163, 211, 0.14);
}

.studio-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.studio-metric-card {
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(48, 163, 211, 0.1);
    box-shadow: 0 18px 38px rgba(29, 71, 94, 0.08);
}

.studio-metric-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1;
    color: var(--studio-sky-deep);
}

.studio-metric-card span {
    display: block;
    font-size: 14px;
    line-height: 1.55;
    color: var(--studio-muted);
}

.studio-hero-scene {
    position: relative;
    min-height: 420px;
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(230, 246, 252, 0.96) 0%, rgba(247, 252, 255, 0.96) 100%);
    border: 1px solid rgba(48, 163, 211, 0.12);
    overflow: hidden;
}

.studio-hero-scene::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 28px;
    border: 1px dashed rgba(48, 163, 211, 0.18);
}

.studio-scene-card {
    position: absolute;
    left: 50%;
    width: min(320px, calc(100% - 52px));
    padding: 22px 28px;
    border-radius: 24px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 22px 44px rgba(29, 71, 94, 0.12);
    transform: translateX(-50%);
}

.scene-card-cover {
    top: 52px;
    background: #ffffff;
    color: #4e6f81;
}

.scene-card-soft {
    top: 132px;
    background: linear-gradient(135deg, #f7eefb 0%, #eedff5 100%);
    color: #7a5588;
}

.scene-card-core {
    top: 214px;
    background: linear-gradient(135deg, #f3f3f3 0%, #dce7ef 100%);
    color: #365264;
}

.scene-card-firm {
    top: 296px;
    background: linear-gradient(135deg, #d7b48a 0%, #bf8e59 100%);
    color: #fff7ef;
}

.studio-scene-note {
    position: absolute;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 1;
    color: var(--studio-text);
    box-shadow: 0 18px 34px rgba(29, 71, 94, 0.1);
}

.studio-scene-note::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 58px;
    height: 1px;
    background: rgba(48, 163, 211, 0.24);
}

.studio-scene-note.note-left {
    top: 150px;
    left: 24px;
}

.studio-scene-note.note-left::before {
    right: -58px;
}

.studio-scene-note.note-right {
    top: 242px;
    right: 24px;
}

.studio-scene-note.note-right::before {
    left: -58px;
}

.constructor-studio-presets,
.constructor-studio-guide,
.constructor-studio-workspace,
.constructor-studio-footer-note {
    padding: 22px 0 30px;
}

.studio-section-head {
    max-width: 720px;
    margin-bottom: 24px;
}

.studio-section-head h2,
.studio-summary-head h2,
.studio-footer-card h2 {
    margin: 14px 0 12px;
    font-size: 36px;
    line-height: 1.15;
    color: #183240;
}

.studio-section-head p,
.studio-footer-card p,
.studio-guide-card p,
.studio-summary-composition p,
.studio-summary-tips p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--studio-muted);
}

.studio-preset-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.studio-preset {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    min-height: 210px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(48, 163, 211, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 250, 253, 0.96) 100%);
    box-shadow: 0 20px 38px rgba(17, 75, 103, 0.08);
    text-align: left;
    color: var(--studio-text);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.studio-preset:hover,
.studio-preset.is-active {
    transform: translateY(-4px);
    border-color: rgba(48, 163, 211, 0.3);
    box-shadow: 0 28px 50px rgba(17, 75, 103, 0.14);
}

.studio-preset.is-active {
    background:
        linear-gradient(180deg, rgba(235, 248, 253, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.studio-preset-title {
    font-size: 24px;
    line-height: 1.15;
    color: #17303d;
}

.studio-preset-meta {
    font-size: 15px;
    line-height: 1.6;
    color: var(--studio-muted);
}

.studio-preset-tags {
    margin-top: auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(48, 163, 211, 0.08);
    font-size: 13px;
    color: var(--studio-sky-deep);
}

.studio-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.studio-guide-card,
.studio-footer-card {
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(48, 163, 211, 0.12);
    box-shadow: 0 18px 42px rgba(17, 75, 103, 0.08);
}

.studio-guide-step {
    display: inline-flex;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.18em;
    color: var(--studio-sky-deep);
}

.studio-guide-card h3 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.2;
    color: #17303d;
}

.studio-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 24px;
    align-items: start;
}

.studio-summary-card {
    position: sticky;
    top: 124px;
    padding: 30px;
    border-radius: var(--studio-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 255, 0.98) 100%);
    border: 1px solid rgba(48, 163, 211, 0.12);
    box-shadow: var(--studio-shadow);
}

.studio-summary-stats {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.studio-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(48, 163, 211, 0.08);
}

.studio-summary-row span,
.studio-summary-price span,
.studio-summary-composition span {
    font-size: 13px;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--studio-muted);
}

.studio-summary-row strong {
    max-width: 170px;
    font-size: 16px;
    line-height: 1.45;
    text-align: right;
    color: #1a3442;
}

.studio-summary-price {
    margin: 24px 0 22px;
    padding: 20px 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(48, 163, 211, 0.12) 0%, rgba(223, 246, 251, 0.8) 100%);
}

.studio-summary-price strong {
    display: block;
    margin-top: 10px;
    font-size: 36px;
    line-height: 1;
    color: var(--studio-sky-deep);
}

.studio-summary-composition p {
    margin-top: 12px;
}

.studio-summary-tips {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(48, 163, 211, 0.08);
}

.studio-footer-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 26px;
    align-items: center;
    margin-bottom: 48px;
}

.constructor-studio-page .constructor {
    padding: 0;
}

.constructor-studio-page .constructor .constructor_block.container {
    width: auto;
    max-width: none;
    padding: 0;
}

.constructor-studio-page .constructor_title {
    margin-bottom: 10px;
    font-size: 38px;
    line-height: 1.12;
}

.constructor-studio-page .constructor_title::before {
    display: none;
}

.constructor-studio-page .constructor_desc {
    max-width: 760px;
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--studio-muted);
}

.constructor-studio-page .calc_head {
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.constructor-studio-page .calc_buts {
    display: flex;
    gap: 10px;
}

.constructor-studio-page .calc_head_btn {
    width: auto;
    min-width: 220px;
    padding: 16px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(48, 163, 211, 0.12);
    color: var(--studio-text);
    box-shadow: 0 12px 28px rgba(17, 75, 103, 0.06);
}

.constructor-studio-page .calc_head_btn:hover,
.constructor-studio-page .calc_head .active_tab {
    background: linear-gradient(135deg, var(--studio-sky) 0%, #5ec5ea 100%);
    color: #fff;
}

.constructor-studio-page .calc_head .active_tab::before {
    display: none;
}

.constructor-studio-page .calc_question {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px dashed rgba(48, 163, 211, 0.36);
    margin-bottom: 0;
    color: var(--studio-sky-deep);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.constructor-studio-page .calc_block {
    padding: 34px;
    border: 1px solid rgba(48, 163, 211, 0.12);
    border-radius: var(--studio-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 255, 0.98) 100%);
    box-shadow: var(--studio-shadow);
}

.constructor-studio-page .calc_size {
    padding: 18px 22px;
    border-radius: 22px;
    background: rgba(223, 246, 251, 0.42);
    margin-bottom: 24px;
}

.constructor-studio-page .calc_desc {
    margin-bottom: 18px;
}

.constructor-studio-page .calc_desc p,
.constructor-studio-page .calc_size_title p,
.constructor-studio-page .calc_img_title {
    font-size: 16px;
    color: var(--studio-text);
}

.constructor-studio-page .layer {
    margin-bottom: 8px;
}

.constructor-studio-page .layer_info {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    width: calc(100% - 72px);
    padding: 12px 18px;
    border: 1px solid rgba(48, 163, 211, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

.constructor-studio-page .layer:hover .layer_info {
    border-color: rgba(48, 163, 211, 0.18);
}

.constructor-studio-page .layer_title {
    width: auto;
    min-width: 0;
    margin: 0;
    color: var(--studio-sky-deep);
    border-bottom-color: rgba(20, 125, 169, 0.34);
}

.constructor-studio-page .layer_name,
.constructor-studio-page .layer_info select,
.constructor-studio-page #kokos,
.constructor-studio-page #kokos2,
.constructor-studio-page #op-pruj {
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
    color: var(--studio-text);
}

.constructor-studio-page .layer_name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.constructor-studio-page .layer_price {
    justify-self: end;
    white-space: nowrap;
}

.constructor-studio-page .calc_foot_btns {
    margin-top: 18px;
    padding: 18px 0 0;
    border-top: 1px solid rgba(48, 163, 211, 0.1);
    border-bottom: 0;
}

.constructor-studio-page .studio-summary-card--inline {
    position: relative;
    top: auto;
    margin-top: 18px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(250, 253, 255, 0.98) 0%, rgba(239, 249, 253, 0.98) 100%);
    box-shadow: 0 18px 32px rgba(17, 75, 103, 0.08);
}

.constructor-studio-page .studio-summary-head--inline {
    margin-bottom: 10px;
}

.constructor-studio-page .studio-summary-head--inline h2 {
    margin: 8px 0 0;
    font-size: 24px;
    line-height: 1.08;
}

.constructor-studio-page .studio-summary-inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.constructor-studio-page .studio-summary-inline-item {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(48, 163, 211, 0.08);
}

.constructor-studio-page .studio-summary-inline-item--wide {
    grid-column: 1 / -1;
}

.constructor-studio-page .studio-summary-inline-item span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--studio-muted);
}

.constructor-studio-page .studio-summary-inline-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    color: #1a3442;
    word-break: break-word;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.constructor-studio-page .studio-summary-price--inline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 12px 0 10px;
    padding: 14px 16px;
    border-radius: 18px;
}

.constructor-studio-page .studio-summary-price--inline strong {
    margin-top: 0;
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.constructor-studio-page .studio-summary-composition--inline p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.constructor-studio-page .studio-summary-tips--inline {
    display: none;
}

.constructor-studio-page .studio-summary-tips--inline p {
    font-size: 13px;
    line-height: 1.6;
}

.constructor-studio-page .add_layer a,
.constructor-studio-page .remove_layer a {
    min-height: 48px;
    padding: 0 14px;
    align-items: center;
    border-radius: 999px;
}

.constructor-studio-page .add_layer a {
    background: rgba(48, 163, 211, 0.08);
}

.constructor-studio-page .remove_layer a {
    background: rgba(239, 82, 82, 0.08);
}

.constructor-studio-page .calc_bot {
    gap: 28px;
    align-items: flex-start;
}

.constructor-studio-page .calc {
    width: 500px;
    max-width: 100%;
}

.constructor-studio-page .calc_img {
    width: calc(100% - 528px);
    min-height: 100%;
    padding: 24px 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(223, 246, 251, 0.42) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.constructor-studio-page .calc_visual_topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.constructor-studio-page .calc_visual_heading {
    max-width: 470px;
}

.constructor-studio-page .calc_img_title {
    margin-bottom: 0;
}

.constructor-studio-page .calc_visual_caption {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--studio-muted);
}

.constructor-studio-page .calc_visual_tag {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(48, 163, 211, 0.16);
    box-shadow: 0 10px 24px rgba(17, 75, 103, 0.08);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--studio-sky-deep);
    white-space: nowrap;
}

.constructor-studio-page .calc_int_img {
    justify-content: center;
    align-items: stretch;
    gap: 18px;
}

.constructor-studio-page .calc_visual_shell {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: 38px 20px 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(230, 246, 252, 0.78) 100%);
    border: 1px solid rgba(48, 163, 211, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 26px 48px rgba(23, 96, 127, 0.12);
    overflow: hidden;
}

.constructor-studio-page .calc_visual_shell::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    border: 1px dashed rgba(48, 163, 211, 0.22);
    background:
        linear-gradient(180deg, rgba(48, 163, 211, 0.04) 0%, rgba(255, 255, 255, 0) 44%),
        repeating-linear-gradient(
            180deg,
            rgba(48, 163, 211, 0.02) 0,
            rgba(48, 163, 211, 0.02) 14px,
            rgba(255, 255, 255, 0) 14px,
            rgba(255, 255, 255, 0) 28px
        );
    pointer-events: none;
}

.constructor-studio-page .calc_visual_shell::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 72%;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 112, 146, 0.22) 0%, rgba(34, 112, 146, 0.06) 52%, rgba(34, 112, 146, 0) 78%);
    filter: blur(7px);
    pointer-events: none;
}

.constructor-studio-page .calc_visual_badge {
    position: absolute;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(48, 163, 211, 0.16);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(17, 75, 103, 0.08);
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4e7285;
}

.constructor-studio-page .calc_visual_badge_top {
    top: 14px;
}

.constructor-studio-page .calc_visual_badge_bottom {
    bottom: 14px;
}

.constructor-studio-page .calc_block_img {
    position: relative;
    z-index: 1;
    min-height: 286px;
    padding: 8px 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0;
}

.constructor-studio-page .calc_block_img img {
    display: block;
    width: min(320px, 100%);
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 12px 20px rgba(31, 97, 127, 0.14));
}

.constructor-studio-page .calc_block_img img + img {
    margin-top: 0;
}

.constructor-studio-page .calc_block_img .pruj-img {
    filter: drop-shadow(0 14px 18px rgba(36, 78, 101, 0.18));
}

.constructor-studio-page .calc_layer_tooltip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: min(280px, calc(100% - 32px));
    padding: 14px 16px 15px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 250, 255, 0.92) 100%);
    border: 1px solid rgba(48, 163, 211, 0.18);
    box-shadow:
        0 22px 44px rgba(16, 81, 112, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.16s ease,
        visibility 0.16s ease,
        transform 0.18s ease;
    transform: translateY(6px) scale(0.98);
}

.constructor-studio-page .calc_layer_tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.constructor-studio-page .calc_layer_tooltip_badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(42, 165, 219, 0.1);
    color: #3f7490;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.constructor-studio-page .calc_layer_tooltip_title {
    margin: 10px 0 0;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 600;
    color: #203645;
}

.constructor-studio-page .calc_layer_tooltip_desc {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(32, 54, 69, 0.82);
}

.constructor-studio-page .calc_visual_legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 12px;
}

.constructor-studio-page .calc_visual_legend_item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(48, 163, 211, 0.1);
    box-shadow: 0 12px 24px rgba(17, 75, 103, 0.05);
    font-size: 12px;
    line-height: 1;
    color: var(--studio-text);
}

.constructor-studio-page .calc_visual_legend_item i {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.constructor-studio-page .calc_visual_legend_item .legend-cover {
    background: linear-gradient(135deg, #ffffff 0%, #cfeaf6 100%);
    border: 1px solid rgba(48, 163, 211, 0.24);
}

.constructor-studio-page .calc_visual_legend_item .legend-comfort {
    background: linear-gradient(135deg, #f4e8fb 0%, #e4d0f1 100%);
}

.constructor-studio-page .calc_visual_legend_item .legend-core {
    background: linear-gradient(135deg, #dce7ef 0%, #8aa1b2 100%);
}

.constructor-studio-page .calc_visual_legend_item .legend-base {
    background: linear-gradient(135deg, #d7b48a 0%, #bf8e59 100%);
}

@media (hover: hover) and (pointer: fine) {
    .constructor-studio-page .calc_block_img img {
        cursor: help;
        transition:
            opacity 0.18s ease,
            transform 0.18s ease;
    }

    .constructor-studio-page .calc_block_img img:hover {
        transform: translateY(-1px);
    }
}

.constructor-studio-page .calc_img_arrows {
    --studio-arrow-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 12px 6px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(48, 163, 211, 0.12);
    box-shadow: 0 18px 30px rgba(17, 75, 103, 0.06);
}

.constructor-studio-page .arrow_up,
.constructor-studio-page .arrow_down {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: var(--studio-arrow-height);
    flex: 0 0 auto;
    transition: height 0.28s ease;
}

.constructor-studio-page .arrow_up::before,
.constructor-studio-page .arrow_down::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    border-radius: 999px;
    background: rgba(47, 63, 73, 0.52);
    transform: translateX(-50%);
}

.constructor-studio-page .arrow_up::before {
    top: 10px;
    bottom: 0;
}

.constructor-studio-page .arrow_down::before {
    top: 0;
    bottom: 10px;
}

.constructor-studio-page .arrow_up::after,
.constructor-studio-page .arrow_down::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    border-color: rgba(47, 63, 73, 0.78);
    transform: translateX(-50%) rotate(45deg);
}

.constructor-studio-page .arrow_up::after {
    top: 0;
    border-top: 2px solid rgba(47, 63, 73, 0.78);
    border-left: 2px solid rgba(47, 63, 73, 0.78);
}

.constructor-studio-page .arrow_down::after {
    bottom: 0;
    border-right: 2px solid rgba(47, 63, 73, 0.78);
    border-bottom: 2px solid rgba(47, 63, 73, 0.78);
}

.constructor-studio-page .arrow_up img,
.constructor-studio-page .arrow_down img {
    display: none;
}

.constructor-studio-page .mat_height {
    min-width: 56px;
    text-align: center;
    margin: 8px 0;
    padding: 10px 6px;
    border-radius: 16px;
    background: rgba(223, 246, 251, 0.78);
}

.constructor-studio-page .mat_height p {
    color: var(--studio-muted);
}

.constructor-studio-page .calc_checkout {
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 14px;
}

.constructor-studio-page .calc_checkout_actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    max-width: 320px;
}

.constructor-studio-page .calc_sum {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding-left: 0;
    margin-top: 0;
    font-size: 14px;
    color: var(--studio-muted);
}

.constructor-studio-page .calc_sum_value {
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.constructor-studio-page .calc_sum_value > * {
    flex: 0 0 auto;
}

.constructor-studio-page .calc_sum b {
    margin-left: 0;
    margin-right: 0;
    font-size: 40px;
    line-height: 1;
    color: var(--studio-sky-deep);
}

.constructor-studio-page .calc_sum_value img {
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-bottom: 4px;
}

.constructor-studio-page .calc_sum_value b {
    margin-left: 0;
    margin-right: 0;
}

.constructor-studio-page .product_card_btn {
    width: 100%;
    max-width: 320px;
    min-height: 62px;
    margin-top: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--studio-sky) 0%, #62d0ec 100%);
    box-shadow: 0 24px 38px rgba(48, 163, 211, 0.26);
}

.constructor-studio-page .product_card_btn:hover {
    box-shadow: 0 28px 44px rgba(48, 163, 211, 0.34);
}

.constructor-studio-page .constructor_share_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(48, 163, 211, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 26px rgba(17, 75, 103, 0.08);
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
    color: var(--studio-sky-deep);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.constructor-studio-page .constructor_share_btn:hover {
    transform: translateY(-1px);
    border-color: rgba(48, 163, 211, 0.42);
    box-shadow: 0 18px 32px rgba(17, 75, 103, 0.12);
}

.constructor-studio-page .constructor_share_btn:disabled {
    cursor: default;
}

.constructor-studio-page .constructor_share_btn.is-loading {
    border-color: rgba(48, 163, 211, 0.34);
    background: rgba(230, 246, 252, 0.92);
    color: #4f7d90;
    box-shadow: 0 16px 28px rgba(17, 75, 103, 0.1);
}

.constructor-studio-page .constructor_share_btn.is-success {
    border-color: rgba(67, 163, 124, 0.28);
    background: linear-gradient(135deg, rgba(237, 250, 244, 0.96) 0%, rgba(226, 247, 238, 0.96) 100%);
    color: #2f7d5a;
    box-shadow: 0 18px 30px rgba(38, 120, 85, 0.12);
}

.constructor-studio-page .constructor_save_hint {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--studio-muted);
}

.constructor-studio-page .constructor_save_hint.is-success {
    color: #2f7d5a;
}

.constructor-studio-page .constructor_save_hint.is-warning {
    color: #a06a1b;
}

.constructor-studio-page .calc_width select,
.constructor-studio-page .calc_height select,
.constructor-studio-page .calc_width input,
.constructor-studio-page .calc_height input {
    min-height: 48px;
    border-radius: 16px;
}

.constructor-studio-page .calc_width input::placeholder,
.constructor-studio-page .calc_height input::placeholder {
    color: rgba(98, 121, 136, 0.72);
}

@media only screen and (max-width: 1820px) {
    .studio-workspace-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .studio-summary-card {
        position: relative;
        top: auto;
    }
}

@media only screen and (max-width: 1400px) {
    .studio-hero-copy h1 {
        font-size: 44px;
    }

    .studio-preset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 1180px) {
    .studio-hero-panel,
    .studio-footer-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .studio-hero-scene {
        min-height: 360px;
    }

    .studio-metrics,
    .studio-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .constructor-studio-page .calc_bot {
        flex-direction: column;
    }

    .constructor-studio-page .calc,
    .constructor-studio-page .calc_img {
        width: 100%;
    }

    .constructor-studio-page .calc_visual_topline {
        flex-direction: column;
    }

    .constructor-studio-page .studio-summary-inline-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media only screen and (max-width: 767px) {
    .constructor-studio-page {
        padding-bottom: 92px;
    }

    .constructor-studio-hero {
        padding-top: 24px;
    }

    .studio-hero-panel,
    .studio-guide-card,
    .studio-footer-card,
    .studio-summary-card,
    .constructor-studio-page .calc_block {
        padding: 22px;
        border-radius: 26px;
    }

    .studio-hero-copy h1 {
        font-size: 34px;
    }

    .studio-lead {
        font-size: 16px;
    }

    .studio-metrics,
    .studio-guide-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .studio-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .studio-metrics .studio-metric-card:last-child {
        grid-column: 1 / -1;
    }

    .studio-preset-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .studio-preset {
        min-height: 0;
        padding: 20px;
    }

    .studio-hero-scene {
        min-height: 264px;
    }

    .studio-scene-card {
        width: calc(100% - 44px);
        padding: 16px 18px;
        font-size: 16px;
    }

    .scene-card-cover {
        top: 36px;
    }

    .scene-card-soft {
        top: 96px;
    }

    .scene-card-core {
        top: 156px;
    }

    .scene-card-firm {
        top: 216px;
    }

    .studio-scene-note {
        display: none;
    }

    .studio-section-head h2,
    .studio-summary-head h2,
    .studio-footer-card h2,
    .constructor-studio-page .constructor_title {
        font-size: 28px;
    }

    .constructor-studio-page .calc_head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .constructor-studio-page .calc_buts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex-direction: row;
        width: 100%;
        gap: 10px;
    }

    .constructor-studio-page .calc_head_btn {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 12px 14px;
    }

    .constructor-studio-page .calc_question {
        justify-content: center;
        width: 100%;
        min-height: 48px;
    }

    .constructor-studio-page .calc_size {
        padding: 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .constructor-studio-page .calc_size_title {
        width: 100%;
    }

    .constructor-studio-page .calc_visual_shell {
        padding: 42px 82px 34px 16px;
    }

    .constructor-studio-page .calc_layer_tooltip {
        display: none !important;
    }

    .constructor-studio-page .calc_visual_badge {
        left: 16px;
    }

    .constructor-studio-page .calc_int_img {
        position: relative;
    }

    .constructor-studio-page .layer_info {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 10px;
        width: auto;
        min-width: 0;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .constructor-studio-page .layer_title,
    .constructor-studio-page .layer_name,
    .constructor-studio-page .layer_info select,
    .constructor-studio-page #kokos,
    .constructor-studio-page #kokos2,
    .constructor-studio-page #op-pruj {
        width: auto;
        min-width: 0;
    }

    .constructor-studio-page .layer {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 8px;
        align-items: stretch;
        margin-bottom: 8px;
    }

    .constructor-studio-page .layer_img,
    .constructor-studio-page .del_layer {
        width: 30px;
        height: 30px;
        align-self: start;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .constructor-studio-page .layer_title {
        grid-column: 1;
        width: auto;
        margin: 0;
    }

    .constructor-studio-page .layer_name,
    .constructor-studio-page .layer_info select,
    .constructor-studio-page #kokos,
    .constructor-studio-page #kokos2,
    .constructor-studio-page #op-pruj {
        grid-column: 1 / -1;
        font-size: 14px;
        line-height: 1.35;
        white-space: normal;
        text-overflow: unset;
        overflow: visible;
    }

    .constructor-studio-page .layer_price {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
        justify-self: end;
        white-space: nowrap;
        font-size: 13px;
    }

    .constructor-studio-page .calc_foot_btns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-items: stretch;
    }

    .constructor-studio-page .add_layer a,
    .constructor-studio-page .remove_layer a {
        justify-content: center;
        width: 100%;
        min-height: 46px;
        padding: 0 12px;
    }

    .constructor-studio-page .calc_block_img {
        min-height: 248px;
        padding: 12px 0;
    }

    .constructor-studio-page .calc_block_img img {
        width: min(208px, 100%);
        max-width: 208px;
    }

    .constructor-studio-page .calc_block_img img + img {
        margin-top: 0;
    }

    .constructor-studio-page .calc_visual_topline {
        gap: 12px;
    }

    .constructor-studio-page .calc_visual_caption {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.55;
    }

    .constructor-studio-page .calc_img_arrows {
        --studio-arrow-height: 34px;
        position: absolute;
        top: 50%;
        right: 12px;
        width: auto;
        min-width: 54px;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 10px 6px;
        transform: translateY(-50%);
        z-index: 3;
    }

    .constructor-studio-page .mat_height {
        margin: 0;
        min-width: 62px;
    }

    .constructor-studio-page .calc_visual_legend {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .constructor-studio-page .calc_visual_legend_item {
        min-width: 0;
        justify-content: center;
        padding: 0 10px;
        text-align: center;
    }

    .constructor-studio-page .calc_sum {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        align-items: flex-end;
    }

    .constructor-studio-page .calc_sum b {
        font-size: 26px;
        margin-left: auto;
        margin-right: 0;
    }

    .constructor-studio-page .calc_sum_value b {
        margin-left: 0;
        margin-right: 0;
    }

    .constructor-studio-page .product_card_btn {
        max-width: none;
    }

    .constructor-studio-page .calc_checkout_actions {
        max-width: none;
        align-items: stretch;
    }

    .constructor-studio-page .constructor_share_btn {
        min-height: 46px;
    }

    .constructor-studio-page .calc_checkout {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .constructor-studio-page .calc_sum {
        align-items: flex-start;
    }

    .constructor-studio-page .calc_sum b {
        font-size: 30px;
    }

    .constructor-studio-page .constructor_save_hint {
        margin-top: 8px;
        text-align: center;
    }

    .constructor-studio-page .studio-summary-card--inline {
        margin-top: 14px;
        padding: 14px;
    }

    .constructor-studio-page .studio-summary-head--inline h2 {
        font-size: 22px;
    }

    .constructor-studio-page .studio-summary-price--inline {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .constructor-studio-page .studio-summary-price--inline strong {
        font-size: 24px;
    }
}
