main.home-main {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(20px, 5vh, 56px) 16px 40px;
    box-sizing: border-box;
    text-decoration: none;
}

.home-hero {
    width: min(100%, 980px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(18px, 3vh, 28px);
}

.welcome-link {
    display: block;
    width: min(100%, 670px);
    text-decoration: none;
    color: inherit;
}

.welcome {
    width: 100%;
    max-width: 670px;
    min-height: 220px;
    height: auto;
    padding: 24px 20px;
    border: 2px solid var(--tertiary-color);
    border-radius: 30px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: var(--secondaryGlass-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    animation: fadeInScale 1.3s ease-in-out forwards;
    opacity: 0;
}

.welcome img {
    max-width: min(220px, 70%);
    height: auto;
}

.welcome p {
    font-size: clamp(20px, 3.2vw, 30px);
    color: var(--text2-color);
    margin: 12px 0 0;
    padding: 0 12px;
    text-align: center;
}

/* Brand karty dodavatelů */
.home-brands {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    box-sizing: border-box;
    animation: fadeInScale 1.3s ease-in-out 0.15s forwards;
    opacity: 0;
}

.home-brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 28px 22px;
    text-decoration: none;
    color: var(--text2-color);
    border: 2px solid var(--tertiary-color);
    border-radius: 30px;
    background-color: var(--background-color);
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.home-brand-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 35%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.08) 65%,
        transparent 100%
    );
    transform: skewX(-18deg);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

.home-brand-card img {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 88%;
    height: 78px;
    object-fit: contain;
    display: block;
    border: none;
    box-shadow: none;
    filter: none;
}

.home-brand-card:hover,
.home-brand-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 22px rgba(102, 87, 1, 0.2);
    outline: none;
}

.home-brand-card:hover::before,
.home-brand-card:focus-visible::before {
    opacity: 1;
    animation: homeBrandShine 0.85s ease-out;
}

.home-brand-card:active {
    transform: translateY(-1px);
}

@keyframes homeBrandShine {
    0% {
        left: -60%;
    }
    100% {
        left: 120%;
    }
}

@media (max-width: 820px) {
    .home-brands {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .home-brand-card {
        min-height: 112px;
        padding: 18px 22px;
    }

    .home-brand-card img {
        height: 58px;
        max-width: 70%;
    }
}

@media (max-width: 480px) {
    .welcome {
        padding: 18px 14px;
        border-radius: 22px;
    }

    .welcome p {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome,
    .home-brands,
    .home-brand-card {
        animation: none;
        opacity: 1;
        transition: none;
    }
    .home-brand-card:hover,
    .home-brand-card:focus-visible {
        transform: none;
    }
    .home-brand-card:hover::before,
    .home-brand-card:focus-visible::before {
        animation: none;
        opacity: 0;
    }
}
