/* ============================================================================
 *  components.css — buttons, pills, stars, service grid, quotes, form fields.
 * ========================================================================== */

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  --_bg: var(--red);
  --_fg: var(--on-red);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.78em 1.35em;
  background: var(--_bg);
  color: var(--_fg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-0);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: var(--red-deep); text-decoration: none; transform: translateY(-2px); box-shadow: var(--glow-red); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn--lg { padding: 0.95em 1.7em; font-size: var(--step-1); }

.btn--ghost {
  --_bg: transparent;
  --_fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  --_bg: var(--surface-2);
  border-color: var(--red-line);
  box-shadow: none;
}

.btn--block { width: 100%; justify-content: center; }

/* ---- Pills / tags ----------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.4em 0.85em;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--steel);
  background: var(--surface);
}
.pill svg { width: 1.05em; height: 1.05em; color: var(--red-bright); }

/* ---- Stars ------------------------------------------------------------ */
.stars { display: inline-flex; gap: 2px; color: var(--star); vertical-align: middle; }
.stars svg { width: 1.05em; height: 1.05em; }

/* ---- Service grid ----------------------------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  margin-top: var(--space-l);
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-m);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.svc::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 3px; background: var(--line-strong);
  transition: background var(--dur) var(--ease);
}
.svc:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-2); }
.svc:hover::before { background: var(--red); }
.svc__icon {
  width: 2.7rem; height: 2.7rem;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: var(--red-wash);
  border: 1px solid var(--red-line);
  color: var(--red-bright);
  margin-bottom: var(--space-3xs);
}
.svc__icon svg { width: 1.45rem; height: 1.45rem; }
.svc__name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: var(--step-1);
  color: var(--ink);
}
.svc__desc { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }

/* ---- Spec / fact list (about) ----------------------------------------- */
.spec {
  display: grid;
  gap: 0;
  margin-top: var(--space-m);
  border-top: 1px solid var(--line);
}
.spec__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-s);
  align-items: baseline;
  padding-block: var(--space-s);
  border-bottom: 1px solid var(--line);
}
.spec__k {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--step--1);
  color: var(--red-bright);
  white-space: nowrap;
}
.spec__v { color: color-mix(in oklch, var(--ink) 90%, var(--char)); }

/* ---- Quotes / reviews ------------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-m);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  height: 100%;
}
.quote__text {
  font-size: var(--step-1);
  line-height: 1.5;
  color: color-mix(in oklch, var(--ink) 94%, var(--char));
  font-weight: 400;
}
.quote__foot { margin-top: auto; display: flex; align-items: center; gap: var(--space-xs); }
.quote__avatar {
  width: 2.6rem; height: 2.6rem; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--red);
  color: var(--on-red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
}
.quote__who { font-weight: 700; color: var(--ink); }
.quote__src { color: var(--steel-dim); font-size: var(--step--2); }

/* ---- Form fields ------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-s); }
.field label { font-weight: 600; font-size: var(--step--1); color: var(--steel); }
.field .req { color: var(--red-bright); }

.input, .textarea, .select {
  width: 100%;
  padding: 0.78em 0.9em;
  background: var(--surface-sink);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--steel-dim); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-wash);
}
.textarea { min-height: 6.5rem; resize: vertical; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b0bb' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1.1rem;
  padding-right: 2.6rem;
}

.check {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: var(--step--1); color: var(--muted);
  margin-bottom: var(--space-s); cursor: pointer;
}
.check input { margin-top: 0.2rem; accent-color: var(--red); width: 1.05rem; height: 1.05rem; }

.form__status { min-height: 1.3em; font-size: var(--step--1); }
