/* =========================================
   CNZ PREMIUM SYSTEM RESTORED
   Rebuilt from current working baseline
========================================= */

* {
  box-sizing: border-box;
}

:root {
  --bg-1: #090b09;
  --bg-2: #020302;
  --panel-1: #141915;
  --panel-2: #0b0f0c;
  --panel-3: #1a211d;
  --text: #eef5ef;
  --muted: #c7d3c9;
  --muted-2: #a9b5ac;
  --green-1: #8dffae;
  --green-2: #61ff93;
  --green-3: #28c75a;
  --green-4: #14833a;
  --steel-1: #c3c9c5;
  --steel-2: #8c9390;
  --steel-3: #555b57;
  --steel-4: #232725;
  --line: rgba(255,255,255,0.08);
  --shadow-lg: 0 22px 48px rgba(0,0,0,0.44);
  --shadow-md: 0 14px 30px rgba(0,0,0,0.32);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(66,214,106,0.06), transparent 18%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

/* ===== LINKS ===== */

a,
a:visited {
  color: #eef5ef;
  text-decoration: none;
}

/* ===== WRAP / CONTAINER ===== */

.wrap,
.container {
  width: min(1200px, calc(100% - 24px));
  margin: 18px auto;
  position: relative;
  z-index: 1;
}

/* ===== SIDE RAILS ===== */

.side-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 14px;
  z-index: 0;
  background:
    linear-gradient(180deg, #c0c6c2 0%, #888f8b 18%, #4c514e 52%, #232725 78%, #101210 100%);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.16),
    inset 0 -2px 4px rgba(0,0,0,0.32),
    0 0 10px rgba(0,0,0,0.35);
}

.side-rail.left { left: 0; }
.side-rail.right { right: 0; }

/* ===== HEADER / FOOTER BANDS ===== */

.band-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #b2b8b4 0%, #6d746f 20%, #303532 58%, #0d0f0d 100%);
  border-top: 2px solid rgba(255,255,255,0.18);
  border-bottom: 2px solid rgba(0,0,0,0.45);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.12),
    inset 0 -4px 8px rgba(0,0,0,0.45),
    var(--shadow-lg);
}

.band-shell::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.24)),
    linear-gradient(90deg, #8e9590 0%, #585e5b 25%, #292d2a 50%, #585e5b 75%, #8e9590 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.12),
    inset 0 -2px 4px rgba(0,0,0,0.28);
}

.band-shell img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

/* ===== HERO ===== */

.hero {
  padding: 42px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.18)),
    linear-gradient(180deg, var(--panel-1), var(--panel-2));
  border-radius: 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(66,214,106,0.05);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 18%, rgba(0,0,0,0.10)),
    linear-gradient(135deg, rgba(255,255,255,0.04), transparent 35%, transparent 65%, rgba(0,0,0,0.12));
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

/* ===== TYPE ===== */

h1 {
  font-size: 52px;
  margin: 10px 0 14px;
  line-height: 1.05;
}

h2 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
}

h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}

p {
  color: var(--muted);
  line-height: 1.68;
  margin: 0 0 16px;
  font-size: 16px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted-2);
  margin-bottom: 26px;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.02em;
  position: relative;
  transition: .25s ease;
  transform: translateY(-2px);
  border: 1px solid rgba(255,255,255,0.10);
  margin-right: 10px;
  margin-bottom: 10px;
  box-shadow: 0 16px 24px rgba(0,0,0,0.32);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.03) 35%,
    rgba(0,0,0,0.10) 100%
  );
}

.btn:hover {
  transform: translateY(-8px);
}

.btn-green {
  background: linear-gradient(180deg, var(--green-2), var(--green-4));
  color: #fff;
  box-shadow:
    0 18px 26px rgba(0,0,0,0.34),
    0 0 16px rgba(66,214,106,0.22);
}

.btn-dark {
  background: linear-gradient(180deg, #7b827d, #343936);
  color: #fff;
  box-shadow:
    0 18px 26px rgba(0,0,0,0.34);
}

@keyframes pulseA {
  0% {
    transform: translateY(-2px);
    box-shadow:
      0 18px 26px rgba(0,0,0,0.34),
      0 0 0 0 rgba(66,214,106,0.42);
  }
  50% {
    transform: translateY(-8px);
    box-shadow:
      0 24px 32px rgba(0,0,0,0.38),
      0 0 0 16px rgba(66,214,106,0);
  }
  100% {
    transform: translateY(-2px);
    box-shadow:
      0 18px 26px rgba(0,0,0,0.34),
      0 0 0 0 rgba(66,214,106,0);
  }
}

@keyframes pulseB {
  0% {
    transform: translateY(-2px);
    box-shadow:
      0 18px 26px rgba(0,0,0,0.34),
      0 0 0 0 rgba(210,210,210,0.26);
  }
  50% {
    transform: translateY(-8px);
    box-shadow:
      0 24px 32px rgba(0,0,0,0.38),
      0 0 0 12px rgba(210,210,210,0);
  }
  100% {
    transform: translateY(-2px);
    box-shadow:
      0 18px 26px rgba(0,0,0,0.34),
      0 0 0 0 rgba(210,210,210,0);
  }
}

.pulse-a { animation: pulseA 2.4s infinite; }
.pulse-b { animation: pulseB 3s infinite; }

/* ===== CARDS ===== */

.project-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.14)),
    linear-gradient(180deg, var(--panel-3), var(--panel-2));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.05);
  transition: .25s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 26px 46px rgba(0,0,0,0.42),
    0 0 18px rgba(66,214,106,0.10);
}

.project-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 18px;
}

.project-tag {
  color: #77ff9c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.project-highlights {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-highlights span {
  background: #2b3a2f;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11px;
  color: #e8f5ec;
}

/* ===== GRID ===== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 26px;
}

/* ===== SLIDER ===== */

.slider-wrap {
  position: relative;
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.before-img,
.after-img {
  width: 100%;
  display: block;
}

.after-img {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 50% 0 0);
}

.slider-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  opacity: 0.88;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255,255,255,0.35);
}

/* ===== ESTIMATOR ===== */

.estimator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.formblock {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.14)),
    linear-gradient(180deg, #121713, #0b0f0c);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.05);
}

label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-1);
  text-transform: uppercase;
  letter-spacing: .05em;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0d110e;
  color: #eef5ef;
  font-family: inherit;
  font-size: 15px;
}

/* ===== MAPS ===== */

.map-section iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 12px;
  margin-top: 16px;
  box-shadow: var(--shadow-md);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .hero-bottom,
  .estimator {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }
}

@media (max-width: 600px) {
  .wrap,
  .container {
    width: min(1200px, calc(100% - 16px));
    margin: 12px auto;
  }

  .hero {
    padding: 24px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .project-image img {
    height: 210px;
  }
}