/* Hlavní web Elegry (landing/web/index.html). Samostatný, bez styles.css landingu; tokeny značky převzaté z něj.
   Mobile-first, breakpointy 768 a 1100 px. Jeden radius systém: karty 20 px, tlačítka a štítky pill. */

:root {
  --ink: #1D1D1F;
  --mut2: #6E6E73;
  --gray: #F5F5F7;
  --pet: #0F4F58;
  --pet2: #1B7C86;
  --pet-d: #0B434B;
  --cop: #C27848;
  --cop-btn: #AD5F34;
  --cop-btn-h: #9A5229;
  --line: #D2D2D7;
  --r: 20px;
  --font: Geist, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cop); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* Nepotvrzená tvrzení (LP_CONFIG.potvrzeno v /config.js): bez třídy pv-<klíč> na <html> se nevykreslí, ani bez JS. */
html:not(.pv-garancePoradku) [data-potvrzeno="garancePoradku"] { display: none !important; }

.w-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- tlačítka ---------- */
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--cop-btn); color: #fff; font-weight: 600; font-size: 16.5px; text-decoration: none;
  white-space: nowrap; transition: background .2s ease, transform .2s ease; }
.w-btn:hover { background: var(--cop-btn-h); }
.w-btn:active { transform: translateY(1px) scale(.99); }
.w-btn-s { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.w-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--pet); text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.w-link:hover { color: var(--pet2); }

/* ---------- hlavička ---------- */
.w-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(210, 210, 215, .6); }
.w-head-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.w-brand { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; text-decoration: none; }
.w-nav { display: none; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.w-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--mut2); }
.w-nav a:hover { color: var(--ink); }
.w-head .w-btn-s { margin-left: auto; }

