/* xbowlingclub.cz – úvodní stránka, vzhled „Klubový dres“: barvy loga (modrá, oranžová), bílá horní lišta s logem, pruh barev dresů. */
:root {
  --blue: #1464b4;        /* modrá z loga */
  --blue-dark: #0b4a8c;
  --orange: #f06e28;      /* oranžová koule z loga */
  --orange-dark: #d2561a;
  --ink: #0d1b3d;
  --muted: #5b6785;
  --bg: #f4f6fb;
  --card: #fff;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
main:focus { outline: none; }

/* hlavička */
.site-header { background: #fff; color: var(--ink); position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 #e3e8f2; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .03em; }
.brand__logo { height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; font-weight: 600; color: var(--blue-dark); }
.site-nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.site-nav .site-nav__login { background: var(--orange); color: #fff; padding: 8px 18px; border-radius: 999px; }
.site-nav .site-nav__login:hover { background: var(--orange-dark); color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--blue-dark); padding: 10px; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.jersey { height: 10px; background: linear-gradient(115deg, #e5322d 0 12%, #f6b400 12% 24%, #2bb24c 24% 36%, var(--orange) 36% 48%, #7a3fd1 48% 60%, #f6b400 60% 72%, #e5322d 72% 84%, #2bb24c 84%); }

/* úvodní fotka */
.hero { position: relative; color: #fff; background: var(--blue-dark); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,74,140,.95) 0%, rgba(20,100,180,.78) 45%, rgba(20,100,180,.12) 100%); }
.hero__inner { position: relative; z-index: 1; padding: 96px 16px 104px; }
.hero__kicker { margin: 0 0 10px; font-weight: 700; color: #ffd2b0; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); margin: 0 0 16px; max-width: 640px; font-weight: 900; }
.hero__text { font-size: 19px; max-width: 520px; margin: 0 0 28px; opacity: .92; }
.hero__cta { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dark); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.24); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }

/* oddíly */
.section { padding: 72px 0; }
.section h2 { font-size: 34px; margin: 0 0 8px; font-weight: 900; color: var(--blue); }
.lead { color: var(--muted); margin: 0 0 32px; max-width: 640px; font-size: 17px; }
.section--blue { background: var(--blue); color: #fff; }
.section--blue h2 { color: #fff; }
.section--blue .lead { color: rgba(255,255,255,.82); }
.section--light { background: #fff; }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark .lead { color: rgba(255,255,255,.78); }

.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.level { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: 0 6px 24px rgba(13,27,61,.07); border-top: 6px solid var(--orange); }
.level:nth-child(2) { border-top-color: var(--blue); }
.level:nth-child(3) { border-top-color: #e5322d; }
.level__tag { margin: 0; font-size: 13px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; }
.level h3 { margin: 6px 0 10px; font-size: 21px; }
.level p { color: var(--muted); margin: 0; }
.level .level__tag { color: var(--orange); }
.schedule { margin-top: 32px; background: var(--card); border-radius: var(--radius); padding: 22px 26px; }
.schedule h3 { margin: 0 0 10px; }
.schedule table { border-collapse: collapse; width: 100%; }
.schedule th, .schedule td { text-align: left; padding: 8px 12px 8px 0; border-top: 1px solid #e6eaf3; }

.results { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.results__list { list-style: none; margin: 0; padding: 0; }
.result { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.result b { display: block; font-size: 17px; }
.result__detail { opacity: .8; font-size: 14px; }
.results__note { margin: 20px 0 0; opacity: .85; font-size: 15px; }
.medal { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: var(--blue-dark); font-size: 15px; }
.medal--gold { background: #f6c945; }
.medal--silver { background: #d9dee8; }
.medal--bronze { background: #d99a5b; }
.medal--plain { background: #fff; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* height: auto – jinak výška z atributu height="640" přebije poměr stran a fotka se roztáhne */
.photos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }

.coaches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.coach { display: flex; gap: 18px; align-items: flex-start; background: var(--card); border-radius: var(--radius); padding: 22px; }
.coach h3 { margin: 0; font-size: 20px; }
.coach p { margin: 4px 0 0; color: var(--muted); }
.coach a { color: var(--blue); font-weight: 600; }
.coach__role { font-weight: 700; color: var(--orange) !important; }
.coach__photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--orange); }
.coach__photo--initials { display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 900; font-size: 26px; }

.members { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; }
.members__list { padding-left: 20px; color: var(--muted); margin: 0 0 24px; }
.members__list li { margin: 6px 0; }
.phone { width: 300px; border-radius: 40px; background: var(--ink); padding: 12px; box-shadow: 0 20px 50px rgba(13,27,61,.3); justify-self: center; }
.phone__screen { background: var(--bg); border-radius: 30px; overflow: hidden; font-size: 14px; padding-bottom: 6px; }
.phone__top { background: var(--blue); color: #fff; padding: 22px 18px 16px; }
.phone__top small { opacity: .8; }
.phone__top b { display: block; font-size: 20px; }
.phone__card { display: block; background: #fff; margin: 12px; border-radius: 16px; padding: 14px; }
.phone__card b { display: block; }
.phone__card > span { display: block; color: var(--muted); font-size: 13px; }
.phone__card--msg { border-left: 4px solid var(--orange); }
.phone__rsvp { display: flex !important; gap: 8px; margin-top: 10px; }
.phone__rsvp span { flex: 1; text-align: center; padding: 9px 0; border-radius: 10px; font-weight: 700; }
.phone__yes { background: #2bb24c; color: #fff; }
.phone__no { background: #eef1f7; color: var(--muted); }
.phone__count { margin-top: 8px; font-size: 12px !important; }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact h3 { margin: 0 0 8px; font-size: 18px; }
.contact p { margin: 4px 0; opacity: .88; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-block; padding: 8px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; text-decoration: none; }
.social a:hover { background: rgba(255,255,255,.1); }

.insta { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--ink); }
.insta img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 30%; opacity: .9; }
.insta a:hover img { opacity: 1; }

.site-footer { background: #08122b; color: rgba(255,255,255,.65); font-size: 14px; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.site-footer p { margin: 0; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; box-shadow: 0 10px 20px rgba(13,27,61,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid #eef1f7; }
  .site-nav .site-nav__login { margin-top: 10px; text-align: center; border-bottom: 0; }
  .levels, .results, .coaches, .members, .contact { grid-template-columns: 1fr; }
  .hero__inner { padding: 64px 16px 72px; }
  .hero::after { background: linear-gradient(180deg, rgba(11,74,140,.7) 0%, rgba(11,74,140,.92) 100%); }
  .section { padding: 56px 0; }
  .section h2 { font-size: 28px; }
  .insta { grid-template-columns: repeat(3, 1fr); }
  .phone { width: 280px; }
}

/* kotvy z menu: nadpis neschovat pod lepící horní lištu */
section[id] { scroll-margin-top: 88px; }
