:root {
  --paper: #f4f6f5;
  --white: #ffffff;
  --ink: #151b19;
  --muted: #66716e;
  --line: #d9dfdc;
  --mist: #e8efec;
  --teal: #0f6258;
  --teal-dark: #073b35;
  --amber: #b98a49;
  --coral: #8f3f4c;
  --graphite: #1b2220;
  --graphite-soft: #26312e;
  --shadow: 0 18px 55px rgba(21, 27, 25, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
  width: 100%;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 12px 36px;
  color: var(--white);
  background: rgba(17, 23, 21, 0.86);
  border-bottom: 1px solid rgba(185, 138, 73, 0.34);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.15;
}

.brand small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 850;
}

.header-nav a:hover,
.header-phone:hover {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-phone {
  white-space: nowrap;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  background: var(--teal-dark);
  border-color: var(--amber);
  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--white);
}

.button-secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--mist);
  border-color: var(--teal);
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 17, 15, 0.9) 0%, rgba(9, 17, 15, 0.68) 42%, rgba(9, 17, 15, 0.16) 76%),
    linear-gradient(0deg, rgba(9, 17, 15, 0.42), rgba(9, 17, 15, 0));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  min-height: 88vh;
  padding: 142px 36px 82px;
  margin-left: max(24px, calc((100vw - 1180px) / 2));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-bullets {
  display: grid;
  gap: 10px;
  max-width: 670px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero-bullets li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-bullets li::before {
  position: absolute;
  top: 11px;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--amber);
  content: "";
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.stats-band {
  background: #121817;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 36px;
  gap: 18px;
}

.stat-item {
  min-height: 124px;
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.stat-item strong,
.stat-item span {
  display: block;
}

.stat-item strong {
  color: var(--amber);
  font-size: 34px;
  line-height: 1;
}

.stat-item span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.section {
  padding: 84px 36px;
  background: var(--paper);
}

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

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.two-column,
.quiz-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.quiz-copy h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.12;
}

.section-copy p,
.section-heading p,
.quiz-copy p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.with-action {
  display: flex;
  max-width: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-item i {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--teal);
}

.check-item i::after {
  display: block;
  width: 9px;
  height: 5px;
  margin: 6px auto 0;
  border-bottom: 2px solid var(--white);
  border-left: 2px solid var(--white);
  transform: rotate(-45deg);
  content: "";
}

.section-design {
  background: #17201e;
  color: var(--white);
}

.section-design .section-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.design-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: start;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.design-item {
  min-height: 220px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(185, 138, 73, 0.34);
  border-radius: 8px;
}

.design-item h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 22px;
  line-height: 1.16;
}

.design-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card,
.work-card,
.quiz-card,
.lead-form,
.estimate-panel,
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(24, 33, 31, 0.06);
}

.service-card {
  min-height: 250px;
  padding: 22px;
}

.service-number {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.service-card h3 {
  margin: 36px 0 12px;
  font-size: 22px;
  line-height: 1.18;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-details {
  display: grid;
  gap: 22px;
  margin-top: 28px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.service-details-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.service-details-heading h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.14;
}

.service-details-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-detail-card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-detail-card h4 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 21px;
  line-height: 1.18;
}

.service-detail-card p,
.service-detail-card ul {
  margin: 0;
  color: var(--muted);
}

.service-detail-card ul {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

.file-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.document-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 98, 88, 0.24);
  border-radius: 8px;
  background: var(--mist);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

.section-vent-guide {
  overflow: hidden;
}

.vent-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 52px;
  align-items: center;
}

.vent-animation {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #111817;
  border: 1px solid rgba(185, 138, 73, 0.42);
  border-radius: 8px;
}