/* ---------- hero ---------- */
.w-hero { padding: 40px 0 56px; }
.w-hero-grid { display: grid; gap: 36px; }
.w-hero h1 { font-size: clamp(36px, 9.4vw, 60px); font-weight: 700; letter-spacing: -.045em; line-height: 1.03; text-wrap: balance; }
.w-hero-sub { margin-top: 20px; max-width: 34ch; font-size: clamp(18px, 4.6vw, 21px); line-height: 1.45; color: #3A3A3F; }
.w-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.w-hero-shot { margin: 0; }
.w-shot { aspect-ratio: 720 / 560; overflow: hidden; border-radius: var(--r); background: var(--gray); box-shadow: 0 30px 60px -30px rgba(15, 79, 88, .35); }
/* Obrázek má nahoře vlastní nadpis; výřez ukáže jen samotný přehled. */
.w-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }
.w-hero-shot figcaption { margin-top: 10px; font-size: 13.5px; color: var(--mut2); }
@media (prefers-reduced-motion: no-preference) {
  .w-hero-copy, .w-hero-shot { animation: w-in .7s cubic-bezier(.16, 1, .3, 1) both; }
  .w-hero-shot { animation-delay: .12s; }
}
@keyframes w-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- důkaz (jediný petrolejový blok) ---------- */
.w-proof { background: var(--pet); color: #fff; padding: 64px 0; }
.w-kick { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #E9B48C; }
.w-proof h2 { margin-top: 14px; font-size: clamp(32px, 8vw, 58px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; text-wrap: balance; max-width: 18ch; }
.w-proof h2 span { color: #E9B48C; }
.w-proof-p { margin-top: 20px; max-width: 58ch; font-size: 18px; line-height: 1.55; color: #D8E6E8; }
.w-time { list-style: none; display: grid; gap: 0; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, .22); }
.w-time li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.w-time b { font-family: var(--mono); font-weight: 500; font-size: 14px; color: #9FC9CE; }
.w-time span { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- sekce ---------- */
.w-sec { padding: 72px 0; }
.w-gray { background: var(--gray); }
.w-h2 { font-size: clamp(30px, 7vw, 46px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; text-wrap: balance; max-width: 22ch; }
.w-lead { margin-top: 16px; max-width: 60ch; font-size: 18.5px; line-height: 1.55; color: #3A3A3F; }

/* kalibrace: kroky */
.w-steps { list-style: none; display: grid; gap: 14px; margin-top: 40px; counter-reset: none; }
.w-steps li { position: relative; padding: 24px 22px 26px; border-radius: var(--r); background: var(--gray); }
.w-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--pet); color: #fff;
  font-family: var(--mono); font-weight: 500; font-size: 15px; }
.w-step-k { margin-top: 16px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--cop-btn); }
.w-steps h3 { margin-top: 6px; font-size: 20px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.w-steps p:last-child { margin-top: 10px; font-size: 15.5px; color: #4A4A50; }

/* kalibrace: srovnání */
.w-compare { margin-top: 36px; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; font-size: 15px; }
.w-cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; }
.w-cmp-row > span { padding: 14px 14px; }
.w-cmp-row + .w-cmp-row { border-top: 1px solid var(--line); }
.w-cmp-row > span:first-child { font-weight: 600; }
.w-cmp-row > span:last-child { background: rgba(15, 79, 88, .06); color: var(--pet); font-weight: 600; }
.w-cmp-head > span { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--mut2); font-weight: 500 !important; }
.w-cmp-head > span:last-child { color: var(--pet); }

/* proč my */
.w-why { display: grid; gap: 40px; align-items: center; }
.w-why-text p { margin-top: 16px; max-width: 54ch; font-size: 18px; line-height: 1.6; color: #3A3A3F; }
.w-why .v4-growth { background: #fff; border-radius: var(--r); padding: 22px 20px 20px; }

/* graf růstu: pravidla převzatá z landing/v4/v4.css (.v4-growth, .g-*) */
.v4-growth { --gap: 8px; margin: 0; min-width: 0; }
.g-plot { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--gap); align-items: end; height: 190px; margin-top: 54px; border-bottom: 2px solid #D9E3E4; }
.g-col { position: relative; display: flex; align-items: flex-end; height: 100%; }
.g-bar { position: relative; display: block; width: 100%; height: calc(var(--h) * 1%); background: var(--pet); border-radius: 7px 7px 2px 2px; }
.g-col.is-now .g-bar { background: var(--cop); }
html.js .v4-growth .g-bar { height: 0; transition: height .9s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 80ms); }
html.js .v4-growth.in .g-bar { height: calc(var(--h) * 1%); }
.g-val { position: absolute; right: 0; bottom: calc(100% + 6px); font-size: 19px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-style: normal; color: var(--cop-btn); white-space: nowrap; text-align: right; }
.g-val small { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0; }
html.js .v4-growth .g-val { opacity: 0; transition: opacity .4s ease 1.2s; }
html.js .v4-growth.in .g-val { opacity: 1; }
.g-col.is-now::before { content: ""; position: absolute; left: calc(var(--gap) / -2 - 1px); top: 0; bottom: 0; border-left: 2px dashed var(--cop); opacity: .75; }
.g-cal { position: absolute; top: 0; right: calc(100% + var(--gap) / 2 + 8px); font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--cop-btn); white-space: nowrap; }
.g-avg { position: absolute; left: 0; right: 0; bottom: calc(var(--h) * 1%); border-top: 2px dashed rgba(29, 29, 31, .38); z-index: 1; pointer-events: none; }
.g-months { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--gap); margin-top: 8px; font-size: 14px; font-weight: 500; text-align: center; color: var(--mut2); }
.g-months .is-now { color: var(--cop-btn); font-weight: 700; }
.g-legend { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; line-height: 1.35; color: var(--mut2); }
.g-legend i { flex: none; width: 26px; border-top: 2px dashed rgba(29, 29, 31, .38); }
.v4-growth figcaption { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--mut2); }

/* co stavíme: bento (5 položek = 5 buněk) */
.w-bento { display: grid; gap: 14px; margin-top: 40px; }
.w-cell { padding: 26px 24px; border-radius: var(--r); background: var(--gray); }
.w-cell h3 { font-size: 21px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.w-cell p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: #4A4A50; }
.w-cell-main { background: #fff; border: 1px solid var(--line); }
.w-cell-pet { background: var(--pet); color: #fff; }
.w-cell-pet p { color: #D8E6E8; }
.w-cell-cop { background: #F8EDE5; }
.w-flow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.w-flow li { padding: 8px 14px; border-radius: 999px; background: rgba(15, 79, 88, .08); color: var(--pet); font-size: 14.5px; font-weight: 600; }
.w-note { font-size: 13.5px !important; color: var(--mut2) !important; }

/* pro koho */
.w-who .w-h2 { max-width: 26ch; }
.w-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.w-chips li { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15.5px; }
.w-who-p { margin-top: 28px; max-width: 56ch; font-size: 19px; line-height: 1.55; color: #3A3A3F; }
.w-who-p b { color: var(--pet); }

/* kdo za tím stojí */
.w-team { display: grid; gap: 36px; align-items: center; }
.w-team-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-team-photos figure { margin: 0; }
.w-team-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--gray); }
.w-team-photos figcaption { margin-top: 10px; display: grid; font-size: 14px; color: var(--mut2); }
.w-team-photos figcaption b { color: var(--ink); font-size: 15.5px; }
.w-team-text p { margin-top: 16px; max-width: 52ch; font-size: 18px; line-height: 1.6; color: #3A3A3F; }

/* FAQ */
.w-faq { display: grid; gap: 28px; }
.w-faq-list { border-top: 1px solid var(--line); }
.w-faq-list details { border-bottom: 1px solid var(--line); }
.w-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0;
  cursor: pointer; list-style: none; }
.w-faq-list summary::-webkit-details-marker { display: none; }
.w-faq-list summary h3 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.w-faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px;
  background: #fff; color: var(--pet); font-size: 20px; font-weight: 500; transition: transform .2s ease; }
.w-faq-list details[open] summary::after { transform: rotate(45deg); }
.w-faq-list details p { padding: 0 44px 22px 0; max-width: 68ch; font-size: 16.5px; line-height: 1.6; color: #3A3A3F; }

/* závěr */
.w-end { padding: 72px 0 80px; }
.w-end-card { padding: 40px 24px; border-radius: var(--r); background: var(--pet-d); color: #fff; }
.w-end-card h2 { font-size: clamp(30px, 7vw, 46px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; }
.w-end-card h2 span { color: #E9B48C; }
.w-end-card > p { margin: 16px 0 28px; max-width: 54ch; font-size: 18px; line-height: 1.55; color: #D8E6E8; }
.w-guar { margin-top: 22px; max-width: 60ch; font-size: 15px; line-height: 1.55; color: #D8E6E8; }
.w-guar b { color: #fff; }

/* patička */
.w-foot { padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mut2); }
.w-foot-in { display: grid; gap: 14px; }
.w-foot a { color: var(--mut2); }
.w-foot a:hover { color: var(--ink); }
.w-foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.w-foot-links a, .w-foot-links button { display: inline-flex; align-items: center; min-height: 44px; }
.w-foot-links button { background: none; border: 0; padding: 0; color: var(--mut2); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* ---------- tablet ---------- */
@media (min-width: 768px) {
  .w-wrap { padding: 0 32px; }
  .w-hero { padding: 56px 0 80px; }
  .w-time { grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 0; }
  .w-time li { border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 20px; }
  .w-steps { grid-template-columns: repeat(2, 1fr); }
  .w-cmp-row > span { padding: 16px 22px; }
  .w-bento { grid-template-columns: repeat(6, 1fr); }
  .w-cell-main { grid-column: span 4; }
  .w-cell-pet { grid-column: span 2; }
  .w-cell:nth-child(n+3) { grid-column: span 2; }
  .w-team-photos { gap: 16px; }
  .w-end-card { padding: 56px 48px; }
  .v4-growth { --gap: 12px; }
  .g-plot { height: 230px; }
  .w-sec { padding: 96px 0; }
  .w-proof { padding: 88px 0; }
}

/* ---------- desktop ---------- */
@media (min-width: 1100px) {
  .w-nav { display: flex; }
  .w-head .w-btn-s { margin-left: 8px; }
  .w-hero { padding: 64px 0 96px; }
  .w-hero-grid { grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }
  .w-steps { grid-template-columns: repeat(4, 1fr); }
  .w-why { grid-template-columns: 1fr 1fr; gap: 64px; }
  .w-why .v4-growth { padding: 28px 28px 24px; }
  .g-plot { height: 260px; }
  .g-val { font-size: 22px; }
  .w-team { grid-template-columns: .9fr 1.1fr; gap: 64px; }
  .w-faq { grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: start; }
  .w-faq .w-h2 { position: sticky; top: 96px; }
  .w-end-card { display: grid; grid-template-columns: 1.2fr .8fr; column-gap: 48px; align-items: center; padding: 64px; }
  .w-end-card h2 { grid-column: 1; }
  .w-end-card > p { grid-column: 1; margin-bottom: 0; }
  .w-end-card .w-btn { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .w-end-card .w-guar { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .v4-growth .g-bar, html.js .v4-growth .g-val { transition: none; }
}
