:root {
  --ink: #102d37;
  --ink-soft: #2c4c56;
  --petrol: #123946;
  --petrol-deep: #0b2c36;
  --gold: #d6b12d;
  --paper: #f7f7f5;
  --muted: #879298;
  --line: rgba(16, 45, 55, 0.14);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(9, 31, 38, 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;
  background: var(--paper);
  color: var(--ink);
}

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

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

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  height: 80px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(22px, 6vw, 76px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand img {
  height: 42px;
  object-fit: contain;
  width: 84px;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: clamp(22px, 4vw, 40px);
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  color: #24383e;
}

.menu-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  display: none;
  font-weight: 700;
  padding: 10px 12px;
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 50, 61, 0.96), rgba(12, 52, 63, 0.88)),
    var(--hero-image) center / cover no-repeat;
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
  padding: clamp(72px, 10vw, 118px) 22px 80px;
  position: relative;
  text-align: center;
}

.hero-logo {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  height: 176px;
  justify-content: center;
  margin-bottom: clamp(44px, 7vw, 68px);
  width: min(240px, 68vw);
}

.hero-logo img {
  width: 132px;
}

.hero h1,
.subpage-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 9vw, 100px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.hero h1 em,
.split-section h2 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 700;
  line-height: 1.45;
  margin: 28px auto 10px;
  max-width: 690px;
}

.scroll-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  letter-spacing: 5px;
  margin-top: 4px;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 22px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 56px;
  padding: 0 38px;
}

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

.button.primary {
  background: var(--gold);
  color: var(--ink);
}

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

.split-section,
.scope-section,
.services-section,
.gallery-section,
.process-section,
.quote-section,
.cta-section,
.contact-section,
.services-grid.standalone {
  margin: 0 auto;
  max-width: 1140px;
  padding: clamp(78px, 10vw, 132px) 22px;
}

.split-section {
  align-items: center;
  display: grid;
  gap: clamp(42px, 8vw, 96px);
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1.18fr);
}

.split-section.compact {
  padding-top: 88px;
}

.split-section .kicker,
.label,
.subpage-hero p {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.split-section h2,
.scope-section h2,
.services-section h2,
.process-section h2,
.quote-section h2,
.cta-section h2,
.contact-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.05;
  margin: 0 0 28px;
}

.split-section p,
.section-intro,
.process-section > div > p,
.cta-section p,
.contact-section p {
  color: #657177;
  font-size: 18px;
  line-height: 1.8;
}

.split-section img {
  box-shadow: var(--shadow);
  height: min(560px, 76vh);
  object-fit: cover;
  width: 100%;
}

.scope-section {
  max-width: none;
  padding-left: max(22px, calc((100vw - 1500px) / 2));
  padding-right: max(22px, calc((100vw - 1500px) / 2));
}

.scope-section h2,
.scope-section .label,
.scope-section .section-intro {
  max-width: 780px;
}

.scope-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 54px;
}

.scope-grid article {
  background: var(--white);
  border: 1px solid rgba(16, 45, 55, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 37, 45, 0.08);
  padding: 38px;
}

.process-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px;
}

.scope-grid h3,
.process-grid h3,
.service-card h3,
.service-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.15;
  margin: 0 0 18px;
}

.scope-grid ul {
  color: #5d6a70;
  line-height: 1.9;
  margin: 0;
  padding-left: 20px;
}

.scope-grid li + li {
  margin-top: 8px;
}

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

.section-heading a,
.service-card a,
.phone-link {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

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

.gallery-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.gallery-grid.preview {
  margin-top: 28px;
}

.gallery-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.gallery-card a {
  display: block;
}

.gallery-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.gallery-card:hover img {
  transform: scale(1.035);
}

.gallery-card div {
  padding: 18px;
}

.gallery-card h2,
.gallery-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 8px;
}

.gallery-card p {
  color: #657177;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.empty-state {
  background: var(--white);
  border: 1px dashed rgba(16, 45, 55, 0.28);
  color: #657177;
  margin-top: 28px;
  padding: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
}

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

.service-card div {
  padding: 28px;
}

.service-card p {
  color: #627079;
  line-height: 1.7;
}

.process-section {
  display: grid;
  gap: 50px;
  grid-template-columns: 0.8fr 1.2fr;
}

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

.process-grid span {
  color: var(--gold);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  margin-bottom: 16px;
}

.process-grid p {
  color: #657177;
  line-height: 1.7;
}

.quote-section {
  background:
    linear-gradient(rgba(13, 48, 59, 0.88), rgba(13, 48, 59, 0.88)),
    url("/assets/interior-hero.png") center / cover;
  color: var(--white);
  max-width: none;
  text-align: center;
}

.quote-section h2 {
  margin: 0 auto;
  max-width: 920px;
}

.cta-section {
  text-align: center;
}