.room-outline {
  position: absolute;
  inset: 64px 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.room-outline::before,
.room-outline::after {
  position: absolute;
  width: 86px;
  height: 20px;
  border: 1px solid rgba(185, 138, 73, 0.55);
  border-radius: 99px;
  content: "";
}

.room-outline::before {
  top: -11px;
  left: 38px;
}

.room-outline::after {
  right: 38px;
  bottom: -11px;
}

.room-outline span {
  position: absolute;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.room-outline span:nth-child(1) {
  top: 46px;
  left: 42px;
}

.room-outline span:nth-child(2) {
  right: 46px;
  bottom: 72px;
}

.room-outline span:nth-child(3) {
  left: 44%;
  bottom: 38px;
}

.air-line {
  position: absolute;
  left: 15%;
  right: 15%;
  height: 2px;
  background: rgba(185, 138, 73, 0.54);
}

.air-line-supply {
  top: 35%;
}

.air-line-exhaust {
  bottom: 33%;
}

.air-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(185, 138, 73, 0.55);
  animation: airMove 4.6s linear infinite;
}

.air-dot-1 {
  top: 33%;
  left: 12%;
}

.air-dot-2 {
  top: 33%;
  left: 12%;
  animation-delay: 1.4s;
}

.air-dot-3 {
  right: 12%;
  bottom: 31%;
  background: var(--teal);
  animation-name: airMoveReverse;
}

.vent-types {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.vent-type-card {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vent-type-card strong {
  display: block;
  color: var(--teal-dark);
  font-size: 18px;
}

.vent-type-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

@keyframes airMove {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  15%,
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(58vw);
    opacity: 0;
  }
}

@keyframes airMoveReverse {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  15%,
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(-58vw);
    opacity: 0;
  }
}

.section-quiz {
  background: var(--graphite);
  color: var(--white);
}

.section-quiz .section-copy p,
.section-quiz .quiz-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.quiz-copy {
  position: sticky;
  top: 104px;
}

.estimate-panel {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 22px;
  color: var(--ink);
}

.estimate-panel span,
.estimate-panel small {
  color: var(--muted);
}

.estimate-panel strong {
  color: var(--teal);
  font-size: 34px;
  line-height: 1.1;
}

.quiz-card {
  min-height: 520px;
  padding: 26px;
  color: var(--ink);
}

.quiz-progress {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  background: var(--mist);
  border-radius: 99px;
}

.progress-track i {
  display: block;
  width: 10%;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
  transition: width 0.2s ease;
}

.quiz-step {
  min-height: 310px;
  padding-top: 26px;
}

.quiz-step h3 {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.15;
}

.choice-grid,
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.choice-button,
.check-option {
  min-height: 72px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
  text-align: left;
}

.choice-button[aria-pressed="true"],
.check-option:has(input:checked) {
  border-color: var(--teal);
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.check-option {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-option input,
.consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.range-wrap {
  display: grid;
  gap: 24px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.range-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.range-value strong {
  color: var(--teal);
  font-size: 48px;
  line-height: 1;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.quiz-contact,
.lead-form {
  display: grid;
  gap: 14px;
}

.quiz-contact label,
.lead-form label,
.admin-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

/* Styled file input */
input[type="file"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease;
}
input[type="file"]:hover {
  border-color: var(--teal);
  background: var(--mist);
}
input[type="file"]::file-selector-button {
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 750;
  cursor: pointer;
  margin-right: 12px;
  transition: background 0.2s ease;
}
input[type="file"]::file-selector-button:hover {
  background: var(--teal-dark);
}

.quiz-contact input,
.quiz-contact textarea,
.lead-form input,
.lead-form textarea,
.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.quiz-contact textarea,
.lead-form textarea,
.admin-field textarea {
  resize: vertical;
}

.quiz-contact input:focus,
.quiz-contact textarea:focus,
.lead-form input:focus,
.lead-form textarea:focus,
.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19, 119, 104, 0.14);
}

.consent {
  display: flex;
  grid-template-columns: none;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--teal-dark);
  font-weight: 750;
}

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

.work-card {
  overflow: hidden;
}

.work-card > img {
  width: 100%;
  aspect-ratio: 1.33;
  object-fit: cover;
}

.work-content {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.work-card h3 {
  min-height: 78px;
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.work-card p {
  min-height: 102px;
  margin: 0;
  color: var(--muted);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-row span {
  min-height: 58px;
  padding: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-row small,
.metric-row strong {
  display: block;
}

.metric-row small {
  color: var(--muted);
  font-size: 11px;
}

.metric-row strong {
  color: var(--ink);
  font-size: 13px;
}

.section-certificates {
  background: #f7f8f6;
}

.section-certificates .eyebrow,
.section-vent-guide .eyebrow {
  color: var(--coral);
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.certificate-card {
  display: grid;
  gap: 14px;
  min-height: 330px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(21, 27, 25, 0.06);
}

.certificate-preview {
  display: grid;
  place-items: center;
  min-height: 150px;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  font-size: 26px;
  font-weight: 900;
}

.certificate-preview img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.certificate-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
}

.certificate-card p {
  margin: 0;
  color: var(--muted);
}

.process-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  counter-reset: process;
  list-style: none;
}

.process-list li {
  position: relative;
  min-height: 78px;
  padding: 18px 18px 18px 70px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-list li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-weight: 900;
  counter-increment: process;
  content: counter(process);
}

.section-faq {
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.section-contact {
  background: var(--graphite);
  color: var(--white);
}

.section-contact .section-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-lines a,
.contact-lines span {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.lead-form {
  padding: 24px;
}

/* Onboarding Tooltip */
.onboarding-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.onboarding-tooltip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}
.onboarding-circle {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--amber);
  animation: pulse 1.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.onboarding-circle::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--amber);
  border-radius: 50%;
}
.onboarding-text {
  position: absolute;
  top: calc(120px + 90px);
  background: var(--white);
  color: var(--ink);
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--shadow);
  z-index: 1;
}
.onboarding-text::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 12px solid transparent;
  border-bottom-color: var(--white);
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(185, 138, 73, 0.7);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(185, 138, 73, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(185, 138, 73, 0);
  }
}

.onboarding-glow {
  animation: glow-pulse 2s ease-in-out 1;
  border-radius: 6px;
  padding: 4px 8px;
}

.site-footer {
  padding: 48px 36px;
  background: #111817;
  color: rgba(255, 255, 255, 0.78);
}
.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px;
  margin-bottom: 32px;
}
.footer-info {
  display: grid;
  gap: 12px;
}
.footer-info strong {
  color: var(--white);
  font-size: 20px;
}
.footer-info p {
  margin: 0;
  max-width: 400px;
}
.footer-phone {
  color: var(--white);
  font-weight: 850;
  font-size: 18px;
  margin-top: 8px;
  width: fit-content;
}
.footer-requisites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.requisites-group {
  display: grid;
  gap: 12px;
}
.requisites-group h4 {
  margin: 0;
  color: var(--white);
  font-size: 16px;
}
.requisite-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  font-size: 14px;
}
.requisite-label {
  color: rgba(255,255,255,0.6);
}
.footer-bottom {
  display: flex;
  justify-content: flex-start;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease;
}
.social-link:hover {
  color: var(--white);
}
.social-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.social-icon[data-icon="whatsapp"]::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 2.1.54 4.14 1.56 5.94L2 22l4.29-1.12c1.74.95 3.74 1.48 5.76 1.48 5.45 0 9.9-4.45 9.9-9.91 0-5.46-4.45-9.9-9.91-9.91h-.03zM17.5 15.2c-.3.84-1.73 1.59-2.42 1.7-.62.1-1.41.15-2.42-.1-.56-.13-1.28-.42-2.2-.82-3.87-1.67-6.38-5.84-6.55-6.1-.17-.26-1.39-1.85-1.39-3.53 0-1.68.88-2.52 1.2-2.87.3-.35.66-.44.88-.44.22 0 .44 0 .64.01s.5-.06.78.47c.3.6.99 2.06 1.08 2.21.09.15.15.33.03.53-.12.2-.18.33-.36.51-.17.2-.38.44-.54.59-.18.18-.36.38-.15.74.2.36.91 1.5 1.95 2.44 1.27 1.17 2.35 1.53 2.68 1.7.33.17.53.14.73-.08.2-.22.84-.98 1.07-1.32.23-.34.46-.29.77-.18.3.12 1.89.89 2.21 1.05.32.16.53.24.61.38.08.14.08.82-.22 1.66z'/%3E%3C/svg%3E");
}
.social-icon[data-icon="telegram"]::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm5.5 7.53c.1 4.14-.71 6.92-2.05 8.82-1.47 2.05-3.63 2.51-5.88 1.7-.96-.35-1.78-.94-2.56-1.52l.44-2.78 1.7.39c.17.04.39-.03.55-.21.37-.4 1.94-1.71 1.98-1.83.01-.03.01-.14-.07-.2-.08-.07-.22-.05-.34-.03-.15.03-2.44.72-6.88 2.07-.65.2-1.24.3-1.77.27-1.76-.09-3.13-1.11-3.25-2.76-.06-.7.26-1.38.9-1.85 2.65-1.94 6.68-4.83 10.75-7.77.99-.71 1.8-1.02 2.58-1.01.82.01 1.6.2 2.28.98.58.67.74 1.48.62 2.29z'/%3E%3C/svg%3E");
}
.social-icon[data-icon="vk"]::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 5.46 4.45 9.91 9.91 9.91s9.91-4.45 9.91-9.91C21.95 6.45 17.5 2 12.04 2zm6.85 13.85c-.14.15-.35.23-.58.23h-2.33c-.24 0-.43-.08-.58-.23-.15-.15-.24-.37-.24-.61v-2.33c0-.24.09-.46.24-.61.15-.15.34-.23.58-.23h1.16c.61 0 1.04-.19 1.29-.56.26-.38.39-.87.39-1.48 0-.32-.06-.6-.17-.84-.11-.24-.27-.44-.48-.6-.21-.16-.47-.28-.79-.36-.32-.08-.71-.12-1.16-.12h-1.7c-.24 0-.43-.09-.58-.24-.15-.15-.23-.34-.23-.58V7.58c0-.24.08-.43.23-.58.15-.15.34-.23.58-.23h2.33c.24 0 .43.08.58.23.15.15.23.34.23.58v.58c0 .24-.08.43-.23.58-.15.15-.34.23-.58.23h-1.16c-.24 0-.43.09-.58.24-.15.15-.23.34-.23.58v1.16c0 .24.09.43.24.58.15.15.34.23.58.23h1.7c.24 0 .43.09.58.23.15.15.24.35.24.59 0 .24-.09.43-.24.58-.15.15-.34.23-.58.23h-1.7c-.24 0-.43.08-.58.23-.15.15-.23.34-.23.58v1.16c0 .24.09.43.24.58.15.15.34.23.58.23h1.16c.24 0 .43.09.58.24.15.15.23.34.23.58v.58c0 .24-.08.43-.23.58z'/%3E%3C/svg%3E");
}

