H1 {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-size: clamp(32px, calc(26.37px + 1.502vw), 48px);
  font-weight: normal;
  line-height: 40px;
  margin-left: 45px;
  color: black;
}
H2 {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-size: clamp(22px, calc(19.89px + 0.563vw), 28px);
  font-weight: normal;
  line-height: 28px;
  margin-left: 45px;
}
H3 {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-size: clamp(20px, calc(17.89px + 0.563vw), 26px);
  font-weight: normal;
  margin: 18px 0 12px 45px;
}

.main_h3 {
  font-size: 18px;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 600;
  font-style: normal;
  color: #009ec5;
  text-align: left;
  padding-left: 16px;
  padding-right: 16px;
  max-width: 700px;
}
.main_label {
  position: absolute;
  font-size: 28px;
  font-family: 'BravoRG', sans-serif;
  color: #8d8d8d;
  text-align: center;
  width: min(640px, calc(100% - 30px));
  padding-top: 18px;
  margin-top: -6px;
}

.main_plain {
  font-size: 18px;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #5f5f5f;
  text-align: left;
  padding-left: 16px;
  padding-right: 16px;
  text-align: justify !important;
  max-width: 675px;
}

.main_label2 {
  font-size: 28px;
  font-family: 'BravoRG', sans-serif;
  color: #8d8d8d;
  text-align: center;
  width: min(100%, 650px);
  padding-top: 18px;
  padding-bottom: 16px;
}

#demos {
  padding-left: 15px;
  height: 212px;
  width: min(100%, 670px);
  aspect-ratio: 670 / 212;
  background: url('/images/bg_carousel.png') no-repeat center / 100% 100%;
}

.owl-carousel {
  width: min(640px, calc(100% - 14px)) !important;
}

.why_label {
  font-size: 26px;
  font-family: 'BravoRG', sans-serif;
  color: #ea8400;
  padding-left: 8px;
}
.why_label2 {
  font-size: 26px;
  font-family: 'BravoRG', sans-serif;
  color: #009ec5;
  padding-left: 13px;
}
.why_cont {
  display: flex;
  align-items: center;
}
.why_cont img {
  height: 45px;
}

.why_container {
  display: flex;
  gap: 16px;
  padding: 0 16px;
  width: min(100%, 675px);
  justify-content: space-between;
}

.why_line {
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.why_post {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: #8d8d8d;
  width: 100%;
  text-align: center;
  padding: 30px 16px 0;
}

.font_accent {
  font-weight: 600;
  color: #1472d0;
}

.font_accent2 {
  font-weight: 600;
  color: #bb0000;
}

.gallery-link {
  color: #174c79;
  font-weight: 700;
  text-align: center;
}

.text-container {
  width: min(100%, 700px);
  display: flex;
  gap: 20px;
}

.text-container .table-wrap {
  min-width: 0;
  flex: 1 1 0%;
  max-width: 100%;
  box-sizing: border-box;
}

.text-container > .block-semi:first-child {
  margin-top: 25px;
}

.block-main {
  width: min(100%, 430px);
}

.block-semi {
  width: min(100%, 250px);
  display: flex;
  align-items: start;
  justify-content: start;
  margin-bottom: 20px;
  flex-direction: column;
  gap: 5px;
}

.block-semi img {
  width: 250px;
  height: auto;
}

.block-calendar {
  display: flex;
  align-items: start;
  justify-content: start;
  margin-bottom: 20px;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 190px;
}

.block-calendar img {
  width: 190px;
  height: auto;
  margin-bottom: 10px;
}

.to_calc {
  font-size: 18px;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: 500;
  font-style: normal;
  color: maroon;
}

.txt_calc {
  font-size: 18px;
  color: #bb0000;
  font-family: calibri, arial, tahoma;
  font-weight: bold;
  padding-bottom: 3px;
  white-space: nowrap;
}

.txt_price {
  font-size: 14px;
  color: #bb0000;
  font-family: calibri, arial, tahoma;
  font-weight: bold;
  padding-bottom: 3px;
  text-align: center;
  white-space: nowrap;
}
.txt_price2 {
  font-size: 12px;
  color: #444444;
  font-family: calibri, arial, tahoma;
  text-align: center;
  white-space: nowrap;
}
.txt_price_light {
  font-size: 13px;
  color: #bb0000;
  font-family: calibri, arial, tahoma;
  padding-bottom: 3px;
  text-align: center;
  white-space: nowrap;
}

.note {
  margin-top: 4px;
  color: rgb(56, 56, 56);
  font-size: 15px;
  line-height: 20px;
}

:root {
  --row-h: 44px;
  --line: #cacaca;
  --bg: #ffffff;
  --head: #d4e5f5;
  --text: #0f172a;
  --zebra: #f0f5fb;
}

.table-wrap {
  align-self: flex-start;
  margin-top: 4px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

table.sticky-first {
  --w1: 80px;
  --w: 88px;
  --cols: 8;

  border-collapse: separate;
  border-spacing: 0;

  min-width: calc(var(--w1) + (var(--cols) - 1) * var(--w));
  width: max(calc(var(--w1) + (var(--cols) - 1) * var(--w)), 100%);
}

thead th,
tbody td {
  height: var(--row-h);
  color: var(--text);
}

tbody tr:nth-child(even) td {
  background: var(--zebra);
}

thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--head);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  white-space: nowrap;
  text-align: center;
  color: rgb(57, 79, 104);
}

