:root {
  color-scheme: light;
  --ink: #12343b;
  --muted: #587178;
  --surface: #ffffff;
  --canvas: #f3f8f8;
  --primary: #087f8c;
  --primary-dark: #056570;
  --accent: #ddf4f2;
  --border: #dce9e8;
  --shadow: 0 16px 40px rgba(18, 52, 59, 0.09);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--canvas);
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgba(8, 127, 140, 0.12), transparent 24rem),
    var(--canvas);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
.page-shell,
.site-footer {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.8rem;
  color: #fff;
  background: var(--primary);
}

.page-shell {
  padding: 1.5rem 0 3rem;
}

.hero {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero > p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}

.offer-card,
.confirmation-card,
.operation-card,
.empty-state {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.offer-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.offer-card__content {
  flex: 1;
}

.offer-card h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.offer-name {
  margin: 0.4rem 0 0;
  color: var(--primary);
  font-weight: 750;
}

.offer-description,
.confirmation-description {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.offer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.35rem 0 1rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.price {
  flex: 0 0 auto;
  font-size: 1.6rem;
  line-height: 1;
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0.9rem;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  color: #fff;
  background: var(--primary);
}

.button--primary:hover {
  background: var(--primary-dark);
}

.button:focus-visible,
.back-nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(8, 127, 140, 0.35);
  outline-offset: 3px;
}

.button:disabled {
  color: #587178;
  background: #d9e5e5;
  cursor: not-allowed;
}

.back-nav {
  margin-bottom: 1rem;
}

.back-nav a {
  color: var(--primary-dark);
  font-weight: 750;
  text-decoration: none;
}

.confirmation-card,
.operation-card,
.empty-state {
  max-width: 38rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 5vw, 2.5rem);
}

.operation-state {
  margin-top: 1.5rem;
}

.operation-state h2 {
  margin: 0;
  font-size: 1.4rem;
}

.operation-state p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.countdown {
  display: grid;
  gap: 0.35rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--accent);
  text-align: center;
}

.countdown span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.countdown strong {
  font-size: clamp(2.5rem, 14vw, 4rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.confirmation-delay-message {
  padding: 1rem;
  border-radius: 1rem;
  color: var(--muted);
  background: var(--canvas);
  line-height: 1.55;
  text-align: left;
}

.button--start {
  min-height: 4rem;
  font-size: 1.2rem;
}

.confirmation-card h1,
.empty-state h1 {
  font-size: clamp(2rem, 9vw, 3rem);
}

.confirmation-service {
  margin: 0.65rem 0 0;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
}

.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.75rem 0;
}

.summary div {
  min-width: 0;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--canvas);
}

.summary dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.summary dd {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.coming-soon {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

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

.customer-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.customer-fields label {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.customer-fields input {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.customer-fields input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(8, 127, 140, 0.15);
}

.form-error {
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  color: #8b1d1d;
  background: #fde8e8;
  font-weight: 700;
}

.empty-state {
  text-align: center;
}

.empty-state h2 {
  margin: 0;
}

.empty-state p {
  color: var(--muted);
}

.empty-state .button {
  margin-top: 1.25rem;
}

.site-footer {
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 359px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: min(100% - 1.25rem, 72rem);
  }

  .page-shell {
    padding-top: 0.75rem;
  }

  .offer-card {
    padding: 1rem;
  }

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

  .customer-fields {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 48rem) {
  .page-shell {
    padding-top: 3rem;
  }

  .offer-grid {
    gap: 1.25rem;
  }

  .offer-card {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .offer-card {
    transition:
      transform 150ms ease,
      box-shadow 150ms ease,
      background-color 150ms ease;
  }

  .offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(18, 52, 59, 0.13);
  }
}
