*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #2F714A;
  --accent-hover: #255A3C;
  --accent-soft: rgba(47, 113, 74, 0.08);
  --accent-glow: rgba(47, 113, 74, 0.2);
  --accent-ink: #2B6844;
  --accent-border: rgba(47, 113, 74, 0.18);
  --header-bg: #2F714A;
  --logo-gold: #FCCC14;
  --logo-gold-hover: #E8B800;
  --logo-gold-light: #FFD63A;
  --logo-gold-soft: rgba(252, 204, 20, 0.16);
  --bg: #ffffff;
  --bg-subtle: #f8f9fb;
  --bg-muted: #f1f3f6;
  --border: #e8eaef;
  --border-light: #f0f1f4;
  --text-primary: #0f1117;
  --text-secondary: #5c6370;
  --text-tertiary: #8b919e;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(252, 204, 20, 0.28);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--logo-gold);
}

.header__logo {
  --logo-h: 54px;
  width: var(--logo-h);
  height: var(--logo-h);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: width 0.15s ease;
}

.header__logo.is-fixed-height {
  height: calc(var(--logo-h) * var(--logo-scale, 0.9));
  width: auto;
  aspect-ratio: var(--logo-ratio);
}

.header__logo-mark {
  width: 100%;
  height: 100%;
  display: block;
  background-color: var(--logo-color, var(--logo-gold));
  -webkit-mask-image: var(--logo-src);
  mask-image: var(--logo-src);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.header__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--logo-gold);
}

.header__brand.is-logo-only .header__name {
  display: none;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.15s ease;
}

.header__link:hover {
  color: #fff;
}

.header__link--active {
  color: var(--logo-gold);
  font-weight: 600;
}

.header__phone,
.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--logo-gold);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.header__phone {
  color: var(--logo-gold);
  background: transparent;
}

.header__phone:hover {
  color: var(--logo-gold-light);
  border-color: var(--logo-gold-light);
  background: var(--logo-gold-soft);
}

.header__phone-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  flex-shrink: 0;
}

.header__cta {
  color: var(--header-bg);
  background: var(--logo-gold);
  border-color: var(--logo-gold);
}

.header__cta:hover {
  color: var(--header-bg);
  background: var(--logo-gold-hover);
  border-color: var(--logo-gold-hover);
}

/* ── Shared modal shell ── */
.ui-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.ui-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ui-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 23, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ui-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(860px, calc(100vh - 32px));
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: translateY(12px) scale(0.985);
  transition: transform 0.22s ease;
}

.ui-modal.is-open .ui-modal__dialog {
  transform: none;
}

.ui-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ui-modal__close:hover {
  border-color: #d5d8e0;
  color: var(--text-primary);
  background: var(--bg);
}

.ui-modal__close svg {
  width: 18px;
  height: 18px;
}

body.modal-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .ui-modal {
    padding: 24px;
  }

  .ui-modal__dialog {
    max-height: calc(100vh - 48px);
  }
}

/* ── Lead / request modal ── */
.lead-modal .ui-modal__dialog {
  width: min(440px, 100%);
}

.lead-modal__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 24px 24px;
}

.lead-modal__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 36px;
}

.lead-modal__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text-primary);
}

.lead-modal__subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.lead-modal__product {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.lead-modal__product.is-visible {
  display: flex;
}

.lead-modal__product-label {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.lead-modal__product-name {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
}

.lead-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead-modal__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.lead-modal__input,
.lead-modal__textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lead-modal__input::placeholder,
.lead-modal__textarea::placeholder {
  color: var(--text-tertiary);
}

.lead-modal__input:focus,
.lead-modal__textarea:focus {
  border-color: rgba(47, 113, 74, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lead-modal__textarea {
  min-height: 88px;
  resize: vertical;
}

.lead-modal__submit {
  width: 100%;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lead-modal__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.lead-modal__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lead-modal-spin 0.7s linear infinite;
}

@keyframes lead-modal-spin {
  to {
    transform: rotate(360deg);
  }
}

.lead-modal__status {
  margin: -4px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid transparent;
}

.lead-modal__status--error {
  background: rgba(214, 69, 69, 0.1);
  border-color: rgba(214, 69, 69, 0.25);
  color: #b23a3a;
}

.lead-modal__status--success {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-ink);
}

.lead-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  cursor: pointer;
}

.lead-modal__consent input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.lead-modal__consent a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-modal__consent a:hover {
  color: var(--accent-hover);
}

.lead-modal__note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-tertiary);
  text-align: center;
}

/* ── Legal / privacy page ── */
.legal-page {
  background: var(--bg);
  padding: 48px 0 72px;
}

.legal-page__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

.legal-page__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.legal-page__title {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.legal-page__meta {
  margin: 0 0 36px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.legal-page__section {
  margin-bottom: 28px;
}

.legal-page__section h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.legal-page__section p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-page__section ul {
  margin: 0 0 10px;
  padding-left: 22px;
}

.legal-page__section li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.legal-page__section a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__section a:hover {
  color: var(--accent-hover);
}

@media (max-width: 640px) {
  .legal-page {
    padding: 32px 0 56px;
  }

  .legal-page__inner {
    padding: 0 20px;
  }

  .legal-page__title {
    font-size: 26px;
  }
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: white;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--bg-subtle);
  border-color: #d5d8e0;
}

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

.btn--primary img {
  filter: brightness(0) invert(1);
}

/* ── Site footer ── */
.site-footer {
  background: var(--header-bg);
  color: #fff;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 28px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(140px, 1fr));
  gap: 40px 32px;
  padding-bottom: 40px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.site-footer__mark {
  display: inline-block;
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__mark:hover {
  color: var(--logo-gold);
}

.site-footer__geo {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__phone {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--logo-gold);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.site-footer__phone:hover {
  color: var(--logo-gold-hover);
}

.site-footer__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--header-bg);
  background: var(--logo-gold);
  border: 1px solid var(--logo-gold);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-footer__cta:hover {
  color: var(--header-bg);
  background: var(--logo-gold-hover);
  border-color: var(--logo-gold-hover);
}

.site-footer__email {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__email:hover {
  color: #fff;
}

.site-footer__socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__social svg {
  width: 28px;
  height: 28px;
  display: block;
}

.site-footer__col-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.site-footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__list a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__list a:hover {
  color: #fff;
}

.site-footer__hours {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__hours li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__hours-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__hours-value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.site-footer__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__copy {
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.site-footer__reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
}

@media (max-width: 960px) {
  .header__nav .header__link:not(.header__link--always) {
    display: none;
  }

  .header__nav {
    gap: 8px;
  }

  .header__logo {
    --logo-h: 40px;
  }

  .header__name {
    font-size: 14px;
  }

  .header__phone-text {
    display: none;
  }

  .header__phone,
  .header__cta {
    height: 34px;
    font-size: 13px;
  }

  .header__cta {
    padding: 0 12px;
  }

  .header__phone {
    width: 34px;
    padding: 0;
    gap: 0;
  }

  .header__phone-icon {
    width: 16px;
    height: 16px;
  }

  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
}

@media (max-width: 720px) {
  .site-footer__inner {
    padding: 44px 24px 24px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 14px;
  }

  .site-footer__reqs {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .header__inner {
    padding: 0 20px;
  }

  .header__phone,
  .header__cta {
    height: 32px;
    font-size: 12px;
  }

  .header__cta {
    padding: 0 10px;
  }

  .header__phone {
    width: 32px;
  }

  .header__phone-icon {
    width: 15px;
    height: 15px;
  }
}
