.legacy-indexn-body,
.legacy-indexn-body button,
.legacy-indexn-body input,
.legacy-indexn-body select,
.legacy-indexn-body textarea {
  font-family: "Cuprum", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}













.legacy-indexn-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  --desktop-sidebar-width: 300px;
  --desktop-sidebar-gap: 24px;
  --desktop-content-max: 1180px;
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(15, 76, 129, 0.14), transparent 30%),
    linear-gradient(180deg, #f3f7fb 0%, #eef3f8 100%);
  color: #16202a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 901px) {
  .legacy-indexn-body {
    padding-left: 324px;
    transition: padding-left .18s ease;
  }

  .legacy-sidebar-collapsed.legacy-indexn-body,
  .legacy-indexn-body.sidebar-collapsed {
    --desktop-sidebar-width: 100px;
    padding-left: 124px;
  }

  .legacy-indexn-shell {
    width: calc(100vw - var(--desktop-sidebar-width) - var(--desktop-sidebar-gap) - 40px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}

.legacy-indexn-shell {
  width: calc(100% - 32px);
  max-width: 1180px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 40px;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  gap: 24px;
  box-sizing: border-box;
}

.legacy-indexn-shell--header {
  margin-bottom: 0;
}

.legacy-indexn-shell--main {
  margin-top: 14px;
}

.legacy-calc-hero {
  height: 80px;
  max-height: 80px;
  min-height: 0;
  margin-bottom: 0;
  padding: 20px 24px;
  border-radius: 26px;
  background-color: #0f5b95 !important;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(97, 193, 255, .38), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(255, 167, 38, .22), transparent 24%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .16), transparent 20%),
    linear-gradient(135deg, #0a3a63 0%, #10609b 42%, #0b86c9 100%) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  border: 1px solid rgba(175, 226, 255, .24);
  box-shadow:
    0 26px 54px rgba(8, 27, 44, .22),
    0 1px 0 rgba(255, 255, 255, .18) inset,
    0 0 0 1px rgba(255, 255, 255, .08) inset;
  position: relative;
  overflow: hidden;
}

.legacy-calc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .06), transparent 28%, transparent 72%, rgba(255, 255, 255, .08)),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, .14), transparent 16%);
  pointer-events: none;
}

.legacy-calc-hero>.stack {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.legacy-calc-hero h1 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 1.3em;
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  color: #ffffff !important;
  text-shadow: 0 4px 24px rgba(5, 17, 30, .24);
  justify-content: center;
  width: 100%;
  text-align: center;
}

.legacy-calc-hero .menu-glyph {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .12));
  box-shadow: 0 14px 28px rgba(5, 17, 30, .16);
  backdrop-filter: blur(8px);
}

.legacy-calc-hero .menu-glyph svg {
  width: 40px;
  height: 40px;
  color: #ffffff;
}

.site-footer {
  width: 100%;
  margin-top: auto;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  padding: 34px 0 38px;
  background: linear-gradient(180deg, #202c3a, #16202a);
  color: rgba(255, 255, 255, .9);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer-logo {
  display: inline-flex;
  justify-content: center;
}

.site-footer-logo img {
  width: 150px;
  height: auto;
  display: block;
}

.site-footer-copy {
  margin: 18px 0 14px;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.site-footer-review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.site-footer-contacts {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer-contacts p {
  margin: 0;
}

.site-footer-contacts a,
.site-footer-links a {
  color: #fff;
}

.site-footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px 18px;
}

.site-footer-column h5 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-column li+li {
  margin-top: 6px;
}

.site-footer-column a {
  display: inline-block;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.4;
}

.site-footer-column a:hover {
  color: #fff;
}

.legacy-page-layout {
  display: block;
  position: relative;
}

.legacy-page-sidebar {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 40px);
  overflow-y: hidden;
  overflow-x: hidden;
  z-index: 12;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 76, 129, 0.22) transparent;
}

.legacy-sidebar-collapsed .legacy-page-sidebar {
  overflow-y: hidden;
  padding-bottom: 60px;
  scrollbar-width: none;
}

.legacy-sidebar-collapsed .legacy-page-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.legacy-sidebar-collapsed .legacy-page-sidebar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 50px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(230, 239, 248, 0), rgba(230, 239, 248, 0.9) 65%, rgba(230, 239, 248, 1));
}

body:not(.legacy-sidebar-collapsed) .legacy-page-sidebar {
  overflow-y: auto;
  padding-right: 20px;
  box-sizing: border-box;
}

.legacy-sidebar-collapsed-scroll-trigger {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  box-sizing: border-box;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.96));
  box-shadow: 0 10px 22px rgba(18, 35, 53, 0.12);
  color: #0f4c81;
  z-index: 2;
}

.legacy-sidebar-collapsed-scroll-trigger--up {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  transform: none;
  align-self: center;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  flex: 0 0 34px;
  margin: 10px auto;
  z-index: 4;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
}

.legacy-sidebar-collapsed-scroll-trigger-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
}

.legacy-sidebar-collapsed-scroll-trigger-icon::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.legacy-sidebar-collapsed-scroll-trigger-icon--up::before {
  transform: rotate(225deg) translateY(-1px);
}

.legacy-sidebar-collapsed .legacy-sidebar-collapsed-scroll-trigger {
  display: inline-flex;
}

.legacy-page-sidebar::-webkit-scrollbar {
  width: 8px;
}

.legacy-page-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.legacy-page-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.2), rgba(15, 76, 129, 0.34));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.legacy-page-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.3), rgba(15, 76, 129, 0.46));
  border: 2px solid transparent;
  background-clip: padding-box;
}

.legacy-page-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: 0;
  overflow-x: clip;
  box-sizing: border-box;
}

.legacy-sidebar-collapsed .legacy-page-sidebar {
  width: 100px;
}

.legacy-sidebar-collapsed .legacy-page-main {
  margin-left: 0;
}

.legacy-sidebar-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.94));
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: 0 14px 28px rgba(18, 35, 53, 0.06);
}

.legacy-sidebar-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #0f4c81;
  box-shadow: 0 10px 20px rgba(18, 35, 53, 0.06);
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  line-height: 1;
  opacity: 1;
}

.legacy-sidebar-home-button:hover {
  color: #125f9d;
  border-color: rgba(15, 76, 129, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(18, 35, 53, 0.08);
}

.legacy-sidebar-top-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.legacy-sidebar-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #0f4c81;
  box-shadow: 0 10px 20px rgba(18, 35, 53, 0.06);
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  line-height: 1;
}

.legacy-sidebar-home-button:hover {
  color: #125f9d;
  border-color: rgba(15, 76, 129, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(18, 35, 53, 0.08);
}

.legacy-sidebar-home-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  color: currentColor;
}

.legacy-sidebar-home-button-label svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.legacy-sidebar-collapse-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #0f4c81;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(18, 35, 53, 0.06);
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  line-height: 1;
}

.legacy-sidebar-home-button,
.legacy-sidebar-collapse-toggle {
  align-self: center;
}

.legacy-sidebar-collapse-toggle-label {
  display: none;
}

.legacy-sidebar-collapse-toggle:hover {
  color: #125f9d;
  border-color: rgba(15, 76, 129, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(18, 35, 53, 0.08);
}

.legacy-sidebar-collapse-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.legacy-sidebar-collapse-toggle-icon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.legacy-sidebar-collapsed .legacy-sidebar-collapse-toggle {
  align-self: center;
  width: 56px;
  min-width: 56px;
  padding: 0;
}

.legacy-sidebar-collapsed .legacy-sidebar-collapse-toggle-icon::before {
  transform: rotate(225deg);
}

.legacy-sidebar-edge-toggle {
  display: none !important;
}

.legacy-sidebar-kicker {
  color: rgba(22, 32, 42, 0.56);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.legacy-sidebar-title {
  margin-top: 6px;
  color: #16202a;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legacy-sidebar-text {
  margin-top: 6px;
  color: rgba(22, 32, 42, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

.legacy-sidebar-search {
  position: relative;
  display: block;
  margin-top: 14px;
}

.legacy-sidebar-search::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(15, 76, 129, 0.46);
  border-radius: 999px;
  transform: translateY(-58%);
  pointer-events: none;
}

.legacy-sidebar-search::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 57%;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.46);
  transform: rotate(45deg);
  pointer-events: none;
}

.legacy-sidebar-search input {
  width: 100%;
  min-height: 48px;
  padding-left: 42px;
  border: 1px solid rgba(15, 76, 129, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.96));
  box-shadow: 0 10px 22px rgba(18, 35, 53, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.68);
  font-size: 15px;
  font-weight: 600;
}

.legacy-sidebar-search input::placeholder {
  color: rgba(53, 80, 102, 0.68);
}

.legacy-sidebar-search input:focus {
  outline: none;
  border-color: rgba(15, 76, 129, 0.34);
  box-shadow: 0 14px 28px rgba(15, 76, 129, 0.12), 0 0 0 4px rgba(15, 76, 129, 0.08);
}

