:root {
  --ink: #13201b;
  --muted: #5e6b65;
  --line: #dce3df;
  --paper: #f7f9f8;
  --white: #ffffff;
  --green: #1f6d55;
  --green-dark: #164f40;
  --steel: #344540;
  --amber: #c8892d;
  --shadow: 0 18px 50px rgba(19, 32, 27, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--site-font, "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif);
  line-height: 1.6;
}

body.is-editing {
  padding-bottom: 130px;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 76px;
  padding: 16px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.subpage .site-header {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.subpage-main {
  padding-top: 76px;
}

.subpage-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 270px;
  padding: clamp(70px, 8vw, 108px) clamp(20px, 5vw, 72px) 52px;
  background-color: var(--paper);
  background-position: center;
  background-size: cover;
}

.subpage-banner .section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.subpage-banner.has-page-background {
  min-height: 360px;
  color: var(--white);
}

.subpage-banner.has-page-background .section-heading > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
}

.records-section {
  padding-top: 48px;
}

.subpage-main .section-heading h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.12;
}

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

.brand-logo {
  width: auto;
  max-width: 72px;
  height: 42px;
  border-radius: 6px;
  object-fit: contain;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  color: currentColor;
  font-size: 11px;
  opacity: 0.78;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  padding: 8px 0;
}

.nav-entry {
  display: inline-flex;
  align-items: center;
}

.nav-drag-handle,
.nav-delete-button,
.nav-add-button {
  display: none;
}

.is-editing .nav {
  flex-wrap: wrap;
  gap: 8px;
}

.is-editing .nav-entry {
  display: grid;
  grid-template-columns: 28px minmax(76px, auto) 28px;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  border: 1px solid #b9cec5;
  border-radius: 6px;
  padding: 4px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(19, 32, 27, 0.08);
  cursor: grab;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.is-editing .nav-entry:hover {
  border-color: var(--green);
  box-shadow: 0 3px 10px rgba(19, 32, 27, 0.13);
}

.is-editing .nav-entry:active {
  cursor: grabbing;
}

.is-editing .nav-entry.is-dragging {
  opacity: 0.4;
}

.is-editing .nav-entry.is-drag-over {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 126, 93, 0.18);
}

.is-editing .nav-entry a {
  min-width: 0;
  max-width: 160px;
  padding: 5px 7px;
  outline: none;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.is-editing .nav-entry a:focus {
  border-radius: 4px;
  background: #eef7f3;
}

.is-editing .nav-drag-handle,
.is-editing .nav-delete-button,
.is-editing .nav-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-drag-handle,
.nav-delete-button,
.nav-add-button {
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.nav-drag-handle,
.nav-delete-button {
  width: 28px;
}

.nav-drag-handle {
  color: #64766f;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.nav-delete-button {
  color: #9b2c2c;
}

.nav-delete-button:hover {
  border-color: #c86565;
  background: #fff1f1;
}

.nav-add-button {
  min-width: 96px;
  height: 38px;
  padding: 0 12px;
  color: var(--green-dark);
  border-color: #9fc5b5;
  background: #eef7f3;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 92vh;
  padding: 120px clamp(20px, 5vw, 72px) 96px;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(12, 23, 20, 0.9) 0%,
    rgba(12, 23, 20, 0.68) 44%,
    rgba(12, 23, 20, 0.22) 100%
  );
}

.hero-content {
  position: relative;
  max-width: 720px;
  color: var(--white);
}

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

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.04;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  white-space: pre-line;
}

[data-field="heroCopy"],
[data-field="aboutBody"],
[data-field="equipmentBody"],
[data-card-body],
[data-process-body] {
  white-space: pre-line;
}

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

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

.button.primary {
  color: var(--white);
  background: var(--green);
}

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

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

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

.button.admin-logout-button {
  color: #9b2c2c;
  border-color: #e6c8c8;
}

.section {
  padding: clamp(78px, 9vw, 132px) clamp(20px, 5vw, 72px);
}

body[data-content-width="narrow"] .section {
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
}

body[data-content-width="wide"] .section {
  max-width: 1500px;
  margin-right: auto;
  margin-left: auto;
}

.is-section-hidden {
  display: none !important;
}

