.msk {
  --msk-blue: #0004be;
  --msk-ink: #0b1e4d;
  --msk-line: #d8e0f0;
  --msk-light: #f1f5fc;
  color: var(--msk-ink);
  padding-top: 94px;
}
.prices-page .prices-heading {
  display: block;
  min-height: 0;
  padding-block: calc(var(--header-height) + 84px) clamp(22px, 3vw, 40px);
}
.prices-heading .heading__line { min-height: 0; padding-inline-start: clamp(14px, 2vw, 30px); }
.prices-heading .heading__title { max-width: 1050px; margin: 0 0 16px; }
.prices-heading .heading__title h1 { font-size: clamp(27px, 3.55vw, 52px); line-height: 1.14; }
.prices-heading .heading__text { max-width: 74ch; margin: 0; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.5; }
.prices-heading .heading__breadcrumbs { position: relative; inset: auto; margin-top: 24px; }
.prices-page .price > .inner > .inner { min-width: 0; }
.prices-page .price__button .btn { max-width: 100%; white-space: normal; text-align: center; }
.prices-calculator.msk { padding-top: 0; }
.prices-calculator-in-view :is(.soyuz-vk-widget, .mobile-contacts-toggle, .soyuz-contact-dock) {
  display: none !important;
}
.prices-calculator #calculator, .prices-calculator #calc-lead { scroll-margin-top: calc(var(--header-height) + 84px); }
.msk .msk-inner > #calculator { border: 1px solid var(--msk-line); }
.msk-calculator-result {
  margin-top: 20px;
  padding: clamp(16px, 3vw, 30px);
  border-radius: 14px;
  background: var(--msk-ink);
  color: #fff;
}
.msk .msk-calculator-result .msk-btn { background: #e8f0ff; color: var(--msk-ink); }
.msk .msk-calculator-result .msk-btn:is(:hover, :focus-visible) { background: #d3f6f8; }
.msk [hidden] { display: none !important; }
.msk-inner { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.msk-hero { background: var(--msk-light); padding: clamp(28px, 5vw, 80px) 0; }
.msk-split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: clamp(24px,4vw,64px); }
.msk h1 { color: var(--msk-ink); font-size: clamp(32px,4.6vw,60px); line-height: 1.1; margin: 0 0 18px; }
.msk h2 { color: var(--msk-ink); font-size: clamp(25px,3.1vw,40px); line-height: 1.15; margin: 0 0 16px; }
.msk h3 { font-size: clamp(17px,2vw,23px); line-height: 1.25; margin: 0 0 10px; }
.msk p, .msk li { line-height: 1.6; }
.msk p { margin: 0 0 14px; }
.msk a:not(.msk-btn) { color: var(--msk-blue); text-underline-offset: 3px; }
.msk .msk-calculator-result p:last-child { margin-bottom: 0; }
.msk .msk-calculator-result { gap: clamp(16px, 3vw, 32px); }
.msk-calculator-copy {
  padding-inline-start: clamp(16px, 3vw, 32px);
  border-inline-start: 1px solid rgb(255 255 255 / 22%);
  text-align: center;
}
.msk .msk-calculator-copy p {
  max-width: 32ch;
  margin: 0 auto 10px;
  font-size: clamp(1.125rem, 1.55vw, 1.375rem);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}
.msk .msk-calculator-copy .msk-calculator-note {
  max-width: 38ch;
  color: #dce8fb;
  font-size: clamp(.875rem, 1.05vw, .9375rem);
  font-weight: 400;
  line-height: 1.45;
}
.msk img, .msk video { display: block; width: 100%; height: auto; border-radius: 14px; }
.msk-hero img { aspect-ratio: 4/3; object-fit: cover; }
.msk-actions, .msk-nav { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.msk-nav { padding: 20px 0; border-bottom: 1px solid var(--msk-line); }
.msk-nav a { font-weight: 600; }
.msk .msk-inner > section { padding-block: clamp(26px,4.2vw,58px); scroll-margin-top: 120px; }
.msk :is(h2,h3,div)[id] { scroll-margin-top: 120px; }
.msk .msk-inner > .msk-panel { background: var(--msk-light); padding-inline: clamp(18px,4vw,46px); border-radius: 20px; margin-block: 20px; }
.msk-boiler #gift { --msk-card-bg: #e9f5f0; --msk-card-hover: #d6efe3; }
.msk-boiler #expertise { --msk-card-hover: #dce8fb; }
.msk-boiler .msk-boiler-offer > p {
  margin: 0;
  padding: clamp(16px, 2.5vw, 24px) clamp(16px, 4vw, 38px);
  border-inline-start: 4px solid #3b56c5;
  border-radius: 12px;
  background: #e7eeff;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 650;
  line-height: 1.45;
}
.msk-boiler-offer a { font-weight: 750; text-decoration: underline; }
.msk-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(230px,100%),1fr)); gap: 16px; margin: 20px 0; }
.msk-grid > article { padding: 20px; background: #fff; border: 1px solid var(--msk-line); border-radius: 14px; min-width: 0; }
:is(.msk-home #services, .msk-season #problems, .msk-designer #benefits, .msk-designer #pricing, .msk #cases) .msk-grid > article,
.msk-boiler :is(#gift, #expertise) {
  background: var(--msk-card-bg, var(--msk-light));
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
:is(.msk-home #services, .msk #cases) .msk-grid > article:focus-within {
  background: #e1f8fa;
  border-color: #79c9d2;
}
@media (hover: hover) and (pointer: fine) {
  :is(.msk-home #services, .msk-season #problems, .msk-designer #benefits, .msk-designer #pricing, .msk #cases) .msk-grid > article:hover,
  .msk-boiler :is(#gift, #expertise):hover {
    background: var(--msk-card-hover, #e1f8fa);
    border-color: var(--msk-card-edge, #79c9d2);
    color: var(--msk-card-hover-text, var(--msk-ink));
    box-shadow: 0 8px 20px rgb(11 30 77 / 10%);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.msk-home #services, .msk-season #problems, .msk-designer #benefits, .msk-designer #pricing, .msk #cases) .msk-grid > article:hover,
  .msk-boiler :is(#gift, #expertise):hover { transform: translateY(-3px) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  :is(.msk-home #services, .msk-season #problems, .msk-designer #benefits, .msk-designer #pricing, .msk #cases) .msk-grid > article,
  .msk-boiler :is(#gift, #expertise) { transition: none; }
}
.msk-season #problems .msk-grid > article:nth-child(1) {
  --msk-card-bg: #fff1e8;
  --msk-card-hover: #ffe3d1;
  --msk-card-edge: #e6ae87;
}
.msk-season #problems .msk-grid > article:nth-child(2) {
  --msk-card-bg: #e9f7f3;
  --msk-card-hover: #d3f2e8;
  --msk-card-edge: #91cbbb;
}
.msk-season #problems .msk-grid > article:nth-child(3) {
  --msk-card-bg: #edf0fe;
  --msk-card-hover: #e0e6fe;
  --msk-card-edge: #aebcf0;
}
.msk-designer :is(#benefits, #pricing) .msk-grid > article {
  --msk-card-hover-text: #fff;
  border-top: 3px solid var(--msk-card-edge);
  transition: transform .2s ease, box-shadow .2s ease;
}
.msk-designer :is(#benefits, #pricing) .msk-grid > article:nth-child(1) {
  --msk-card-bg: #eaf2fc;
  --msk-card-hover: #143e67;
  --msk-card-edge: #81a9d6;
}
.msk-designer :is(#benefits, #pricing) .msk-grid > article:nth-child(2) {
  --msk-card-bg: #e6f4f1;
  --msk-card-hover: #175250;
  --msk-card-edge: #79b4a9;
}
.msk-designer :is(#benefits, #pricing) .msk-grid > article:nth-child(3) {
  --msk-card-bg: #eef0fc;
  --msk-card-hover: #343d6b;
  --msk-card-edge: #a1a9dc;
}
@media (prefers-reduced-motion: reduce) {
  .msk-designer :is(#benefits, #pricing) .msk-grid > article { transition: none; }
}
.msk-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.msk-case-grid > article { padding: 0; }
.msk a.msk-case-link {
  display: block;
  height: 100%;
  padding: 14px;
  box-sizing: border-box;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}
.msk-case-link h3 { font-size: clamp(17px, 1.6vw, 22px); }
.msk-case-link p { margin-bottom: 0; }
.msk-case-link:is(:hover, :focus-visible) h3 { text-decoration: underline; text-underline-offset: 3px; }
.msk-case-link:focus-visible { outline: 2px solid var(--msk-blue); outline-offset: 2px; }
@media (min-width: 1024px) {
  .msk-case-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 519px) {
  .msk-case-grid { grid-template-columns: minmax(0, 1fr); }
}
.msk-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(144px,100%),1fr)); gap: 12px; margin: 19px 0; }
.msk-gallery a { align-self: start; }
.msk-gallery img { border: 1px solid var(--msk-line); }
.msk-project-viewer {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1120px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  padding: 52px 10px 10px;
  border: 0;
  border-radius: 14px;
  background: #fff;
}
.msk-project-viewer::backdrop { background: rgb(11 30 77 / 77%); }
.msk .msk-project-viewer img { max-height: calc(100dvh - 86px); object-fit: contain; border-radius: 0; }
.msk-project-close {
  position: absolute;
  inset: 5px 8px auto auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--msk-light);
  color: var(--msk-ink);
  font: 30px/1 Arial, sans-serif;
  cursor: pointer;
}
.msk-project-close:is(:hover, :focus-visible) { background: #e1f8fa; }
.msk-project-close:focus-visible { outline: 2px solid var(--msk-blue); outline-offset: 1px; }
.msk-grid article > img, .msk-case-link > img { aspect-ratio: 16/10; object-fit: cover; margin-bottom: 14px; }
.msk-price { display: grid; gap: 5px; margin: 10px 0; font-variant-numeric: tabular-nums; }
.msk-price div { display: flex; justify-content: space-between; gap: 8px; }
.msk-price dd { margin: 0; font-weight: 600; }
.msk-steps { padding-left: 24px; }
.msk-steps li { padding: 8px 0; }
.msk details { border-top: 1px solid var(--msk-line); padding: 12px 0; }
.msk details:last-child { border-bottom: 1px solid var(--msk-line); }
.msk summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.msk details p { margin: 10px 0 0; }
.msk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 9px 18px; border: 0; border-radius: 9px; background: var(--msk-blue);
  color: #fff; font: inherit; font-weight: 650; line-height: 1.35; text-decoration: none;
  white-space: normal; text-align: center; cursor: pointer;
}
.msk-btn:hover { background: #15197e; color: #fff; }
.msk form button:disabled { opacity: .65; cursor: wait; }
.msk form { background: #fff; border: 1px solid var(--msk-line); padding: clamp(14px,3.5vw,28px); border-radius: 14px; }
.msk-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(156px,100%),1fr)); gap: 13px; }
.msk label { display: grid; gap: 6px; font-weight: 600; min-width: 0; }
.msk form > :is(label,div,small,button) { margin-bottom: 12px; }
.msk :is(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea) {
  width: 100%; min-height: 45px; padding: 8px 10px; border-radius: 7px; border: 1px solid #a9b6ce;
  background: #fff; color: var(--msk-ink); font: inherit; font-size: 16px; box-sizing: border-box;
}
.msk input[type=file] { position: static; height: auto; opacity: 1; }
.msk textarea { min-height: 85px; resize: vertical; }
.msk fieldset { border: 0; padding: 0; margin: 14px 0; }
.msk legend { font-weight: 700; margin-bottom: 9px; }
.msk-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
}
.msk .msk-checks label {
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--msk-line);
  border-radius: 10px;
  background: #fff;
  line-height: 1.45;
  overflow-wrap: anywhere;
  cursor: pointer;
}
#calculator .msk-checks strong { color: var(--msk-ink); font-weight: 700; }
.msk .msk-checks input { margin: 2px 0 0; }
.msk .msk-checks label:has(input:checked) {
  background: #e9f1ff;
  border-color: #a8bce9;
}
.msk .msk-checks label:has(input:focus-visible) {
  outline: 2px solid var(--msk-blue);
  outline-offset: 2px;
}
.msk label:has(input:is([type=radio],[type=checkbox])) { display: flex; align-items: baseline; gap: 7px; font-weight: 500; }
.msk input:is([type=radio],[type=checkbox]) { position: static; opacity: 1; accent-color: var(--msk-blue); flex: none; width: 17px; height: 17px; }
.msk-estimate output { display: block; font-size: clamp(22px,4vw,38px); font-weight: 750; }
.msk-subsection { margin: 28px 0 0; }
.msk [data-msk-status] { color: #166333; }
.msk [data-msk-status][data-error] { color: #a92419; }
.msk-mobile-contacts { display: none; }
@media (max-width: 767px) {
  .msk-checks { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 520px) and (max-width: 767px) {
  .msk-checks:has(input[name=system]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msk-checks:has(input[name=system]) label:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .msk-home { padding-bottom: 50px; }
  .msk-home .soyuz-contact-dock, .msk-home .soyuz-vk-widget, .msk-home .mobile-contacts-toggle { display: none !important; }
  .msk-inner { width: calc(100% - 32px); }
  .msk-split { grid-template-columns: 1fr; }
  .msk-calculator-result { text-align: center; }
  .msk-calculator-copy {
    padding: 16px 0 0;
    border-inline-start: 0;
    border-block-start: 1px solid rgb(255 255 255 / 22%);
  }
  .msk-hero h1 { font-size: clamp(30px,8vw,39px); }
  .msk-hero img { max-height: 260px; }
  .msk .msk-inner > section, .msk :is(h2,h3,div)[id] { scroll-margin-top: 94px; }
  .msk-mobile-contacts {
    display: flex; position: fixed; inset: auto 0 0; z-index: 16; justify-content: center; gap: 3px;
    padding: 8px 5px max(8px,env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--msk-line);
  }
  .msk-mobile-contacts a { padding: 9px 6px; text-decoration: none; font-size: 13px; font-weight: 650; }
}