.legacy-sidebar-tree {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legacy-sidebar-group {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: 0 10px 20px rgba(18, 35, 53, 0.05);
}

.legacy-sidebar-group--calendar {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(234, 88, 12, 0.1);
}

.legacy-sidebar-group--book {
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(22, 163, 74, 0.1);
}

.legacy-sidebar-group--sticker {
  background: linear-gradient(180deg, rgba(250, 245, 255, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(147, 51, 234, 0.1);
}

.legacy-sidebar-group--wide {
  background: linear-gradient(180deg, rgba(236, 254, 255, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(14, 116, 144, 0.1);
}

.legacy-sidebar-group--sign {
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(220, 38, 38, 0.1);
}

.legacy-sidebar-group--print {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(37, 99, 235, 0.1);
}

.legacy-sidebar-group--grid {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(71, 85, 105, 0.1);
}

.legacy-sidebar-group-title {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
  padding-bottom: 8px;
  border: none;
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
  background: transparent;
  color: #0f4c81;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  box-shadow: none;
  border-radius: 0;
}

.legacy-sidebar-group-title>span:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.legacy-sidebar-group-title .legacy-menu-glyph {
  margin-right: 2px;
}

.legacy-sidebar-group-title::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.legacy-sidebar-group.is-open .legacy-sidebar-group-title::after {
  transform: rotate(225deg);
}

.legacy-sidebar-group-compact-link {
  display: none;
}

.legacy-sidebar-group-glyph {
  background: transparent;
  border: none;
  box-shadow: none;
  width: 25px;
  height: 25px;
  border-radius: 0;
}

.legacy-sidebar-group-glyph.legacy-sidebar-link-icon--calendar,
.legacy-sidebar-group-glyph.legacy-sidebar-link-icon--book,
.legacy-sidebar-group-glyph.legacy-sidebar-link-icon--sticker,
.legacy-sidebar-group-glyph.legacy-sidebar-link-icon--wide,
.legacy-sidebar-group-glyph.legacy-sidebar-link-icon--sign,
.legacy-sidebar-group-glyph.legacy-sidebar-link-icon--print,
.legacy-sidebar-group-glyph.legacy-sidebar-link-icon--grid {
  background: transparent;
  border: none;
  box-shadow: none;
}

.legacy-sidebar-group-links {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
}

.legacy-sidebar-group.is-open .legacy-sidebar-group-links {
  display: flex;
}

.legacy-sidebar-group-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 12px;
  color: #355066;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.legacy-sidebar-group-glyph {
  background: transparent;
  border: none;
  box-shadow: none;
  width: 31px;
  height: 31px;
  border-radius: 0;
  padding: 0;
}

.legacy-sidebar-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: transparent;
  color: #0f4c81;
  border: none;
  box-shadow: none;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 34px;
}

.legacy-sidebar-link-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.legacy-sidebar-link-icon--calendar {
  color: #c2410c;
}

.legacy-sidebar-link-icon--book {
  color: #166534;
}

.legacy-sidebar-link-icon--sticker {
  color: #7e22ce;
}

.legacy-sidebar-link-icon--wide {
  color: #0f766e;
}

.legacy-sidebar-link-icon--sign {
  color: #be123c;
}

.legacy-sidebar-link-icon--print {
  color: #1d4ed8;
}

.legacy-sidebar-link-icon--grid {
  color: #334155;
}

.legacy-sidebar-link-icon--sheets,
.legacy-sidebar-link-icon--card,
.legacy-sidebar-link-icon--leaflet,
.legacy-sidebar-link-icon--envelope,
.legacy-sidebar-link-icon--poster,
.legacy-sidebar-link-icon--brochure {
  color: #1d4ed8;
}

.legacy-sidebar-link-icon--stickers,
.legacy-sidebar-link-icon--label {
  color: #7e22ce;
}

.legacy-sidebar-link-icon--books {
  color: #166534;
}

.legacy-sidebar-link-icon--engineering,
.legacy-sidebar-link-icon--blueprint,
.legacy-sidebar-link-icon--outdoor,
.legacy-sidebar-link-icon--banner {
  color: #0f766e;
}

.legacy-sidebar-link-icon--textile,
.legacy-sidebar-link-icon--tshirt {
  color: #db2777;
}

.legacy-sidebar-link-icon--magnet,
.legacy-sidebar-link-icon--doorhanger,
.legacy-sidebar-link-icon--stand {
  color: #be123c;
}

.legacy-sidebar-link-icon--box,
.legacy-sidebar-link-icon--roll {
  color: #b45309;
}

.legacy-sidebar-link-icon--template,
.legacy-sidebar-link-icon--service {
  color: #334155;
}

.legacy-sidebar-link-icon--souvenir,
.legacy-sidebar-link-icon--gift,
.legacy-sidebar-link-icon--decor {
  color: #7c3aed;
}

.legacy-sidebar-link-text {
  min-width: 0;
}

.legacy-sidebar-group-links a:hover,
.legacy-sidebar-group-links a.is-active {
  background: rgba(15, 76, 129, 0.08);
  color: #0f4c81;
  text-decoration: none;
}

.legacy-sidebar-group-links a.is-active .legacy-sidebar-link-icon {
  color: #0f4c81;
}

.legacy-sidebar-group-links a.is-active .legacy-sidebar-link-icon,
.legacy-sidebar-group-compact-link.is-active .legacy-sidebar-link-icon {
  border-color: transparent;
  box-shadow: none;
}

.legacy-sidebar-collapsed .legacy-sidebar-card,
.legacy-sidebar-collapsed .legacy-sidebar-group {
  padding: 6px;
}

.legacy-sidebar-collapsed .legacy-sidebar-card {
  padding-top: 5px;
  padding-bottom: 5px;
}

.legacy-sidebar-collapsed .legacy-sidebar-group {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 12px;
  width: auto;
  min-height: 40px;
  height: 40px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

.legacy-sidebar-collapsed .legacy-sidebar-top-actions {
  margin-bottom: 2px;
}

.legacy-sidebar-collapsed .legacy-sidebar-home-button {
  margin-bottom: 0;
  width: 40px;
  min-width: 40px;
  height: 40px;
}

.legacy-sidebar-collapsed .legacy-sidebar-collapse-toggle {
  width: 40px;
  min-width: 40px;
  height: 40px;
}

.legacy-sidebar-collapsed .legacy-sidebar-kicker,
.legacy-sidebar-collapsed .legacy-sidebar-title,
.legacy-sidebar-collapsed .legacy-sidebar-text,
.legacy-sidebar-collapsed .legacy-sidebar-search,
.legacy-sidebar-collapsed .legacy-sidebar-group-title,
.legacy-sidebar-collapsed .legacy-sidebar-link-text {
  display: none;
}

.legacy-sidebar-collapsed .legacy-sidebar-tree {
  position: relative;
  gap: 15px;
  max-height: calc(100vh - 182px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.legacy-sidebar-collapsed .legacy-sidebar-tree::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 50px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(0deg, rgba(230, 239, 248, 0), rgba(230, 239, 248, 0.9) 65%, rgba(230, 239, 248, 1));
}

.legacy-sidebar-collapsed .legacy-sidebar-tree::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.legacy-sidebar-collapsed .legacy-sidebar-group-compact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 40px;
  height: 40px;
  margin: 0 auto;
  border-radius: 8px;
  color: #355066;
  background: transparent;
  box-sizing: border-box;
}

.legacy-sidebar-collapsed .legacy-sidebar-group-compact-link:hover,
.legacy-sidebar-collapsed .legacy-sidebar-group-compact-link.is-active {
  color: #0f4c81;
  text-decoration: none;
}

.legacy-sidebar-collapsed .legacy-sidebar-group-links {
  display: none;
}

.legacy-sidebar-collapsed .legacy-sidebar-link-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 0;
  padding: 0;
  font-size: 12px;
  box-shadow: none;
}

.legacy-sidebar-collapsed .legacy-sidebar-group-glyph {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
}

.legacy-sidebar-collapsed .legacy-sidebar-link-icon svg {
  width: 35px;
  height: 35px;
}

.legacy-scroll-top-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.96), rgba(9, 58, 99, 0.98));
  color: #fff;
  box-shadow: 0 18px 34px rgba(18, 35, 53, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.legacy-scroll-top-button span {
  font-size: 24px;
  line-height: 1;
  transform: translateY(-1px);
}

.legacy-scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.legacy-brandbar {
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(18, 35, 53, 0.08);
  backdrop-filter: blur(16px);
}

.legacy-brandbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 0 18px;
}

.legacy-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #16202a;
  text-decoration: none;
}

.legacy-header-center-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0 auto;
  padding: 10px 18px 11px;
  border: 1px solid rgba(15, 76, 129, .1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(240, 247, 252, .94));
  box-shadow: 0 12px 28px rgba(18, 35, 53, .06);
  text-align: center;
  white-space: nowrap;
}

.legacy-header-center-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #28465d;
  line-height: 1.2;
  transition: color .18s ease, transform .18s ease;
}

.legacy-header-center-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.legacy-header-center-contact-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.legacy-header-center-contact-icon-phone {
  color: #1aa35b;
}

.legacy-header-center-contact-icon-mail {
  color: #0f6db3;
}

.legacy-header-center-contact a:hover {
  color: var(--legacy-accent);
}

.legacy-header-center-contact-phone {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #17344d;
}

.legacy-header-center-contact-mail {
  font-size: 12px;
  font-weight: 600;
  color: #678196;
  letter-spacing: .03em;
}

.legacy-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.legacy-header-quicklinks {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 0;
  font-size: 1em;
}

.legacy-header-quicklinks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #355066;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.legacy-header-quicklinks-pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline: 36px;
}

.legacy-header-quicklinks a:hover {
  background: rgba(15, 76, 129, 0.08);
  color: #0f4c81;
  transform: translateY(-1px);
}

.legacy-header-quicklinks svg {
  display: block;
  width: 22px;
  height: 22px;
}

.legacy-header-quicklinks-group {
  position: relative;
  display: inline-flex;
}

.legacy-header-quicklinks-parent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #355066;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.legacy-header-quicklinks-parent:hover,
.legacy-header-quicklinks-parent.is-active {
  background: rgba(15, 76, 129, .08);
  color: #0f4c81;
  transform: translateY(-1px);
}

.legacy-header-quicklinks-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(15, 76, 129, .08);
  box-shadow: 0 18px 42px rgba(18, 35, 53, .14);
  z-index: 40;
}

.legacy-header-quicklinks-dropdown.is-open {
  display: flex;
}

.legacy-header-quicklinks-dropdown a {
  width: auto;
  height: auto;
  min-height: 36px;
  justify-content: flex-start;
  padding: 0 10px;
  border-radius: 10px;
  color: #355066;
  font-size: 13px;
  font-weight: 700;
}

.legacy-header-quicklinks-dropdown a:hover {
  background: rgba(15, 76, 129, .08);
  color: #0f4c81;
  transform: none;
}

.legacy-brand img {
  width: 200px;
  height: auto;
  display: block;
}

.legacy-brand-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.legacy-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(15, 76, 129, 0.14);
  border-radius: 16px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 10px 24px rgba(18, 35, 53, 0.08);
}

.legacy-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #0f4c81;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.legacy-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.legacy-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.legacy-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.legacy-top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.legacy-top-nav-mobile-links {
  display: none;
}

.legacy-top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: #355066;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.legacy-top-nav a:hover {
  background: rgba(15, 76, 129, 0.08);
  color: #0f4c81;
  text-decoration: none;
  transform: translateY(-1px);
}

.legacy-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #0f4c81;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.legacy-top-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.legacy-top-bar-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.legacy-top-bar-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legacy-top-nav a,
.legacy-nav-parent,
.legacy-link-pill {
  justify-content: center;
}

.legacy-link-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.14);
  color: #0f4c81;
  text-decoration: none;
}

.legacy-link-pill-accent {
  border-color: transparent;
  background: linear-gradient(135deg, #0f4c81 0%, #1a73b8 100%);
  color: #fff;
}

.legacy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(15, 76, 129, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(244, 248, 252, 0.92), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 40px rgba(18, 35, 53, 0.06);
  color: #16202a;
}

.legacy-hero .eyebrow {
  margin-bottom: 10px;
  color: #0f4c81;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.legacy-hero h1 {
  margin: 0 0 12px;
  color: #142231;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legacy-hero p {
  margin: 0;
  max-width: 820px;
  color: #5f6f80;
  font-size: 15px;
  line-height: 1.7;
}

.legacy-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.legacy-hero-admin-link {
  margin-top: 18px;
}

.legacy-link-pill-admin {
  background: rgba(15, 76, 129, 0.08);
  border-color: rgba(15, 76, 129, 0.14);
  color: #0f4c81;
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.08);
}

.legacy-link-pill-admin:hover {
  background: rgba(15, 76, 129, 0.12);
  color: #0f4c81;
  text-decoration: none;
}

.legacy-hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.08);
  color: #0f4c81;
  font-size: 12px;
  font-weight: 700;
}

.legacy-hero-note {
  display: flex;
  align-items: end;
}

.legacy-note-card {
  width: 100%;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.94));
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: 0 14px 28px rgba(18, 35, 53, 0.06);
}

.legacy-note-title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0f4c81;
}

.legacy-note-text {
  font-size: 16px;
  line-height: 1.6;
  color: #314759;
}

.legacy-indexn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  box-sizing: border-box;
}

.legacy-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.94));
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 28px;
  padding: 24px;
  box-shadow:
    0 18px 42px rgba(18, 35, 53, 0.09),
    0 1px 0 rgba(255, 255, 255, .82) inset;
  backdrop-filter: blur(12px);
}

  align-items: center;
  flex-wrap: nowrap;
  gap: 8px 4px;
}

  margin-bottom: 0;
}

  min-width: 13em;
}

  min-height: 31px;
  padding: 6px 12px;
  margin: 0 0 0 8px !important;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  min-width: 0;
  flex: 0 1 auto;
  text-align: center;
}

  display: none !important;
}

  display: flex;
  justify-content: center;
  margin: 14px 0 8px;
}

  width: 284px !important;
  min-height: 30px;
  padding: 6px 12px !important;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}



.legacy-calendar-444 .legacy-calendar-cursor-group {
  width: auto !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 0 !important;
  flex: 1 1 auto !important;
}

.legacy-calendar-444 .legacy-calendar-cursor-group label {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 140px !important;
  max-width: 180px !important;
  flex-shrink: 0 !important;
}

.legacy-calendar-444 .legacy-calendar-cursor-group input[type="radio"]:checked + label {
  border-color: #c9cfd7;
  box-shadow: inset 0 0 0 1px #c9cfd7;
  color: #111;
  background: #f3f3f3;
}

  margin: 0 2px;
}

  padding: 14px 0;
}

  border-bottom: 0;
}

  margin-left: 0;
  padding: 1px;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #edf6ff 0%, #dcefff 100%);
  color: #0f4c81;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.08);
}

  color: #0f4c81;
  text-decoration: none;
  transform: translateY(-1px);
}

  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  margin-left: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.08);
  color: #0f4c81;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

  width: 110px;
  min-width: 110px;
  text-align: center;
  font-weight: 700;
}

  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-left: 12px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.08);
  color: #0f4c81;
  font-size: 13px;
  font-weight: 800;
}

