/* ==========================================================
   HARD HAT EARTH WORKS — Shared Styles
   Design system pulled from the logo: hard-hat yellow,
   machine black, earth brown, grass green.
   ========================================================== */

:root {
  /* Brand colors */
  --black: #1a1a1a;
  --charcoal: #2a2724;
  --yellow: #ffc20e;
  --yellow-dark: #e6a800;
  --earth: #6b4423;
  --earth-light: #b07a45;
  --grass: #3e7b27;
  --concrete: #f3f1ee;
  --gray-mid: #8a837b;
  --gray-line: #ddd8d1;
  --white: #ffffff;

  /* Type */
  --font-head: "Anton", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--black);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--white { background: var(--white); }
.section--yellow { background: var(--yellow); color: var(--black); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: var(--yellow); }
.lead { font-size: 1.15rem; color: #4a4540; }
.section--dark .lead { color: #cfc8bf; }
.text-yellow { color: var(--yellow); }
.text-earth { color: var(--earth-light); }

/* Hazard stripe divider */
.hazard {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--black) 18px 36px);
}

/* Topographic contour texture (from business card) */
.topo {
  background-color: var(--yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%231a1a1a' stroke-opacity='.12' stroke-width='1.5'%3E%3Cpath d='M0 60 Q100 20 200 70 T400 50'/%3E%3Cpath d='M0 110 Q120 60 210 120 T400 100'/%3E%3Cpath d='M0 170 Q90 130 190 180 T400 160'/%3E%3Cpath d='M0 230 Q110 190 220 240 T400 220'/%3E%3Cpath d='M0 290 Q100 250 200 300 T400 280'/%3E%3Cpath d='M0 350 Q120 310 210 360 T400 340'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: var(--yellow-dark); }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: var(--charcoal); }
.btn--outline { border-color: currentColor; background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--outline-dark { border-color: var(--black); color: var(--black); background: transparent; }
.btn--outline-dark:hover { background: var(--black); color: var(--white); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Top bar + Nav ---------- */
.topbar {
  background: var(--black);
  color: #d6d0c7;
  font-size: 0.85rem;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: var(--yellow); font-weight: 700; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 4px solid var(--yellow);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 20px; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo img { height: 62px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 0;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition);
}
.nav__links a:hover, .nav__links a.active { border-color: var(--yellow); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__phone { font-weight: 800; text-decoration: none; white-space: nowrap; }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 10px;
}
.nav__toggle span { display: block; height: 3px; background: var(--black); margin: 5px 0; transition: transform var(--transition), opacity var(--transition); }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--black);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.6) 55%, rgba(26,26,26,0.2) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.hero__content { max-width: 700px; }
.hero__tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.hero p { font-size: 1.2rem; color: #e2dcd3; max-width: 580px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 26px 0 0; font-weight: 600; font-size: 0.95rem; }
.hero__points li::before { content: "✓ "; color: var(--yellow); font-weight: 900; }

.page-hero { position: relative; background: var(--black); color: var(--white); padding: 90px 0 70px; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero p { color: #d6d0c7; max-width: 640px; font-size: 1.15rem; }
.page-hero::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 340px; height: 340px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, transparent 22px 44px);
  opacity: 0.12; transform: rotate(10deg);
}

/* ---------- Filmstrip (infinite scroll) ---------- */
.filmstrip { background: var(--black); padding: 18px 0; overflow: hidden; }
.filmstrip__track { display: flex; gap: 14px; width: max-content; animation: filmscroll 45s linear infinite; }
.filmstrip:hover .filmstrip__track { animation-play-state: paused; }
.filmstrip img { height: 200px; width: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 3px solid var(--charcoal); }
@keyframes filmscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .filmstrip__track { animation: none; } }

/* ---------- Stats bar ---------- */
.stats { padding: 44px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; }
.stat__label { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 8px; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.16); }
.card__img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-bottom: 4px solid var(--yellow); }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: #555049; font-size: 0.97rem; }
.card__body .btn, .card__link { margin-top: auto; }
.card__link { font-weight: 800; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.06em; text-decoration: none; color: var(--earth); }
.card__link:hover { color: var(--black); }
.card__link::after { content: " →"; }

