/* Fallback vrstva pro starší Smart TV prohlížeče, kde se nenačte Tailwind runtime.
   Pravidla jsou záměrně scoped jen na stav bez .tw-ready, aby moderní prohlížeče
   zůstaly vizuálně beze změny. */

html:not(.tw-ready),
html:not(.tw-ready) body {
    margin: 0;
    padding: 0;
    background: #f7f5f1;
    color: #1f2937;
    font-family: Manrope, "Segoe UI", Arial, sans-serif;
}

html:not(.tw-ready) body {
    min-width: 320px;
    line-height: 1.5;
}

html:not(.tw-ready) a {
    color: inherit;
}

html:not(.tw-ready) .site-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

html:not(.tw-ready) .site-header {
    position: relative;
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

html:not(.tw-ready) .site-header > .site-container,
html:not(.tw-ready) .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

html:not(.tw-ready) .site-header-inner > a img {
    display: block;
    width: auto;
    height: 2.95rem;
    max-width: 100%;
}

html:not(.tw-ready) .site-header-desktop {
    display: none;
}

html:not(.tw-ready) .header-sos-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 9px;
    min-width: 84px;
    height: 44px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
}

html:not(.tw-ready) .header-sos-trigger {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #b32025;
    text-decoration: none;
}

html:not(.tw-ready) .header-sos-phone-icon,
html:not(.tw-ready) .header-sos-car-icon {
    display: block;
    width: auto;
    height: 17px;
    flex: 0 0 auto;
}

html:not(.tw-ready) .header-sos-mobile-wrap {
    position: absolute;
    top: 12px;
    right: 72px;
    z-index: 25;
}

html:not(.tw-ready) .header-sos-menu {
    display: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

html:not(.tw-ready) #menu-toggle {
    display: inline-flex;
}

html:not(.tw-ready) .site-mobile-menu,
html:not(.tw-ready) #mobile-menu {
    display: none;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

html:not(.tw-ready) .site-mobile-menu.is-open,
html:not(.tw-ready) #mobile-menu.is-open {
    display: block;
}

html:not(.tw-ready) .site-mobile-menu a,
html:not(.tw-ready) #mobile-menu a {
    display: block;
    text-decoration: none;
}

html:not(.tw-ready) .hero-section,
html:not(.tw-ready) .hero-stage {
    position: relative;
}

html:not(.tw-ready) .hero-stage {
    min-height: 620px;
    overflow: hidden;
    background: #151b23;
}

html:not(.tw-ready) .hero-media-fallback {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

html:not(.tw-ready) .hero-video-layer {
    display: none;
}

html:not(.tw-ready) .hero-shell {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 620px;
}

html:not(.tw-ready) .hero-content {
    width: 100%;
    max-width: 760px;
    color: #ffffff;
}

html:not(.tw-ready) .hero-content h1 {
    margin: 0;
    font-size: 3rem;
    line-height: 1.05;
}

html:not(.tw-ready) .hero-content p {
    margin-top: 20px;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.92);
}

html:not(.tw-ready) .hero-content a {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 28px;
    border-radius: 999px;
    background: #b32025;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

html:not(.tw-ready) .hero-categories-section {
    position: relative;
    z-index: 3;
    margin-top: -112px;
}

html:not(.tw-ready) .hero-categories-grid,
html:not(.tw-ready) .brands-grid,
html:not(.tw-ready) .featured-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

html:not(.tw-ready) .hero-categories-grid > *,
html:not(.tw-ready) .brands-grid > *,
html:not(.tw-ready) .featured-grid > * {
    box-sizing: border-box;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

html:not(.tw-ready) .hero-glass-card {
    position: relative;
    display: block;
    min-height: 232px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(24, 33, 45, 0.84);
    text-decoration: none;
}

html:not(.tw-ready) .hero-glass-card > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px 24px;
}

html:not(.tw-ready) .hero-glass-card > div > div:first-child {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
}

html:not(.tw-ready) .hero-glass-card > div > div:last-child {
    text-align: center;
}

html:not(.tw-ready) .hero-card-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

html:not(.tw-ready) .brands-section,
html:not(.tw-ready) .featured-section,
html:not(.tw-ready) .news-company-section {
    position: relative;
}

html:not(.tw-ready) .brands-intro,
html:not(.tw-ready) .featured-intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

html:not(.tw-ready) .brand-card {
    position: relative;
}

html:not(.tw-ready) .brand-card > button {
    display: block;
    width: 100%;
    min-height: 126px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    text-align: center;
}

html:not(.tw-ready) .brand-card-menu {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    right: 0;
    z-index: 10;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 8px;
}

html:not(.tw-ready) .brand-card-menu a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
}

