.opening-calculator-section {
  scroll-margin-top: 120px;
}

.opening-calc-shell {
  background: linear-gradient(135deg, #221913 0%, #3f3229 100%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 60px rgba(23, 16, 10, 0.22);
}

.opening-calc-stage {
  position: relative;
}

.opening-calc-mascot {
  display: none;
}

.opening-calc-copy {
  padding: 40px;
  color: #fff;
}

.opening-calc-copy p {
  color: rgba(255,255,255,0.76);
  line-height: 1.8;
}

.opening-calculator-section--home .opening-calc-shell {
  background: linear-gradient(135deg, #2a1f18 0%, #4a382c 100%);
}

.opening-calculator-section--home .opening-calc-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.opening-calculator-section--home .opening-calc-copy h2 {
  margin-bottom: 0;
}

.opening-calculator-section--home .opening-calc-brands {
  margin-bottom: 0;
}

.opening-calculator-section--page .opening-calc-copy {
  padding-bottom: 28px;
}

.opening-calculator-section--page .opening-calc-image-card {
  display: none;
}

.opening-calculator-section--page .opening-calc-stage {
  padding-top: 74px;
  overflow: visible;
}

.opening-calculator-section--page .opening-calc-mascot {
  position: absolute;
  top: -200px;
  left: 34%;
  width: 350px;
  display: block;
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
}

.opening-calculator-section--page .opening-calc-mascot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(28, 19, 12, 0.16));
}

.opening-calc-brands {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.opening-calc-brands span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.opening-calc-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
}

.opening-calc-image-card {
  margin-top: 22px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  min-height: 220px;
}

.opening-calc-image-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.opening-calc-form {
  height: 100%;
  background: #f6efe6;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.opening-calc-panel {
  width: 100%;
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid #eadfd2;
  box-shadow: 0 18px 50px rgba(41, 28, 18, 0.1);
}

.opening-calc-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6e5a4a;
  margin-bottom: 8px;
}

.opening-calc-field input {
  width: 100%;
  border: 1px solid #decfbe;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  background: #fffdf9;
}

.opening-calc-field small {
  display: block;
  color: #8b7768;
  margin-top: 6px;
}

.opening-calc-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.opening-calc-results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.opening-calc-result {
  border: 1px solid #eadfd2;
  border-radius: 18px;
  padding: 16px;
  background: #fffaf4;
}

.opening-calc-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.opening-calc-result-title {
  font-size: 1rem;
  font-weight: 800;
  color: #2b211b;
  margin: 0;
}

.opening-calc-result-sub {
  font-size: 0.82rem;
  color: #7f6d5f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.opening-calc-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #efe3d5;
  color: #7a5f46;
  font-size: 0.75rem;
  font-weight: 700;
}

.opening-calc-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.opening-calc-meta div {
  background: #fff;
  border: 1px solid #eadfd2;
  border-radius: 14px;
  padding: 10px 12px;
}

.opening-calc-meta strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #8c7665;
  margin-bottom: 4px;
}

.opening-calc-meta span {
  color: #2f241d;
  font-weight: 700;
}

.opening-calc-empty,
.opening-calc-error {
  margin-top: 18px;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 0.92rem;
}

.opening-calc-empty {
  background: #f2f0ec;
  color: #6f655d;
}

.opening-calc-error {
  background: #fff0eb;
  color: #b04f2c;
  border: 1px solid #ffd6c8;
}

.opening-calculator-page {
  padding: 48px 0 88px;
  background:
    radial-gradient(circle at top right, rgba(240, 130, 40, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f2ea 0%, #f3ece3 100%);
}

.opening-calculator-hero {
  margin-bottom: 34px;
}

.opening-calculator-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 26px;
  align-items: stretch;
  padding: 28px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(222, 207, 190, 0.9);
  box-shadow: 0 24px 60px rgba(39, 26, 16, 0.08);
}

.opening-calculator-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.opening-calculator-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #17100b;
}

.opening-calculator-hero-copy p {
  margin: 0;
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.8;
  color: #66564a;
}

.opening-calculator-hero-media {
  min-height: 340px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7efe4 0%, #eadbc8 100%);
  border: 1px solid rgba(222, 207, 190, 0.9);
}

.opening-calculator-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 991px) {
  .opening-calc-copy {
    padding: 30px;
  }

  .opening-calc-form {
    padding: 20px;
    justify-content: flex-start;
  }

  .opening-calculator-hero-card {
    grid-template-columns: 1fr;
  }

  .opening-calculator-hero-media {
    min-height: 260px;
  }

  .opening-calculator-section--page .opening-calc-stage {
    padding-top: 54px;
  }

  .opening-calculator-section--page .opening-calc-mascot {
    top: -200px;
    left: 70%;
    width: 350px;
  }

  .opening-calc-image-card,
  .opening-calc-image-card img {
    min-height: 200px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .opening-calculator-section--page .opening-calc-mascot {
    left: 31%;
    top: -88px;
    width: 176px;
  }
}

