/* =========================================================================
   Kontakt
   ========================================================================= */

/* ---------- hero ---------- */

.ct-hero { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--white); isolation: isolate; }
.ct-hero-media { position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -1; }
.ct-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.ct-hero-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(11, 29, 51, .78) 32%, rgba(11, 29, 51, .3) 70%, rgba(11, 29, 51, .15) 100%);
}
.ct-hero-inner { min-height: 208px; padding-top: 16px; padding-bottom: 26px; display: flex; flex-direction: column; justify-content: center; }
.ct-hero .breadcrumb ol { margin-bottom: 10px; }
.ct-hero h1 { margin: 0 0 8px; font-size: clamp(34px, 4.4vw, 62px); font-weight: 800; line-height: 1; text-transform: uppercase; }
.ct-hero h1 span { color: var(--gold); }
.ct-hero-lead { margin: 0 0 10px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; }
.ct-hero p:not(.ct-hero-lead) { margin: 0; max-width: 600px; font-size: 16px; opacity: .92; }

/* ---------- mřížka ---------- */

.ct-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas:
        "form info map"
        "form persons persons"
        "form topics topics";
    grid-template-rows: auto auto 1fr;
    gap: 14px;
    align-items: start;
    margin-top: 14px;
}
.ct-form-card { grid-area: form; }
.ct-info { grid-area: info; align-self: stretch; }
.ct-map { grid-area: map; align-self: stretch; }
.ct-persons { grid-area: persons; }
.ct-topics { grid-area: topics; }

.ct-card {
    padding: 18px 18px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(16, 40, 70, .06);
    scroll-margin-top: 14px;
}
.ct-card .section-title { margin-bottom: 14px; font-size: 19px; }
.ct-title-lg.section-title { font-size: 23px; margin-bottom: 8px; }
.ct-title-lg.section-title::before { height: 26px; }
.ct-intro { margin: 0 0 14px; font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }

/* ---------- formulář ---------- */

.cf { display: flex; flex-direction: column; gap: 12px; }
.cf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cf-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cf-field > label { font-size: 13px; font-weight: 700; color: var(--text); }
.cf-field > label em { color: var(--red); font-style: normal; }
.cf input[type="text"], .cf input[type="email"], .cf input[type="tel"], .cf select, .cf textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #D5D8DD; border-radius: var(--radius-btn);
    background: var(--white);
    font: 500 15px var(--font); color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.cf textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--navy); box-shadow: var(--focus); }
