:root {
  --ui-surface: #ffffff;
  --ui-surface-subtle: rgba(255, 255, 255, 0.88);
  --ui-border-subtle: rgba(15, 23, 42, 0.14);
  --ui-text: #0f172a;
  --ui-text-muted: #475569;

  --c-red: #e11d48;
  --c-gold: #f59e0b;
  --c-blue: #0ea5e9;
  --c-green: #22c55e;

  --ui-primary: var(--c-red);
  --ui-primary-ink: #ffffff;
  --ui-focus: rgba(14, 165, 233, 0.35);

  --ui-radius-md: 14px;
  --ui-radius-lg: 18px;
  --ui-radius-xl: 26px;
  --ui-radius-pill: 999px;

  --ui-shadow-card: 0 20px 60px rgba(2, 6, 23, 0.12);
  --ui-shadow-soft: 0 12px 30px rgba(2, 6, 23, 0.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ui-text);
  background:
    radial-gradient(900px 520px at 8% 0%, rgba(245, 158, 11, 0.20), transparent 60%),
    radial-gradient(1000px 600px at 92% 0%, rgba(225, 29, 72, 0.16), transparent 60%),
    radial-gradient(900px 520px at 50% 18%, rgba(14, 165, 233, 0.14), transparent 65%),
    linear-gradient(180deg, #fff7ed, #ffffff 38%, #f1f5f9);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("/images/confetti.svg");
  background-repeat: repeat;
  background-position: 0 0;
  z-index: 0;
  opacity: 0.10;
}

body::before { background-size: 240px 170px; }
body::after { background-size: 360px 260px; opacity: 0.06; filter: saturate(1.05); }

@media (prefers-reduced-motion: no-preference) {
  body::before { animation: confetti-fall 12s linear infinite; }
  body::after { animation: confetti-fall 18s linear infinite; }
}

@keyframes confetti-fall {
  from { background-position: 0 -280px; }
  to { background-position: 160px 720px; }
}

a { color: var(--ui-primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; }
.app-container { width: 100%; max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
.app-main { padding: 18px 16px 32px; }

.site-header { padding: 16px 16px 0; }
.site-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ui-border-subtle);
  border-radius: var(--ui-radius-xl);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(225, 29, 72, 0.10), rgba(14, 165, 233, 0.08)),
    var(--ui-surface-subtle);
  box-shadow: var(--ui-shadow-card);
  position: relative;
  overflow: hidden;
}
.site-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-red), var(--c-gold), var(--c-blue), var(--c-green));
  opacity: 0.85;
}

.site-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--ui-text);
  min-width: 0;
}
.site-brand img { display: block; width: 34px; height: 34px; object-fit: contain; }
.site-brand-text { min-width: 0; display: grid; gap: 1px; }
.site-brand-text strong {
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-brand-text span {
  color: var(--ui-text-muted);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.site-nav-link {
  text-decoration: none;
  color: var(--ui-text);
  font-weight: 850;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: var(--ui-radius-pill);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.55);
}
.site-nav-link:hover { border-color: rgba(15, 23, 42, 0.10); text-decoration: none; }
.site-nav-link.is-active {
  border-color: rgba(225, 29, 72, 0.22);
  background: rgba(225, 29, 72, 0.10);
}

.site-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 980px) {
  .site-bar { grid-template-columns: 1fr auto; }
  .site-actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .site-bar { grid-template-columns: 1fr; }
  .site-nav { justify-content: flex-start; }
}

.card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border-subtle);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-card);
  overflow: hidden;
}

.card-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--ui-border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.10), rgba(245, 158, 11, 0.10), rgba(14, 165, 233, 0.08)),
    var(--ui-surface-subtle);
}

.card-title { font-weight: 950; letter-spacing: -0.01em; }
.card-subtitle { margin-top: 4px; color: var(--ui-text-muted); font-size: 0.94rem; }
.card-body { padding: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--ui-radius-pill);
  border: 1px solid var(--ui-border-subtle);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ui-text);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: var(--ui-shadow-soft);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--c-red), rgba(225, 29, 72, 0.92));
  border-color: transparent;
  color: var(--ui-primary-ink);
}
.btn-primary:hover { filter: brightness(0.98); }

.btn-secondary { background: rgba(255, 255, 255, 0.86); }

.btn-ghost {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.14);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.55); }

.btn-sm { padding: 7px 10px; font-size: 0.9rem; }

.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ui-border-subtle);
  border-radius: var(--ui-radius-md);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ui-text);
  font-size: 1rem;
}
.input:focus { outline: 3px solid var(--ui-focus); outline-offset: 2px; }

