/* ===== FIZIX CALCULATOR PAGE ===== */

.calculator-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 18%, rgba(98, 247, 255, 0.18), transparent 32%),
    radial-gradient(circle at 15% 72%, rgba(124, 92, 255, 0.18), transparent 30%),
    #05070d;
  color: #fff;
}

.estimate-page {
  padding: 120px 24px 80px;
}

.estimate-hero {
  width: min(1360px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.estimate-left {
  max-width: 580px;
}

.estimate-kicker {
  display: block;
  margin-bottom: 18px;
  color: #62f7ff;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.32em;
}

.estimate-left h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.estimate-subtitle {
  margin-top: 28px;
  color: rgba(255,255,255,0.72);
  font-size: 20px;
  line-height: 1.65;
}

.estimate-benefits {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.estimate-benefit {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}

.estimate-benefit span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #62f7ff, #7c5cff);
  color: #020611;
  font-size: 13px;
  font-weight: 1000;
}

.estimate-benefit p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  font-weight: 700;
}

.estimate-note-card {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(98,247,255,0.22);
  border-radius: 26px;
  background: rgba(255,255,255,0.055);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px);
}

.estimate-note-card strong {
  color: #62f7ff;
  font-size: 18px;
}

.estimate-note-card p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
}

.estimate-panel {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(98,247,255,0.28);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025)),
    rgba(10, 16, 25, 0.82);
  box-shadow:
    0 35px 120px rgba(0,0,0,0.58),
    0 0 80px rgba(98,247,255,0.08);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.estimate-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 80% 0%, rgba(98,247,255,0.18), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(124,92,255,0.14), transparent 35%);
  pointer-events: none;
}

.estimate-panel > * {
  position: relative;
  z-index: 1;
}

.estimate-panel-head span {
  color: #62f7ff;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.28em;
}

.estimate-panel-head h2 {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.estimate-progress {
  margin-top: 28px;
}

.estimate-progress-line {
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.estimate-progress-fill {
  width: 14.2%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #62f7ff, #7c5cff);
  transition: width 0.25s ease;
}

.estimate-progress p {
  margin: 12px 0 0;
  text-align: center;
  color: rgba(255,255,255,0.64);
  font-size: 14px;
  font-weight: 800;
}

.estimate-form {
  margin-top: 34px;
}

.estimate-step {
  display: none;
}

.estimate-step.active {
  display: block;
}

.estimate-step h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 22px;
  line-height: 1.3;
}

.estimate-step h3 span {
  margin-right: 10px;
  color: #62f7ff;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.estimate-option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.84);
  cursor: pointer;
  transition: 0.2s ease;
}

.estimate-option:hover {
  border-color: rgba(98,247,255,0.5);
  background: rgba(98,247,255,0.075);
  transform: translateY(-1px);
}

.estimate-option input {
  width: 19px;
  height: 19px;
  accent-color: #62f7ff;
}

.estimate-option span {
  font-weight: 850;
  line-height: 1.35;
}

.estimate-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.estimate-field.full {
  grid-column: 1 / -1;
}

.estimate-field label {
  display: block;
  margin-bottom: 9px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 900;
}

.estimate-field input,
.estimate-field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
  color: #fff;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.estimate-field input {
  height: 58px;
  padding: 0 18px;
}

.estimate-field textarea {
  min-height: 120px;
  padding: 18px;
  resize: vertical;
}

.estimate-field input::placeholder,
.estimate-field textarea::placeholder {
  color: rgba(255,255,255,0.38);
}

.estimate-result {
  display: none;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(98,247,255,0.25);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 15%, rgba(98,247,255,0.12), transparent 36%),
    rgba(255,255,255,0.055);
}

.estimate-result.active {
  display: block;
}

.estimate-result span {
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  font-weight: 900;
}

.estimate-result strong {
  display: block;
  margin-top: 8px;
  color: #62f7ff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.estimate-result p {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
}

.estimate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.estimate-actions .btn {
  width: 100%;
}

.estimate-actions .hidden {
  display: none !important;
}

.estimate-success {
  display: none;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(98,247,255,0.24);
  border-radius: 16px;
  background: rgba(98,247,255,0.08);
  color: #62f7ff;
  font-weight: 900;
  text-align: center;
}

.estimate-success.active {
  display: block;
}

