/* EduŁódź – strona główna */
.edl-home { overflow-x: hidden; }
.edl-home .container { box-sizing: border-box; }
.edl-sec { padding: 3.2rem 0; }
.edl-h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin: 0 0 .5rem; color: var(--edl-board-dark); }
.edl-sub { color: var(--edl-muted); margin: 0 0 1.4rem; }
.edl-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--edl-crayon); margin: 0 0 .6rem; }
.edl-small { font-size: .88rem; color: var(--edl-muted); }
.edl-mark { background: linear-gradient(transparent 58%, var(--edl-marker) 58%, var(--edl-marker) 92%, transparent 92%); padding: 0 .1em; }
.edl-tag { font-size: .78rem; font-weight: 700; color: var(--edl-crayon); text-transform: uppercase; letter-spacing: .05em; margin: .6rem 0 .2rem; }
.edl-more a { font-weight: 700; color: var(--edl-board); }
.edl-noimg { display: block; width: 100%; height: 100%; min-height: 70px; background: var(--edl-grid) repeating-linear-gradient(0deg, transparent 0 19px, var(--edl-gridline) 19px 20px); }

/* 1. Hero – zeszyt w kratkę */
.edl-hero {
	padding: 3.2rem 0 3.6rem; position: relative;
	background-color: #fff;
	background-image: linear-gradient(var(--edl-gridline) 1px, transparent 1px), linear-gradient(90deg, var(--edl-gridline) 1px, transparent 1px);
	background-size: 22px 22px;
}
.edl-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.6rem; align-items: start; }
.edl-hero__page { position: relative; padding-left: 2rem; }
.edl-hero__page::before { content: ""; position: absolute; left: .55rem; top: -3.2rem; bottom: -3.6rem; width: 2px; background: var(--edl-margin); opacity: .75; }
.edl-hero__title { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; margin: 0 0 1rem; color: var(--edl-board-dark); }
.edl-hero__lead { font-size: 1.08rem; line-height: 1.6; max-width: 36rem; margin: 0 0 1.4rem; }
.edl-search { display: flex; max-width: 34rem; border: 2px solid var(--edl-board); border-radius: 3px; background: #fff; box-shadow: 4px 4px 0 var(--edl-board); }
.edl-search input { flex: 1; min-width: 0; border: 0; padding: .8rem .9rem; font: inherit; background: transparent; }
.edl-search input:focus { outline: none; }
.edl-search button { border: 0; background: var(--edl-board); color: #fff; font-weight: 700; padding: 0 1.3rem; cursor: pointer; font: inherit; font-weight: 700; }
.edl-hero__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 0; }
.edl-hero__tags a { font-size: .88rem; padding: .3rem .7rem; border: 1px dashed var(--edl-board); color: var(--edl-board); text-decoration: none; border-radius: 3px; background: #fff; }
.edl-hero__tags a:hover { background: var(--edl-marker); }

.edl-plan { background: var(--edl-board); color: #fff; border-radius: 3px; padding: 1.1rem 1.2rem 1.2rem; box-shadow: 6px 6px 0 var(--edl-crayon); border: 8px solid #7A5534; }
.edl-plan__head { display: flex; justify-content: space-between; font-family: var(--font-serif); font-size: 1.15rem; margin: 0 0 .5rem; padding-bottom: .4rem; border-bottom: 2px dashed rgba(255,255,255,.35); }
.edl-plan__head span:last-child { font-family: var(--font-sans); font-size: .75rem; opacity: .8; align-self: end; }
.edl-plan ol { list-style: none; margin: 0; padding: 0; }
.edl-plan li + li { border-top: 1px solid rgba(255,255,255,.14); }
.edl-plan a { display: grid; grid-template-columns: 1.6rem 3.1rem minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .5rem 0; color: #fff; text-decoration: none; }
.edl-plan a:hover strong { text-decoration: underline; text-decoration-color: var(--edl-marker); }
.edl-plan__no { font-weight: 700; color: var(--edl-marker); }
.edl-plan__h { font-size: .8rem; opacity: .8; font-variant-numeric: tabular-nums; }
.edl-plan__txt strong { display: block; font-size: .98rem; }
.edl-plan__txt small { display: block; font-size: .8rem; opacity: .78; }
.edl-plan__cnt { font-size: .8rem; background: rgba(255,255,255,.14); padding: .1rem .45rem; border-radius: 3px; }

/* 2. Ścieżka – linijka */
.edl-path { background: var(--edl-paper); }
.edl-ruler { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 2px solid var(--edl-board); background: #F3E6C4; border-radius: 3px; position: relative; }
.edl-ruler__step { border: 0; border-right: 1px solid rgba(30,77,64,.35); background: transparent; padding: 1.4rem .5rem .8rem; font: inherit; font-weight: 600; font-size: .9rem; color: var(--edl-board-dark); cursor: pointer; position: relative; text-align: center; }
.edl-ruler__step:last-child { border-right: 0; }
.edl-ruler__step::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: .7rem; background: var(--edl-board); }
.edl-ruler__cm { position: absolute; top: .1rem; left: .35rem; font-size: .7rem; opacity: .7; }
.edl-ruler__step.is-on, .edl-ruler__step:hover { background: var(--edl-board); color: #fff; }
.edl-ruler__step.is-on::before { background: #fff; }
.edl-ruler__panel { background: #fff; border: 1px solid var(--edl-line); border-top: 0; padding: 1.4rem 1.6rem; box-shadow: 4px 4px 0 var(--edl-gridline); }
.edl-ruler__panel h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
.edl-ruler__age { float: right; margin: 0 0 .5rem 1rem; font-size: .82rem; background: var(--edl-crayon-soft); color: var(--edl-crayon-dark); padding: .2rem .6rem; border-radius: 3px; font-weight: 700; }
.edl-ruler__tip { border-left: 3px solid var(--edl-crayon); padding-left: .8rem; }
.edl-ruler__links { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0 0; }

/* 3. Kalkulator */
.edl-calc { background: var(--edl-grid); }
.edl-calc__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.4rem; align-items: start; }
.edl-calc__rules { list-style: none; padding: 0; margin: 1rem 0; }
.edl-calc__rules li { padding: .35rem 0 .35rem 1.6rem; position: relative; border-bottom: 1px dashed var(--edl-gridline); }
.edl-calc__rules li::before { content: "✎"; position: absolute; left: 0; color: var(--edl-crayon); }
.edl-calc__form { background: #fff; border: 1px solid var(--edl-line); border-radius: 3px; padding: 1.2rem 1.3rem; box-shadow: 6px 6px 0 var(--edl-board); display: grid; gap: 1rem; }
.edl-calc__form fieldset { border: 0; border-top: 2px solid var(--edl-board); padding: .6rem 0 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; }
.edl-calc__form legend { font-family: var(--font-serif); font-weight: 700; color: var(--edl-board-dark); padding-right: .5rem; }
.edl-calc__form label { display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; color: var(--edl-muted); min-width: 0; }
.edl-calc__form input[type=number], .edl-calc__form select { width: 100%; box-sizing: border-box; padding: .5rem .6rem; border: 1px solid var(--edl-line); border-radius: 3px; font: inherit; color: var(--edl-ink); background: #fff; }
.edl-calc__form .edl-chk { flex-direction: row; align-items: center; gap: .5rem; color: var(--edl-ink); }
.edl-calc__out { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; background: var(--edl-board); color: #fff; padding: .9rem 1.1rem; border-radius: 3px; }
.edl-calc__sum { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.edl-calc__max { opacity: .8; }
.edl-calc__parts { width: 100%; font-size: .88rem; opacity: .9; }

/* 4. Świeże */
.edl-fresh__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.edl-fresh__lead .edl-fresh__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; border: 1px solid var(--edl-line); }
.edl-fresh__lead img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edl-fresh__lead h3 { font-size: 1.4rem; margin: .2rem 0 .5rem; }
.edl-fresh__lead h3 a { color: var(--edl-ink); text-decoration: none; }
.edl-fresh__list { list-style: none; margin: 0; padding: 0; }
.edl-fresh__list li + li { border-top: 1px dashed var(--edl-line); }
.edl-fresh__list a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: .9rem; align-items: center; padding: .7rem 0; color: var(--edl-ink); text-decoration: none; }
.edl-fresh__thumb { width: 84px; height: 64px; overflow: hidden; border-radius: 3px; display: block; }
.edl-fresh__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edl-fresh__list small { display: block; color: var(--edl-crayon); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.edl-fresh__list strong { font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.3; }
.edl-fresh__list a:hover strong { color: var(--edl-board); text-decoration: underline; }

/* 5. Tabela typów szkół */
.edl-types { background: #fff; }
.edl-table-wrap { overflow-x: auto; border: 2px solid var(--edl-board); border-radius: 3px; }
.edl-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.edl-table th, .edl-table td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--edl-line); vertical-align: top; }
.edl-table thead th { background: var(--edl-board); color: #fff; font-family: var(--font-serif); }
.edl-table tbody th { color: var(--edl-board-dark); font-family: var(--font-serif); background: var(--edl-grid); }

/* 6. Lista */
.edl-list { background: var(--edl-paper); }
.edl-list__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.edl-list__card { background: #fff; border: 1px solid var(--edl-line); border-radius: 3px; padding: 1rem 1.1rem 1rem 2.2rem; position: relative; background-image: repeating-linear-gradient(0deg, transparent 0 31px, var(--edl-gridline) 31px 32px); }
.edl-list__card::before { content: ""; position: absolute; left: 1.2rem; top: 0; bottom: 0; width: 2px; background: var(--edl-margin); opacity: .6; }
.edl-list__card h3 { margin: 0 0 .5rem; font-size: 1.12rem; color: var(--edl-crayon-dark); }
.edl-list__card ul { list-style: none; margin: 0; padding: 0; }
.edl-list__card li { padding: .3rem 0; line-height: 1.4; }
.edl-list__card label { display: flex; gap: .55rem; cursor: pointer; }
.edl-list__card input { accent-color: var(--edl-board); margin-top: .2rem; flex: 0 0 auto; }
.edl-list__card input:checked + * , .edl-list__card label:has(input:checked) { text-decoration: line-through; color: var(--edl-muted); }
.edl-list__actions { margin-top: 1rem; }

/* 7. Półka z działami */
.edl-shelf { background: #fff; }
.edl-shelf__row { list-style: none; margin: 0; padding: 0 0 12px; display: flex; flex-wrap: wrap; gap: .45rem; align-items: flex-end; border-bottom: 12px solid #7A5534; }
.edl-book a { display: flex; flex-direction: column; justify-content: space-between; align-items: center; width: 64px; height: 210px; padding: .6rem .2rem; box-sizing: border-box; color: #fff; text-decoration: none; border-radius: 3px 3px 0 0; box-shadow: inset -6px 0 0 rgba(0,0,0,.12); transition: transform .2s; }
.edl-book a:hover { transform: translateY(-8px); }
.edl-book__t { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-serif); font-weight: 700; font-size: .98rem; line-height: 1.1; }
.edl-book__n { font-size: .75rem; background: rgba(255,255,255,.2); padding: .1rem .35rem; border-radius: 3px; }
.edl-book--0 a { background: var(--edl-board); height: 220px; }
.edl-book--1 a { background: var(--edl-crayon-dark); height: 196px; }
.edl-book--2 a { background: #2F5D8A; height: 230px; }
.edl-book--3 a { background: #5B4A7A; height: 204px; }

/* 8. Łódź */
.edl-city { background: var(--edl-grid); }
.edl-city__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.edl-city__box { background: #fff; border-left: 6px solid var(--edl-crayon); padding: 1.4rem 1.5rem; border-radius: 3px; }
.edl-city__list { list-style: none; margin: 0; padding: 0; counter-reset: edlc; }
.edl-city__list li { counter-increment: edlc; padding: .75rem 0 .75rem 2.6rem; position: relative; border-bottom: 1px dashed var(--edl-gridline); }
.edl-city__list li::before { content: counter(edlc); position: absolute; left: 0; top: .6rem; width: 1.9rem; height: 1.9rem; border: 2px solid var(--edl-board); border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--edl-board); font-size: .9rem; }
.edl-city__list a { font-family: var(--font-serif); font-weight: 700; color: var(--edl-ink); text-decoration: none; }
.edl-city__list a:hover { color: var(--edl-board); text-decoration: underline; }

/* 9. Fiszki */
.edl-cards__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
.edl-card { width: 100%; min-height: 150px; border: 1px solid var(--edl-line); border-radius: 3px; background: #FFFDF2; box-shadow: 3px 3px 0 var(--edl-gridline); padding: 1rem .8rem; cursor: pointer; font: inherit; color: var(--edl-ink); display: grid; place-items: center; text-align: center; position: relative; }
.edl-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--edl-crayon); border-radius: 3px 3px 0 0; }
.edl-card__front { font-family: var(--font-serif); font-weight: 700; font-size: 1.08rem; color: var(--edl-board-dark); }
.edl-card__back { display: none; font-size: .86rem; line-height: 1.45; }
.edl-card[aria-expanded=true] { background: var(--edl-board); color: #fff; }
.edl-card[aria-expanded=true] .edl-card__front { display: none; }
.edl-card[aria-expanded=true] .edl-card__back { display: block; }

/* 10. FAQ */
.edl-faq__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.edl-faq__sheet { background: #fff; border: 1px solid var(--edl-line); border-radius: 3px; padding: 1.1rem 1.2rem; transform: rotate(-.4deg); box-shadow: 4px 4px 0 var(--edl-gridline); }
.edl-faq__sheet:nth-child(2) { transform: rotate(.5deg); }
.edl-faq__sheet h3 { margin: 0 0 .6rem; color: var(--edl-crayon-dark); font-size: 1.15rem; }
.edl-faq details { border-top: 1px dashed var(--edl-line); padding: .6rem 0; }
.edl-faq summary { cursor: pointer; font-weight: 600; list-style: none; padding-right: 1.4rem; position: relative; }
.edl-faq summary::-webkit-details-marker { display: none; }
.edl-faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-weight: 700; color: var(--edl-board); }
.edl-faq details[open] summary::after { content: "–"; }
.edl-faq details p { margin: .5rem 0 0; color: var(--edl-muted); }

/* 11. O serwisie */
.edl-about__box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem; align-items: center; border: 2px dashed var(--edl-board); padding: 1.5rem; border-radius: 3px; background: #fff; }
.edl-stamp { width: 104px; height: 104px; border: 4px double var(--edl-crayon); border-radius: 50%; display: grid; place-items: center; text-align: center; font-family: var(--font-serif); font-weight: 700; color: var(--edl-crayon); transform: rotate(-12deg); line-height: 1.05; font-size: 1.15rem; }

/* Responsywność */
@media (max-width: 1024px) {
	.edl-cards__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.edl-ruler { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.edl-ruler__step:nth-child(3) { border-right: 0; }
	.edl-ruler__step:nth-child(-n+3) { border-bottom: 1px solid rgba(30,77,64,.35); }
}
@media (max-width: 860px) {
	.edl-hero__grid, .edl-calc__grid, .edl-fresh__grid, .edl-city__grid { grid-template-columns: minmax(0, 1fr); }
	.edl-list__cols, .edl-faq__grid { grid-template-columns: minmax(0, 1fr); }
	.edl-faq__sheet, .edl-faq__sheet:nth-child(2) { transform: none; }
}
@media (max-width: 560px) {
	.edl-sec { padding: 2.3rem 0; }
	.edl-hero__page { padding-left: 1.1rem; }
	.edl-hero__page::before { left: 0; }
	.edl-ruler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.edl-ruler__step { border-bottom: 1px solid rgba(30,77,64,.35); }
	.edl-ruler__step:nth-child(3) { border-right: 1px solid rgba(30,77,64,.35); }
	.edl-ruler__step:nth-child(2n) { border-right: 0; }
	.edl-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.edl-calc__form fieldset { grid-template-columns: minmax(0, 1fr); }
	.edl-book a { width: 52px; height: 180px; }
	.edl-book--0 a, .edl-book--2 a { height: 190px; }
	.edl-about__box { grid-template-columns: minmax(0, 1fr); justify-items: start; }
	.edl-plan a { grid-template-columns: 1.4rem 2.8rem minmax(0, 1fr) auto; }
	.edl-search button { padding: 0 .9rem; }
}
@media print {
	body * { visibility: hidden; }
	#edl-lista, #edl-lista * { visibility: visible; }
	#edl-lista { position: absolute; left: 0; top: 0; width: 100%; }
	.edl-list__actions { display: none; }
}
