/* ---------------------------------------------------------------------------
   Doplnkove styly verejnych stranek (uvod, cenik, tenisova skola, kontakt).
   Spolecny zaklad je v site.css - tady jsou jen veci navic, ktere site.css
   nema. Hodnoty vychazeji z navrhu (artboardy Main / Cenik / Skola / Kontakt).
   --------------------------------------------------------------------------- */

/* --- Hero (tmavy pruh pod hlavickou) ----------------------------------- */
.hero {
    background: var(--green-800);
    color: var(--bg);
    padding-top: 48px;
    padding-bottom: clamp(56px, 7vw, 88px);
    /* Natoceny obrazek kurtu nesmi vyrobit vodorovny posuvnik. */
    overflow: hidden;
}
.hero h1 {
    font-size: clamp(36px, 6vw, 80px);
    line-height: 0.98;
    letter-spacing: -0.035em;
}
.hero__inner {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(32px, 4vw, 56px);
    align-items: center;
}
.hero__text { flex: 1 1 480px; min-width: 0; }
.hero__art  { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero__lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--on-dark); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    background: rgba(212, 240, 76, .14);
    color: var(--lime);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: var(--pill);
}
.hero__badge::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(246, 244, 238, .18);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__value { font-family: var(--font-head); font-weight: 700; font-size: 28px; }
.stat__label { color: #B3C6BA; font-size: 15px; }

/* Dekorativni kurt v heru - cisty CSS, zadny obrazek. */
.court-art {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 0.78;
    background: var(--accent);
    border-radius: var(--radius-lg);
    padding: 36px;
    transform: rotate(-4deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .28);
}
.court-art__lines { position: relative; width: 100%; height: 100%; border: 3px solid #FFFFFF; }
.court-art__lines > span { position: absolute; background: #FFFFFF; }
.court-art__side--l  { top: 0; bottom: 0; left: 12%; width: 3px; }
.court-art__side--r  { top: 0; bottom: 0; right: 12%; width: 3px; }
.court-art__serve--t { left: 12%; right: 12%; top: 23%; height: 3px; }
.court-art__serve--b { left: 12%; right: 12%; bottom: 23%; height: 3px; }
.court-art__middle   { left: calc(50% - 1.5px); top: 23%; bottom: 23%; width: 3px; }
.court-art__lines > .court-art__net  { left: -16px; right: -16px; top: calc(50% - 3px); height: 6px; background: var(--ink); border-radius: 3px; }
.court-art__lines > .court-art__ball { right: 22%; top: 34%; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); box-shadow: 0 6px 10px rgba(0, 0, 0, .25); }

.hero__title { max-width: 900px; }

/* --- Obecne rozvrzeni -------------------------------------------------- */
/* Navazujici sekce uz nepotrebuje horni odsazeni. */
.section--tight { padding-top: 0; }
.btn--start { align-self: flex-start; }

.card--accent { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.card--accent a { color: #FFFFFF; }
.card__title { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.lead--on-accent { font-size: clamp(17px, 2vw, 18px); line-height: 1.55; color: #FFFFFF; }

.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 56px); align-items: center; }
.split__col { flex: 1 1 420px; min-width: 0; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}
.section-head p { max-width: 420px; }

.page-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.page-head h1 { font-size: clamp(36px, 5.6vw, 56px); letter-spacing: -0.035em; }

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 48px);
}

/* --- Karty kurtu na uvodu ---------------------------------------------- */
.courts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.court-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: transform .15s ease;
}
.court-card:hover { transform: translateY(-2px); color: var(--ink); }
.court-card__art { position: relative; height: 120px; background: var(--green-600); }
.court-card__art::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 2px solid rgba(255, 255, 255, .75);
}
.court-card__art::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(50% - 1px);
    height: 2px;
    background: rgba(255, 255, 255, .75);
}
.court-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.court-card__body .badge { align-self: flex-start; }
.court-card__price { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.court-card__cta { margin-top: auto; font-weight: 700; color: var(--green-600); }

/* --- Rezervace ve trech krocich ---------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green-800);
    color: var(--lime);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
}

/* --- Dlazdice tenisove skoly ------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 140px;
    padding: 24px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.tile__label { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.tile--dark   { background: var(--green-800); border-color: var(--green-800); color: var(--bg); }
.tile--accent { background: var(--accent);    border-color: var(--accent);    color: #FFFFFF; }

/* --- Cenik ------------------------------------------------------------- */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.price-card { display: flex; flex-direction: column; gap: 8px; }
.price-card__name { font-size: 17px; font-weight: 700; font-family: var(--font-body); letter-spacing: 0; color: var(--green-600); }
.card--dark .price-card__name { color: var(--lime); }
.price-card__amount {
    margin-top: 8px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.03em;
    line-height: 1;
}

.price-court { display: flex; flex-direction: column; gap: 16px; }
.price-court__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 16px;
}

