:root {
  color-scheme: light;
  --ink: #151815;
  --muted: #65706a;
  --paper: #eef3ed;
  --surface: #ffffff;
  --line: #d9dfd7;
  --green: #356b54;
  --orange: #ef7d1a;
  --blue: #244f91;
  --charcoal: #202326;
  --shadow: 0 22px 70px rgba(21, 24, 21, 0.13);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 22px max(24px, calc((100vw - 1320px) / 2)) 14px;
  background: rgba(238, 243, 237, 0.92);
  backdrop-filter: blur(16px);
}

.header-top {
  display: grid;
  grid-template-columns: minmax(430px, 0.74fr) minmax(300px, 1fr) auto;
  gap: 24px;
  align-items: center;
}

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

.brand-text {
  display: grid;
  gap: 8px;
}

.brand-text small {
  order: 1;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.brand-text strong {
  order: 2;
  color: var(--ink);
  font-size: 1.72rem;
  font-weight: 950;
  line-height: 1.03;
  letter-spacing: 0;
  white-space: nowrap;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(21, 24, 21, 0.06);
}

.search-pill span {
  width: 20px;
  height: 20px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-pill span::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: -8px;
  width: 10px;
  height: 3px;
  border-radius: 99px;
  background: var(--ink);
  transform: rotate(45deg);
}

.search-pill input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
}

