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

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
    align-items: start;
}

@media (min-width: 960px) {
    .contact-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }
}

.contact-info .lead {
    margin-top: var(--sp-4);
}

.contact-methods {
    display: grid;
    gap: var(--sp-3);
    margin-top: var(--sp-8);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: border-color var(--t), box-shadow var(--t);
}

.contact-method:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.contact-method .icon-tile {
    margin: 0;
}

.contact-method span {
    min-width: 0;
}

.contact-method small {
    display: block;
    font-size: var(--fs-xs);
    color: var(--muted);
}

.contact-method strong {
    display: block;
    font-size: var(--fs-base);
    overflow-wrap: anywhere;
}

.contact-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--sp-4);
    margin-top: var(--sp-6);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--line);
}

.contact-meta dt {
    font-size: var(--fs-xs);
    color: var(--muted);
}

.contact-meta dd {
    font-weight: 600;
    color: var(--ink);
}

/* ---------- Formulář ---------- */
.form-card {
    padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.75rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

.form-card__head h2 {
    font-size: var(--fs-h3);
}

.form-card__head p {
    margin-top: var(--sp-1);
    color: var(--muted);
}

.form-progress {
    height: 3px;
    margin: var(--sp-5) 0 var(--sp-6);
    border-radius: 3px;
    background: var(--surface-2);
    overflow: hidden;
}

.form-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
    transition: width var(--t);
}

#formStatus .alert,
.form-prefill {
    margin-bottom: var(--sp-5);
}

.form-note a {
    color: var(--accent-ink);
    text-decoration: underline;
}

/* ---------- Mapa ---------- */
.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    align-items: center;
}

@media (min-width: 900px) {
    .map-layout {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }
}

.map-details {
    display: grid;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
}

.map-details li {
    display: flex;
    gap: var(--sp-3);
    align-items: baseline;
}

.map-details i {
    width: 18px;
    flex: none;
    color: var(--accent);
}

.map-frame {
    aspect-ratio: 4 / 3;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 599px) {
    .map-frame {
        aspect-ratio: 1 / 1;
    }
}

/* ---------- Sociální sítě ---------- */
.social-box {
    display: grid;
    gap: var(--sp-5);
    padding: clamp(1.25rem, 1rem + 1vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.social-box__head {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.social-box__head .icon-tile {
    margin: 0;
}

.social-box__head h3 {
    font-size: var(--fs-h4);
}

.social-box__head a {
    font-size: var(--fs-sm);
    color: var(--accent-ink);
}

.social-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
}

.social-feed .media {
    --ratio: 1 / 1;
    display: block;
}

/* Co bude následovat po odeslání */
.next-steps {
    margin-top: var(--sp-8);
    padding: var(--sp-6);
    border-radius: var(--r-lg);
    background: var(--night);
    color: var(--on-dark-muted);
}

.next-steps h3 {
    margin-bottom: var(--sp-5);
    font-size: var(--fs-h4);
    color: #fff;
}

.next-steps ol {
    display: grid;
    gap: var(--sp-4);
    list-style: none;
    counter-reset: next;
}

.next-steps li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: var(--sp-4);
    counter-increment: next;
    font-size: var(--fs-sm);
}

.next-steps li::before {
    content: counter(next);
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(217, 195, 160, 0.45);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--sand);
}

.next-steps strong {
    color: var(--on-dark);
}

@media (min-width: 960px) {
    .form-card {
        position: sticky;
        top: calc(var(--header-h) + var(--sp-6));
    }
}
