/* blocks.css — service cards, steps, team, pricing table, FAQ, form, stats, cookie tray */

/* ---- generic feature / value list ---- */
.value-grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  grid-template-columns: 1fr;
}
.value-item {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.value-item h3 { font-size: 1.28rem; margin-bottom: .4em; }
.value-item p { color: var(--content-muted); margin: 0; }

/* ---- service tiles ---- */
.tiles {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  grid-template-columns: 1fr;
}
.tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.tile--media { border-bottom: 1px solid var(--rule); }
.tile--media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tile--body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.tile--body h3 { font-size: 1.42rem; margin-bottom: .35em; }
.tile--body p { color: var(--content-muted); flex: 1; }
.tile--price {
  font-family: var(--ff-display);
  color: var(--brand);
  font-size: 1.15rem;
  margin: .4em 0 1.1em;
}
.tile--link {
  font-size: .86rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--content);
  align-self: flex-start;
  border-bottom: 1px solid var(--brand);
  padding-bottom: 3px;
}
.tile--link:hover { color: var(--brand); }

/* ---- numbered steps (ol) ---- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: var(--brand);
  line-height: 1;
}
.steps li h3 { font-size: 1.18rem; margin: 0 0 .25em; }
.steps li p { margin: 0; color: var(--content-muted); }

/* ---- team ---- */
.team {
  display: grid;
  gap: clamp(22px, 3vw, 32px);
  grid-template-columns: 1fr;
}
.member { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.member--photo { border-bottom: 1px solid var(--rule); }
.member--photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.18) contrast(1.02); }
.member--body { padding: 22px 22px 26px; }
.member--body h3 { font-size: 1.3rem; margin-bottom: .15em; }
.member--role { color: var(--brand); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1em; display: block; }
.member--body p { color: var(--content-muted); margin: 0; font-size: .96rem; }

/* ---- pricing table ---- */
.rate-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.rate-table caption { text-align: left; color: var(--content-muted); font-size: .9rem; margin-bottom: 14px; }
.rate-table th, .rate-table td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rate-table thead th { font-family: var(--ff-body); font-weight: 500; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--content-muted); }
.rate-table td:last-child, .rate-table th:last-child { text-align: right; white-space: nowrap; }
.rate-table .rate-table--price { font-family: var(--ff-display); color: var(--content); font-size: 1.1rem; }
.rate-table tbody tr:hover td { background: var(--surface); }

/* ---- stats strip ---- */
.stats {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, 1fr);
}
.stats--num { font-family: var(--ff-display); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--content); line-height: 1; display: block; }
.stats--lbl { color: var(--content-muted); font-size: .86rem; letter-spacing: .06em; margin-top: .6em; display: block; }

/* ---- FAQ (details/summary) ---- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--ff-display);
  font-size: 1.22rem;
  color: var(--content);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 24px; color: var(--content-muted); max-width: 70ch; }

/* ---- lead form ---- */
.lead {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(26px, 4vw, 40px);
}
.lead .hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; letter-spacing: .06em; color: var(--content-muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--content);
  font-family: var(--ff-body);
  font-size: 1rem;
  padding: 13px 15px;
  min-height: 50px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--content-muted); margin: 8px 0 22px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.form-note { font-size: .86rem; color: var(--content-muted); margin-top: 14px; min-height: 1.2em; }
.form-note[data-state="err"] { color: #E8A0A0; }

/* ---- split contact layout ---- */
.split {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: 1fr;
}
.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-lines .lbl { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--content-muted); margin-bottom: 5px; }
.contact-lines a, .contact-lines strong { color: var(--content); font-weight: 400; font-size: 1.06rem; }
.contact-lines a:hover { color: var(--brand); }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { color: var(--content-muted); max-width: 52ch; margin-inline: auto 1.6em; }
.cta-band--row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1.4em; }

@media (min-width: 680px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .value-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- cookie tray (top-bar-full-width) ---- */
.cc-tray {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 280;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(0,0,0,.5);
}
.cc-tray[hidden] { display: none; }
.cc-tray--inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 14px 22px;
  max-width: var(--container);
  margin-inline: auto;
}
.cc-tray--text { margin: 0; font-size: .9rem; color: var(--content-muted); flex: 1 1 280px; line-height: 1.5; }
.cc-tray--text a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.cc-tray--actions { display: flex; gap: 10px; flex-shrink: 0; }
.cc-tray--actions button {
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--ff-body);
  font-size: .86rem;
  letter-spacing: .03em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--content);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cc-tray--actions button[data-action="ok"] { background: var(--brand); color: var(--bg); }
.cc-tray--actions button[data-action="ok"]:hover { background: #fff; border-color: #fff; }
.cc-tray--actions button[data-action="nope"]:hover { background: var(--surface-2); }
