/* PRAENOTA - odkrytá vazba
   Bílý hadrový papír, inkoust, lněná nit, jediný akcent: zelené knihařské plátno. */

:root {
  --paper: #faf9f6;
  --paper-2: #f1eee7;
  --ink: #1d1a16;
  --ink-2: #5b554c;
  --ink-3: #6e675c;
  --rule: rgba(29, 26, 22, 0.16);
  --rule-strong: rgba(29, 26, 22, 0.42);
  --thread: #d9d1bf;
  --accent: #1f5a3c;
  --accent-deep: #17452e;
  --accent-thread: #2e7a52;
  --on-accent: #f6f3ec;
  --on-accent-2: #cfdccf;
  --error: #8f2a1c;

  --font: "Spectral", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;

  --spine-w: 0px;
  --gutter: 16px;
  --measure: 62ch;
  --radius: 2px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-board: 0 1px 0 rgba(29,26,22,.06), 0 6px 14px -6px rgba(29,26,22,.35);
  --shadow-board-hover: 0 1px 0 rgba(29,26,22,.06), 0 12px 22px -8px rgba(29,26,22,.42);
  --shadow-plate: 0 2px 4px -1px rgba(29,26,22,.18), 0 18px 32px -18px rgba(29,26,22,.35);

  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-left: var(--spine-w);
  position: relative;
}

/* Zrno hadrového papíru: skutečná textura přes SVG šum, ne gradient. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0.17'/></feComponentTransfer></filter><rect width='240' height='240' filter='url(%23g)'/></svg>");
  background-size: 240px 240px;
  mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--accent); }

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

p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }

.measure { max-width: var(--measure); }
.measure-wide { max-width: 26ch; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: .5rem .9rem;
  text-decoration: none;
}
.skip:focus { top: var(--gutter); }

.hero__spread, .why__lead, .ref__grid, .about__grid, .faq__grid, .cover__grid, .footer__grid, .calc, .what__list, .how__steps, .form__fields {
  grid-template-columns: minmax(0, 1fr);
}
.plate, .hero__page, .sheet, .calc__form, .calc__out { min-width: 0; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* Placeholdery: viditelné, aby se nezapomněly. */
.ph {
  background: transparent;
  color: var(--accent);
  font-style: italic;
  text-decoration: underline dashed 1px;
  text-underline-offset: .18em;
  padding: 0;
}

/* ---------- Typografie ---------- */

h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
}

.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 42ch;
  margin: 1.6rem 0 2.2rem;
}

/* ---------- Hřbet: řetízkový steh ---------- */

.spine {
  position: fixed;
  left: 0; top: 0; right: 0;
  height: var(--spine-h);
  z-index: 20;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  box-shadow: inset 0 -6px 12px -10px rgba(29,26,22,.35);
}
:root { --spine-h: 30px; }
body { padding-top: var(--spine-h); }