.child,
[class$="_child"] {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  vertical-align: middle;
}

  width: 100%;
}

  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  color: #172433;
}

  min-width: 10.2em;
  justify-content: flex-end;
  text-align: right;
}

  content: ": ";
}

  display: inline-block;
  margin-left: 8px;
  color: #667689;
  font-size: 13px;
}

.SelectedOption {
  outline: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.material-meta {
  margin-top: 8px;
  color: #667689;
  font-size: 13px;
}

.legacy-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 76, 129, 0.08);
}

.legacy-actions .btn {
  min-height: 52px;
  padding: 0 22px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 16px;
  font-weight: 800;
  border-width: 0;
  box-shadow: 0 16px 34px rgba(18, 35, 53, 0.1);
}

.legacy-actions .btn-info {
  background: linear-gradient(135deg, #0f4c81 0%, #1a73b8 100%);
}

.legacy-actions .legacy-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  width: 46px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--theme-border, rgba(15, 76, 129, 0.16)) 60%, var(--theme-accent, #0f4c81) 40%);
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--theme-card, rgba(255, 255, 255, .94)) 82%, var(--theme-accent-2, #1a73b8) 18%),
      color-mix(in srgb, var(--theme-card-strong, rgba(255, 255, 255, .98)) 88%, var(--theme-accent, #0f4c81) 12%));
  color: var(--theme-text, #17222d);
  box-shadow:
    0 10px 24px color-mix(in srgb, var(--theme-shadow, rgba(18, 35, 53, 0.08)) 82%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--theme-card-strong, rgba(255, 255, 255, .98)) 72%, transparent);
}

.legacy-actions .legacy-reset-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-accent, #0f4c81) 14%, transparent);
  color: var(--theme-accent, #0f4c81);
  flex: 0 0 28px;
}

.legacy-actions .legacy-reset-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.legacy-actions .legacy-reset-btn:hover {
  border-color: color-mix(in srgb, var(--theme-accent, #0f4c81) 48%, var(--theme-border, rgba(15, 76, 129, 0.16)) 52%);
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--theme-card, rgba(255, 255, 255, .94)) 74%, var(--theme-accent-2, #1a73b8) 26%),
      color-mix(in srgb, var(--theme-card-strong, rgba(255, 255, 255, .98)) 82%, var(--theme-accent, #0f4c81) 18%));
  color: var(--theme-text, #17222d);
}

.legacy-actions .btn-outline-secondary {
  border: 1px solid rgba(15, 76, 129, 0.14);
  background: #fff;
  color: #0f4c81;
}

  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  vertical-align: middle;
  cursor: pointer;
  color: #1a73b8;
  border: 1px solid rgba(26, 115, 184, 0.18);
  border-radius: 999px;
  background: rgba(26, 115, 184, 0.08);
  line-height: 1;
  font-size: 0;
  max-height: none;
}

  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.2);
  background: rgba(220, 53, 69, 0.08);
}

  content: "?";
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.tooltipster-base.tooltipster-light {
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.tooltipster-light {
  border: 0;
  background: #2f3b49;
  color: #f8fafc;
}

.tooltipster-light .tooltipster-content {
  font-family: Cuprum, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #f8fafc;
  padding: 10px 12px;
}

.tooltipster-light .tooltipster-content img {
  max-width: min(360px, 72vw);
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 0 8px;
}

.tooltipster-light .tooltipster-content p,
.tooltipster-light .tooltipster-content div,
.tooltipster-light .tooltipster-content li {
  font-family: Cuprum, Arial, sans-serif;
  color: #e5edf5;
}

.tooltipster-light .tooltipster-content ul,
.tooltipster-light .tooltipster-content ol {
  margin: 8px 0 0 18px;
  padding: 0;
}

.tooltipster-light .tooltipster-content strong,
.tooltipster-light .tooltipster-content b {
  color: #ffffff;
  font-weight: 700;
}

.tooltipster-light .tooltipster-arrow-top span,
.tooltipster-light .tooltipster-arrow-top-right span,
.tooltipster-light .tooltipster-arrow-top-left span {
  border-top-color: #2f3b49 !important;
}

.tooltipster-light .tooltipster-arrow-bottom span,
.tooltipster-light .tooltipster-arrow-bottom-right span,
.tooltipster-light .tooltipster-arrow-bottom-left span {
  border-bottom-color: #2f3b49 !important;
}

.tooltipster-light .tooltipster-arrow-left span {
  border-left-color: #2f3b49 !important;
}

.tooltipster-light .tooltipster-arrow-right span {
  border-right-color: #2f3b49 !important;
}

.tooltipster-light .tooltipster-arrow-border {
  display: none !important;
}

.legacy-help-tooltip {
  position: absolute;
  z-index: 1000000;
  max-width: min(360px, 72vw);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  background: #2f3b49;
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 1em;
  line-height: 1.5;
  padding: 10px 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.legacy-help-tooltip--mobile {
  position: fixed;
  max-width: none;
  width: auto;
}

.legacy-help-tooltip[hidden] {
  display: none;
}

.legacy-help-tooltip img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 0 8px;
  box-sizing: border-box;
}

.legacy-help-tooltip p,
.legacy-help-tooltip div,
.legacy-help-tooltip li {
  color: #e5edf5;
  font-family: var(--font-sans);
}

.legacy-help-tooltip strong,
.legacy-help-tooltip b {
  color: #ffffff;
  font-weight: 700;
}

.legacy-help-tooltip ul,
.legacy-help-tooltip ol {
  margin: 8px 0 0 18px;
  padding: 0;
}

#Results .price-box,
.result-ok,
.result-error {
  padding: 18px;
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: #16202a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.legacy-result .notice {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(15, 76, 129, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 18px 32px rgba(18, 35, 53, 0.08);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legacy-result .notice.error {
  border-color: rgba(198, 40, 40, 0.16);
  background: linear-gradient(180deg, #fff8f8 0%, #fff1f1 100%);
  color: #9f1f1f;
}

.legacy-result .notice.success,
.legacy-result .notice.ok {
  border-color: rgba(21, 128, 61, 0.16);
  background: linear-gradient(180deg, #f8fff9 0%, #eefbf1 100%);
  color: #166534;
}

.legacy-result .price-box h3,
.legacy-result .result-ok h3,
.legacy-result .result-error h3,
.legacy-result h3 {
  margin: 0 0 10px;
  color: #16202a;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}

.legacy-result p,
.legacy-result div,
.legacy-result span,
.legacy-result li,
.legacy-result code,
.legacy-result pre {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legacy-result strong {
  color: #0f4c81;
}

.legacy-result .price,
.legacy-result .cost,
.legacy-result .bigprice {
  display: inline-block;
  color: #0f4c81;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

#Results .machine-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e9f4ff;
  color: #0f4c81;
  font-size: 12px;
  font-weight: 800;
}

#DebugInfo {
  display: none;
}

@media (max-width: 992px) {
  .legacy-indexn-shell {
    width: min(100% - 24px, 100%);
    margin: 12px auto 28px;
  }

  .legacy-brandbar-inner,
  .legacy-hero {
    grid-template-columns: 1fr;
  }

  .legacy-brandbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legacy-indexn-grid {
    grid-template-columns: 1fr;
  }

  .legacy-panel-side {
    position: static;
  }
}

@media (max-width: 768px) {
  .legacy-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .legacy-brand {
    align-items: flex-start;
    flex-direction: column;
  }

    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 2px 0;
  }

    width: auto;
    min-width: 0;
    padding: 0 28px 0 0;
    margin-top: 0;
    text-align: left;
  }

    margin-left: 0;
    padding: 16px;
  }

    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin-right: 0;
  }

    max-width: 100%;
    margin: 0;
  }

    min-width: 0;
    width: auto;
    max-width: 100%;
  }

    height: auto;
    min-height: 0;
    line-height: 1.35;
    padding: 4px 28px 4px 8px;
    margin: 0;
    overflow: hidden;
  }

    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

    width: 100%;
    max-width: 100%;
  }

    overflow-x: visible;
    white-space: normal;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .legacy-actions {
    flex-direction: column;
  }

  .legacy-link-pill,
  .legacy-actions .btn {
    width: 100%;
  }

    display: grid;
    grid-template-columns: 10.5em minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 10px 6px;
    padding: 2px 0;
    width: 100%;
  }

    width: 10.5em;
    min-width: 10.5em;
    max-width: 10.5em;
    flex: 0 0 10.5em;
    padding: 2px 30px 2px 4px;
    text-align: right;
    white-space: nowrap;
    line-height: 1.2;
    font-size: 1rem;
  }

    width: auto;
    max-width: 100%;
    min-width: 0;
    grid-column: 2;
  }

    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex-wrap: nowrap;
    row-gap: 0;
  }

    font-size: 0.95rem;
    line-height: 1.2;
  }
}

/* Premium pass: усиливаем визуальную иерархию поверх базового modern-shell. */

.legacy-indexn-body {
  background:
    radial-gradient(circle at top left, rgba(15, 76, 129, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 26%),
    linear-gradient(180deg, #f4f8fc 0%, #edf3f9 100%);
}

.legacy-indexn-shell {
  margin: 28px auto 52px;
  gap: 28px;
}

.legacy-brandbar {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 56px rgba(18, 35, 53, 0.1);
}

.legacy-link-pill {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.legacy-link-pill-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #ffb321 100%);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
  color: #18212b;
}

.legacy-link-pill-accent:hover {
  color: #18212b;
}

.legacy-hero {
  gap: 28px;
  padding: 34px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14), transparent 20%),
    linear-gradient(135deg, rgba(7, 36, 63, 0.98) 0%, rgba(15, 76, 129, 0.96) 42%, rgba(27, 119, 172, 0.92) 100%);
  box-shadow: 0 30px 70px rgba(14, 40, 63, 0.22);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.legacy-hero::after {
  content: "";
  position: absolute;
  inset: auto -56px -88px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.legacy-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.98;
}

.legacy-hero p {
  font-size: 18px;
}

.legacy-note-card {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.09) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 32px rgba(5, 24, 43, 0.16);
}

.legacy-indexn-grid {
  gap: 28px;
  max-width: 100%;
}

.legacy-panel {
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(18, 35, 53, 0.08);
}

.legacy-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.legacy-panel-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 126px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
  border: 1px solid rgba(15, 76, 129, 0.08);
  color: #667689;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.legacy-panel-stat span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.legacy-panel-stat strong {
  color: #0f4c81;
  font-size: 18px;
  line-height: 1;
  text-transform: lowercase;
  letter-spacing: -0.03em;
}

.legacy-panel-title {
  font-size: 34px;
}

.legacy-pricing-card {
  margin-bottom: 16px;
  padding: 22px 22px 18px;
  border-radius: 26px;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.legacy-pricing-card .legacy-result-kicker {
  color: inherit;
}

.legacy-pricing-card .legacy-result-head,
.legacy-pricing-card .legacy-result-subhead {
  color: inherit;
}

.legacy-pricing-calc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  margin: 14px 0 18px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f4c81 0%, #1a73b8 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(18, 35, 53, 0.16);
}

.legacy-pricing-calc-btn[hidden] {
  display: none !important;
}

.legacy-pricing-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  padding: 0 22px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f4c81 0%, #1a73b8 45%, #2196f3 100%) !important;
  background-size: 200% 200% !important;
  color: #ffffff !important;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 10px 28px rgba(15, 76, 129, 0.35),
    0 4px 10px rgba(33, 150, 243, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease,
    background-position 0.6s ease;
  animation: legacyCartGradient 6s ease infinite;
}

.legacy-pricing-cart-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 65%,
    transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

