:root {
  --bg: #efe6d8;
  --bg-soft: #f7f1e8;
  --paper: rgba(255, 251, 245, 0.78);
  --paper-strong: #fffaf2;
  --ink: #171513;
  --ink-soft: #5f554d;
  --accent: #a97a45;
  --accent-dark: #6d4d2b;
  --line: rgba(23, 21, 19, 0.12);
  --line-strong: rgba(23, 21, 19, 0.2);
  --dark: #171513;
  --on-dark: #fff7ec;
  --success: #1f7448;
  --danger: #a14436;
  --shadow: 0 24px 70px rgba(58, 42, 26, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-serif: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(216, 187, 145, 0.52), transparent 28%),
    radial-gradient(circle at top right, rgba(169, 122, 69, 0.18), transparent 30%),
    linear-gradient(180deg, #f6efe6 0%, #eee2d3 100%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

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

button {
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(23, 21, 19, 0.06);
  background: rgba(246, 239, 230, 0.86);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.public-main,
.site-footer__inner,
.admin-frame,
.admin-header,
.screen-shell,
.legal-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: grid;
  gap: 3px;
}

.brand strong {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span,
.eyebrow {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-nav,
.hero-actions,
.footer-links,
.admin-actions,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.site-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
}

.lang-switch a {
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.lang-switch a.is-active {
  color: var(--on-dark);
  background: var(--dark);
}

.site-nav a,
.footer-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.public-main {
  padding: 30px 0 70px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-media,
.story-section,
.notify-section,
.panel,
.admin-card,
.legal-content,
.video-section,
.gallery-section,
.about-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 5vw, 62px);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 0.96;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  letter-spacing: -0.055em;
}

h1 span {
  display: block;
  color: var(--accent);
}

h2 {
  font-size: clamp(2.25rem, 4vw, 4.4rem);
  letter-spacing: -0.045em;
}

p {
  line-height: 1.75;
}

.lead {
  color: var(--accent-dark);
  font-weight: 800;
}

.price-card {
  display: grid;
  gap: 4px;
  margin: 26px 0;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.52);
}

.price-card strong {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-family: var(--font-serif);
}

.price-card small,
.price-card span {
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.btn-primary {
  color: #fff7ec;
  background: var(--dark);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.sold-notice {
  display: grid;
  gap: 6px;
  margin: -6px 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(161, 68, 54, 0.26);
  border-radius: var(--radius-md);
  color: #6f2d22;
  background: rgba(255, 239, 232, 0.78);
}

.sold-notice p {
  margin: 0;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

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

.stats,
.spec-grid,
.gallery-grid,
.panel-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

.stats article,
.spec-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
}

.stats strong {
  display: block;
  font-size: 2.15rem;
  font-family: var(--font-serif);
}

.story-section,
.notify-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 44px);
}

.story-section aside {
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--on-dark);
  background: var(--dark);
}

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

.spec-grid span {
  display: block;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.gallery-section,
.video-section {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 40px);
}

.about-section {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 40px);
}

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

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
}

.video-frame {
  overflow: hidden;
  width: min(860px, 100%);
  margin: 18px auto 0;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #0e0d0c;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0e0d0c;
}

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

.notify-section {
  align-items: center;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 14px 18px;
  border-radius: 999px;
  color: white;
  background: #128c4a;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.flash {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 80;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  padding: 14px 18px;
  border-radius: 18px;
  color: white;
  box-shadow: var(--shadow);
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.flash.is-hiding {
  opacity: 0;
  transform: translate(-50%, -10px);
}

.flash-success {
  background: var(--success);
}

.flash-error {
  background: var(--danger);
}

.screen-shell,
.legal-main {
  padding: 42px 0 70px;
}

.panel,
.legal-content {
  padding: clamp(24px, 5vw, 48px);
}

.legal-main h1 {
  margin: 12px 0 18px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.admin-shell {
  min-height: 100vh;
  padding-bottom: 60px;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.74), transparent 24%),
    radial-gradient(circle at 94% 22%, rgba(169, 122, 69, 0.12), transparent 28%);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 34px 0 22px;
}

.admin-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.admin-frame {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.admin-tabs {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.8);
}

.admin-tabs a {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--ink-soft);
  font-weight: 800;
}

.admin-tabs a.active,
.admin-tabs a:hover {
  color: var(--on-dark);
  background: var(--dark);
}

.admin-content {
  display: grid;
  gap: 22px;
}

.admin-card {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.86);
}

.admin-card h2 {
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}

.admin-card p {
  color: var(--ink-soft);
  max-width: 78ch;
}

.form-section-title {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.form-section-title h2 {
  margin-bottom: 6px;
}

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

.form-grid label,
.panel-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-grid input,
.form-grid textarea,
.panel-form input,
.panel-form textarea {
  min-height: 46px;
  border-color: rgba(23, 21, 19, 0.16);
  background: rgba(255, 255, 255, 0.82);
}

.form-grid textarea,
.panel-form textarea {
  line-height: 1.55;
}

.form-hint {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.email-test-card {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.7);
}

.form-grid .full,
.form-grid textarea,
.admin-card > button {
  grid-column: 1 / -1;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
}

.check-row input[type='checkbox'] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--dark);
}

.admin-video-current {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.admin-video-frame {
  width: min(520px, 100%);
  margin: 0;
}

.admin-video-current code {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.admin-video-current form {
  width: fit-content;
}

.security-warning {
  border-color: rgba(161, 68, 54, 0.28);
  background: rgba(255, 239, 232, 0.82);
}

.media-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.media-slot {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
}

.media-slot.is-featured {
  border-color: color-mix(in srgb, var(--accent) 62%, white);
  box-shadow: 0 0 0 3px rgba(169, 122, 69, 0.13);
}

.media-slot__preview {
  overflow: hidden;
  min-height: 160px;
  border-radius: 18px;
  background: rgba(23, 21, 19, 0.06);
}

.media-slot__preview img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.media-slot__empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: var(--ink-soft);
  font-weight: 800;
}

.media-slot__body {
  display: grid;
  gap: 10px;
}

.media-slot code {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.slot-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--on-dark);
  background: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.slot-form,
.slot-actions {
  display: grid;
  gap: 8px;
}

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

.slot-actions form,
.slot-actions .btn {
  width: 100%;
}

.danger-soft {
  color: var(--danger);
}

.billing-public-card {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
}

.billing-public-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.stat-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.order-card-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.order-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45);
}

.order-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.order-card__header h3 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.order-status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--on-dark);
  background: var(--dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.order-detail-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 251, 245, 0.68);
}

.order-detail-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-detail-grid strong {
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
}

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

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

.cookie-banner {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 16px;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(920px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.96);
  box-shadow: var(--shadow);
}

.cookie-settings {
  display: grid;
  gap: 8px;
}

.cookie-settings input {
  width: auto;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .hero,
  .story-section,
  .notify-section,
  .admin-frame {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 360px;
  }

  .stats,
  .spec-grid,
  .gallery-grid,
  .media-slot-grid,
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .admin-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    width: min(620px, calc(100% - 32px));
  }
}

@media (max-width: 620px) {
  .site-header__inner,
  .admin-header,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-tools {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 8px;
  }

  .stats,
  .spec-grid,
  .gallery-grid,
  .media-slot-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .slot-actions {
    grid-template-columns: 1fr;
  }

  .order-card__header,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .order-card__header {
    display: grid;
  }

  .hero-copy,
  .admin-card,
  .panel,
  .legal-content {
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}
