:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #62707a;
  --line: #d9e0e5;
  --panel: #ffffff;
  --bg: #f4f6f7;
  --accent: #e5472f;
  --accent-dark: #b93121;
  --steel: #25323b;
  --green: #2c7a62;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(260px, auto);
  gap: 24px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(244, 246, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  font-weight: 800;
  background: var(--steel);
  border-radius: 8px;
}

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

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.nav a:hover,
.call-link:hover,
.footer a:hover {
  color: var(--accent);
}

.call-link {
  display: block;
  color: var(--steel);
  font-weight: 800;
}

.call-stack {
  display: grid;
  gap: 4px;
  justify-self: end;
  text-align: right;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(78vh - 82px);
  padding: clamp(26px, 4vw, 54px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(244, 246, 247, 0.98) 0%, rgba(244, 246, 247, 0.8) 58%, rgba(244, 246, 247, 0.56) 100%),
    repeating-linear-gradient(135deg, rgba(37, 50, 59, 0.08), rgba(37, 50, 59, 0.08) 1px, transparent 1px, transparent 14px);
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.18;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.62;
}

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

.quick-booking {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin-top: 22px;
  padding: 18px;
  background: #ffffff;
  border: 2px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(229, 71, 47, 0.14);
}

.quick-booking b {
  color: var(--steel);
  font-size: 18px;
}

.quick-booking div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-booking a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  font-weight: 800;
  background: var(--accent);
  border-radius: 8px;
}

.quick-booking a:hover {
  background: var(--accent-dark);
}

.quick-booking small {
  color: var(--muted);
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.ghost {
  color: var(--steel);
  background: #fff;
}

.button.danger {
  min-height: 40px;
  color: #9f2418;
  background: #fff5f2;
  border-color: #ffc9bf;
}

.button.danger:hover {
  color: #fff;
  background: #b93121;
  border-color: #b93121;
}

.hero-media {
  align-self: stretch;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #d8dde0;
  box-shadow: 0 24px 60px rgba(23, 32, 38, 0.16);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.stats div {
  padding: 30px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.section-shell,
.split-section,
.custom-section,
.contact-band,
.map-section,
.estimate-section,
.price-section,
.corporate-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.services-section {
  padding-top: clamp(34px, 5vw, 62px);
}

.works-section {
  padding-bottom: clamp(28px, 4vw, 48px);
}

.process-section {
  padding-top: clamp(28px, 4vw, 48px);
}

.section-head p:not(.eyebrow),
.custom-section p,
.contact-band p {
  color: var(--muted);
  line-height: 1.65;
}

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

.service-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  background: var(--accent);
  border-radius: 8px;
}

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

.service-card strong {
  margin-top: auto;
  color: var(--steel);
  font-size: 18px;
}

.estimate-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

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

.estimate-grid article {
  min-height: 220px;
  padding: 22px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.estimate-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 800;
}

.estimate-grid p,
.quality-grid p,
.price-factors span {
  color: var(--muted);
  line-height: 1.55;
}

.estimate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: 30px;
  color: #fff;
  background: var(--steel);
}

.split-section .eyebrow,
.contact-band .eyebrow {
  color: #ffb3a7;
}

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

.feature-list div {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.feature-list span {
  color: #c9d2d8;
  line-height: 1.55;
}

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

.gallery-item {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #10171b;
}

.gallery-item figcaption {
  padding: 14px 16px;
  font-weight: 800;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process article {
  min-height: 230px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process span {
  display: block;
  margin-bottom: 40px;
  color: var(--accent);
  font-weight: 800;
}

.process p {
  color: var(--muted);
  line-height: 1.55;
}

.quality-section {
  background: #eef2f3;
  border-top: 1px solid var(--line);
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quality-grid article {
  min-height: 230px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-section {
  color: #fff;
  background: var(--steel);
}

.price-section .eyebrow {
  color: #ffb3a7;
}

.price-section .section-head p:not(.eyebrow) {
  color: #c9d2d8;
}

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

.price-factors div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.price-factors b,
.price-factors span {
  display: block;
}

.price-factors b {
  margin-bottom: 8px;
}

.price-factors span {
  color: #c9d2d8;
}

.corporate-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

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

.corporate-grid article {
  min-height: 220px;
  padding: 22px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.corporate-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.custom-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #fff;
}

.custom-section img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.custom-section:not(:has(img)) {
  display: block;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  color: #fff;
  background: var(--steel);
}

.contact-panel {
  display: grid;
  gap: 13px;
  align-content: center;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
}

.contact-panel .contact-phone {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  color: var(--accent);
  background: #fff5f2;
  border: 1px solid #ffd3ca;
  border-radius: 8px;
}

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

.contact-phone strong {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.15;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-panel span,
.contact-panel a {
  overflow-wrap: anywhere;
}

.map-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(340px, 1.22fr);
  gap: 28px;
  align-items: stretch;
  background: #fff;
}

.map-section .section-head {
  margin-bottom: 0;
}

.map-section .button {
  margin-top: 10px;
}

.map-frame {
  min-height: 420px;
  overflow: hidden;
  background: #dfe6e9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.admin-body {
  background: #eef2f3;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(18px, 4vw, 56px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
}

.admin-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 4vw, 56px);
}

.admin-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-card.wide {
  grid-column: 1 / -1;
}

.admin-card form {
  display: grid;
  gap: 14px;
}

.admin-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.admin-card input,
.admin-card textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-card textarea {
  min-height: 110px;
  resize: vertical;
}

.form-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.admin-preview div {
  padding: 18px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-preview b,
.admin-preview span {
  display: block;
}

.admin-preview b {
  color: var(--green);
  font-size: 34px;
}

.admin-note {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.admin-gallery-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-gallery-row b,
.admin-gallery-row span {
  display: block;
}

.admin-gallery-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .call-stack {
    text-align: right;
  }

  .hero,
  .split-section,
  .custom-section,
  .contact-band,
  .map-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .process,
  .estimate-grid,
  .quality-grid,
  .corporate-grid,
  .price-factors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .call-link {
    justify-self: start;
  }

  .call-stack {
    justify-self: start;
    text-align: left;
  }

  .quick-booking div {
    display: grid;
  }

  .hero-media {
    min-height: 280px;
  }

  .stats,
  .service-grid,
  .gallery-grid,
  .process,
  .estimate-grid,
  .quality-grid,
  .corporate-grid,
  .price-factors,
  .admin-layout,
  .admin-preview {
    grid-template-columns: 1fr;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-list div {
    grid-template-columns: 1fr;
  }

  .admin-card.wide {
    grid-column: auto;
  }

  .footer,
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-gallery-row {
    grid-template-columns: 1fr;
  }
}
