/* -----------------------------
  Tokens / Base
------------------------------ */
:root {
  --bg: #f7f7f8;
  --card: rgba(0, 0, 0, 0.04);
  --card2: rgba(0, 0, 0, 0.06);
  --text: rgba(12, 12, 16, 0.92);
  --muted: rgba(12, 12, 16, 0.68);
  --line: rgba(12, 12, 16, 0.12);

  --accent: #ff3b3b;
  --accent2: #0b0b0d;

  --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --max: 1180px;

  --nav-offset: 88px;
}

/* Fallback: if a section itself is the anchor target */
section[id],
[id].block,
.anchor-target {
  scroll-margin-top: var(--nav-offset);
}

/* Optional: on smaller screens nav is a bit taller */
@media (max-width: 760px) {
  :root {
    --nav-offset: 96px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
  overflow-x: clip;
  overflow-y: visible;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: clip;
  overflow-y: visible;

  /* fixed nav compensation */
  padding-top: 72px;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent2);
}

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

/* Optional: apply Bebas Neue to headline only */
h1,
.section-head h2 {
  font-family: "Bebas Neue", ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Helvetica, Arial;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  z-index: 9999;
}

/* Layout */
.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Make TW gallery container align with your layout width */
.tw-container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Critical: allow grid/flex children to shrink (prevents iOS overflow) */
.hero-grid > *,
.grid-3 > *,
.tool-row > *,
.contact-grid > *,
.about-grid > * {
  min-width: 0;
}

/* -----------------------------
  Nav
------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  isolation: isolate;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  background-color: rgba(255, 255, 255, 0.94);
  border-bottom: 0;

  --nav-bg-alpha: 0;

  transform: translateY(0);
  opacity: 1;
  transition: transform 280ms cubic-bezier(0.22, 0.8, 0.2, 1),
    opacity 220ms ease, background-color 220ms ease;
}

/* background image layer */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  opacity: var(--nav-bg-alpha);

  background-image: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.97),
      rgba(255, 255, 255, 0.92)
    ),
    url("/static/images/expert_xmooning-eyes.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 35%;

  transition: opacity 500ms ease;
}

/* remove any leftover overlay */
.nav::after {
  content: none;
}

/* keep nav content above background */
.nav > .container {
  position: relative;
  z-index: 1;
}

.nav.is-scrolled {
  background-color: rgba(255, 255, 255, 0.88);
}

.nav.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 59, 59, 0.14);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: rgba(12, 12, 16, 0.78);
  font-weight: 700;
  font-size: 14px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 12px;
}

.nav-links a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(12, 12, 16, 0.92);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(255, 59, 59, 0.95),
    rgba(255, 59, 59, 0.55)
  );
  border-color: rgba(255, 59, 59, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 59, 59, 1),
    rgba(255, 59, 59, 0.6)
  );
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
}

.burger svg {
  width: 22px;
  height: 22px;
  margin: 0 auto;
}

/* Eyes strip stays */
.nav-eyes {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-eyes img {
  width: 100%;
  height: 46px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(1.05);
}

/* Mobile menu */
.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 0 16px;
}
.mobile-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 800;
}
.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .nav,
  .nav::before {
    transition: none;
  }
}

/* -----------------------------
  HERO
------------------------------ */
.hero {
  padding: 54px 0 28px;
  position: relative;
  overflow: hidden;

  /* pure white to match artwork background */
  background: #fff !important;
}

/* Keep content above overlay */
.hero-grid > * {
  position: relative;
  z-index: 1;
}

/* Desktop columns */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}

.hero-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

/* Kicker + Title */
.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  max-width: fit-content;
}
.kicker b {
  color: var(--text);
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
}

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

.meta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 59, 59, 0.12);
}

/* HERO ART — "printed on page" (no frame / no shadow) */
.hero-art {
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid;
  place-items: center;
}

.hero-art::before,
.hero-art::after {
  content: none !important;
}

