/* ============================================================
   YUCA AUTO — Sub-page styles
   ============================================================ */

/* Active nav link */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--orange);
}

/* ============ Sub Hero ============ */
.sub-hero {
  padding: 56px var(--pad-x) 32px;
  max-width: var(--max); margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.sub-hero-inner { display: flex; flex-direction: column; gap: 14px; }
.crumb {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted);
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.crumb-sep { color: var(--line); }
.sub-hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-weight: 700;
}
.sub-hero-lede {
  font-size: 18px; color: var(--ink-3); line-height: 1.5;
  max-width: 56ch;
  margin: 0;
}

/* ============ Inventory toolbar ============ */
.fz-toolbar {
  padding: 24px var(--pad-x);
  max-width: var(--max); margin: 0 auto;
  display: flex;
  border-bottom: 1px solid var(--line);
}
.toolbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; gap: 16px; flex-wrap: wrap;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-3);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.chip-count {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.chip.active .chip-count { color: rgba(255,255,255,0.5); }

.sort {
  display: flex; align-items: center; gap: 10px;
}
.sort select {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 28px 7px 12px;
  font: 500 13px var(--font-sans);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%230A0A0B' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}

/* ============ Inventory layout ============ */
.fz-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 40px var(--pad-x) 56px;
  max-width: var(--max); margin: 0 auto;
}
.fz-filters {
  display: flex; flex-direction: column; gap: 28px;
  position: sticky; top: 88px; align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 8px;
}
.filter-block h4 {
  margin: 0 0 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--muted);
}
.filter-block ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
}
.filter-block ul.pills {
  flex-direction: row; flex-wrap: wrap; gap: 6px;
}
.filter-block ul.pills label {
  padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .15s ease;
}
.filter-block ul.pills label:has(input:checked) {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.filter-block ul.pills input { display: none; }

.filter-block li label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  color: var(--ink);
}
.filter-block li label span {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted);
}
.filter-block li label input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--ink-3); border-radius: 4px;
  cursor: pointer;
  position: relative;
}
.filter-block li label input[type="checkbox"]:checked {
  background: var(--orange); border-color: var(--orange);
}
.filter-block li label input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px;
  width: 4px; height: 9px;
  border: solid white; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.range-track {
  position: relative;
  height: 4px; background: var(--line); border-radius: 2px;
  margin: 12px 8px;
}
.range-fill {
  position: absolute; height: 100%;
  left: 12%; right: 32%;
  background: var(--orange); border-radius: 2px;
}
.range-handle {
  position: absolute; top: 50%;
  width: 14px; height: 14px;
  background: var(--ink); border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--paper);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.range-vals {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

.filter-reset {
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-3);
  align-self: flex-start;
  transition: border-color .15s ease, color .15s ease;
}
.filter-reset:hover { border-color: var(--ink); color: var(--ink); }

.fz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============ Pagination ============ */
.pager {
  padding: 0 var(--pad-x) 80px;
  max-width: var(--max); margin: 0 auto;
}
.pager-inner {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.pager-nums { display: flex; gap: 6px; }
.pg {
  min-width: 36px; height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
}
.pg:hover { background: var(--paper-2); color: var(--ink); }
.pg.active { background: var(--ink); color: var(--paper); }
.pg-next { padding: 0 14px; font-weight: 600; color: var(--ink); }

/* ============ Calculator ============ */
.section-calc { padding-top: 64px; }
.calc-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}
.calc-form { display: flex; flex-direction: column; gap: 28px; }
.calc-form h2 {
  margin: 12px 0 8px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.035em;
  font-weight: 700;
}
.calc-input { display: flex; flex-direction: column; gap: 8px; }
.ci-head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.ci-head label {
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.ci-val {
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.ci-pct { color: var(--muted); font-weight: 500; }
.ci-foot {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.calc-input input[type="range"] {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: 0;
}
.calc-input input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--ink); border-radius: 50%;
  border: 3px solid var(--paper);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
}
.calc-input input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  background: var(--ink); border-radius: 50%;
  border: 3px solid var(--paper);
  cursor: pointer;
}

