:root {
  --bg: #e8f4f8;
  --light: #f5f9fb;
  --mid: #e0f0f5;
  --white: #ffffff;
  --deep: #2d2d2d;
  --deep-2: #1a3a4a;
  --deep-3: #0f2a38;
  --accent: #33c3f0;
  --accent-dark: #1ba8d4;
  --text: #2d2d2d;
  --muted: #5a6a70;
  --shadow: 0 20px 45px rgba(45, 45, 45, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(520px 340px at 50% -10%, #ffffff 0%, rgba(255, 255, 255, 0) 65%), var(--bg);
  font-family: "Barlow", "Trebuchet MS", sans-serif;
  color: var(--text);
  font-size: 17px;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  margin: 0;
  background: var(--white);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 30px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 30px;
}

.logo {
  width: 150px;
  height: auto;
}

.topbar-line {
  flex: 1;
  height: 10px;
  background: #d6d4dd;
  border-radius: 999px;
}

.topbar-dots {
  display: flex;
  gap: 7px;
}

.topbar-dots span {
  width: 9px;
  height: 9px;
  background: #d6d4dd;
  border-radius: 50%;
}

.hero {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 8, 26, 0.25), rgba(9, 7, 20, 0.72));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 30px;
  z-index: 1;
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-content h1 {
  margin: 0 0 10px;
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
}

.hero-sub {
  margin: 0;
  max-width: 640px;
  font-size: 18px;
  font-weight: 500;
}

.section {
  padding: 34px 0;
  position: relative;
  overflow: hidden;
}

.section--light {
  background: var(--light);
}

.section--mid {
  background: var(--mid);
}

.section--dark {
  background: radial-gradient(260px 260px at 20% 35%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(140deg, var(--deep-2), var(--deep-3));
  color: var(--white);
}

.section--dark .section-lead,
.section--dark p {
  color: rgba(255, 255, 255, 0.82);
}

.section-header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.section-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section--light .section-icon {
  background: var(--white);
  box-shadow: 0 12px 24px rgba(16, 14, 40, 0.18);
}

.section h2 {
  margin: 0 0 6px;
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 29px;
  font-weight: 600;
}

.section-lead {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

.icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section--dark .icon {
  stroke: var(--white);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  min-height: 140px;
}

.section--light .stat {
  background: var(--white);
}

.stat-number {
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
}

.stat p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 14px 28px rgba(16, 14, 40, 0.16);
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 19px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-message {
  margin: 22px 0 0;
  font-weight: 600;
  font-size: 17px;
  text-align: center;
  color: var(--deep);
}

.flow {
  background: var(--white);
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 14px 28px rgba(16, 14, 40, 0.12);
  display: grid;
  gap: 8px;
}

.flow-step {
  font-weight: 600;
  color: var(--deep);
}

.flow-arrow {
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
}

.checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.checklist span {
  background: rgba(255, 255, 255, 0.65);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep);
}

.bullet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.bullet {
  background: var(--white);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 10px 20px rgba(16, 14, 40, 0.12);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.kpi {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
}

.kpi-title {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.section--dark .kpi-value {
  color: rgba(255, 255, 255, 0.78);
}

.case-card {
  background: var(--white);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  box-shadow: 0 12px 26px rgba(16, 14, 40, 0.14);
}

.case-label {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.case-value {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--deep);
}

.case-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.cta {
  background: linear-gradient(135deg, var(--deep-2), var(--deep));
  color: var(--white);
  text-align: center;
  padding: 40px 0 50px;
}

.cta h2 {
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 31px;
  font-weight: 600;
  margin: 0 0 22px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--accent-dark);
}

.button--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.button--hero {
  margin-top: 18px;
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  font-size: 17px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button--hero:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 8px 24px rgba(51, 195, 240, 0.4);
}

.button--accent {
  background: var(--accent);
  color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button--accent:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 8px 24px rgba(51, 195, 240, 0.4);
}

.button-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 8px;
  flex-shrink: 0;
}

.section-download {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* Package cards */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.package-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.package-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 16px;
}

.package-features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.package-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.package-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.package-price {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.package-price-value {
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--accent);
}

.package-price-unit {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.package-cta {
  margin-top: 28px;
  text-align: center;
}

.package-cta .button {
  padding: 14px 32px;
  font-size: 17px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-item {
  margin: 0;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(16, 14, 40, 0.14);
}

.product-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-item figcaption {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep);
  text-align: center;
}

/* Aparataj section */
.aparataj-section {
  margin-top: 32px;
  text-align: center;
}

.aparataj-title {
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--deep);
  margin: 0 0 6px;
}

.aparataj-lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 18px;
}

.aparataj-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  max-width: 550px;
  margin: 0 auto;
  height: 360px;
}

.aparataj-item {
  margin: 0;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(16, 14, 40, 0.1);
}

.aparataj-item--large {
  grid-row: span 2;
}

.aparataj-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fafafa;
  padding: 12px;
}

.aparataj-item--large img {
  height: 100%;
}

.aparataj-figure {
  margin: 0 auto;
  max-width: 480px;
}

