/* =========================================
   ROYAL CARTOUCHE — SHARED WEBSITE STYLES
   English / Russian / Azerbaijani
   ========================================= */

:root {
  color-scheme: dark;

  --background: #10110f;
  --surface: #191b17;
  --surface-hover: #23261f;

  --gold: #d6af56;
  --gold-light: #efd18a;

  --text: #f5f0e6;
  --muted: #b9bbaf;
  --border: #3d4035;
  --cream: #f5e7d2;

  --success: #a8d8ab;
  --error: #ffb4ab;

  --radius: 8px;
  --container: 1280px;
}

/* BASE */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--background);
  color: var(--text);
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

[hidden] { display: none !important; }

img { max-width: 100%; }

button, input, select, textarea { font: inherit; }

button, a, input, select {
  -webkit-tap-highlight-color: transparent;
}

button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }

button, input, select { border-radius: var(--radius); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

::selection {
  background: var(--gold);
  color: var(--background);
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

p { margin-bottom: 18px; }

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.section { padding-block: 72px; }

.section-heading {
  max-width: 800px;
  margin-bottom: 36px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.helper-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ACCESSIBILITY */

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--gold);
  color: #111;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

/* HEADER */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 104px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.brand-name {
  margin-bottom: 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.09em;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.main-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.main-navigation a {
  padding-block: 8px;
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.main-navigation a:hover { color: var(--gold); }

/* LANGUAGE SWITCHER */

.language-switcher {
  position: relative;
}

.language-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color 160ms ease, background 160ms ease;
}

.language-current:hover {
  border-color: var(--gold);
  background: var(--surface-hover);
}

.language-flag { font-size: 1.4rem; line-height: 1; }

.language-chevron {
  font-size: 0.7rem;
  color: var(--gold);
  transition: transform 160ms ease;
}

.language-current[aria-expanded="true"] .language-chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  text-align: start;
  transition: background 160ms ease, color 160ms ease;
}

.language-option:hover {
  background: var(--surface-hover);
  color: var(--gold-light);
}

.language-option.is-active {
  background: #282416;
  color: var(--gold-light);
}

/* PREVIEW NOTICE */

.preview-notice {
  margin-block: 18px;
  padding: 12px 18px;
  border: 1px solid #51472d;
  border-radius: var(--radius);
  background: #211e15;
  color: #e4cf9e;
  text-align: center;
}

.preview-notice p { margin: 0; font-size: 0.875rem; }

/* BANNER */

.hero {
  max-width: 1600px;
  margin-inline: auto;
}

.hero-image-wrapper {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  background: #080907;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image-wrapper > .image-status {
  padding: 70px 24px;
}

.hero-content {
  padding-block: 42px 52px;
  border-bottom: 1px solid var(--border);
}

.hero-content h1 { max-width: 1000px; }

.hero-content > p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-content .button { margin-top: 8px; }

/* BUTTONS */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #15160f;
}

.button-primary:hover:not(:disabled) {
  border-color: var(--gold-light);
  background: var(--gold-light);
}

.button-secondary {
  border-color: #8c743e;
  background: transparent;
  color: var(--gold-light);
}

.button-secondary:hover:not(:disabled) {
  background: #292518;
  border-color: var(--gold);
}

.button:disabled {
  border-color: #525348;
  background: #292b25;
  color: #b2b4a9;
}

/* ELEMENTS GRID */

.elements-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.element-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 160ms ease;
}

.element-card:hover { border-color: #85703f; }

.element-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
}

.element-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.element-counter {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

.element-image-wrapper {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
}

.element-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-status {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.element-image-wrapper .image-status { color: #57472d; }

.element-controls {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 2px;
  min-height: 88px;
  padding: 12px 6px;
}

.arrow-button {
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 44px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--gold);
  font-size: 1.4rem;
}

.arrow-button:hover {
  border-color: var(--border);
  background: var(--surface-hover);
}

.element-name {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.element-card > label {
  display: block;
  margin: 0 14px 7px;
  color: var(--muted);
  font-size: 0.875rem;
}

.element-card > select {
  width: calc(100% - 28px);
  margin: 0 14px 16px;
  padding: 11px 9px;
  font-size: 0.875rem;
}

/* FORMS */

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

label > span[aria-hidden="true"] { color: var(--gold); }

input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #535648;
  background: #131510;
  color: var(--text);
  line-height: 1.5;
}

input::placeholder, textarea::placeholder {
  color: #a4a798;
  opacity: 1;
}

input:hover, select:hover, textarea:hover {
  border-color: #8d805b;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
}

input[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--error);
}

select { cursor: pointer; }
select option { background: var(--surface); color: var(--text); }

.field { margin-bottom: 22px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* PERSONALIZE SECTION */

.personalize-section {
  border-top: 1px solid var(--border);
  background: #141611;
}

.personalize-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}

.design-summary {
  position: sticky;
  top: 24px;
  min-width: 0;
  padding: 30px;
  border: 1px solid #685735;
  border-radius: var(--radius);
  background: var(--surface);
}

.design-summary > h3 {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  text-align: center;
}

.preview-name {
  margin: 22px 0 26px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.selected-images,
.review-images,
.order-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.selected-images:empty,
.review-images:empty,
.order-images:empty { display: none; }

.selected-image-card,
.review-image-card,
.order-image-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--cream);
  color: #211d14;
}

