:root {
  color-scheme: light;
  --ink: #17231f;
  --muted: #617169;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --line: #dfe6dc;
  --green: #214d43;
  --green-2: #2f735f;
  --moss: #9ab466;
  --gold: #d8a447;
  --clay: #c66f4b;
  --danger: #a63c36;
  --shadow: 0 22px 70px rgba(28, 56, 45, .14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Assistant", "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

html[lang="en"] body {
  font-family: "Inter", "Assistant", system-ui, sans-serif;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  transform: translateY(-180%);
  z-index: 20;
  background: var(--green);
  color: white;
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(223, 230, 220, .78);
  background: rgba(251, 250, 245, .9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  fill: #e7edc3;
  stroke: #e7edc3;
  stroke-width: 3;
  stroke-linecap: round;
}

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

.brand strong {
  font-size: 1.06rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.nav-links a,
.nav-links button,
.lang-switch button,
.admin-tabs button,
.category-tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 9px 14px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.category-tabs button:hover,
.category-tabs button.active,
.admin-tabs button.active,
.lang-switch button.active {
  color: var(--green);
  background: #e9f0df;
}

.accessibility-trigger {
  position: fixed;
  inset-block-end: 18px;
  inset-inline-start: 18px;
  z-index: 25;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  padding: 8px 14px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.accessibility-trigger span:first-child {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
}

.accessibility-panel {
  position: fixed;
  inset-block-end: 76px;
  inset-inline-start: 18px;
  z-index: 26;
  width: min(360px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.accessibility-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.accessibility-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.accessibility-options {
  display: grid;
  gap: 8px;
}

.accessibility-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.lang-switch button {
  padding: 7px 11px;
  font-size: .88rem;
}

.nav-toggle {
  display: none;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--green);
}

.section-band,
.section-block {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-band {
  background: #eef3e7;
  border: 1px solid var(--line);
  border-radius: 0 0 28px 28px;
}

.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 34px;
  padding: clamp(34px, 5vw, 68px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-2);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-block-end: 18px;
  max-width: 780px;
  font-size: clamp(2.55rem, 6vw, 5.3rem);
  line-height: .95;
  letter-spacing: 0;
}

h2 {
  margin-block-end: 12px;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-block-end: 8px;
  font-size: 1.25rem;
  line-height: 1.18;
}

.hero-text,
.section-heading p,
.about-copy p,
.contact p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions,
.contact-actions,
.form-actions,
.admin-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  padding: 10px 16px;
  font-weight: 800;
}

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

.secondary-btn {
  background: #fff;
  color: var(--green);
  border-color: var(--line);
}

.danger-btn {
  background: #fff2ef;
  color: var(--danger);
  border-color: #efc1bb;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 430px;
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.quick-stats {
  position: absolute;
  inset-inline: 28px;
  inset-block-end: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px);
}

.quick-stats span {
  display: grid;
  place-items: center;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}

.quick-stats strong {
  color: var(--green);
  font-size: 1.35rem;
  line-height: 1;
}

.quick-stats small {
  color: var(--muted);
  font-weight: 800;
}

.section-block {
  padding: 78px 0;
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 26px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

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

.content-card,
.tour-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(28, 56, 45, .08);
}

.content-card {
  cursor: pointer;
}

.card-media {
  min-height: 188px;
  display: grid;
  place-items: center;
  background: #dde9d8;
}

.card-media img,
.card-media iframe,
.detail-media img,
.detail-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.card-body {
  padding: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #edf2e6;
  color: var(--green);
  padding: 2px 10px;
  font-size: .82rem;
  font-weight: 800;
}

.card-body p,
.tour-card p {
  color: var(--muted);
}

.tours-band {
  border-radius: 28px;
  padding: 64px;
}

.tour-card {
  padding: 22px;
}

.tour-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tour-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
}

.about {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}

.about-media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.feature-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 8px 12px;
  color: var(--green);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(340px, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 60px;
  padding: 36px;
  border-radius: 28px;
}

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

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid rgba(33, 77, 67, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .62);
  padding: 18px;
}

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

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

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

.social-links a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  transition: transform .2s ease, background .2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  background: var(--green);
  color: #fff;
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.admin {
  border-top: 1px solid var(--line);
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

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

.admin-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.file-btn input {
  display: none;
}

.admin-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-list,
.editor-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.admin-tabs button {
  flex: 1 1 120px;
  border-radius: var(--radius);
}

.admin-item {
  width: 100%;
  display: block;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  text-align: start;
}

.admin-item.active,
.admin-item:hover {
  background: #f3f7ef;
}

.admin-item strong,
.admin-item span {
  display: block;
}

.admin-item span {
  color: var(--muted);
  font-size: .9rem;
}

.editor-form {
  padding: 18px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--green);
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.dropzone {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border: 1px dashed #9fb7ad;
  border-radius: var(--radius);
  background: #f5f8f1;
  padding: 14px;
}

.generator-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  border: 1px solid #d9e2d6;
  border-radius: var(--radius);
  background: #f7f5eb;
  padding: 14px;
}

.generator-panel strong {
  display: block;
  color: var(--green);
  font-size: 1.02rem;
}

.generator-panel p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.generator-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.generator-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.dropzone.dragging {
  border-color: var(--green);
  background: #e6f1e8;
}

.dropzone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.dropzone input[type="file"] {
  display: none;
}

.image-preview {
  min-height: 160px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #e3eadf;
  color: var(--muted);
  font-weight: 800;
}

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

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.form-actions {
  margin-top: 18px;
}

.detail-view {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: auto;
  background: rgba(15, 31, 27, .48);
  padding: 28px;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: #fff5d8;
  color: #7a5511;
  padding: 4px 12px;
  font-weight: 900;
}

.preview-panel {
  width: min(1120px, 100%);
}

.preview-content {
  padding: 0 24px 24px;
}

.preview-section {
  padding: 24px;
}

.preview-hero,
.preview-about,
.preview-contact {
  width: 100%;
  min-height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 0 20px;
}

.preview-hero .hero-visual,
.preview-hero .hero-visual > img {
  min-height: 280px;
}

.preview-contact {
  box-shadow: none;
}

.detail-panel {
  width: min(1040px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .24);
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
}

.detail-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--green);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 800;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 24px;
  padding: 0 24px 24px;
}

.detail-media {
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e6eedf;
}

.detail-text {
  color: var(--muted);
  white-space: pre-line;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  color: var(--muted);
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer div span:first-child {
  color: var(--green);
  font-weight: 900;
}

.footer-admin-link {
  border: 0;
  background: transparent;
  color: #7b8881;
  cursor: pointer;
  padding: 6px 0;
  font-size: .88rem;
  font-weight: 700;
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

body.a11y-large {
  font-size: 20px;
}

body.a11y-small {
  font-size: 15px;
}

body.a11y-contrast {
  --ink: #000;
  --muted: #1d1d1d;
  --paper: #fff;
  --surface: #fff;
  --line: #111;
  --green: #003b2f;
  --green-2: #003b2f;
}

body.a11y-links a,
body.a11y-links button {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.a11y-motion *,
body.a11y-motion *::before,
body.a11y-motion *::after {
  scroll-behavior: auto !important;
  transition: none !important;
  animation: none !important;
}

@media (max-width: 980px) {
  .nav-shell {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
    order: 2;
  }

  .lang-switch {
    order: 1;
  }

  .brand {
    order: 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: var(--radius);
  }

  .hero,
  .about,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .tours-band {
    padding: 42px 24px;
  }

  .admin-heading,
  .admin-login,
  .contact {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .section-band,
  .section-block,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding: 30px 18px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.4rem);
  }

  .hero-visual,
  .hero-visual > img {
    min-height: 310px;
  }

  .quick-stats {
    inset-inline: 12px;
    inset-block-end: 12px;
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-stats span {
    padding: 8px 4px;
  }

  .subject-grid,
  .tour-grid,
  .contact-form,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

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

  .section-block {
    padding: 54px 0;
  }

  .contact {
    padding: 24px;
  }

  .detail-view {
    padding: 10px;
  }

  .detail-head,
  .detail-content {
    padding-inline: 16px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
