
.mega-th-docs,
.mega-th-docs * {
    box-sizing: border-box;
}

.mega-th-docs {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    margin: 42px 0 18px !important;
    padding: 0 !important;
    font-family: Arial, Helvetica, sans-serif;
    color: #4f4945;
}

.mega-th-docs:before,
.mega-th-docs:after {
    content: "";
    display: table;
    clear: both;
}

.mega-th-docs__inner {
    width: 100%;
    overflow: hidden;
    border: 1px solid #ddd7cf;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(57, 49, 42, 0.06);
}

.mega-th-docs__head {
    padding: 25px 26px 21px;
    background: linear-gradient(135deg, #f6f3ee 0%, #eee8df 100%);
    border-bottom: 1px solid #ddd7cf;
}

.mega-th-docs__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #76501b;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mega-th-docs h2 {
    margin: 0 0 8px;
    color: #3f3a36;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.mega-th-docs__lead {
    max-width: 930px;
    margin: 0;
    color: #675f59;
    font-size: 15px;
    line-height: 1.55;
}

.mega-th-docs__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    padding: 21px 22px 13px;
}

/*
 * Karta je zámerne vertikálna a text centrovaný.
 * Tým odstránime pretekanie dlhých názvov pri užšom produktovom layoute.
 */
.mega-th-docs__link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 122px;
    padding: 15px 13px !important;
    overflow: hidden !important;
    border: 1px solid #ddd7cf !important;
    border-radius: 12px;
    background: #ffffff !important;
    color: #48423e !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: normal !important;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.mega-th-docs__link:hover,
.mega-th-docs__link:focus {
    border-color: #9a6a25 !important;
    box-shadow: 0 7px 18px rgba(72, 57, 39, 0.10);
    transform: translateY(-1px);
    outline: none;
}

.mega-th-docs__badge {
    display: flex !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    border-radius: 12px;
    background: #7a5420;
    color: #ffffff !important;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .02em;
    text-align: center !important;
    white-space: nowrap !important;
}

.mega-th-docs__text {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: auto;
}

.mega-th-docs__text strong {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 4px !important;
    color: #3f3a36 !important;
    font-size: 14px !important;
    line-height: 1.28 !important;
    font-weight: 800 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

.mega-th-docs__text span {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    color: #756c65 !important;
    font-size: 12px !important;
    line-height: 1.38 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

.mega-th-docs__link--primary {
    border-color: #c9aa78 !important;
    background: #fbf8f2 !important;
}

.mega-th-docs__link--primary .mega-th-docs__badge {
    background: #99691f;
}

.mega-th-docs__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 22px 19px;
}

.mega-th-docs__note {
    margin: 0;
    color: #7c736c;
    font-size: 11px;
    line-height: 1.45;
}

.mega-th-docs__all {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #5f6163 !important;
    color: #ffffff !important;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
}

.mega-th-docs__all:hover,
.mega-th-docs__all:focus {
    background: #4f5153 !important;
    color: #ffffff !important;
    outline: none;
}

@media only screen and (max-width: 900px) {
    .mega-th-docs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 640px) {
    .mega-th-docs {
        margin-top: 30px !important;
    }

    .mega-th-docs__head {
        padding: 20px 18px 17px;
    }

    .mega-th-docs h2 {
        font-size: 21px;
    }

    .mega-th-docs__grid {
        grid-template-columns: 1fr;
        padding: 15px 16px 8px;
    }

    .mega-th-docs__link {
        min-height: 108px;
    }

    .mega-th-docs__footer {
        display: block;
        padding: 8px 16px 17px;
    }

    .mega-th-docs__all {
        width: 100%;
        margin-top: 12px;
    }
}