html:not(.tw-ready) .featured-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

html:not(.tw-ready) .featured-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

html:not(.tw-ready) .featured-card img {
    display: block;
    width: 100%;
    height: auto;
}

html:not(.tw-ready) .news-company-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -16px;
    margin-right: -16px;
}

html:not(.tw-ready) .news-column,
html:not(.tw-ready) .company-column {
    box-sizing: border-box;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

html:not(.tw-ready) .news-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

html:not(.tw-ready) .news-card > div {
    display: block;
}

html:not(.tw-ready) .news-card img,
html:not(.tw-ready) .company-column img {
    display: block;
    width: 100%;
    height: auto;
}

html:not(.tw-ready) .company-column {
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(180deg, #465465 0%, #394451 50%, #2d3641 100%);
    color: #ffffff;
}

html:not(.tw-ready) .site-footer {
    background: #10161d;
    color: #e2e8f0;
}

html:not(.tw-ready) .site-footer-main {
    display: flex;
    flex-wrap: wrap;
}

html:not(.tw-ready) .site-footer-brand,
html:not(.tw-ready) .site-footer-links {
    width: 100%;
}

html:not(.tw-ready) .site-footer a {
    color: inherit;
    text-decoration: none;
}

html:not(.tw-ready) .site-footer-links ul,
html:not(.tw-ready) .site-footer-bottom ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    html:not(.tw-ready) .site-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    html:not(.tw-ready) .hero-categories-grid > *,
    html:not(.tw-ready) .featured-grid > * {
        width: 50%;
    }

    html:not(.tw-ready) .brands-grid > * {
        width: 33.3333%;
    }

    html:not(.tw-ready) .news-card > div {
        display: flex;
    }

    html:not(.tw-ready) .site-footer-links {
        display: flex;
        flex-wrap: wrap;
    }

    html:not(.tw-ready) .site-footer-links > * {
        width: 50%;
    }
}

@media (max-width: 1023px) {
    html:not(.tw-ready) .site-header-inner > a img {
        height: 2.55rem;
    }

    html:not(.tw-ready) .site-header-inner {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }
}

@media (max-width: 767px) {
    html:not(.tw-ready) .site-header-inner > a img {
        height: 2rem;
    }

    html:not(.tw-ready) .site-header-inner {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }
}

@media (min-width: 1024px) {
    html:not(.tw-ready) .site-container {
        padding-left: 32px;
        padding-right: 32px;
    }

    html:not(.tw-ready) .site-header-desktop {
        display: flex;
        align-items: center;
    }

    html:not(.tw-ready) .header-sos-mobile {
        display: none;
    }

    html:not(.tw-ready) #menu-toggle,
    html:not(.tw-ready) .site-mobile-menu,
    html:not(.tw-ready) #mobile-menu {
        display: none !important;
    }

    html:not(.tw-ready) .site-header-nav {
        display: flex;
        align-items: center;
    }

    html:not(.tw-ready) .site-header-nav a {
        display: inline-block;
        margin-right: 20px;
        text-decoration: none;
        white-space: nowrap;
    }

    html:not(.tw-ready) .header-sos:hover .header-sos-menu {
        display: block;
    }

    html:not(.tw-ready) .hero-categories-grid > * {
        width: 16.6667%;
    }

    html:not(.tw-ready) .hero-glass-card > div {
        padding-inline: 12px;
    }

    html:not(.tw-ready) .hero-glass-card > div > div:last-child span {
        font-size: .7rem;
        letter-spacing: .04em;
    }

    html:not(.tw-ready) .featured-grid > * {
        width: 25%;
    }

    html:not(.tw-ready) .brands-grid > * {
        width: 16.6667%;
    }

    html:not(.tw-ready) .brands-intro,
    html:not(.tw-ready) .featured-intro {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    html:not(.tw-ready) .news-column,
    html:not(.tw-ready) .company-column {
        width: 50%;
    }

    html:not(.tw-ready) .site-footer-brand {
        width: 42%;
    }

    html:not(.tw-ready) .site-footer-links {
        width: 48%;
        margin-left: auto;
    }
}

@media (min-width: 1280px) {
    html:not(.tw-ready) .hero-glass-card > div > div:last-child span {
        font-size: .84rem;
    }
}