.selected-image-card img,
.review-image-card img,
.order-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.selected-image-card figcaption,
.review-image-card figcaption,
.order-image-card figcaption {
  padding: 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.summary-list { margin: 0; }

.summary-list > div {
  display: grid;
  grid-template-columns: minmax(80px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  padding-block: 13px;
  border-bottom: 1px solid var(--border);
}

.summary-list dt { color: var(--muted); font-size: 0.875rem; }

.summary-list dd {
  margin: 0;
  color: var(--gold-light);
  font-size: 0.875rem;
  text-align: end;
  overflow-wrap: anywhere;
}

.design-summary > .helper-text { margin-top: 22px; text-align: center; }

.design-form { min-width: 0; }

.availability-section { margin: 26px 0 32px; }
.availability-section .button { width: 100%; }

.contact-fields {
  min-width: 0;
  margin: 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.contact-fields legend {
  padding: 0 14px 0 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.contact-fields > .helper-text { margin: 0 0 22px; }

.checkout-summary {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.checkout-summary .button { width: 100%; }
.checkout-summary .helper-text { margin: 0; }

/* STATUS MESSAGES */

.status-message {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.status-message:empty { display: none; }

.status-message.is-success,
.status-message[data-state="success"] { color: var(--success); }

.status-message.is-error,
.status-message[data-state="error"] { color: var(--error); }

.status-message.is-loading,
.status-message[data-state="loading"] { color: var(--gold-light); }

/* ORDER LOOKUP */

.lookup-section { border-top: 1px solid var(--border); }

.lookup-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  max-width: 800px;
}

.lookup-form .field {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.lookup-form .button { flex-shrink: 0; }

.lookup-result {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.lookup-result h3 { color: var(--gold-light); }

.cartouche-name-display {
  margin: 12px 0 20px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.lookup-result .order-images { max-width: 760px; }

/* FOOTER */

.site-footer {
  padding-block: 36px;
  border-top: 1px solid var(--border);
  background: #0b0d09;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}

.footer-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-text p { margin: 0; }
.footer-brand-text .brand-name { margin-bottom: 2px; }

.footer-brand-text p:not(.brand-name) {
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid #3d4035;
  border-radius: var(--radius);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.footer-link:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  text-decoration: none;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #8c743e;
  border-radius: var(--radius);
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.footer-contact-link::before {
  content: "✉️";
  font-size: 1.1rem;
  line-height: 1;
}

.footer-contact-link:hover {
  background: #292518;
  border-color: var(--gold);
  color: var(--gold);
  text-decoration: none;
}

.footer-content > a:not(.footer-contact-link) {
  display: inline-block;
  padding-block: 7px;
  color: var(--gold-light);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.footer-content > a:not(.footer-contact-link):hover { color: var(--text); }

/* DIALOG */

dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--background);
  color: var(--text);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dialog-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.dialog-header form { flex-shrink: 0; }

.dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--gold);
  font-size: 1.8rem;
  line-height: 1;
}

.dialog-close:hover { background: var(--surface-hover); }

#review-content { overflow-wrap: anywhere; }
#review-content h3 { color: var(--gold-light); }

#review-content .contact-review {
  color: var(--muted);
  white-space: pre-line;
}

#review-dialog > .helper-text {
  margin-block: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

#review-dialog > form .button { width: 100%; }

/* DELIVERY NOTICE DIALOG */

#delivery-notice-dialog {
  width: min(600px, calc(100% - 32px));
  border-color: var(--gold);
  background: linear-gradient(145deg, #1a1a12, var(--background));
}

#delivery-notice-dialog .dialog-header {
  justify-content: center;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

#delivery-notice-dialog .dialog-header h2 {
  color: var(--gold-light);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: 0.02em;
}

.delivery-notice-text {
  margin: 0 0 28px;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: rgba(214, 175, 86, 0.05);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.delivery-notice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.delivery-notice-actions .button {
  width: 100%;
}

noscript > p {
  margin: 20px;
  padding: 20px;
  border: 1px solid var(--gold);
  background: var(--surface);
  color: var(--gold-light);
}

/* =========================================
   ROYAL SPECIAL EDITION PAGE ($999)
   ========================================= */

.royal-hero {
  position: relative;
  overflow: hidden;
  padding-block: 80px 60px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 175, 86, 0.12), transparent 60%),
    linear-gradient(180deg, #131208 0%, var(--background) 100%);
  text-align: center;
}

.royal-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 900px;
}

.royal-crown-badge {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 175, 86, 0.2), transparent 70%);
  color: var(--gold);
  font-size: 2.5rem;
  line-height: 1;
  box-shadow: 0 0 40px rgba(214, 175, 86, 0.3);
}

.royal-eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.royal-title {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 0 30px rgba(214, 175, 86, 0.3);
}

.royal-subtitle {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.royal-price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 32px;
  border: 2px solid var(--gold);
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(214, 175, 86, 0.2), rgba(214, 175, 86, 0.05));
  box-shadow: 0 0 40px rgba(214, 175, 86, 0.25);
}

.royal-price-label {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.royal-price-value {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 20px rgba(214, 175, 86, 0.5);
}

.royal-price-currency {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.royal-images-display {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 40px;
}

.royal-image-display-item {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid var(--gold);
  border-radius: 16px;
  background: linear-gradient(145deg, #1a1a12, var(--surface));
  box-shadow:
    0 0 40px rgba(214, 175, 86, 0.2),
    inset 0 0 30px rgba(214, 175, 86, 0.05);
  transition:
    transform 250ms ease,
    box-shadow 250ms ease;
}

.royal-image-display-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 60px rgba(214, 175, 86, 0.4),
    inset 0 0 30px rgba(214, 175, 86, 0.08);
}

.royal-image-display-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.royal-image-display-item > .image-status {
  color: var(--gold);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.royal-type-section {
  background: var(--background);
}

.royal-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}

.royal-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 24px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.royal-type-card:hover {
  border-color: var(--gold);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.royal-type-card.is-active {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(214, 175, 86, 0.15), rgba(214, 175, 86, 0.03));
  box-shadow: 0 0 50px rgba(214, 175, 86, 0.3);
}

.royal-type-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 15px rgba(214, 175, 86, 0.5));
}

.royal-type-name {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.royal-type-desc {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.05em;
}

.royal-elements-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.royal-summary {
  border-color: var(--gold);
  background: linear-gradient(145deg, #1a1a12, var(--surface));
}

.royal-type-display {
  margin: 20px 0 8px;
  padding: 12px 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  text-align: center;
  transition: color 200ms ease, border-color 200ms ease;
}

.royal-type-display.is-set {
  border-style: solid;
  border-color: var(--gold);
  color: var(--gold-light);
  text-shadow: 0 0 15px rgba(214, 175, 86, 0.4);
}

.royal-summary .royal-summary-price {
  display: grid;
  grid-template-columns: minmax(80px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  padding-block: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--gold);
  border-bottom: none;
}

.royal-summary .royal-summary-price dt {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.royal-summary .royal-summary-price dd {
  margin: 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: end;
}

.royal-checkout-button {
  min-height: 60px;
  padding: 18px 28px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(214, 175, 86, 0.4);
}

.royal-checkout-button:hover:not(:disabled) {
  box-shadow: 0 0 50px rgba(214, 175, 86, 0.6);
}

/* =========================================
   CONTACT PAGE
   ========================================= */

.contact-hero {
  padding-block: 80px 40px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 175, 86, 0.1), transparent 60%),
    linear-gradient(180deg, #131208 0%, var(--background) 100%);
  text-align: center;
}

.contact-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 800px;
}

.contact-icon-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 175, 86, 0.2), transparent 70%);
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 0 40px rgba(214, 175, 86, 0.3);
}