.legacy-pricing-cart-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2196f3, #21cbf3, #2196f3);
  opacity: 0;
  filter: blur(14px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.legacy-pricing-cart-btn > * {
  position: relative;
  z-index: 2;
}

.legacy-pricing-cart-btn i,
.legacy-pricing-cart-btn .ti-shopping-cart {
  font-size: 18px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.legacy-pricing-cart-btn:hover {
  transform: translateY(-2px) scale(1.015);
  background-position: 100% 50% !important;
  box-shadow:
    0 16px 40px rgba(15, 76, 129, 0.45),
    0 6px 16px rgba(33, 150, 243, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.legacy-pricing-cart-btn:hover::before {
  transform: translateX(120%);
}

.legacy-pricing-cart-btn:hover::after {
  opacity: 0.55;
}

.legacy-pricing-cart-btn:hover i,
.legacy-pricing-cart-btn:hover .ti-shopping-cart {
  transform: translateX(-2px) rotate(-8deg) scale(1.15);
}

.legacy-pricing-cart-btn:focus-visible {
  outline: 2px solid #7cc4ff;
  outline-offset: 3px;
}

.legacy-pricing-cart-btn:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.1s;
}

.legacy-pricing-cart-btn:disabled,
.legacy-pricing-cart-btn[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.4) brightness(0.85);
  animation: none;
}

@keyframes legacyCartGradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

html[data-theme="dark"] .legacy-pricing-cart-btn {
  background: linear-gradient(135deg, #1a73b8 0%, #2196f3 50%, #21cbf3 100%) !important;
  box-shadow:
    0 10px 28px rgba(33, 150, 243, 0.4),
    0 4px 12px rgba(33, 203, 243, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
html[data-theme="dark"] .legacy-pricing-cart-btn:hover {
  box-shadow:
    0 18px 42px rgba(33, 150, 243, 0.5),
    0 8px 20px rgba(33, 203, 243, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.legacy-pricing-card .legacy-result-subhead,
.legacy-pricing-card p,
.legacy-pricing-card li,
.legacy-pricing-card span,
.legacy-pricing-card div {
  color: inherit !important;
}

.legacy-pricing-card .price,
.legacy-pricing-card .cost,
.legacy-pricing-card .bigprice,
.legacy-pricing-card strong,
.legacy-pricing-card b,
.legacy-pricing-card h3,
.legacy-pricing-card h4 {
  color: inherit !important;
}

.legacy-pricing-card a {
  color: inherit !important;
  text-decoration: underline;
}

.legacy-pricing-card .legacy-pricing-meta span {
  color: inherit !important;
  background: transparent;
  border: 1px solid currentColor;
}

.legacy-pricing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.legacy-pricing-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.legacy-loader {
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  gap: 16px;
}

  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

  background: rgba(15, 76, 129, 0.018);
}

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

  background: #fff;
  transform: translateY(-1px);
}

.legacy-actions .btn {
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.legacy-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(18, 35, 53, 0.14);
}

.legacy-result .notice {
  animation: legacyFadeUp 0.24s ease;
}

@keyframes legacyFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .legacy-panel-head {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .legacy-indexn-shell {
    width: min(100% - 18px, 100%);
    margin: 8px auto 26px;
    gap: 16px;
  }

  .legacy-brandbar {
    border-radius: 20px;
  }

  .legacy-brandbar-inner {
    padding: 14px 16px;
    gap: 12px;
    align-items: center;
  }

  .legacy-brand {
    flex: 1 1 auto;
  }

  .legacy-brand img {
    width: 138px;
  }

  .legacy-header-center-contact {
    width: 100%;
    margin: 0;
    order: 2;
    padding: 9px 12px 10px;
    border-radius: 16px;
    box-shadow: none;
  }

  .legacy-header-center-contact a {
    gap: 6px;
  }

  .legacy-header-center-contact-icon,
  .legacy-header-center-contact-icon svg {
    width: 16px;
    height: 16px;
  }

  .legacy-header-center-contact-phone {
    font-size: 14px;
  }

  .legacy-header-center-contact-mail {
    font-size: 11px;
  }

  .legacy-header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .legacy-header-quicklinks {
    display: none;
  }

  .legacy-menu-toggle {
    display: inline-flex;
    margin-left: 0;
    order: 1;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    flex: 1 1 calc(33.333% - 6px);
  }

  .legacy-top-nav {
    display: none;
    width: 100%;
    order: 10;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 6px;
  }

  .legacy-top-nav.is-open {
    display: flex;
  }

  .legacy-top-nav-mobile-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .legacy-top-nav-mobile-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    background: rgba(15, 76, 129, 0.05);
    color: #355066;
  }

  .legacy-top-nav-mobile-links a svg {
    width: 24px;
    height: 24px;
    display: block;
  }

  .legacy-top-nav a {
    min-height: 46px;
    justify-content: center;
    border-radius: 14px;
    background: rgba(15, 76, 129, 0.05);
  }

  .legacy-brand-actions {
    width: 100%;
    gap: 8px;
  }

  .legacy-link-pill {
    flex: 1 1 calc(33.333% - 6px);
    min-height: 46px;
    padding: 0 14px;
    font-size: 13px;
  }

  .legacy-top-bar-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .legacy-top-bar-icon svg {
    width: 26px;
    height: 26px;
  }

  .legacy-hero {
    padding: 22px 18px;
    gap: 14px;
    border-radius: 24px;
  }

  .legacy-hero h1 {
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.02;
  }

  .legacy-hero p {
    font-size: 14px;
    line-height: 1.5;
  }

  .legacy-hero-badges {
    gap: 8px;
    margin-top: 16px;
  }

  .legacy-hero-badges span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .legacy-note-card {
    padding: 16px;
    border-radius: 20px;
  }

  .legacy-indexn-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .legacy-panel-side {
    order: 2;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
  }

  .legacy-panel,
  .legacy-panel-side {
    border-radius: 22px;
    padding: 16px;
  }

  .legacy-pricing-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 16px 16px 14px;
    border-radius: 20px;
    box-sizing: border-box;
  }

  .legacy-result-head {
    font-size: 22px;
  }

  .legacy-panel-title {
    font-size: 24px;
    line-height: 1.08;
  }

  .legacy-panel-text,
  .legacy-result-subhead {
    font-size: 13px;
    line-height: 1.5;
  }

  .legacy-loader {
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  .legacy-indexn-shell {
    width: calc(100% - 20px);
    margin: 14px auto 24px;
    gap: 14px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .site-footer {
    margin-bottom: 0;
    padding: 26px 0 28px;
  }

  .site-footer-brand {
    text-align: center;
  }

  .site-footer-logo {
    display: inline-flex;
    justify-content: center;
  }

  .site-footer-copy {
    margin: 14px 0 12px;
    font-size: 13px;
  }

  .site-footer-review-btn {
    width: 100%;
    min-height: 40px;
  }

  .site-footer-contacts {
    font-size: 12px;
    line-height: 1.6;
  }

  .site-footer-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-footer-column h5 {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .site-footer-column a {
    font-size: 12px;
    line-height: 1.35;
  }

  .legacy-brandbar-inner {
    align-items: stretch;
    gap: 8px;
  }

  .legacy-brand {
    width: 100%;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
  }

  .legacy-brand img {
    width: 138px;
  }

  .legacy-header-center-contact {
    width: 100%;
    gap: 2px;
    padding: 8px 10px;
    text-align: center;
    min-width: 0;
  }

  .legacy-header-center-contact a {
    white-space: normal;
    word-break: break-word;
  }

  .legacy-header-center-contact-phone {
    font-size: 13px;
    font-weight: 800;
  }

  .legacy-header-center-contact-mail {
    font-size: 10px;
    letter-spacing: .01em;
  }

  .legacy-brand-actions {
    width: 100%;
    gap: 8px;
  }

  .legacy-menu-toggle {
    margin-left: 0;
    align-self: flex-end;
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .legacy-link-pill {
    width: auto;
    flex: 1 1 calc(33.333% - 4px);
    min-height: 42px;
    border-radius: 14px;
    padding: 0 10px;
  }

  .legacy-panel-head {
    gap: 10px;
    margin-bottom: 4px;
  }

  .legacy-panel-stat {
    align-items: flex-start;
    min-width: 0;
    width: 100%;
    padding: 12px 14px;
  }

    gap: 6px;
    padding: 2px 0;
  }

    letter-spacing: 0;
    text-align: left;
    padding-right: 28px;
  }

    min-height: 0;
    padding: 4px 8px;
    border-radius: 0;
  }

    max-width: 100%;
    margin: 0;
  }

    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

    height: auto;
    min-height: 0;
    line-height: 1.35;
    padding: 4px 28px 4px 8px;
    margin: 0;
    border-radius: 0;
  }

    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 14px;
  }

    padding: 14px;
    border-radius: 18px;
  }

  .legacy-actions {
    gap: 10px;
  }

  .legacy-actions .btn {
    min-height: 48px;
    width: 100%;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 13px;
  }

    display: grid;
    grid-template-columns: 9.25em minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 8px 4px;
    width: 100%;
  }

    width: 9.25em;
    min-width: 9.25em;
    max-width: 9.25em;
    flex: 0 0 9.25em;
    padding: 2px 24px 2px 4px;
    text-align: right;
    font-size: 0.9rem;
    white-space: nowrap;
    line-height: 1.18;
  }

    white-space: nowrap;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
  }

    font-size: 0.84rem;
    line-height: 1.16;
  }

  .legacy-result .price,
  .legacy-result .cost,
  .legacy-result .bigprice {
    font-size: clamp(26px, 9vw, 34px);
  }
}

/* Menu polish pass. */

.legacy-brandbar {
  position: sticky;
  top: 0;
  z-index: 30;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.legacy-brandbar.is-sticky {
  box-shadow: 0 20px 48px rgba(18, 35, 53, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

@media (min-width: 901px) {
  .legacy-brandbar {
    position: fixed !important;
    top: 14px !important;
    left: calc(var(--desktop-sidebar-width) + var(--desktop-sidebar-gap) + ((100vw - (var(--desktop-sidebar-width) + var(--desktop-sidebar-gap))) - min(var(--desktop-content-max), calc(100vw - var(--desktop-sidebar-width) - 56px))) / 2) !important;
    width: min(var(--desktop-content-max), calc(100vw - var(--desktop-sidebar-width) - 56px)) !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 120 !important;
  }

  .legacy-brandbar.is-sticky {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 52px rgba(18, 35, 53, 0.14);
    border-color: rgba(15, 76, 129, 0.12);
  }

  .legacy-indexn-shell--main {
    margin-top: 118px;
  }

  .legacy-indexn-body.has-desktop-sticky-header .legacy-indexn-shell--main {
    margin-top: 118px;
  }
}

.legacy-top-nav a.is-active {
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.12) 0%, rgba(26, 115, 184, 0.08) 100%);
  color: #0f4c81;
  box-shadow: inset 0 0 0 1px rgba(15, 76, 129, 0.08);
}

@media (max-width: 900px) {
  .legacy-indexn-body {
    padding-left: 0;
  }

  .legacy-page-layout {
    display: block;
  }

  .legacy-page-sidebar {
    display: none !important;
  }

  .legacy-sidebar-collapse-toggle {
    display: none;
  }

  .legacy-sidebar-edge-toggle {
    display: none !important;
  }

  .legacy-page-main {
    order: 1;
    width: 100%;
  }

  .legacy-top-nav {
    padding: 10px;
    border-radius: 18px;
    background: rgba(15, 76, 129, 0.03);
    box-shadow: inset 0 0 0 1px rgba(15, 76, 129, 0.05);
  }

  .legacy-top-nav a.is-active {
    box-shadow: none;
  }
}

/* Calculators dropdown in top menu. */

.legacy-nav-group {
  position: relative;
}

.legacy-nav-parent {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #355066;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.legacy-nav-parent::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.18s ease;
}

.legacy-nav-parent:hover,
.legacy-nav-parent.is-active {
  background: rgba(15, 76, 129, 0.08);
  color: #0f4c81;
  transform: translateY(-1px);
}

.legacy-nav-parent.is-active::after {
  transform: rotate(225deg) translateY(-1px);
}

.legacy-nav-dropdown {
  position: fixed;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1380px, calc(100vw - 32px));
  max-width: none;
  max-height: min(78vh, 820px);
  overflow: auto;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: 0 26px 70px rgba(18, 35, 53, 0.16);
  backdrop-filter: blur(18px);
  display: none;
  z-index: 80;
}

.legacy-nav-dropdown.is-open {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  align-items: start;
}

.legacy-nav-dropdown-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

.legacy-nav-dropdown-title {
  color: #16202a;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legacy-nav-dropdown-text {
  max-width: 560px;
  color: rgba(22, 32, 42, 0.68);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.legacy-nav-search {
  grid-column: 1 / -1;
  display: block;
}

.legacy-nav-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(15, 76, 129, 0.14);
  border-radius: 16px;
  background: #fff;
  color: #16202a;
  font-size: 14px;
  font-weight: 500;
}

