:root {
  --bg: #f7f4ed;
  --ink: #13231e;
  --muted: #62706b;
  --line: #dcd7cc;
  --panel: #ffffff;
  --accent: #0f7b5f;
  --accent-strong: #0a5a46;
  --warm: #c35b28;
  --steel: #dfe7e8;
  --shadow: 0 18px 50px rgba(19, 35, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(19, 35, 30, 0.1);
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.top-nav {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-nav a,
.secondary-action,
.admin-tabs button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  cursor: pointer;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
}

.tiktok-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(28px, 6vw, 76px) clamp(16px, 4vw, 56px) 36px;
}

.tiktok-copy h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.25rem, 5.8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.tiktok-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-actions,
.contact-actions,
.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.primary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 28px rgba(15, 123, 95, 0.22);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-action:hover {
  background: var(--accent-strong);
}

.card-body .secondary-action {
  margin-top: 10px;
}

.full {
  width: 100%;
}

.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--steel);
  box-shadow: var(--shadow);
}

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

.hero-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  color: white;
  background: rgba(19, 35, 30, 0.86);
}

.hero-badge span {
  color: rgba(255, 255, 255, 0.78);
}

.section-band {
  background: #e8ece7;
}

.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(50px, 8vw, 92px) 0;
}

.intro-grid,
.contact-grid,
.quote-guide {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.works-page h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.98;
}

h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
}

p {
  line-height: 1.65;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading p {
  max-width: 440px;
  color: var(--muted);
}

.compact-heading {
  align-items: start;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-row button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--panel);
  cursor: pointer;
}

.filter-row button.active,
.admin-tabs button.active {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.product-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-work-area {
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid var(--line);
}

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

.empty-work-state {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.empty-work-state p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.work-cta .primary-action {
  width: fit-content;
}

.product-card,
.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.product-card img,
.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--steel);
}

.card-body {
  padding: 18px;
}

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

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 14px 0 18px;
  list-style: none;
}

.option-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 0.86rem;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: var(--warm);
  font-weight: 900;
}

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

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  box-shadow: var(--shadow);
  font-weight: 900;
  text-decoration: none;
}

.quote-dialog {
  width: min(560px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.quote-dialog::backdrop {
  background: rgba(19, 35, 30, 0.52);
}

.quote-form,
.admin-shell {
  padding: 22px;
  background: var(--panel);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.dialog-head h2 {
  font-size: 1.7rem;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fbfaf7;
}

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

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(720px, 100%);
  transform: translateX(102%);
  transition: transform 180ms ease;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: auto;
}

.admin-panel.open {
  transform: translateX(0);
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

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

.check-label input {
  width: auto;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-item img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-actions {
  display: flex;
  gap: 6px;
}

.mini-actions button,
.danger {
  border-color: #d8b8ad;
}

.leads .admin-item {
  grid-template-columns: 1fr auto;
}

.dashboard-page {
  background: #eef2ef;
}

.dashboard-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) 0;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: end;
  margin-bottom: 24px;
}

.dashboard-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
}

.dashboard-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dashboard-summary article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.dashboard-summary span {
  display: block;
  font-size: 2rem;
  font-weight: 900;
}

.dashboard-summary p {
  margin: 2px 0 0;
  color: var(--muted);
}

.dashboard-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.admin-error {
  padding: 12px 16px;
  color: #7a1f12;
  background: #ffe8df;
  border-bottom: 1px solid #e3b8a8;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .top-nav a {
    white-space: nowrap;
  }

  .tiktok-menu,
  .intro-grid,
  .contact-grid,
  .quote-guide,
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .tiktok-menu {
    min-height: auto;
  }

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

  .section-heading {
    display: block;
  }

  .product-grid,
  .work-grid,
  .catalog-work-grid {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-item {
    grid-template-columns: 64px 1fr;
  }

  .mini-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .quick-actions > *,
  .contact-actions > * {
    width: 100%;
  }

  .hero-badge {
    display: block;
  }
}