.contact-eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.contact-title {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 0 30px rgba(214, 175, 86, 0.3);
}

.contact-subtitle {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-info-section {
  padding-block: 60px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin-inline: auto;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.contact-info-card:hover {
  border-color: var(--gold);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(214, 175, 86, 0.2);
}

.contact-info-card-static {
  cursor: default;
}

.contact-info-card-static:hover {
  transform: translateY(-4px);
}

.contact-info-icon {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(214, 175, 86, 0.4));
}

.contact-info-label {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-info-value {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-form-section {
  padding-block: 60px 80px;
  border-top: 1px solid var(--border);
  background: #141611;
}

.contact-form {
  max-width: 700px;
}

.contact-form .field {
  margin-bottom: 22px;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
  font-family: inherit;
}

.contact-form-actions {
  margin-top: 26px;
}

.contact-form-actions .button {
  width: 100%;
}

/* =========================================
   LEGAL PAGES (Privacy Policy, Terms, etc.)
   ========================================= */

.legal-hero {
  padding-block: 80px 40px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 175, 86, 0.1), transparent 60%),
    linear-gradient(180deg, #131208 0%, var(--background) 100%);
  text-align: center;
}

.legal-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 800px;
}

.legal-icon-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 175, 86, 0.2), transparent 70%);
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 0 40px rgba(214, 175, 86, 0.3);
}