tbody td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  background: var(--bg);
  white-space: nowrap;
}

thead th:first-child,
tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg);
  box-shadow: 1px 0 0 0 var(--line);
  min-width: var(--w1);
  width: var(--w1);
  max-width: var(--w1);
  white-space: nowrap;
  border-right: 0;
}

thead th:first-child {
  z-index: 4;
  background: var(--head);
}

thead th:not(:first-child),
tbody td:not(:first-child) {
  min-width: var(--w);
  width: var(--w);
  max-width: var(--w);
}

table.sticky-first th,
table.sticky-first td {
  border-right: 1px solid var(--line);
}

table.sticky-first th:last-child,
table.sticky-first td:last-child {
  border-right: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

select {
  font: inherit;
  color: #0f172a;
}

:where(select:not([multiple]):not([size]), select:not([multiple])[size='1']) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  padding: 4px 27px 4px 8px;
  border: 1px solid #bcc3cc;
  border-radius: 6px;
  outline: 0;
  transition:
    box-shadow 0.18s,
    border-color 0.18s,
    background-color 0.18s;

  background:
    linear-gradient(225deg, currentColor 50%, transparent 0) calc(100% - 14px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 0) calc(100% - 8px) 50% / 6px 6px no-repeat;
}

:where(select:focus-visible) {
  border-color: #559ec9;
  box-shadow: 0 0 0 2px rgba(58, 136, 172, 0.233);
}
:where(select:disabled) {
  opacity: 0.6;
  cursor: not-allowed;
}

input {
  font: inherit;
  color: #0f172a;
}

:where(input:not([type]), input[type='text'], input[type='email'], input[type='tel'], input[type='url'], input[type='password'], input[type='search'], input[type='number'], input[type='date'], input[type='time'], input[type='datetime-local']) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  padding: 4px 8px;
  border: 1px solid #bcc3cc;
  border-radius: 6px;
  outline: 0;
  transition:
    box-shadow 0.18s,
    border-color 0.18s,
    background-color 0.18s;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

:where(input:not([type]), input[type='text'], input[type='email'], input[type='tel'], input[type='url'], input[type='password'], input[type='search'], input[type='number'], input[type='date'], input[type='time'], input[type='datetime-local']):focus-visible {
  border-color: #559ec9;
  box-shadow: 0 0 0 2px rgba(58, 136, 172, 0.233);
}

:where(input:not([type]), input[type='text'], input[type='email'], input[type='tel'], input[type='url'], input[type='password'], input[type='search'], input[type='number'], input[type='date'], input[type='time'], input[type='datetime-local'])::placeholder {
  color: #94a3b8;
}

:where(input:not([type]), input[type='text'], input[type='email'], input[type='tel'], input[type='url'], input[type='password'], input[type='search'], input[type='number'], input[type='date'], input[type='time'], input[type='datetime-local']):disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

:where(button, input[type='button'], input[type='submit'], input[type='reset']) {
  font: inherit;
  color: #0f172a;
  background: #cfe6f3;
  border: 1px solid #bcc3cc;
  border-radius: 6px;
  padding: 6px 12px;
  line-height: 1.25;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition:
    background-color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.05s;
}

:where(button, input[type='button'], input[type='submit'], input[type='reset']):hover {
  background: #b1d2ec;
  border-color: #aab3bd;
}

:where(button, input[type='button'], input[type='submit'], input[type='reset']):active {
  transform: translateY(0.5px);
}

:where(button, input[type='button'], input[type='submit'], input[type='reset']):focus-visible {
  outline: 0;
  border-color: #559ec9;
  box-shadow: 0 0 0 2px rgba(58, 136, 172, 0.233);
}

:where(button, input[type='button'], input[type='submit'], input[type='reset']):disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--primary {
  color: #a8bbc7;
  background: #559ec9;
  border-color: #559ec9;
}
.btn--primary:hover {
  background: #4b92bf;
  border-color: #4b92bf;
}
.btn--primary:active {
  background: #4285b0;
}