.aparataj-figure img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* Upgrade cards */
.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.upgrade-card {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(16, 14, 40, 0.12);
  overflow: hidden;
}

.upgrade-img {
  width: calc(100% + 48px);
  margin: 0px 0px 17px;
  height: 180px;
  object-fit: cover;
}

.upgrade-group-badge {
  display: inline-block;
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.upgrade-group-badge--comfort {
  background: #e0f7fa;
  color: #00838f;
}

.upgrade-group-badge--energy {
  background: #e3f2fd;
  color: #1565c0;
}

.upgrade-group-badge--premium {
  background: #e8f5e9;
  color: #2e7d32;
}

.upgrade-number {
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.upgrade-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
  color: var(--deep);
}

.upgrade-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.upgrade-benefit {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

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

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .bullet-grid {
    grid-template-columns: 1fr;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upgrade-grid {
    grid-template-columns: 1fr;
  }

  .aparataj-grid {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 380px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .button--hero {
    margin-top: 16px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .package-cta {
    display: flex;
    justify-content: center;
  }

  .package-cta .button {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .section {
    padding: 28px 0;
  }

  .container {
    padding: 0 20px;
  }

  .topbar {
    padding: 16px 20px;
  }

  .logo {
    width: 130px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .aparataj-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 280px;
    margin: 0 auto;
    height: auto;
  }

  .aparataj-item--large {
    grid-row: auto;
  }

  .aparataj-item {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .aparataj-item img {
    height: 180px;
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 360px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .cta h2 {
    font-size: 24px;
  }
}

/* ========================================
   CALCULATOR STYLES
   Apple-like minimal design
   ======================================== */

.calc-body {
  margin: 0;
  padding: 0;
  background: #f5f5f7;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.calc-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.calc-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.calc-logo-link {
  flex-shrink: 0;
}

.calc-logo {
  width: 100px;
  height: auto;
  display: block;
}

.calc-header-text {
  flex: 1;
}

.calc-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.calc-subtitle {
  margin: 2px 0 0;
  font-size: 14px;
  color: #86868b;
  font-weight: 400;
}

/* Layout */
.calc-layout {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.calc-inputs,
.calc-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Cards */
.calc-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.calc-card--results {

  top: 100px;
}

.calc-card-title {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-card-icon {
  width: 32px;
  height: 32px;
  background: #f5f5f7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calc-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: #86868b;
}

/* Fields */
.calc-field {
  margin-bottom: 16px;
}

.calc-field:last-child {
  margin-bottom: 0;
}

.calc-field-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.calc-field-row:last-child {
  margin-bottom: 0;
}

.calc-field-row--2col {
  grid-template-columns: repeat(2, 1fr);
}

.calc-field-row .calc-field {
  margin-bottom: 0;
}

.calc-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 6px;
}

.calc-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid transparent;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

.calc-input:hover {
  background: #ececee;
}

.calc-input:focus {
  background: #fff;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.calc-input::placeholder {
  color: #86868b;
}

.calc-input--number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Remove number input spinners */
.calc-input[type="number"]::-webkit-outer-spin-button,
.calc-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-input[type="number"] {
  -moz-appearance: textfield;
}

.calc-field-hint {
  display: block;
  font-size: 12px;
  color: #86868b;
  margin-top: 4px;
}

.calc-field-error {
  display: block;
  font-size: 12px;
  color: #ff3b30;
  margin-top: 4px;
  min-height: 16px;
}

.calc-price-link {
  display: block;
  font-size: 11px;
  color: #0071e3;
  text-decoration: none;
  margin-top: 4px;
}

.calc-price-link:hover {
  text-decoration: underline;
}

.calc-price-note {
  font-size: 12px;
  color: #86868b;
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #f0f0f2;
  border-radius: 8px;
  line-height: 1.5;
}

.calc-price-note a {
  color: #0071e3;
  text-decoration: none;
  font-weight: 500;
}

.calc-price-note a:hover {
  text-decoration: underline;
}

/* Checkbox */
.calc-field--checkbox {
  margin-top: 4px;
}

.calc-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.calc-checkbox {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #0071e3;
  cursor: pointer;
  flex-shrink: 0;
}

.calc-checkbox-text {
  font-size: 14px;
  color: #1d1d1f;
  line-height: 1.4;
}

.calc-checkbox-text a {
  color: #0071e3;
  text-decoration: none;
}

.calc-checkbox-text a:hover {
  text-decoration: underline;
}

/* Toggle switch */
.calc-field--toggle {
  display: flex;
  align-items: center;
}

.calc-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.calc-toggle-text {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
}

.calc-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.calc-toggle-switch {
  width: 44px;
  height: 26px;
  background: #e5e5e5;
  border-radius: 13px;
  position: relative;
  transition: background 0.25s ease;
}

.calc-toggle-switch::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.calc-toggle-input:checked + .calc-toggle-switch {
  background: #34c759;
}

.calc-toggle-input:checked + .calc-toggle-switch::after {
  transform: translateX(18px);
}

.calc-toggle-input:focus + .calc-toggle-switch {
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* Divider */
.calc-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 16px 0;
}

/* Actions */
.calc-actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.calc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.calc-btn--primary {
  background: #1d1d1f;
  color: #fff;
}

.calc-btn--primary:hover {
  background: #333;
}

.calc-btn--primary:active {
  background: #000;
  transform: scale(0.98);
}

.calc-btn--primary:disabled {
  background: #d2d2d7;
  color: #86868b;
  cursor: not-allowed;
}

.calc-btn--secondary {
  background: #f5f5f7;
  color: #1d1d1f;
}

.calc-btn--secondary:hover {
  background: #e8e8ed;
}

.calc-btn--secondary:active {
  background: #d2d2d7;
  transform: scale(0.98);
}

.calc-btn--full {
  width: 100%;
}

.calc-btn-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Breakdown Table */
.calc-breakdown {
  margin-bottom: 20px;
  overflow-x: auto;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.calc-table th,
.calc-table td {
  padding: 10px 12px;
  text-align: left;
}

.calc-table th {
  font-weight: 500;
  color: #86868b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e5e5e5;
}

.calc-table td {
  color: #1d1d1f;
  border-bottom: 1px solid #f5f5f7;
}

.calc-table th:last-child,
.calc-table td:last-child {
  text-align: right;
}

.calc-table th:nth-child(2),
.calc-table td:nth-child(2),
.calc-table th:nth-child(3),
.calc-table td:nth-child(3) {
  text-align: center;
}

.calc-table tbody tr:last-child td {
  border-bottom: none;
}

/* Totals */
.calc-totals {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 16px;
}

.calc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.calc-total-row:first-child {
  padding-top: 0;
}

.calc-total-row:last-child {
  padding-bottom: 0;
}

.calc-total-label {
  font-size: 14px;
  color: #1d1d1f;
}

.calc-total-value {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
}

.calc-total-value--discount {
  color: #34c759;
}

.calc-total-row--highlight {
  padding-top: 12px;
}

.calc-total-row--highlight .calc-total-label,
.calc-total-row--highlight .calc-total-value {
  font-weight: 600;
}

.calc-total-row--grand {
  background: #1d1d1f;
  margin: 12px -16px -16px;
  padding: 16px !important;
  border-radius: 0 0 12px 12px;
}

.calc-total-row--grand .calc-total-label,
.calc-total-row--grand .calc-total-value {
  color: #fff;
  font-size: 16px;
}

.calc-total-row--avg {
  background: #fff;
  margin: 0 -16px;
  padding: 12px 16px !important;
  border-radius: 0;
  border-top: 1px solid #e5e5e5;
  margin-top: 12px;
}

.calc-total-row--avg .calc-total-label {
  color: #86868b;
}

.calc-total-row--avg .calc-total-value {
  color: #0071e3;
  font-size: 15px;
}

/* Export Actions */
.calc-export-actions {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 10;
}

.calc-export-actions .calc-btn {
  flex: 1;
}

/* Lead Capture */
.calc-card--lead {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f7 100%);
  position: relative;
  z-index: 10;
}

/* Footer */
.calc-footer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px;
  text-align: center;
  margin-top: auto;
}

.calc-disclaimer {
  font-size: 13px;
  color: #86868b;
  margin: 0 0 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.calc-copyright {
  font-size: 12px;
  color: #a1a1a6;
  margin: 0;
}

/* Toast */
.calc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1d1d1f;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.calc-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.calc-toast.success {
  background: #34c759;
}

.calc-toast.error {
  background: #ff3b30;
}

/* Responsive */
@media (max-width: 900px) {
  .calc-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .calc-card--results {
    position: static;
  }

  .calc-header {
    padding: 16px;
    flex-wrap: wrap;
  }

  .calc-title {
    font-size: 18px;
  }

  .calc-field-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .calc-field-row--2col {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-actions,
  .calc-export-actions {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .calc-header {
    gap: 12px;
  }

  .calc-logo {
    width: 80px;
  }

  .calc-title {
    font-size: 16px;
  }

  .calc-subtitle {
    font-size: 12px;
  }

  .calc-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .calc-field-row--2col {
    grid-template-columns: 1fr;
  }

  .calc-table {
    font-size: 13px;
  }

  .calc-table th,
  .calc-table td {
    padding: 8px 6px;
  }

  .calc-total-row--grand .calc-total-label,
  .calc-total-row--grand .calc-total-value {
    font-size: 15px;
  }

  .calc-btn {
    padding: 14px 18px;
  }
}

/* Print styles for PDF */
@media print {
  .calc-body {
    background: #fff;
  }

  .calc-header {
    position: static;
    border-bottom: 2px solid #1d1d1f;
  }

  .calc-layout {
    display: block;
  }

  .calc-inputs {
    display: none;
  }

  .calc-card {
    box-shadow: none;
    border: 1px solid #e5e5e5;
    break-inside: avoid;
  }

  .calc-actions,
  .calc-export-actions,
  .calc-card--lead {
    display: none;
  }

  .calc-footer {
    border-top: 1px solid #e5e5e5;
  }
}