.is-editing .is-section-hidden {
  display: block !important;
  opacity: 0.48;
  box-shadow: inset 0 0 0 3px rgba(155, 44, 44, 0.28);
}

.is-editing .hero.is-section-hidden,
.is-editing .split.is-section-hidden {
  display: grid !important;
}

.is-editing .subpage-banner.is-section-hidden {
  display: flex !important;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.section-copy h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.16;
}

.section-heading > p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.section-media img,
.record-card img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.section-media img {
  aspect-ratio: 4 / 3;
}

.editable-image-area {
  position: relative;
}

.inline-image-edit-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: none;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(19, 32, 27, 0.82);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.is-editing .inline-image-edit-button {
  display: inline-flex;
  align-items: center;
}

.section-copy > p {
  max-width: 760px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 20px;
}

.stats {
  display: grid;
  gap: 12px;
}

.stats div,
.service-card,
.timeline li,
.contact-form,
.record-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.stats div {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  min-height: 78px;
  padding: 18px;
}

.stats strong,
.card-number {
  color: var(--green);
}

.stats span {
  font-weight: 800;
}

.projects,
.services {
  background: var(--white);
}

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

.record-card {
  overflow: hidden;
}

.record-card img {
  aspect-ratio: 16 / 10;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
  cursor: zoom-in;
}

.record-card div {
  padding: 26px;
}

.record-card h3,
.service-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.record-card p,
.service-card p,
.timeline span,
.contact-copy p {
  color: var(--muted);
}

.panorama-section {
  background: var(--white);
}

.panorama-section.is-empty {
  display: none;
}

.is-editing .panorama-section.is-empty {
  display: block;
}

.panorama-list {
  display: grid;
  gap: 24px;
}

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

.panorama-viewer {
  width: 100%;
  min-height: 420px;
  color: var(--muted);
  background: #101715;
}

.panorama-copy {
  padding: 24px;
}

.panorama-copy h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.panorama-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.is-editing .panorama-add-item {
  min-height: 140px;
  width: 100%;
}

.equipment {
  background: #eef3f1;
}

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