.hero-art .badge {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  width: min(520px, 92%);
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
}

/* optional: nudge on desktop */
@media (min-width: 921px) {
  .hero-art .badge {
    transform: translateY(6px);
  }
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
  font-size: 15px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  max-width: 100%;
}

/* Important on iOS: avoid card children forcing overflow */
.card * {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* -----------------------------
  Portfolio
------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  min-height: 170px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.shot:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}
.shot span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 13px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.col-4 {
  grid-column: span 4;
}
.col-6 {
  grid-column: span 6;
}
.col-12 {
  grid-column: span 12;
}

/* -----------------------------
  Tools
------------------------------ */
.tool-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: start;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.li {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 12px;
}

.icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.li b {
  display: block;
  margin-bottom: 3px;
}
.li small {
  color: var(--muted);
  font-size: 13px;
}

/* -----------------------------
  FAQ
------------------------------ */
details {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 12px 14px;
}
summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--text);
}
details p {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 14px;
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* -----------------------------
  Contact
------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-weight: 900;
  font-size: 13px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(12, 12, 16, 0.14);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  outline: none;
}
input:focus,
textarea:focus {
  border-color: rgba(255, 59, 59, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 59, 59, 0.12);
}
textarea {
  min-height: 120px;
  resize: vertical;
}

.fine {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

/* Footer */
footer {
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* -----------------------------
  Lightbox
------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 100;
}
.lightbox.open {
  display: flex;
}
.lightbox figure {
  margin: 0;
  width: min(1100px, 100%);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 12, 0.65);
  box-shadow: var(--shadow);
  position: relative;
}
.lightbox img {
  width: 100%;
  height: auto;
}
.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* -----------------------------
  Language switch
------------------------------ */
.lang-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.lang {
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  color: var(--muted);
}

