/* FOSSiBOT / Grinko Market — лендинг.
   Ідентичність не вигадана: шрифти, зелений, ink і mist узяті з storefront
   (site/frontend/styles/app.css). Єдиний доданий колір — graphite, знятий
   з корпусів станцій на рендерах виробника. Сторінка світла в обох темах:
   бренд Grinko не має темного варіанту, і вдавати його було б неправдою. */

:root {
  color-scheme: light;

  --paper: #ffffff;
  --mist: #e9ede6;
  --mist-deep: #d5dbcf;
  --ink: #14261a;
  --ink-soft: #55665a;
  --green: #175021;
  --green-deep: #0e3317;
  --graphite: #23262a;

  --ok: #175021;
  --ok-bg: #e8efe7;
  --check: #7a5a0f;
  --check-bg: #f5efdf;
  --no: #8c2f1d;
  --no-bg: #f6eae7;

  --display: "Archivo", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;

  --shell: 74rem;
  --gutter: 20px;
  --rule: 1px solid var(--mist);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 40;
  background: var(--paper);
  padding: 10px 14px;
  border: 1px solid var(--green);
}

/* ————— шапка ————— */

.head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: var(--rule);
}
.head__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
}
.head__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.head__logo { width: 108px; height: auto; }
@media (min-width: 30rem) { .head__logo { width: 124px; } }
.head__sep { display: none; width: 1px; height: 24px; background: var(--mist-deep); }
.head__line {
  display: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
@media (min-width: 34rem) {
  .head__sep, .head__line { display: block; }
}
.head__nav { display: none; margin-left: auto; gap: 26px; }
.head__nav a { text-decoration: none; font-size: 16px; color: var(--ink-soft); }
.head__nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.head__tel {
  margin-left: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.head__tel:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 30rem) { .head__tel { font-size: 16px; } }
@media (min-width: 62rem) {
  .head__nav { display: flex; }
  .head__tel { margin-left: 0; }
}

/* ————— перший екран ————— */

/* Сітка в один осередок: фото, завіса й текст лежать один на одному,
   але текст лишається у потоці — тож на вузькому екрані він не вилазить
   за межі кадру, а робить кадр вищим. */
.hero {
  display: grid;
  min-height: clamp(430px, 72vh, 720px);
  background: var(--graphite);
}
.hero > * { grid-column: 1; grid-row: 1; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 62%;
}
.hero__veil {
  background:
    linear-gradient(to top, rgba(10,12,10,0.94) 0%, rgba(10,12,10,0.80) 26%, rgba(10,12,10,0.42) 52%, rgba(10,12,10,0.12) 78%, rgba(10,12,10,0.26) 100%);
}
.hero__body {
  align-self: end;
  padding-block: clamp(28px, 5vw, 56px);
}
@media (min-width: 52rem) {
  .hero__img { object-position: 62% 58%; }
  .hero__veil {
    background:
      linear-gradient(to top, rgba(10,12,10,0.88) 0%, rgba(10,12,10,0.55) 34%, rgba(10,12,10,0.10) 66%, rgba(10,12,10,0.20) 100%);
  }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.05rem, 5.4vw, 4.4rem);
  max-width: 16ch;
  text-wrap: balance;
}
.hero__sub {
  color: rgba(255,255,255,0.84);
  margin-top: 18px;
  max-width: 54ch;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}
