:root {
  --bg: #07080c;
  --bg-2: #101218;
  --card: #16181f;
  --line: rgba(212, 160, 23, 0.22);
  --gold: #d4a017;
  --gold-2: #f0d78c;
  --cream: #f3efe4;
  --muted: #9a9588;
  --ember: #c45c26;
  --ok: #7dba6e;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1120px;
  --pad: clamp(16px, 4vw, 20px);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-width: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(212, 160, 23, 0.12), transparent 55%),
    radial-gradient(900px 420px at -10% 20%, rgba(196, 92, 38, 0.08), transparent 50%),
    var(--bg);
  color: var(--cream);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--gold-2);
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 12, 0.9);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--cream);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  object-fit: cover;
}

.brand strong {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cream);
}

.menu-btn {
  display: none;
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(180deg, #f0d78c, var(--gold));
  color: #1a1404;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
  background: transparent;
}

.hero {
  padding: clamp(40px, 8vw, 88px) 0 clamp(32px, 6vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
}

.kicker {
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 8vw, 5.4rem);
}

h1 span {
  color: var(--gold-2);
  font-style: italic;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  margin: 18px 0 28px;
  overflow-wrap: anywhere;
}

.lede.tight {
  margin: 0 0 8px;
}

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

.hero-panel {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(212, 160, 23, 0.08), transparent 28%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.hero-panel h3 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  margin-bottom: 14px;
}

.stat-row,
.feature-grid,
.product-grid,
.step-grid {
  display: grid;
  gap: 16px;
}

.stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  min-width: 0;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--gold-2);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.section {
  padding: clamp(40px, 8vw, 72px) 0;
}

.section.compact {
  padding-top: 12px;
}

.section header {
  max-width: 640px;
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(1.7rem, 5vw, 3.3rem);
  margin-bottom: 12px;
}

.section header p {
  color: var(--muted);
  margin: 0;
}

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

.card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.5vw, 22px);
}

.card h3 {
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.product-list {
  display: grid;
  gap: 12px;
}

.product {
  display: grid;
  grid-template-columns: minmax(72px, 88px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: clamp(14px, 2.5vw, 18px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(22, 24, 31, 0.7);
}

.product p {
  margin: 0;
  color: var(--muted);
}

.product b {
  display: block;
  margin-bottom: 4px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.step {
  min-height: 0;
}

.step em {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.cta-band {
  margin: 12px 0 clamp(40px, 8vw, 80px);
  padding: clamp(22px, 4vw, 36px);
  border-radius: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(212, 160, 23, 0.14), rgba(196, 92, 38, 0.08)),
    var(--bg-2);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.cta-band .lede {
  margin: 12px 0 0;
}

.cta-band .btn {
  flex: 0 0 auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 calc(28px + env(safe-area-inset-bottom));
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.footer-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-hero {
  padding: clamp(36px, 7vw, 64px) 0 24px;
}

form {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 560px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--cream);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
}

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

.form-status {
  min-height: 1.4em;
  color: var(--ok);
}

.legal {
  max-width: 72ch;
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 16px;
}

.dash-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card b {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-2);
}

.dash-search {
  display: flex;
  gap: 10px;
  max-width: none;
  margin: 0 0 18px;
}

.dash-search input {
  flex: 1;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.table-user {
  color: var(--cream);
  font-weight: 500;
}

.table-sub {
  color: var(--muted);
  font-size: 0.88rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions form {
  margin: 0;
  max-width: none;
}

.btn-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.88rem;
}

.btn-danger {
  background: #8f2d2d;
  color: #fff;
  border-color: #8f2d2d;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-ok {
  background: rgba(125, 186, 110, 0.16);
  color: #9ed392;
}

.badge-warn {
  background: rgba(212, 160, 23, 0.16);
  color: var(--gold-2);
}

.badge-bad {
  background: rgba(224, 90, 90, 0.16);
  color: #e08a6a;
}

.badge-muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.flash {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
}

.flash-ok {
  background: rgba(125, 186, 110, 0.12);
  color: #9ed392;
}

.flash-bad {
  background: rgba(224, 90, 90, 0.12);
  color: #e08a6a;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  padding-bottom: 48px;
}

.admin-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  max-width: none;
}

.admin-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

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

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

.check-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 48px;
}

.download-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.5vw, 22px);
}

.download-card h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.download-card p {
  margin: 0;
  color: var(--muted);
}

.download-meta {
  font-size: 0.88rem;
}

.download-actions {
  margin-top: auto;
  padding-top: 8px;
}

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

@media (max-width: 900px) {
  .dash-stats,
  .admin-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 16px;
}

.admin-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  max-width: none;
}

.admin-card header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: none;
  margin: 0;
}

.admin-actions input[type="number"],
.admin-actions select {
  width: auto;
  min-width: 7rem;
}

.contact-ways {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  max-width: 560px;
}

.contact-way {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--cream);
}

.contact-way span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 5.5rem;
}

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

.wa-float:hover {
  transform: translateY(-2px);
  color: #fff;
}

.wa-float:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .feature-grid,
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .nav-links .btn {
    width: 100%;
    margin-top: 6px;
  }

  .cta-band {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .step-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

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

  .kicker {
    letter-spacing: 0.1em;
  }

  .footer-row {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .brand strong {
    white-space: normal;
    line-height: 1.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }

  .wa-float:hover {
    transform: none;
  }
}
