/* Rapid Plzeň Tenis – návrh nového webu (statická ukázka) */
:root {
  --blue: #1F4E9D;
  --blue-dark: #173E80;
  --navy: #0E1F47;
  --text: #33456B;
  --muted: #4A5C82;
  --line: #DCE6F5;
  --pale: #EEF4FD;
  --paler: #F5F8FD;
  --yellow: #E8DC2E;
  --yellow-pale: #FBF9D9;
  --radius: 32px;
  --head: 'Signika', 'Trebuchet MS', sans-serif;
  --body: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--navy); background: #fff; font-size: 17px; line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 5px; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 300; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h1 strong, h2 strong { font-weight: 600; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.demo-bar { background: var(--paler); color: var(--muted); font-size: 13px; text-align: center; padding: 8px 16px; }

/* Hlavička */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-family: var(--head); font-size: 20px; font-weight: 500; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; }
.nav a { color: var(--text); text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); }
.nav > a[aria-current="page"], .nav-item > a[aria-current="page"], .nav a.is-active { color: var(--navy); font-weight: 500; border-bottom-color: var(--blue); }
.nav > a, .nav-item > a { display: inline-block; }
.nav-item { position: relative; }
.nav-item > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.drop { display: none; position: absolute; top: 100%; left: -18px; z-index: 20; min-width: 230px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px rgba(14, 31, 71, .10); flex-direction: column; }
.nav-item:hover .drop, .nav-item:focus-within .drop { display: flex; }
.drop a { padding: 9px 14px; border: 0; border-radius: 10px; white-space: nowrap; }
.drop a:hover { background: var(--pale); }
.drop a[aria-current="page"] { color: var(--navy); font-weight: 500; background: var(--paler); }
@media (hover: none) { .nav-item .drop { display: none !important; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 15px; }
.actions .plain { color: var(--text); text-decoration: none; padding: 12px 0; }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 32px; border-radius: 999px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-ghost { background: #fff; color: var(--blue); }
.btn-ghost:hover { background: var(--pale); color: var(--blue); }
.btn-quiet { background: #fff; color: var(--navy); border-color: #7F93BB; }
.btn-quiet:hover { background: var(--paler); color: var(--navy); }
.btn-block { width: 100%; }
.link { font-weight: 500; }

.eyebrow { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.eyebrow.muted { color: var(--muted); }
.underline { position: relative; display: inline-block; font-weight: 600; }
.underline svg { position: absolute; left: 0; bottom: -0.2em; width: 100%; height: 0.22em; }

/* Úvod */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 80px; padding-top: 96px; padding-bottom: 120px; }
.hero-text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.hero h1 { font-size: clamp(52px, 7.2vw, 84px); line-height: 1.04; letter-spacing: -0.02em; }
.lead { font-size: 20px; color: var(--text); max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; margin-top: 8px; }
.hero-mark { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero-mark div { width: 420px; max-width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--pale); display: flex; align-items: center; justify-content: center; }
.hero-mark img { height: 72%; width: auto; }

.facts { display: flex; flex-wrap: wrap; gap: 28px 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.fact { flex: 1 1 200px; display: flex; align-items: baseline; gap: 14px; color: var(--text); }
.fact b { font-family: var(--head); font-size: 52px; font-weight: 300; line-height: 1; color: var(--blue); }

/* Sekce */
.section { padding-top: 128px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 56px; }
.section h2 { font-size: clamp(34px, 4vw, 44px); }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { border-radius: var(--radius); border: 1px solid var(--line); padding: 30px 40px; text-decoration: none; color: var(--navy); display: flex; flex-direction: column; gap: 6px; transition: transform .2s, border-color .2s; }
.tile:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--navy); }
.tile h3 { font-size: 24px; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.tile p { color: var(--text); }
.tile .more { color: var(--blue); font-weight: 500; margin-top: 6px; }
.tile-big { grid-column: span 2; grid-row: span 2; min-height: 420px; background: var(--pale); border-color: transparent; padding: 0; gap: 0; overflow: hidden; }
.tile-big img { flex: 1 1 240px; min-height: 240px; height: 240px; width: 100%; object-fit: cover; display: block; }
.tile-big div { display: flex; flex-direction: column; gap: 8px; padding: 28px 40px 36px; }
.tile-big div p { max-width: 440px; }
.tile-yellow { background: var(--yellow-pale); border-color: transparent; justify-content: flex-end; padding: 36px 40px; gap: 8px; }
.tile-big h3, .tile-yellow h3 { font-size: 32px; }

.photo { background: var(--pale); border-radius: 24px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; padding: 0 16px; }
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px 40px; }
.news article { display: flex; flex-direction: column; gap: 20px; }
.news .photo { height: 210px; }
img.photo { display: block; width: 100%; padding: 0; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.news h3 { font-size: 24px; font-weight: 500; letter-spacing: 0; line-height: 1.25; }
.news h3 a { color: var(--navy); text-decoration: none; }
.news h3 a:hover { color: var(--blue); }
.news p { color: var(--text); margin-top: 8px; }

.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 72px; border-top: 1px solid var(--line); padding-top: 36px; font-family: var(--head); font-size: 22px; color: var(--text); }
.partners a { display: flex; }
.partners img { height: 52px; width: auto; display: block; }

/* Sponzoři */
.page-hero { padding-top: 96px; display: flex; flex-direction: column; gap: 26px; }
.page-hero h1 { font-size: clamp(44px, 6.2vw, 72px); letter-spacing: -0.02em; }
.sub h2 { font-size: 36px; margin-bottom: 36px; }
.sub { padding-top: 104px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.logo-card { height: 190px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 0 16px; font-family: var(--head); font-size: 24px; font-weight: 500; }
.logo-card { text-decoration: none; transition: border-color .2s; }
a.logo-card:hover { border-color: var(--blue); }
.logo-card img { max-height: 76px; max-width: 78%; width: auto; height: auto; }
.logo-slot { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--muted); }
.logo-slot { height: 130px; background: var(--paler); border-radius: 24px; display: flex; align-items: center; justify-content: center; }
.cta-band { background: var(--yellow-pale); border-radius: var(--radius); padding: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band h2 { font-size: 36px; line-height: 1.15; margin-bottom: 8px; }
.cta-band p { color: var(--text); }

/* Podstránky: tabulky, texty, podmenu */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 36px; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 15px; }
.subnav a:hover { border-color: var(--blue); color: var(--navy); }
.subnav a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-hero .back { align-self: flex-start; padding: 0; }
.page-hero .lead { max-width: 860px; }
.sub h3, .article h3 { font-size: 24px; font-weight: 500; letter-spacing: 0; line-height: 1.25; margin: 36px 0 14px; }
.sub h2 .small { font-family: var(--body); font-size: 15px; margin-left: 14px; }
.prose, .article > p, .article > ul, .article > ol { max-width: 720px; color: var(--text); }
p.prose + p.prose, .article > p + p { margin-top: 16px; }
ul.prose, .article > ul, .article > ol { padding-left: 22px; margin: 16px 0; }
ul.prose li, .article li { margin: 6px 0; }
.prose b, .article b { color: var(--navy); font-weight: 500; }
.sub .hint { max-width: 720px; margin-top: 14px; }
.table-scroll { overflow-x: auto; max-width: 860px; margin: 8px 0 4px; }
.data { width: 100%; border-collapse: collapse; }
.data th, .data td { text-align: left; padding: 12px 20px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.data td:last-child, .data th:last-child { padding-right: 0; }
.data tr.own td { background: var(--yellow-pale); }
.data tr.own td:first-child { box-shadow: -12px 0 0 var(--yellow-pale); }
.data tr.own td:last-child { box-shadow: 12px 0 0 var(--yellow-pale); }
.standings td:nth-child(n+3), .standings th:nth-child(n+3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.standings td:first-child { color: var(--muted); width: 36px; }
.results td:first-child { color: var(--muted); white-space: nowrap; }
.results td:last-child { white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
.team-info { color: var(--text); margin-bottom: 12px; }
.doc-list { list-style: none; margin: 0; padding: 0; max-width: 860px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 32px; }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc-list a { display: block; padding: 12px 0; text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }
.bento-even .tile { min-height: 130px; }
.article { padding-top: 56px; }
.article-photo { display: block; width: auto; height: auto; max-width: min(100%, 720px); max-height: 560px; border-radius: 24px; margin-bottom: 32px; }
.article .table-scroll, .article .gallery { margin: 20px 0; }
.article .gallery { max-width: 860px; }
ol.cols { columns: 3 180px; max-width: 860px; }
.news article > a { display: block; }
@media (max-width: 600px) { .data { font-size: 15px; } .data th, .data td { padding-right: 14px; } }

/* Patička */
.site-footer { background: var(--paler); margin-top: 120px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 36px 72px; padding-top: 64px; padding-bottom: 64px; font-size: 15px; color: var(--text); }
.footer-grid > div { flex: 1 1 150px; display: flex; flex-direction: column; gap: 6px; }
.footer-grid > .footer-brand { flex-basis: 260px; flex-direction: row; align-items: flex-start; gap: 16px; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand b { font-family: var(--head); font-size: 18px; display: block; }
.footer-grid b { font-weight: 500; color: var(--navy); }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--blue); }

/* Členská zóna */
.app { max-width: 480px; margin: 0 auto; padding: 20px 24px 40px; min-height: 100vh; display: flex; flex-direction: column; gap: 28px; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.app-top .brand { font-size: 14px; font-family: var(--body); font-weight: 400; color: var(--muted); }
.app-top .brand img { height: 36px; }
.back { font-size: 15px; text-decoration: none; padding: 12px 0; display: inline-block; }
.app h1 { font-size: 40px; line-height: 1.05; }
.app .meta { color: var(--muted); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 500; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid #C6D4EC; background: #fff; color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.training { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.training .when { font-family: var(--head); font-size: 22px; font-weight: 500; display: block; }
.training small { font-size: 14px; color: var(--muted); }
.training.excused .when { color: var(--muted); }
.badge { display: inline-block; background: var(--yellow-pale); border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 500; color: var(--navy); }
.textbtn { font: inherit; min-height: 44px; padding: 0 4px; border: none; background: none; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.app-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.app-foot.two { flex-direction: row; gap: 10px; }
.app-foot.two .btn { flex: 1; padding: 0 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--paler); border-radius: 999px; padding: 4px; }
.seg button { font: inherit; min-height: 44px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; border-color: #C6D4EC; color: var(--navy); font-weight: 500; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--muted); }
.field input { font: inherit; min-height: 50px; width: 100%; padding: 0 16px; border: 1px solid #7F93BB; border-radius: 16px; color: var(--navy); background: #fff; }
.summary { background: var(--paler); border-radius: 24px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.summary b { font-family: var(--head); font-size: 20px; font-weight: 500; color: var(--navy); }
.hint { font-size: 14px; color: var(--muted); }
.stats { display: flex; gap: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; color: var(--text); }
.stats span { display: flex; align-items: baseline; gap: 10px; }
.stats b { font-family: var(--head); font-size: 44px; font-weight: 300; line-height: 1; color: var(--navy); }
.stats .in b { color: var(--blue); }
.roster { list-style: none; margin: 0; padding: 0; }
.roster li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF2F9; }
.roster li:last-child { border-bottom: none; }
.roster .in { font-size: 14px; color: var(--blue); }
.roster .out { color: var(--muted); }

/* Obsazenost kurtů */
.occ-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.occ-bar .seg { min-width: 220px; }
.occ-sum { color: var(--text); margin-bottom: 20px; }
.occ-sum b { font-family: var(--head); font-size: 32px; font-weight: 300; color: var(--blue); margin-right: 6px; }
.occ-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 24px; padding: 8px 16px 16px 8px; }
.occ-grid { display: grid; column-gap: 8px; min-width: 340px; }
.occ-court { grid-row: 1; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 18px; font-weight: 500; }
.occ-time { grid-column: 1; font-size: 13px; color: var(--muted); text-align: right; padding-right: 10px; transform: translateY(-9px); }
.occ-cell { border-top: 1px dashed #EEF2F9; }
.occ-cell.hour { border-top: 1px solid var(--line); }
.occ-block { border-radius: 10px; margin: 1px 0; padding: 2px 10px; font-size: 13px; line-height: 1.3; overflow: hidden; display: flex; flex-direction: column; justify-content: center; z-index: 1; }
.occ-block b { font-weight: 500; }
.occ-block span { color: var(--text); }
.occ-block.is-occupied { background: #D6E5FB; color: var(--navy); }
.occ-block.is-training { background: var(--yellow-pale); border: 1px solid #E3D95A; color: var(--navy); }
.occ-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 14px; color: var(--text); }
.occ-legend span { display: inline-flex; align-items: center; gap: 8px; }
.occ-dot { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.occ-dot.is-occupied { background: #D6E5FB; border-color: #D6E5FB; }
.occ-dot.is-training { background: var(--yellow-pale); border-color: #E3D95A; }
.occ-src { margin-top: 10px; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .tile-big { grid-column: auto; grid-row: auto; min-height: 300px; }
  .hero { padding-top: 56px; padding-bottom: 80px; }
  .section { padding-top: 88px; }
  .cta-band { padding: 36px 28px; }
  .wrap { padding-left: 22px; padding-right: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
