:root {
  --bg: #f4e7e2;
  --bg-strong: #fbf3ef;
  --surface: rgba(255, 253, 248, 0.8);
  --surface-strong: #fffdf9;
  --text: #241a17;
  --muted: #7a685f;
  --primary: #8f8779;
  --primary-dark: #4f493f;
  --gold: #b3874f;
  --gold-soft: #e6d3ab;
  --accent: #ecdfc4;
  --border: rgba(143, 135, 121, 0.16);
  --shadow: 0 24px 70px rgba(60, 56, 51, 0.14);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
  --success-bg: #edf8f0;
  --success-text: #215732;
  --danger-bg: #fff1f1;
  --danger-text: #8d2d2d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(230, 211, 171, 0.4), transparent 26%),
    linear-gradient(180deg, #faf0ec 0%, #f4e7e2 38%, #ede0d8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.5), transparent 22%),
    radial-gradient(circle at 20% 75%, rgba(143, 135, 121, 0.05), transparent 24%);
}

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

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

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

.wrap {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 0.9rem;
  backdrop-filter: blur(10px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 1rem;
  padding: 0.85rem 1.3rem;
  background: rgba(255, 253, 250, 0.78);
  border: 1px solid rgba(179, 135, 79, 0.28);
  border-radius: 0;
  box-shadow: 0 6px 24px rgba(60, 56, 51, 0.06);
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 0;
  border: 1px solid var(--gold);
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--gold-soft);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(230, 211, 171, 0.14);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-text small {
  color: var(--muted);
}

.site-header .brand-text small {
  display: none;
}

.nav-links {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(300px, calc(100vw - 1.2rem));
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 1rem 1.1rem;
  border-radius: 0;
  border: 1px solid rgba(179, 135, 79, 0.28);
  background: rgba(255, 253, 250, 0.98);
  box-shadow: 0 20px 46px rgba(60, 56, 51, 0.12);
  backdrop-filter: blur(14px);
  z-index: 50;
}

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

.nav-links a {
  width: 100%;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(143, 135, 121, 0.1);
  transition: color 160ms ease, padding-left 160ms ease;
}

.nav-links a:hover {
  color: var(--primary);
  padding-left: 0.2rem;
}

.nav-links a:last-child {
  border-bottom: 0;
}

.nav-links a.current {
  color: var(--primary);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(179, 135, 79, 0.4);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  flex-direction: column;
  gap: 4px;
  transition: border-color 180ms ease;
}

.nav-toggle:hover {
  border-color: var(--gold);
}

.nav-toggle span {
  display: block;
  width: 13px;
  height: 1px;
  background: var(--primary);
  border-radius: 999px;
  transition: transform 220ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: var(--gold-soft);
  font-weight: 500;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  box-shadow: 0 18px 34px rgba(143, 135, 121, 0.2);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  color: #fffdf9;
  box-shadow: 0 22px 40px rgba(143, 135, 121, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-dark);
  border-color: var(--border);
  box-shadow: none;
}

.btn-small {
  padding: 0.75rem 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
}

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
}

h3 {
  font-size: 1.9rem;
  line-height: 1.05;
}

p,
li {
  line-height: 1.75;
}

.lead,
.muted,
.section-heading p,
.card p,
.panel p,
.footer-copy,
.gallery-copy p,
.form-note,
.contact-card p,
.contact-stack p,
.admin-subtle {
  color: var(--muted);
}

.section {
  padding: 4rem 0;
}

.eyebrow {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: var(--gold);
  font-weight: 600;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

.page-hero-visual {
  min-height: 520px;
  border-radius: 38px;
  overflow: hidden;
  border: 1px solid rgba(143, 135, 121, 0.16);
  box-shadow: var(--shadow);
  position: relative;
  background: linear-gradient(160deg, rgba(255, 250, 246, 0.95), rgba(236, 218, 207, 0.9));
}

.page-hero-visual img,
.gallery-visual img,
.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-glass-card {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(143, 135, 121, 0.12);
  backdrop-filter: blur(10px);
  max-width: 260px;
  z-index: 2;
}

.hero-glass-card span,
.summary-card span,
.product-pill,
.admin-pill {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(179, 135, 79, 0.12);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.summary-grid,
.card-grid,
.gallery-grid,
.contact-grid,
.admin-grid,
.admin-stats,
.stat-list {
  display: grid;
  gap: 1.4rem;
}

.summary-grid,
.card-grid,
.admin-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

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

.stat-list {
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 2rem 0 0;
}

.detail-list,
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stat-list li,
.card,
.panel,
.summary-card,
.gallery-card,
.form-card,
.contact-card,
.contact-stack,
.cta-banner,
.admin-panel,
.admin-stat,
.notice,
.table-wrap {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.stat-list li,
.card,
.panel,
.summary-card,
.contact-stack,
.contact-card,
.form-card,
.admin-panel,
.admin-stat,
.notice {
  padding: 1.5rem;
}

.stat-list strong,
.admin-stat strong {
  display: block;
  font-size: 1.8rem;
  font-family: "Cormorant Garamond", serif;
}

.summary-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.gallery-card {
  overflow: hidden;
}

.tile-card {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.tile-link {
  display: block;
  height: 100%;
}

.tile-visual {
  min-height: 300px;
}

.tile-visual img,
.tile-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-copy {
  padding: 1.15rem 1.15rem 1.3rem;
}

.tile-copy strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.gallery-visual,
.contact-visual {
  min-height: 260px;
}

.gallery-copy {
  padding: 1rem 1.1rem 1.2rem;
}

.gallery-copy strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.detail-list li,
.footer-list li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--muted);
}

.detail-list li + li,
.footer-list li + li {
  margin-top: 0.65rem;
}

.detail-list li::before,
.footer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.price {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

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

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
}

form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(143, 135, 121, 0.2);
  background: var(--surface-strong);
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(179, 135, 79, 0.24);
  border-color: rgba(179, 135, 79, 0.44);
}

.notice {
  margin: 0 0 1.2rem;
}

.notice-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.notice-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  font-weight: 600;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  color: white;
  background: rgba(48, 41, 38, 0.92);
  box-shadow: 0 16px 40px rgba(30, 25, 22, 0.25);
  transform: translateY(120%);
  opacity: 0;
  transition: 220ms ease;
  z-index: 40;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.hero-scroll {
  position: relative;
  height: 480vh;
  margin-top: 0;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #0e0a08;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 58% at 50% 46%, rgba(8, 5, 4, 0.68) 0%, rgba(8, 5, 4, 0.42) 42%, rgba(8, 5, 4, 0.15) 66%, transparent 82%),
    linear-gradient(180deg, rgba(8, 5, 4, 0.55) 0%, rgba(8, 5, 4, 0.2) 20%, rgba(8, 5, 4, 0.14) 68%, rgba(8, 5, 4, 0.45) 100%);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.2rem 3.8rem;
  pointer-events: none;
}

.hero-copy {
  max-width: 860px;
}

.hero-kicker,
.hero-subtitle,
.hero-hint,
.hero-title {
  color: #fbf6e9;
  font-style: italic;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.6);
}

.hero-kicker {
  margin: 0 0 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--gold-soft);
  text-indent: 0.36em;
}