.legacy-nav-search input:focus {
  outline: none;
  border-color: rgba(15, 76, 129, 0.3);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.08);
}

.legacy-nav-dropdown a {
  width: 100%;
  min-height: 38px;
  justify-content: flex-start;
  border-radius: 12px;
  font-size: 13px;
}

.legacy-nav-locale {
  break-inside: avoid;
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.92));
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: 0 10px 22px rgba(18, 35, 53, 0.05);
}

.legacy-nav-locale+.legacy-nav-locale {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legacy-nav-locale-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  padding: 0 8px 8px;
  border: none;
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
  background: transparent;
  color: #0f4c81;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: left;
  cursor: pointer;
}

.legacy-nav-locale-title>span:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.legacy-menu-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.95;
}

.legacy-menu-glyph svg {
  width: 18px;
  height: 18px;
  display: block;
}

.legacy-menu-glyph--calendar {
  color: #c2410c;
}

.legacy-menu-glyph--book {
  color: #166534;
}

.legacy-menu-glyph--sticker {
  color: #7e22ce;
}

.legacy-menu-glyph--wide {
  color: #0f766e;
}

.legacy-menu-glyph--sign {
  color: #be123c;
}

.legacy-menu-glyph--print {
  color: #1d4ed8;
}

.legacy-menu-glyph--grid {
  color: #334155;
}

.legacy-menu-glyph--sheets,
.legacy-menu-glyph--card,
.legacy-menu-glyph--leaflet,
.legacy-menu-glyph--envelope,
.legacy-menu-glyph--poster,
.legacy-menu-glyph--brochure {
  color: #1d4ed8;
}

.legacy-menu-glyph--stickers,
.legacy-menu-glyph--label {
  color: #7e22ce;
}

.legacy-menu-glyph--books {
  color: #166534;
}

.legacy-menu-glyph--engineering,
.legacy-menu-glyph--blueprint,
.legacy-menu-glyph--outdoor,
.legacy-menu-glyph--banner {
  color: #0f766e;
}

.legacy-menu-glyph--textile,
.legacy-menu-glyph--tshirt {
  color: #db2777;
}

.legacy-menu-glyph--magnet,
.legacy-menu-glyph--stand {
  color: #be123c;
}

.legacy-menu-glyph--doorhanger {
  color: #c2410c;
}

.legacy-menu-glyph--box,
.legacy-menu-glyph--roll {
  color: #b45309;
}

.legacy-menu-glyph--template,
.legacy-menu-glyph--service {
  color: #334155;
}

.legacy-menu-glyph--souvenir,
.legacy-menu-glyph--gift,
.legacy-menu-glyph--decor {
  color: #7c3aed;
}

.legacy-nav-locale-title::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.legacy-nav-locale.is-open .legacy-nav-locale-title::after {
  transform: rotate(225deg);
}

.legacy-nav-subgroup {
  display: none;
  padding-top: 10px;
}

.legacy-nav-locale.is-open .legacy-nav-subgroup {
  display: block;
}

.legacy-nav-subgroup-title {
  margin-bottom: 6px;
  padding: 0 8px;
  color: rgba(22, 32, 42, 0.65);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.legacy-nav-subgroup-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f4c81, #1a73b8);
  vertical-align: middle;
}

.legacy-nav-subgroup a {
  gap: 10px;
}

.legacy-nav-subgroup a::before {
  display: none;
}

@media (max-width: 900px) {
  .legacy-nav-group {
    width: 100%;
  }

  .legacy-nav-parent {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    background: rgba(15, 76, 129, 0.05);
  }

  .legacy-nav-dropdown {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: none;
    margin-top: 8px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .legacy-nav-dropdown-head {
    display: block;
    padding: 4px 4px 10px;
  }

  .legacy-nav-dropdown-text {
    margin-top: 6px;
    max-width: none;
    text-align: left;
  }

  .legacy-nav-locale {
    padding: 12px;
    border-radius: 16px;
  }

  .legacy-nav-dropdown a {
    justify-content: flex-start;
    min-height: 44px;
    border-radius: 12px;
    background: rgba(15, 76, 129, 0.04);
  }

  .legacy-nav-subgroup a::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .legacy-brand {
    width: 100%;
    justify-content: center;
  }

  .legacy-header-center-contact a {
    white-space: normal;
    word-break: break-word;
  }

  .legacy-top-nav-mobile-links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .legacy-top-nav-mobile-links a {
    min-height: 42px;
    border-radius: 11px;
  }

  .legacy-top-nav-mobile-links a svg {
    width: 22px;
    height: 22px;
  }
}

/* Calculator form pass: compact two-column layout with inline expressions. */
.legacy-panel-main {
  padding: 0;
  position: relative;
}

  width: 100%;
}

  width: 100%;
}

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 4px 0;
  overflow: visible;
  white-space: normal;
  flex-wrap: wrap;
  box-sizing: border-box;
}

  width: 10.2em;
  min-width: 10.2em;
  flex: 0 0 10.2em;
  max-width: none;
  padding: 2px 8px 2px 2px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  text-align: right;
  white-space: nowrap;
  line-height: 1.2;
  font-size: 0.98rem;
  font-weight: 400;
  color: #172433;
}

  flex: 0 0 auto;
}

  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  white-space: normal;
  overflow: visible;
  width: auto;
  max-width: 100%;
}

  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  flex: 0 0 auto;
  vertical-align: middle;
}

  min-height: 2.15em;
  padding: 0.38em 0.58em;
  text-align: center;
}

  width: 5.4em;
}

@media (min-width: 641px) {
  /* Для desktop preset-1: строки «Формат» и «Цветность» должны идти по той же сетке, что и остальные строки формы. */



    display: block;
    width: 100%;
    min-height: 0;
    margin: 12px 0 8px;
    padding: 0;
  }

    display: block;
    width: 100%;
    margin-left: 0;
    padding: 9px 14px;
    text-align: center;
    box-sizing: border-box;
  }

    padding-top: 8px;
    padding-bottom: 8px;
  }













  /* Строки «Формат» и «Цветность» в preset-1/2 на десктопе:
     используем ту же grid-разметку, что и остальные строки формы */
    display: grid !important;
    grid-template-columns: var(--legacy-desktop-label-width, 12.75em) minmax(0, max-content) !important;
    align-items: center !important;
    column-gap: 14px !important;
    row-gap: 0 !important;
    flex-wrap: unset !important;
    justify-content: unset !important;
    gap: unset !important;
  }





  html[data-calc-desktop-layout="preset-3"] .legacy-indexn-body .legacy-panel-main {
    padding: 6px 0 0 8px;
  }

    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 10px 14px;
    width: 100%;
    min-height: 0;
    margin: 0 0 14px;
    padding: 13px 14px 12px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.96));
    box-shadow:
      0 14px 28px rgba(18, 35, 53, 0.06),
      inset 4px 0 0 rgba(15, 76, 129, 0.14);
  }

    width: auto;
    min-width: 0;
    max-width: none;
    flex: initial;
    align-self: center;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(15, 76, 129, 0.06);
    text-align: right;
    justify-content: flex-end;
    font-size: 0.77rem;
    font-weight: 800;
    line-height: 1.25;
    color: #24435d;
  }

    width: auto;
    min-width: 0;
    max-width: 100%;
    justify-self: flex-start;
  }

    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    width: 100%;
    margin-left: 0;
    flex: initial;
  }

    grid-column: auto;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 76, 129, 0.04), rgba(15, 76, 129, 0.02));
  }

    padding: 2px 0 0 12px;
  }

    width: min(100%, 920px);
  }

    width: 100%;
    max-width: 100%;
  }

    display: grid;
    grid-template-columns: var(--legacy-desktop-label-width, 168px) minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    row-gap: 8px;
    min-height: 0;
    margin: 0 0 12px;
    padding: 12px 12px 11px;
    border-bottom: 1px solid rgba(15, 76, 129, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.16));
  }

    width: auto;
    min-width: 0;
    max-width: none;
    flex: initial;
    align-self: center;
    padding: 0;
    text-align: right;
    white-space: normal;
    line-height: 1.28;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1d3246;
  }

    min-width: 0;
    max-width: 100%;
    justify-self: start;
  }

    align-items: center;
    gap: 8px 10px;
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
    margin-left: 0;
    white-space: normal;
  }

    grid-column: auto;
    padding: 0;
    background: transparent;
  }

    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    padding: 0;
    text-align: left;
    justify-content: flex-start;
    font-size: 0.82rem;
    line-height: 1.25;
    color: #44596d;
  }

    content: ":";
  }

    grid-template-columns: 146px minmax(0, 1fr);
    column-gap: 12px;
  }

    font-size: 0.82rem;
    line-height: 1.22;
  }

    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 6px;
    justify-content: start;
  }

    align-items: center;
  }

    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
  }

    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    white-space: nowrap !important;
    width: auto !important;
  }

    margin-left: 0 !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

    width: 4.6em !important;
    min-width: 4.6em !important;
  }

    min-width: 4.5em !important;
    max-width: 4.5em !important;
  }

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
  }

    width: var(--legacy-desktop-label-width, 12.75em) !important;
    min-width: var(--legacy-desktop-label-width, 12.75em) !important;
    max-width: var(--legacy-desktop-label-width, 12.75em) !important;
    flex: 0 0 var(--legacy-desktop-label-width, 12.75em) !important;
  }

    grid-column: auto !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: max-content !important;
    justify-self: auto !important;
  }
}

  min-height: 2.5em;
}

/* removed orphaned costgoods min-width:240px */

  width: auto;
  min-width: 0;
  max-width: none;
}

  display: inline-flex;
  align-items: center;
  float: none;
  min-height: 2.15em;
  line-height: 2.05em;
  padding-left: 10px;
  padding-right: 24px;
  max-width: none;
  overflow: hidden;
}

  display: inline-block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.legacy-panel-main #RisoColor {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 330px;
  white-space: nowrap;
}

.legacy-panel-main #plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: #172433;
}

.legacy-panel-main #licoRizo,
.legacy-panel-main #oborotRizo {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  padding: 0 0 3px;
  border-bottom: 1px dotted #d65b5b;
  cursor: pointer;
}

.legacy-panel-main #RisoColor div.checkB {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  flex: 0 0 22px;
  opacity: 0.22;
  transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.legacy-panel-main #RisoColor div.checkB.is-checked {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 0 4px rgba(15, 76, 129, 0.24);
}

.legacy-panel-main #RisoColor div.checkB:hover {
  opacity: 0.72;
}

.legacy-panel-main #RisoColor .black {
  background-color: #000;
}

.legacy-panel-main #RisoColor .red {
  background-color: #f31313;
}

.legacy-panel-main #RisoColor .blue {
  background-color: #1c33ff;
}

.legacy-panel-main #RisoColor input[type="checkbox"] {
  width: 12px;
  min-width: 12px;
  height: 12px;
  min-height: 12px;
  margin: 0;
  padding: 0;
  flex: 0 0 12px;
  accent-color: #ffffff;
  box-shadow: none;
  cursor: pointer;
}

  width: min(100%, 300px);
  max-width: min(100%, 300px);
}

  display: block;
  width: 100%;
  max-width: 100%;
  margin-right: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.legacy-panel-main .legacy-material-row {
  flex-wrap: nowrap !important;
  align-items: center;
}

.legacy-panel-main .legacy-material-row label {
  white-space: nowrap;
}

.legacy-panel-main .legacy-material-row #ge,
.legacy-panel-main .legacy-material-row #materialMeta {
  flex: 0 1 auto;
  min-width: 0;
}

  flex: 0 1 300px;
}

  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15em;
  padding: 0 1px;
  font-size: 0.98rem;
  line-height: 1;
  color: #30485c;
}

  margin-left: 0;
}

.legacy-panel-main .legacy-packaging-dimensions {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}

.legacy-panel-main .legacy-packaging-dimensions li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legacy-panel-main .legacy-packaging-dimensions span {
  display: inline-flex;
  align-items: center;
  min-width: 5.8em;
  justify-content: flex-end;
  color: #30485c;
}