.spine__thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spine__links { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.spine__link {
  position: absolute;
  top: 0;
  height: 100%;
  width: 36px;
  transform: translateX(-50%);
  display: block;
  color: var(--ink-2);
  text-decoration: none;
}
.spine__link span {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.spine__link:focus-visible { outline-offset: -2px; }
.spine__link.is-active { color: var(--accent); }
.spine__loop-path { transition: stroke .45s var(--ease-out), stroke-width .45s var(--ease-out); }

@media (min-width: 1024px) {
  :root { --spine-w: 72px; --spine-h: 0px; }
  body { padding-top: 0; }

  .spine {
    left: 0; top: 0; bottom: 0; right: auto;
    width: var(--spine-w);
    height: auto;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
    box-shadow: inset -6px 0 12px -10px rgba(29,26,22,.35);
  }

  .spine__link {
    position: absolute;
    left: 0;
    top: auto;
    width: 100%;
    height: 44px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: var(--spine-w);
    color: var(--ink-2);
    text-decoration: none;
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .spine__link span {
    position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .25s var(--ease-out), transform .3s var(--ease-out);
    background: var(--paper);
    padding: .3rem .6rem;
    border: 1px solid var(--rule);
    box-shadow: var(--shadow-board);
    margin-left: 4px;
  }

  .spine__link:hover span,
  .spine__link:focus-visible span { opacity: 1; transform: translateX(0); }

  .spine__link:focus-visible { outline: none; }
  .spine__link:focus-visible span { outline: 2px solid var(--accent); outline-offset: 2px; }

  .spine__link.is-active { color: var(--accent); }
}

/* ---------- Záhlaví ---------- */

.masthead {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--rule);
}

.masthead__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding-block: 1rem .6rem;
}

/* Hlavní navigace: na mobilu vlastní řádek, který jde posouvat do strany */
.masthead__menu {
  order: 3;
  flex-basis: 100%;
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  margin-inline: calc(-1 * var(--gutter));
  padding: .35rem var(--gutter) .55rem;
  border-top: 1px solid var(--rule);
  margin-top: .35rem;
}
.masthead__menu::-webkit-scrollbar { display: none; }
.masthead__menu a {
  font-size: .95rem;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: .2rem;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.masthead__menu a:hover,
.masthead__menu a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }

@media (min-width: 900px) {
  .masthead__row { flex-wrap: nowrap; padding-block: 1rem; }
  .masthead__menu {
    order: 0;
    flex: 1 1 auto;
    flex-basis: auto;
    justify-content: center;
    overflow: visible;
    margin: 0;
    padding: 0;
    border-top: 0;
  }
}

section[id], footer[id] { scroll-margin-top: calc(var(--spine-h) + 12px); }

.wordmark {
  font-size: .95rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.wordmark--footer { margin-bottom: .6rem; }

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.link-quiet {
  font-size: .95rem;
  color: var(--ink-2);
  display: none;
}
@media (min-width: 640px) { .link-quiet { display: inline; } }

/* ---------- Tlačítka: desky prošité nití ---------- */

.btn {
  --stitch-color: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: .95rem 1.5rem .95rem 2.35rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-board);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s;
}

/* stehy na levé hraně desky: dírky v desce a oko nitě */
.btn::before {
  content: "";
  position: absolute;
  left: .7rem;
  top: 50%;
  width: 12px;
  height: 36px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='36' viewBox='0 0 12 36'><ellipse cx='6' cy='7' rx='2.6' ry='1.7' fill='%231d1a16' opacity='.6'/><ellipse cx='6' cy='29' rx='2.6' ry='1.7' fill='%231d1a16' opacity='.6'/><path d='M6 7 C 10 7, 10 29, 6 29 C 2 29, 2 7, 6 7 Z' fill='none' stroke='%23a2977f' stroke-width='3.2' transform='translate(.8 .8)' opacity='.55'/><path d='M6 7 C 10 7, 10 29, 6 29 C 2 29, 2 7, 6 7 Z' fill='none' stroke='%23d9d1bf' stroke-width='2.6'/></svg>");
  background-repeat: no-repeat;
  background-size: 12px 36px;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-board-hover); color: var(--ink); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-board); }

.btn--cloth {
  --stitch-color: var(--on-accent);
  background-color: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent-deep);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='6'><path d='M0 1.5h6M0 4.5h6' stroke='rgba(0,0,0,.13)' stroke-width='1'/><path d='M1.5 0v6M4.5 0v6' stroke='rgba(255,255,255,.07)' stroke-width='1'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='1' seed='9' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0.22'/></feComponentTransfer></filter><rect width='120' height='120' filter='url(%23c)'/></svg>");
  background-size: 6px 6px, 120px 120px;
}
.btn--cloth::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='36' viewBox='0 0 12 36'><ellipse cx='6' cy='7' rx='2.6' ry='1.7' fill='%23081c11' opacity='.75'/><ellipse cx='6' cy='29' rx='2.6' ry='1.7' fill='%23081c11' opacity='.75'/><path d='M6 7 C 10 7, 10 29, 6 29 C 2 29, 2 7, 6 7 Z' fill='none' stroke='%23081c11' stroke-width='3.2' transform='translate(.8 .8)' opacity='.5'/><path d='M6 7 C 10 7, 10 29, 6 29 C 2 29, 2 7, 6 7 Z' fill='none' stroke='%23e9e4d6' stroke-width='2.6'/></svg>");
}
.btn--cloth:hover { background-color: var(--accent-deep); color: var(--on-accent); }