.equipment-list li {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.equipment-list li::before {
  position: absolute;
  top: 20px;
  left: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

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

.service-card {
  min-height: 260px;
  padding: 28px;
  box-shadow: 0 1px 0 rgba(19, 32, 27, 0.04);
}

.card-number {
  display: block;
  margin-bottom: 42px;
  font-size: 14px;
  font-weight: 900;
}

.process {
  background: #f7f9f8;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  min-height: 190px;
  padding: 24px;
}

.timeline strong {
  display: block;
  margin-bottom: 14px;
  font-size: 20px;
}

.timeline .inline-card-tools {
  margin-top: 16px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: clamp(28px, 6vw, 82px);
  padding: clamp(78px, 9vw, 132px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--steel);
}

.contact-copy p {
  max-width: 620px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
  color: var(--ink);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(31, 109, 85, 0.18);
  border-color: var(--green);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  align-items: center;
  padding: 26px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #101a17;
}

.company-info {
  display: grid;
  gap: 6px;
}

.company-info span {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer strong,
.company-info strong {
  color: var(--white);
}

.admin-open {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.inline-admin-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 45;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.inline-admin-toolbar .button {
  min-height: 40px;
  padding: 0 14px;
}

.company-switcher,
.page-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #b9cec5;
  border-radius: 6px;
  padding: 5px 7px 5px 10px;
  color: var(--ink);
  background: #eef7f3;
  font-weight: 800;
}

.company-switcher select,
.page-switcher select {
  min-width: 128px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 30px 0 9px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.text-style-toolbar {
  position: fixed;
  z-index: 58;
  display: flex;
  gap: 6px;
  align-items: center;
  max-width: calc(100vw - 16px);
  border: 1px solid #b9cec5;
  border-radius: 7px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(19, 32, 27, 0.2);
}

.text-style-toolbar select,
.text-style-toolbar button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 9px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.text-style-toolbar [data-text-size] {
  width: 92px;
}

.text-style-toolbar [data-text-bold] {
  width: 36px;
  padding: 0;
}

.text-style-toolbar [data-text-bold][aria-pressed="true"] {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.inline-admin-toolbar span {
  color: var(--muted);
  font-size: 14px;
}

.inline-admin-toolbar > span {
  display: none;
}

.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.admin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 14, 0.64);
}

.admin-panel .admin-dialog {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  margin: 12vh auto 0;
}

.admin-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-size: 24px;
  cursor: pointer;
}

.admin-login-form {
  display: grid;
  gap: 16px;
}

.is-editing [contenteditable="true"] {
  border-radius: 6px;
  outline: 2px dashed rgba(31, 109, 85, 0.32);
  outline-offset: 5px;
  cursor: text;
}

.is-editing [data-image],
.is-editing [data-card-image] {
  outline: 3px solid rgba(200, 137, 45, 0.62);
  outline-offset: -3px;
  cursor: pointer;
}

.is-editing [data-process-title],
.is-editing [data-process-body] {
  outline: 2px dashed rgba(31, 109, 85, 0.32);
  outline-offset: 4px;
}

.inline-card-tools {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.stats .inline-card-tools {
  display: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.is-editing .inline-card-tools {
  display: flex;
}

.is-editing .stats .inline-card-tools {
  display: flex;
  grid-column: 1 / -1;
  margin-top: 10px;
}

.inline-add-item,
.inline-add-wrapper {
  display: none;
}

.is-editing .inline-add-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 2px dashed rgba(31, 109, 85, 0.42);
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.is-editing .inline-add-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  border: 2px dashed rgba(31, 109, 85, 0.32);
  background: rgba(255, 255, 255, 0.5);
}

.is-editing .record-add-item {
  min-height: 180px;
}

.stats .inline-add-wrapper {
  display: none;
}

.is-editing .stats .inline-add-wrapper {
  display: flex;
  grid-template-columns: 1fr;
  padding: 16px;
}

.is-editing [contenteditable="true"]:hover,
.is-editing [contenteditable="true"]:focus {
  background: rgba(255, 255, 255, 0.16);
}

.mini-edit-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mini-edit-button.danger {
  color: #9b2c2c;
}

.free-content-section.is-empty {
  display: none;
}

.is-editing .free-content-section.is-empty {
  display: block;
  min-height: 150px;
  border-top: 2px dashed rgba(31, 109, 85, 0.3);
  border-bottom: 2px dashed rgba(31, 109, 85, 0.3);
}

.free-content-list {
  display: grid;
  gap: 0;
}

.inline-free-content-add {
  display: none;
}

.is-editing .inline-free-content-add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  border: 2px dashed rgba(31, 109, 85, 0.42);
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.is-editing .inline-free-content-add:hover {
  border-color: var(--green);
  background: #eef7f3;
}

.free-block {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  text-align: left;
}

.free-block + .free-block {
  border-top: 1px solid var(--line);
}

.free-block-content {
  line-height: 1.75;
}

.free-block[data-block-width="narrow"] {
  max-width: 760px;
}

.free-block[data-block-width="wide"] {
  max-width: 1120px;
}

.free-block[data-block-width="full"] {
  max-width: none;
}

.free-block[data-block-spacing="compact"] {
  padding: 18px 0;
}

.free-block[data-block-spacing="normal"] {
  padding: 30px 0;
}

.free-block[data-block-spacing="roomy"] {
  padding: 48px 0;
}

.free-block[data-block-align="center"],
.free-block[data-block-align="center"] .free-block-content {
  text-align: center;
}

.free-block[data-block-align="right"],
.free-block[data-block-align="right"] .free-block-content {
  text-align: right;
}

.free-block h2,
.free-block h3,
.free-block p,
.free-block blockquote,
.free-block figure {
  margin-top: 0;
  margin-bottom: 0;
}

.free-block h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.18;
}

.free-block h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

.free-block p,
.free-block blockquote {
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 17px;
}

.free-block blockquote {
  border-left: 5px solid var(--amber);
  padding: 18px 24px;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.68);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
}

.free-block figure img {
  width: 100%;
  max-height: 720px;
  border-radius: 8px;
  object-fit: cover;
  cursor: zoom-in;
}

.free-block figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.free-block hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.free-block-button .free-block-content {
  display: flex;
}

.free-block[data-block-align="center"].free-block-button .free-block-content {
  justify-content: center;
}

.free-block[data-block-align="right"].free-block-button .free-block-content {
  justify-content: flex-end;
}

.free-block-panorama {
  margin-bottom: 20px;
}

.free-panorama-change {
  display: none;
  margin-top: 16px;
}

.free-block-delete-action {
  display: none;
  margin-top: 14px;
}

.is-editing .free-block-delete-action {
  display: inline-flex;
}

.is-editing .free-panorama-change {
  display: inline-flex;
}

.is-block-hidden {
  display: none;
}

.is-editing .is-block-hidden {
  display: block;
  opacity: 0.48;
}

.free-block-tools {
  position: absolute;
  top: -18px;
  left: 50%;
  z-index: 8;
  display: none;
  gap: 5px;
  align-items: center;
  transform: translateX(-50%);
  white-space: nowrap;
}

.is-editing .free-block-tools {
  display: flex;
}

.is-editing .free-block {
  outline: 2px dashed rgba(31, 109, 85, 0.34);
  outline-offset: 4px;
}

.free-block.is-dragging {
  opacity: 0.45;
}

.free-block.is-drag-over {
  outline-color: var(--amber);
  outline-width: 4px;
}

.free-block-tool {
  min-width: 36px;
  height: 34px;
  border: 1px solid #b9cec5;
  border-radius: 5px;
  padding: 0 9px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(19, 32, 27, 0.12);
}

.free-block-tool.danger {
  color: #9b2c2c;
}

.free-block-drag-handle,
.section-drag-handle {
  cursor: grab;
  touch-action: none;
}

.page-tools {
  position: fixed;
  inset: 0;
  z-index: 72;
}

.page-tools-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 14, 0.58);
}

