:root {
  --gz-bg: #fff8ed;
  --gz-bg-soft: #fff1dc;
  --gz-card: #ffffff;
  --gz-card-warm: #fffaf2;
  --gz-ink: #221814;
  --gz-muted: #705f57;
  --gz-line: rgba(71, 45, 31, 0.14);
  --gz-primary: #ff6b16;
  --gz-primary-dark: #c44709;
  --gz-shadow: 0 24px 70px rgba(85, 49, 22, 0.14);
  --gz-container: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; color: #221814; line-height: 1.618; background: #fff8ed; }
.font-heading { font-family: 'Russo One', sans-serif; }
.primary-gradient { background: linear-gradient(135deg, #ff6b16 0%, #ffae42 100%); color: #1b120f !important; }
.bg-black { background: #fff8ed !important; }
.bg-black\/30 { background: rgba(255,250,242,.82) !important; }
.bg-surface { background: #fff8ed !important; }
.bg-surface-card,
.bg-surface-container-low { background: #ffffff !important; }
.bg-surface-input { background: #fffaf2 !important; }
.text-white,
.text-text-primary { color: #221814 !important; }
.text-gray-300,
.text-gray-400,
.text-gray-500,
.text-text-secondary { color: #705f57 !important; }
.border-white\/5,
.border-white\/10,
.border-white\/20,
.border-white\/30 { border-color: rgba(71,45,31,.14) !important; }
.from-orange-900\/20,
.from-orange-500\/10 { --tw-gradient-from: rgba(255,107,22,.12) var(--tw-gradient-from-position) !important; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.gz-container {
  width: min(var(--gz-container), calc(100% - 48px));
  margin: 0 auto;
}
header.gz-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: block;
  padding: 0;
  gap: 0;
  background: rgba(255, 248, 237, 0.88);
  border-bottom: 1px solid var(--gz-line);
  backdrop-filter: blur(18px);
}
.gz-header__inner {
  min-height: 72px;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.gz-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Russo One', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--gz-ink);
  white-space: nowrap;
  font-size: 18px;
  line-height: 1;
  justify-self: start;
}
.gz-brand img {
  width: 32px;
  height: 32px;
}
.gz-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}
.gz-nav a {
  color: var(--gz-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: color .18s ease;
}
.gz-nav a:hover {
  color: var(--gz-primary-dark);
}
.gz-header__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}
.gz-phone {
  color: var(--gz-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}
.gz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 24px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--gz-ink);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.gz-btn:hover {
  transform: translateY(-1px);
}
.gz-btn--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.gz-btn--primary {
  background: linear-gradient(135deg, var(--gz-primary), #ff9d2d);
  color: #1b120f;
  box-shadow: 0 16px 34px rgba(255, 107, 22, 0.28);
}
.gz-btn--ghost {
  background: rgba(255,255,255,0.56);
  border-color: var(--gz-line);
  color: var(--gz-ink);
}
.gz-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gz-line);
  background: #fff;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.gz-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gz-ink);
  border-radius: 99px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(255, 248, 237, .98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  color: var(--gz-ink);
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Russo One', sans-serif;
  font-size: 20px;
  letter-spacing: .06em;
}
.gz-auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(34,24,20,.58);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gz-auth-modal__card {
  position: relative;
  width: min(100%, 440px);
  padding: 30px;
  border-radius: 26px;
  background: #fffaf2;
  border: 1px solid rgba(71,45,31,.12);
  box-shadow: var(--gz-shadow);
}
.gz-auth-modal__close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gz-line);
  border-radius: 50%;
  background: #fff;
  color: var(--gz-muted);
  font-size: 25px;
  cursor: pointer;
}
.gz-auth-modal h3 {
  margin: 0 0 10px;
  color: var(--gz-ink);
  text-align: center;
  font-family: 'Russo One', sans-serif;
  text-transform: uppercase;
  font-size: 22px;
}
.gz-auth-modal p {
  margin: 0 0 20px;
  color: var(--gz-muted);
  text-align: center;
  font-size: 16px;
}
.gz-auth-option {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 15px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--gz-line);
  color: var(--gz-ink);
  text-decoration: none;
}
.gz-auth-option--primary {
  background: linear-gradient(135deg, var(--gz-primary), #ffae42);
  border-color: transparent;
}
.gz-auth-option__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  font-weight: 900;
}
.gz-auth-option__icon--telegram {
  background: #229ed9;
}
.gz-auth-option strong,
.gz-auth-option small {
  display: block;
}
.gz-auth-option small {
  color: rgba(34,24,20,.62);
  font-size: 13px;
  margin-top: 2px;
}

/* Calculator cards */
.calculator-form-shell {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%) !important;
  border-color: rgba(71,45,31,.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 60px rgba(85, 49, 22, 0.10);
}
.calculator-form-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem !important;
}
.calculator-form-title::before {
  content: "";
  width: 9px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f97316, #ffb45f);
  box-shadow: 0 8px 20px rgba(249,115,22,.28);
}
.calculator-region-card,
.calculator-quickstart-card {
  background: #fffaf2 !important;
  border-color: rgba(71,45,31,.12) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.calculator-value-card {
  background:
    linear-gradient(135deg, rgba(249,115,22,.12), rgba(255,180,95,.04) 48%, rgba(255,255,255,.65)) !important;
  border-color: rgba(249,115,22,.24) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 38px rgba(249,115,22,.10);
}
.calc-card {
  padding: 1.15rem 1.15rem 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  border: 1px solid rgba(71,45,31,.12);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(85, 49, 22, 0.07);
}
.calc-card > * + * { margin-top: 1rem; }
.calc-card-title {
  font-family: 'Russo One', sans-serif;
  font-size: .95rem;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.25;
  padding-bottom: 0;
  border-bottom: 0;
  margin-bottom: 0;
}
.calc-card-title::after {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 24px;
  background: linear-gradient(90deg, rgba(249,115,22,.28), rgba(249,115,22,0));
}
.calc-card-title span:first-child {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(249,115,22,.10);
  box-shadow: inset 0 0 0 1px rgba(249,115,22,.16);
  font-size: .95rem;
}
.calc-card-title + .text-xs {
  margin-top: .55rem !important;
  margin-bottom: .85rem;
  line-height: 1.45;
}
.calc-card label {
  line-height: 1.35;
}
.calc-card input[type="number"],
.calc-card select,
.calculator-region-card select {
  min-height: 44px;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.calc-card > div > label:has(input[type="checkbox"]),
.calc-card > label:has(input[type="checkbox"]) {
  padding: .78rem .85rem;
  border: 1px solid rgba(71,45,31,.10);
  border-radius: 12px;
  background: rgba(255,250,242,.72);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.calc-card > div > label:has(input[type="checkbox"]):hover,
.calc-card > label:has(input[type="checkbox"]):hover {
  border-color: rgba(249,115,22,.28);
  background: rgba(255,246,231,.94);
}
.calc-card > div > label:has(input[type="checkbox"]) + p {
  margin-left: 2.55rem;
  margin-top: .45rem;
}
.automation-config {
  position: relative;
  overflow: hidden;
  border-color: rgba(249,115,22,.24);
  background:
    linear-gradient(135deg, rgba(249,115,22,.10), rgba(255,255,255,.92) 38%),
    #ffffff;
}
.automation-config::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #f97316, #ffb45f);
}
.automation-config > * {
  position: relative;
}
.automation-result-card {
  scroll-margin-top: 78px;
  background:
    linear-gradient(135deg, rgba(249,115,22,.10), rgba(255,255,255,.96) 42%),
    #ffffff !important;
  border-color: rgba(249,115,22,.20) !important;
  box-shadow: 0 18px 45px rgba(85, 49, 22, 0.09);
}
.automation-metric {
  min-height: 96px;
  border-radius: 14px !important;
  background: rgba(255,250,242,.78) !important;
}
.automation-breakdown-row {
  padding: .9rem 0;
  border-bottom: 1px solid rgba(71,45,31,.10);
}
.automation-breakdown-row:last-child { border-bottom: 0; }
.automation-breakdown-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.automation-breakdown-label {
  font-family: 'Russo One', sans-serif;
  color: #705f57;
}
.automation-breakdown-value {
  font-weight: 700;
  color: #221814;
  text-align: right;
}
.automation-breakdown-note {
  margin-top: .3rem;
  font-size: .82rem;
  line-height: 1.42;
  color: #705f57;
}
@media (max-width: 560px) {
  .calculator-form-shell { padding: 1.25rem !important; }
  .calc-card { padding: 1rem; }
  .calc-card .grid.grid-cols-2 { grid-template-columns: 1fr; }
  .automation-breakdown-head { display: block; }
  .automation-breakdown-value { margin-top: .1rem; text-align: left; }
}

/* Custom range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(71,45,31,.18);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: #f97316;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(249,115,22,0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: #f97316;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Energy class badges */
.energy-badge {
  font-family: 'Russo One', sans-serif;
  font-size: 3rem;
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Select styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
}

/* Animate results */
.results-section {
  animation: fadeUp 0.5s ease-out;
  scroll-margin-top: 78px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Print styles */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; color: #222; }
}

footer a:hover { color: #f97316 !important; }
@media (max-width: 1240px) {
  .gz-nav { display: none; }
  .gz-header__actions { display: none; }
  .gz-burger { display: flex; }
}
@media (max-width: 860px) {
  .gz-container {
    width: min(100% - 32px, var(--gz-container));
  }
  .gz-header__inner { min-height: 64px; }
  .mobile-menu { top: 64px; }
  .gz-brand { letter-spacing: .11em; }
  .gz-auth-modal__card { padding: 20px; }
}
