@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #14110c;
  --bg-2: #1c1812;
  --surface: #241f18;
  --surface-2: #2d261c;
  --line: rgba(232, 196, 122, 0.2);
  --gold: #e8c47a;
  --gold-deep: #c9a24a;
  --cream: #f6efe2;
  --muted: #b6a893;
  --danger: #e8715a;
  --ok: #7cb89a;
  --whatsapp: #25d366;
  --whatsapp-ink: #07351c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Times New Roman", serif;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(232, 196, 122, 0.09), transparent 55%),
    radial-gradient(800px 500px at 100% 0%, rgba(232, 196, 122, 0.05), transparent 45%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header,
.site-footer {
  padding: 1.25rem 0;
}

.site-header .wrap,
.site-footer .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark span {
  display: block;
  width: 3.1rem;
  height: 2px;
  margin-top: 0.28rem;
  background: var(--gold);
}

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

.hero {
  padding: 1.4rem 0 0.4rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 13ch;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 9vw, 5.1rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 2.2rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.steps {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 2.4rem;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(36, 31, 24, 0.7);
}

.step-num {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 650;
}

.steps h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.steps p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.panel {
  margin: 0 0 3rem;
  padding: 1.35rem 1.15rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(45, 38, 28, 0.96), rgba(28, 24, 18, 0.96));
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
}

.panel-intro {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label,
.consent {
  display: block;
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hint {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"] {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #19160f;
  color: var(--cream);
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder {
  color: #7d7263;
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 196, 122, 0.2);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

.consent {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin: 0.3rem 0 0.4rem;
  color: var(--cream);
  font-size: 0.96rem;
}

.consent input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  accent-color: var(--gold-deep);
  flex-shrink: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.2rem;
  padding: 0.85rem 1.2rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.btn-primary {
  background: var(--gold);
  color: #2a1f0b;
}

.btn-primary:hover {
  background: #f1d396;
}

.btn-wa {
  background: var(--whatsapp);
  color: var(--whatsapp-ink);
}

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

.form-error,
.field-error {
  color: var(--danger);
  font-size: 0.9rem;
}

.form-error {
  margin: 0;
}

.thanks {
  text-align: left;
}

.thanks h2 {
  margin-bottom: 0.7rem;
}

.thanks p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.thanks .lead-name {
  color: var(--cream);
}

.check {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(124, 184, 154, 0.16);
  color: var(--ok);
  font-size: 1.3rem;
}

.hidden {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-bottom: 2rem;
}

.tiktok {
  color: var(--muted);
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps li {
    grid-template-columns: 1fr;
    min-height: 100%;
  }

  .steps p {
    grid-column: 1;
  }

  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .full {
    grid-column: 1 / -1;
  }

  .panel {
    padding: 2rem 2rem 2.1rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .actions {
    flex-direction: row;
  }

  .actions .btn {
    flex: 1;
  }
}

/* Admin */
.admin-body {
  background: var(--bg);
}

.admin-main {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
}

.admin-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 28rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem;
}

.admin-toolbar h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
}

.admin-meta {
  color: var(--muted);
  margin: 0 0 1rem;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

th {
  color: var(--gold);
  font-weight: 600;
  background: #1a1610;
  white-space: nowrap;
}

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

.flag {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(232, 113, 90, 0.16);
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ua {
  max-width: 16rem;
  color: var(--muted);
  font-size: 0.78rem;
  word-break: break-word;
}

.btn-small {
  min-height: 2.2rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}

.empty {
  color: var(--muted);
  padding: 2rem 1rem;
  text-align: center;
}

select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #19160f;
  color: var(--cream);
  font: inherit;
  outline: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) calc(50% - 0.18rem), calc(100% - 0.85rem) calc(50% - 0.18rem);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 196, 122, 0.2);
}

textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #19160f;
  color: var(--cream);
  font: inherit;
  outline: none;
  resize: vertical;
}

.combo {
  position: relative;
}

.combo-list {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: 16rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #19160f;
  box-shadow: var(--shadow);
}

.combo-list li {
  padding: 0.55rem 1rem;
  cursor: pointer;
}

.combo-list li:hover,
.combo-list li:focus {
  background: rgba(232, 196, 122, 0.12);
}

.combo-list li.muted {
  color: var(--muted);
  cursor: default;
}

.range-display {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--gold);
}

.breakdown p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.admin-tabs {
  display: flex;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
}

.admin-tabs a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cream);
  text-decoration: none;
}

.admin-tabs a.on {
  background: var(--gold);
  color: #2a1f0b;
  border-color: var(--gold);
}

.quote-list {
  display: grid;
  gap: 1rem;
}

.quote-card {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(36, 31, 24, 0.8);
}

.quote-card h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
}

.range-line {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-weight: 650;
}

.comp-links {
  margin: 0 0 0.8rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.settings-form {
  max-width: 52rem;
}

.field-label label {
  font: inherit;
  font-weight: inherit;
  color: inherit;
}

.field-link {
  margin-left: 0.4em;
  color: var(--gold);
  font-weight: 400;
  font-size: 0.86em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  white-space: nowrap;
}

.field-link:hover {
  color: #f1d396;
}

.field-label:has(.field-note) {
  line-height: 1.4;
}

.field-note {
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
  font-size: 0.85em;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--muted);
}

.btn-tg {
  background: #229ed9;
  color: #fff;
}

.btn-tg:hover {
  background: #3bb0e8;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .result-actions .btn {
    flex: none;
    width: 100%;
  }
}

.booking-panel {
  margin-top: 1.4rem;
  padding: 1.15rem 1.05rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(25, 22, 15, 0.72);
}

.booking-panel h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.85rem 0 0.65rem;
}

.calendar-head h4 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.calendar-nav:hover:not(:disabled) {
  background: rgba(232, 196, 122, 0.12);
}

.calendar-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  text-align: center;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0;
}

.calendar-grid button {
  min-height: 2.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.calendar-grid button:hover:not(:disabled) {
  border-color: var(--line);
  background: rgba(232, 196, 122, 0.1);
}

.calendar-grid button.is-selected {
  background: var(--gold);
  color: #2a1f0b;
  font-weight: 650;
}

.calendar-grid button:disabled {
  color: #6d6458;
  cursor: not-allowed;
  opacity: 0.55;
}

.calendar-grid button.is-outside {
  visibility: hidden;
}

.slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.55rem 0 0.9rem;
}

.slot-btn {
  min-height: 2.8rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #19160f;
  color: var(--cream);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--gold);
}

.slot-btn.is-selected {
  background: var(--gold);
  color: #2a1f0b;
  border-color: var(--gold);
  font-weight: 650;
}

.slot-btn:disabled,
.slot-btn.is-booked {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
}

.booking-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.booking-note-link {
  margin-left: 0;
  font-size: inherit;
  white-space: normal;
}

.booking-thanks .lead-name {
  margin-bottom: 0;
}

.inspection-line {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-weight: 650;
}

.upcoming-inspections {
  margin: 0 0 1.6rem;
}

.upcoming-inspections h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.upcoming-empty {
  padding: 1rem;
}