.legacy-side-media-card {
  margin-top: 18px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(8, 19, 31, 0.14);
}

.legacy-side-media-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
}

  display: block;
  min-height: 0;
  margin: 12px 0 6px;
  padding: 0;
}

  display: block;
  width: min(100%, 492px);
  margin-left: calc(10.2em + 10px);
  padding: 8px 14px;
  border-radius: 0;
  background: #25a3bb;
  color: #fff;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-sizing: border-box;
}

.legacy-panel-main .legacy-actions {
  justify-content: flex-start;
  margin-top: 18px;
  padding-top: 14px;
}

@media (min-width: 769px) {
  .legacy-indexn-grid {
    grid-template-columns: minmax(0, 1.62fr) minmax(280px, 0.88fr);
    gap: 12px;
  }

  .legacy-panel,
  .legacy-pricing-card,
  .legacy-side-media-card {
    border-radius: 0;
    box-shadow: none;
  }

  .legacy-panel {
    background: #eef1f5;
    border-color: #e0e5ea;
    padding: 18px 16px;
  }

  .legacy-panel-side {
    top: 0px;
  }

  .legacy-pricing-card {
    background: transparent;
    border: 0;
    padding: 8px 10px 14px;
  }

  .legacy-side-media-card {
    margin-top: 12px;
    padding: 10px;
    background: #dfe3e8;
    border: 1px solid #d3d8de;
  }

  .legacy-side-media-card img {
    border-radius: 0;
  }

  .legacy-panel-main {
    padding: 0 0 0 8px;
  }

    padding-top: 12px;
  }

    min-height: 34px;
    gap: 8px 4px;
  }

    min-width: 11.4em;
    padding: 1px 18px 1px 2px;
    font-size: 0.92rem;
    line-height: 1.2;
  }

    min-height: 30px;
    height: 30px;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 22px;
    background: #fff;
  }

    margin: 0 2px;
    max-width: 5.5em;
  }

    padding-left: 10px;
    padding-right: 24px;
  }

    margin: 0;
    padding: 1px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

    padding: 8px 0;
  }

    margin-left: 0;
    padding-left: 0;
  }

    width: 210px;
    margin-left: 142px;
    padding: 6px 12px;
    font-size: 0.84rem;
    letter-spacing: 0.03em;
  }

    margin: 10px 0 4px;
    padding: 0;
  }





    min-width: 142px;
  }

    min-height: 40px;
    padding: 0 14px;
    border-radius: 18px;
    font-size: 0.82rem;
  }

  }

    align-items: center;
  }

    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: auto;
    max-width: 100%;
  }

    width: auto;
    max-width: 100%;
  }

    gap: 6px;
    flex-wrap: wrap;
  }

    min-width: 0;
    min-height: 30px;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 400;
    justify-content: center;
    flex-direction: row;
    text-align: center;
  }

  .legacy-calendar-preview-card {
    min-height: 420px;
    justify-content: center;
    background: #dfe3e8;
    border-color: #d3d8de;
  }

  .legacy-calendar-preview-card #Kalendarimg img {
    max-width: 245px;
    border-radius: 0;
  }

  .legacy-panel-main .legacy-actions--desktop-corner {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    justify-content: flex-end;
  }

  .legacy-panel-main .legacy-actions--desktop-corner .legacy-reset-btn {
    box-shadow: 0 12px 28px rgba(18, 35, 53, 0.14);
  }
}

.legacy-panel-main .legacy-actions .btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(18, 35, 53, 0.08);
}

@media (max-width: 768px) {

  .legacy-indexn-body,
  .legacy-indexn-body .site-header,
  .legacy-indexn-body .container.page-shell {
    max-width: 1180px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }

  .legacy-indexn-body {
    overflow-x: hidden;
  }

  .legacy-indexn-shell--main {
    margin-top: 0 !important;
  }

  .legacy-panel-main .HelpIcon {
    display: none !important;
  }

    border-bottom: 0 !important;
  }

    border: none !important;
    border-bottom: none !important;
    background: none !important;
    border-radius: 0 !important;
    color: inherit !important;
    box-shadow: none !important;
  }

    border-bottom: 1px solid rgba(120, 128, 140, 0.7) !important;
    -webkit-appearance: none;
    appearance: none;
  }

    color: #1565c0 !important;
    background: rgba(21, 101, 192, 0.08) !important;
    border-color: rgba(21, 101, 192, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(21, 101, 192, 0.12) !important;
  }

    color: inherit !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  .legacy-calc-hero {
    height: auto !important;
    max-height: var(--home-main-hero-max-height-mobile) !important;
    min-height: 0 !important;
    padding: 18px 16px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 22px !important;
  }

  .legacy-calc-hero .menu-glyph {
    width: 26px !important;
    height: 26px !important;
    flex: 0 0 26px !important;
    border-radius: 10px !important;
  }

  .legacy-calc-hero .menu-glyph svg {
    width: 20px !important;
    height: 20px !important;
  }

  .legacy-panel-main {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

    gap: 8px;
    min-height: 38px;
  }

    width: calc(9.1em + 15px);
    min-width: calc(9.1em + 15px);
    flex-basis: calc(9.1em + 15px);
    padding-right: 3px;
    font-size: 0.94rem;
  }

    gap: 5px;
  }

    min-width: calc(9.1em + 15px);
  }
}

@media (max-width: 640px) {

  .legacy-desktop-visible {
    display: none !important;
  }

  .legacy-indexn-grid,
  .legacy-panel,
  .legacy-panel-main,
  .legacy-panel-side {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .legacy-indexn-body .site-header,
  .legacy-indexn-body .container.page-shell,
  .legacy-indexn-body .hero-shell {

    /*width: 100%;

    max-width: 100%;
    margin: 0;
    */

    margin-left: auto;
    margin-right: auto;
  }

  .legacy-indexn-shell--main {
    margin-top: 0 !important;
  }

  .legacy-panel-main .HelpIcon {
    display: none !important;
  }

    border-bottom: 0 !important;
  }

  .legacy-calc-hero {
    height: auto !important;
    max-height: var(--home-main-hero-max-height-mobile) !important;
    min-height: 0 !important;
    padding: 18px 16px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 22px !important;
  }

  .legacy-calc-hero .menu-glyph {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
    border-radius: 9px !important;
  }

  .legacy-calc-hero .menu-glyph svg {
    width: 18px !important;
    height: 18px !important;
  }

  .legacy-panel-main {
    padding: 12px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    margin-bottom: 8px;
    width: 100%;
    overflow: visible;
    white-space: normal;
    flex-wrap: wrap;
  }

    width: 7.3em;
    min-width: 7.3em;
    flex: 0 0 7.3em;
    padding-right: 0;
    font-size: 0.82rem;
    text-align: right;
    white-space: nowrap;
  }

    min-width: 7.3em;
    font-size: 0.82rem;
  }

    margin: 10px 0 4px;
  }

    width: 100%;
    margin-left: 0;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

    font-size: 0.84rem;
  }

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    white-space: normal;
  }

    grid-column: auto;
    justify-self: stretch;
  }

    min-height: 2em;
    line-height: 1.95em;
    padding-left: 8px;
    padding-right: 22px;
    width: 100%;
    max-width: 100%;
  }

    width: 3.2em;
  }

    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 9px 11px;
  }

    max-width: 100%;
  }

    min-width: 0;
    max-width: 100%;
  }

    width: auto;
    flex: 0 1 auto;
  }

    width: min(100%, 190px);
    max-width: min(100%, 190px);
  }

  /* removed costgoods fit-content and inline-block overrides */

    display: none !important;
  }

    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
  }

    width: min(100%, 430px);
    margin-left: auto;
    margin-right: auto;
  }

    width: var(--legacy-desktop-label-width, 8.5em);
    min-width: var(--legacy-desktop-label-width, 8.5em);
    flex: 0 0 var(--legacy-desktop-label-width, 8.5em);
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    padding-right: 8px;
    justify-self: end;
    text-align: right;
  }

    flex-wrap: wrap;
    align-items: center;
  }

    flex-wrap: nowrap;
  }

    width: var(--legacy-desktop-label-width, 8.5em);
    min-width: var(--legacy-desktop-label-width, 8.5em);
    flex: 0 0 var(--legacy-desktop-label-width, 8.5em);
  }

    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
  }

    display: none !important;
  }

    display: flex !important;
  }

    width: auto;
    font-size: 0.96rem;
  }

    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

    flex: 0 0 auto;
    white-space: nowrap;
  }

    min-height: 2.45em;
    line-height: 2.35em;
    padding-left: 12px;
    padding-right: 26px;
    border-radius: 4px;
  }

    max-width: 7.6em;
  }

    width: 4.6em;
    max-width: 4.6em;
    min-width: 4.6em;
    padding-left: 8px;
    padding-right: 8px;
  }

    max-width: min(100%, 14.4em);
  }

    gap: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
  }

    display: none;
  }

    min-width: 0;
    min-height: 34px;
    padding: 5px 8px;
    font-size: 0.95rem;
    flex: initial;
    border: 1px solid #d7dce5;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
  }

    border-color: #8db7ff;
    box-shadow: inset 0 0 0 1px #8db7ff;
  }

    width: var(--legacy-desktop-label-width, 8.5em);
    min-width: var(--legacy-desktop-label-width, 8.5em);
    flex: 0 0 var(--legacy-desktop-label-width, 8.5em);
  }

    max-width: calc(100% - var(--legacy-desktop-label-width, 8.8em) - 4px);
  }

    width: 4.4em;
    max-width: 4.4em;
    min-width: 4.4em;
    padding-left: 8px;
    padding-right: 8px;
  }

    max-width: min(100%, 14.4em);
  }

    max-width: 9.5em;
  }

    flex: 0 1 12em;
    min-width: 0;
  }

    margin-left: 0 !important;
    margin-top: 0 !important;
    min-width: auto;
    width: auto;
    height: auto;
    padding: 10px 14px !important;
    font-size: 0.94rem !important;
    line-height: 1.1;
    text-indent: 0;
    overflow: visible;
    position: static;
    border-radius: 0;
    background: #1f86ff;
    border-color: #1f86ff;
    color: #fff !important;
    text-transform: uppercase;
    white-space: nowrap;
    flex: 0 0 auto;
  }

    content: none;
  }

    display: block !important;
    margin: 16px 0 12px !important;
  }

    display: block;
    width: calc(100% - 18px);
    margin-left: auto;
    padding: 7px 12px;
    background: #18a7bf;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
  }

    display: none !important;
  }

    font-size: 1rem;
    line-height: 1;
  }

    display: block;
    width: 100%;
  }

    margin-top: 8px;
  }

    min-width: 70px;
    height: 34px;
    padding: 0 18px !important;
    border-radius: 0;
    background: #ff6b73;
    border-color: #ff6b73;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

    width: 18px;
    height: 18px;
    display: inline-flex;
  }

    width: 18px;
    height: 18px;
  }

    width: min(100%, 430px);
    margin-left: auto;
    margin-right: auto;
  }

    width: 100%;
  }

    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
    border-radius: 0;
  }

    width: 140px;
    min-width: 140px;
    max-width: 140px;
    flex: 0 0 140px;
    justify-content: flex-end;
    text-align: right;
    padding: 0;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.2;
    color: #111827;
    background: transparent;
    box-shadow: none;
    border: 0;
    border-radius: 0;
  }

    content: "" !important;
  }

    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }

    display: block;
    margin: 14px 0 10px;
    padding: 0;
    text-align: center;
  }

    display: block;
    width: min(100%, 282px);
    margin: 0 auto;
    padding: 7px 14px;
    border-radius: 0;
    background: #20a8bf;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

    width: 72px;
    min-width: 72px;
    max-width: 72px;
  }

    min-width: 0;
    white-space: nowrap;
    color: #334155;
  }

    max-width: min(100%, 205px);
  }

    max-width: 160px;
  }

  .legacy-panel-main #RisoColor {
    min-width: 0;
    gap: 4px;
  }

  .legacy-panel-main #plus {
    font-size: 1.2rem;
  }

  .legacy-panel-main #licoRizo,
  .legacy-panel-main #oborotRizo {
    gap: 3px;
  }

  .legacy-panel-main #RisoColor div.checkB {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .legacy-panel-main #RisoColor input[type="checkbox"] {
    width: 11px;
    min-width: 11px;
    height: 11px;
    min-height: 11px;
    flex-basis: 11px;
  }

    width: 10ch;
    max-width: 10ch;
  }

    width: 100%;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.25;
  }

    min-width: max(240px, 100%);
    width: max-content;
    max-width: min(88vw, 360px);
    overflow-x: visible;
  }

    width: auto;
    max-width: none;
    min-width: 100%;
    word-break: break-word;
  }

    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

    padding-top: 8px;
    padding-bottom: 8px;
  }

  .legacy-panel-main .legacy-material-row {
    flex-wrap: nowrap !important;
  }

    flex: 0 1 150px;
    width: 150px;
    max-width: 150px;
  }

  /* removed - conflicted with costgoods mobile styles */

    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px 10px;
  }

    width: auto;
    min-width: 0;
    flex: initial;
    padding-right: 0;
    text-align: right;
    white-space: normal;
  }

    width: auto;
    max-width: 100%;
    min-width: 0;
  }

    width: 100%;
    min-width: 0;
  }

    justify-self: start;
  }

    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px 10px;
  }

    justify-content: flex-end;
  }

    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px 10px;
    width: 100%;
    margin-bottom: 10px;
  }

    width: var(--legacy-desktop-label-width, 8.8em);
    min-width: var(--legacy-desktop-label-width, 8.8em);
    flex: 0 0 var(--legacy-desktop-label-width, 8.8em);
    padding-right: 0;
    text-align: right;
    white-space: normal;
    font-size: 0.84rem;
    line-height: 1.25;
  }

    width: auto;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
  }

    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px 10px;
    width: 100%;
    flex: 1 0 100%;
    min-width: 0;
  }

    min-width: 7.6em;
  }

    min-width: 4.6em;
  }

    justify-content: flex-start;
    margin-left: 0;
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
  }

    width: auto;
    min-width: auto;
    flex: 0 0 auto;
    text-align: left;
    justify-content: flex-start;
    white-space: nowrap;
  }

    min-width: 0;
    max-width: 100%;
  }

    min-width: 3.2em;
  }

    min-width: 2.2em;
  }
}

