:root {
  color-scheme: light;
  --ink: #20251e;
  --green: #202820;
  --paper: #f7f4ec;
  --muted: #53594c;
  --accent: #a2532d;
  --warm: #e4aa70;
  --line: #d9d3c5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b46534; outline-offset: 4px; }
.skip { position: absolute; top: .65rem; left: .65rem; padding: .5rem; background: white; z-index: 4; transform: translateY(-180%); }
.skip:focus { transform: none; }
.wrap { width: min(1200px, calc(100% - 2 * clamp(1.2rem, 5vw, 5rem))); margin-inline: auto; }
.header { background: #171e18; color: var(--paper); }
.bar, .footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 79px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 1.62rem Georgia, serif; text-decoration: none; white-space: nowrap; }
.mark { color: var(--warm); font: 1.45rem system-ui, sans-serif; border: 1px solid #aa825a; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; }
nav { display: flex; flex-wrap: wrap; gap: .45rem clamp(1rem, 2.4vw, 2rem); }
nav a, footer a { text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font: 650 .92rem/1.25 system-ui, sans-serif; cursor: pointer; }
.outline { border-color: #928670; }
.outline:hover { background: #354035; }
.warm { background: var(--warm); color: #211b14; }
.warm:hover { background: #f0bc87; }
.hero { isolation: isolate; position: relative; display: grid; align-items: center; min-height: clamp(34rem, 71vh, 52rem); background: #222b22; color: #fff9ed; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 57%; z-index: -2; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, rgba(15,21,16,.95), rgba(15,21,16,.61) 43%, rgba(15,21,16,.07) 83%), linear-gradient(0deg, #10181099, transparent 28%); }
.hero-inner { padding-block: 4.5rem; }
.eyebrow { margin: 0 0 .9rem; font-size: .875rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 720; color: var(--accent); }
.hero .eyebrow, .dark .eyebrow { color: #f0bd89; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(3.1rem, 7.3vw, 7rem); letter-spacing: -.06em; }
h1 em { color: #f3c393; font-weight: inherit; }
h2 { font-size: clamp(2.35rem, 5vw, 4.55rem); letter-spacing: -.055em; }
h3 { font-size: 1.9rem; letter-spacing: -.035em; }
.intro { max-width: 26rem; font-size: 1.15rem; margin: 1.55rem 0 1.65rem; color: #f1eadb; }
.hero-note { background: #171e18; border-radius: 4px; padding: .2rem .55rem; position: absolute; bottom: .9rem; right: clamp(1.2rem, 5vw, 5rem); font-size: .8125rem; }
.section { padding-block: clamp(3.6rem, 8vw, 7rem); }
.lead { max-width: 46rem; color: var(--muted); margin: 1rem 0 2rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.models .button { margin-top: auto; }
.models img { display: block; width: 100%; height: auto; background: #e7dece; }
.advantages { margin-top: 1.5rem; }
#zalety { padding-top: 0; }
.feature-icon {
  display: block;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  padding: .6rem;
  border-radius: .75rem;
  color: #854624;
  background: #f3e5d6;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fcfaf5; border-radius: 6px; overflow: hidden; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(1rem, 2.2vw, 1.7rem); }
.card-copy > h3 + p { margin: .65rem 0; }
.model { border-color: #91856e; color: var(--green); background: transparent; }
.model:hover { background: #efe6d7; }
.dark { background: var(--green); color: var(--paper); }
.story { background: #ede6d8; isolation: isolate; }
.story-image { margin: 1.5rem 0 0; max-width: 24rem; }
.story-image img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.story-copy { max-width: 39rem; color: var(--muted); }
.story-copy p { margin: 0; }
.story-copy p + p { margin-top: 1rem; }
.app-layout { align-items: center; }
.app-features { padding-left: 1.15rem; color: #e1ddd1; }
.app-features li + li { margin-top: .55rem; }
.app-stores { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.store-button {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 8.5rem;
  padding: .5rem .85rem;
  border: 1px solid #827a68;
  border-radius: .55rem;
  background: #171e18;
  color: var(--paper);
  text-align: left;
  font: inherit;
  line-height: 1.25;
}
.store-button span { font-size: .875rem; color: #e1ddd1; }
.store-button strong { display: block; color: var(--paper); font-size: 1.1rem; }
.store-button svg { width: 1.65rem; height: 1.65rem; flex: none; }
.app-preview { width: min(100%, 20rem); margin: 0 auto; text-align: center; }
.app-screen { display: grid; gap: .55rem; background: #f7f4ec; color: var(--ink); padding: 1.1rem; text-align: left; border: 7px solid #131a14; border-radius: 2rem; }
.app-screen-heading, .app-reading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.app-screen-heading { padding-block: .35rem; }
.app-screen-heading span, .app-reading span { font-size: .875rem; color: var(--muted); }
.app-camera { position: relative; overflow: hidden; border-radius: .65rem; }
.app-camera img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.app-camera span { position: absolute; bottom: .45rem; left: .45rem; background: #202820; color: white; padding: .2rem .45rem; border-radius: .3rem; font-size: .875rem; }
.app-reading { background: white; padding: .65rem; border-radius: .45rem; }
.app-preview figcaption { margin-top: .55rem; font-size: .875rem; color: #e1ddd1; }
.dark .lead { color: #e1ddd1; margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.26fr); gap: clamp(1.8rem, 6vw, 6rem); }
details { border-top: 1px solid var(--line); padding: .9rem 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; padding: .35rem 0; }
details p { margin: .5rem 0 0; color: var(--muted); }
.contact { background: #ede6d8; }
form { padding: clamp(1.05rem, 3vw, 2rem); background: #fbf8f0; border: 1px solid var(--line); border-radius: 6px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
label { display: grid; min-width: 0; gap: .35rem; font-size: .9rem; font-weight: 650; }
.model-field { margin-bottom: 1rem; }
input, select, textarea { width: 100%; min-width: 0; color: var(--ink); background: white; border: 1px solid #aaa08e; border-radius: 4px; padding: .65rem; font: 1rem system-ui, sans-serif; }
textarea { resize: vertical; }
.form-note, #form-status { font-size: .9rem; color: var(--muted); }
#form-status:empty { display: none; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; padding-block: .8rem; }
  nav { order: 3; width: 100%; }
  .hero-image { object-position: 61% center; }
  .hero::after { background: linear-gradient(90deg, #101810da, #10181042), linear-gradient(0deg, #10181090, transparent 50%); }
  .cards, .split { grid-template-columns: 1fr; }
  .footer .wrap { flex-wrap: wrap; padding-block: 1.2rem; }
}
@media (max-width: 390px) {
  .fields { grid-template-columns: 1fr; }
  .bar .button { padding-inline: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
