/* =========================================================
   KONTAKT
   ========================================================= */

.contact-page {
    padding-bottom: 4px;
}


/* =========================================================
   MAPA
   ========================================================= */

.contact-map-card {
    overflow: hidden;
}

.contact-map {
    position: relative;
    height: 330px;
    overflow: hidden;
    background: #f2f3f1;
}

.contact-map__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.contact-map__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.contact-map__overlay:focus-visible {
    outline: 3px solid var(--femax-red);
    outline-offset: -5px;
}

.contact-map__caption {
    min-height: 64px;
    padding: 14px 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    color: #4d555e;
    background: #fff;

    font-size: .87rem;
    line-height: 1.4;
    text-decoration: none;
}

.contact-map__caption svg {
    width: 21px;
    height: 21px;

    flex: 0 0 auto;

    fill: none;
    stroke: var(--femax-red);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-map__caption span {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
}

.contact-map__caption small {
    color: #888f96;
    font-size: .78rem;
    font-weight: 400;
}

.contact-map__caption:hover span {
    color: var(--femax-red-dark);
}


/* =========================================================
   HLAVNÍ PANEL
   ========================================================= */

.contact-main {
    padding: 34px;
}


/* =========================================================
   ÚVOD
   ========================================================= */

.contact-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro h1 {
    margin: 0;

    color: var(--ink);

    font-size: 1.45rem;
    line-height: 1.25;
    font-weight: 500;
}

.contact-intro p {
    max-width: 700px;
    margin: 0 auto;

    color: var(--muted);

    font-size: .94rem;
    line-height: 1.65;
}

.contact-divider {
    width: 120px;
    height: 1px;

    margin: 24px auto;

    background: #e5a295;
}

.contact-divider--small {
    width: 78px;
    margin-top: 18px;
    margin-bottom: 0;
}


/* =========================================================
   KONTAKTNÍ KARTY
   ========================================================= */

.contact-cards {
    margin-top: 31px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.contact-card {
    min-width: 0;
    min-height: 255px;

    padding: 25px 17px 24px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    background: #fff;

    border: 1px solid #e7e9ec;
    border-radius: var(--radius);

    box-shadow: 0 6px 20px rgba(26, 34, 44, .035);

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.contact-card:hover {
    border-color: #dcdfe3;
    box-shadow: 0 9px 24px rgba(26, 34, 44, .055);
    transform: translateY(-1px);
}

.contact-card__icon {
    width: 45px;
    height: 45px;

    margin-bottom: 13px;

    display: grid;
    place-items: center;

    color: var(--femax-red);
}

.contact-card__icon svg {
    width: 36px;
    height: 36px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-card h2 {
    margin: 0 0 14px;

    color: var(--femax-red-dark);

    font-size: .94rem;
    line-height: 1.4;
    font-weight: 600;
}

.contact-card address {
    margin: 0;

    color: #434a52;

    font-size: .92rem;
    line-height: 1.65;
    font-weight: 500;
    font-style: normal;
}

.contact-card p {
    margin: 0;

    color: #555d66;

    font-size: .86rem;
    line-height: 1.65;
}

.contact-card p {
    margin-top: 8px;
}

.contact-card a {
    color: inherit;
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--femax-red-dark);
    text-decoration: underline;
}

.contact-card__email {
    max-width: 100%;

    color: var(--femax-red-dark) !important;

    font-size: .82rem;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.contact-card__line {
    width: 34px;
    height: 1px;

    margin: 16px auto 7px;

    background: #e5a295;
}


/* =========================================================
   FORMULÁŘ
   ========================================================= */

.contact-form-section {
    margin-top: 34px;
    padding-top: 31px;

    border-top: 1px solid var(--line);
}

.contact-form-heading {
    text-align: center;
}

.contact-form-heading h2 {
    margin: 0;

    color: var(--ink);

    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 500;
}

.contact-form {
    margin-top: 29px;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-field {
    min-width: 0;
    display: block;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field > span {
    display: block;

    margin-bottom: 7px;

    color: #555d66;

    font-size: .82rem;
    font-weight: 500;
}

.form-field em {
    color: var(--femax-red);
    font-style: normal;
}

.form-field input,
.form-field textarea {
    display: block;
    width: 100%;

    box-sizing: border-box;

    color: var(--ink);
    background: #fff;

    border: 1px solid #dfe3e6;
    border-radius: 5px;

    font: inherit;

    outline: none;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.form-field input {
    height: 44px;
    padding: 0 13px;
}

.form-field textarea {
    min-height: 170px;
    padding: 12px 13px;

    line-height: 1.55;

    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #d89082;
    box-shadow: 0 0 0 3px rgba(232, 71, 45, .08);
}

.form-field--message {
    margin-top: 18px;
}

.form-check {
    margin-top: 18px;

    display: flex;
    align-items: flex-start;
    gap: 9px;

    color: #555d66;

    font-size: .86rem;
    line-height: 1.5;

    cursor: pointer;
}

.form-check input {
    width: 17px;
    height: 17px;

    margin: 2px 0 0;

    flex: 0 0 auto;

    accent-color: var(--femax-red);
}

.contact-submit {
    margin-top: 22px;

    min-height: 40px;
    padding: 9px 18px;

    color: #fff;
    background: var(--femax-red-dark);

    border: 1px solid var(--femax-red-dark);
    border-radius: 5px;

    font: inherit;
    font-size: .84rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.contact-submit:hover {
    background: var(--femax-red);
    border-color: var(--femax-red);
    transform: translateY(-1px);
}

.form-message {
    max-width: 760px;
    margin: 24px auto 0;
    padding: 12px 14px;

    border-radius: 5px;

    font-size: .87rem;
    line-height: 1.5;
}

.form-message--success {
    color: #315c3a;
    background: #f2f8f3;
    border: 1px solid #cee1d1;
}

.form-message--error {
    color: #803b31;
    background: #fff5f3;
    border: 1px solid #edcec8;
}


/* Honeypot musí zůstat mimo obrazovku, ale v DOM. */

.contact-form__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .contact-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-card {
        min-height: 225px;
    }

}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 680px) {

    .contact-map {
        height: 260px;
    }

    .contact-map__caption {
        padding: 12px 15px;
        flex-wrap: wrap;
        gap: 6px 8px;
        text-align: center;
    }

    .contact-map__caption small {
        flex-basis: 100%;
    }

    .contact-main {
        padding: 24px 20px;
    }

    .contact-intro h1 {
        font-size: 1.35rem;
    }

    .contact-divider {
        width: 92px;
        margin-top: 22px;
        margin-bottom: 22px;
    }

    .contact-cards {
        margin-top: 26px;

        grid-template-columns: 1fr;
        gap: 11px;
    }

    .contact-card {
        min-height: 0;
        padding: 22px 18px;
    }

    .contact-form-section {
        margin-top: 28px;
        padding-top: 26px;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .form-field--full {
        grid-column: auto;
    }

    .contact-submit {
        width: 100%;
    }

}


/* =========================================================
   VELMI MALÝ MOBIL
   ========================================================= */

@media (max-width: 420px) {

    .contact-map {
        height: 225px;
    }

    .contact-main {
        padding: 22px 17px;
    }

}