/* Stanica Górska – strona główna. Motyw: poziomice mapy turystycznej, drogowskaz szlakowy, przystanki trasy. */
.stg-home section { padding: clamp(2.6rem, 6vw, 4.2rem) 0; }
.stg-home h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: .2rem 0 .6rem; }
.stg-head { max-width: 720px; margin-bottom: 1.8rem; }
.stg-head p { color: var(--stg-granite); margin: 0; }
.stg-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
.stg-more { font-weight: 600; color: var(--stg-pine); text-decoration: none; border-bottom: 2px dashed var(--stg-dawn); padding-bottom: 2px; }

/* „Przystanek” – etykieta sekcji jak punkt na trasie */
.stg-way { display: inline-flex; align-items: center; gap: .55rem; margin: 0; font: 600 .78rem/1 var(--stg-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--stg-heather); }
.stg-way::after { content: ""; width: 42px; border-top: 2px dashed currentColor; opacity: .55; }
.stg-way__no { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid currentColor; border-radius: 50%; letter-spacing: 0; font-size: .74rem; background: #fff; }

.stg-btn { display: inline-block; background: var(--stg-dawn-dark); color: #fff; padding: .75rem 1.3rem; border-radius: 6px; font-weight: 600; text-decoration: none; }
.stg-btn:hover { background: var(--stg-pine); color: #fff; }

/* ---------- HERO H8: drogowskaz na tle poziomic ---------- */
.stg-hero { position: relative; overflow: hidden; background: var(--stg-meadow) var(--stg-contours) center/900px auto; border-bottom: 1px solid var(--stg-line); }
.stg-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 10%, rgba(217, 130, 43, .22), transparent 55%); pointer-events: none; }
.stg-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.stg-hero__kicker { display: inline-block; margin: 0 0 1rem; padding: .35rem .8rem; border-left: 4px solid var(--stg-dawn); background: #fff; font: 600 .8rem/1.2 var(--stg-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--stg-pine); }
.stg-hero h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); line-height: 1.12; margin: 0 0 1rem; color: var(--stg-ink); }
.stg-hero__lead { font-size: 1.12rem; color: var(--stg-granite); max-width: 36rem; margin: 0 0 1.6rem; }
.stg-hero__search { display: flex; max-width: 520px; background: #fff; border: 2px solid var(--stg-pine); border-radius: 6px; overflow: hidden; }
.stg-hero__search input { flex: 1; min-width: 0; border: 0; padding: .9rem 1rem; font-size: 1rem; background: transparent; }
.stg-hero__search input:focus { outline: none; }
.stg-hero__search button { border: 0; background: var(--stg-pine); color: #fff; padding: 0 1.4rem; font-weight: 600; cursor: pointer; }
.stg-hero__search button:hover { background: var(--stg-pine-dark); }
.stg-hero__tags { display: flex; flex-wrap: wrap; gap: .4rem .5rem; align-items: center; margin: 1rem 0 0; font-size: .9rem; }
.stg-hero__tags span { color: var(--stg-granite); margin-right: .2rem; }
.stg-hero__tags a { color: var(--stg-pine); text-decoration: none; padding: .2rem .6rem; border: 1px solid var(--stg-line); border-radius: 4px; background: rgba(255, 255, 255, .8); }
.stg-hero__tags a:hover { border-color: var(--stg-dawn); }

/* Drogowskaz: słup + tabliczki-strzałki w barwach szlaków */
.stg-post { position: relative; padding: 0 0 2.5rem; }
.stg-post__pole { position: absolute; left: 50%; top: 2.2rem; bottom: 0; width: 18px; transform: translateX(-50%); background: linear-gradient(90deg, #6b5a46, #8a7660 45%, #5c4c3a); border-radius: 3px 3px 0 0; z-index: 0; }
.stg-post__cap { position: relative; z-index: 2; display: block; width: max-content; max-width: 100%; margin: 0 auto 1rem; padding: .55rem 1.1rem; background: var(--stg-pine); color: #fff; border-radius: 4px; text-align: center; font: 600 1rem/1.2 var(--stg-serif); box-shadow: 0 6px 0 rgba(20, 51, 46, .2); }
.stg-post__cap small { display: block; font: 400 .72rem/1.4 var(--stg-sans); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.stg-post ul { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.stg-post__board a { --stripe: #c0392b; display: block; position: relative; background: #fff; color: var(--stg-ink); text-decoration: none; padding: .7rem 2.6rem .7rem 1.2rem; border-left: 8px solid var(--stripe); box-shadow: 0 2px 0 var(--stg-line), 0 8px 18px rgba(27, 36, 34, .08); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); transition: transform .2s; }
.stg-post__board:nth-child(even) a { padding: .7rem 1.2rem .7rem 2.6rem; border-left: 0; border-right: 8px solid var(--stripe); clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%); text-align: right; }
.stg-post__board:nth-child(odd) { margin-right: 8%; }
.stg-post__board:nth-child(even) { margin-left: 8%; }
.stg-post__board a:hover { transform: translateX(4px); }
.stg-post__board:nth-child(even) a:hover { transform: translateX(-4px); }
.stg-post__board strong { display: block; font: 600 1.08rem/1.2 var(--stg-serif); }
.stg-post__board span { display: block; font-size: .82rem; color: var(--stg-granite); margin-top: .15rem; }
.stg-post__board--0 a { --stripe: #c0392b; }
.stg-post__board--1 a { --stripe: #1f5fa8; }
.stg-post__board--2 a { --stripe: #2e7d32; }
.stg-post__board--3 a { --stripe: #e0b000; }
.stg-post__board--4 a { --stripe: #222; }

/* ---------- 01 Wiek ---------- */
.stg-ages__box { background: #fff; border: 1px solid var(--stg-line); border-radius: 6px; overflow: hidden; }
.stg-ages__pick { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--stg-line); }
.stg-ages__pick button { border: 0; border-right: 1px solid var(--stg-line); background: var(--stg-mist); padding: 1rem .5rem; font: 600 1rem/1.2 var(--stg-serif); color: var(--stg-pine); cursor: pointer; }
.stg-ages__pick button:last-child { border-right: 0; }
.stg-ages__pick button.is-active { background: #fff; box-shadow: inset 0 -4px 0 var(--stg-dawn); }
.stg-ages__panel { display: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; padding: 1.8rem; }
.stg-ages__panel.is-active { display: grid; }
.stg-ages__panel h3 { margin: 0 0 .6rem; font-size: 1.35rem; }
.stg-ages__panel p { margin: 0; }
.stg-ages__side ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.stg-ages__side li { padding: .4rem 0 .4rem 1.6rem; position: relative; border-bottom: 1px dashed var(--stg-line); }
.stg-ages__side li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 12px; height: 6px; background: linear-gradient(#fff 0 33%, var(--stg-heather) 33% 66%, #fff 66%); outline: 1px solid var(--stg-heather); }
.stg-ages__side a { display: block; margin-top: .45rem; color: var(--stg-pine); font-weight: 600; }

/* ---------- 02 Plan dnia ---------- */
.stg-plan { background: var(--stg-pine); color: #eaf1ee; background-image: var(--stg-contours-light); background-size: 760px auto; }
.stg-plan h2 { color: #fff; }
.stg-plan .stg-way { color: #f3c38f; }
.stg-plan .stg-way__no { background: transparent; }
.stg-plan__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.stg-plan__note { font-size: .9rem; opacity: .85; border-left: 3px solid var(--stg-dawn); padding-left: .8rem; }
.stg-plan__calc { background: #fff; color: var(--stg-ink); border-radius: 6px; padding: 1.5rem; display: grid; gap: 1rem; }
.stg-plan__row label { display: block; font-weight: 600; font-size: .92rem; }
.stg-plan__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stg-plan__pair { display: flex; align-items: center; gap: .4rem; margin-top: .35rem; font-weight: 400; }
.stg-plan__pair em { font-style: normal; color: var(--stg-granite); }
.stg-plan__calc input, .stg-plan__calc select { width: 100%; min-width: 0; padding: .55rem .6rem; border: 1px solid var(--stg-line); border-radius: 4px; font-size: 1rem; margin-top: .35rem; background: #fff; }
.stg-plan__pair input { width: 5rem; margin-top: 0; }
.stg-plan__out { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .3rem 0 0; }
.stg-plan__out div { background: var(--stg-mist); border-radius: 4px; padding: .7rem .6rem; text-align: center; }
.stg-plan__out dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--stg-granite); }
.stg-plan__out dd { margin: .2rem 0 0; font: 700 1.1rem/1.2 var(--stg-serif); color: var(--stg-pine); }
.stg-plan__out .is-key { background: var(--stg-dawn-dark); }
.stg-plan__out .is-key dt, .stg-plan__out .is-key dd { color: #fff; }

/* ---------- 03 Najnowsze ---------- */
.stg-latest .posts-grid { margin-top: 0; }

/* ---------- 04 Pasma ---------- */
.stg-ranges { background: #fff; }
.stg-ranges__wrap { overflow-x: auto; border: 1px solid var(--stg-line); border-radius: 6px; }
.stg-ranges__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stg-ranges__table th, .stg-ranges__table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--stg-line); vertical-align: top; }
.stg-ranges__table thead th { background: var(--stg-mist); font: 600 .78rem/1.2 var(--stg-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--stg-pine); }
.stg-ranges__table tbody th { font-family: var(--stg-serif); font-size: 1.05rem; white-space: nowrap; }
.stg-ranges__table tbody th a { color: var(--stg-pine); text-decoration: none; border-bottom: 2px solid var(--stg-dawn); }
.stg-ranges__table tbody tr:last-child > * { border-bottom: 0; }
.stg-ranges__table tbody tr:hover { background: var(--stg-meadow); }

/* ---------- 05 Ze Szklarskiej Poręby ---------- */
.stg-local { background: var(--stg-meadow) var(--stg-contours) center/1100px auto; }
.stg-local__head { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.stg-local__head .stg-way { justify-content: center; }
.stg-local__head p { color: var(--stg-granite); }
.stg-local__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.stg-local__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--stg-line); border-top: 5px solid var(--stg-heather); border-radius: 6px; overflow: hidden; color: var(--stg-ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.stg-local__card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(27, 36, 34, .1); }
.stg-local__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stg-local__card strong { font: 600 1.05rem/1.3 var(--stg-serif); padding: .9rem 1rem .3rem; color: var(--stg-pine); }
.stg-local__card span { padding: 0 1rem 1rem; font-size: .9rem; color: var(--stg-granite); }

/* ---------- 06 Pory roku ---------- */
.stg-seasons__tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.stg-seasons__tabs button { border: 2px solid var(--stg-line); background: #fff; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; cursor: pointer; color: var(--stg-ink); }
.stg-seasons__tabs button.is-active { color: #fff; border-color: transparent; }
.stg-seasons__tab--wiosna.is-active { background: #4f7d3a; }
.stg-seasons__tab--lato.is-active { background: var(--stg-dawn-dark); }
.stg-seasons__tab--jesien.is-active { background: #8a3b1d; }
.stg-seasons__tab--zima.is-active { background: #2c5a7a; }
.stg-seasons__panel { display: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; padding: 1.8rem; border-radius: 6px; background: #fff; border: 1px solid var(--stg-line); border-left: 8px solid var(--season, var(--stg-pine)); }
.stg-seasons__panel.is-active { display: grid; }
.stg-seasons__panel p { margin: 0; font-size: 1.08rem; }
.stg-seasons__panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.stg-seasons__panel li a { color: var(--stg-pine); font-weight: 600; }
.stg-seasons__panel li a::before { content: "→ "; color: var(--season); }
.stg-seasons__panel--wiosna { --season: #4f7d3a; }
.stg-seasons__panel--lato { --season: var(--stg-dawn-dark); }
.stg-seasons__panel--jesien { --season: #8a3b1d; }
.stg-seasons__panel--zima { --season: #2c5a7a; }

/* ---------- 07 Plecak ---------- */
.stg-pack { background: var(--stg-mist); }
.stg-pack__count { margin: 0; font-weight: 600; }
.stg-pack__count b { color: var(--stg-dawn-dark); font-size: 1.3rem; }
.stg-pack__count button { margin-left: .6rem; border: 0; background: none; color: var(--stg-heather); text-decoration: underline; cursor: pointer; }
.stg-pack__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.stg-pack fieldset { margin: 0; padding: 1.2rem 1.2rem 1rem; background: #fff; border: 2px dashed var(--stg-line); border-radius: 6px; min-width: 0; }
.stg-pack legend { padding: .25rem .7rem; background: var(--stg-pine); color: #fff; border-radius: 4px; font: 600 .95rem/1.2 var(--stg-serif); }
.stg-pack label { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; cursor: pointer; border-bottom: 1px solid var(--stg-mist); }
.stg-pack label:last-child { border-bottom: 0; }
.stg-pack input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--stg-pine); flex: none; }
.stg-pack input:checked + span { text-decoration: line-through; color: var(--stg-granite); }
.stg-pack__note { font-size: .88rem; color: var(--stg-granite); margin: 1rem 0 0; }

/* ---------- 08 SOS ---------- */
.stg-sos__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; }
.stg-sos__intro { background: #fff; border: 1px solid var(--stg-line); border-top: 6px solid #c0392b; border-radius: 6px; padding: 1.6rem; align-self: start; }
.stg-sos__num { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; margin: .4rem 0 .8rem; }
.stg-sos__num a { font: 700 2.2rem/1 var(--stg-serif); color: #a8271b; text-decoration: none; }
.stg-sos__num span { color: var(--stg-granite); }
.stg-sos__steps { list-style: none; margin: 0; padding: 0 0 0 2.6rem; counter-reset: s; position: relative; }
.stg-sos__steps::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; border-left: 3px dashed var(--stg-line); }
.stg-sos__steps li { counter-increment: s; position: relative; padding: 0 0 1.3rem; }
.stg-sos__steps li::before { content: counter(s); position: absolute; left: -2.6rem; top: 0; width: 32px; height: 32px; display: grid; place-items: center; background: var(--stg-pine); color: #fff; border-radius: 50%; font-weight: 700; box-shadow: 0 0 0 4px var(--stg-bg, #fff); }
.stg-sos__steps h3 { margin: .2rem 0 .3rem; font-size: 1.1rem; }
.stg-sos__steps p { margin: 0; color: var(--stg-granite); }

/* ---------- 09 Działy ---------- */
.stg-cats { background: #fff; }
.stg-cats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stg-cats__tile { position: relative; display: block; padding: 1.1rem 3.4rem 1.1rem 1.1rem; border: 1px solid var(--stg-line); border-radius: 6px; text-decoration: none; color: var(--stg-ink); background: var(--stg-meadow); transition: border-color .2s, background .2s; }
.stg-cats__tile:hover { border-color: var(--stg-pine); background: #fff; }
.stg-cats__tile strong { display: block; font: 600 1.05rem/1.25 var(--stg-serif); color: var(--stg-pine); margin-bottom: .3rem; }
.stg-cats__tile span { font-size: .85rem; color: var(--stg-granite); }
.stg-cats__tile em { position: absolute; top: 1rem; right: 1rem; font-style: normal; font-weight: 700; font-size: .85rem; color: var(--stg-heather); border: 2px solid currentColor; border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; }

/* ---------- 10 FAQ ---------- */
.stg-faq__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 3rem; align-items: start; }
.stg-faq__grid .stg-head { position: sticky; top: 1.5rem; }
.stg-faq details { border-bottom: 1px solid var(--stg-line); }
.stg-faq summary { list-style: none; cursor: pointer; padding: 1.05rem 2.4rem 1.05rem 0; position: relative; font: 600 1.08rem/1.35 var(--stg-serif); color: var(--stg-ink); }
.stg-faq summary::-webkit-details-marker { display: none; }
.stg-faq summary::after { content: ""; position: absolute; right: .4rem; top: 1.3rem; width: 10px; height: 10px; border-right: 2px solid var(--stg-dawn-dark); border-bottom: 2px solid var(--stg-dawn-dark); transform: rotate(45deg); transition: transform .2s; }
.stg-faq details[open] summary::after { transform: rotate(-135deg); top: 1.55rem; }
.stg-faq details p { margin: 0 0 1.1rem; color: var(--stg-granite); }

/* ---------- O serwisie ---------- */
.stg-about { padding-top: 0 !important; }
.stg-about__box { background: var(--stg-pine-dark) var(--stg-contours-light) center/700px auto; color: #e6efeb; border-radius: 6px; padding: clamp(1.6rem, 4vw, 2.6rem); }
.stg-about__box h2 { color: #fff; }
.stg-about__box a { color: #f3c38f; font-weight: 600; }

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
	.stg-local__grid, .stg-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.stg-hero__grid, .stg-plan__grid, .stg-sos__grid, .stg-faq__grid, .stg-ages__panel.is-active, .stg-seasons__panel.is-active { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
	.stg-post { max-width: 460px; margin: 0 auto; width: 100%; }
	.stg-pack__grid { grid-template-columns: minmax(0, 1fr); }
	.stg-faq__grid .stg-head { position: static; }
}
@media (max-width: 600px) {
	.stg-ages__pick { grid-template-columns: repeat(2, 1fr); }
	.stg-ages__pick button:nth-child(2) { border-right: 0; }
	.stg-ages__pick button:nth-child(-n+2) { border-bottom: 1px solid var(--stg-line); }
	.stg-plan__out { grid-template-columns: repeat(2, 1fr); }
	.stg-plan__row--two { grid-template-columns: minmax(0, 1fr); }
	.stg-local__grid, .stg-cats__grid { grid-template-columns: minmax(0, 1fr); }
	.stg-ranges__table thead { display: none; }
	.stg-ranges__table, .stg-ranges__table tbody, .stg-ranges__table tr, .stg-ranges__table th, .stg-ranges__table td { display: block; width: 100%; }
	.stg-ranges__table tr { border-bottom: 1px solid var(--stg-line); padding: .6rem 0; }
	.stg-ranges__table th, .stg-ranges__table td { border: 0; padding: .25rem 1rem; }
	.stg-ranges__table td::before { content: attr(data-h) ": "; font-weight: 600; color: var(--stg-pine); }
	.stg-post__board:nth-child(odd) { margin-right: 4%; }
	.stg-post__board:nth-child(even) { margin-left: 4%; }
	.stg-ages__panel { padding: 1.2rem; }
}
