.stk-calculator-page { max-width: 1280px; margin: 48px auto 80px; padding: 0 32px; }
.stk-calculator-page [hidden] { display: none !important; }
.stk-calculator-page h1, .stk-calculator-page h2, .stk-calculator-page h3 { color: #002e61; }
.stk-calc-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: center; margin-bottom: 48px; }
.stk-calc-hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.06; font-weight: 900; letter-spacing: -.035em; margin-bottom: 24px; }
.stk-calc-hero p { max-width: 730px; font-size: 17px; line-height: 1.75; color: #56616e; }
.stk-calc-hero img { width: 100%; height: 260px; object-fit: cover; border: 16px solid #e6e8e9; }
.stk-calc-switcher { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.stk-calc-switcher button { min-height: 56px; padding: 12px 8px; border: 1px solid #cad4da; border-radius: 8px; background: white; color: #002e61; font-size: 15px; font-weight: 700; transition: background .15s, color .15s; }
.stk-calc-switcher button:hover { background: #e4f3f8; }
.stk-calc-switcher button[aria-pressed="true"] { background: #002e61; color: white; border-color: #002e61; }
.stk-calc-workspace { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); border: 1px solid #dbe0e3; border-radius: 12px; }
.stk-calc-inputs, .stk-calc-visual { padding: 32px; min-width: 0; }
.stk-calc-inputs { background: #e6e8e9; border-radius: 12px 0 0 12px; }
.stk-calc-inputs h2 { color: #007b9e; font-size: 21px; font-weight: 800; line-height: 1.4; margin: 0 0 28px; }
.stk-calc-field { min-width: 0; margin-bottom: 20px; }
.stk-calc-field label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; line-height: 1.5; color: #394657; }
.stk-calc-field input, .stk-calc-field select { box-sizing: border-box; width: 100%; min-width: 0; height: 54px; padding: 12px 14px; color: #182d41; border: 1px solid #c5cdd2; border-radius: 6px; background-color: #fff; font-family: inherit; font-size: 16px; line-height: 1.5; }
.stk-calc-field select { padding-right: 32px; }
.stk-calc-field input:disabled, .stk-calc-field select:disabled { background-color: #f0f2f3; color: #687782; cursor: not-allowed; }
.stk-calc-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stk-calc-field [aria-invalid="true"] { border-color: #b42318; }
.stk-calculator-page :is(button, a, input, select):focus-visible { outline: 3px solid #0091bb; outline-offset: 3px; }
.stk-calc-tooltip-wrap { position: relative; }
.stk-calc-tooltip { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 10; background: #002e61; color: #fff; border-radius: 8px; box-shadow: 0 6px 20px #002e6126; padding: 16px; font-size: 14px; line-height: 1.6; pointer-events: none; }
.stk-calc-hint { font-size: 13px; color: #586875; line-height: 1.65; margin: 0 0 14px; }
.stk-calc-field .stk-calc-hint { margin: 10px 0 0; }
.stk-calc-results { border-top: 1px solid #cbd2d7; margin-top: 10px; padding-top: 24px; display: grid; gap: 22px; }
.stk-calc-result-label { display: block; font-size: 14px; line-height: 1.6; color: #425161; }
.stk-calc-result { display: block; color: #007fa5; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.3; font-weight: 800; margin-top: 5px; overflow-wrap: anywhere; }
.stk-calc-result small { font-size: 22px; font-weight: 700; }
.stk-calc-results .stk-calc-hint { margin-top: 8px; }
.stk-calc-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 16px 18px; border: 0; border-radius: 6px; color: #fff; background: #0091bb; font-size: 13px; line-height: 1.5; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; cursor: pointer; }
.stk-calc-primary:hover { background: #007b9e; }
#calc-submit { margin-top: 22px; }
.stk-calc-visual { display: flex; flex-direction: column; background: #f2f4f5; border-radius: 0 12px 12px 0; }
.stk-calc-visual h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
#calc-visual-caption { font-size: 14px; line-height: 1.6; color: #586875; }
.stk-calc-drawing { margin: 26px -12px 12px; min-height: 290px; display: flex; flex-direction: column; justify-content: center; flex-grow: 1; }
.stk-calc-drawing svg { display: block; width: 100%; height: auto; max-height: 440px; }
.stk-calc-drawing svg text { font-family: Inter, sans-serif; fill: #263d50; }
.stk-calc-drawing .stk-calc-hint { text-align: center; padding: 32px; }
.stk-calc-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; font-size: 11px; color: #586875; line-height: 1.5; margin-top: 8px; }
.stk-calc-legend span { display: flex; align-items: center; gap: 6px; }
.stk-calc-legend i { display: inline-block; width: 20px; height: 16px; border: 1px solid #596c7e; background: repeating-linear-gradient(135deg, #d1e5ed 0 4px, #618393 4px 5px, #d1e5ed 5px 9px); }
.stk-calc-legend i.building { background: radial-gradient(#819099 .7px, #f2f4f5 .7px) 0 0 / 5px 5px; }
.stk-calc-contact { border-top: 1px solid #d8dfe4; margin-top: 12px; padding-top: 24px; }
.stk-calc-contact > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 22px; }
.stk-calc-contact a { font-size: 14px; font-weight: 700; color: #002e61; }
.stk-calc-contact a:hover { text-decoration: underline; }
.stk-calc-error, .stk-calc-notice { padding: 12px 16px; margin-bottom: 16px; background: #fff5ef; color: #943515; border-radius: 6px; font-size: 14px; line-height: 1.6; }
.stk-calc-documents { margin-top: 72px; }
.stk-calc-documents h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.2; font-weight: 800; }
.stk-calc-documents > p { margin: 16px 0 30px; color: #586875; }
.stk-calc-doc-list { display: grid; gap: 12px; }
.stk-calc-doc-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 20px; border: 1px solid #d9e0e5; border-radius: 8px; padding: 22px; background: white; }
.stk-calc-doc-row h3 { font-size: 16px; font-weight: 800; }
.stk-calc-doc-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stk-calc-download { display: flex; min-width: 0; text-align: left; align-items: center; gap: 10px; padding: 12px 10px; border: 1px solid #cbd5dc; border-radius: 6px; background: #f8fafb; font-size: 12px; line-height: 1.5; color: #002e61; }
.stk-calc-download > span:nth-child(2) { flex: 1; }
.stk-calc-download small { display: block; font-size: 11px; margin-top: 5px; color: #5a6874; }
.stk-calc-download:disabled { cursor: default; }
.stk-calc-download .material-symbols-outlined { font-size: 18px; }
.stk-calc-download:disabled .material-symbols-outlined { color: #8696a1; }
.stk-calc-download[href]:hover { border-color: #0091bb; background: #eaf5f9; }
.stk-calc-filetype { font-size: 10px; letter-spacing: .03em; font-weight: 800; color: #007b9e; }
@media (max-width: 1199px) {
  .stk-calc-workspace { grid-template-columns: minmax(0, 1fr); }
  .stk-calc-inputs { border-radius: 12px 12px 0 0; }
  .stk-calc-visual { border-radius: 0 0 12px 12px; }
  .stk-calc-drawing { max-width: 620px; width: 100%; margin-left: auto; margin-right: auto; align-self: center; }
  .stk-calc-doc-row { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 767px) {
  .stk-calculator-page { padding: 0 20px; margin-top: 32px; }
  .stk-calc-hero { grid-template-columns: 1fr; gap: 0; margin-bottom: 30px; }
  .stk-calc-hero img { display: none; }
  .stk-calc-hero p { font-size: 15px; }
  .stk-calc-switcher { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stk-calc-switcher button { font-size: 13px; padding: 10px 5px; min-height: 50px; }
  .stk-calc-inputs, .stk-calc-visual { padding: 24px; }
  .stk-calc-doc-files { grid-template-columns: 1fr; }
  .stk-calc-download { font-size: 14px; padding: 14px; }
  .stk-calc-filetype { font-size: 12px; min-width: 38px; }
  .stk-calc-documents { margin-top: 48px; }
}
@media (max-width: 479px) {
  .stk-calc-inputs, .stk-calc-visual { padding: 20px 16px; }
  .stk-calc-field-grid { grid-template-columns: 1fr; gap: 0; }
  .stk-calc-inputs h2 { font-size: 20px; }
  .stk-calc-field select { white-space: normal; height: auto; min-height: 54px; }
  .stk-calc-drawing { min-height: 240px; }
  .stk-calc-hero h1 { font-size: 39px; }
}

.stk-calc-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stk-calc-selected-label { display: none; }
@media (max-width: 639px) {
  .stk-calc-sections { grid-template-columns: 1fr; gap: 0; }
  .stk-calc-selected-label { display: block; font-size: 16px; line-height: 1.5; margin: 8px 0 0; color: #394657; }
}
