:root {
  --ink: #161a1d;
  --muted: #697077;
  --paper: #f7f4ee;
  --white: #ffffff;
  --line: rgba(22, 26, 29, 0.14);
  --accent: #d59a2f;
  --accent-dark: #9f6818;
  --forest: #1f3d35;
  --steel: #59656f;
  --shadow: 0 24px 70px rgba(22, 26, 29, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}

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

.brand-logo {
  width: clamp(124px, 13vw, 178px);
  height: auto;
  max-height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
}

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
}

.header-phone {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: end;
  padding: 150px clamp(18px, 6vw, 84px) 72px;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-background.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(10, 15, 14, 0.88), rgba(10, 15, 14, 0.44) 52%, rgba(10, 15, 14, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  max-width: 920px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  color: #17100a;
  background: var(--accent);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost.dark {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.hero-card {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 52px;
  z-index: 3;
  width: min(360px, calc(100vw - 36px));
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-card span,
.contact-methods span,
.project-card span,
.review-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-card strong {
  display: block;
  margin: 8px 0;
  font-size: 34px;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--forest);
  color: var(--white);
}

.stat {
  padding: 32px clamp(18px, 5vw, 60px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: 42px;
}

.stat span {
  color: rgba(255, 255, 255, 0.76);
}

.section {
  padding: clamp(70px, 10vw, 125px) clamp(18px, 6vw, 84px);
}

.about-section {
  padding-bottom: clamp(22px, 4vw, 42px);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.split p:not(.eyebrow),
.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.feature-list span {
  padding: 12px 16px;
  border: 1px solid rgba(213, 154, 47, 0.42);
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #f6efe4);
  font-weight: 700;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 700px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 280px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.service-card span {
  color: var(--accent-dark);
  font-weight: 900;
}

.service-card p,
.review-card p {
  color: var(--muted);
  line-height: 1.6;
}

.dark-band {
  color: var(--white);
  background: var(--ink);
}

.dark-band .section-heading h2 {
  color: var(--white);
}

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

.project-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #222;
}

.project-card:first-child {
  grid-column: auto;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  opacity: 0.78;
}

.project-card div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
}

.project-card span {
  color: rgba(255, 255, 255, 0.7);
}

.project-card h3 {
  color: var(--white);
}

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

.review-card {
  padding: 28px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(22, 26, 29, 0.08);
}

.review-card strong {
  display: block;
  margin-top: 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 7vw, 96px);
  background: var(--white);
}

.areas-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
  padding: clamp(48px, 7vw, 86px) clamp(18px, 6vw, 84px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(22, 26, 29, 0.94), rgba(31, 61, 53, 0.94)),
    url("assets/hero-background.jpg") center/cover;
}

.areas-section h2 {
  margin: 0;
  max-width: 560px;
  color: var(--white);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.areas-grid span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(8px);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.contact-methods a {
  padding: 18px;
  border: 1px solid var(--line);
}

.qr-block {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.qr-block img {
  width: 116px;
  height: 116px;
  border: 1px solid var(--line);
}

.lead-form {
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 28px;
  background: var(--paper);
}

label {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(18px, 6vw, 84px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer-logo {
  width: 132px;
  height: auto;
}

.admin-body {
  background: #eef0ed;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 54px);
  background: var(--ink);
  color: var(--white);
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 24px;
}

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

.admin-tabs button {
  padding: 14px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-tabs button.active {
  color: #17100a;
  background: var(--accent);
}

.admin-panel {
  display: none;
  min-height: 70vh;
  padding: 24px;
  background: var(--white);
}

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

.admin-message {
  margin: 0 0 18px;
  border: 1px solid rgba(184, 49, 47, 0.28);
  background: rgba(184, 49, 47, 0.08);
  color: #8a1f1d;
  padding: 12px 14px;
  font-weight: 800;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.form-grid,
.editable-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-card,
.lead-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfaf7;
}

.remove-btn {
  justify-self: start;
  border: 0;
  color: #a53322;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

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

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

.lead-card span,
.empty-state {
  color: var(--muted);
}

.lead-card p {
  color: var(--muted);
}

.lead-card dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px 10px;
  margin: 0;
}

.lead-card dt {
  color: var(--muted);
}

.lead-card dd {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 980px) {
  .nav-links,
  .header-phone {
    display: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }

  .stats-section,
  .split,
  .contact-section,
  .areas-section,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .reviews-grid,
  .project-grid,
  .areas-grid,
  .form-grid,
  .editable-list,
  .crm-board {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card img {
    min-height: 245px;
  }

  .project-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header,
  .admin-header,
  .site-footer,
  .panel-head,
  .qr-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    gap: 12px;
    padding-top: 12px;
  }

  .brand-logo {
    width: 116px;
    max-height: 56px;
  }

  .hero {
    min-height: auto;
    padding: 150px 22px 38px;
    align-items: start;
  }

  .hero-media {
    background-image: url("assets/hero-background-mobile.jpg");
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 7, 7, 0.62), rgba(8, 12, 11, 0.52) 34%, rgba(8, 12, 11, 0.82) 100%),
      linear-gradient(90deg, rgba(5, 7, 7, 0.72), rgba(5, 7, 7, 0.22));
  }

  .hero-content {
    max-width: 100%;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: 36px;
    line-height: 1.04;
  }

  .hero-copy {
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 10px;
    width: 100%;
    margin-top: 22px;
  }

  .btn {
    min-height: 46px;
    padding: 0 14px;
    font-size: 15px;
    white-space: nowrap;
  }

  .hero-card {
    width: 100%;
    margin-top: 30px;
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  }

  .hero-card strong {
    margin: 6px 0;
    font-size: 30px;
  }

  .hero-card p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.35;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .admin-layout {
    padding: 14px;
  }
}
