/* Nabídka pro servisní firmu na kompresory - žánr: servisní list.
   Kontrakt: _spec/DESIGN.md. Papírová polarita, tři typografické hlasy, bez JS. */

:root {
  --paper: #edeae3;
  --paper-hi: #f7f5f0;
  --ink: #14181a;
  --steel: #5e686e;
  --rule: #cfc9bc;
  --petrol: #14555f;
  --amber: #c8811a;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 34rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-feature-settings: "kern" 1;
}

/* Jemná struktura papíru: rastr milimetrového papíru, ne textura z obrázku. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(20, 85, 95, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 85, 95, .045) 1px, transparent 1px);
  background-size: 24px 24px;
}

.wrap { position: relative; z-index: 1; max-width: 68rem; margin: 0 auto; padding: 0 var(--gut); }

a { color: var(--petrol); text-decoration: none; border-bottom: 1px solid rgba(20, 85, 95, .38); }
a:hover, a:focus-visible { border-bottom-color: var(--petrol); background: rgba(200, 129, 26, .13); }
a:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }

p { margin: 0 0 1.05em; max-width: var(--measure); }
strong { font-weight: 600; }

/* ---------- Typový štítek (obálka) ---------- */

.plate {
  margin: clamp(2rem, 6vw, 4.5rem) 0 0;
  border: 2px solid var(--ink);
  background: var(--paper-hi);
  box-shadow: 6px 6px 0 rgba(20, 24, 26, .09);
}

.plate__head {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  padding: .7rem 1.15rem;
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-hi);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.plate__head b { color: var(--amber); font-weight: 500; }

.plate__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.plate__cell { padding: .95rem 1.15rem; border-right: 1px solid var(--rule); }
.plate__cell:last-child { border-right: 0; }
.plate__cell dt {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: .3rem;
}
.plate__cell dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
}

.plate__body { padding: clamp(1.4rem, 3.5vw, 2.4rem) 1.15rem clamp(1.6rem, 4vw, 2.6rem); }

.plate__body h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .015em;
  font-size: clamp(2.05rem, 6.2vw, 3.5rem);
  line-height: 1.02;
  margin: 0 0 1.1rem;
  max-width: 20ch;
}

.plate__body h1 em {
  font-style: normal;
  color: var(--petrol);
  display: block;
}

.verdict { font-size: 1.14rem; max-width: 38rem; }
.verdict strong { box-shadow: inset 0 -.42em 0 rgba(200, 129, 26, .28); }

/* ---------- Sekce ---------- */

.sec {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0 clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.6rem, 6vw, 4.2rem) 0;
  border-top: 1px solid var(--rule);
}

.sec:first-of-type { border-top: 0; }

.sec__aside { position: relative; }
.sec__num {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--petrol);
  letter-spacing: .04em;
  display: block;
  line-height: 1;
}
.sec__num::after {
  content: "";
  display: block;
  width: 2.1rem;
  height: 2px;
  background: var(--amber);
  margin-top: .55rem;
}

.note {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: .73rem;
  line-height: 1.6;
  color: var(--steel);
  letter-spacing: .01em;
}
.note b { display: block; color: var(--ink); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; margin-bottom: .25rem; }

.sec h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.06;
  margin: 0 0 1.15rem;
  max-width: 22ch;
}

.sec h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.02rem;
  margin: 2rem 0 .55rem;
  color: var(--ink);
}

.lead { font-size: 1.13rem; }

/* ---------- Vyzdvižené bloky ---------- */

.key {
  border-left: 3px solid var(--amber);
  background: var(--paper-hi);
  padding: 1.05rem 1.25rem;
  margin: 0 0 1.4rem;
  max-width: var(--measure);
}
.key p { margin: 0; }
.key__label {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: .4rem;
}

.limit {
  border: 1px dashed var(--steel);
  padding: 1.05rem 1.25rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
  background: rgba(94, 104, 110, .05);
}
.limit p:last-child { margin-bottom: 0; }
.limit .key__label { color: var(--steel); }

/* ---------- Seznamy ---------- */