.legacy-calc-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}

.legacy-calc-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(9, 27, 42, 0.26);
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 700;
}

.legacy-calc-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.legacy-calc-overview-card {
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid rgba(18, 65, 101, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 44px rgba(18, 36, 56, 0.08);
}

.legacy-calc-overview-kicker {
  margin-bottom: 10px;
  color: #0b5f93;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legacy-calc-overview-card h2 {
  margin: 0 0 10px;
  color: #14283b;
  font-size: clamp(1.3rem, 1rem + 0.8vw, 2rem);
  line-height: 1.08;
  font-weight: 900;
}

.legacy-calc-overview-card p {
  margin: 0;
  color: #405466;
  font-size: 15px;
  line-height: 1.65;
}

.legacy-calc-overview-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.legacy-calc-overview-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 96, 155, 0.08), rgba(14, 96, 155, 0.14));
  color: #0f5b95;
  font-size: 14px;
  font-weight: 800;
}

.legacy-calc-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.legacy-calc-facts div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(246, 249, 252, 0.98), rgba(233, 240, 247, 0.98));
}

.legacy-calc-facts dt {
  margin: 0;
  color: #65788a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-calc-facts dd {
  margin: 0;
  color: #16283a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.legacy-panel-head--calc {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.legacy-panel-stat-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legacy-pricing-meta {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.legacy-pricing-meta span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(14, 96, 155, 0.08);
  color: #244258;
  font-size: 14px;
  font-weight: 700;
}

.legacy-pricing-meta span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0f7ac4;
  box-shadow: 0 0 0 5px rgba(15, 122, 196, 0.14);
  flex: 0 0 8px;
}

@media (max-width: 1100px) {
  .legacy-calc-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .legacy-calc-hero {
    height: auto;
    max-height: var(--home-main-hero-max-height-mobile);
    min-height: 0;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .legacy-calc-hero h1 {
    gap: 12px;
    font-size: 20px;
    line-height: 1.14;
  }

  .legacy-calc-hero .menu-glyph {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .legacy-calc-hero .menu-glyph svg {
    width: 32px;
    height: 32px;
  }

  .legacy-calc-overview-card {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .legacy-panel-head--calc {
    margin-bottom: 14px;
  }
}

@media (max-width: 640px) {
  .legacy-calc-hero {
    max-height: var(--home-main-hero-max-height-mobile);
    min-height: 0;
    padding: 10px 12px !important;
    border-radius: 18px !important;
  }

  .legacy-calc-hero-meta,
  .legacy-calc-overview-points,
  .legacy-panel-stat-wrap {
    justify-content: flex-start;
  }

  .legacy-calc-hero>.stack {
    align-items: center;
    justify-content: center;
  }

  .legacy-calc-hero h1 {
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 10px;
    text-align: center;
    font-size: 20px;
    line-height: 1.14;
  }

  .legacy-calc-hero .menu-glyph {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .legacy-calc-hero .menu-glyph svg {
    width: 26px;
    height: 26px;
  }

  .legacy-calc-hero-meta span,
  .legacy-calc-overview-points span {
    min-height: 34px;
  }
}

@media (max-width: 640px) {
    padding: 10px 8px 14px;
  }

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 12px !important;
    padding: 14px 14px 12px !important;
    border: 1px solid rgba(15, 76, 129, 0.08);
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 252, 0.94)),
      radial-gradient(circle at top left, rgba(15, 76, 129, 0.08), transparent 38%);
    box-shadow: 0 14px 32px rgba(18, 35, 53, 0.07);
  }

    width: auto !important;
    min-width: 0 !important;
    flex: initial !important;
    padding: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4d6478;
  }

    content: "" !important;
  }

    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-self: stretch !important;
  }

    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 10px !important;
    width: 100% !important;
    margin-left: 0 !important;
    flex: initial !important;
  }

    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(15, 76, 129, 0.04);
  }

  html[data-calc-layout="preset-3"] .legacy-indexn-body .legacy-panel-main {
    padding: 10px 8px 14px;
  }

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 12px !important;
    padding: 12px 12px 14px !important;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.96));
    box-shadow:
      0 14px 28px rgba(18, 35, 53, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: initial !important;
    padding: 7px 14px !important;
    border-radius: 999px;
    background: linear-gradient(180deg, #eef2f6 0%, #e6edf4 100%) !important;
    text-align: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #24435d;
  }

    background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-card)) !important;
    color: var(--theme-accent) !important;
  }

    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-self: stretch !important;
  }

    margin-left: auto !important;
    margin-right: auto !important;
  }

    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 10px !important;
    width: 100% !important;
    margin-left: 0 !important;
    flex: initial !important;
    grid-column: 1 / -1 !important;
    justify-content: center !important;
  }

    justify-content: center !important;
  }

    justify-content: flex-start !important;
  }

    margin-left: auto !important;
    margin-right: auto !important;
  }

    grid-column: 1 / -1 !important;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 76, 129, 0.04), rgba(15, 76, 129, 0.02));
  }

    padding: 8px 6px 16px;
  }

    width: min(100%, 360px);
    margin-left: auto;
    margin-right: auto;
  }

    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

    display: grid !important;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 6px !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 12px 10px 11px !important;
    border-bottom: 1px solid rgba(15, 76, 129, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
  }

    width: auto !important;
    min-width: 0 !important;
    flex: initial !important;
    padding: 0 !important;
    text-align: right !important;
    justify-content: flex-end !important;
    white-space: normal !important;
    font-size: 0.83rem !important;
    line-height: 1.25 !important;
    color: #1d3246;
  }

    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-self: start !important;
  }

    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px 10px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

    grid-column: 2;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 10px !important;
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    text-align: left !important;
    justify-content: flex-start !important;
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    color: #44596d;
  }

    content: ":" !important;
  }

    width: min(100%, 360px);
    margin-left: auto;
    margin-right: auto;
  }

    grid-template-columns: 104px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    row-gap: 8px !important;
    padding: 11px 8px 10px !important;
    margin-bottom: 10px !important;
  }

    font-size: 0.76rem !important;
    line-height: 1.18 !important;
  }

    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px 8px !important;
    width: auto !important;
    max-width: 100% !important;
  }

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 6px !important;
    justify-content: start;
  }

  /* ─── Пресет 5: полная вертикаль, название по центру, элементы строкой ниже ─── */

    padding: 10px 10px 16px;
  }

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    padding: 0 0 14px !important;
    border-radius: 22px !important;
    border-top: 2.5px solid rgba(15, 118, 196, 0.50) !important;
    background: linear-gradient(175deg, #f5f9ff 0%, #eaf1fb 100%) !important;
    box-shadow:
      0 8px 28px rgba(10, 40, 80, 0.10),
      0 1px 0 rgba(255, 255, 255, 0.90) inset !important;
    overflow: hidden !important;
  }

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 0 8px !important;
    padding: 10px 12px 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    line-height: 1.25 !important;
    color: #0c3558 !important;
  }

    display: none !important;
  }

    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 24px) !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
    justify-self: stretch !important;
  }

    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px 10px !important;
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 24px) !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
    flex: initial !important;
  }

    margin-left: auto !important;
    margin-right: auto !important;
  }

    justify-content: center !important;
  }

    margin-left: auto !important;
    margin-right: auto !important;
  }

    padding: 10px 12px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(15, 76, 129, 0.05), rgba(15, 76, 129, 0.02)) !important;
  }

    text-align: center !important;
  }

  /* legacy-mobile-inline-row в пресете-5: все li с этим классом — 2 этажа, независимо от родителя */
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    overflow-x: visible !important;
  }

    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 12px 0 !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: normal !important;
  }

    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 24px) !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
    flex: 0 0 auto !important;
    white-space: normal !important;
    justify-self: stretch !important;
  }

  /* ─── конец пресета 5 ─── */

    display: none !important;
  }

    display: none !important;
  }

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 6px 8px !important;
    width: 100% !important;
    overflow-x: visible !important;
  }

    width: 100% !important;
    min-width: 100% !important;
    flex: 1 0 100% !important;
    padding: 0 !important;
    white-space: nowrap !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

    width: auto !important;
    min-width: auto !important;
    flex: none !important;
  }

    min-width: 0 !important;
    width: auto !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    justify-self: auto !important;
  }

    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    white-space: nowrap !important;
    width: auto !important;
    max-width: max-content !important;
  }

    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

    min-width: 2.8em !important;
    max-width: 3.2em !important;
  }

    text-align: center !important;
  }

    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

    margin-left: 0 !important;
    font-size: 12px !important;
  }









    width: 4.6em !important;
    min-width: 4.6em !important;
  }

    min-width: 4.5em !important;
    max-width: 4.5em !important;
  }

    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }




}

  background: color-mix(in srgb, var(--theme-card-strong) 32%, transparent) !important;
  background-color: color-mix(in srgb, var(--theme-card-strong) 32%, transparent) !important;
  color: var(--theme-text) !important;
}

  background: color-mix(in srgb, var(--theme-card-strong) 96%, #0d1622 4%) !important;
  background-color: color-mix(in srgb, var(--theme-card-strong) 96%, #0d1622 4%) !important;
  border-color: color-mix(in srgb, var(--theme-border) 94%, transparent) !important;
}

  background: color-mix(in srgb, var(--theme-card-strong) 96%, #0d1622 4%) !important;
  background-color: color-mix(in srgb, var(--theme-card-strong) 96%, #0d1622 4%) !important;
  color: var(--theme-text) !important;
}

  background: color-mix(in srgb, var(--theme-card-strong) 96%, #0d1622 4%) !important;
  background-color: color-mix(in srgb, var(--theme-card-strong) 96%, #0d1622 4%) !important;
  color: color-mix(in srgb, var(--theme-text) 42%, transparent) !important;
}

  color: #ffffff !important;
}

  color: #ffffff !important;
}

  color: #ffd84d !important;
}

