/* =========================================================
   Položpolys – nový web
   Barvy: bílý polystyren, beton, grafitový polystyren, zelená z loga
   ========================================================= */

/* Písmo Archivo (OFL) hostované přímo na webu – nečeká se na Google Fonts */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f1f2ef;       /* bílá deska polystyrenu */
  --paper-2: #e6e8e4;      /* spára / druhý odstín */
  --line: #c9ccc6;         /* tenké linky */
  --muted: #555a56;        /* vedlejší text (kontrast AA na --paper) */
  --ink: #1f2322;          /* hlavní text */
  --graphite: #2c3032;     /* grafitový polystyren */
  --graphite-2: #383d3f;
  --on-dark: #eceeea;
  --on-dark-muted: #b7bcb7;
  --green: #20724a;        /* zelená z loga */
  --green-ink: #175a3a;
  --green-light: #8fd3a8;  /* zelená na tmavém pozadí */
  --wa: #1f7a45;

  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.6vw, 5.6rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

h1, h2, h3 {
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 900; }
h2 { font-size: var(--step-3); font-weight: 850; }
h3 { font-size: var(--step-1); font-weight: 750; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
strong { font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--paper); padding: 10px 14px; }

/* Vzor desek položených na vazbu (spáry jsou posunuté o půl desky) */
.boards {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M0 .5h240M0 60.5h240M.5 0v60M120.5 60v60'/%3E%3C/g%3E%3C/svg%3E");
}
.boards-dark {
  background-color: var(--graphite);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M0 .5h240M0 60.5h240M.5 0v60M120.5 60v60'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 22px;
  font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; border-radius: 3px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-call { background: var(--green); color: #fff; }
.btn-call:hover { background: var(--green-ink); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn-line { color: var(--on-dark); border-color: var(--on-dark); }
.on-dark .btn-line:hover { background: var(--on-dark); color: var(--graphite); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 242, 239, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; }
.brand span { font-weight: 850; font-size: 1.15rem; font-variation-settings: "wdth" 112; letter-spacing: -0.01em; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 8px 14px;
  background: none; border: 2px solid var(--ink); border-radius: 3px;
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px -16px rgba(0,0,0,.25);
}
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.site-nav a {
  display: block; padding: 14px 0; font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--green); }
.site-nav .nav-phone { display: none; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 10px 12px; font-size: 1rem; }
  .site-nav a:hover { color: var(--green); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green); }
  .site-nav .nav-phone { display: block; margin-left: 10px; }
  .site-nav .nav-phone a { background: var(--green); color: #fff; border-radius: 3px; padding: 10px 16px; }
  .site-nav .nav-phone a:hover { background: var(--green-ink); color: #fff; }
}

/* ---------- Úvod (hero) ---------- */
.hero { position: relative; }
.hero-grid { display: grid; }
.hero-text { padding: clamp(32px, 6vw, 72px) var(--gutter) 36px; }
.hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); margin-bottom: 0.4em; max-width: 18ch; }
.hero-sub { font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 112; line-height: 1.25; color: var(--green-ink); max-width: 34ch; margin-bottom: 28px; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 70%; }

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
    min-height: min(calc(100svh - var(--header-h) - 14px), 820px);
  }
  .hero-text { align-self: center; padding: 64px var(--gutter); }
  .hero-photo img { height: 100%; aspect-ratio: auto; }
}

/* Vodováha – zelený pruh s libelou */
.level {
  position: relative; height: 16px; background: var(--green);
  display: flex; justify-content: center; align-items: center;
}
.level-vial {
  position: relative; width: 132px; height: 12px; border-radius: 6px;
  background: #d9efc4; box-shadow: inset 0 1px 2px rgba(0,0,0,.25); overflow: hidden;
}
.level-vial::before, .level-vial::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(0,0,0,.45);
}
.level-vial::before { left: calc(50% - 20px); }
.level-vial::after { left: calc(50% + 18px); }
.level-bubble {
  position: absolute; top: 2px; left: calc(50% - 15px); width: 30px; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.95); box-shadow: inset 0 -1px 1px rgba(0,0,0,.15);
}
@media (prefers-reduced-motion: no-preference) {
  .level-bubble { animation: settle 1.6s cubic-bezier(.3, 1.4, .5, 1) .3s both; }
  @keyframes settle {
    0% { transform: translateX(-46px); }
    55% { transform: translateX(10px); }
    100% { transform: translateX(0); }
  }
}