.form-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 850; }
textarea.input { min-height: 140px; resize: vertical; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.privacy-note { font-size: 0.9rem; color: var(--ui-text-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.range { width: 100%; }

.notice {
  padding: 10px 12px;
  border-radius: var(--ui-radius-md);
  border: 1px solid var(--ui-border-subtle);
}
.notice-info {
  border-color: rgba(14, 165, 233, 0.30);
  background: rgba(14, 165, 233, 0.10);
  color: #075985;
}
.notice-error {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.10);
  color: #7f1d1d;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--ui-radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.70);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.hero {
  margin-top: 16px;
  border-radius: var(--ui-radius-xl);
  border: 1px solid var(--ui-border-subtle);
  background:
    radial-gradient(800px 420px at 8% 18%, rgba(245, 158, 11, 0.18), transparent 60%),
    radial-gradient(900px 520px at 92% 10%, rgba(225, 29, 72, 0.18), transparent 62%),
    radial-gradient(900px 520px at 60% 0%, rgba(14, 165, 233, 0.14), transparent 62%),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--ui-shadow-card);
  overflow: hidden;
  padding: 18px 16px;
}

.hero-grid { display: grid; gap: 16px; align-items: start; }
.hero-copy { display: grid; gap: 10px; }
.hero-title {
  margin: 0;
  font-weight: 1000;
  letter-spacing: -0.02em;
  font-size: clamp(1.65rem, 2.9vw, 2.45rem);
  line-height: 1.1;
}
.hero-lead { margin: 0; color: var(--ui-text-muted); font-size: 1.02rem; line-height: 1.55; }
.hero-actions { margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }

.badges { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--ui-radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 950;
  font-size: 0.9rem;
  color: var(--ui-text);
}
.badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--c-red), var(--c-gold), var(--c-blue));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65);
}

.hero-media { margin: 0 auto; max-width: 560px; }
.shots { display: grid; gap: 12px; align-items: start; }
.shot {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--ui-shadow-soft);
  overflow: hidden;
}
.shot a { display: block; overflow: hidden; background: rgba(255, 255, 255, 0.92); }
.shot--a a { aspect-ratio: 3 / 2; }
.shot--b a { aspect-ratio: 4 / 5; }
.shot--c a { aspect-ratio: 16 / 10; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { padding: 10px 12px; font-size: 0.9rem; color: var(--ui-text-muted); }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-media { max-width: none; margin: 0; }
}

@media (max-width: 720px) {
  .hero-media { max-width: 520px; }
  .shot figcaption { padding: 9px 11px; font-size: 0.86rem; }
}

@media (min-width: 720px) {
  .shots { grid-template-columns: 1.55fr 1fr; }
  .shot--a { grid-row: 1 / span 2; }
}

.grid-2 { margin-top: 14px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.list { display: grid; gap: 8px; margin: 0; padding-left: 18px; }

.callout {
  margin-top: 12px;
  border-radius: var(--ui-radius-lg);
  border: 1px dashed rgba(15, 23, 42, 0.20);
  background: rgba(255, 255, 255, 0.70);
  padding: 12px;
}
.callout__title { font-weight: 950; }

.calc { display: grid; gap: 12px; }
.calc-row { display: grid; gap: 8px; }
.calc-label { font-weight: 900; }
.calc-result {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--ui-radius-lg);
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
  display: grid;
  gap: 4px;
}
.calc-result__label { font-weight: 900; color: var(--ui-text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
.calc-result__value { font-weight: 1000; letter-spacing: -0.02em; font-size: 1.8rem; }
.calc-result__note { color: var(--ui-text-muted); font-size: 0.92rem; }

.price-pill {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--ui-radius-xl);
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
  display: grid;
  gap: 4px;
  box-shadow: var(--ui-shadow-soft);
}
.price-pill__kicker { font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--ui-text-muted); }
.price-pill__value { font-weight: 1000; letter-spacing: -0.02em; font-size: 1.9rem; }
.price-pill__note { color: var(--ui-text-muted); }

.hero--compact { padding: 16px; }
.hero-grid--compact { align-items: center; }
.hero-aside { display: flex; justify-content: flex-start; }
@media (min-width: 980px) {
  .hero-grid--compact { grid-template-columns: 1.2fr 0.8fr; }
  .hero-aside { justify-content: flex-end; }
}

.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid rgba(15, 23, 42, 0.10); vertical-align: top; }
.table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.10em; color: var(--ui-text-muted); }

@media (max-width: 800px) {
  .table thead { display: none; }
  .table tbody { display: grid; gap: 10px; }
  .table tr {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--ui-radius-lg);
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.86);
  }
  .table td { border: none; padding: 0; display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
  .table td::before { content: attr(data-label); color: var(--ui-text-muted); font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
}

.footer {
  margin: 18px 16px 18px;
  text-align: center;
  color: var(--ui-text-muted);
  font-size: 0.92rem;
}
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.is-modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 2000;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.60);
  backdrop-filter: blur(3px);
}
.modal__panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100vh - 36px);
  border-radius: var(--ui-radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--ui-shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.modal__top { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 12px 0; }
.modal__body { padding: 10px 12px 0; display: grid; place-items: center; }
.modal__img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.14);
}
.modal__caption {
  padding: 10px 14px 14px;
  color: var(--ui-text-muted);
  font-weight: 750;
  text-align: center;
}

.page-legal .app-container { max-width: 960px; }
.page-legal .app-main { max-width: 860px; margin: 0 auto; }
.page-contact .app-container { max-width: 960px; }
.page-contact .app-main { max-width: 860px; margin: 0 auto; }

@media (max-width: 520px) {
  .btn { width: 100%; }
  .site-actions { width: 100%; }
}
