/* O, TĘDY. / Plan przed wyceną. */
.ot-plan { --plan-rule:#bdcfe9; --plan-space:clamp(3.25rem,7vw,6.75rem); }
.ot-plan h1,.ot-plan h2,.ot-plan h3 { font-family:var(--display); }
.ot-plan h2,.ot-plan h3 { margin:0; }
.ot-plan p { margin:0; }
.ot-plan a:focus-visible,.ot-plan-promo:focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
.ot-plan-hero a:focus-visible,.ot-plan-close a:focus-visible { outline-color:#fff; }
.ot-plan-section[id] { scroll-margin-top:1.25rem; }

.ot-plan-hero { color:#fff; background:var(--blue); padding:clamp(1.4rem,2.8vw,2.7rem) 0 clamp(2.75rem,6.2vw,6rem); }
.ot-plan-hero-grid { display:grid; grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr); align-items:center; gap:clamp(2rem,5.2vw,5.5rem); }
.ot-plan .ot-plan-tag { color:var(--blue); font-weight:780; letter-spacing:.12em; text-transform:uppercase; font-size:var(--text-meta); line-height:1.45; margin-bottom:1rem; }
.ot-plan-hero .ot-plan-tag,.ot-plan-close .ot-plan-tag { color:var(--sky); }
.ot-plan-hero .ot-plan-tag { display:flex; align-items:center; gap:.75rem; }
.ot-plan-hero .ot-plan-tag::before { content:""; width:1.5rem; height:1px; background:currentColor; flex:none; }
.ot-plan-hero h1 { color:#fff; margin:0; font-size:clamp(2.65rem,6vw,5.75rem); font-weight:900; line-height:.99; letter-spacing:-.053em; word-spacing:.015em; text-wrap:balance; }
.ot-plan-hero h1 span,.ot-plan-board h2 span { color:var(--sky-bright); }
.ot-plan-hero .ot-plan-intro { max-width:34rem; margin:1.5rem 0 1.65rem; color:#ecf5ff; font-size:clamp(1.05rem,1.5vw,1.25rem); line-height:1.55; }
.ot-plan-button { display:inline-flex; justify-content:space-between; align-items:center; gap:.9rem; width:fit-content; min-height:48px; padding:.72rem 1.18rem; border-radius:999px; background:#fff; color:var(--blue-deep); font-size:var(--text-ui); font-weight:770; line-height:1.4; }
.ot-plan-button:hover { background:var(--sky); }
.ot-plan-button > span { flex:none; }

.ot-plan-board { min-width:0; color:#fff; border:1px solid #87a9d7; background:var(--blue-night); }
.ot-plan-board-head { display:flex; justify-content:space-between; align-items:center; gap:.6rem; padding:.65rem clamp(.85rem,2vw,1.6rem); border-bottom:1px solid #6386b8; color:var(--sky); font-weight:760; font-size:.72rem; text-transform:uppercase; letter-spacing:.12em; }
.ot-plan-board-inner { padding:clamp(1rem,2.65vw,2.35rem); background-image:linear-gradient(#7292c329 1px,transparent 1px),linear-gradient(90deg,#7292c329 1px,transparent 1px); background-size:22px 22px; }
.ot-plan-board h2 { color:white; font-size:clamp(1.8rem,3.1vw,3.2rem); font-weight:840; letter-spacing:-.055em; line-height:1.04; }
.ot-plan-board p { margin:.65rem 0 1.15rem; color:var(--sky); font-size:var(--text-help); }
.ot-plan-board ol { list-style:none; margin:0; padding:0; border-top:1px solid #6386b8; }
.ot-plan-board li { display:grid; grid-template-columns:1.55rem minmax(5.6rem,.72fr) minmax(0,1.28fr); align-items:center; gap:.5rem; padding:.62rem 0; border-bottom:1px solid #6386b8; }
.ot-plan-board li > span { color:var(--sky-bright); font-size:.75rem; font-weight:760; font-variant-numeric:tabular-nums; }
.ot-plan-board li strong { font-size:.98rem; line-height:1.3; }
.ot-plan-board li small { color:#e1efff; font-size:.83rem; line-height:1.45; }
.ot-plan-board-action { display:flex; align-items:center; justify-content:space-between; gap:.75rem; min-height:46px; margin:.4rem 0 -.55rem; color:#fff; font-size:var(--text-help); font-weight:720; }
.ot-plan-board-action:hover { text-decoration:underline; text-underline-offset:4px; }

.ot-plan-index { border-bottom:1px solid var(--plan-rule); background:#fff; }
.ot-plan-index .container { display:flex; flex-wrap:wrap; gap:0 clamp(1.25rem,5vw,5rem); }
.ot-plan-index a { display:inline-flex; align-items:center; gap:.55rem; min-height:51px; color:var(--ink); font-size:var(--text-help); font-weight:750; }
.ot-plan-index a:hover { text-decoration:underline; text-underline-offset:4px; }
.ot-plan-index a span { color:var(--blue); font-size:.75rem; }
.ot-plan-section { padding-block:var(--plan-space); }
.ot-plan-section h2,.ot-plan-close h2 { font-size:clamp(2rem,4.3vw,4.15rem); font-weight:840; line-height:1.03; letter-spacing:-.058em; text-wrap:balance; }
.ot-plan-section h2 span { color:var(--blue); }
.ot-plan-work { display:grid; grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr); gap:clamp(2rem,7vw,7rem); align-items:start; }
.ot-plan-chapter-intro > p:last-child,.ot-plan-example-head p:last-child { max-width:34rem; margin-top:1rem; color:var(--subtle); line-height:1.6; }
.ot-plan-chapters { list-style:none; margin:0; padding:0; border-top:1px solid var(--plan-rule); }
.ot-plan-chapters > li { display:grid; grid-template-columns:clamp(2.1rem,4vw,3.7rem) minmax(0,1fr); gap:.75rem; border-bottom:1px solid var(--plan-rule); padding-block:1.25rem 1.4rem; }
.ot-plan-step-number { color:var(--blue); font-size:clamp(1.12rem,2.1vw,1.85rem); line-height:1.2; font-weight:770; letter-spacing:-.05em; }
.ot-plan-chapters h3 { font-size:clamp(1.3rem,2.25vw,2rem); letter-spacing:-.042em; font-weight:790; }
.ot-plan-chapters p { color:var(--subtle); margin:.45rem 0 .55rem; font-size:var(--text-card); line-height:1.65; }
.ot-plan-links { display:flex; flex-wrap:wrap; column-gap:1.5rem; }
.ot-plan-text-link { display:inline-flex; align-items:center; gap:.42rem; min-height:44px; color:var(--blue); font-size:var(--text-help); line-height:1.45; font-weight:760; text-decoration:underline; text-underline-offset:4px; }
.ot-plan-text-link span { flex:none; }

.ot-plan-example { background:var(--paper); border-block:1px solid var(--plan-rule); }
.ot-plan-example-head,.ot-plan-library-head { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:1.3rem 2rem; }
.ot-plan-example .ot-plan-button { background:var(--blue); color:#fff; }
.ot-plan-example .ot-plan-button:hover { background:var(--blue-deep); }
.ot-plan-spec { margin-top:2rem; border:1px solid var(--plan-rule); background:#fff; }
.ot-plan-spec > p { padding:.8rem 1.15rem; border-bottom:1px solid var(--plan-rule); color:var(--blue); font-size:.75rem; font-weight:770; line-height:1.35; letter-spacing:.1em; text-transform:uppercase; }
.ot-plan-spec dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; }
.ot-plan-spec dl > div { padding:clamp(.85rem,2.2vw,1.8rem); }
.ot-plan-spec dl > div + div { border-left:1px solid var(--plan-rule); }
.ot-plan-spec dt { display:flex; gap:.55rem; align-items:baseline; font-size:clamp(1.05rem,2vw,1.45rem); font-weight:800; line-height:1.25; }
.ot-plan-spec dt span { color:var(--blue); font-size:.75rem; }
.ot-plan-spec dd { margin:.6rem 0 0; color:var(--subtle); font-size:var(--text-card); line-height:1.5; }

.ot-plan-rebuild { padding-block:2.65rem; }
.ot-plan-rebuild .container { display:grid; grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr); gap:1rem clamp(2rem,7vw,7rem); }
.ot-plan-rebuild h2 { font-size:clamp(1.65rem,3.5vw,2.9rem); }
.ot-plan-rebuild p:last-of-type { color:var(--subtle); }
.ot-plan-library { background:#fff; border-top:1px solid var(--plan-rule); }
.ot-plan-library-list { list-style:none; padding:0; margin:1.65rem 0 0; border-top:1px solid var(--plan-rule); }
.ot-plan-library-list li { border-bottom:1px solid var(--plan-rule); }
.ot-plan-library-list a { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1rem 0; min-height:70px; }
.ot-plan-library-list a:hover h3 { color:var(--blue); text-decoration:underline; text-underline-offset:4px; }
.ot-plan-library-list a > span { color:var(--blue); flex:none; font-weight:800; }
.ot-plan-library-list small { font-size:.73rem; text-transform:uppercase; letter-spacing:.08em; color:var(--blue); font-weight:760; }
.ot-plan-library-list h3 { font-size:clamp(1.2rem,2.15vw,1.85rem); letter-spacing:-.035em; }
.ot-plan-library-list p { color:var(--subtle); font-size:var(--text-card); margin-top:.35rem; }
.ot-plan-pages { display:flex; flex-wrap:wrap; align-items:center; gap:1.1rem; padding-top:1rem; }
.ot-plan-pages a { display:inline-flex; align-items:center; min-height:44px; color:var(--blue); font-weight:750; text-decoration:underline; }
.ot-plan-close { color:#fff; background:var(--blue); padding-block:clamp(2.6rem,5vw,4.5rem); }
.ot-plan-close .container { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:1.3rem 2rem; }

.ot-plan-promo { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.2rem 1rem; align-items:center; padding:.9rem 1rem; margin:0 0 1.5rem; border:1px solid #bfd4f0; background:#eef6ff; color:var(--ink); }
.ot-plan-promo small { display:block; color:var(--blue); font-size:.75rem; font-weight:760; text-transform:uppercase; letter-spacing:.09em; }
.ot-plan-promo strong { display:block; font-family:var(--display); font-weight:800; font-size:clamp(1.15rem,2.1vw,1.65rem); line-height:1.25; }
.ot-plan-promo > span:last-child { color:var(--blue); font-weight:770; }
.ot-plan-promo:hover strong { text-decoration:underline; text-underline-offset:4px; }

@media (max-width:890px) {
  .ot-plan-hero-grid,.ot-plan-work,.ot-plan-rebuild .container { grid-template-columns:minmax(0,1fr); }
  .ot-plan-hero h1 { max-width:48rem; }
}
@media (max-width:520px) {
  .ot-plan-hero h1 { font-size:clamp(2.4rem,10.8vw,3.45rem); }
  .ot-plan-board li { grid-template-columns:1.3rem minmax(5.2rem,.85fr) minmax(0,1.15fr); gap:.35rem; }
  .ot-plan-board li strong { font-size:.88rem; }
  .ot-plan-index .container { gap:0 .9rem; }
  .ot-plan-index a { min-height:44px; }
  .ot-plan-spec dl { grid-template-columns:minmax(0,1fr); }
  .ot-plan-spec dl > div + div { border-left:0; border-top:1px solid var(--plan-rule); }
  .ot-plan-library-head .ot-plan-text-link { margin-top:-.6rem; }
}


.ot-plan-promos { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,23rem),1fr)); gap:.75rem; margin-bottom:1.5rem; }
.ot-plan-promos .ot-plan-promo { margin:0; }