.page-tools-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(460px, 100vw);
  height: 100vh;
  border-left: 1px solid var(--line);
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.24);
}

.page-tools-header,
.page-tools-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--white);
}

.page-tools-header {
  border-bottom: 1px solid var(--line);
}

.page-tools-header h2,
.page-tool-section h3 {
  margin: 0;
}

.page-tools-header .eyebrow {
  margin-bottom: 4px;
}

.page-tools-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.page-tools-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  overflow-y: auto;
}

.page-tools[data-mode="add"] .page-settings-section,
.page-tools[data-mode="add"] .block-settings-section,
.page-tools[data-mode="page"] .content-add-section,
.page-tools[data-mode="page"] .block-settings-section,
.page-tools[data-mode="block"] .content-add-section,
.page-tools[data-mode="block"] .page-settings-section {
  display: none !important;
}

.page-tool-section {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.page-tool-section h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.block-palette,
.page-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.block-palette button {
  display: grid;
  gap: 2px;
  min-height: 66px;
  border: 1px solid #cdd9d3;
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
}

.block-palette button:hover {
  border-color: var(--green);
  background: #eef7f3;
}

.block-palette span,
.page-tool-heading span {
  color: var(--muted);
  font-size: 12px;
}

.page-tool-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.section-layout-list {
  display: grid;
  gap: 7px;
}

.section-layout-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  background: var(--paper);
}

.section-layout-item.is-dragging {
  opacity: 0.45;
}

.section-layout-item.is-drag-over {
  border-color: var(--amber);
  box-shadow: inset 0 0 0 2px var(--amber);
}

.section-drag-handle {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}

.visibility-toggle {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.page-tool-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.page-tool-grid .wide,
.page-tool-grid label.wide {
  grid-column: 1 / -1;
}

.page-tool-grid input,
.page-tool-grid select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.page-tool-grid input[type="color"] {
  padding: 4px;
}

.equipment-list .mini-edit-button {
  display: none;
}

.is-editing .equipment-list .mini-edit-button {
  display: inline-flex;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(6, 12, 10, 0.86);
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  cursor: pointer;
}

.content-manager {
  position: fixed;
  inset: 0;
  z-index: 75;
}

.content-manager-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 14, 0.64);
}

.content-manager-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, calc(100vw - 28px));
  height: min(92vh, 980px);
  margin: 4vh auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
}

.content-manager-header,
.content-manager-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-color: var(--line);
  background: var(--white);
}

.content-manager-header {
  border-bottom: 1px solid var(--line);
}

.content-manager-header h2 {
  margin: 0;
  font-size: 26px;
}

.content-manager-header .eyebrow {
  margin-bottom: 6px;
}

.content-manager-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.content-manager-body {
  display: grid;
  gap: 18px;
  padding: 24px;
  overflow-y: auto;
}