.lang.is-active,
.lang[aria-current="page"] {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

/* Mobile lang row */
.mobile-lang {
  display: flex;
  gap: 10px;
  padding: 6px 0 10px;
}
.mobile-lang a {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-weight: 900;
  color: var(--muted);
}
.mobile-lang a.is-active {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

/* -----------------------------
  WhatsApp button variant
------------------------------ */
.btn-wa {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.25);
}
.btn-wa:hover {
  background: rgba(37, 211, 102, 0.18);
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  font-weight: 900;
}
.wa-float:hover {
  transform: translateY(-1px);
}

/* -----------------------------
  About image layout
------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.about-media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.03);
}
.about-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* -----------------------------
  Newsletter
------------------------------ */
.newsletter-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.check {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

/* -----------------------------
  Responsive
------------------------------ */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-grid > div {
    display: block;
  }

  /* Put hero image first on mobile */
  .hero-art {
    order: -1;
  }

  .tool-row {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .faq {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    height: auto;
  }
  .hero-art .badge {
    height: auto;
    max-height: none;
    width: min(520px, 92%);
    transform: rotate(-0.8deg);
  }
}

@media (max-width: 920px) {
  .newsletter-fields {
    grid-template-columns: 1fr;
  }
  .newsletter-fields .btn {
    width: 100%;
  }
}

@media (max-width: 950px) {
  /* Mobile nav simplification: burger only */
  .nav-links {
    display: none;
  }

  .nav-cta .lang-switch,
  .nav-cta .btn,
  .nav-cta .btn-wa,
  .nav-cta .btn-primary {
    display: none;
  }

  .burger {
    display: inline-grid;
    place-items: center;
  }

  .mobile-panel {
    display: none;
  }
  .mobile-panel.open {
    display: block;
  }

  .container,
  .tw-container {
    width: min(100% - 24px, var(--max));
  }

  .gallery {
    gap: 8px;
  }
  .col-6,
  .col-4 {
    grid-column: span 12;
  }

  body {
    padding-top: 84px;
  }

  .nav-eyes img {
    height: 54px;
  }
}

.admin-global-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

/* =========================
   Admin UI
========================= */

.admin-img {
  margin-top: 14px;
}

.admin-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(12, 12, 16, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admin-controls + .admin-controls {
  margin-top: 10px;
}

.btn-small {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(12, 12, 16, 0.12);
  border-radius: 999px;
  background: #fff;
  color: rgba(12, 12, 16, 0.88);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease, background 0.12s ease;
}

.btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.btn-small i {
  font-size: 18px;
  line-height: 1;
}

.btn-small.green,
.btn-small.blue,
.btn-small.orange,
.btn-small.red,
.btn-small.grey {
  background: #fff;
  color: rgba(12, 12, 16, 0.88);
}

.btn-small.red {
  border-color: rgba(255, 59, 59, 0.22);
}

.btn-small.orange {
  border-color: rgba(255, 166, 0, 0.22);
}

.btn-small.blue {
  border-color: rgba(66, 133, 244, 0.22);
}

.btn-small.green {
  border-color: rgba(52, 168, 83, 0.22);
}

.btn-small.grey {
  border-color: rgba(12, 12, 16, 0.12);
}

/* Upload form becomes compact */
.imageUploadForm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.imageUploadForm .form-fields {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Hide ugly native file input, keep accessible */
.imageUploadForm input[type="file"] {
  max-width: 180px;
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid rgba(12, 12, 16, 0.1);
  border-radius: 999px;
  background: #fff;
}

/* Small helper row for repeater/card controls */
.admin-subcontrols {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Better spacing on small screens */
@media (max-width: 760px) {
  .admin-controls {
    gap: 6px;
    padding: 10px;
  }

  .btn-small {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .imageUploadForm {
    width: 100%;
  }

  .imageUploadForm .form-fields {
    width: 100%;
  }

  .imageUploadForm input[type="file"] {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  padding: 24px;
}

.modal.open {
  display: block;
}

.modal-content,
.modal-footer {
  width: min(720px, 100%);
  margin: 0 auto;
  background: #fff;
}

.modal-content {
  margin-top: 5vh;
  padding: 24px;
  border-radius: 18px 18px 0 0;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 0 18px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-glass {
  backdrop-filter: blur(4px);
}

.js-inline-edit {
  transition: outline-color 0.15s ease, background-color 0.15s ease;
}

.js-inline-edit[contenteditable="true"]:hover {
  outline: 2px dashed rgba(255, 59, 59, 0.35);
  outline-offset: 6px;
  background: rgba(255, 59, 59, 0.03);
}

.js-inline-edit[contenteditable="true"]:focus {
  outline: 2px solid rgba(255, 59, 59, 0.55);
  outline-offset: 6px;
  background: rgba(255, 59, 59, 0.05);
}

.hero-body[contenteditable="true"] {
  border-radius: 12px;
}

.js-inline-edit.is-dirty {
  outline: 2px solid rgba(255, 179, 0, 0.75);
  outline-offset: 6px;
  background: rgba(255, 179, 0, 0.06);
}

.hero .admin-img {
  margin-top: 18px;
}

.upload-progress {
  width: 100%;
  height: 4px;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.upload-progress .indeterminate {
  width: 40%;
  height: 100%;
  background: rgba(255, 59, 59, 0.9);
  animation: uploadIndeterminate 1.1s infinite linear;
}

@keyframes uploadIndeterminate {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

.sortable-ghost {
  opacity: 0.35;
}

.sortable-chosen {
  cursor: grabbing;
}

.drag-entry-btn {
  cursor: grab;
}

.admin-notice-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  pointer-events: none;
  width: min(360px, calc(100vw - 32px));
}

.admin-notice-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-notice {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.admin-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-notice--success {
  border-left: 4px solid #2e7d32;
}

.admin-notice--error {
  border-left: 4px solid #c62828;
}

.admin-notice--info {
  border-left: 4px solid #1565c0;
}

.admin-notice__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.admin-notice__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.72;
}

.admin-notice__close:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .admin-notice-wrap {
    top: auto;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }

  .admin-notice {
    padding: 13px 14px;
    border-radius: 12px;
  }
}

#sectionEditModal {
  overflow-y: auto;
  padding: 2rem 1rem;
}

#sectionEditModal .modal-content {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

#sectionEditModal .modal-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 2;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ===== Map Block ===== */
.map-block__card {
  display: grid;
  gap: 1rem;
}

.map-block__embed {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #f5f5f5;
  box-shadow: 0 14px 40px rgba(17, 17, 17, 0.08);
}

.map-block__embed iframe {
  display: block;
  width: 100%;
  height: min(62vh, 520px);
  border: 0;
}

.map-block__actions {
  display: flex;
  justify-content: flex-start;
}
/* ===== Legal Content ===== */
.legal-content__inner {
  width: min(100%, 920px);
  margin: 0 auto;
}

.legal-content__card {
  padding: 24px;
}

.legal-content__body {
  font-size: 15px;
  line-height: 1.7;
}

.legal-content__body h3,
.legal-content__body h4 {
  margin: 1.5em 0 0.5em;
  line-height: 1.2;
}

.legal-content__body p,
.legal-content__body ul,
.legal-content__body ol {
  margin: 0 0 1em;
}

.legal-content__body ul,
.legal-content__body ol {
  padding-left: 1.25rem;
}

.legal-content__body strong {
  color: var(--text);
}

@media (max-width: 760px) {
  .legal-content__card {
    padding: 18px;
  }

  .legal-content__body {
    font-size: 14px;
    line-height: 1.65;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 760px) {
  .footer-links {
    width: 100%;
    justify-content: flex-start;
  }
}

.press-block-section {
  .press-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }

  @media (min-width: 900px) {
    .press-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .press-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    overflow: hidden;
    border-radius: 18px;
  }

  .press-card-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
  }

  .press-card-media {
    aspect-ratio: 16 / 9;
    background: #f3f3f3;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  .press-placeholder {
    display: grid;
    place-items: center;
    color: #777;
    font-size: 0.95rem;
  }

  .press-card-content {
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
  }

  .press-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #666;
  }

  .press-publication {
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .press-date {
    opacity: 0.85;
  }

  .press-card-title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .press-card-body {
    line-height: 1.6;
  }

  .press-links,
  .press-links-admin {
    display: grid;
    gap: 0.5rem;
  }

  .press-link {
    font-weight: 600;
    text-decoration: none;
  }

  .press-link-secondary {
    opacity: 0.8;
  }

  .press-entry-upload {
    padding: 0 1rem 1rem;
  }

  .entry-admin-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem 0 0.75rem;
  }

  .press-empty-state {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed rgba(0, 0, 0, 0.18);
    color: #666;
  }
}

.admin-fab-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
}

.admin-fab {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font: inherit;
  background: rgba(20, 20, 20, 0.88);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.admin-panel.is-open {
  pointer-events: auto;
}

.admin-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.admin-panel.is-open .admin-panel__backdrop {
  opacity: 1;
}

.admin-panel__sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.16);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
}

.admin-panel.is-open .admin-panel__sheet {
  transform: translateX(0);
}

.admin-panel__header,
.admin-panel__footer {
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-panel__footer {
  border-bottom: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: auto;
}

.admin-panel__body {
  overflow: auto;
  padding: 1rem;
}

.admin-panel__close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.admin-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-panel__section + .admin-panel__section {
  margin-top: 1.2rem;
}

.admin-panel__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-panel__actions--stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.admin-panel__hint,
.admin-panel__empty,
.admin-section-item__meta {
  font-size: 0.85rem;
  opacity: 0.72;
}

.admin-section-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.admin-section-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 0.8rem;
  background: #fff;
}

.admin-section-item__top,
.admin-section-item__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-section-item__title {
  font-weight: 600;
  margin: 0.45rem 0 0.25rem;
}

.admin-section-item__meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.admin-section-drag {
  cursor: grab;
}