.header-logo-mark {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.header-logo-mark img {
  width: 78px;
  height: 82px;
  object-fit: contain;
}

.header-logo-mark .mobile-logo {
  display: none;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 36px rgba(21, 24, 21, 0.06);
}

.category-nav a {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 900;
}

.category-nav a:last-child {
  border-right: 0;
}

.category-nav a:hover,
.category-nav a:focus-visible,
.category-nav a.is-active {
  background: var(--green);
  color: #fff;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr);
  gap: 28px;
  align-items: start;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.exhibition {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.section {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 50px rgba(21, 24, 21, 0.06);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  min-height: 520px;
  background:
    linear-gradient(135deg, rgba(53, 107, 84, 0.12), transparent 58%),
    #fff;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 4.4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

h1 span {
  display: block;
}

.section-head.inline h1 {
  font-size: clamp(2.7rem, 4vw, 3.8rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  line-height: 1.25;
}

p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-copy p {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 950;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

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

.button.outline {
  border-color: #b9c8bd;
  background: #fff;
}

.button.wide {
  width: 100%;
}

.contact-form .button {
  grid-column: 1 / -1;
}

.booking-inner .button.primary {
  min-height: 52px;
  margin-top: 4px;
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px rgba(239, 125, 26, 0.28);
  font-size: 1.05rem;
}

.hero-cover {
  height: 100%;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #fff;
}

.hero-render {
  border: 1px solid rgba(42, 88, 67, 0.12);
  box-shadow: 0 22px 60px rgba(23, 50, 39, 0.08);
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.image-button img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10.9;
  object-fit: cover;
  transition: transform 300ms ease;
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10.9;
}

.image-button:hover img,
.image-button:focus-visible img {
  transform: scale(1.025);
}

.section-head {
  margin-bottom: 22px;
}

.section-head.inline {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: end;
}

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

.profile-grid article,
.process-strip article {
  padding: 20px;
  border-left: 4px solid var(--green);
  background: #f4f7f2;
}

.profile-grid p,
.process-strip p {
  margin-bottom: 0;
}

.wide-preview {
  border: 10px solid #fff;
  box-shadow: var(--shadow);
}

.gallery-grid {
  display: grid;
  gap: 16px;
}

.style-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.display-card,
.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.display-card.large {
  grid-column: span 2;
}

.display-card div,
.case-card div {
  padding: 18px;
}

.display-card span,
.process-strip span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 950;
}

.display-card p,
.case-card p {
  margin-bottom: 0;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.gallery-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-section {
  background: #f7faf6;
}

.smart-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(320px, 1fr);
  gap: 18px;
}

.smart-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: var(--green);
  color: #fff;
}

.smart-text p {
  color: rgba(255, 255, 255, 0.78);
}

.smart-text ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.smart-text li {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 850;
}

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

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

.case-card img {
  aspect-ratio: 16 / 10;
}

.case-showcase {
  display: grid;
  gap: 22px;
}

.case-carousel {
  min-width: 0;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

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

.case-carousel h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}

.carousel-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.carousel-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #b9c8bd;
  background: #f7faf6;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.carousel-controls button:hover,
.carousel-controls button:focus-visible {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.carousel-track {
  display: flex;
  gap: 16px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.case-slide {
  flex: 0 0 clamp(245px, 32vw, 340px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7faf6;
  scroll-snap-align: start;
}

.case-slide img {
  aspect-ratio: 4 / 3;
}

.case-slide div {
  padding: 16px;
}

.case-slide p {
  margin-bottom: 0;
}

.booking-panel {
  position: sticky;
  top: 164px;
  min-width: 0;
}

.booking-inner {
  padding: 26px;
  border: 1px solid rgba(53, 107, 84, 0.22);
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
}

.booking-inner .kicker,
.booking-inner p {
  color: rgba(255, 255, 255, 0.78);
}

.booking-inner h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 2.6vw, 2.65rem);
}

.booking-phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
}

.phone-label {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 950;
}

.booking-phones a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  font-size: 1rem;
  font-weight: 950;
}

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

.contact-form label {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.contact-form .form-trap {
  display: none;
}

.contact-form .field-compact {
  grid-column: auto;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.admin-body {
  min-height: 100vh;
  background: #eef3ed;
}

.admin-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 70px;
}

.admin-panel {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-head,
.admin-toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
}

.admin-head {
  margin-bottom: 24px;
}

.admin-head h1 {
  margin-bottom: 10px;
  font-size: clamp(2.3rem, 4.4vw, 4rem);
}

.admin-head p {
  margin-bottom: 0;
}

.admin-login,
.admin-toolbar {
  padding: 16px;
  border: 1px solid var(--line);
  background: #f7faf6;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-login label,
.admin-search {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 900;
}

.admin-login input,
.admin-search input {
  min-height: 44px;
  border: 1px solid #c7d1c9;
  border-radius: 4px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.admin-toolbar {
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-stat {
  display: grid;
  gap: 2px;
  min-width: 110px;
}

.admin-stat span {
  color: var(--muted);
  font-weight: 850;
}

.admin-stat strong {
  color: var(--green);
  font-size: 2.2rem;
  line-height: 1;
}

.admin-search {
  flex: 1 1 260px;
}

.admin-status {
  min-height: 28px;
  margin: 14px 0;
  color: var(--green);
  font-weight: 850;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.admin-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: var(--green);
  color: #fff;
  font-size: 0.92rem;
  white-space: nowrap;
}

.admin-table td {
  color: var(--ink);
  line-height: 1.45;
}

.admin-empty {
  color: var(--muted);
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 70px;
  background: rgba(11, 12, 12, 0.9);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1180px, 100%);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.lightbox button {
  position: absolute;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-close {
  top: 22px;
  right: 22px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 1120px) {
  .header-top,
  .page-shell,
  .hero-section,
  .section-head.inline,
  .smart-layout {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    position: static;
    order: -1;
  }

  .search-pill {
    order: 3;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 14px 10px;
  }

  .header-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .header-logo-mark {
    display: inline-flex;
    align-self: start;
    justify-self: end;
    min-height: 0;
    order: 2;
  }

  .header-logo-mark .desktop-logo {
    display: none;
  }

  .header-logo-mark .mobile-logo {
    display: block;
    width: 50px;
    height: 54px;
  }

  .search-pill {
    grid-column: 1 / -1;
    min-height: 48px;
  }

  .booking-panel {
    order: 2;
  }

  .booking-phones,
  .contact-form,
  .admin-login {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    width: calc(100% - 28px);
    padding-top: 18px;
  }

  .admin-panel {
    padding: 20px;
  }

  .admin-head,
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-head .button,
  .admin-login .button,
  .admin-toolbar .button {
    width: 100%;
  }

  .contact-form .field-compact {
    grid-column: 1 / -1;
  }

  .brand-text {
    gap: 6px;
  }

  .brand-text small {
    font-size: 0.82rem;
  }

  .brand-text strong {
    font-size: 1.38rem;
    line-height: 1.12;
    white-space: normal;
  }

  .category-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    overflow: visible;
  }

  .category-nav a {
    min-width: 0;
    min-height: 56px;
    padding: 0 4px;
    font-size: 0.98rem;
    border-bottom: 1px solid var(--line);
  }

  .page-shell {
    width: calc(100% - 28px);
    padding-top: 18px;
  }

  .section,
  .booking-inner {
    padding: 20px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-copy .kicker {
    display: none;
  }

  h1 {
    font-size: 3rem;
  }

  .booking-inner p,
  .hero-copy p {
    max-width: 19em;
  }

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

  .profile-grid,
  .style-grid,
  .process-strip,
  .gallery-grid.three,
  .smart-images,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .display-card.large {
    grid-column: auto;
  }

  .lightbox {
    padding: 64px 14px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 16px;
    transform: none;
  }
}

@media (max-width: 500px) {
  .page-shell {
    width: calc(100vw - 28px);
    width: calc(100dvw - 28px);
    max-width: none;
    margin-right: 14px;
    margin-left: 14px;
  }

  .category-nav {
    width: calc(100vw - 28px);
    width: calc(100dvw - 28px);
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }
}