.hero-kicker-rule {
  width: 1px;
  height: 34px;
  margin: 0 auto 1.4rem;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.1rem, 7.4vw, 5.6rem);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-subtitle,
.hero-hint {
  margin: 0.9rem 0 0;
  max-width: 52ch;
  margin-inline: auto;
}

.hero-subtitle {
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(251, 246, 233, 0.88);
}

.hero-hint {
  font-weight: 300;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: rgba(251, 246, 233, 0.6);
  font-style: normal;
}

/* ---------- offer panel: the "Ponudba" hierarchy that travels across the video on scroll ---------- */
.offer-panel {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  padding-left: max(6vw, 2rem);
  will-change: transform, opacity;
}

.offer-panel-inner {
  width: 100%;
  max-width: 460px;
}

.offer-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  color: var(--gold-soft);
  text-align: left;
  letter-spacing: 0.02em;
  margin: 0 0 1.8rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.offer-item-title {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  color: #fbf6e9;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  transition: color 180ms ease;
}

a.offer-item-title:hover {
  color: var(--gold-soft);
}

.offer-sub {
  list-style: none;
  margin: 0.8rem 0 0;
  padding-left: 1.8rem;
  border-left: 1px solid rgba(230, 211, 171, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.offer-sub li {
  position: relative;
  padding-left: 1.05rem;
}

.offer-sub li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}

.offer-sub a {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.82rem, 1.3vw, 0.96rem);
  color: rgba(251, 246, 233, 0.75);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 180ms ease;
}

.offer-sub a:hover {
  color: var(--gold-soft);
}

.hero-frame {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(179, 135, 79, 0.28);
  pointer-events: none;
  z-index: 2;
}

.hero-seal {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 64px;
  height: 64px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.hero-seal-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9a15f 0%, var(--gold) 45%, #7a4f27 100%);
  box-shadow: 0 0 0 1px rgba(255, 231, 190, 0.25) inset, 0 8px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-seal-inner span {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: #241a17;
}

/* ---------- Top ponudba: 3-image showcase ---------- */
.top-offer-section {
  background: var(--bg);
  padding: 5rem 0 3rem;
  text-align: center;
}

.top-offer-inner {
  max-width: 980px;
  margin: 0 auto;
}

.top-offer-kicker {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.74rem;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

.top-offer-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--primary);
  margin: 0 0 2.6rem;
}