/* ---------- Sekce ---------- */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.on-dark { color: var(--on-dark); }
.on-dark a { color: var(--green-light); }
.on-dark p { color: var(--on-dark); }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 60ch; }
.muted { color: var(--muted); }
.on-dark .muted { color: var(--on-dark-muted); }
/* tlačítka a formulář v tmavé sekci si drží vlastní barvy */
.on-dark .btn-call, .on-dark .btn-call:hover { color: #fff; }
.on-dark .form p, .on-dark .form .consent { color: var(--muted); }

::selection { background: var(--green); color: #fff; }
input, textarea { caret-color: var(--green); accent-color: var(--green); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin-bottom: 0; }

/* 200 000 m² */
.area-figure {
  display: block; font-weight: 900; line-height: .9; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 12.5vw, 11rem);
  font-variation-settings: "wdth" 125; font-stretch: 125%;
  color: #fff; margin: 0 0 .15em;
  white-space: nowrap;
}
.area-figure sup { font-size: .45em; vertical-align: .9em; margin-left: .04em; }
.area-text { font-size: var(--step-2); line-height: 1.3; font-weight: 600; max-width: 30ch; margin: 0 0 .6em; }

/* Co dělám – tři vlastnosti, spárované jako desky */
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.traits { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.traits li { padding: 20px 0 18px; border-bottom: 1px solid var(--line); }
.traits h3 { margin-bottom: .25em; }
.traits p { margin: 0; color: var(--muted); }

/* Videa */
.clips {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter);
  scroll-padding: 0 var(--gutter);
}
.clip { margin: 0; scroll-snap-align: start; }
.clip-frame { position: relative; background: #000; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 3px; }
.clip-frame video, .clip-frame img { width: 100%; height: 100%; object-fit: cover; }
.clip figcaption { padding-top: 10px; font-size: var(--step--1); line-height: 1.45; }
@media (min-width: 760px) {
  .clips { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 24px; }
}
.clips-more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Fotky */
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--paper-2); border-radius: 2px; }
.photos figcaption { font-size: var(--step--1); color: var(--muted); padding-top: 8px; line-height: 1.4; }
@media (min-width: 760px) {
  .photos { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  /* posun každé druhé fotky – jako desky na vazbu */
  .photos > :nth-child(even) { transform: translateY(40px); }
  .photos { padding-bottom: 40px; }
}
.photos-3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) {
  .photos-3 { grid-template-columns: repeat(3, 1fr); }
  .photos-3 > :nth-child(even) { transform: none; }
  .photos-3 > :nth-child(3n+2) { transform: translateY(48px); }
  .photos-3 { padding-bottom: 48px; }
}
.photo-btn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(20, 22, 22, .9); }
/* všechny fotky jsou na výšku 3:4 */
.lightbox img { height: min(86vh, calc(96vw * 4 / 3)); width: auto; max-width: none; aspect-ratio: 3 / 4; object-fit: contain; margin: 0 auto; background: #333; }
.lightbox p { color: #fff; text-align: center; margin: 10px auto 0; font-size: var(--step--1); }
.lightbox-close {
  position: fixed; top: 12px; right: 12px; min-width: 48px; min-height: 48px;
  background: var(--paper); color: var(--ink); border: 0; border-radius: 3px; font: inherit; font-weight: 700; cursor: pointer;
}

/* Kontakt */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.big-phone {
  display: inline-block; font-weight: 900; font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem);
  font-variation-settings: "wdth" 118; letter-spacing: -0.01em; line-height: 1.1;
  text-decoration: none; color: inherit; margin-bottom: 8px;
}
.on-dark .big-phone { color: #fff; }
.big-phone:hover { color: var(--green-light); }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.15); }
.contact-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-list .label { display: block; font-size: var(--step--1); color: var(--on-dark-muted); }
.light .contact-list li { border-color: var(--line); }
.light .contact-list .label { color: var(--muted); }

/* Formulář */
.form { display: grid; gap: 18px; background: var(--paper); color: var(--ink); padding: clamp(20px, 4vw, 36px); border-radius: 3px; }
.form h3 { margin: 0; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #8d928c; border-radius: 3px; padding: 12px 14px; min-height: 52px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(32,114,74,.25); }
.form .btn { justify-self: start; }
.consent { font-size: var(--step--1); color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Podstránky */
.page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.4rem); max-width: 16ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; max-width: 66ch; }
.prose li { margin-bottom: .4em; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step); font-weight: 900; font-size: 2.6rem; line-height: 1;
  font-variation-settings: "wdth" 125; color: var(--green);
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; }

.kinds { display: grid; gap: 0; border-top: 3px solid var(--ink); }
.kinds > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
  .kinds { grid-template-columns: repeat(3, 1fr); }
  .kinds > div { padding: 22px 24px 22px 0; border-bottom: 0; }
  .kinds > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
}
.kinds p { margin: 0; color: var(--muted); }

.cta-band { padding: clamp(40px, 6vw, 72px) 0; }
.cta-band h2 { max-width: 20ch; }

/* FAQ */
.faq { border-top: 3px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 750; font-size: var(--step-1); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px; font-size: 2rem; font-weight: 400; color: var(--green); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Značky pro Vencu – místa k doplnění (před nasazením odstranit) */
mark.todo { background: #ffe58a; color: #3b2f00; padding: 0 .25em; font-weight: 700; font-size: .85em; border-radius: 2px; }

/* ---------- Patička ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 56px 0 28px; font-size: var(--step--1); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--green-light); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 64px; height: 64px; background: var(--paper); border-radius: 3px; padding: 4px; }
.footer-brand p { margin: 0; font-weight: 800; font-size: 1.1rem; font-variation-settings: "wdth" 112; }
.site-footer h2 { font-size: 1rem; font-weight: 800; margin-bottom: .8em; color: #fff; font-variation-settings: "wdth" 112; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer li a { display: inline-block; padding: 4px 0; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; }
.social svg { width: 22px; height: 22px; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); color: var(--on-dark-muted); }
.legal p { max-width: none; margin-bottom: .4em; }

/* Spodní lišta na mobilu – vždy po ruce */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); padding: 8px; gap: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.callbar .btn { min-height: 50px; padding: 10px; font-size: 1rem; }
.callbar .btn-line { color: #fff; border-color: rgba(255,255,255,.7); }
body { padding-bottom: 76px; }
@media (min-width: 960px) { .callbar { display: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