.cf [aria-invalid="true"] { border-color: var(--red); background: #FFF8F8; }
.cf-select { position: relative; display: block; }
.cf-select select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
.cf-select i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; pointer-events: none; }
.cf-under { display: flex; justify-content: space-between; gap: 10px; }
.cf-count { margin-left: auto; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cf-count.is-near { color: var(--gold-dark); font-weight: 700; }
.cf-error { font-size: 12.5px; font-weight: 600; color: var(--red); }

.cf-field > label.cf-check, .cf-check { position: relative; display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.cf-check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.cf-box {
    flex: none; width: 20px; height: 20px; margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid #B9BEC5; border-radius: 4px; background: var(--white);
    transition: background-color .15s, border-color .15s;
}
.cf-box i { font-size: 11px; color: var(--white); opacity: 0; }
.cf-check input:checked + .cf-box { background: var(--navy); border-color: var(--navy); }
.cf-check input:checked + .cf-box i { opacity: 1; }
.cf-check input:focus-visible + .cf-box { box-shadow: var(--focus); }
.cf-check input[aria-invalid="true"] + .cf-box { border-color: var(--red); }
.cf-link { padding: 0; border: 0; background: none; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }

.cf-submit { width: 100%; min-height: 48px; margin-top: 2px; font-size: 16px; }
.cf-submit[aria-busy="true"] { opacity: .7; cursor: progress; }
.cf-submit[aria-busy="true"] i { animation: cf-fly 1s ease-in-out infinite; }
@keyframes cf-fly { 50% { transform: translate(3px, -3px); } }

.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-status {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 14px; padding: 12px 14px;
    border-radius: 10px; font-size: 14.5px; font-weight: 600;
}
.cf-status i { margin-top: 3px; }
.cf-status.is-ok { background: #E4F3EA; color: #1F6B3F; }
.cf-status.is-error { background: #FDECEC; color: #A3141A; }

/* ---------- kontaktní údaje ---------- */

.ct-rows { margin: 0; }
.ct-rows > div { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; padding: 11px 4px; border-top: 1px solid #EEF0F2; }
.ct-rows > div:first-child { border-top: 0; padding-top: 2px; }
.ct-rows dt { display: flex; align-items: flex-start; gap: 12px; font-weight: 700; font-size: 14.5px; }
.ct-rows dt i { width: 20px; margin-top: 3px; text-align: center; color: var(--navy); font-size: 17px; }
.ct-rows dd { margin: 0; font-size: 14.5px; line-height: 1.5; }
.ct-rows dd small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.ct-rows a { color: var(--navy); }
.ct-rows a:hover { color: var(--red); }

/* ---------- mapa ---------- */

.ct-map { display: flex; flex-direction: column; }
.ct-map-box { position: relative; flex: 1; min-height: 210px; border-radius: 10px; overflow: hidden; background: #E9EDF1; border: 1px solid #E5E5E5; }
.ct-map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ct-map-btn {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 7px;
    background: var(--navy); color: var(--white);
    font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.ct-map-btn:hover { background: var(--navy-deep); }
.ct-route { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--navy); }
.ct-route:hover { color: var(--red); }

/* ---------- kontaktní osoby ---------- */

.ct-person-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.ct-person { display: flex; align-items: center; gap: 18px; padding: 14px 16px; border-radius: 12px; background: #F7F8FA; }
.ct-photo {
    flex: none; width: 96px; height: 96px;
    border-radius: 50%; overflow: hidden;
    background: var(--gold-gradient);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 3px var(--white), 0 4px 14px rgba(16, 40, 70, .18);
}
.ct-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ct-photo > span { font-size: 36px; font-weight: 800; color: var(--navy-deep); }
.ct-person-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; }
.ct-person-text b { font-size: 17px; font-weight: 800; }
.ct-role { color: var(--text-muted); margin-bottom: 4px; }
.ct-person-text a { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.ct-person-text a i { width: 15px; font-size: 13px; }
.ct-person-text a:hover { color: var(--red); text-decoration: underline; }

/* ---------- témata ---------- */

.ct-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ct-topics a {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px;
    border: 1px solid #E5E5E5; border-radius: 12px;
    background: var(--white);
    font-size: 12px; line-height: 1.45; color: var(--text-muted); text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ct-topics a:hover { border-color: var(--gold); box-shadow: 0 8px 22px rgba(16, 40, 70, .1); transform: translateY(-2px); }
.ct-topics i { flex: none; width: 30px; font-size: 24px; text-align: center; color: var(--gold); }
.ct-topics span { display: flex; flex-direction: column; gap: 3px; }
.ct-topics b { font-size: 13.5px; color: var(--text); }

/* ---------- zásady (dialog) ---------- */

.privacy {
    width: min(820px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 0; border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    font-family: var(--font); color: var(--text);
}
.privacy::backdrop { background: rgba(7, 16, 28, .7); }
.privacy[open] { display: flex; flex-direction: column; }
.privacy-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 18px 14px 22px;
    background: var(--gold-gradient);
}
.privacy-head h2 { margin: 0; font-size: 19px; color: var(--navy-deep); }
.privacy-close {
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .55); color: var(--navy-deep); font-size: 18px; cursor: pointer;
}
.privacy-close:hover { background: var(--white); }
.privacy-body { padding: 18px 24px 24px; overflow-y: auto; font-size: 14px; line-height: 1.6; }
.privacy-body p { margin: 0 0 12px; }

/* =========================================================================
   Responzivita
   ========================================================================= */

@media (max-width: 1200px) {
    .ct-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        grid-template-areas:
            "form info"
            "form map"
            "persons persons"
            "topics topics";
        grid-template-rows: auto 1fr auto auto;
    }
    .ct-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .ct-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "form" "info" "map" "persons" "topics";
        grid-template-rows: none;
    }
    .ct-map-box { min-height: 260px; flex: none; }
    .ct-person-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .ct-hero-media { width: 100%; }
    .ct-hero-media::after { background: linear-gradient(90deg, rgba(11, 29, 51, .92) 0%, rgba(11, 29, 51, .65) 100%); }
    .ct-hero-inner { min-height: 0; padding-top: 14px; padding-bottom: 22px; }
    .ct-card { padding: 16px 14px; }
    .cf-row { grid-template-columns: minmax(0, 1fr); }
    .ct-rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .ct-rows dd { padding-left: 32px; }
    .ct-person { gap: 14px; padding: 12px; }
    .ct-photo { width: 72px; height: 72px; }
    .ct-topics { grid-template-columns: minmax(0, 1fr); }
    .privacy-body { padding: 14px 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .cf-submit[aria-busy="true"] i { animation: none; }
}
