/**
 * File: calcwood_related_calcs.css
 * Poslední změna: 14-11-26: šířka jako blok Já na to používám a nabídka plánů (max 1400px, bez vlastního odsazení), karty se rozloží na celou šířku (3 = tři sloupce, 2 = dva). Předtím: 11-11-26: vznik (max 1100px).
 * Verze a aktuální datum: 14-11-26 v_1.01
 */

.th-rel {
    width: 100%;
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    color: #ddd;
    text-align: left;
}

.th-rel *,
.th-rel *::before,
.th-rel *::after {
    box-sizing: border-box;
}

.th-rel-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.th-rel .th-rel-kicker {
    margin: 0;
    color: #f9c343;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.4;
}

.th-rel .th-rel-title {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
}

.th-rel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.th-rel .th-rel-card {
    display: flex;
    align-items: stretch;
    gap: 16px;
    height: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--th-radius-lg, 20px);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.th-rel .th-rel-card:hover {
    border-color: #f9c343;
    background: rgba(249, 195, 67, 0.05);
    transform: translateY(-3px);
}

.th-rel .th-rel-card:focus-visible {
    outline: 2px solid #f9c343;
    outline-offset: 3px;
}

.th-rel-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    background: rgba(249, 195, 67, 0.1);
    border-radius: var(--th-radius-md, 12px);
}

.th-rel-ico .th-rel-ico-svg {
    display: block;
    width: 30px;
    height: 30px;
}

.th-rel-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.th-rel .th-rel-name {
    display: block;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
}

.th-rel .th-rel-reason {
    display: block;
    flex: 1 1 auto;
    margin: 8px 0 0;
    color: #cccccc;
    font-size: 15px;
    line-height: 1.5;
}

.th-rel .th-rel-cta {
    margin-top: 14px;
    color: #f9c343;
    font-size: 14px;
    font-weight: 600;
}

.th-rel-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.th-rel .th-rel-card:hover .th-rel-arrow {
    transform: translateX(4px);
}

@media (min-width: 700px) {
    .th-rel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 1000px) {
    .th-rel-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .th-rel .th-rel-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .th-rel {
        padding: 0;
        margin-top: 40px;
    }

    .th-rel .th-rel-card {
        padding: 16px;
        gap: 14px;
    }

    .th-rel-ico {
        width: 48px;
        height: 48px;
    }

    .th-rel-ico .th-rel-ico-svg {
        width: 26px;
        height: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .th-rel .th-rel-card,
    .th-rel-arrow {
        transition: none;
    }

    .th-rel .th-rel-card:hover,
    .th-rel .th-rel-card:hover .th-rel-arrow {
        transform: none;
    }
}
