/* Sport4You — shared styles (design from the s4y pages: events.html, workshop.html) */
:root {
  --blue: #1e88e5;
  --blue-dark: #1565c0;
  --blue-grad: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  --blue-soft: rgba(30, 136, 229, 0.08);
  --orange: #f57c00;
  --promo-grad: linear-gradient(135deg, #ff6f00 0%, #e53935 100%);
  --red: #e53935;
  --green: #4e7d6c;
  --text: #333;
  --muted: #555;
  --line: #e9ecef;
  --bg-soft: #f8f9fa;
  --white: #fff;
  --radius: 15px;
  --shadow: 0 4px 15px rgba(0, 0, 0, .06);
  --shadow-hover: 0 12px 35px rgba(30, 136, 229, .2);
  --wrap: 1200px;
  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.s4y-skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 1000; }
.s4y-skip:focus { left: 8px; }
.s4y-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.s4y-section { max-width: var(--wrap); margin: 0 auto; padding: 30px 20px; }
.s4y-center { text-align: center; }
.s4y-muted { color: var(--muted); }

/* ---------- header & navigation ---------- */
.s4y-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.s4y-header-inner { max-width: 1320px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; }
.s4y-logo img { width: 170px; height: auto; }
.s4y-nav { flex: 1; }
.s4y-menu, .s4y-sub { list-style: none; margin: 0; padding: 0; }
.s4y-menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; }
.s4y-menu > li { position: relative; }
.s4y-menu > li > a, .s4y-sub-toggle {
  display: block; padding: 10px 12px; font: 600 .82rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .4px;
  color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 8px;
}
.s4y-sub-toggle::after { content: " ▾"; font-size: .8em; color: var(--blue); }
.s4y-menu > li > a:hover, .s4y-sub-toggle:hover, .s4y-menu > li.is-active > a, .s4y-menu > li.is-active > .s4y-sub-toggle { color: var(--blue); background: var(--blue-soft); }
.s4y-sub {
  position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--white); border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .14); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.s4y-menu > li:hover > .s4y-sub, .s4y-menu > li:focus-within > .s4y-sub, .s4y-sub.is-open { opacity: 1; visibility: visible; transform: none; }
.s4y-sub a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; }
.s4y-sub a:hover, .s4y-sub a[aria-current] { background: var(--blue-soft); color: var(--blue); }
.s4y-header-account {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--blue-grad); color: #fff;
  text-decoration: none; padding: 9px 16px; border-radius: 50px; font-weight: 600; font-size: .9rem;
}
.s4y-header-account:hover { color: #fff; box-shadow: 0 6px 20px rgba(30, 136, 229, .4); }
.s4y-header-account span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.s4y-menu > li > a.s4y-menu-home { display: flex; align-items: center; padding: 8px 10px; }
.s4y-menu-home-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.s4y-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.s4y-burger span { display: block; height: 3px; margin: 5px 0; background: var(--blue); border-radius: 2px; transition: transform .2s, opacity .2s; }
.s4y-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.s4y-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.s4y-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) {
  .s4y-header-account { order: 2; margin-left: auto; padding: 9px; }
  .s4y-header-account span { display: none; }
  .s4y-burger { display: block; order: 3; margin-left: 0; }
  .s4y-menu > li > a.s4y-menu-home { gap: 10px; }
  .s4y-menu-home-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .s4y-nav { position: fixed; inset: 70px 0 0 0; background: var(--white); overflow-y: auto; padding: 10px 16px 40px; display: none; }
  .s4y-nav.is-open { display: block; }
  .s4y-menu { flex-direction: column; }
  .s4y-menu > li > a, .s4y-sub-toggle { width: 100%; text-align: left; padding: 14px 10px; font-size: .95rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .s4y-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 4px 0 8px 12px; }
  .s4y-sub.is-open { display: block; }
  .s4y-menu > li:hover > .s4y-sub { display: none; }
  .s4y-menu > li:hover > .s4y-sub.is-open { display: block; }
}