/* Tydenni prehled - rozsah hodin v radku, dny v tydnu ve sloupcich. */
.pw-wrap { overflow-x: auto; }
.pw { width: 100%; min-width: 380px; border-collapse: separate; border-spacing: 3px; }
.pw th { font-weight: 700; padding: 2px; }
.pw thead th { text-align: center; font-size: 15px; }
.pw tbody th { width: 1%; text-align: left; font-size: 13px; font-weight: 600; color: var(--muted-2); white-space: nowrap; padding-right: 8px; }
.pw thead abbr { text-decoration: none; }
.pw td { padding: 0; }
.pw-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
/* Odstiny podle vyse ceny, od nejnizsi po nejvyssi. */
.pw-cell--s1 { background: var(--mint);      color: #17503A; border: 1px solid #C5DCCD; }
.pw-cell--s2 { background: #C6E0D0;          color: #0F2C20; }
.pw-cell--s3 { background: var(--green-300); color: #0B241A; }
.pw-cell--s4 { background: var(--green-600); color: #FFFFFF; }
.pw-cell--s5 { background: var(--green-800); color: var(--bg); }
.pw-cell--none { background: var(--bg); color: var(--muted-2); border: 1px dashed var(--line-2); }

.pw-hint { display: none; }
@media (max-width: 700px) { .pw-hint { display: block; } }

.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__swatch { flex: none; width: 16px; height: 16px; border-radius: 4px; }

.cta-band {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: var(--accent);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 40px);
}
.cta-band h2 { color: #FFFFFF; }

/* --- Kontaktni udaje --------------------------------------------------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.contact-grid__aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-grid__map   { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.contact-line { display: flex; flex-direction: column; gap: 2px; }
.contact-line__label { font-size: 14px; font-weight: 600; color: var(--muted-2); }
.contact-line__value { font-size: 20px; font-weight: 700; }
.card--dark .contact-line__label { color: #B3C6BA; }
.card--dark .contact-line__value a { color: var(--bg); }

.address-big { font-family: var(--font-head); font-size: clamp(24px, 3vw, 28px); font-weight: 700; line-height: 1.15; }

.map {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 380px;
    height: 100%;
    border: 0;
    border-radius: var(--radius);
    background: #E4E8DF;
}
.info-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.info-rows dt { color: var(--muted-2); }
.info-rows dd { margin: 0; font-weight: 600; }
.doc-links { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }

/* --- Formulare --------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-col  { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.form-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.form-wrap { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 40px); }

/* Prepinac "kdo bude trenovat" - obycejne radio prepsane na pilulky. */
/* Fieldset nechavame blokovy - legend se ve flexu chova v prohlizecich jinak. */
.chips-field { border: 0; margin: 0; padding: 0; }
.chips-field > legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.chips-field .field__error { display: block; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--pill);
    border: 1.5px solid var(--line-2);
    background: var(--surface);
    font-weight: 600;
}
.chip input:checked + span { background: var(--green-800); border-color: var(--green-800); color: var(--bg); }
.chip input:focus-visible + span { outline: 3px solid var(--green-600); outline-offset: 2px; }

/* Past na roboty - pro cloveka neviditelna. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-done { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; justify-content: center; }

/* --- Mobil ------------------------------------------------------------- */
@media (max-width: 860px) {
    .section-head { align-items: flex-start; }
    .steps { gap: 24px; }
}

@media (max-width: 600px) {
    .court-art { transform: none; }
    .tiles { grid-template-columns: 1fr; }
    .cta-band .btn { width: 100%; }
}

/* --- Male utility ------------------------------------------------------ */
.self-start { align-self: flex-start; }
/* Dvousloupcove rozvrzeni v ramci .contact-grid (formular + bocni panel). */
.col-main { flex: 2 1 460px; min-width: 0; }
.col-side { flex: 1 1 320px; min-width: 0; }
