:root {
  --bg: #f7f7f4;
  --paper: #ffffff;
  --ink: #1a1b18;
  --muted: #676961;
  --line: #deded7;
  --accent: #d4a017;
  --green: #1e4a3f;
  --green-dark: #102d28;
  --copper: #8b5f2a;
  --shadow: 0 18px 44px rgba(24, 27, 23, 0.1);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    Arial, sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

body.editor-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

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

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

.workspace {
  display: block;
  min-height: 100vh;
}

.public-site {
  min-width: 0;
  overflow: hidden;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 22px clamp(24px, 4vw, 64px);
  color: #fff;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(11, 18, 15, 0.35);
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
}

.nav-links a:hover,
.nav-cta:hover {
  color: #fff;
}

.nav-cta {
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #15130b;
  font-weight: 700;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(7, 14, 12, 0.45);
  backdrop-filter: blur(10px);
}

.language-switcher button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
}

.language-switcher button.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero {
  position: relative;
  min-height: min(780px, 94vh);
  display: grid;
  align-items: end;
  padding: 140px clamp(24px, 4vw, 64px) 64px;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #101613;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 10, 0.86) 0%, rgba(5, 11, 10, 0.44) 44%, rgba(5, 11, 10, 0.1) 100%),
    linear-gradient(0deg, rgba(5, 11, 10, 0.65) 0%, rgba(5, 11, 10, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
  font-weight: 800;
}

.hero p {
  max-width: 600px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #17130a;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(650px, 100%);
  margin: 48px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-facts div {
  padding: 18px;
  background: rgba(6, 16, 14, 0.45);
}

.hero-facts dt {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
}

.hero-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.section {
  padding: 76px clamp(24px, 4vw, 64px);
}

.intro-strip {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.82);
}

.intro-strip p {
  width: min(980px, 100%);
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.8;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.1;
}

.section-heading p {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading a {
  color: var(--green);
  font-weight: 800;
}

.gallery-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scroll-snap-type: x mandatory;
}

.gallery-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(30, 74, 63, 0.06), rgba(212, 160, 23, 0.12)),
    #f2f2ee;
  scroll-snap-align: start;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder,
.portrait-frame span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.gallery-placeholder::before,
.portrait-frame span::before,
.file-box span::before {
  content: "↥";
  display: block;
  margin: 0 auto 8px;
  color: var(--green);
  font-size: 1.4rem;
}

.gallery-card figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(9, 18, 16, 0.72);
  color: #fff;
  font-size: 0.84rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.gallery-card:hover figcaption,
.gallery-card:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

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

.package-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(25, 26, 22, 0.03);
}

.package-card.featured {
  border-color: rgba(212, 160, 23, 0.7);
  box-shadow: var(--shadow);
}

.package-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(30, 74, 63, 0.08);
  color: var(--green);
}

.package-card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.package-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.package-price {
  margin-top: auto;
  padding-top: 28px;
  color: var(--green);
  font-size: 1.7rem;
  font-weight: 800;
}

.package-price small {
  margin-right: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.section-note {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 720px);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  background: #fff;
}

.portrait-frame {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(30, 74, 63, 0.08), rgba(212, 160, 23, 0.08)),
    #f5f5f1;
}

.portrait-frame.has-image span {
  display: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.about-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.about-copy p {
  margin: 0 0 18px;
  color: #34362f;
  font-size: 1.05rem;
  line-height: 1.9;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.about-points span {
  padding: 14px;
  border-left: 3px solid var(--accent);
  background: #f5f5f1;
  color: var(--green-dark);
  font-weight: 700;
}

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

.location-grid article {
  min-height: 210px;
  padding: 24px;
  border-top: 3px solid var(--accent);
  background: #fff;
}

.location-grid h3 {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 1.35rem;
}

.location-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.process-section {
  background: var(--green-dark);
  color: #fff;
}

.process-section .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-list li {
  min-height: 220px;
  padding: 26px;
  background: #14352f;
}

.process-list li::before {
  content: counter(list-item, decimal-leading-zero);
  display: block;
  margin-bottom: 54px;
  color: var(--accent);
  font-weight: 800;
}

.process-list strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.process-list span {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

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

blockquote {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

blockquote p {
  margin: 0 0 24px;
  color: #34362f;
  line-height: 1.85;
}

blockquote p::before {
  content: "“";
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 2.4rem;
  line-height: 0;
  vertical-align: -0.35em;
}

blockquote cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.faq-section {
  padding-top: 20px;
}

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

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
}

summary::after {
  content: "+";
  color: var(--green);
  font-size: 1.3rem;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.75;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 76px);
  padding: 76px clamp(24px, 4vw, 64px);
  background: #0c1d1a;
  color: #fff;
}

.contact-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.contact-copy p {
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.85;
}

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

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-list span {
  color: rgba(255, 255, 255, 0.55);
}

.contact-list a {
  color: #fff;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

label {
  display: grid;
  gap: 8px;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}

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

.form-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(24px, 4vw, 64px);
  background: #081411;
  color: rgba(255, 255, 255, 0.64);
}

.footer a {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.editor-toggle {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  display: none;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #17130a;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.editor-toggle:not([hidden]) {
  display: inline-flex;
  align-items: center;
}

.editor-panel {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #fbfbf8;
  transform: translateX(105%);
  transition: transform 200ms ease;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
}

body.editor-open .editor-panel {
  transform: translateX(0);
}

.editor-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  background: var(--green);
  color: #fff;
}

.editor-head strong,
.editor-head small {
  display: block;
}

.editor-head small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
}

.editor-head button {
  display: block;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
}

.admin-login p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.editor-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.editor-section h2 {
  margin: 0;
  color: var(--green);
  font-size: 1rem;
}

.editor-section label {
  color: var(--ink);
}

.file-box {
  position: relative;
  min-height: 104px;
  place-items: center;
  border: 1px dashed #bcc2b9;
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.file-box input {
  position: absolute;
  inset: 0;
  height: auto;
  opacity: 0;
  cursor: pointer;
}

.file-box span,
.file-box small {
  display: block;
}

.file-box small {
  color: var(--muted);
  font-weight: 500;
}

.package-editor-row {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 10px;
  align-items: end;
}

.package-editor-row + .package-editor-row {
  margin-top: 12px;
}

.editor-status {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .package-grid,
  .location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .process-list li {
    min-height: auto;
  }

  .process-list li::before {
    margin-bottom: 24px;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 20px;
  }

  .nav-links {
    display: none;
  }

  .header-tools {
    justify-content: space-between;
  }

  .nav-cta {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .language-switcher button {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 760px;
    padding: 120px 20px 40px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 16vw, 4.2rem);
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .section,
  .contact-section {
    padding: 54px 20px;
  }

  .section-heading {
    display: block;
  }

  .gallery-rail {
    grid-auto-columns: minmax(190px, 72vw);
  }

  .package-grid,
  .location-grid,
  .testimonial-grid,
  .faq-list,
  .booking-form,
  .contact-section,
  .about-section,
  .about-points {
    grid-template-columns: 1fr;
  }

  .portrait-frame,
  .portrait-frame img {
    min-height: 380px;
  }

  .contact-list li,
  .footer {
    display: grid;
  }
}