.btn--small { padding: .6rem 1rem .6rem 1.9rem; font-size: .9rem; }
.btn--small::before { width: 9px; height: 27px; background-size: 9px 27px; left: .55rem; }

.btn__arrow { display: inline-flex; transition: transform .35s var(--ease-out); }
.icon--arrow, .icon--out { width: 20px; height: 20px; margin: 0; stroke: currentColor; stroke-width: 1.6; vertical-align: -0.2em; }
.icon--out { width: 16px; height: 16px; margin-left: .15em; display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.cta-group { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.cta-note { font-size: .92rem; color: var(--ink-2); margin: 0; }

/* ---------- Vlepené tabule (obrázky) ---------- */

.plate { margin: 0; }

.plate__link { display: block; text-decoration: none; color: inherit; }
.plate__link:hover .plate__image { transform: rotate(0deg) translateY(-2px); box-shadow: 0 2px 4px -1px rgba(29,26,22,.2), 0 24px 40px -18px rgba(29,26,22,.42); }
.plate__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.plate__image {
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  background: var(--paper-2);
  padding: 10px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-plate);
  transform: rotate(-0.4deg);
}
.plate__image img { width: 100%; min-width: 0; border: 1px solid var(--rule); background: #fff; }

.plate--portrait .plate__image { transform: rotate(0.5deg); }

.plate__caption {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin-top: 1rem;
  font-size: .88rem;
  color: var(--ink-2);
  padding-left: .75rem;
  border-left: 1px solid var(--rule-strong);
}
.plate__caption span:first-child { color: var(--ink); font-weight: 500; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 8vw, 7rem); }

.hero__spread {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__page--text { transform-origin: left center; }

@media (min-width: 900px) {
  .hero__spread {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
  .hero__page--plate { transform-origin: left center; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero__page--text {
    animation: open-left 1.1s var(--ease-out) both;
  }
  .js .hero__page--plate {
    animation: open-right 1.3s var(--ease-out) .12s both;
  }
  @keyframes open-left {
    from { opacity: 0; transform: perspective(1400px) rotateY(-9deg) translateX(-12px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes open-right {
    from { opacity: 0; transform: perspective(1400px) rotateY(10deg) translateX(18px); }
    to   { opacity: 1; transform: none; }
  }
}

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

.section {
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
  border-top: 1px solid var(--rule);
}

/* Proč */

.why__lead {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule-strong);
}

@media (min-width: 900px) {
  .why__lead { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
}

.why__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.why__num {
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: .95;
  letter-spacing: -0.03em;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}
.why__dash { margin-inline: .04em; font-weight: 400; }
.why__pct { font-size: .45em; letter-spacing: 0; vertical-align: .55em; margin-left: .05em; }

.why__figure-label { font-size: 1.05rem; color: var(--ink-2); }

.why__lead-text h3 { margin-bottom: .5rem; }
.why__lead-text p { margin: 0; max-width: 46ch; }

.why__list { margin: 0; }

.why__row {
  display: grid;
  gap: .4rem 2rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--rule);
}
.why__row:last-child { border-bottom: 0; }

@media (min-width: 720px) {
  .why__row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding-block: 2rem; }
}

.why__row dt { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.why__row dd { margin: 0; color: var(--ink-2); max-width: 58ch; }

/* Co dostanete */

.what__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.what__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 1.1rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--rule);
}
.what__item h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.what__item p { margin: 0; color: var(--ink-2); max-width: 48ch; }

@media (min-width: 760px) {
  .what__list { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
  .what__item { padding-block: 2rem; }
}

.icon {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: .15rem;
}

/* Jak to funguje: čtyři oka jednoho stehu */

.how__steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 2rem;
  position: relative;
}

.how__step { position: relative; padding-left: 0; }
@media (max-width: 759.98px) {
  .how__step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 1rem;
  }
  .how__step h3, .how__step p { grid-column: 2; }
  .how__step::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 30px;
    bottom: -2rem;
    width: 3px;
    background: var(--thread);
    box-shadow: 1px 0 0 rgba(29,26,22,.18);
  }
  .how__step:last-child::before { display: none; }
  .how__knot { grid-column: 1; grid-row: 1 / span 2; position: relative; z-index: 1; margin: .1rem 0 0; }
}
.how__step h3 { margin-bottom: .4rem; display: flex; align-items: baseline; gap: .6rem; }
.how__step p { margin: 0; color: var(--ink-2); max-width: 36ch; }

.how__n {
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--ink-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.how__knot { display: block; width: 56px; height: 34px; margin-bottom: .9rem; }
.how__knot svg { width: 100%; height: 100%; overflow: visible; }
.how__knot ellipse { fill: var(--ink); opacity: .5; }
.how__loop { fill: none; stroke: var(--thread); stroke-width: 3; }

@media (min-width: 760px) {
  .how__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
  /* nit spojující oka */
  .how__steps::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 17px;
    height: 3px;
    background: var(--thread);
    box-shadow: 0 1px 0 rgba(29,26,22,.18);
    z-index: 0;
  }
  .how__knot { position: relative; z-index: 1; background: var(--paper); }
}

/* Reference */

.ref__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .ref__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4rem; align-items: center; }
}