.top-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.top-offer-item {
  margin: 0;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(179, 135, 79, 0.4);
  background: rgba(179, 135, 79, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top-offer-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-offer-placeholder {
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- O nas teaser on the homepage ---------- */
.about-teaser-section {
  background: var(--bg);
  padding: 1rem 0 6rem;
}

.about-teaser-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-teaser-kicker {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.74rem;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.about-teaser-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--primary);
  margin: 0 0 1.5rem;
  line-height: 1.28;
}

.about-teaser-text {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  opacity: 0.82;
}

@media (max-width: 720px) {
  .top-offer-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}


.admin-shell {
  padding: 2rem 0 3rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-panels {
  display: grid;
  gap: 1.5rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-stat strong {
  font-size: 2rem;
}

.code-editor {
  min-height: 280px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
}

.table-wrap {
  padding: 0;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(143, 135, 121, 0.12);
  vertical-align: top;
}

th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(179, 135, 79, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
}

.media-list {
  display: grid;
  gap: 1rem;
}

.media-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
}

.media-thumb {
  width: 120px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.login-card {
  width: min(100%, 460px);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

@media (max-width: 1080px) {
  .page-hero,
  .split-section,
  .contact-grid,
  .gallery-grid,
  .tile-grid,
  .footer-grid,
  .summary-grid,
  .card-grid,
  .admin-grid,
  .admin-stats,
  .stat-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 1.1rem), var(--container));
  }

  .nav-shell {
    border-radius: 28px;
  }

  .page-hero,
  .split-section,
  .contact-grid,
  .gallery-grid,
  .tile-grid,
  .footer-grid,
  .summary-grid,
  .card-grid,
  .form-grid,
  .admin-grid,
  .admin-stats,
  .stat-list {
    grid-template-columns: 1fr;
  }

  .page-hero-visual {
    min-height: 360px;
  }

  .cta-banner,
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-scroll {
    height: 460vh;
  }

  .hero-sticky {
    top: 0;
    height: 100vh;
  }

  .offer-panel {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .offer-item-title {
    font-size: clamp(1.05rem, 5vw, 1.3rem);
  }

  .offer-sub a {
    font-size: clamp(0.76rem, 3.6vw, 0.88rem);
  }

  .media-item {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Admin content editor (added: structured forms, no raw JSON)
   ========================================================= */

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.page-tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.page-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.page-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  color: var(--text);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.page-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.page-link-card span {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
}

.content-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.field-row input,
.field-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.field-row textarea {
  resize: vertical;
}

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

.field-group {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.1rem;
  margin: 0 0 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.field-group legend {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  padding: 0 0.4rem;
}

.field-group-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0.6rem 0 0.4rem;
}

.repeater {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.repeater-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.repeater-item {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.7rem;
  align-items: end;
  background: rgba(255, 255, 255, 0.5);
}

.btn-danger {
  background: transparent;
  border: 1px solid rgba(178, 48, 48, 0.4);
  color: #a52a2a;
}

.btn-danger:hover {
  background: rgba(178, 48, 48, 0.08);
}

/* drag-and-drop upload */
.dropzone {
  border: 2px dashed var(--gold);
  border-radius: 20px;
  padding: 2.4rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(179, 135, 79, 0.05);
  transition: background 160ms ease, border-color 160ms ease;
}

.dropzone.is-dragover {
  background: rgba(179, 135, 79, 0.14);
  border-color: var(--primary);
}

.dropzone-label {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.dropzone-sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.dropzone-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.dropzone-meta label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.dropzone-meta input {
  font-family: inherit;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.dropzone-status {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.dropzone-status li {
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
}

.dropzone-status li.is-success {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

.dropzone-status li.is-error {
  background: rgba(178, 48, 48, 0.12);
  color: #a52a2a;
}

.fallback-upload {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.fallback-upload summary {
  cursor: pointer;
  color: var(--muted);
}

.fallback-upload form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.media-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
}

.media-card .media-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.media-card-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill-form {
  display: inline-flex;
}

.admin-pill.removable {
  border: 0;
  cursor: pointer;
  font-size: 0.75rem;
}

.inline-form {
  display: flex;
  gap: 0.4rem;
}

.inline-form input {
  flex: 1;
  font-family: inherit;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
}

.backups-heading {
  margin: 1.4rem 0 0.6rem;
  font-size: 0.95rem;
}

.backup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.backup-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .field-group,
  .repeater-item {
    grid-template-columns: 1fr;
  }
}