.spec { list-style: none; margin: 0 0 1.4rem; padding: 0; max-width: var(--measure); }
.spec li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: .1rem .6rem;
  padding: .62rem 0;
  border-bottom: 1px solid var(--rule);
}
.spec li:first-child { border-top: 1px solid var(--rule); }
.spec li i {
  font-style: normal;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--amber);
  padding-top: .22rem;
}
.spec li b { font-weight: 600; }
.spec li span { grid-column: 2; color: var(--steel); font-size: .95rem; }

/* ---------- Schéma soustavy ---------- */

.schema { margin: 1.7rem 0 1.9rem; max-width: 100%; overflow-x: auto; }
.schema svg { display: block; width: 100%; min-width: 40rem; height: auto; }

/* ---------- Ceník ---------- */

.price {
  border: 2px solid var(--ink);
  background: var(--paper-hi);
  margin: 0 0 1.5rem;
  max-width: 40rem;
}
.price__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 1.15rem;
  border-bottom: 1px solid var(--rule);
}
.price__row span { max-width: 26rem; }
.price__row em { font-style: normal; display: block; font-size: .87rem; color: var(--steel); }
.price__row b { font-family: var(--mono); font-size: 1.02rem; white-space: nowrap; font-weight: 500; }
.price__row--sum {
  border-bottom: 0;
  background: var(--ink);
  color: var(--paper-hi);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.price__row--sum b { font-size: 1.5rem; color: var(--amber); font-weight: 600; }
.price__row--sum span { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.2rem; font-weight: 600; }

.terms { list-style: none; padding: 0; margin: 0 0 1.2rem; max-width: var(--measure); }
.terms li { padding-left: 1.35rem; position: relative; margin-bottom: .5rem; }
.terms li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: .6rem; height: 2px;
  background: var(--amber);
}

/* ---------- Reference ---------- */

.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 1.5rem 0; }
.refs > * { background: var(--paper-hi); padding: 1rem 1.1rem; }
.refs h4 { margin: 0 0 .3rem; font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.06rem; font-weight: 600; }
.refs p { font-size: .91rem; color: var(--steel); margin: 0; max-width: none; }
.refs a { font-family: var(--mono); font-size: .78rem; }

/* ---------- Ukázka ---------- */

.demo {
  border: 2px solid var(--petrol);
  background: linear-gradient(180deg, rgba(20, 85, 95, .07), rgba(20, 85, 95, 0));
  padding: 1.35rem 1.35rem 1.5rem;
  margin: 1.5rem 0;
  max-width: 40rem;
}
.demo h3 { margin-top: 0; }

.btn {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  font-size: 1.06rem;
  padding: .72rem 1.5rem;
  border: 2px solid var(--ink);
  background: var(--amber);
  color: var(--ink);
  border-bottom-color: var(--ink);
  box-shadow: 4px 4px 0 rgba(20, 24, 26, .82);
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper-hi); box-shadow: 2px 2px 0 rgba(20, 24, 26, .5); }

/* ---------- Závěr ---------- */

.close { border-top: 2px solid var(--ink); }
.close .contact {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 2rem;
  margin: 1.35rem 0 0;
  font-family: var(--mono);
  font-size: 1.02rem;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 3rem;
  font-family: var(--mono);
  font-size: .73rem;
  color: var(--steel);
  letter-spacing: .02em;
}
footer p { max-width: none; margin: 0 0 .3rem; }

/* ---------- Responzivita ---------- */

@media (max-width: 60rem) {
  .plate__grid { grid-template-columns: repeat(2, 1fr); }
  .plate__cell:nth-child(2) { border-right: 0; }
  .plate__cell:nth-child(1), .plate__cell:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

@media (max-width: 46rem) {
  body { font-size: 1rem; }
  .sec { grid-template-columns: 1fr; gap: 0; }
  .sec__aside { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
  .sec__num::after { display: none; }
  .note { margin-top: 0; }
  .price__row { flex-direction: column; gap: .3rem; }
  .schema svg { min-width: 34rem; }
}

@media (max-width: 30rem) {
  .plate__grid { grid-template-columns: 1fr; }
  .plate__cell { border-right: 0; border-bottom: 1px solid var(--rule); }
  .plate__cell:last-child { border-bottom: 0; }
  .plate__head { font-size: .64rem; letter-spacing: .1em; }
}

@media print {
  body::before { display: none; }
  .plate, .price { box-shadow: none; }
  .sec { break-inside: avoid; }
}