.btn--danger {
  color: #fff;
  background: #e11d48;
  border-color: #e11d48;
}
.btn--danger:hover {
  background: #be123c;
  border-color: #be123c;
}
.btn--danger:active {
  background: #9f1239;
}

.btn--outline {
  background: #fff;
  border-color: #94a3b8;
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
}
.btn--ghost:hover {
  background: #f1f5f9;
}

.btn--sm {
  padding: 4px 10px;
  font-size: 14px;
  border-radius: 4px;
}
.btn--lg {
  padding: 8px 16px;
  font-size: 16px;
}
.btn--full {
  width: 100%;
}

.btn .icon {
  width: 1em;
  height: 1em;
  display: inline-block;
}

.sample {
  position: absolute;
  left: 360px;
  top: -15px;
  display: inline-block;
  vertical-align: top;
  font-size: 18px;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: Bold;
  text-align: center;
  width: 340px;
  line-height: 34px;
  padding-top: 8px;
  margin-top: 21px;
}
.sample_bottom {
  display: none;
  font-size: 18px;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: Bold;
  text-align: center;
  width: 100%;
  line-height: 34px;
  margin-top: 40px;
}

.photoImage {
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  max-height: 190px;
  max-width: 100%;
  display: block;
  margin: auto;
  border-style: solid;
  border-width: 2px;
  border-color: #6195c0;
}

.txt1 {
  font-size: 18px;
  font-family: 'PT Sans Narrow';
  font-weight: 400;
  font-style: normal;
  color: #5f5f5f;
  padding-left: 20px;
  padding-top: 6px;
  padding-right: 20px;
}

.calc_content {
  width: 450px;
  display: block;
  font-size: 18px;
  font-family: 'PT Sans Narrow';
  font-weight: 400;
  font-style: normal;
  color: #5f5f5f;
  position: relative;
}

.circle {
  position: absolute;
  right: -8px;
  top: -8px;
  background: white;
  clip-path: circle(50%);
  height: 30px;
  width: 30px;
  cursor: pointer;
}

.arrow_r {
  position: absolute;
  right: -59px;
  top: 400px;
  height: 70px;
  width: 70px;
  cursor: pointer;
}
.arrow_l {
  position: absolute;
  height: 70px;
  width: 70px;
  cursor: pointer;
}

#modal_caption {
  font-style: italic;
  padding-top: 10px;
  padding-bottom: 3px;
  clear: both;
  width: 100%;
  text-align: center;
  position: relative;
}

.nav_container {
  display: flex;
  align-items: center;
}
.spacer {
  flex: 1;
}

.calc-text-box {
  position: relative;
  display: inline-block;
  width: calc(100% - 26px);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  box-sizing: content-box;
}
.calc-text-box pre {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, Monaco, monospace;
}

.copy-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #474747;
  background: #e4e4e4;
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  opacity: 0.92;
}
.copy-chip:hover {
  opacity: 1;
}
.copy-chip svg {
  display: block;
}

.copy-chip.is-copied {
  background: #c6e6d1;
  border-color: #c6e6d1;
}

.txt_calc1 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 18px;
  color: #000000;
  font-weight: bold;
  display: inline;
  line-height: 50px;
}
.txt_calc2 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 18px;
  color: #aa0000;
  font-weight: bold;
  display: inline;
}
.txt_calc3 {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 16px;
  color: #444444;
  font-weight: bold;
  display: inline;
}
.txt_last {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 15px;
  color: #0c5692;
  padding-right: 20px;
  text-indent: 17pt;
  font-style: italic;
}
.txt_last_error {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 11px;
  color: #aa0000;
  padding-left: 20px;
  padding-right: 20px;
  text-indent: 17pt;
}

.fill-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  max-width: 320px;
  width: 100%;
  margin: 0;
}
.fill-line::after {
  content: '';
  flex: 1 1 auto;
  height: 2px;
  background: #c5d3e0;
}

.fill-line--both {
  gap: 0.5rem;
}
.fill-line--both::before,
.fill-line--both::after {
  content: '';
  flex: 1 1 auto;
  height: 2px;
  background: #859ebb;
  opacity: 0.4;
}

.calc-span1 {
  height: 10px;
  width: 1px;
}
.calc-span2 {
  height: 20px;
  width: 1px;
}
.calc-span3 {
  height: 30px;
  width: 1px;
}
.span-mob {
  display: none;
}

.block-main > ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}
.block-main > ol > li {
  margin: 0.6rem 0;
}

.block-main ol .sublist {
  list-style: none;
  margin: 0.35rem 0 0.6rem;
  padding: 0;
}