.ref__text p { max-width: 46ch; }
.ref__name {
  font-size: 1.35rem;
  font-weight: 600;
  margin: -1.2rem 0 1rem;
  white-space: nowrap;
}

.ref__facts {
  margin: 1.8rem 0 1.6rem;
  border-top: 1px solid var(--rule);
}
.ref__facts > div {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 1rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--rule);
}
.ref__facts dt { color: var(--ink-3); font-size: .95rem; }
.ref__facts dd { margin: 0; font-weight: 500; }

.link-out { font-weight: 500; }

/* Cena a kalkulačka */

.price__model { margin-bottom: 2.5rem; font-size: 1.1rem; }

.calc {
  display: grid;
  gap: 2rem;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.55);
}

@media (min-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; }
  .calc__form { border-right: 1px solid var(--rule); }
}

.calc__form, .calc__out { padding: clamp(1.4rem, 3vw, 2.4rem); }
.calc__form h3 { margin-bottom: 1.4rem; }

.calc__out {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  justify-content: center;
  background: var(--paper-2);
}

.calc__result { display: flex; flex-direction: column; gap: .2rem; }
.calc__label { font-size: .92rem; color: var(--ink-2); }
.calc__value {
  font-size: 1.5rem;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.01em;
}
.calc__value--big {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--accent);
}
.calc__result--main { padding-block: 1rem; border-block: 1px solid var(--rule); }
.calc__sub { font-size: .95rem; color: var(--ink-2); }
.calc__sub output { font-weight: 500; color: var(--ink); }

/* Pole */

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .95rem; font-weight: 500; }
.field__optional { color: var(--ink-3); font-weight: 400; }

.field input, .field textarea {
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: .7rem .85rem;
  width: 100%;
  box-shadow: inset 0 1px 2px rgba(29,26,22,.08);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 1px 2px rgba(29,26,22,.08), 0 0 0 3px rgba(31,90,60,.18);
}
.field textarea { resize: vertical; min-height: 6rem; }

.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field__unit { position: relative; }
.field__unit input { padding-right: 3rem; }
.field__unit span {
  position: absolute; right: .9rem; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: .95rem;
}

.field__hint { font-size: .88rem; color: var(--ink-3); margin: .2rem 0 0; }

.field__error {
  margin: 0;
  font-size: .88rem;
  color: var(--error);
  min-height: 0;
}
.field__error:empty { display: none; }

/* O mně */

.about__grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) {
  .about__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; align-items: center; }
}
.about__plate { max-width: 360px; }
.about__text p { max-width: 50ch; font-size: 1.1rem; }