.manager-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.manager-section-head,
.manager-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.manager-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.manager-section-head {
  grid-column: 1 / -1;
}

.manager-section h3 {
  margin: 0;
  font-size: 21px;
}

.manager-field {
  display: grid;
  gap: 7px;
  font-size: 14px;
}

.manager-field span {
  font-weight: 800;
}

.manager-field textarea {
  min-height: 110px;
}

.manager-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.manager-card-head,
.manager-card .manager-field:nth-of-type(2) {
  grid-column: 1 / -1;
}

.manager-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #eef3f1 0%, #ffffff 100%);
}

.admin-shell {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.admin-brand {
  margin-bottom: 24px;
  color: var(--ink);
}

.admin-dialog {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

.admin-login form {
  display: grid;
  gap: 16px;
}

.admin-note {
  color: var(--muted);
}

.editor-head,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.editor-head h1,
.admin-login h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
}

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

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

.editor-section {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.editor-section h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 22px;
}

.editor-section.wide,
.editor-form label.wide {
  grid-column: 1 / -1;
}

.editor-form label,
.manager-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.image-field {
  display: grid;
  gap: 10px;
}

.image-field input[type="file"] {
  padding: 10px;
  background: var(--paper);
}

.image-field small {
  color: var(--muted);
  font-weight: 500;
}

.manager-head,
.manager-item-head,
.manager-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.manager-head {
  grid-column: 1 / -1;
}

.manager-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
}

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

.manager-item-head,
.manager-item label.wide {
  grid-column: 1 / -1;
}

.manager-row input {
  flex: 1;
}

.editor-actions {
  padding-top: 8px;
}

@media (max-width: 1080px) {
  .nav {
    gap: 14px;
    font-size: 14px;
  }

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

@media (max-width: 900px) {
  .split,
  .contact,
  .record-grid {
    grid-template-columns: 1fr;
  }

  .equipment .section-media {
    order: -1;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding: 12px 18px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    display: none;
    width: 100%;
    padding: 12px 18px 18px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 12px 28px rgba(19, 32, 27, 0.12);
  }

  .nav.is-open {
    display: grid;
    gap: 10px;
  }

  .is-editing .nav-entry {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    width: 100%;
  }

  .is-editing .nav-entry a {
    max-width: none;
  }

  .nav a {
    padding: 10px 0;
  }

  .hero {
    min-height: 86vh;
    padding: 104px 20px 72px;
  }

  .hero-overlay {
    background: rgba(12, 23, 20, 0.72);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-grid,
  .timeline,
  .editor-form,
  .editor-section,
  .manager-item {
    grid-template-columns: 1fr;
  }

  .manager-row,
  .manager-head,
  .manager-item-head {
    align-items: stretch;
    flex-direction: column;
  }

  body.is-editing {
    padding-bottom: 350px;
  }

  .inline-admin-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
  }

  .company-switcher,
  .page-switcher {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
  }

  .inline-admin-toolbar > strong {
    display: none;
  }

  .inline-admin-toolbar > span {
    display: none;
  }

  .inline-admin-toolbar .button {
    min-width: 0;
    padding: 0 6px;
    font-size: 13px;
  }

  .company-switcher select,
  .page-switcher select {
    flex: 1;
    min-width: 0;
    max-width: 210px;
  }

  .text-style-toolbar {
    flex-wrap: wrap;
  }

  .text-style-toolbar select:first-child {
    max-width: 132px;
  }

  .subpage-banner {
    min-height: 230px;
    padding: 60px 20px 40px;
  }

  .subpage-banner.has-page-background {
    min-height: 300px;
  }

  .panorama-viewer {
    min-height: 260px;
  }

  .free-block[data-block-spacing="roomy"] {
    padding: 34px 18px;
  }

  .free-block-tools {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 14px;
    transform: none;
  }

  .page-tools-panel {
    width: 100%;
    border-left: 0;
  }

  .content-manager-panel {
    width: 100%;
    height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .content-manager-header,
  .content-manager-footer,
  .content-manager-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .manager-section,
  .manager-card {
    grid-template-columns: 1fr;
  }

  .service-card,
  .timeline li {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 34px;
  }

  .stats div {
    grid-template-columns: 50px 1fr;
  }
}
