/* ============================================================
   JETPARTNER — podstránka Deye
   Staví na style.css a technika.css (tokeny, .sch, .tk-schema, .tk-cta, .plat).
   1 základ · 2 úvod · 4 pro koho · 5 schéma · 6 sestavy
   7 provoz · 8 srovnání · 9 rozbalování · 9b fotky · 10 responzivita · 11 reduced motion
   Závazné: žádné zaoblené rohy.
   ============================================================ */

/* ---------- 1) ZÁKLAD ---------- */
/* text na oranžové: tmavý, kontrast 5:1 a víc (bílá má jen 3,4:1) */
.page-dy .pill-orange, .page-dy .pill-line-orange:hover { color: var(--cell); }
.dy-sec > .rail-grid { padding-top: 96px; padding-bottom: 104px; }
.dy-sec .rail { padding-top: 22px; }
.dy-sec h3 { font-family: var(--f-disp); font-weight: 500; font-size: 20px; line-height: 1.25; }
.nw { white-space: nowrap; }
.page-dy .tk-cta .contact-row { gap: 20px 32px; }
/* odkazy v textu: dotyková plocha aspoň 44 px, vzhled beze změny */
.dy-sec .textlink, .page-dy .contact-lines a { position: relative; }
.dy-sec .textlink::after, .page-dy .contact-lines a::after { content: ""; position: absolute; inset: -10px 0; }
.dy-sec .textlink:hover { color: var(--ink); border-bottom-width: 2px; padding-bottom: 1px; }

/* ---------- 2) ÚVOD ---------- */
.dy-hero { background: var(--cell); color: #fff; }
.dy-hero-in {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center;
  padding-top: 72px; padding-bottom: 80px;
}
.dy-h1 {
  font-family: var(--f-disp); font-weight: 300;
  font-size: clamp(36px, 4.7vw, 68px); line-height: 1.04; letter-spacing: -.02em; max-width: 15ch;
}
.dy-lead { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.8); max-width: 50ch; margin-top: 24px; }
.dy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- 4) PRO KOHO ---------- */
.dy-when { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line-l); }
.dy-when li { padding: 24px 28px 36px 0; }
.dy-when li + li { padding-left: 28px; border-left: 1px solid var(--line-l); }
.dy-when p, .dy-else p { color: var(--ink-2); margin-top: 10px; max-width: 56ch; }
.dy-else {
  display: grid; grid-template-columns: 1fr 2fr; border-top: 1px solid var(--ink); padding-top: 24px;
}
.dy-else > div { padding-left: 28px; }
.dy-else p { margin-top: 0; }

/* ---------- 5) SCHÉMA ---------- */
/* .flows .fl má ve style.css opacity: 0 a zapíná ho main.js, který tu není */
.page-dy .sch .flows .fl { opacity: 1; }
/* oba směry: čárky jdou tam a zpět; směr nesou i šipky */
.page-dy .sch .flows .fl-both { animation: dyBoth 4.4s ease-in-out infinite alternate; }
@keyframes dyBoth { from { stroke-dashoffset: 36; } to { stroke-dashoffset: -36; } }
.dy-schema .ar { fill: var(--orange); }
.dy-schema .meter { fill: var(--cell); stroke: var(--alu); stroke-width: 1.5; }
.dy-schema .sch .nd-main .box { stroke: var(--orange); stroke-width: 1.6; }
.dy-schema .sch .data .plan { stroke-dasharray: 2 8; }
.dy-schema .sch .nd-plan .box { fill: none; stroke-dasharray: 5 5; }
.dy-schema figcaption { font-size: 13px; color: var(--alu); margin-top: 20px; }
.dy-notes { border-left: 1px solid var(--line-d); padding: 8px 0 0 28px; }
.dy-notes div + div { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-d); }
.dy-notes dt { font-family: var(--f-disp); font-weight: 500; font-size: 18px; color: #fff; }
.dy-notes dd { font-size: 15px; color: var(--alu); margin-top: 6px; }

/* ---------- 6) SESTAVY ---------- */
.dy-sets { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; border-top: 1px solid var(--line-l); align-items: start; }
.dy-set { min-width: 0; padding: 32px 40px 0 0; }
.dy-set + .dy-set { padding: 32px 0 0 40px; border-left: 1px solid var(--line-l); }
.dy-set h3 { font-weight: 400; font-size: clamp(25px, 2.2vw, 32px); margin-top: 28px; }
.dy-models { color: var(--ink-2); margin-top: 8px; min-height: 3.1em; overflow-wrap: anywhere; }
.dy-key { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; border-top: 1px solid var(--line-l); padding-top: 16px; }
.dy-key dt { font-size: 14px; color: var(--ink-2); }
.dy-key dd { font-family: var(--f-disp); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; margin-top: 4px; }
.dy-text { margin: 20px 0 24px; max-width: 54ch; min-height: 3.1em; }
.dy-det h4 { font-family: var(--f-disp); font-weight: 500; font-size: 16px; padding-top: 12px; }
.dy-par { padding-bottom: 20px; }
.dy-par div { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line-l); font-size: 15px; }
.dy-par dt { color: var(--ink-2); }
.dy-par dt [lang] { display: block; font-size: 13px; }