.legal-eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.legal-title {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 0 30px rgba(214, 175, 86, 0.3);
}

.legal-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.legal-section {
  padding-block: 60px 80px;
}

.legal-content {
  max-width: 820px;
  margin-inline: auto;
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 18px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 26px;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.legal-content a:hover {
  color: var(--gold-light);
}

.legal-signature {
  margin-top: 50px;
  padding-top: 26px;
  border-top: 2px solid var(--gold);
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
}

.legal-signature em {
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

/* MEDIA SCREENS */

@media (max-width: 1100px) {
  .header-content { justify-content: center; }
  .brand { margin-right: auto; }

  .language-switcher {
    margin-inline: auto;
  }

  .elements-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .personalize-grid { gap: 30px; }
  .design-summary { padding: 24px; }

  .royal-elements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .container { width: calc(100% - 40px); }
  .section { padding-block: 48px; }

  .hero-content { padding-block: 32px 40px; }

  .personalize-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .design-summary { position: static; }

  .selected-images {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .main-navigation { gap: 18px; }

  .lookup-form {
    align-items: stretch;
    flex-direction: column;
  }

  .lookup-form .button { align-self: flex-start; }

  .royal-type-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .royal-type-card {
    padding: 28px 20px;
  }

  .royal-hero {
    padding-block: 50px 40px;
  }

  .royal-images-display {
    gap: 16px;
    max-width: 100%;
    margin-bottom: 32px;
  }

  .royal-image-display-img {
    padding: 8px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-info-section,
  .contact-form-section {
    padding-block: 40px;
  }

  .legal-hero {
    padding-block: 60px 30px;
  }

  .legal-section {
    padding-block: 40px 60px;
  }

  .legal-content h2 {
    margin-top: 32px;
  }

  .legal-content h3 {
    margin-top: 22px;
  }
}

@media (max-width: 540px) {
  .container { width: calc(100% - 32px); }

  .header-content { gap: 16px; padding-block: 20px; }

  .brand {
    align-items: center;
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .brand-name { font-size: 1.2rem; }

  .main-navigation {
    justify-content: center;
    width: 100%;
    gap: 8px 18px;
  }

  .main-navigation a { font-size: 0.875rem; }

  .preview-notice {
    margin-block: 12px;
    padding: 12px;
    text-align: start;
  }

  .hero-image-wrapper { min-height: 140px; }
  .hero-content { padding-top: 28px; }
  .hero-content .button { width: 100%; }

  .section { padding-block: 40px; }
  .section-heading { margin-bottom: 26px; }
  .eyebrow { letter-spacing: 0.06em; }

  .elements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .element-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 6px);
  }

  .element-heading { gap: 6px; padding: 12px; }
  .element-heading h3 { font-size: 1rem; }

  .element-controls {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    padding-inline: 2px;
  }

  .arrow-button { width: 36px; min-height: 44px; }
  .element-name { font-size: 0.875rem; }

  .element-card > label { margin-inline: 10px; font-size: 0.875rem; }

  .element-card > select {
    width: calc(100% - 20px);
    margin-inline: 10px;
    font-size: 16px;
  }

  .design-summary { padding: 22px 18px; }

  .selected-images,
  .review-images,
  .order-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .button { padding-inline: 16px; }

  .lookup-form .button {
    align-self: stretch;
    width: 100%;
  }

  .lookup-result { padding: 20px 16px; }

  .cartouche-name-display {
    font-size: 1.3rem;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .footer-brand { margin-right: 0; }

  .footer-links {
    width: 100%;
    justify-content: center;
  }

  dialog { padding: 22px 18px; }

  #delivery-notice-dialog {
    padding: 24px 18px;
  }

  .delivery-notice-text {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .delivery-notice-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .royal-crown-badge {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }

  .royal-price-badge {
    padding: 12px 22px;
  }

  .royal-elements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .royal-type-name {
    font-size: 1.3rem;
  }

  .royal-summary .royal-summary-price dd {
    font-size: 1.2rem;
  }

  .royal-images-display {
    gap: 12px;
  }

  .royal-image-display-item {
    border-width: 1px;
    border-radius: 12px;
  }

  .contact-icon-badge {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  .contact-hero {
    padding-block: 50px 30px;
  }

  .contact-info-card {
    padding: 24px 18px;
    gap: 10px;
  }

  .contact-info-icon {
    font-size: 2rem;
  }

  .contact-info-value {
    font-size: 0.95rem;
  }

  .legal-icon-badge {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  .legal-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 350px) {
  .elements-grid { grid-template-columns: 1fr; }

  .element-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .selected-images,
  .review-images,
  .order-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .royal-elements-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}