.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ————— кнопки ————— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 17px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn--solid { background: var(--green); color: #fff; }
.btn--solid:hover { background: var(--green-deep); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn--quiet { background: transparent; color: var(--green); border-color: var(--mist-deep); }
.btn--quiet:hover { border-color: var(--green); background: var(--ok-bg); }
.btn svg { width: 19px; height: 19px; flex: none; }

/* ————— секції ————— */

.band { padding-block: clamp(56px, 8vw, 116px); scroll-margin-top: 72px; }
.band + .band { border-top: var(--rule); }
.band--tint { background: var(--mist); border-top: none; }

.band__head { max-width: 46ch; }
.band h2 { font-size: clamp(1.75rem, 3.4vw, 2.9rem); text-wrap: balance; }
.band__lede {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.band__src {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 62ch;
  overflow-wrap: anywhere;
}
.band__src a { color: var(--green); }

/* ————— смужка фактів ————— */

.facts {
  display: grid;
  grid-template-columns: 1fr;
  border-top: var(--rule);
}
.facts__cell { padding-block: 22px; border-bottom: var(--rule); }
.facts__n {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  letter-spacing: -0.02em;
}
.facts__t { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
@media (min-width: 46rem) {
  .facts { grid-template-columns: repeat(4, 1fr); border-bottom: var(--rule); }
  .facts__cell { border-bottom: none; padding: 26px 24px 26px 0; border-right: var(--rule); }
  .facts__cell:last-child { border-right: none; }
}

/* ————— лінійка в масштабі ————— */

.scale { margin-top: clamp(36px, 5vw, 64px); }
.scale__track {
  --k: 1;
  display: flex;
  align-items: flex-end;
  gap: clamp(18px, 3vw, 44px);
  overflow-x: auto;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.unit {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-end;
}
.unit__shot {
  height: calc(var(--h) * var(--k) * 1px);
  width: auto;
  max-width: none;
  mix-blend-mode: multiply;
}
@media (max-width: 64rem) { .scale__track { --k: 0.72; } }
@media (max-width: 40rem) { .scale__track { --k: 0.5; } }
.scale__legend {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}
.scale__cards {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  margin-top: 4px;
}
.mcard { padding-block: 26px; border-bottom: var(--rule); }
.mcard h3 { font-size: 1.32rem; }
.mcard__nums {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
}
.mcard__nums span { white-space: nowrap; }
.mcard__who { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }
@media (min-width: 52rem) {
  .scale__cards { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); column-gap: clamp(18px, 3vw, 44px); }
  .mcard { border-bottom: none; border-top: var(--rule); }
}

/* ————— шкала навантажень ————— */

.load { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 62rem) {
  .load { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: clamp(36px, 4vw, 64px); align-items: start; }
}

.picker__group + .picker__group { margin-top: 22px; }
.picker__label {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.picker__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--mist-deep);
  background: var(--paper);
  border-radius: 2px;
  padding: 10px 14px;
  min-height: 44px;
  font: 500 15px/1.25 var(--sans);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}
.chip:hover { border-color: var(--green); }
.chip small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 3px; }
.chip[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.chip[aria-pressed="true"] small { color: rgba(255,255,255,0.78); }

.readout { border-top: 2px solid var(--ink); }
.readout__draw {
  padding: 18px 0 20px;
  border-bottom: var(--rule);
}
.readout__draw b {
  font-family: var(--display);
  font-size: 1.15rem;
  display: block;
}
.readout__draw span { color: var(--ink-soft); font-size: 15px; display: block; margin-top: 6px; }

.res {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 20px;
  padding: 18px 0;
  border-bottom: var(--rule);
}
.res__name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.res__cap { color: var(--ink-soft); font-size: 14px; }
.res__time { font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.res__time em { font-style: normal; font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); }
@media (min-width: 34rem) {
  .res { grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr) auto; align-items: center; }
  .res__confs { grid-column: 1 / -1; margin-top: 10px; }
  .res__time { text-align: right; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.badge::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 1px;
  background: currentColor;
}
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--tight { background: var(--check-bg); color: var(--check); }
.badge--no { background: var(--no-bg); color: var(--no); }

.res__confs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.confs__label { font-size: 14px; color: var(--ink-soft); }
.confs { display: flex; flex-wrap: wrap; gap: 6px; }
.conf {
  border: 1px solid var(--mist-deep);
  background: var(--paper);
  border-radius: 2px;
  min-height: 36px;
  padding: 6px 11px;
  font: 500 14px/1.2 var(--sans);
  color: var(--ink-soft);
  cursor: pointer;
}
.conf[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--mist); }

.method {
  margin-top: 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 68ch;
}
.method b { color: var(--ink); font-weight: 600; }

.flash { animation: flash 0.42s ease; }
@keyframes flash {
  from { opacity: 0.25; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ————— характеристики ————— */

.spec { margin-top: clamp(32px, 4vw, 52px); }
.spec__table { display: none; }
@media (min-width: 62rem) {
  .spec__table { display: block; }
  .spec__stack { display: none; }
}
table.spec__grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.spec__grid th, .spec__grid td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px 14px 0;
  border-bottom: var(--rule);
}
.spec__grid thead th {
  font-family: var(--display);
  font-size: 1.05rem;
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 66px;
  background: var(--paper);
}
.spec__grid tbody th { font-weight: 500; color: var(--ink-soft); width: 15rem; }

.sblock { border-top: 2px solid var(--ink); padding-block: 22px; }
.sblock h3 { font-size: 1.3rem; }
.sblock dl { margin: 16px 0 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.sblock div { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 12px; padding-block: 10px; border-bottom: var(--rule); font-size: 15px; }
.sblock dt { color: var(--ink-soft); margin: 0; }
.sblock dd { margin: 0; }

/* ————— аксесуари ————— */

.addons { display: grid; gap: 0; margin-top: clamp(32px, 4vw, 52px); }
.addon { display: grid; gap: 20px; padding-block: 32px; border-top: var(--rule); align-items: center; }
.addon__shot { width: 100%; max-width: 340px; mix-blend-mode: multiply; }
.addon h3 { font-size: 1.3rem; }
.addon p { margin-top: 10px; color: var(--ink-soft); }
.addon dl { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; }
.addon dt { color: var(--ink-soft); }
.addon dd { margin: 0 0 0 6px; font-weight: 600; }
.addon dl > div { display: flex; }
@media (min-width: 52rem) {
  .addon { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 40px; }
}

/* ————— сценарії ————— */

.cases { display: grid; gap: clamp(28px, 4vw, 44px); margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 52rem) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.case h3 { font-size: 1.22rem; margin-top: 18px; }
.case p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }

/* ————— питання ————— */

.qa { margin-top: clamp(32px, 4vw, 52px); border-top: 2px solid var(--ink); }
.qa__item { border-bottom: var(--rule); padding-block: 22px; }
@media (min-width: 52rem) {
  .qa__item { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 40px; }
}
.qa__q { font-family: var(--display); font-weight: 700; font-size: 1.08rem; }
.qa__a { color: var(--ink-soft); margin-top: 10px; max-width: 64ch; }
@media (min-width: 52rem) { .qa__a { margin-top: 0; } }

/* ————— заявка ————— */

.lead { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 62rem) { .lead { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); align-items: start; } }

.lead__call {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 26px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  color: var(--green);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.lead__call:hover { text-decoration: underline; text-underline-offset: 6px; }
.lead__hours { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

.form { background: var(--paper); border: 1px solid var(--mist-deep); border-radius: 2px; padding: clamp(22px, 3vw, 32px); }
.form h3 { font-size: 1.28rem; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 15px; margin-bottom: 7px; }
.field label span { color: var(--ink-soft); }
.field input, .field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--mist-deep);
  border-radius: 2px;
  background: var(--paper);
  font: 400 17px/1.4 var(--sans);
  color: var(--ink);
}
.field select { padding-block: 12px; }
.field input:focus-visible, .field select:focus-visible { border-color: var(--green); }
.field input[aria-invalid="true"] { border-color: var(--no); }
.field__err { display: none; margin-top: 7px; font-size: 14px; color: var(--no); }
.field input[aria-invalid="true"] ~ .field__err { display: block; }

.consent { display: flex; gap: 11px; margin-top: 20px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.consent input { width: 21px; height: 21px; flex: none; margin: 2px 0 0; accent-color: var(--green); }
.form .btn { width: 100%; margin-top: 22px; }
.form__state { margin-top: 14px; font-size: 15px; min-height: 1.5em; }
.form__state[data-tone="ok"] { color: var(--ok); }
.form__state[data-tone="no"] { color: var(--no); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* ————— ціна й колір корпусу в картці моделі ————— */

.mcard__price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-top: 10px;
}
.mcard__note {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-left: 12px;
  border-left: 2px solid var(--mist-deep);
}

.swatches { display: flex; gap: 8px; margin-top: 14px; }
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--mist-deep);
  border-radius: 2px;
  background: var(--paper);
  font: 500 14px/1.2 var(--sans);
  color: var(--ink-soft);
  cursor: pointer;
}
.swatch::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.25);
}
.swatch--green::before { background: #a8d23c; }
.swatch--black::before { background: #3c4148; }
.swatch[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--mist); }

/* ————— як купити ————— */

.buy { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 62rem) {
  .buy { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: clamp(36px, 5vw, 72px); align-items: start; }
}
.stock { border-top: 2px solid var(--ink); }
.stock__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 18px;
  padding: 16px 0;
  border-bottom: var(--rule);
}
.stock__name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.stock__price { font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-align: right; }
.stock__qty { font-size: 14px; color: var(--ink-soft); }
.buy__notes h3 { font-size: 1.05rem; margin-top: 22px; }
.buy__notes h3:first-child { margin-top: 0; }
.buy__notes p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; }

/* Пастка для ботів: у потоці, але поза зором і поза табом. */
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#consent-err { margin-top: 10px; }
#consent-err.is-shown { display: block; }
.form .btn[aria-disabled="true"] { background: var(--ink-soft); cursor: progress; }

/* ————— підвал ————— */

.foot { background: var(--graphite); color: #cfd5cc; padding-block: clamp(40px, 6vw, 68px); font-size: 15px; }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 52rem) { .foot__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.foot h4 { color: #fff; font-size: 15px; letter-spacing: 0.04em; margin-bottom: 12px; }
.foot a { color: #fff; }
.foot p + p { margin-top: 7px; }
.foot__note { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); color: #9aa397; max-width: 72ch; }
