/* EyeDrive pro řidiče – varianta B (kokpit) pro Divi 4 Code Module.
   Vzhled 1:1 podle web_v2/index.html. Vše je pod #do-2611eyedrive-b kromě jediné výjimky níže.
   https://cdn.doctoroptic.cz/events/2611eyedriveB/ nahrazuje build.py absolutní adresou CDN. */

/* VÝJIMKA Z PRAVIDEL (Petr 30. 10. 2026): plná šířka se řeší v kódu, ne nastavením sekce a řádku v Divi.
   Týká se jen sekce a řádku, ve kterých leží tahle stránka (:has(#do-2611eyedrive-b)), nic jiného na webu.
   Dělá totéž, co by udělalo nastavení Divi: sekce bez odsazení, řádek přes celou šířku bez odsazení.
   Příznak important je nutný: globální CSS webu vnucuje řádkům na mobilu šířku 90 % také s important.
   Prohlížeče bez :has() (zhruba 2 %) dorovná main.js. */
.et_pb_section:has(#do-2611eyedrive-b) { padding-top: 0 !important; padding-bottom: 0 !important; }
.et_pb_row:has(#do-2611eyedrive-b) { width: 100% !important; max-width: none !important; padding: 0 !important; }

/* Montserrat jako ve V2 (dřív z Google Fonts), teď lokálně z CDN akce.
   Vlastní jméno rodiny, ať se nepřebije Montserrat, kterou používá hlavička a patička webu. */
@font-face { font-family: "do-montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://cdn.doctoroptic.cz/events/2611eyedriveB/fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "do-montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("https://cdn.doctoroptic.cz/events/2611eyedriveB/fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "do-montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("https://cdn.doctoroptic.cz/events/2611eyedriveB/fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "do-montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("https://cdn.doctoroptic.cz/events/2611eyedriveB/fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "do-montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("https://cdn.doctoroptic.cz/events/2611eyedriveB/fonts/montserrat-800.woff2") format("woff2"); }
@font-face { font-family: "do-montserrat"; font-style: normal; font-weight: 900; font-display: swap; src: url("https://cdn.doctoroptic.cz/events/2611eyedriveB/fonts/montserrat-900.woff2") format("woff2"); }

#do-2611eyedrive-b {
  --do-navy: #25428A; --do-mint: #00CC99; --do-yellow: #FFEA0A; --do-red: #DB0812; --do-sky: #16B9DC; --do-white: #fff;
  --do-bg: #07080c; --do-surface: #11141c; --do-line: rgba(255,255,255,.12);
  --do-text: #f2efea; --do-muted: #aab0bb;
  --do-ease: cubic-bezier(.16,1,.3,1);
  --do-pad: clamp(20px,5vw,72px);
  position: relative;
  width: 100%;
  font-family: "do-montserrat", "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
  background: var(--do-bg);
  color: var(--do-text);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Neutralizace globálních stylů Divi (odsazení odstavců, barvy nadpisů a odkazů, odrážky) */
#do-2611eyedrive-b, #do-2611eyedrive-b *, #do-2611eyedrive-b *::before, #do-2611eyedrive-b *::after { margin: 0; padding: 0; box-sizing: border-box; }
#do-2611eyedrive-b h1, #do-2611eyedrive-b h2, #do-2611eyedrive-b h3 { color: inherit; font-family: inherit; font-size: inherit; font-weight: 700; line-height: normal; letter-spacing: normal; text-transform: none; }
#do-2611eyedrive-b p, #do-2611eyedrive-b li, #do-2611eyedrive-b span, #do-2611eyedrive-b figcaption { font-family: inherit; }
#do-2611eyedrive-b a { text-decoration: none; color: inherit; }
#do-2611eyedrive-b img { display: block; max-width: 100%; }
#do-2611eyedrive-b ul { list-style: none; }
#do-2611eyedrive-b button { font-family: inherit; }
#do-2611eyedrive-b .do-sec, #do-2611eyedrive-b .do-hero { scroll-margin-top: 90px; }
/* Obsahová šířka jako ostré akční stránky DO (např. klip-on: 80 % obrazovky, max. 1920 px, na mobilu 90 %).
   Ve V2 byl strop 1300 px, na velkých monitorech pak obsah působil úzce. Na notebooku (1440 px) vychází stejně. */
#do-2611eyedrive-b .do-wrap { width: 80%; max-width: 1920px; margin: 0 auto; }
#do-2611eyedrive-b .do-nw { white-space: nowrap; }

/* HERO – kokpit, vlevo běžná skla, vpravo EyeDrive.
   Výška = obrazovka mínus hlavička webu (--do-hero-off dopočítá main.js), aby byl text nad ohybem jako ve V2. */
#do-2611eyedrive-b .do-hero { position: relative; height: 100vh; height: calc(100vh - var(--do-hero-off, 0px)); height: calc(100svh - var(--do-hero-off, 0px)); min-height: 560px; overflow: hidden; background: #000; }
#do-2611eyedrive-b .do-split { position: absolute; inset: 0; --x: 92%; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
#do-2611eyedrive-b .do-split picture, #do-2611eyedrive-b .do-split img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
#do-2611eyedrive-b .do-split img { object-fit: cover; object-position: 50% 40%; pointer-events: none; }
#do-2611eyedrive-b .do-img-good { clip-path: inset(0 0 0 var(--x)); -webkit-clip-path: inset(0 0 0 var(--x)); }
#do-2611eyedrive-b .do-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; clip-path: inset(0 calc(100% - var(--x)) 0 0); -webkit-clip-path: inset(0 calc(100% - var(--x)) 0 0); }
#do-2611eyedrive-b .do-divider { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: rgba(255,255,255,.92); box-shadow: 0 0 18px rgba(255,255,255,.45); pointer-events: none; }
#do-2611eyedrive-b .do-knob { position: absolute; top: 44%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; border: 0; background: #fff; color: var(--do-navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.45); pointer-events: auto; cursor: ew-resize; }
#do-2611eyedrive-b .do-knob:focus-visible { outline: 3px solid var(--do-sky); outline-offset: 3px; }
#do-2611eyedrive-b .do-knob::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: do-ping 2.2s var(--do-ease) 2.4s 3; }
@keyframes do-ping { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }
/* štítky byly ve V2 pod vlastní průhlednou lištou (96 px); tu na webu nahrazuje hlavička Divi nad herem */
#do-2611eyedrive-b .do-tag { position: absolute; top: 32px; z-index: 3; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 9px 16px; border-radius: 50px; line-height: 1; pointer-events: none; transition: opacity .3s; }
#do-2611eyedrive-b .do-tag-l { left: max(4vw,20px); background: rgba(10,12,18,.78); border: 1px solid rgba(255,255,255,.4); color: #fff; }
#do-2611eyedrive-b .do-tag-r { right: max(4vw,20px); background: var(--do-mint); color: #06291f; }
#do-2611eyedrive-b .do-hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.55) 26%,rgba(0,0,0,0) 52%); }
/* text hera začíná na stejné svislici jako obsah sekcí pod ním (80 % / max. 1920 px), na mobilu ho přepíše media query */
#do-2611eyedrive-b .do-hero-txt { position: absolute; left: var(--do-pad); left: max(var(--do-pad), calc((100% - min(80%, 1920px)) / 2)); bottom: 7vh; max-width: 640px; z-index: 4; }
#do-2611eyedrive-b .do-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--do-mint); }
#do-2611eyedrive-b .do-hero h1 { margin-top: 14px; font-weight: 800; font-size: clamp(2.1rem,4.4vw,3.9rem); line-height: 1.02; letter-spacing: -.025em; }
#do-2611eyedrive-b .do-hero h1 em { font-style: normal; color: var(--do-mint); }
#do-2611eyedrive-b .do-hero p { margin-top: 16px; font-size: clamp(1rem,1.3vw,1.14rem); font-weight: 500; line-height: 1.55; color: rgba(255,255,255,.82); max-width: 520px; }
#do-2611eyedrive-b .do-hero p.do-kratke { display: none; }
#do-2611eyedrive-b .do-hero .do-acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
#do-2611eyedrive-b .do-badge { display: inline-flex; align-items: baseline; gap: 8px; background: var(--do-yellow); color: var(--do-navy); font-weight: 900; padding: 10px 18px; border-radius: 12px; transform: rotate(-2deg); }
#do-2611eyedrive-b .do-badge b { font-size: 1.5rem; line-height: 1; }
#do-2611eyedrive-b .do-badge span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* tlačítka */
#do-2611eyedrive-b .do-btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding: 18px 30px; border-radius: 50px; transition: transform .3s var(--do-ease), border-color .3s, color .3s; line-height: 1.1; text-align: center; }
#do-2611eyedrive-b .do-btn:focus-visible { outline: 3px solid var(--do-sky); outline-offset: 3px; }
#do-2611eyedrive-b .do-btn-g { background: var(--do-mint); color: #06291f; }
#do-2611eyedrive-b .do-btn-g:hover { transform: translateY(-3px); color: #06291f; }
#do-2611eyedrive-b .do-btn-line { border: 2px solid rgba(255,255,255,.35); color: #fff; padding: 16px 28px; }
#do-2611eyedrive-b .do-btn-line:hover { border-color: var(--do-mint); color: var(--do-mint); }

/* sekce */
#do-2611eyedrive-b .do-sec { padding: clamp(72px,10vw,130px) 0; }
#do-2611eyedrive-b .do-sec h2 { margin-top: 14px; font-weight: 800; font-size: clamp(1.9rem,4vw,3.2rem); line-height: 1.05; letter-spacing: -.02em; }
#do-2611eyedrive-b .do-sec h2 em { font-style: normal; color: var(--do-mint); }
#do-2611eyedrive-b .do-sec h2 .do-y { color: var(--do-yellow); }
#do-2611eyedrive-b .do-lead { margin-top: 18px; font-size: clamp(1rem,1.3vw,1.14rem); line-height: 1.65; color: var(--do-muted); max-width: 640px; }
#do-2611eyedrive-b .do-inlinecta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

#do-2611eyedrive-b .do-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 46px; }
#do-2611eyedrive-b .do-card { background: var(--do-surface); border: 1px solid var(--do-line); border-radius: 20px; padding: 28px 26px; }
#do-2611eyedrive-b .do-card .do-ic { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(0,204,153,.12); color: var(--do-mint); margin-bottom: 18px; }
#do-2611eyedrive-b .do-card h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
#do-2611eyedrive-b .do-card p { margin-top: 10px; font-size: .98rem; line-height: 1.6; color: var(--do-muted); }

/* srovnání skel */
#do-2611eyedrive-b .do-compare { background: #000; }
#do-2611eyedrive-b .do-compare .do-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px,5vw,70px); align-items: center; }
#do-2611eyedrive-b .do-compare figure { border-radius: 22px; overflow: hidden; border: 1px solid var(--do-line); }
#do-2611eyedrive-b .do-compare figure img { width: 100%; height: auto; }
#do-2611eyedrive-b .do-compare figcaption { font-size: .8rem; color: var(--do-muted); padding: 12px 16px; background: var(--do-surface); }

/* technologie */
#do-2611eyedrive-b .do-tech .do-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px,5vw,70px); align-items: center; }
#do-2611eyedrive-b .do-tech .do-ph { border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; }
#do-2611eyedrive-b .do-tech .do-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
#do-2611eyedrive-b .do-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 30px; }
#do-2611eyedrive-b .do-stats div { border: 1px solid var(--do-line); border-radius: 16px; padding: 18px 16px; background: var(--do-surface); }
#do-2611eyedrive-b .do-stats b { display: block; font-size: clamp(1.4rem,2.2vw,2rem); font-weight: 900; line-height: 1; color: var(--do-yellow); white-space: nowrap; }
#do-2611eyedrive-b .do-stats span { display: block; margin-top: 8px; font-size: .82rem; font-weight: 600; line-height: 1.45; color: rgba(255,255,255,.8); }
#do-2611eyedrive-b .do-src { margin-top: 12px; font-size: .74rem; color: rgba(255,255,255,.45); }

/* pro koho */
#do-2611eyedrive-b .do-who { background: linear-gradient(180deg,var(--do-bg),#0b0f1c); }
#do-2611eyedrive-b .do-who .do-card .do-ic { background: rgba(255,234,10,.12); color: var(--do-yellow); }

/* nabídka */
#do-2611eyedrive-b .do-offer { background: var(--do-navy); position: relative; overflow: hidden; }
#do-2611eyedrive-b .do-offer .do-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,70px); align-items: center; }
#do-2611eyedrive-b .do-offer .do-ph { border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
#do-2611eyedrive-b .do-offer .do-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
#do-2611eyedrive-b .do-offer .do-kicker { color: var(--do-yellow); }
#do-2611eyedrive-b .do-big { display: inline-flex; align-items: flex-end; gap: 10px; margin-top: 24px; background: var(--do-yellow); color: var(--do-navy); padding: 18px 30px; border-radius: 18px; transform: rotate(-1.5deg); box-shadow: 0 24px 50px rgba(0,0,0,.25); }
#do-2611eyedrive-b .do-big .do-n { font-size: clamp(3rem,8vw,5rem); font-weight: 900; line-height: .82; }
#do-2611eyedrive-b .do-big .do-t { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; line-height: 1.3; }
#do-2611eyedrive-b .do-ticks { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
#do-2611eyedrive-b .do-ticks li { display: flex; gap: 12px; font-size: 1.02rem; font-weight: 600; line-height: 1.5; color: rgba(255,255,255,.92); }
#do-2611eyedrive-b .do-ticks li::before { content: "✓"; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--do-mint); color: #06291f; font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

/* kroky */
#do-2611eyedrive-b .do-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 46px; counter-reset: do-s; }
#do-2611eyedrive-b .do-step { background: var(--do-surface); border: 1px solid var(--do-line); border-radius: 20px; padding: 28px 26px; counter-increment: do-s; }
#do-2611eyedrive-b .do-step::before { content: counter(do-s); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--do-mint); color: #06291f; font-weight: 900; font-size: 1.1rem; margin-bottom: 18px; }
#do-2611eyedrive-b .do-step h3 { font-size: 1.12rem; font-weight: 800; }
#do-2611eyedrive-b .do-step p { margin-top: 8px; font-size: .96rem; line-height: 1.6; color: var(--do-muted); }

/* finále */
#do-2611eyedrive-b .do-final { text-align: center; background: radial-gradient(ellipse at 50% 0%,rgba(0,204,153,.16),transparent 60%),var(--do-bg); }
#do-2611eyedrive-b .do-final h2 { max-width: 820px; margin-left: auto; margin-right: auto; }
#do-2611eyedrive-b .do-final .do-lead { margin-left: auto; margin-right: auto; }
#do-2611eyedrive-b .do-final .do-inlinecta { justify-content: center; }
#do-2611eyedrive-b .do-trust { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
#do-2611eyedrive-b .do-trust div { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.84); display: flex; align-items: center; gap: 9px; }
#do-2611eyedrive-b .do-trust div::before { content: "✓"; color: var(--do-mint); font-weight: 900; }
#do-2611eyedrive-b .do-finep { margin: 28px auto 0; max-width: 680px; font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.6); line-height: 1.65; }
#do-2611eyedrive-b .do-finep b { color: rgba(255,255,255,.86); }

/* sticky lišta na mobilu */
#do-2611eyedrive-b .do-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; display: none; gap: 10px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.92); border-top: 1px solid rgba(255,255,255,.14); transform: translateY(110%); transition: transform .35s var(--do-ease); }
#do-2611eyedrive-b .do-sticky.do-on { transform: translateY(0); }
#do-2611eyedrive-b .do-sticky .do-txt { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 800; color: #fff; line-height: 1.25; }
#do-2611eyedrive-b .do-sticky .do-txt em { display: block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--do-muted); }
#do-2611eyedrive-b .do-sticky .do-go { flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 13px 16px; border-radius: 50px; background: var(--do-mint); color: #06291f; white-space: nowrap; }
#do-2611eyedrive-b .do-sticky .do-tel { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--do-mint); display: flex; align-items: center; justify-content: center; }

/* náběh prvků – skrývá se jen když běží main.js, jinak by bez JS zůstal obsah neviditelný */
#do-2611eyedrive-b.do-js .do-rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--do-ease), transform .8s var(--do-ease); }
#do-2611eyedrive-b.do-js .do-rv.do-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  #do-2611eyedrive-b .do-compare .do-grid, #do-2611eyedrive-b .do-tech .do-grid, #do-2611eyedrive-b .do-offer .do-grid { grid-template-columns: 1fr; }
  #do-2611eyedrive-b .do-cards, #do-2611eyedrive-b .do-steps { grid-template-columns: 1fr; }
  #do-2611eyedrive-b .do-tech .do-ph { aspect-ratio: 16/11; }
  #do-2611eyedrive-b .do-offer .do-ph { aspect-ratio: 16/12; order: -1; }
}
@media (max-width: 767px) {
  #do-2611eyedrive-b .do-wrap { width: 90%; }
}
@media (max-width: 860px) {
  #do-2611eyedrive-b .do-sticky { display: flex; }
  #do-2611eyedrive-b .do-tag { top: 18px; font-size: 10px; padding: 8px 12px; }
  #do-2611eyedrive-b .do-hero-txt { left: 20px; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); }
  #do-2611eyedrive-b .do-hero p.do-dlouhe { display: none; }
  #do-2611eyedrive-b .do-hero p.do-kratke { display: block; }
  #do-2611eyedrive-b .do-hero h1 { font-size: 1.85rem; }
  #do-2611eyedrive-b .do-hero .do-acts .do-btn-line { display: none; }
  /* hero je o hlavičku webu nižší než ve V2; na nízkých telefonech by úchyt padl do nadpisu, proto max. 400 px nad spodkem */
  #do-2611eyedrive-b .do-knob { top: 40%; top: min(40%, calc(100% - 400px)); width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  #do-2611eyedrive-b .do-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #do-2611eyedrive-b.do-js .do-rv { opacity: 1; transform: none; transition: none; }
  #do-2611eyedrive-b .do-knob::after { animation: none; }
}
