body.calculator-page {
    min-width: 0;
    background: #f7f5f0;
}
.calculator-page .container { max-width: 100% !important; }
.calculator-page footer { height: auto; }
.yc {
    --ink: #342d28;
    --wine: #66343f;
    --muted: #716961;
    --line: #ded8ce;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.45;
    background: #f7f5f0;
    padding: 31px 24px 70px;
}
.yc *, .yc *::before, .yc *::after { box-sizing: border-box; }
.yc [hidden] { display: none !important; }
.yc-wrap { max-width: 1152px; margin: auto; }
.yc-crumb { display: flex; gap: 12px; align-items: center; margin-bottom: 19px; color: var(--muted); font-size: 14px; }
.yc-crumb a { color: inherit; border: 0; }
.yc-crumb a:hover { color: var(--wine); text-decoration: underline; }
.yc h1, .yc h2 { font-family: inherit; font-weight: 400; color: var(--ink); }
.yc h1 { margin: 0; font-size: clamp(38px, 4.2vw, 61px); line-height: 1.09; letter-spacing: -.045em; }
.yc-intro { margin: 11px 0 29px; font-size: 18px; color: var(--muted); }
.yc-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: start; gap: 22px; }
.yc-preview, .yc-controls { border: 1px solid var(--line); border-radius: 16px; }
.yc-preview { position: sticky; top: 100px; overflow: hidden; background: #f5efe3; }
.yc-figure {
    margin: 0;
    background-image: linear-gradient(90deg, #a7895c12 1px, transparent 1px), linear-gradient(#a7895c12 1px, transparent 1px);
    background-size: 23px 23px;
}
.yc-figure-head, .yc-total, .yc-actions, .yc-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yc-figure-head { padding: 23px 25px 0; }
.yc-figure-title { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.yc-cross { width: 15px; height: 15px; border: 1.5px solid #876d57; border-radius: 50%; position: relative; }
.yc-cross::before, .yc-cross::after { content: ''; position: absolute; background: #876d57; }
.yc-cross::before { width: 19px; height: 1px; left: -3px; top: 6px; }
.yc-cross::after { width: 1px; height: 19px; top: -3px; left: 6px; }
#yc-diameter { padding: 2px 10px; background: #fffaf1; border: 1px solid #d5c7b5; border-radius: 20px; font-size: 13px; font-weight: 700; }
#yc-drawing { display: block; width: 100%; height: auto; }
#yc-drawing text { font-family: inherit; }
.yc-caption { display: flex; align-items: center; gap: 9px; padding: 0 25px 20px; color: #605448; font-size: 14px; }
.yc-caption i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #aa7550; }
.yc-total { background: #633540; color: #fffaf2; padding: 20px 25px; }
.yc-total span { display: block; font-size: 16px; font-weight: bold; }
.yc-total small { display: block; margin-top: 2px; color: #e4d1d2; font-size: 13px; }
.yc-total strong { font-size: clamp(25px, 2.8vw, 39px); font-weight: 400; line-height: 1.12; white-space: nowrap; letter-spacing: -.04em; font-variant-numeric: lining-nums tabular-nums; }
.yc-controls { padding: 27px; background: #fffefa; min-width: 0; }
.yc-progress { margin: 0 0 22px; color: var(--wine); font-size: 13px; font-weight: 700; }
#yc-track { width: 46%; max-width: 190px; display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
#yc-track li { height: 4px; flex: 1; background: #e9e3da; border-radius: 3px; }
#yc-track .yc-current { background: var(--wine); }
#yc-track .yc-done { background: #b69498; }
.yc h2 { font-size: clamp(29px, 2.7vw, 40px); line-height: 1.12; letter-spacing: -.035em; margin: 0; }
#yc-step-title:focus { outline: none; }
#yc-hint { color: var(--muted); margin: 6px 0 20px; }
.yc-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.yc-choices { display: grid; gap: 8px; }
.yc-option { position: relative; display: block; font: inherit; margin: 0; cursor: pointer; }
.yc-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.yc-card { display: flex; position: relative; min-height: 57px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; background: #fffefa; transition: background .15s, border-color .15s; }
.yc-choices .yc-choice-name { flex: 1; }
.yc-choice-name { color: var(--ink); font-weight: 700; }
.yc-price { color: #655e57; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.yc-mark { position: relative; flex: none; width: 15px; height: 15px; border: 1px solid #bdb4a9; border-radius: 50%; }
.yc-option input[type="checkbox"] + .yc-card .yc-mark { border-radius: 4px; }
.yc-option input:checked + .yc-card { background: #f6edeb; border-color: var(--wine); box-shadow: inset 0 0 0 .4px var(--wine); }
.yc-option input:checked + .yc-card .yc-mark { background: var(--wine); border-color: var(--wine); }
.yc-option input:checked + .yc-card .yc-mark::after { content: ''; position: absolute; left: 4px; top: 2px; width: 5px; height: 8px; border: solid white; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.yc-option:hover .yc-card { border-color: #9c7980; }
.yc :focus-visible, .yc-option input:focus-visible + .yc-card { outline: 2px solid #8a4a59; outline-offset: 3px; }
.yc-sizes .yc-card { align-items: start; flex-direction: column; min-height: 66px; padding: 10px 12px; gap: 2px; }
.yc-sizes .yc-choice-name { font-size: 19px; line-height: 1.2; }
.yc-sizes .yc-mark { position: absolute; top: 10px; right: 9px; width: 13px; height: 13px; }
.yc-sizes .yc-option input:checked + .yc-card .yc-mark::after { left: 3px; top: 1px; }
.yc-actions { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 17px; }
.yc-actions button { min-height: 43px; border-radius: 7px; padding: 9px 16px; font: inherit; font-weight: 700; }
.yc-back { border: 1px solid var(--line); background: transparent; color: var(--wine); }
.yc-next { display: inline-flex; align-items: center; justify-content: center; gap: 22px; margin-left: auto; border: 1px solid var(--wine); background: var(--wine); color: #fff; }
.yc-next i { font-size: 20px; line-height: 1; font-style: normal; }
.yc-next:hover:enabled { background: #4a2630; }
.yc-back:hover { background: #f6edeb; }
.yc-next:disabled { opacity: .46; cursor: default; }
#yc-summary { margin: 0; }
.yc-summary-row { border-top: 1px solid var(--line); padding: 8px 0; }
.yc-summary-row dt { font-size: 14px; }
.yc-summary-row dd { display: flex; justify-content: space-between; gap: 12px; margin: 2px 0 0; }
.yc-summary-row strong { white-space: nowrap; }
.yc-edit { appearance: none; border: 0; border-bottom: 1px dotted currentColor; padding: 0; background: transparent; color: var(--wine); font: inherit; cursor: pointer; }
@media (min-width: 441px) and (max-width: 1199px) {
    .calculator-page #top .container > .row { display: flex; }
    .calculator-page #top .container > .row > :first-child { width: 34%; }
    .calculator-page #top .container > .row > :last-child { width: 66%; }
    .calculator-page #top .phone { gap: 12px; padding-right: 10px; }
}
@media (min-width: 441px) and (max-width: 849px) {
    .calculator-page #top .container > .row > :first-child { width: 55%; }
    .calculator-page #top .container > .row > :last-child { width: 45%; }
    .calculator-page #top .phone { width: 100%; font-size: 16px; padding: 25px 10px; }
    .calculator-page #top .descript { padding-left: 35px; font-size: 14px; }
    .calculator-page #top .header-social-links, .calculator-page #top .callback { display: none; }
}
@media (max-width: 799px) {
    .yc { padding: 20px 16px 40px; }
    .yc-layout { grid-template-columns: 1fr; gap: 12px; }
    .yc-preview { position: static; }
    .yc-figure-head { padding: 12px 16px 0; }
    #yc-drawing { height: clamp(135px, 23vh, 185px); }
    .yc-caption { padding: 1px 16px 9px; font-size: 13px; }
    .yc-total { padding: 10px 16px; }
    .yc-total span { font-size: 14px; }
    .yc-total small { margin: 0; font-size: 12px; }
    .yc-controls { padding: 18px; }
    .yc-crumb { margin-bottom: 13px; }
    .yc-intro { font-size: 16px; margin: 8px 0 16px; }
    .yc-progress { margin-bottom: 13px; }
    #yc-hint { margin-bottom: 14px; }
}
@media (max-width: 799px) and (min-height: 580px) {
    .yc-preview { position: sticky; top: 87px; z-index: 2; }
}
@media (max-width: 440px) and (min-height: 580px) {
    .yc-preview { top: 0; }
}
@media (max-width: 360px) {
    .yc { padding-left: 10px; padding-right: 10px; }
    .yc-controls { padding: 14px; }
    .yc-sizes .yc-card { padding-left: 8px; }
    .yc-sizes .yc-price { font-size: 12px; }
    .yc-choices .yc-card { padding: 10px; gap: 6px; }
}

.yc-summary-row dt { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.yc-edit-action { border: 1px solid var(--line); border-radius: 6px; background: transparent; padding: 5px 10px; font: inherit; color: var(--wine); cursor: pointer; }
.yc-edit-action:hover { background: #f6edeb; border-color: var(--wine); }
.yc-dialog { position: fixed; inset: 0; width: min(440px, calc(100% - 24px)); max-height: 90vh; overflow-y: auto; margin: auto; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fffefa; color: var(--ink); }
.yc-dialog::backdrop { background: rgba(37, 26, 28, .58); }
.yc-dialog h2 { font-size: 30px; padding-right: 28px; }
.yc-dialog-close { position: absolute; top: 10px; right: 12px; height: 36px; width: 36px; border: 0; border-radius: 50%; color: var(--wine); background: transparent; font-size: 26px; line-height: 1; }
#yc-form-quote { color: var(--muted); margin: 8px 0 16px; }
#yc-form { display: grid; gap: 12px; }
#yc-form label { display: block; font-weight: 700; margin: 0; }
#yc-form label small { color: var(--muted); font-weight: 400; }
#yc-form input:not([type="checkbox"]):not([type="hidden"]) { display: block; width: 100%; padding: 8px 10px; border: 1px solid #bfb4a7; border-radius: 6px; margin-top: 3px; font: inherit; color: var(--ink); background: white; }
#yc-form .yc-consent { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 400; }
#yc-form a { color: var(--wine); }
.yc-captcha > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0; }
.yc-captcha img { border-radius: 4px; background: #f4eee6; }
#yc-submit { width: 100%; padding: 10px 14px; border-radius: 7px; font-weight: 700; }
.yc-form-status { margin: 12px 0 0; color: var(--wine); }
.yc-form-status:empty { margin: 0; }