/* ── Dark theme: форма калькулятора ── */
  background: var(--theme-card-strong) !important;
  background-color: var(--theme-card-strong) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}

  color: var(--theme-text) !important;
  background: transparent !important;
}

  background: color-mix(in srgb, var(--theme-card) 80%, transparent) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}

  background: color-mix(in srgb, var(--theme-accent) 14%, var(--theme-card)) !important;
  border-color: color-mix(in srgb, var(--theme-accent) 40%, transparent) !important;
  color: var(--theme-accent) !important;
}

/* Tom Select dark theme */
  background: var(--theme-card-strong) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}

  border-color: color-mix(in srgb, var(--theme-accent) 38%, transparent) !important;
}

  border-color: color-mix(in srgb, var(--theme-accent) 60%, transparent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent) 14%, transparent) !important;
}

  border-top-color: var(--theme-muted) !important;
}

  background: var(--theme-card-strong) !important;
  border-color: var(--theme-border) !important;
  box-shadow: 0 8px 24px var(--theme-shadow) !important;
}

  color: var(--theme-text) !important;
  background: transparent !important;
}

  background: color-mix(in srgb, var(--theme-accent) 12%, transparent) !important;
  color: var(--theme-accent) !important;
}

  background: color-mix(in srgb, var(--theme-accent) 18%, transparent) !important;
  color: var(--theme-accent) !important;
}

@media (min-width: 641px) {



    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    align-self: center !important;
    grid-column: auto !important;
    justify-self: auto !important;
  }

    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px 10px !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    margin-left: 0 !important;
    grid-column: auto !important;
    justify-self: auto !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

    grid-template-columns: none !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    margin-left: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    grid-column: auto !important;
  }

    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

    content: ": " !important;
  }
}

@media (min-width: 641px) {
    width: min(100%, 980px);
    margin-left: 0;
    margin-right: auto;
  }

    width: 100%;
    max-width: 100%;
  }

    width: min(100%, calc(100% - 84px)) !important;
    margin-right: auto !important;
  }

    --legacy-preset-3-step-offset: 0px;
    margin-left: 0 !important;
  }

    --legacy-preset-3-step-offset: 28px;
    margin-left: 28px !important;
  }

    --legacy-preset-3-step-offset: 56px;
    margin-left: 56px !important;
  }

    --legacy-preset-3-step-offset: 84px;
    margin-left: 84px !important;
  }

    grid-template-columns: minmax(148px, var(--legacy-desktop-inline-label-text-width, 10.5em)) minmax(0, 1fr) !important;
  }

    grid-column: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-self: start !important;
  }

    flex: 0 0 auto !important;
    margin: 0 !important;
  }

    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    max-width: 100% !important;
    white-space: nowrap !important;
  }

    flex-shrink: 0 !important;
  }

    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    align-self: start !important;
    grid-column: 2 !important;
    justify-self: stretch !important;
    white-space: normal !important;
  }

    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
  }

    flex: 0 0 auto !important;
    margin: 0 !important;
  }

    width: 100% !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(15, 76, 129, 0.04), rgba(15, 76, 129, 0.02)) !important;
    box-shadow: none !important;
    grid-column: 2 !important;
  }

    margin: 0 !important;
    padding: 8px 10px !important;
    background: rgba(15, 76, 129, 0.06) !important;
    border-radius: 14px !important;
    white-space: normal !important;
    box-shadow: none !important;
  }

    content: "" !important;
  }
}

  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  width: auto;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  white-space: normal;
}

  flex: 0 0 auto;
}

@media (min-width: 641px) {
    position: relative !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px 10px !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    grid-column: auto !important;
    justify-self: auto !important;
  }
}

  display: none !important;
}

  background:
    linear-gradient(180deg, rgba(39, 61, 87, 0.94), rgba(35, 56, 80, 0.9)) !important;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.16),
    inset 4px 0 0 rgba(93, 165, 227, 0.2) !important;
}

    background: linear-gradient(180deg, rgb(0 8 18 / 94%), rgb(42 87 138 / 90%)) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16),
    inset 4px 0 0 rgba(93, 165, 227, 0.2) !important;
    background: linear-gradient(273deg, #123b64 0%, #031930 100%) !important;
}















  background: rgba(255, 255, 255, 0.04) !important;
  color: #dbe7f3 !important;
}

@media (min-width: 641px) {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

    --legacy-preset-3-step-offset: 0px;
    margin-left: 0 !important;
  }
}

@media (min-width: 641px) {
  .legacy-panel.legacy-panel-main {
    padding: 1em !important;
  }
}

@media (min-width: 641px) {
    display: block !important;
    grid-template-columns: none !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
  }

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0 14px !important;
    width: 100% !important;
  }

    width: var(--legacy-desktop-label-width, 12.75em) !important;
    min-width: var(--legacy-desktop-label-width, 12.75em) !important;
    max-width: var(--legacy-desktop-label-width, 12.75em) !important;
    flex: 0 0 var(--legacy-desktop-label-width, 12.75em) !important;
    margin: 0 !important;
    align-self: center !important;
  }

    margin: 0 !important;
    width: auto !important;
    max-width: max-content !important;
  }

  }

    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 8px !important;
    margin: 0 !important;
    min-width: max-content !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
  }

    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    margin: 0 8px 0 0 !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
  }

    white-space: nowrap !important;
  }

  /* Пресет-5: тёмная тема — убираем белую заливку карточек */
    background: rgba(255, 255, 255, 0.05) !important;
    border-top-color: rgba(100, 180, 255, 0.22) !important;
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.30),
      0 1px 0 rgba(255, 255, 255, 0.06) inset !important;
  }

    color: rgba(180, 215, 255, 0.80) !important;
  }
}

/* ── Блок переключения машин ── */
.machines-switch-wrap {
  margin-top: 12px;
  border: 1px solid var(--theme-border, rgba(0,0,0,.12));
  border-radius: 14px;
  overflow: hidden;
  background: var(--theme-card, rgba(255,255,255,.6));
}

.machines-switch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--theme-text, inherit);
  font: inherit;
  font-size: 0.83em;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.machines-switch-header:hover {
  background: color-mix(in srgb, var(--theme-border, rgba(0,0,0,.08)) 60%, transparent);
}

.machines-switch-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.machines-switch-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--theme-muted, #6b7a8d);
}

.machines-switch-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--theme-muted, #6b7a8d);
  transition: transform 0.2s ease;
}

.machines-switch-header[aria-expanded="true"] .machines-switch-chevron {
  transform: rotate(180deg);
}

.machines-switch-body {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--theme-border, rgba(0,0,0,.08));
}

.machines-switch-body.is-open {
  display: flex;
}

.mashinesSwitchBlock {
  display: contents;
}

.machine-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid var(--theme-border, rgba(0,0,0,.15));
  background: transparent;
  color: var(--theme-text, inherit);
  font: inherit;
  font-size: 0.8em;
  cursor: pointer;
  transition: border-color 0.15s, opacity 0.15s, color 0.15s, background 0.15s;
}

.machine-toggle-btn.machine-toggle-on {
  border-color: var(--machine-on-color, #2e7d32);
  color: var(--theme-text, inherit);
}

.machine-toggle-btn.machine-toggle-on svg,
.machine-toggle-btn.machine-toggle-on i {
  color: var(--machine-on-color, #2e7d32);
}

.machine-toggle-btn.machine-toggle-off {
  opacity: 0.5;
  border-color: var(--machine-off-color, #c62828);
  color: var(--theme-muted, #6b7a8d);
}

.machine-toggle-btn.machine-toggle-off svg,
.machine-toggle-btn.machine-toggle-off i {
  color: var(--machine-off-color, #c62828);
}

.machine-toggle-btn:hover {
  opacity: 1;
  border-color: var(--theme-accent, #1a73b8);
  background: color-mix(in srgb, var(--theme-border, rgba(0,0,0,.08)) 50%, transparent);
  color: var(--theme-text, inherit);
}

/* ── ABData: детализация расчёта ── */
#ABData.hidden {
  display: none !important;
}

.abdata-show-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #1a73e8;
  background: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  margin-left: 6px;
  color: #1a73e8;
  vertical-align: middle;
}

.abdata-show-btn:hover {
  background: rgba(26, 115, 232, 0.1);
}

/* ── Цветность в одну строку ── */
.legacy-color-selects-wrap {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  grid-column: 2 !important;
}

/* ── Preset-3 (calc-layout): li как карточки ── */
  /*
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  */

  display: flex;

  gap: 10px !important;
  width: 100% !important;
  margin-bottom: 12px !important;
  padding: 12px 12px 14px !important;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.96));
  box-shadow: 0 14px 28px rgba(18, 35, 53, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}



  background: color-mix(in srgb, var(--theme-card) 90%, var(--theme-accent) 10%) !important;
  box-shadow: 0 4px 14px var(--theme-shadow) !important;
  color: var(--theme-text) !important;
}

/* ── Dark theme: убрать hover-заливку на li ── */
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  background: transparent !important;
}

  background: transparent !important;
}

/* ── Desktop без пресета: все li флекс, label фиксированная ширина ── */
@media (min-width: 641px) {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px 12px !important;
  }

    min-width: 13em;
    max-width: 13em;
    flex: 0 0 13em;
  }
}

  padding-top: 2px;
  margin-top: 6px;
  display: flex;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
}

@media (min-width: 641px) {
    padding: 2px 2px 2px 4px;
    margin-top: 2px;
    color: #000;
    width: 11em;
    font-weight: lighter;
    text-align: right;
  }
}

/* ─── TomSelect Styles (Light Theme) ─── */
  position: relative;
  display: inline-block;
  width: 100%;
}

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background-color: #ffffff !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 6px 8px !important;
  font-size: 0.9rem !important;
  min-height: 38px;
  cursor: pointer;
  transition: all 0.2s ease;
}

  border-color: #bbb !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

  border-color: #0056b3 !important;
  box-shadow: 0 0 0 2px rgba(0,86,179,0.25) !important;
}

  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #333 !important;
  font-size: inherit;
}

/* === Mobile calc form overflow fix === */
@media (max-width: 768px) {
  .legacy-indexn-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .legacy-panel.legacy-panel-main {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 12px 16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .legacy-panel-main .form-legacy,
  .legacy-panel-main .legacy-form-list,
  .legacy-panel-main #DopsDataOut {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .legacy-panel-main .legacy-form-list li {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .legacy-panel-main select,
  .legacy-panel-main input {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .legacy-panel-main .legacy-form-list li,
  .legacy-panel-main #DopsDataOut li {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .legacy-panel-main select {
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .legacy-panel-main #costgoods {
    max-width: 11em !important;
    min-width: 0 !important;
    width: auto !important;
    display: inline-block !important;
    -webkit-appearance: menulist !important;
    appearance: menulist !important;
    text-overflow: ellipsis !important;
  }
}

  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffffff !important;
  border: 1px solid #ddd !important;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}

  padding: 8px 12px;
  color: #333 !important;
  background: transparent !important;
  cursor: pointer;
  transition: background 0.15s ease;
}

  background-color: #f0f0f0 !important;
  color: #000 !important;
}

  background-color: #e0e8ff !important;
  color: #0056b3 !important;
  font-weight: 500;
}

/* ─── TomSelect Styles (Dark Theme) ─── */
  background-color: #3a3a3a !important;
  border-color: #555 !important;
  color: #e0e0e0 !important;
  background-image: none !important;
  outline: none !important;
}

  background: transparent !important;
}

  background: transparent !important;
}

  border-color: #666 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

  border-color: #0056b3 !important;
  box-shadow: 0 0 0 2px rgba(0,86,179,0.25) !important;
}

  color: #e0e0e0 !important;
}

  background-color: #2a2a2a !important;
  border-color: #555 !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5) !important;
  background-image: none !important;
}

  background: transparent !important;
}

  color: #e0e0e0 !important;
}

  background-color: #333 !important;
  color: #fff !important;
}

  background-color: #0056b3 !important;
  color: #7cc2ff !important;
  font-weight: 500;
}

/* Show _child elements in DopsDataOut */
  display: inline-flex !important;
  visibility: visible !important;
}

/* Force show all child elements in DopsDataOut */
  display: inline-flex !important;
  visibility: visible !important;
  position: static !important;
  opacity: 1 !important;
}
