/* Colours taken from the Tip Top logo */
:root {
  --navy: #14294D;        /* header, hero, footer */
  --navy-2: #1A3E6E;      /* banded sections */
  --blue: #1B519A;        /* children's side, links */
  --blue-light: #3F7CC4;
  --red: #DE192B;         /* buttons and accents, from the logo arcs */
  --red-dark: #B8121F;
  --grey: #F4F6F9;
  --line: #DCE2EB;
  --ink: #1D2433;
  --muted: #4E5A6E;
  --todo: #FFF1B8;
  --hero: var(--navy);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}
body.side-kids { --hero: var(--blue); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.center-h, .center { text-align: center; }
.intro { max-width: 66ch; color: var(--muted); }
.intro.center { margin: 0 auto 2rem; }

mark.todo { background: var(--todo); color: #5E4500; border-bottom: 2px dashed #D9A20F; padding: 0 .2em; border-radius: 2px; }

/* review strip */
.review-strip { background: #0C1B36; color: #CFD8EA; font-size: .85rem; text-align: center; padding: .4rem 1rem; }
.review-note { font-size: .9rem; color: var(--muted); background: var(--grey); border-left: 4px solid var(--line); padding: .75rem 1rem; border-radius: 4px; }

/* header – same navy as the hero, so they read as one block */
.site-header { background: var(--hero); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 104px; gap: 1rem; }
.logo img { width: 96px; height: auto; }
.menu { display: flex; align-items: center; gap: 1.25rem; }
.menu > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.menu a { text-decoration: none; color: #fff; font-weight: 700; }
.menu > ul > li { position: relative; display: flex; align-items: center; }
.menu > ul > li > a { padding: .45rem .65rem; border-bottom: 2px solid transparent; }
.menu > ul > li > a:hover { border-bottom-color: rgba(255,255,255,.5); }
.menu a[aria-current="page"] { border-bottom-color: #fff !important; }
.sub-toggle { background: none; border: 0; padding: .4rem; margin-left: -.5rem; color: #fff; cursor: pointer; }
.sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; border-radius: 6px; list-style: none; margin: 0; padding: .5rem; min-width: 220px; box-shadow: 0 14px 34px rgba(10,20,45,.25); border-top: 3px solid var(--red); }
.sub a { display: block; padding: .5rem .75rem; border-radius: 4px; color: var(--ink); font-weight: 600; }
.sub a:hover { background: var(--grey); }
.sub a[aria-current="page"] { color: var(--blue); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.sub-open .sub { display: block; }
.menu-toggle { display: none; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); border-radius: 4px; padding: .5rem 1rem; font: inherit; font-weight: 700; cursor: pointer; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; border-radius: 4px; padding: .85rem 1.6rem; border: 2px solid transparent; transition: background .15s ease; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--grey); }
.btn-small { padding: .55rem 1.1rem; font-size: .95rem; }

/* hero with curved bottom */
.hero, .homehero { position: relative; background: var(--hero); color: #fff; padding: clamp(2rem, 5vw, 4rem) 0 clamp(5rem, 9vw, 7rem); overflow: hidden; }
.curve { position: absolute; left: -10%; right: -10%; bottom: -1px; height: clamp(40px, 6vw, 70px); background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero h1, .homehero h1 { color: #fff; }
.hero p, .homehero p { color: rgba(255,255,255,.86); max-width: 60ch; }
.hero .lead { font-size: 1.2rem; color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-plain .hero-grid { grid-template-columns: 1fr; max-width: 780px; }
.hero-img { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.08); max-height: 520px; width: 100%; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero .btn-secondary, .cta .btn-secondary, .testcard .btn-secondary, .feature .btn-secondary { color: #fff; border-color: rgba(255,255,255,.75); }
.hero .btn-secondary:hover, .cta .btn-secondary:hover { background: rgba(255,255,255,.08); }
.homehero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); max-width: 22ch; }
.homehero p { font-size: 1.2rem; }

/* home doors – arch images echo the shape of the logo badge */
.doors-wrap { padding: 1rem 0 3.5rem; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); margin-top: -2.5rem; position: relative; }
.door { display: flex; flex-direction: column; text-decoration: none; color: #fff; border-radius: 8px; padding: 1.75rem 1.75rem 2rem; box-shadow: 0 14px 34px rgba(10,20,45,.18); }
.door-adults { background: var(--navy); }
.door-kids { background: var(--blue); }
.arch { border-radius: 50% 50% 10px 10px / 38% 38% 10px 10px; overflow: hidden; aspect-ratio: 16 / 11; background: rgba(255,255,255,.1); border: 5px solid #fff; box-shadow: 0 0 0 5px var(--red); margin: 5px; }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.door:hover .arch img { transform: scale(1.04); }
.door-body { padding-top: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.door h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.door p { color: rgba(255,255,255,.88); flex: 1; }
.door .btn { align-self: flex-start; margin-top: .5rem; }
.doors-below { text-align: center; margin-top: 2rem; font-size: 1.05rem; }
.doors-below a { font-weight: 700; }

/* blocks */
.block { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.tint { background: var(--grey); }
main > section.block:nth-of-type(even):not(.tint) { background: #fff; }
.twocol { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.twocol > h2 { margin-top: -.15em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.flip .media { order: -1; }
.prose { max-width: 62ch; }
.media { margin: 0; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--grey); }
.media figcaption { margin-top: .5rem; font-size: .9rem; }
.small { font-size: .92rem; color: var(--muted); }
.price { border: 2px dashed var(--blue-light); border-radius: 6px; padding: 1rem 1.25rem; font-weight: 600; }
.img-missing { background: var(--grey); min-height: 220px; }

ul.ticks { list-style: none; padding: 0; margin: .5rem 0 0; }
ul.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .9rem; }
ul.ticks li::before { content: ""; position: absolute; left: .25rem; top: .3em; width: .45rem; height: .8rem; border: solid var(--red); border-width: 0 3px 3px 0; transform: rotate(45deg); }
ul.ticks.cols { columns: 2; column-gap: 2.5rem; }
ul.ticks.cols li { break-inside: avoid; }

.ex-h { font-size: 1.15rem; margin-bottom: 1.25rem; }
.examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.5rem; }
.examples blockquote { margin: 0; border-left: 3px solid var(--blue); padding: .25rem 0 .25rem 1.25rem; color: var(--muted); }

.testband { background: var(--grey); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.testcard { background: var(--navy-2); color: #fff; border-left: 6px solid var(--red); border-radius: 6px; padding: clamp(1.75rem, 4vw, 2.75rem); max-width: 720px; }
.testcard h2 { color: #fff; }
.testcard p { color: rgba(255,255,255,.88); }
.testcard .small { color: rgba(255,255,255,.72); margin-top: 1.25rem; margin-bottom: 0; }
.testcard a:not(.btn) { color: #fff; }

.cta, .feature { background: var(--navy-2); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.cta h2, .feature h2 { color: #fff; }
.cta p, .feature p { color: rgba(255,255,255,.88); }
.feature a { color: #fff; font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem 4rem; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 6px; padding: 1.5rem 1.75rem; max-width: 460px; }
.contact-card p { margin: 0 0 .4rem; }
.cc-name { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.2rem; }
.contact-card .hours { margin-top: .8rem; }
.contact-full { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem 3rem; align-items: start; }
.map { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); margin-top: 1rem; }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1rem; }
.path { background: #fff; border-radius: 6px; padding: 1.4rem; border-top: 4px solid var(--navy); }
.path:nth-child(2) { border-top-color: var(--blue); }
.path:nth-child(3) { border-top-color: var(--red); }
.after { margin-top: 1.5rem; font-weight: 600; }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
ol.steps li { counter-increment: s; position: relative; padding-top: 3.4rem; }
ol.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--serif); font-weight: 700; display: grid; place-items: center; font-size: 1.2rem; }
ol.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.25rem; left: 3.1rem; right: -.9rem; height: 2px; background: var(--line); }

ul.clients { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; margin: 1rem 0 1.25rem; }
ul.clients li { padding: .8rem 1rem; background: var(--grey); border-left: 3px solid var(--blue); border-radius: 0 4px 4px 0; font-weight: 600; }

.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .75rem 0 0; }

/* ladder – the children's path */
.ladder-sec { background: var(--grey); }
.ladder { list-style: none; padding: 0; margin: 2.5rem auto 0; max-width: 940px; position: relative; }
.ladder::before { content: ""; position: absolute; left: 22px; top: 12px; bottom: 12px; width: 3px; background: var(--blue); opacity: .3; }
.ladder li { position: relative; padding-left: calc(64px + var(--i) * 6%); margin-bottom: 1.25rem; }
.ladder li::before { content: ""; position: absolute; left: 11px; top: 1.7rem; width: 25px; height: 25px; border-radius: 50%; background: #fff; border: 6px solid var(--red); }
.rung { display: block; text-decoration: none; color: var(--ink); background: #fff; border-radius: 6px; padding: 1.4rem 1.6rem; border-left: 5px solid var(--blue); box-shadow: 0 6px 18px rgba(10,20,45,.06); }
.rung:hover { box-shadow: 0 10px 26px rgba(10,20,45,.12); }
.rung h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: .35rem; }
.rung p { color: var(--muted); margin-bottom: .5rem; }
.rung-age { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem; padding: .15rem .7rem; border-radius: 3px; margin-bottom: .5rem; }
.rung-more { font-weight: 700; color: var(--red); }
.ladder-aside { max-width: 760px; margin: 2rem auto 0; background: #fff; border-top: 4px solid var(--red); border-radius: 6px; padding: 1.4rem 1.6rem; }

.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.level { background: #fff; border-radius: 6px; padding: 1.4rem; border-top: 5px solid var(--blue); }
.level h3 { color: var(--navy); }
.level .age { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem; padding: .1rem .6rem; border-radius: 3px; }
.level .meta { font-size: .92rem; font-weight: 700; color: var(--red); border-top: 1px solid var(--line); padding-top: .7rem; margin: 0; }

.next { background: var(--grey); border-left: 5px solid var(--red); border-radius: 0 6px 6px 0; padding: 2rem; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.trio h2 { font-size: 1.45rem; }
.trio article { border-top: 4px solid var(--blue); padding-top: 1.25rem; }

ul.events { list-style: none; padding: 0; margin: 1.25rem 0; }
ul.events li > a, ul.events li > div { display: grid; grid-template-columns: 190px 1fr; gap: 1rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 4px; margin-bottom: .6rem; text-decoration: none; color: var(--ink); align-items: center; }
ul.events li > a:hover { border-color: var(--blue); border-left-color: var(--red); }
.ev-when { font-weight: 700; color: var(--navy); }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.point { text-align: center; padding: 1rem; }
.point .big { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--red); line-height: 1; margin-bottom: .6rem; }
.placeholder-box { background: var(--grey); border: 2px dashed var(--line); border-radius: 6px; padding: 2rem; }

/* footer */
.site-footer { background: var(--navy); color: #C9D2E8; padding: 3rem 0 2rem; }
.site-footer a { color: #fff; }
.f-logo { width: 110px; height: auto; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.f-name { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.15rem; margin-bottom: .3rem; }
.f-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.f-links li { margin-bottom: .4rem; }
.f-small { grid-column: 1 / -1; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; margin: 0; }

/* responsive */
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--hero); flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.5rem; gap: .75rem; box-shadow: 0 14px 30px rgba(0,0,0,.25); }
  .menu.open { display: flex; }
  .menu > ul { flex-direction: column; }
  .menu > ul > li { flex-wrap: wrap; justify-content: space-between; }
  .sub { position: static; box-shadow: none; border: 0; width: 100%; background: transparent; padding: 0 0 0 1rem; }
  .sub a { color: #fff; }
  .sub a:hover { background: rgba(255,255,255,.08); }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.sub-open .sub { display: block; }
  ol.steps { grid-template-columns: 1fr 1fr; }
  ol.steps li::after { display: none; }
  .trio, .paths { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .header-inner { min-height: 84px; }
  .logo img { width: 76px; }
  .doors, .hero-grid, .split, .twocol, .contact-grid, .contact-full, .examples, .footer-grid, ul.clients { grid-template-columns: 1fr; }
  .doors { margin-top: -1.5rem; }
  .twocol > h2 { margin-bottom: 0; }
  .split.flip .media { order: 0; }
  .hero-img { aspect-ratio: 16 / 10; }
  ul.ticks.cols { columns: 1; }
  ol.steps { grid-template-columns: 1fr; }
  .ladder li { padding-left: 56px; }
  ul.events li > a, ul.events li > div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.events-empty { color: var(--muted); background: var(--grey); padding: 1rem 1.25rem; border-radius: 4px; }

/* Edu Bears course logos — drop files into /brand, missing ones simply don't show */
.brand-logo { display: block; height: 120px; width: auto; max-width: 240px; object-fit: contain; background: #fff; padding: .5rem .8rem; border-radius: 10px; margin: 0 0 1.2rem; }
.rung-logo { display: block; height: 60px; width: auto; max-width: 160px; object-fit: contain; margin: 0 0 .6rem; }
@media (max-width: 700px) { .brand-logo { height: 96px; } }
.brand-logo.tall { height: 160px; } .rung-logo.tall { height: 84px; }
@media (max-width: 700px) { .brand-logo.tall { height: 128px; } }
.hero-img img.focus-top { object-position: 50% 22%; }

/* ---------- price lists (filled from the Sheet's "Ceny" tab) ---------- */
.price-box { margin-top: 1.5rem; background: var(--grey); border-left: 4px solid var(--red); border-radius: 0 6px 6px 0; padding: 1.1rem 1.4rem; }
.price-box[hidden] { display: none; }
.price-box h3 { margin-bottom: .5rem; }
ul.prices { list-style: none; margin: 0; padding: 0; }
ul.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
ul.prices li:last-child { border-bottom: 0; }
.prices .p-what { flex: 1; }
.prices .p-note { display: block; font-size: .88rem; color: var(--muted); }
.prices .p-price { font-weight: 700; color: var(--navy); white-space: nowrap; }
ul.events:empty { min-height: 3.5rem; }

/* ---------- phone tidy-up ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .block, .cta, .feature, .testband { padding: 2.25rem 0; }
  .hero, .homehero { padding: 1.5rem 0 3.25rem; }
  .curve { height: 30px; }
  .hero .lead, .homehero p { font-size: 1.08rem; }
  .hero-grid { gap: 1.5rem; }
  .hero-img { max-height: 300px; }
  .twocol, .split { gap: 1rem; }
  .twocol > div:empty { display: none; }
  .twocol > h2 { margin-bottom: .25rem; }
  .btns { flex-direction: column; align-items: stretch; gap: .6rem; }
  .btns .btn, .door .btn { width: 100%; text-align: center; }
  .doors { gap: 1rem; }
  .door { padding: 1.25rem 1.25rem 1.5rem; }
  .doors-below { margin-top: 1.5rem; }
  .ladder { margin-top: 1.5rem; }
  .ladder::before { left: 9px; }
  .ladder li { padding-left: 34px; margin-bottom: 1rem; }
  .ladder li::before { left: 0; top: 1.4rem; width: 21px; height: 21px; border-width: 5px; }
  .rung { padding: 1.1rem 1.2rem; border-left-width: 4px; }
  .rung h3 { font-size: 1.3rem; }
  .ladder-aside, .level, .path, .next { padding: 1.2rem; }
  .levels { gap: 1rem; }
  ol.steps { gap: 1.25rem; }
  ol.steps li { padding-top: 0; padding-left: 3.1rem; min-height: 2.3rem; }
  ol.steps li::before { width: 2.2rem; height: 2.2rem; font-size: 1.05rem; top: -.3rem; }
  .trio { gap: 1.5rem; }
  .testcard { padding: 1.5rem 1.25rem; border-left-width: 5px; }
  .contact-card { padding: 1.25rem; max-width: none; }
  .cc-name { line-height: 1.3; margin-bottom: .5rem !important; }
  .map iframe { height: 260px; }
  .points { gap: .25rem; }
  .faq summary { font-size: 1.02rem; }
  .price-box { padding: 1rem 1.1rem; }
  .brand-logo { height: 80px; }
  .brand-logo.tall { height: 108px; }
  .site-footer { padding: 2.25rem 0 1.5rem; }
  .review-strip { font-size: .78rem; }
}

/* review mode only: labels showing which Sheet tab feeds each spot */
.sheet-tag { display: inline-block; background: var(--todo); color: #5E4500; border: 1px dashed #D9A20F; font: 600 .78rem/1.3 var(--sans); padding: .2rem .5rem; border-radius: 3px; margin-bottom: .5rem; }
.sheet-tag.on-photo { position: absolute; left: .5rem; top: .5rem; z-index: 3; margin: 0; }
.sheet-tag.bad { background: #FDE2E4; color: #8A0F1B; border-color: var(--red); }
.cambridge-logo { height: 90px; max-width: 260px; }
@media (max-width: 700px) { .cambridge-logo { height: 72px; } }

/* social profiles (icons: Font Awesome Free, CC BY 4.0) */
ul.social { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
ul.social a { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 700; }
ul.social svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
ul.social.labelled a { color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem .5rem .85rem; background: #fff; }
ul.social.labelled a:hover { border-color: var(--blue); color: var(--blue); }
ul.social.compact { margin-top: .6rem; gap: .4rem; }
ul.social.compact a { padding: .35rem .8rem .35rem .65rem; font-size: .95rem; }
ul.social.icons-only a { width: 40px; height: 40px; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
ul.social.icons-only a:hover { background: rgba(255,255,255,.22); }
ul.social.icons-only span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- home page hero: text + buttons left, photos right ---------- */
.homehero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.homehero p.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.homehero p.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--red); vertical-align: middle; margin: -3px .65rem 0 0; }
.homehero .btns { margin-top: 1.75rem; }
.homehero .btn-secondary { color: #fff; border-color: rgba(255,255,255,.75); }
.homehero .btn-secondary:hover { background: rgba(255,255,255,.08); }
.hh-photos { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; justify-self: end; }
.hh-photos::before { content: ""; position: absolute; z-index: 0; right: -16px; top: 16%; width: 42%; height: 56%; background: var(--red); border-radius: 10px; }
.hh-photos figure { position: absolute; z-index: 1; margin: 0; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.08); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.hh-photos img { width: 100%; height: 100%; object-fit: cover; }
.hh-a { top: 0; right: 0; width: 80%; height: 70%; }
.hh-b { bottom: 0; left: 0; width: 54%; height: 50%; border: 6px solid var(--hero); }
.hh-badge { position: absolute; z-index: 2; right: 2%; bottom: 9%; display: flex; flex-direction: column; line-height: 1.2; padding: .75rem 1.1rem; background: #fff; color: var(--navy); border-radius: 10px; text-decoration: none; box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.hh-badge strong { font-family: var(--serif); font-size: 1.7rem; color: var(--red); }
.hh-badge span { font-size: .85rem; font-weight: 600; }
.hh-badge:hover { transform: translateY(-2px); }
@media (max-width: 900px) {
  .homehero-grid { grid-template-columns: 1fr; }
  .hh-photos { justify-self: stretch; max-width: none; aspect-ratio: 5 / 4; }
  .hh-photos::before { right: -8px; }
}
.homehero-grid h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); max-width: none; text-wrap: balance; }

/* ---------- key facts list (Wyjazdy) ---------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; margin: 1.5rem 0 0; padding: 1.1rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.facts dt { font-weight: 700; color: var(--navy); }
.facts dd { margin: 0; }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: .6rem; }
}
.split.top { align-items: start; }
.feature .facts { color: var(--ink); margin-bottom: 1.25rem; }
.hero p a { color: #fff; font-weight: 700; }

/* ---------- destination photos beside the schools heading (Wyjazdy) ---------- */
.twocol > .side h2 { margin-top: -.15em; }
.dest-strip { display: grid; gap: 1rem; margin-top: 1.75rem; }
.dest-strip figure { margin: 0; position: relative; }
.dest-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: rgba(255,255,255,.08); display: block; }
.dest-strip figcaption { margin-top: .4rem; font-weight: 700; font-size: .95rem; color: #fff; }
.feature .price-box { color: var(--ink); margin-bottom: 1.25rem; }
.feature .price-box h3 { color: var(--navy); }
@media (max-width: 760px) {
  .dest-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0 .5rem; }
  .dest-strip img { aspect-ratio: 1 / 1; }
  .dest-strip figcaption { font-size: .85rem; }
}
.twocol > .side, .dest-strip figure { min-width: 0; }
.dest-strip .sheet-tag { max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest-strip img.img-missing { min-height: 0; }

/* ---------- trip cards (Wyjazdy) ---------- */
.trips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.trip { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.trip-img { margin: 0; }
.trip-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--grey); }
.trip-img img.img-missing { min-height: 0; }
.trip-body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.trip-body h3 { font-size: 1.35rem; margin: 0; color: var(--navy); }
.trip-body p { margin: 0; }
.trip-when { font-weight: 700; color: var(--red-dark); }
.trip-status { align-self: flex-start; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .65rem; border-radius: 999px; }
.trip-status.full { background: var(--muted); }
.trip-facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; font-size: .97rem; }
.trip-facts dt { font-weight: 700; color: var(--navy); }
.trip-facts dd { margin: 0; }
.trip-org { font-size: .9rem; color: var(--muted); }
.trip .btns { margin-top: auto; padding-top: .4rem; }
.trip-call { font-size: .92rem; color: var(--muted); margin-top: -.2rem !important; }
.trip-call a { font-weight: 700; }
.trips > .events-empty { grid-column: 1 / -1; }

/* Praca: consent wording candidates can copy */
blockquote.consent { margin: 1rem 0; border-left: 3px solid var(--red); padding: .6rem 0 .6rem 1.25rem; color: var(--muted); font-style: italic; }

/* Sheet photos: hidden until the Sheet has answered, then fade in (no flash of the old photo) */
img[data-img] { transition: opacity .35s ease, transform .5s ease; }
.photos-wait img[data-img]:not(.photo-ready) { opacity: 0; }