/* ---------- 7) PROVOZ ---------- */
.dy-run { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
.dy-run p { margin-top: 10px; color: var(--ink-2); max-width: 64ch; }

/* ---------- 8) SROVNÁNÍ ---------- */
.dy-cmp { width: 100%; border-collapse: collapse; margin-top: 48px; text-align: left; table-layout: fixed; }
.dy-cmp th, .dy-cmp td { padding: 18px 28px 18px 0; border-bottom: 1px solid var(--line-l); vertical-align: top; font-weight: 400; }
.dy-cmp thead th { font-family: var(--f-disp); font-weight: 500; font-size: 22px; border-bottom-color: var(--ink); }
.dy-cmp thead td { border-bottom-color: var(--ink); }
.dy-cmp tbody th { width: 24%; color: var(--ink-2); }

/* ---------- 9) ROZBALOVÁNÍ ---------- */
.dy-det { border-top: 1px solid var(--line-l); }
.dy-set .dy-det, .dy-faq .dy-det:last-child { border-bottom: 1px solid var(--line-l); }
.dy-det summary {
  position: relative; display: flex; align-items: center; min-height: 56px; padding: 14px 44px 14px 0;
  list-style: none; cursor: pointer; font-weight: 500;
}
.dy-det summary:focus-visible { outline-offset: 0; }
.dy-det summary::-webkit-details-marker { display: none; }
.dy-det summary::before, .dy-det summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--ink);
}
.dy-det summary::before { transform: rotate(90deg); }
.dy-det[open] summary::before { display: none; }
.dy-det summary:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dy-faq { margin-top: 48px; max-width: 900px; }
.dy-faq summary { font-family: var(--f-disp); font-size: 19px; line-height: 1.3; }
.dy-faq p { color: var(--ink-2); max-width: 66ch; padding: 0 44px 24px 0; }

/* ---------- 9b) PRODUKTOVÉ FOTKY (media/deye/, výřezy bez pozadí) ---------- */
.dy-hero-foto { position: relative; height: clamp(380px, 36vw, 540px); background: radial-gradient(56% 52% at 52% 52%, rgba(150,168,184,.26), rgba(15,25,35,0) 74%); }
.dy-hero-foto img { position: absolute; width: auto; filter: drop-shadow(0 26px 30px rgba(0,0,0,.45)); }
.dy-hf-inv { height: 70%; left: 4%; top: 2%; }
.dy-hf-bat { height: 88%; right: 8%; bottom: 0; }
.dy-stage { height: clamp(340px, 30vw, 440px); }
.dy-stage img { inset: auto; margin: 0; max-width: none; max-height: none; filter: drop-shadow(0 18px 20px rgba(15,25,35,.2)); }
.dy-stage .dy-s-inv { height: 64%; left: 9%; top: 6%; }
.dy-stage .dy-s-bat { height: 86%; right: 12%; bottom: 12px; }
.dy-stage .dy-s-bat-w { height: 74%; right: 8%; }
.dy-bats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; border-top: 1px solid var(--line-l); }
.dy-bats li { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 6px 0; font-size: 14.5px; font-weight: 500; }
.dy-bats li + li { border-left: 1px solid var(--line-l); }
.dy-bats img { height: 120px; width: auto; filter: drop-shadow(0 10px 12px rgba(15,25,35,.18)); }

/* ---------- 10) RESPONZIVITA ---------- */
@media (max-width: 1180px) {
  .dy-hero-in { gap: 40px; }
  .dy-set { padding-right: 28px; }
  .dy-set + .dy-set { padding-left: 28px; }
  .dy-run { gap: 40px; }
}
@media (max-width: 900px) {
  .dy-sec > .rail-grid { padding-top: 56px; padding-bottom: 64px; }
  .dy-sec .rail { padding-top: 0; }
  .dy-hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 32px; padding-bottom: 36px; }
  .dy-h1 { font-size: clamp(34px, 9.4vw, 52px); }
  .dy-lead { font-size: 16px; margin-top: 18px; }
  .dy-actions { margin-top: 24px; }
  .dy-hero-foto { height: 340px; max-width: 360px; width: 100%; margin: 0 auto; }
  .dy-stage { height: clamp(300px, 84vw, 400px); margin-bottom: 0; }
  .dy-bats li { font-size: 13px; }
  .dy-bats img { height: 96px; }
  .dy-when, .dy-else, .dy-sets, .dy-run { grid-template-columns: minmax(0, 1fr); }
  .dy-when { margin-top: 32px; }
  .dy-when li, .dy-when li + li { padding: 20px 0; border-left: 0; }
  .dy-when li + li { border-top: 1px solid var(--line-l); }
  .dy-else > div { padding: 10px 0 0; }
  .dy-notes { border-left: 0; padding: 28px 0 0; }
  .dy-notes div + div { margin-top: 16px; padding-top: 16px; }
  .dy-sets { margin-top: 36px; }
  .dy-set { padding: 24px 0 0; }
  .dy-set + .dy-set { padding: 40px 0 0; margin-top: 48px; border-left: 0; border-top: 1px solid var(--line-l); }
  .dy-models, .dy-text { min-height: 0; }
  .dy-run { gap: 36px; margin-top: 32px; }
  .dy-faq { margin-top: 32px; }
  .dy-faq p { padding-right: 0; }
}
@media (max-width: 700px) {
  .dy-cmp, .dy-cmp tbody, .dy-cmp tr, .dy-cmp tbody th, .dy-cmp tbody td { display: block; width: auto; }
  .dy-cmp { margin-top: 32px; }
  .dy-cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dy-cmp tbody tr { padding: 20px 0; border-top: 1px solid var(--line-l); }
  .dy-cmp tbody tr:last-child { border-bottom: 1px solid var(--line-l); }
  .dy-cmp tbody th { padding: 0; border: 0; font-family: var(--f-disp); font-weight: 500; font-size: 18px; color: var(--ink); }
  .dy-cmp tbody td { position: relative; padding: 10px 0 0 76px; border: 0; }
  .dy-cmp tbody td::before { content: attr(data-l); position: absolute; left: 0; color: var(--ink-2); }
}

/* ---------- 11) REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-dy .sch .flows .fl, .page-dy .sch .flows .fl-both { animation: none; }
}
