@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-1.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-3.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-4.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-2.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-7.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-8.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-6.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-5.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #89051c;
  --brand-hover: #6d0416;
  --brand-soft: #fdf2f4;
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-dark: #1c1816;
  --surface-dark-2: #28221f;
  --text: #1f1c1a;
  --text-muted: #5c554f;
  --border: #e6dfd5;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(28, 22, 18, 0.06);
  --font: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 8px;
  padding: 11px 18px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.btn-outline-dark {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-outline-dark:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 165px;
  height: auto;
}

.brand-tag {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-link {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--brand);
}

.messenger-pills {
  display: flex;
  gap: 6px;
}

.pill {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg);
}

.pill-tg:hover {
  border-color: #229ed9;
  color: #167eb0;
}

.pill-max:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.burger-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 0;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-inner a {
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.mobile-menu-contacts {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--surface-dark) 0%, #2b1418 100%);
  color: #ffffff;
  padding: 52px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f3c1c8;
  background: rgba(137, 5, 28, 0.45);
  border: 1px solid rgba(243, 193, 200, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.15;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 54ch;
}

.hero-facts {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-facts li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e11d48;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  margin: 0;
  background: var(--surface-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-card figcaption {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.hero-card figcaption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

/* Sections */
section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2,
.foreman-content h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  max-width: 62ch;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 8px;
}

/* Catalog */
.catalog-count {
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.tabs-primary,
.tabs-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn,
.subtab-btn {
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.tab-btn {
  padding: 10px 18px;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.tab-btn:hover {
  border-color: var(--brand);
}

.tab-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.subtab-btn {
  padding: 7px 14px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.subtab-btn.is-active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.project-thumb {
  position: relative;
  background: #ffffff;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.02);
}

.project-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}

.project-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.project-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.project-meta span {
  background: var(--bg);
  padding: 3px 9px;
  border-radius: 6px;
}

.project-price-row {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.project-price-row strong {
  color: var(--text);
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.catalog-more-wrap {
  margin-top: 20px;
}

.custom-project-banner {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--brand-soft);
  border: 1.5px solid rgba(137, 5, 28, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.custom-project-text h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.custom-project-text p {
  margin: 0;
  color: var(--text-muted);
  max-width: 66ch;
}

/* Foreman */
.foreman-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.foreman-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.foreman-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.foreman-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.foreman-photo figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.foreman-quote {
  margin: 16px 0 0;
  padding: 20px 24px;
  background: var(--bg);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.foreman-quote p {
  margin: 0 0 12px;
  font-size: 16px;
}

.foreman-quote footer {
  font-size: 15px;
  color: var(--text-muted);
}

/* Process Timeline + Estimate Card */
.process-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.process-timeline {
  list-style: none;
  margin: 0;
  padding: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.timeline-step {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.timeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: -20px;
  width: 2px;
  background: #d8cfc3;
}

.step-dot {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--bg);
}

.step-body h3 {
  margin: 2px 0 4px;
  font-size: 19px;
  line-height: 1.25;
}

.step-body p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.estimate-card {
  background: var(--surface-dark);
  color: #ffffff;
  border-radius: var(--radius);
  border-top: 4px solid var(--brand);
  padding: 26px;
  box-shadow: 0 14px 32px rgba(28, 22, 18, 0.14);
}

.estimate-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f3c1c8;
  margin-bottom: 6px;
}

.estimate-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.25;
}

.estimate-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 11px;
}

.estimate-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.estimate-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #fb7185;
}

.estimate-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

/* Portfolio & Review */
.portfolio-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.portfolio-swipe-hint {
  display: none;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

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

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-card-body h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.portfolio-card-body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.portfolio-loc {
  margin-top: 2px !important;
  margin-bottom: 12px !important;
}

.portfolio-quote-btn {
  margin-top: auto;
  width: 100%;
}

.review-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.review-text blockquote {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.review-author {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.review-action {
  flex-shrink: 0;
}

/* FAQ */
.faq-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  min-height: 52px;
  padding: 14px 28px 14px 0;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  display: flex;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 78ch;
}

/* Lead Form Section */
.lead-section {
  background: linear-gradient(135deg, #1c1816 0%, #3a0d16 100%);
  color: #ffffff;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.lead-info h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
}

.lead-info > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
}

.lead-benefits {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.lead-benefits li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}

.lead-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #fb7185;
}

.lead-direct-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.lead-direct-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
}

.lead-direct-phone {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 12px;
}

.lead-direct-phone:hover {
  color: #f3c1c8;
}

.direct-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lead-form {
  background: var(--surface);
  color: var(--text);
  padding: 28px;
  border-radius: var(--radius);
  border-top: 4px solid var(--brand);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.lead-form-head {
  margin-bottom: 18px;
}

.lead-form h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.lead-form-head p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.channel-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}

.channel-fieldset legend {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  padding: 0;
}

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

.channel-pill {
  position: relative;
  cursor: pointer;
}

.channel-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.channel-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: all 0.15s ease;
}

.channel-pill input:checked + span {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.channel-pill input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 3px;
}

.hint {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

:is(:user-invalid, .user-invalid-fallback) {
  border-color: #c92a2a !important;
  background-color: #fff5f5 !important;
}

.error-msg {
  display: none;
  color: #c92a2a;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

:is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.consent-field {
  margin-bottom: 16px;
}

.consent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.field .consent-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 0;
  min-height: 44px;
  padding-top: 10px;
}

.field .consent-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  accent-color: var(--brand);
  cursor: pointer;
}

@supports not (accent-color: #89051c) {
  .field .consent-label {
    position: relative;
    padding-left: 30px;
  }
  .field .consent-label input[type="checkbox"] {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    border: 0 !important;
  }
  .field .consent-label input[type="checkbox"] + span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: #ffffff;
    box-sizing: border-box;
  }
  .field .consent-label input[type="checkbox"]:checked + span::before {
    background: var(--brand);
    border-color: var(--brand);
  }
  .field .consent-label input[type="checkbox"]:checked + span::after {
    content: "✓";
    position: absolute;
    left: 4px;
    top: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
  }
  .field .consent-label input[type="checkbox"]:focus-visible + span::before {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }
}

.consent-row:has(:is(:user-invalid, .user-invalid-fallback)) + .error-msg {
  display: block;
}

.link-btn {
  background: none;
  border: 0;
  padding: 6px 0;
  min-height: 36px;
  font: inherit;
  font-size: 13px;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--brand-hover);
}

.form-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 15px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-list span {
  color: rgba(255, 255, 255, 0.62);
}

.footer-list a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.footer-list a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-policy-btn {
  background: none;
  border: 0;
  padding: 6px 0;
  min-height: 36px;
  font: inherit;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  cursor: pointer;
}

.footer-policy-btn:hover {
  color: #ffffff;
}

.privacy-body p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.privacy-body p:last-child {
  margin-bottom: 0;
}

.privacy-body a {
  color: var(--brand);
  font-weight: 700;
}

/* Native <dialog> Modals */
dialog.modal-dialog {
  padding: 0;
  border: 0;
  border-radius: 14px;
  width: min(860px, calc(100% - 24px));
  max-height: 90dvh;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

dialog.modal-narrow {
  width: min(560px, calc(100% - 24px));
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(20, 16, 14, 0.68);
  backdrop-filter: blur(3px);
}

.modal-box {
  display: flex;
  flex-direction: column;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.modal-body {
  padding: 20px;
}

.project-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.pm-media-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pm-view-tabs {
  display: flex;
  gap: 8px;
}

.pm-media {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.pm-media img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.pm-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pm-specs {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pm-specs div {
  background: var(--bg);
  padding: 8px 10px;
  border-radius: 8px;
}

.pm-specs dt {
  font-size: 12px;
  color: var(--text-muted);
}

.pm-specs dd {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
}

.pm-desc {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--text-muted);
}

.pm-price-box {
  padding: 12px 14px;
  background: var(--brand-soft);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 15px;
}

.pm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lrm-note {
  margin-top: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.lrm-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-family: inherit;
  white-space: pre-wrap;
  font-size: 14px;
  margin: 0 0 16px;
}

.lrm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lrm-copied {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #166534;
}

.mobile-sticky-bar {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .hero-grid,
  .foreman-grid,
  .process-layout,
  .lead-grid,
  .project-modal-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .custom-project-banner,
  .review-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .messenger-pills,
  #header-cta-btn {
    display: none;
  }
  .mobile-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 8px;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .mobile-sticky-bar.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }
  .mobile-sticky-bar .btn {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 20px 0 28px;
  }
  .hero-grid {
    gap: 16px;
  }
  .hero-content {
    display: contents;
  }
  .hero-eyebrow {
    order: 1;
    justify-self: start;
    margin-bottom: 0;
    font-size: 11px;
    padding: 4px 10px;
  }
  .hero h1 {
    order: 2;
    margin-bottom: 0;
    font-size: 25px;
    line-height: 1.16;
  }
  .hero-media {
    order: 3;
  }
  .hero-card img {
    aspect-ratio: 16 / 9;
  }
  .hero-card figcaption {
    padding: 10px 14px;
    font-size: 13px;
  }
  .hero-cta {
    order: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-cta .btn-lg {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 14px;
  }
  .hero-lead {
    order: 5;
    margin-bottom: 0;
    font-size: 15px;
  }
  .hero-facts {
    order: 6;
    margin-bottom: 0;
    gap: 8px;
  }
  .hero-facts li {
    font-size: 14px;
  }
  .btn-sm,
  .tab-btn,
  .subtab-btn,
  .lead-info .direct-messengers .btn {
    min-height: 44px;
  }
  .tab-btn {
    padding: 10px 13px;
    font-size: 14px;
  }
  .subtab-btn {
    padding: 9px 12px;
    font-size: 13px;
  }
  .mobile-menu-inner a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 6px 0;
  }
  .footer-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
}

@media (max-width: 560px) {
  section {
    padding: 40px 0;
  }
  .header-inner {
    gap: 8px;
    min-height: 60px;
  }
  .brand-logo {
    width: 118px;
  }
  .brand-tag {
    font-size: 10px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .phone-link {
    font-size: 13px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .burger-btn {
    width: 44px;
    height: 44px;
    padding: 10px;
  }
  dialog.modal-dialog {
    width: calc(100% - 12px);
    max-height: 92dvh;
  }
  .modal-body {
    padding: 14px;
  }
  .project-modal-grid {
    gap: 14px;
  }
  .pm-media {
    min-height: 0;
    padding: 6px;
  }
  .pm-actions .btn {
    min-height: 46px;
  }
  .portfolio-swipe-hint {
    display: block;
  }
  .portfolio-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .portfolio-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .review-box {
    padding: 18px;
  }
  .review-action,
  .review-action .btn {
    width: 100%;
    min-height: 44px;
  }
  .lead-form {
    padding: 20px 18px;
  }
  .site-footer {
    padding-bottom: 36px;
  }
  .estimate-card {
    padding: 20px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
