/* ОРЭМ: рассчитать экономию и затраты — energo-market.com */

.orem-page {
  --orem-s: 1.3;
}

.orem-page .tools-hero__title {
  font-size: calc(3.2rem * var(--orem-s));
}

.orem-page .tools-hero {
  border-bottom: 1px solid rgba(23, 138, 228, 0.12);
}

.orem-hero .tools-hero__subtitle {
  margin: 0 0 1rem;
  font-size: calc(1.44rem * var(--orem-s));
  font-weight: 600;
  color: var(--blue);
}

.orem-page .tools-hero__lead {
  margin: 0;
  max-width: none;
  font-size: calc(2.16rem * var(--orem-s));
  line-height: 1.55;
  color: #4a5c68;
}

.orem-hero__cta {
  display: inline-block;
  margin: 2rem 0 0;
}

.orem-hub {
  padding-bottom: 0;
}

/* —— Калькулятор-мастер —— */

.orem-calc-wrap {
  margin: 1.5rem 0 0;
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, #dceeff 0%, #eef7ff 38%, #f8fbff 72%, #fff 100%);
  border-top: 1px solid rgba(23, 138, 228, 0.35);
  border-bottom: 1px solid rgba(23, 138, 228, 0.28);
  box-shadow:
    inset 0 6px 28px rgba(23, 138, 228, 0.07),
    0 8px 32px rgba(10, 37, 64, 0.04);
}

@media (min-width: 768px) {
  .orem-calc-wrap {
    margin: 2rem 1rem 0;
    border-radius: 24px;
    border: 1px solid rgba(23, 138, 228, 0.22);
    border-top: 3px solid var(--blue);
  }
}

.orem-calc-panel {
  position: relative;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 2px solid rgba(23, 138, 228, 0.22);
  border-radius: 20px;
  box-shadow:
    0 18px 52px rgba(10, 37, 64, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.orem-calc-panel .orem-section__title {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(23, 138, 228, 0.14);
}

.orem-calc-panel .orem-section__lead {
  margin-bottom: 2rem;
  padding: 1rem 1.15rem;
  max-width: none;
  background: #f8fafc;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
}

@media (min-width: 768px) {
  .orem-calc-panel {
    padding: 2.5rem 2.25rem;
  }
}

.orem-section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(calc(1.85rem * var(--orem-s)), calc(2.4vw * var(--orem-s)), calc(2.35rem * var(--orem-s)));
  font-weight: 800;
  color: #094879;
}

.orem-section__lead {
  font-size: calc(1.38rem * var(--orem-s));
  line-height: 1.65;
  color: #4a5c68;
}

.orem-progress {
  margin-bottom: 2rem;
}

.orem-progress__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: calc(1rem * var(--orem-s));
  font-weight: 700;
  color: #64748b;
}

.orem-progress__track {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.orem-progress__bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--blue), #0ea0ff);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.orem-step {
  animation-duration: 0.35s;
  animation-fill-mode: both;
}

.orem-step.orem-step-enter {
  animation-name: oremFadeIn;
}

@keyframes oremFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.orem-step__title {
  margin: 0 0 0.5rem;
  font-size: calc(1.35rem * var(--orem-s));
  font-weight: 800;
  color: #094879;
}

.orem-step__hint {
  margin: 0 0 1.25rem;
  max-width: none;
  font-size: calc(1.26rem * var(--orem-s));
  line-height: 1.55;
  color: #64748b;
}

.orem-field {
  margin-bottom: 1rem;
}

.orem-field__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: calc(1.05rem * var(--orem-s));
  font-weight: 700;
  color: #094879;
}

.orem-field__control {
  width: 100%;
  max-width: 24rem;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: calc(1.15rem * var(--orem-s));
  color: #0a2540;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.orem-field__control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 138, 228, 0.2);
}

.orem-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.orem-toggle__option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  font-size: calc(1.15rem * var(--orem-s));
  transition: border-color 0.2s, background 0.2s;
}

.orem-toggle__option:hover {
  border-color: var(--blue);
  background: #eef7ff;
}

.orem-toggle__option:has(input:checked) {
  border-color: var(--blue);
  background: #eef7ff;
  box-shadow: 0 0 0 1px rgba(23, 138, 228, 0.22);
}

.orem-toggle__option input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--blue);
}

.orem-alert {
  margin: 0 0 1rem;
  padding: 1.15rem 1.25rem;
  font-size: calc(1.24rem * var(--orem-s));
  line-height: 1.6;
  border-radius: 12px;
}

.orem-alert--warn {
  color: #78350f;
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-left: 6px solid #d97706;
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.12);
}

.orem-alert--info {
  color: #094879;
  background: #eef7ff;
  border: 1px solid rgba(23, 138, 228, 0.25);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
}

.orem-options {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.orem-option {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.orem-option:hover {
  border-color: var(--blue);
  background: #eef7ff;
}

.orem-option:has(input:checked) {
  border-color: var(--blue);
  background: #eef7ff;
  box-shadow: 0 0 0 1px rgba(23, 138, 228, 0.22);
}

.orem-option input {
  margin-top: 0.35rem;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--blue);
}

.orem-option__text {
  font-size: calc(1.24rem * var(--orem-s));
  line-height: 1.55;
  color: #0a2540;
}

.orem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.orem-calc-wrap .orem-actions .ui-btn {
  min-width: 20rem;
  min-height: 62px;
  padding: 1.2rem 3.5rem;
  font-size: calc(1.05rem * var(--orem-s));
  justify-content: center;
}

.orem-actions .ui-btn--outline {
  background: #fff;
  color: #094879;
  border: 1px solid #cbd5e1;
}

.orem-actions .ui-btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.orem-result {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(145deg, #ecfdf5 0%, #fff 100%);
  border: 2px solid #86efac;
  border-radius: 16px;
}

.orem-result__headline {
  margin: 0 0 1rem;
  font-size: calc(1.5rem * var(--orem-s));
  font-weight: 800;
  color: #15803d;
}

.orem-result__line {
  margin: 0 0 0.75rem;
  max-width: none;
  font-size: calc(1.32rem * var(--orem-s));
  line-height: 1.55;
  color: #0a2540;
}

.orem-result__params {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: calc(1.26rem * var(--orem-s));
  line-height: 1.6;
  color: #4a5c68;
}

.orem-result__params p {
  margin: 0 0 0.5rem;
  font-size: calc(1.26rem * var(--orem-s));
}

.orem-result__params ul {
  margin: 0.5rem 0 0;
  padding-left: 1.35rem;
}

.orem-result__params li {
  margin-bottom: 0.45rem;
}

.orem-map-link {
  font-weight: 700;
  color: var(--blue);
}

.orem-map-link:hover {
  text-decoration: underline;
}

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

@media (max-width: 479px) {
  .orem-calc-wrap .orem-actions .ui-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}