.calc-output {
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-xl);
  padding: 32px 32px 28px;
  position: sticky; top: 88px;
}
.co-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  font-size: 14px;
}
.co-row > span:first-child { color: rgba(255,255,255,0.7); }
.co-row-sm > span:last-child { font-feature-settings: "tnum"; font-weight: 500; }
.co-row:first-of-type {
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 6px;
}
.co-row:first-of-type > span:first-child { font-size: 13px; }
.co-big {
  font-size: 40px; font-weight: 700; letter-spacing: -0.035em;
  font-feature-settings: "tnum";
}
.co-big b { color: var(--orange); font-weight: 700; }
.co-cta { margin-top: 22px; width: 100%; justify-content: center; }
.co-foot {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

/* ============ Process steps ============ */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.proc-step {
  padding: 32px 24px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.proc-step:last-child { border-right: 0; }
.ps-num {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--orange);
  margin-bottom: 16px;
}
.proc-step h3 {
  margin: 0;
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em;
}
.proc-step p {
  margin: 0;
  color: var(--ink-3); font-size: 14px; line-height: 1.55;
}

/* ============ Partners ============ */
.partners-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partner-logo {
  padding: 32px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  color: var(--ink-3);
  border-right: 1px solid var(--line);
  letter-spacing: -0.01em;
  display: grid; place-items: center;
  min-height: 84px;
  transition: color .15s ease;
}
.partner-logo:last-child { border-right: 0; }
.partner-logo:hover { color: var(--ink); }

/* ============ FAQ ============ */
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 20px 4px;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.015em;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon {
  font-family: var(--font-mono); font-weight: 400;
  font-size: 22px;
  color: var(--orange);
  transition: transform .2s ease;
}
.faq-list details[open] .faq-icon { transform: rotate(45deg); }
.faq-list details p {
  margin: 12px 0 4px;
  font-size: 15px; color: var(--ink-3); line-height: 1.6;
  max-width: 68ch;
}

/* ============ Contact form ============ */
.ko-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  padding-top: 8px;
}
.ko-form {
  display: flex; flex-direction: column; gap: 32px;
}
.ko-form fieldset {
  border: 0; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.ko-form legend {
  display: flex; gap: 12px; align-items: baseline;
  margin-bottom: 4px;
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.015em;
}
.radio-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.radio-row label {
  padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.radio-row label:has(input:checked) {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.radio-row input { display: none; }
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--muted);
}
.field input, .field select, .ko-form textarea {
  background: var(--white);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
  font: 500 15px var(--font-sans);
  color: var(--ink);
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .ko-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(242, 92, 14, 0.15);
}
.ko-form textarea {
  resize: vertical; min-height: 120px;
  font-family: var(--font-sans);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%230A0A0B' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--ink-3);
  cursor: pointer;
}
.consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--ink-3); border-radius: 4px;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.consent input[type="checkbox"]:checked {
  background: var(--orange); border-color: var(--orange);
}
.consent input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px;
  width: 4px; height: 9px;
  border: solid white; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ko-submit { align-self: flex-start; }
.ko-sent {
  display: flex; gap: 12px; align-items: center;
  padding: 16px 20px;
  background: var(--orange-soft);
  border-radius: var(--r-md);
  margin-top: 8px;
}
.ko-sent .mono-label { color: var(--orange-dark); }
.ko-sent strong { font-weight: 600; }
.ko-sent-err {
  background: #FFE5E5;
}
.ko-sent-err .mono-label { color: #B91C1C; }
.ko-sent-err a { color: #B91C1C; border-bottom: 1px solid #B91C1C; }

.ko-aside { display: flex; flex-direction: column; gap: 24px; }
.aside-block { display: flex; flex-direction: column; gap: 6px; }
.aside-block p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.big-link {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
  display: inline-block; margin-top: 2px;
}
.big-link:hover { color: var(--orange); border-color: var(--orange); }
.hours {
  border-collapse: collapse;
  font-size: 14px;
}
.hours td {
  padding: 6px 0;
}
.hours td:first-child { color: var(--muted); padding-right: 24px; font-family: var(--font-mono); font-size: 12px; }
.hours td:last-child { font-feature-settings: "tnum"; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .fz-layout { grid-template-columns: 1fr; }
  .fz-filters { position: static; max-height: none; overflow: visible; }
  .fz-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-wrap { grid-template-columns: 1fr; gap: 32px; }
  .calc-output { position: static; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .proc-step:nth-child(2) { border-right: 0; }
  .proc-step:nth-child(1), .proc-step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .partners-row { grid-template-columns: 1fr 1fr 1fr; }
  .partner-logo:nth-child(3n) { border-right: 0; }
  .partner-logo { border-bottom: 1px solid var(--line); }
  .ko-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .fz-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-2 { grid-template-columns: 1fr; }
  .calc-output { padding: 24px 20px 20px; }
  .co-big { font-size: clamp(28px, 7.5vw, 40px); }
  .ci-val { font-size: clamp(11px, 3vw, 14px); }
}