/* ---------- page title banner (inner pages; same as the old site) ---------- */
.s4y-pagehead { position: relative; isolation: isolate; background: #008fec; color: #fff; padding: 80px 20px 82px; }
.s4y-pagehead.has-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: var(--banner) center top / cover no-repeat;
}
.s4y-pagehead-inner { max-width: 1230px; margin: 0 auto; }
.s4y-pagehead h1 { color: #fff; font-size: 36px; font-weight: 400; line-height: 1.1; margin: 0; }
.s4y-breadcrumb { font-size: 13px; margin-top: 8px; }
.s4y-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.s4y-breadcrumb li + li::before { content: "/"; margin-right: 4px; }
.s4y-breadcrumb a { color: #fff; text-decoration: none; }
.s4y-breadcrumb a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .s4y-pagehead { padding: 50px 16px 52px; }
  .s4y-pagehead h1 { font-size: 28px; }
}

/* ---------- hero ---------- */
.s4y-hero {
  position: relative; color: #fff; text-align: center; padding: 70px 20px 60px; margin: 20px auto 30px;
  max-width: var(--wrap); border-radius: var(--radius); overflow: hidden; background: var(--blue-grad) center / cover no-repeat;
}
.s4y-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30, 136, 229, .85) 0%, rgba(21, 101, 192, .85) 100%); }
.s4y-hero > * { position: relative; }
.s4y-hero h1 { font-size: 2.5em; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); margin-bottom: 14px; }
.s4y-hero p { font-size: 1.1em; max-width: 800px; margin: 0 auto 10px; color: rgba(255, 255, 255, .95); }
.s4y-hero .s4y-btn { margin-top: 14px; background: #fff; color: var(--blue); }
.s4y-hero .s4y-btn:hover { color: var(--blue-dark); }
.s4y-hero-img { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.s4y-hero { isolation: isolate; }
.s4y-hero::before { z-index: -1; }
@media (max-width: 768px) {
  .s4y-hero { margin: 0 0 24px; border-radius: 0; padding: 50px 16px 40px; }
  .s4y-hero h1 { font-size: 1.8em; }
  .s4y-hero p { font-size: .98em; }
}

/* ---------- homepage slideshow (overlay only behind the text, not the whole photo) ---------- */
.s4y-slider { position: relative; max-width: 1320px; margin: 20px auto 10px; border-radius: var(--radius); overflow: hidden; background: #0d3c6e; }
.s4y-slides { display: grid; }
.s4y-slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.s4y-slide.is-active { opacity: 1; visibility: visible; }
.s4y-slide img { width: 100%; aspect-ratio: 1920 / 600; min-height: 340px; object-fit: cover; }
.s4y-slide-text {
  position: absolute; left: 6%; top: 50%; transform: translateY(-50%); max-width: 520px; color: #fff;
  background: linear-gradient(135deg, rgba(30, 136, 229, .88) 0%, rgba(21, 101, 192, .88) 100%);
  padding: 26px 30px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.s4y-slide-text h1, .s4y-slide-text h2 { color: #fff; font-size: 2em; margin: 0 0 10px; }
.s4y-slide-text h2 small { display: block; font-size: .55em; font-weight: 500; opacity: .95; margin-top: 4px; }
.s4y-slide-text p { color: rgba(255, 255, 255, .95); margin-bottom: 16px; }
.s4y-slide-text .s4y-btn { background: #fff; color: var(--blue); }
.s4y-slide-text .s4y-btn:hover { color: var(--blue-dark); }
.s4y-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: var(--blue); font-size: 1.8rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.s4y-slider-arrow:hover { background: #fff; }
.s4y-slider-prev { left: 14px; }
.s4y-slider-next { right: 14px; }
.s4y-slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.s4y-slider-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.s4y-slider-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 768px) {
  .s4y-slider { margin: 0 0 10px; border-radius: 0; }
  .s4y-slide img { min-height: 0; aspect-ratio: 16 / 9; }
  .s4y-slide-text { position: static; transform: none; max-width: none; border-radius: 0; box-shadow: none; padding: 20px 16px 44px; }
  .s4y-slide-text h1, .s4y-slide-text h2 { font-size: 1.5em; }
  .s4y-slider-arrow { top: 28vw; width: 38px; height: 38px; font-size: 1.5rem; }
}

/* ---------- section title (centered, gradient underline, orange small) ---------- */
.s4y-title { text-align: center; color: var(--blue); font-size: 2em; margin: 35px 0 22px; padding-bottom: 12px; position: relative; }
.s4y-title::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 80px; height: 3px; border-radius: 2px; background: var(--blue-grad); }
.s4y-title small { display: block; font-size: .45em; color: var(--orange); font-weight: 500; text-transform: uppercase; letter-spacing: 3px; margin-top: 8px; }
@media (max-width: 768px) { .s4y-title { font-size: 1.6em; } }

/* ---------- buttons ---------- */
.s4y-btn {
  display: inline-block; background: var(--blue-grad); color: #fff; padding: 12px 30px; border-radius: 50px; border: 0;
  font: 600 .9em/1.2 var(--font); text-transform: uppercase; letter-spacing: .5px; text-decoration: none; cursor: pointer; transition: all .3s ease;
}
.s4y-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30, 136, 229, .4); }
.s4y-btn--promo { background: var(--promo-grad); }
.s4y-btn--ghost { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.s4y-btn--ghost:hover { background: var(--blue); }

/* ---------- intro / info boxes ---------- */
.s4y-intro { background: var(--bg-soft); padding: 25px 30px; border-radius: var(--radius); border-left: 5px solid var(--blue); margin-bottom: 25px; }
.s4y-intro p { color: var(--muted); }
.s4y-intro strong { color: var(--blue); }
.s4y-info { background: #fff; padding: 25px 30px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 20px; }
.s4y-info h2, .s4y-info h3 { color: var(--blue); }
.s4y-info > h2:first-child, .s4y-info > h3:first-child { padding-bottom: 10px; border-bottom: 3px solid var(--blue); margin-bottom: 14px; }
.s4y-info h4 { color: var(--blue); margin-top: 18px; font-size: 1.15em; }
.s4y-info p, .s4y-info li { color: var(--muted); }
.s4y-warning { background: #fff3cd; padding: 14px 18px; border-radius: 10px; border-left: 4px solid #ffc107; margin: 14px 0; color: var(--muted); }
.s4y-warning strong { color: #b8860b; }
.s4y-phonebar { margin-top: 18px; background: var(--blue); color: #fff; padding: 14px 18px; border-radius: 10px; font-size: 1.15em; text-align: center; }
.s4y-phonebar a { color: #fff; font-weight: 700; }
@media (max-width: 768px) { .s4y-intro, .s4y-info { padding: 18px 16px; } }

/* "pe scurt" facts box — short factual summary for people and AI answers */
.s4y-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 15px 0 0; padding: 0; }
.s4y-facts div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: center; font-size: .92em; color: var(--muted); }
.s4y-facts dt { font-size: .8em; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.s4y-facts dd { margin: 2px 0 0; color: var(--blue); font-weight: 700; }

/* ---------- lists ---------- */
.s4y-check { list-style: none; padding: 0; margin: 0 0 14px; }
.s4y-check li { position: relative; padding: 4px 0 4px 24px; color: var(--muted); }
.s4y-check li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ---------- grids & cards ---------- */
.s4y-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.s4y-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.s4y-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.s4y-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 5px 20px rgba(0, 0, 0, .08); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.s4y-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.s4y-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #f0f0f0; }
.s4y-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.s4y-card:hover .s4y-card-img img { transform: scale(1.08); }
.s4y-card-head { background: var(--blue-grad); color: #fff; padding: 14px 20px; text-align: center; }
.s4y-card-head h3, .s4y-card-head h4 { color: #fff; margin: 0; }
.s4y-card-label { font-size: .8em; text-transform: uppercase; letter-spacing: 1.5px; opacity: .9; }
.s4y-card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.s4y-card-body h3, .s4y-card-body h4 { color: var(--blue); font-size: 1.15em; }
.s4y-card-body h3 a, .s4y-card-body h4 a { color: inherit; text-decoration: none; }
.s4y-card-body p { color: var(--muted); font-size: .95em; }
.s4y-card-body .s4y-btn { margin-top: auto; align-self: flex-start; }

/* homepage calculators */
.s4y-calc h3 { font-size: 1em; color: var(--text); margin-top: 14px; }
.s4y-calc-out { margin: 12px 0 0; font-weight: 700; color: var(--blue); min-height: 1.6em; }

/* level / step cards */
.s4y-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 16px 0; }
.s4y-step { background: var(--bg-soft); border-radius: 12px; padding: 18px; border-top: 4px solid var(--blue); }
.s4y-step-num { font-size: .8em; text-transform: uppercase; letter-spacing: 1.5px; color: var(--orange); font-weight: 700; margin: 0; }
.s4y-step h3 { color: var(--blue); margin: 2px 0 8px; }
.s4y-step p { color: var(--muted); font-size: .95em; margin: 0; }

/* schedule table */
.s4y-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); margin: 10px 0 18px; }
.s4y-table th { background: var(--blue-grad); color: #fff; padding: 10px 14px; text-align: left; font-size: .92em; }
.s4y-table td { padding: 8px 14px; border-bottom: 1px solid #f0f0f0; color: var(--muted); font-size: .95em; }
.s4y-table tr:nth-child(even) td { background: var(--bg-soft); }

/* stats */
.s4y-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.s4y-stat { text-align: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; padding: 16px 10px; }
.s4y-stat strong { display: block; font-size: 2em; line-height: 1.1; }
.s4y-stat-icon { width: 50px; height: 50px; margin: 0 auto 8px; }
.s4y-stat h3 { font-size: .95em; font-weight: 500; margin: 6px 0 0; color: inherit; }

/* dark band with background photo */
.s4y-band { position: relative; color: #fff; padding: 50px 20px; background: #0d3c6e center / cover no-repeat; isolation: isolate; }
.s4y-band::before { content: ""; position: absolute; inset: 0; background: rgba(13, 60, 110, .82); z-index: -1; }
.s4y-band .s4y-title { color: #fff; }
.s4y-band > div { max-width: var(--wrap); margin: 0 auto; }

/* gallery */
.s4y-gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.s4y-gallery a, .s4y-gallery figure { display: block; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.s4y-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.s4y-gallery a:hover img { transform: scale(1.08); }

/* gallery slideshow (main.js): click a photo -> full screen, arrows / keys / swipe */
.s4y-lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(8, 20, 35, .94); }
.s4y-lb.is-open { display: flex; }
.s4y-lb figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.s4y-lb img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.s4y-lb figcaption { color: #fff; font-size: .95em; text-align: center; margin-top: 10px; opacity: .9; }
.s4y-lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 26px; line-height: 48px; padding: 0; }
.s4y-lb button:hover, .s4y-lb button:focus-visible { background: rgba(255, 255, 255, .3); }
.s4y-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.s4y-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.s4y-lb-close { right: 16px; top: 16px; }
.s4y-lb-count { position: absolute; left: 16px; top: 22px; color: #fff; font-size: .9em; opacity: .8; }
@media (max-width: 768px) { .s4y-lb-prev, .s4y-lb-next { top: auto; bottom: 16px; transform: none; } }

/* person card */
.s4y-person { display: flex; gap: 20px; align-items: center; background: var(--bg-soft); border-radius: var(--radius); padding: 20px; }
.s4y-person img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; flex: none; }
.s4y-person h3 { margin: 0; color: var(--blue); }
.s4y-person p { margin: 4px 0; }
@media (max-width: 560px) { .s4y-person { flex-direction: column; text-align: center; } }

/* ---------- FAQ ---------- */
.s4y-faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.s4y-faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 600; color: var(--blue); position: relative; list-style: none; }
.s4y-faq summary::-webkit-details-marker { display: none; }
.s4y-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4em; color: var(--orange); }
.s4y-faq[open] summary::after { content: "–"; }
.s4y-faq > div { padding: 0 18px 14px; color: var(--muted); }

/* ---------- CTA ---------- */
.s4y-cta { text-align: center; background: var(--blue-grad); color: #fff; border-radius: var(--radius); padding: 40px 20px; margin: 30px 0; }
.s4y-cta h2 { color: #fff; }
.s4y-cta p { color: rgba(255, 255, 255, .95); }
.s4y-cta .s4y-btn { background: #fff; color: var(--blue); }

/* ---------- content pages (converted from WordPress) ---------- */
.s4y-content { line-height: 1.7; }
.s4y-content h2, .s4y-content h3 { color: var(--blue); }
.s4y-content h4, .s4y-content h5, .s4y-content h6 { color: var(--text); margin-top: 1.2em; }
.s4y-content ul, .s4y-content ol { padding-left: 1.3em; margin: 0 0 1em; }
.s4y-content li { margin-bottom: .3em; }
.s4y-content ul.s4y-check { padding-left: 0; }
.s4y-content img { border-radius: 10px; }
.s4y-content table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: .95em; }
.s4y-content th, .s4y-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.s4y-content th, .s4y-content tr:first-child td strong { color: var(--blue); }
.s4y-content iframe { max-width: 100%; border-radius: 10px; }

/* 12-column rows (from the old page builder) */
.s4y-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: 10px; }
.s4y-col { grid-column: span 12; min-width: 0; }
.s4y-col-1 { grid-column: span 1; } .s4y-col-2 { grid-column: span 2; } .s4y-col-3 { grid-column: span 3; }
.s4y-col-4 { grid-column: span 4; } .s4y-col-5 { grid-column: span 5; } .s4y-col-6 { grid-column: span 6; }
.s4y-col-7 { grid-column: span 7; } .s4y-col-8 { grid-column: span 8; } .s4y-col-9 { grid-column: span 9; }
.s4y-col-10 { grid-column: span 10; } .s4y-col-11 { grid-column: span 11; } .s4y-col-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .s4y-col-1, .s4y-col-2, .s4y-col-3 { grid-column: span 6; }
  .s4y-col-4, .s4y-col-5, .s4y-col-6, .s4y-col-7, .s4y-col-8, .s4y-col-9 { grid-column: span 12; }
}
@media (max-width: 560px) { .s4y-col { grid-column: span 12 !important; } }

/* section heading with a line (old "separator with title") */
.s4y-sep { color: var(--blue) !important; font-size: 1.15em; text-transform: uppercase; letter-spacing: .5px;
           border-bottom: 3px solid var(--blue); padding-bottom: 6px; margin: 24px 0 12px; }
.s4y-hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.s4y-note { background: #e3f2fd; padding: 14px 18px; border-radius: 10px; border-left: 4px solid var(--blue); margin: 14px 0; color: var(--muted); }
.s4y-note p:last-child, .s4y-warning p:last-child { margin-bottom: 0; }

.s4y-iconbox { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; border-top: 4px solid var(--blue); height: 100%; }
.s4y-iconbox > :first-child { margin-top: 0; }
.s4y-iconbox h4, .s4y-iconbox h5 { margin: 0 0 4px; }
.s4y-iconbox p { margin: 0; color: var(--muted); }

.s4y-figure { margin: 0 0 16px; }
.s4y-figure img { width: 100%; }
.s4y-figure figcaption { font-size: .85em; color: var(--muted); margin-top: 6px; text-align: center; }

.s4y-btn-row { margin: 16px 0; text-align: center; }
.s4y-cta h4, .s4y-cta h3 { color: #fff; }

/* accordions (old tabs/toggles; text stays in the page for Google) */
.s4y-accordion { margin: 10px 0 20px; }
.s4y-acc { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.s4y-acc > summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 600; color: var(--blue); position: relative; list-style: none; }
.s4y-acc > summary::-webkit-details-marker { display: none; }
.s4y-acc > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4em; color: var(--orange); }
.s4y-acc[open] > summary::after { content: "–"; }
.s4y-acc > div { padding: 0 18px 14px; }

/* icon boxes (old theme types: row = grey row with a round icon, media = picture beside the text,
   side = small icon on the left, top = icon above) */
.s4y-fa { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -.125em; }
.s4y-ib { position: relative; height: 100%; }
.s4y-ib-body > :first-child { margin-top: 0; }
.s4y-ib-body > :last-child { margin-bottom: 0; }
.s4y-ib-body h4, .s4y-ib-body h5 { margin: 0 0 4px; }
.s4y-ib-body p { color: var(--muted); }
.s4y-ib-icon img { margin: 0 auto; border-radius: 0; }
.s4y-ib--row { background: rgba(0, 0, 0, .05); margin: 0 0 2px 30px; padding: 20px 20px 20px 46px; height: auto; text-align: center; }
.s4y-ib--row .s4y-ib-icon {
  position: absolute; left: -30px; top: 0; bottom: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px #fff; overflow: hidden;
}
.s4y-ib--row .s4y-ib-icon img { width: 32px; height: auto; }
.s4y-ib--row h5 { font-size: 1.1em; }
.s4y-ib--row p { text-transform: uppercase; font-size: .85em; }
.s4y-ib--media { display: grid; grid-template-columns: 46% 1fr; background: rgba(0, 0, 0, .05); margin-bottom: 20px; }
.s4y-ib--media .s4y-ib-icon { display: flex; align-items: center; justify-content: center; padding: 10px; color: var(--blue); font-size: 80px; }
.s4y-ib--media .s4y-ib-body { background: rgba(0, 0, 0, .05); padding: 24px 26px; }
.s4y-ib--media:not(:has(.s4y-ib-icon)) { grid-template-columns: 1fr; }
.s4y-ib--side { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.s4y-ib--side .s4y-ib-icon { flex: none; width: 45px; text-align: center; font-size: 32px; color: var(--blue); line-height: 1; }
.s4y-ib--top { text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 24px 18px; }
.s4y-ib--top .s4y-ib-icon { font-size: 46px; color: var(--blue); margin-bottom: 14px; line-height: 1; }
@media (max-width: 560px) { .s4y-ib--media { grid-template-columns: 1fr; } }

/* lists with the old markers: red cross = not included, check / circletick = included */
.s4y-content ul.s4y-list { list-style: none; padding-left: 0; }
.s4y-list li { position: relative; padding-left: 24px; }
.s4y-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; color: var(--blue); }
.s4y-list--check li::before { content: "✓"; }
.s4y-list--circletick li::before {
  content: "✔"; font-size: .8em; top: .2em; width: 1.3em; height: 1.3em; line-height: 1.3em; text-align: center;
  border-radius: 50%; color: #fff; background: var(--list-color, var(--blue));
}
.s4y-list--cross li::before { content: "✕"; }
.s4y-list--asterisk li::before { content: "✱"; }
.s4y-list--arrow li::before { content: "➜"; }
.s4y-list--red { --list-color: var(--red); }
.s4y-list--lime { --list-color: #7cb342; }
.s4y-list--blue { --list-color: var(--blue); }
.s4y-list--turquoise { --list-color: #00acc1; }
.s4y-list:not(.s4y-list--circletick) li::before { color: var(--list-color, var(--blue)); }

/* full-width band with a background photo inside a content page (old "row background image") */
.s4y-section .s4y-band { margin: 30px calc(50% - 50vw); padding: 50px max(20px, calc(50vw - var(--wrap) / 2 + 20px)); background-size: cover; background-position: center; }
.s4y-section .s4y-band::before { background: rgba(0, 0, 0, .25); }
.s4y-band .s4y-cta { background: rgba(0, 0, 0, .6); border-radius: 0; margin: 0 auto; max-width: 1000px; }
.s4y-band h2, .s4y-band h3, .s4y-band h4, .s4y-band p, .s4y-band li { color: #fff; }
.s4y-band .s4y-ib--row { background: rgba(255, 255, 255, .12); }
body { overflow-x: clip; }

/* tabs (old tab widgets): all panels are in the HTML; without JavaScript they simply follow each other */
.s4y-tabs { margin: 16px 0 24px; }
.s4y-tablist { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.s4y-tablist button {
  font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent;
  padding: 10px 16px; margin-bottom: -2px; cursor: pointer;
}
.s4y-tablist button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.s4y-tabs.is-ready .s4y-tab-title { display: none; }
.s4y-tabs.is-ready .s4y-tab[hidden] { display: none; }

/* slideshows inside content pages */
.s4y-content .s4y-slider { margin: 20px 0; }
.s4y-slider--photos .s4y-slide img { width: 100%; height: clamp(240px, 36vw, 450px); aspect-ratio: auto; min-height: 0; object-fit: cover; border-radius: 0; }
.s4y-slider--cards { background: transparent; overflow: visible; padding-bottom: 40px; }
.s4y-slider--cards .s4y-slider-arrow { display: none; }
.s4y-slider--cards .s4y-slider-dots { bottom: 0; }
.s4y-slider--cards .s4y-slider-dots button { border-color: var(--blue); }
.s4y-slider--cards .s4y-slider-dots button[aria-current="true"] { background: var(--blue); }

/* price boxes */
.s4y-price { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 12px; padding: 16px; text-align: center; height: 100%; }
.s4y-price h4 { margin: 0 0 6px; color: var(--blue); }
.s4y-price-tag { font-size: 1.4em; font-weight: 700; color: var(--blue); margin: 6px 0; }
.s4y-price p { color: var(--muted); }

/* stats inside normal pages */
.s4y-content .s4y-stat { background: var(--blue-grad); color: #fff; border: 0; }

/* updated-on line */
.s4y-updated { font-size: .82rem; color: #888; text-align: right; margin: 20px 0 0; }

/* ---------- forms ---------- */
.s4y-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 25px 30px; box-shadow: var(--shadow); }
.s4y-form h2 { color: var(--blue); font-size: 1.3em; margin: 10px 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--blue); }
.s4y-form .req { color: var(--red); font-weight: 700; }
.s4y-form-title { font-size: 1.3em; color: var(--blue); margin: 0 0 4px; }
.s4y-form-hint { font-size: .88em; color: var(--muted); margin: 0 0 18px; }
.s4y-form-sec {
  margin: 28px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--line);
  color: var(--blue); font-weight: 700; font-size: .9em; text-transform: uppercase; letter-spacing: .6px;
}
/* forms imported from WordPress: <label>Text <input></label>, checkbox lists, question text + radio DA/NU */
.s4y-form label { display: block; font-weight: 600; font-size: .92em; margin: 0 0 16px; }
.s4y-form label:empty { display: none; }
.s4y-form .s4y-row { gap: 0 16px; margin-bottom: 0; }
.s4y-form label > input:not([type="checkbox"]):not([type="radio"]),
.s4y-form label > select, .s4y-form label > textarea, .s4y-form .s4y-col > select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid #cfd6dd; border-radius: 10px;
  font: inherit; font-weight: 400; color: var(--text); background: #fff;
}
.s4y-form .s4y-col > select { margin-bottom: 16px; }
.s4y-form label > textarea { min-height: 110px; resize: vertical; }
.s4y-form > input[type="text"] {   /* "Subsemnatul * [____] in calitate de parinte..." */
  display: inline-block; width: min(320px, 100%); margin: 4px 6px; padding: 8px 12px;
  border: 1px solid #cfd6dd; border-radius: 10px; font: inherit; background: #fff;
}
.s4y-form label:has(> input[type="checkbox"]), .s4y-form label:has(> input[type="radio"]) {
  display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer;
}
.s4y-form input[type="checkbox"], .s4y-form input[type="radio"] { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--blue); }
/* checkbox lists and radio choices as tappable boxes; the single consent checkbox stays plain */
.s4y-form label:has(> input[type="checkbox"][name$="[]"]), .s4y-form label:has(> input[type="radio"]) {
  margin: 0 0 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
  transition: border-color .15s, background .15s;
}
.s4y-form label:has(> input[type="checkbox"][name$="[]"]):hover, .s4y-form label:has(> input[type="radio"]):hover { border-color: #b9d7f5; }
.s4y-form label:has(> input[type="checkbox"][name$="[]"]:checked), .s4y-form label:has(> input[type="radio"]:checked) { border-color: var(--blue); background: var(--blue-soft); }
.s4y-form label:has(> input[type="radio"]) { display: inline-flex; min-width: 96px; margin: 8px 8px 16px 0; }
.s4y-form .s4y-col > label:has(> input[type="radio"]) { display: flex; margin: 0 0 8px; }
.s4y-form label:has(> input[type="checkbox"]:not([name$="[]"])) { color: var(--muted); margin: 18px 0; }
.s4y-form label > input[type="checkbox"] ~ input[type="text"] { flex: 1; min-width: 0; margin: -4px 0; padding: 6px 10px; }
.s4y-form [type="submit"] { margin-top: 10px; }
.s4y-form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 16px; }
.s4y-field label { display: block; font-weight: 600; font-size: .92em; margin-bottom: 6px; }
.s4y-field input, .s4y-field select, .s4y-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #cfd6dd; border-radius: 10px; font: inherit; color: var(--text); background: #fff;
}
.s4y-field textarea { min-height: 110px; resize: vertical; }
.s4y-field input:focus, .s4y-field select:focus, .s4y-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 136, 229, .18); }
.s4y-field [aria-invalid="true"] { border-color: var(--red); }
.s4y-form label > input:focus, .s4y-form label > select:focus, .s4y-form label > textarea:focus,
.s4y-form .s4y-col > select:focus, .s4y-form > input[type="text"]:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 136, 229, .18);
}
.s4y-form label > input[type="checkbox"]:focus-visible, .s4y-form label > input[type="radio"]:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; box-shadow: none; }
.s4y-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92em; color: var(--muted); margin: 6px 0 18px; }
.s4y-consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.s4y-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.s4y-form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 10px; display: none; }
.s4y-form-msg.is-ok { display: block; background: #e8f5e9; color: #2e7d32; }
.s4y-form-msg.is-err { display: block; background: #fdecea; color: #c62828; }
@media (max-width: 768px) { .s4y-form { padding: 18px 16px; } .s4y-form [type="submit"] { width: 100%; } }

/* ---------- footer ---------- */
.s4y-footer { margin-top: 50px; background: #0f2a44; color: #c9d6e3; font-size: .93rem; }
.s4y-footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 40px 20px 20px; display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.s4y-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.s4y-footer a { color: #fff; text-decoration: none; }
.s4y-footer a:hover { color: #90caf9; }
.s4y-footer ul { list-style: none; padding: 0; margin: 0; }
.s4y-footer li { padding: 3px 0; }
.s4y-footer-col img { width: 170px; background: #fff; border-radius: 8px; padding: 6px 10px; margin-bottom: 12px; }
.s4y-social { display: flex; flex-wrap: wrap; gap: 8px; }
.s4y-social a { background: rgba(255, 255, 255, .1); padding: 6px 14px; border-radius: 50px; }
.s4y-copy { text-align: center; margin: 0; padding: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* floating call button: the number on wide screens, a round button on phones */
.s4y-callbtn {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; height: 52px; padding: 0 20px 0 16px; border-radius: 50px;
  background: var(--blue-grad); color: #fff; display: flex; align-items: center; gap: 8px; font-size: 1.25rem;
  text-decoration: none; box-shadow: 0 6px 20px rgba(30, 136, 229, .5); transition: transform .2s, box-shadow .2s;
}
.s4y-callbtn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(30, 136, 229, .55); }
.s4y-callbtn-num { font-size: .95rem; font-weight: 700; letter-spacing: .3px; }
@media (max-width: 768px) {
  .s4y-callbtn { width: 56px; height: 56px; padding: 0; justify-content: center; right: 16px; bottom: 16px; font-size: 1.5rem; }
  .s4y-callbtn-num { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