.cta-section div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 34px;
}

.subpage-hero {
  background: var(--petrol);
  color: var(--white);
  padding: clamp(92px, 12vw, 150px) 22px;
  text-align: center;
}

.subpage-hero h1 {
  margin: 0 auto;
  max-width: 920px;
}

.contact-section {
  display: grid;
  gap: 56px;
  grid-template-columns: 0.82fr 1.18fr;
}

.contact-section dl {
  display: grid;
  gap: 10px;
}

.contact-section dt {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.contact-section dd {
  margin: 0 0 18px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
  padding: 34px;
}

.contact-form label {
  color: var(--ink);
  display: grid;
  font-weight: 800;
  gap: 8px;
}

.contact-form input,
.contact-form textarea,
.admin-panel input,
.admin-panel textarea {
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  padding: 14px 15px;
  width: 100%;
}

.site-footer {
  background: #0e303a;
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 34px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding: 70px max(22px, calc((100vw - 1140px) / 2)) 30px;
}

.site-footer img {
  background: var(--white);
  height: 74px;
  object-fit: contain;
  padding: 8px;
  width: 110px;
}

.site-footer h3 {
  color: var(--white);
  margin: 0 0 16px;
}

.site-footer a,
.site-footer span {
  display: block;
  line-height: 1.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  grid-column: 1 / -1;
  padding-top: 24px;
}

.admin-body {
  background: #edf0ef;
}

.admin-shell {
  margin: 0 auto;
  max-width: 1320px;
  padding: 34px 22px 80px;
}

.admin-top {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(15, 37, 45, 0.08);
  padding: 28px;
}

.admin-panel + .admin-panel {
  margin-top: 22px;
}

.admin-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.admin-panel h3 {
  border-top: 1px solid var(--line);
  font-size: 17px;
  margin: 28px 0 16px;
  padding-top: 22px;
}

.admin-body .button.ghost {
  border-color: var(--line);
  color: var(--ink);
}

.admin-panel label {
  color: var(--ink);
  display: grid;
  font-size: 14px;
  font-weight: 850;
  gap: 8px;
  line-height: 1.3;
}

.admin-panel textarea {
  min-height: 120px;
}

.expert-panel textarea {
  font-family: Consolas, Monaco, monospace;
  min-height: 520px;
}

.cms-form {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.cms-sidebar {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 12px;
  position: sticky;
  top: 98px;
}

.cms-sidebar button {
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 12px 14px;
  text-align: left;
}

.cms-sidebar button:hover,
.cms-sidebar button.is-active {
  background: var(--paper);
  color: var(--ink);
}

.cms-sidebar button.is-active {
  border-left: 3px solid var(--gold);
}

.cms-section {
  display: none;
}

.cms-section.is-active {
  display: block;
}

.admin-grid {
  display: grid;
  gap: 18px;
}

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

.repeat-row {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  padding: 14px 0;
}

.repeat-card {
  background: #f8f9f8;
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
  margin: 16px 0;
  padding: 18px;
}

.image-field {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 120px minmax(190px, 0.5fr);
}

.image-preview {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--line);
  color: #657177;
  display: flex;
  font-size: 13px;
  justify-content: center;
  overflow: hidden;
  width: 120px;
}

.image-field img,
.image-preview img {
  height: 100%;
  object-fit: cover;
  width: 120px;
}

.file-label {
  background: var(--paper);
  border: 1px dashed rgba(16, 45, 55, 0.28);
  min-height: 88px;
  padding: 13px;
}

.file-label span {
  color: #657177;
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.remove-image {
  align-items: center;
  display: flex !important;
  gap: 8px !important;
}

.remove-image input {
  width: auto !important;
}

.sticky-save {
  align-items: center;
  background: rgba(237, 240, 239, 0.94);
  border: 1px solid var(--line);
  bottom: 0;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  padding: 14px;
  position: sticky;
  z-index: 10;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.notice {
  background: #fff8d7;
  border: 1px solid rgba(214, 177, 45, 0.4);
  margin-bottom: 18px;
  padding: 14px 16px;
}

.error {
  background: #ffe9e9;
  border-color: #e6a1a1;
}

@media (max-width: 860px) {
  .site-header {
    height: 72px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    background: var(--white);
    border-top: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 20px;
    position: absolute;
    right: 0;
    top: 72px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: calc(100vh - 72px);
  }

  .split-section,
  .process-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .scope-grid,
  .services-grid,
  .gallery-grid,
  .process-grid,
  .site-footer,
  .cms-form,
  .admin-grid.two,
  .image-field,
  .repeat-row {
    grid-template-columns: 1fr;
  }

  .cms-sidebar {
    position: static;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero h1,
  .subpage-hero h1 {
    font-size: 50px;
  }

  .hero-actions,
  .cta-section div,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