@media (max-width: 1050px) {
  .estimate-hero {
    grid-template-columns: 1fr;
  }

  .estimate-left {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .estimate-page {
    padding: 100px 16px 60px;
  }

  .estimate-panel {
    padding: 22px;
    border-radius: 26px;
  }

  .estimate-contact-grid {
    grid-template-columns: 1fr;
  }

  .estimate-actions {
    grid-template-columns: 1fr;
  }

  .estimate-left h1 {
    font-size: 46px;
  }
}
/* ===== FINAL CALCULATOR FIX ===== */

.calculator-page .site-header {
  width: min(1220px, calc(100% - 48px));
  height: 72px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.calculator-page .logo {
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 20px;
  font-weight: 1000;
  text-decoration: none;
}

.calculator-page .site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1;
}

.calculator-page .site-nav a {
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.calculator-page .site-nav a:hover {
  color: #62f7ff;
}

.calculator-page .header-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.estimate-page {
  padding-top: 135px;
}

.estimate-hero {
  grid-template-columns: 0.78fr 1.22fr;
  gap: 44px;
  align-items: center;
}

.estimate-left {
  max-width: 520px;
}

.estimate-left h1 {
  max-width: 560px;
  font-size: clamp(46px, 4.9vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.estimate-subtitle {
  max-width: 500px;
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.55;
}

.estimate-benefits.compact {
  margin-top: 28px;
  gap: 13px;
}

.estimate-benefits.compact .estimate-benefit {
  grid-template-columns: 46px 1fr;
  gap: 14px;
}

.estimate-benefits.compact .estimate-benefit span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.estimate-benefits.compact .estimate-benefit p {
  font-size: 15px;
  line-height: 1.42;
}

.estimate-note-card {
  display: none !important;
}

.estimate-panel {
  padding: 30px;
  max-width: 720px;
  justify-self: end;
}

.estimate-panel-head h2 {
  font-size: clamp(30px, 3.2vw, 44px);
}

.estimate-form {
  margin-top: 28px;
}

.estimate-step h3 {
  margin-bottom: 14px;
  font-size: 21px;
}

.estimate-option {
  min-height: 54px;
  margin-bottom: 10px;
  padding: 13px 16px;
}

.estimate-final-text {
  margin: -4px 0 18px;
  max-width: 590px;
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.45;
}

.estimate-contact-grid {
  gap: 12px;
}

.estimate-field label {
  margin-bottom: 7px;
  font-size: 12px;
}

.estimate-field input {
  height: 54px;
}

.estimate-field textarea {
  min-height: 105px;
}

.estimate-actions {
  margin-top: 22px;
}

.estimate-actions .btn {
  min-height: 56px;
}
/* ===== CALCULATOR LAYOUT FINAL FIX ===== */

.calculator-page .site-header {
  width: min(1260px, calc(100% - 56px)) !important;
  min-height: 72px !important;
  padding: 0 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
}

.calculator-page .logo {
  flex: 0 0 auto !important;
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 1000 !important;
  text-decoration: none !important;
}

.calculator-page .site-nav {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 32px !important;
}

.calculator-page .site-nav a {
  color: rgba(255,255,255,0.88) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.calculator-page .site-nav a:hover {
  color: #62f7ff !important;
}

.calculator-page .header-socials {
  flex: 0 0 auto !important;
  display: flex !important;
  gap: 10px !important;
}

/* сторінка компактніша */
.estimate-page {
  padding-top: 145px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* менше пустого місця між текстом і панеллю */
.estimate-hero {
  width: min(1320px, 100%) !important;
  grid-template-columns: 0.72fr 1fr !important;
  gap: 34px !important;
  align-items: center !important;
}

/* лівий блок менший */
.estimate-left {
  max-width: 470px !important;
}

.estimate-left h1 {
  max-width: 470px !important;
  font-size: clamp(44px, 4.2vw, 66px) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.06em !important;
}

.estimate-subtitle {
  max-width: 440px !important;
  margin-top: 20px !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
}

.estimate-benefits.compact {
  margin-top: 26px !important;
  gap: 12px !important;
}

.estimate-benefits.compact .estimate-benefit {
  grid-template-columns: 44px 1fr !important;
  gap: 12px !important;
}

.estimate-benefits.compact .estimate-benefit span {
  width: 36px !important;
  height: 36px !important;
}

.estimate-benefits.compact .estimate-benefit p {
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* панель ширша і не виглядає обрізаною */
.estimate-panel {
  width: 100% !important;
  max-width: 760px !important;
  justify-self: end !important;
  padding: 30px !important;
}

.estimate-panel-head h2 {
  font-size: clamp(32px, 3vw, 46px) !important;
}

.estimate-form {
  margin-top: 26px !important;
}

/* питання компактніше */
.estimate-step h3 {
  font-size: 21px !important;
  margin-bottom: 16px !important;
}

.estimate-option {
  min-height: 54px !important;
  padding: 13px 16px !important;
  margin-bottom: 10px !important;
}

.estimate-option span {
  font-size: 15px !important;
  line-height: 1.3 !important;
}

/* 4 питання — у 2 стовпці */
.estimate-step[data-step="4"].active {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px 12px !important;
}

.estimate-step[data-step="4"] h3 {
  grid-column: 1 / -1 !important;
}

.estimate-step[data-step="4"] .estimate-option {
  margin-bottom: 0 !important;
  min-height: 58px !important;
}

/* довгі варіанти хай нормально переносяться */
.estimate-step[data-step="4"] .estimate-option span {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* кнопки нижче */
.estimate-actions {
  margin-top: 22px !important;
}

.estimate-actions .btn {
  min-height: 56px !important;
}

/* останній крок акуратніше */
.estimate-final-text {
  max-width: 560px !important;
  margin: -4px 0 18px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

.estimate-field input {
  height: 54px !important;
}

.estimate-field textarea {
  min-height: 105px !important;
}

/* адаптив */
@media (max-width: 1100px) {
  .estimate-hero {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
  }

  .estimate-left {
    max-width: 720px !important;
  }

  .estimate-panel {
    max-width: 100% !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 760px) {
  .calculator-page .site-header {
    width: calc(100% - 24px) !important;
    padding: 14px !important;
    flex-wrap: wrap !important;
    height: auto !important;
  }

  .calculator-page .site-nav {
    order: 3 !important;
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    gap: 18px !important;
    padding-top: 8px !important;
  }

  .estimate-page {
    padding-top: 160px !important;
  }

  .estimate-left h1 {
    font-size: 42px !important;
  }

  .estimate-step[data-step="4"].active {
    grid-template-columns: 1fr !important;
  }
}