.block-main ol .sublist > li {
  margin: 0.3rem 0;
  padding: 0;
}
.block-main ol .sublist > li::before {
  content: '— ';
}

.inline-group {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.inline-group br {
  display: none;
}
.inline-group .opt {
  margin-right: 6px;
}
.inline-group > label,
.inline-group > span {
  white-space: nowrap;
}

.kvartal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.kvartal-grid {
  margin-top: 15px;
  max-width: 700px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  justify-items: center;
  align-items: start;
}
.kvartal-grid img {
  width: 124px;
  height: auto;
  display: block;
}

.kvartal-btn img {
  display: block;
}

img[data-modal-img] {
  cursor: zoom-in;
}

.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1100;
}
.img-modal.is-open {
  display: flex;
}

.img-modal__img {
  width: auto;
  height: auto;
  max-width: calc(100dvw - 48px);
  max-height: calc(100dvh - 48px);
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.img-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.img-modal__close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.setka-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  justify-items: center;
  align-items: start;
  max-width: 700px;
}
.setka-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: center;
  align-items: start;
  max-width: 700px;
}
.grid-3 img {
  width: 100%;
  height: auto;
  display: block;
}

.setka-grid img,
.block-calendar img,
.block-semi img {
  display: block;
  box-sizing: border-box;
  border: 1px solid transparent;
  cursor: zoom-in;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.setka-grid img:hover,
.block-calendar img:hover,
.block-semi img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(1, 32, 70, 0.5);
  border-color: rgba(72, 102, 116, 0.5);
}

.prod_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214px, 214px));
  gap: 16px 1px;
  justify-content: center;
  padding: 0 20px;
}

.prod_box_all {
  width: 214px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.prod_box {
  width: 200px;
  height: 128px;
  border-radius: 10px;
  background-repeat: no-repeat;
  background-size: 100%;
  transition: all 0.2s ease-in-out;
  margin: 0;
}

.calc_prod_label {
  font-size: 20px;
  font-family: 'PT Sans Narrow', sans-serif;
  color: #000;
  padding-top: 10px;
  text-align: center;
  width: 100%;
}

.prod_box:hover {
  background-size: 120%;
  background-position: -20px -12px;
}
.prod_box_all:hover .calc_prod_label {
  color: #b60000;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

.table-wrap::before,
.table-wrap::after {
  content: none !important;
  display: none !important;
}

.scroll-hint {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  font:
    600 18px/1 'PT Sans Narrow',
    sans-serif;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  pointer-events: auto;
  z-index: 7;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(110%) blur(2px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.table-wrap.can-right .scroll-hint {
  display: inline-flex;
}

.scroll-hint.is-hidden {
  opacity: 0;
  transform: translateY(calc(-50% + 6px));
}

@media (hover: none) and (pointer: coarse) {
  .table-wrap.can-right .scroll-hint {
    display: inline-flex;
  }
}
@media (hover: hover) and (pointer: fine) {
  .table-wrap .scroll-hint {
    display: none !important;
  }
}

.hidden {
  overflow: hidden;
}

.modal {
  position: fixed; /* всегда фиксированная */
  inset: 0;
  z-index: 1000;
  display: none; /* полностью убрана из потока */
  opacity: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 15px;
  transition: opacity 0.25s ease;
  pointer-events: none; /* на всякий случай */
}

.modal.modal_active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__content {
  padding: 15px;
  background: #f9f9f9;
  -webkit-box-shadow: 0 5px 15px black;
  box-shadow: 0 5px 15px black;
  border-radius: 3px;
  position: relative;
  margin: auto;
}

.modal__close-button {
  background: #ff0000;
  height: 30px;
  width: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border: none;
  position: absolute;
  right: -8px;
  top: -8px;
  background: none;
  cursor: pointer;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  outline: none;
}

.modal__close-button:hover {
  -webkit-transition: 0.3s;
  transition: 0.3s;
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.gallery_table {
  display: grid;
  grid-template-columns: repeat(4, 158px); /* вместо 1fr */
  gap: 12px 16px; /* зазор между карточками */
  justify-content: center; /* чтобы не было «пустого хвоста» справа */
}

.gallery_table_td {
  background-repeat: no-repeat;
  background-size: auto 216px;
  background-position: center;
  height: 216px;
  width: 167px;
  position: relative;
}

.gallery_table_td > img {
  border-radius: 4px;
  position: absolute;
  top: 6px;
  left: 4px;
  display: block; /* убираем нижний зазор */
  width: 155px;
  height: 201px;
  object-fit: cover; /* ВПИСАТЬ без обрезки */
  object-position: center;
  background: #f8fafc; /* цвет полей, если пропорции не совпадают */
}