/* ---------- Why us / features ---------- */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon {
  flex: 0 0 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--black);
  border-radius: var(--radius);
  font-size: 1.6rem;
}
.feature h3 { font-size: 1.3rem; margin-bottom: 6px; }
.feature p { color: #cfc8bf; font-size: 0.97rem; margin: 0; }
.section--white .feature p, .section:not(.section--dark) .feature p { color: #555049; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.cred-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.cred-list li { display: flex; gap: 14px; align-items: center; background: var(--white); padding: 14px 18px; border-left: 5px solid var(--yellow); border-radius: var(--radius); font-weight: 600; }
.cred-list strong { font-family: var(--font-head); font-weight: 400; font-size: 1.6rem; color: var(--earth); min-width: 84px; white-space: nowrap; }

/* ---------- Service area ---------- */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area {
  background: var(--charcoal);
  border-top: 5px solid var(--yellow);
  border-radius: var(--radius);
  padding: 28px;
}
.area h3 { color: var(--yellow); }
.area ul { list-style: none; padding: 0; margin: 0; columns: 2; color: #d6d0c7; font-size: 0.95rem; }
.area li { padding: 3px 0; }

/* ---------- Loyalty ---------- */
.loyalty { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.punches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 460px; margin: 20px 0 26px; }
.punch {
  aspect-ratio: 1; border-radius: 50%;
  background: var(--white); border: 3px solid var(--black);
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.3rem;
}
.punch--free { background: var(--black); color: var(--yellow); font-size: 0.8rem; text-align: center; line-height: 1; }

/* ---------- Pricing / rate cards ---------- */
.cat-nav {
  position: sticky; top: calc(var(--nav-h) + 4px); z-index: 50;
  background: var(--concrete);
  border-bottom: 1px solid var(--gray-line);
}
.cat-nav .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.cat-nav a {
  flex: 0 0 auto;
  text-decoration: none; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 9px 16px; border-radius: 40px; background: var(--white); border: 2px solid var(--gray-line);
  transition: all var(--transition);
}
.cat-nav a:hover, .cat-nav a.active { background: var(--black); color: var(--yellow); border-color: var(--black); }

.svc-block { padding: 64px 0; border-bottom: 1px solid var(--gray-line); }
.svc-block:last-of-type { border-bottom: 0; }
.svc-block__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.svc-block__head p { max-width: 620px; margin: 0; color: #555049; }

.rate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  border-top: 5px solid var(--black);
  position: relative;
}
.rate-card--featured { border-top-color: var(--yellow); }
.rate-card__badge {
  position: absolute; top: -14px; right: 20px;
  background: var(--yellow); color: var(--black);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px;
}
.rate-card h3 { margin-bottom: 4px; }
.rate-card__price { font-family: var(--font-head); font-size: 2.4rem; line-height: 1.1; margin: 10px 0 2px; }
.rate-card__price small { font-family: var(--font-body); font-size: 0.9rem; color: var(--gray-mid); font-weight: 600; }
.rate-card__note { font-size: 0.85rem; color: var(--gray-mid); margin-bottom: 16px; }
.rate-card ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: 0.95rem; }
.rate-card li { padding: 7px 0 7px 26px; border-bottom: 1px dashed var(--gray-line); position: relative; }
.rate-card li::before { content: "✓"; position: absolute; left: 0; color: var(--grass); font-weight: 900; }
.rate-card .btn { margin-top: auto; }
.placeholder-price { background: repeating-linear-gradient(-45deg, #fff3c4 0 8px, #fff 8px 16px); padding: 0 8px; border-radius: 4px; }

.addons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.addon { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed #4a4540; }
.addon span:last-child { font-weight: 800; color: var(--yellow); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 56px 20px 24px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; font-weight: 900; transition: transform var(--transition);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 20px; margin: 0; color: #555049; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  font: inherit; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 10px 18px; border-radius: 40px; border: 2px solid var(--black); background: transparent; cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--black); color: var(--yellow); }
.masonry { columns: 3 300px; column-gap: 18px; }
.masonry__item { break-inside: avoid; margin: 0 0 18px; position: relative; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.masonry__item img { width: 100%; transition: transform 0.4s ease; }
.masonry__item:hover img { transform: scale(1.04); }
.masonry__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: var(--white); font-weight: 700; font-size: 0.9rem;
}
.masonry__item.hide { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(10,10,10,0.94);
  display: none; align-items: center; justify-content: center; padding: 40px 70px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 100%; border-radius: var(--radius); }
.lightbox__caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; font-weight: 600; }
.lightbox button {
  position: absolute; background: var(--yellow); color: var(--black); border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; font-weight: 900;
}
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Before / After slider */
.ba { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--yellow); transform: translateX(-2px); pointer-events: none; }
.ba__handle::after {
  content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--yellow); color: var(--black); font-size: 0.7rem; font-weight: 900; padding: 12px 10px; border-radius: 40px; white-space: nowrap;
}
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__label { position: absolute; top: 14px; background: var(--black); color: var(--yellow); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.1em; padding: 5px 10px; border-radius: 3px; z-index: 2; }
.ba__label--before { left: 14px; } .ba__label--after { right: 14px; }

/* ---------- Equipment ---------- */
.equip { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 40px; }
.equip img { height: 100%; width: 100%; object-fit: cover; min-height: 340px; }
.equip__body { padding: 36px 36px 36px 0; }
.equip:nth-child(even) img { order: 2; }
.equip:nth-child(even) .equip__body { padding: 36px 0 36px 36px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; }
.spec-table td { padding: 9px 0; border-bottom: 1px dashed var(--gray-line); }
.spec-table td:last-child { text-align: right; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li { background: var(--concrete); border: 1px solid var(--gray-line); padding: 5px 12px; border-radius: 40px; font-size: 0.85rem; font-weight: 600; }

/* ---------- Materials + calculator ---------- */
.material-card .card__body { padding: 20px; }
.material-card__price { font-family: var(--font-head); font-size: 1.6rem; margin: 4px 0 12px; }
.material-card__price small { font-family: var(--font-body); font-size: 0.85rem; color: var(--gray-mid); font-weight: 600; }

.calc { background: var(--black); color: var(--white); border-radius: var(--radius-lg); padding: 36px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; }
.calc__result { background: var(--charcoal); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: center; text-align: center; border: 2px solid var(--yellow); }
.calc__big { font-family: var(--font-head); font-size: 3.6rem; color: var(--yellow); line-height: 1; }
.calc__sub { color: #cfc8bf; font-size: 0.95rem; margin-top: 10px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 13px 14px; border: 2px solid var(--gray-line); border-radius: var(--radius);
  background: var(--white); color: var(--black);
  transition: border-color var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); }
.field textarea { min-height: 120px; resize: vertical; }
.field small { color: var(--gray-mid); font-size: 0.8rem; }
.section--dark .field input, .section--dark .field select, .section--dark .field textarea, .calc .field input, .calc .field select { background: var(--charcoal); border-color: #4a4540; color: var(--white); }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.checks input { width: auto; accent-color: var(--yellow); }
.form-note { font-size: 0.85rem; color: var(--gray-mid); margin-top: 12px; }
.form-success { display: none; background: var(--grass); color: var(--white); padding: 18px; border-radius: var(--radius); font-weight: 600; }
.form-success.show { display: block; }

.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); color: var(--black); }
.contact-info { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.contact-info li { display: flex; gap: 14px; align-items: center; }
.contact-info .ico { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; background: var(--yellow); color: var(--black); border-radius: var(--radius); font-size: 1.2rem; }
.contact-info a { text-decoration: none; font-weight: 700; }
.contact-info small { display: block; color: #a9a197; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10,10,10,0.75); }
.modal.open { display: flex; }
.modal__box {
  background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto;
  border-top: 8px solid var(--yellow); position: relative; padding: 36px;
  animation: pop 0.25s ease;
}
@keyframes pop { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; line-height: 1; padding: 6px; }
.modal__steps { display: flex; gap: 8px; margin-bottom: 18px; }
.modal__steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--gray-line); }
.modal__steps span.on { background: var(--yellow); }
.modal__step { display: none; }
.modal__step.active { display: block; }
.modal__service { display: inline-block; background: var(--black); color: var(--yellow); font-weight: 700; font-size: 0.8rem; padding: 4px 10px; border-radius: 3px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--grass); color: var(--white); display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 16px; }

/* ---------- CTA band ---------- */
.cta-band { padding: 64px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 8px 0 0; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #bdb5ab; padding: 64px 0 24px; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer__logo { width: 180px; margin-bottom: 14px; }
.footer h4 { color: var(--yellow); font-size: 1.15rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer__bottom { border-top: 1px solid #333; margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; }

/* ---------- Mobile call bar ---------- */
.mobile-bar { display: none; }

/* ---------- Legal / agreement ---------- */
.legal { max-width: 860px; margin: 0 auto; background: var(--white); padding: 48px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.legal h2 { font-size: 1.7rem; margin-top: 36px; padding-top: 20px; border-top: 3px solid var(--yellow); }
.legal h2:first-of-type { margin-top: 0; }
.legal li { margin-bottom: 8px; }
.legal .toc { background: var(--concrete); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; }
.legal .toc a { text-decoration: none; font-weight: 600; }
.notice { background: #fff6d6; border-left: 5px solid var(--yellow); padding: 14px 18px; border-radius: var(--radius); font-size: 0.95rem; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1060px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 4px solid var(--yellow); box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    padding: 8px 20px 20px;
  }
  .nav.open .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--gray-line); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .section { padding: 64px 0; }
  .grid--3, .grid--2, .split, .loyalty, .contact-wrap, .calc, .area-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .equip { grid-template-columns: 1fr; gap: 0; }
  .equip img, .equip:nth-child(even) img { order: 0; min-height: 240px; }
  .equip__body, .equip:nth-child(even) .equip__body { padding: 28px; }
  .addons { grid-template-columns: 1fr; }
  .legal { padding: 28px 22px; }
  .legal .toc ol { columns: 1; }
  .topbar .hide-sm { display: none; }
  .nav__cta .btn { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
  }
  .mobile-bar a, .mobile-bar button {
    font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem;
    padding: 18px 10px; text-align: center; text-decoration: none; border: 0; cursor: pointer;
  }
  .mobile-bar a { background: var(--black); color: var(--yellow); }
  .mobile-bar button { background: var(--yellow); color: var(--black); }
}
@media (max-width: 560px) {
  .grid--4, .form-grid, .checks { grid-template-columns: 1fr; }
  .nav__logo img { height: 52px; }
  .filmstrip img { height: 140px; }
  .area ul { columns: 1; }
  .modal__box { padding: 28px 20px; }
  .calc { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 12px; }
  .punches { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .punch { font-size: 1rem; border-width: 2px; }
}

/* Prevent grid children from forcing overflow on small screens */
.calc > *, .form-grid > *, .contact-wrap > *, .split > *, .loyalty > * { min-width: 0; }