/* FAQ */

.faq__grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; align-items: start; }
  .faq__grid .h2 { position: sticky; top: 2rem; }
}

.faq__list { border-top: 1px solid var(--rule); }

.faq__item { border-bottom: 1px solid var(--rule); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.6rem 1.15rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  background:
    linear-gradient(var(--ink), var(--ink)) center/14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1.5px 14px no-repeat;
  transition: transform .35s var(--ease-out);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { color: var(--accent); }

.faq__body { padding: 0 0 1.4rem; color: var(--ink-2); }
.faq__body p { margin: 0; max-width: 60ch; }

/* ---------- Závěrečné CTA: zelené plátěné desky ---------- */

.cover {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='6'><path d='M0 1.5h6M0 4.5h6' stroke='rgba(0,0,0,.13)' stroke-width='1'/><path d='M1.5 0v6M4.5 0v6' stroke='rgba(255,255,255,.07)' stroke-width='1'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='11' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0.26'/></feComponentTransfer></filter><rect width='160' height='160' filter='url(%23c)'/></svg>");
  background-size: 6px 6px, 160px 160px;
  color: var(--on-accent);
  border-top: 1px solid var(--accent-deep);
  padding-block: clamp(4rem, 9vw, 8rem);
}

.cover__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .cover__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4.5rem; align-items: start; }
}

.cover__title { color: var(--on-accent); max-width: 16ch; }
.cover__lede { font-size: 1.15rem; color: var(--on-accent-2); max-width: 40ch; }

.cover__contacts { margin: 2rem 0 0; border-top: 1px solid rgba(246,243,236,.25); }
.cover__contacts > div {
  display: grid;
  grid-template-columns: minmax(0, 6rem) minmax(0, 1fr);
  gap: 1rem;
  padding-block: .7rem;
  border-bottom: 1px solid rgba(246,243,236,.25);
}
.cover__contacts dt { color: var(--on-accent-2); }
.cover__contacts dd { margin: 0; }
.cover__contacts a { color: var(--on-accent); }
.cover__contacts a:hover { color: #fff; }

/* Papírový arch přišitý na desky */
.sheet {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem) clamp(2.2rem, 4vw, 3.2rem);
  border: 1px solid var(--rule);
  box-shadow: 0 2px 3px -1px rgba(0,0,0,.3), 0 24px 40px -22px rgba(0,0,0,.55);
}
.sheet::before {
  content: "";
  position: absolute;
  left: .85rem;
  top: 1.6rem;
  bottom: 1.6rem;
  width: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='40' viewBox='0 0 12 40'><ellipse cx='6' cy='8' rx='2.4' ry='1.6' fill='%231d1a16' opacity='.5'/><ellipse cx='6' cy='32' rx='2.4' ry='1.6' fill='%231d1a16' opacity='.5'/><path d='M6 8 C 9.5 8, 9.5 32, 6 32 C 2.5 32, 2.5 8, 6 8 Z' fill='none' stroke='%232e7a52' stroke-width='2.2'/><path d='M6 8 C 9.5 8, 9.5 32, 6 32 C 2.5 32, 2.5 8, 6 8 Z' fill='none' stroke='%2317452e' stroke-width='.6' opacity='.8'/></svg>");
  background-repeat: no-repeat round;
  background-size: 12px 40px;
}

.form__fields { display: grid; gap: 0 1.25rem; }
@media (min-width: 560px) {
  .form__fields { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.form__actions { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; margin-top: .4rem; }

.form__status { margin: 1rem 0 0; font-size: .98rem; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }
.form__status.is-success { color: var(--accent); font-weight: 500; }

.form.is-sent .form__fields,
.form.is-sent .form__actions { display: none; }
.form.is-sent .form__status { font-size: 1.15rem; margin: 0; }

/* ---------- Patička ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
  font-size: .95rem;
  color: var(--ink-2);
}
.footer__grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 2.5rem; }
}
.footer p { margin: 0 0 .5rem; }
.footer__gdpr { max-width: 46ch; }