.case-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.case-dialog::backdrop {
  background: rgba(10, 16, 15, 0.72);
}

.dialog-close {
  position: sticky;
  z-index: 3;
  top: 12px;
  float: right;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 12px 12px -54px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.case-dialog-body {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.case-modal-header {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.case-modal-header img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: 8px;
}

.case-modal-header h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

.case-modal-header p:not(.eyebrow) {
  color: var(--muted);
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.case-metrics div {
  padding: 16px;
  background: var(--mist);
  border-radius: 8px;
}

.case-metrics strong,
.case-metrics span {
  display: block;
}

.case-metrics strong {
  color: var(--teal-dark);
  font-size: 24px;
}

.case-detail-section {
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.case-detail-section h3 {
  margin: 0;
  font-size: 22px;
}

.case-detail-section p,
.case-detail-section ul {
  margin: 0;
  color: var(--muted);
}

.case-detail-section ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.case-gallery img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 8px;
}

.case-videos {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-videos h3 {
  margin: 0;
}

.case-videos a {
  color: var(--teal-dark);
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 10px 18px;
  }

  .header-nav {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .hero-inner {
    min-height: 82vh;
    padding: 116px 22px 60px;
    margin-left: 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .stats-grid,
  .service-grid,
  .service-details-heading,
  .service-detail-grid,
  .works-grid,
  .certificate-grid,
  .two-column,
  .design-layout,
  .design-grid,
  .vent-layout,
  .quiz-layout,
  .contact-layout,
  .case-modal-header {
    grid-template-columns: 1fr;
  }

  .quiz-copy {
    position: static;
  }

  .section {
    padding: 62px 20px;
  }

  .section-heading.with-action {
    display: grid;
    align-items: start;
  }

  .case-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .site-header {
    min-height: 64px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .button {
    width: 100%;
    min-height: 46px;
  }

  .header-actions .button {
    width: auto;
  }

  .hero,
  .hero-inner {
    min-height: 78vh;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle,
  .section-copy p,
  .section-heading p,
  .quiz-copy p {
    font-size: 18px;
  }

  .section-copy h2,
  .section-heading h2,
  .quiz-copy h2 {
    font-size: 32px;
  }

  .stats-grid {
    padding: 18px;
  }

  .vent-animation {
    min-height: 320px;
  }

  .room-outline {
    inset: 44px 28px;
  }

  .choice-grid,
  .checkbox-grid,
  .metric-row,
  .case-gallery,
  .case-metrics {
    grid-template-columns: 1fr;
  }

  .work-card h3,
  .work-card p {
    min-height: 0;
  }

  .quiz-card,
  .lead-form,
  .case-dialog-body {
    padding: 18px;
  }

  .quiz-actions,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .requisite-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 32px 16px;
  }

  .footer-main {
    gap: 24px;
  }

  .requisites-group {
    gap: 16px;
  }

  .requisite-item {
    font-size: 13px;
  }
}

@media (max-width: 525px) {
  body {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section-copy h2,
  .section-heading h2,
  .quiz-copy h2 {
    font-size: 28px;
  }

  .hero-subtitle,
  .section-copy p,
  .section-heading p,
  .quiz-copy p {
    font-size: 19px;
  }

  .section {
    padding: 52px 16px;
  }
}

.admin-body {
  min-height: 100vh;
  background: #edf4f1;
}

.admin-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 22px;
}

.admin-login-card {
  display: grid;
  gap: 18px;
  width: min(420px, 100%);
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  margin: 0;
  font-size: 30px;
}

.admin-brand {
  color: var(--ink);
}

.admin-brand .brand-mark {
  background: transparent;
  box-shadow: 0 0 0 1px rgba(24, 33, 31, 0.12);
}

.admin-brand small {
  color: var(--muted);
}

.admin-app {
  min-height: 100vh;
}

.admin-top {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.admin-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  max-width: 1420px;
  padding: 24px;
  margin: 0 auto;
}

.admin-tabs {
  position: sticky;
  top: 92px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-tabs button,
.work-list-items button {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 850;
  text-align: left;
}

.admin-tabs button.is-active,
.work-list-items button.is-active {
  border-color: var(--teal);
  background: var(--mist);
  color: var(--teal-dark);
}

.admin-panels {
  min-width: 0;
}

.admin-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(24, 33, 31, 0.06);
}

.admin-panel.is-active {
  display: block;
}

.admin-panel-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 28px;
}

.admin-panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.admin-form h3 {
  padding-top: 18px;
  margin: 10px 0 0;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.admin-form h3:first-child {
  padding-top: 0;
  border-top: 0;
}

.admin-grid-2,
.admin-grid-4 {
  display: grid;
  gap: 12px;
}

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

.admin-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
}

.admin-actions-top {
  position: sticky;
  z-index: 2;
  top: 76px;
  margin: -4px -4px 4px;
  padding: 12px 4px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.work-admin-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
}

.work-admin-list {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.work-list-items {
  display: grid;
  gap: 8px;
}

.work-list-items button strong,
.work-list-items button span {
  display: block;
}

.work-list-items button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.leads-list {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.lead-item {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lead-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.lead-item header span {
  color: var(--muted);
  font-size: 13px;
}

.lead-item p {
  margin: 0;
  color: var(--muted);
}

.lead-item dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 12px;
  margin: 0;
}

.lead-item dt {
  color: var(--muted);
  font-size: 13px;
}

.lead-item dd {
  margin: 0;
  font-weight: 750;
}

.lead-attachments {
  display: grid;
  gap: 6px;
}

.lead-attachments a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lead-item pre {
  overflow: auto;
  max-height: 320px;
  padding: 12px;
  background: #111817;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
}

.analytics-dashboard {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.analytics-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.analytics-card {
  min-height: 96px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.analytics-card span,
.analytics-card strong {
  display: block;
}

.analytics-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.analytics-card strong {
  margin-top: 8px;
  color: var(--teal-dark);
  font-size: 30px;
  line-height: 1;
}

.analytics-section {
  display: grid;
  gap: 12px;
}

.analytics-section h3 {
  margin: 0;
  font-size: 20px;
}

.analytics-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.analytics-fields span {
  padding: 8px 10px;
  background: var(--mist);
  border-radius: 999px;
  color: var(--teal-dark);
  font-weight: 850;
}

.analytics-session-list {
  display: grid;
  gap: 10px;
}

.analytics-events {
  display: grid;
  gap: 8px;
}

.analytics-event-row {
  display: grid;
  grid-template-columns: 140px 170px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.analytics-event-row span {
  color: var(--muted);
  font-size: 13px;
}

.analytics-event-row code {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .admin-layout,
  .work-admin-layout,
  .admin-grid-2,
  .admin-grid-4 {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .work-admin-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .admin-top {
    display: grid;
  }

  .admin-top-actions,
  .admin-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .admin-top-actions .button,
  .admin-actions .button {
    width: auto;
  }

  .admin-layout,
  .admin-form,
  .work-admin-list,
  .leads-list {
    padding: 14px;
  }

  .lead-item header,
  .lead-item dl,
  .analytics-cards,
  .analytics-event-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}
