:root {
  --abos-accent: #F90505;
  --abos-black: #0d0d0d;
  --abos-white: #ffffff;
  --abos-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.14);
  --abos-shadow-md: 0 14px 34px rgba(0, 0, 0, 0.12);
  --abos-radius-xl: 28px;
  --abos-radius-lg: 22px;
  --abos-snow: #ffffff;
  --abos-text: #111213;
  --abos-muted: #7f858a;
  --abos-border: rgba(0, 0, 0, 0.10);
}

/* Hide legacy hero + banner rows on homepage */
body.type-index .content-wrapper.homepage-box.before-carousel,
body.type-index .content-wrapper.homepage-box.middle-banners-wrapper,
body.type-index .wide-carousel,
body.type-index .banners-row,
body.type-index .body-banners {
    display: none !important;
}

/* Mount point spacing */
.abos-hero-mount {
    max-width: none;
    margin: 0;
    padding: clamp(4px, 0.8vw, 10px) 0 0;
    position: relative;
    z-index: 1;
}

/* ensure outer hero shadow is visible */
.abos-hero-wrap { overflow: visible; }

/* Local hero container so we don't rely on global .container paddings */
.abos-hero-container {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 900px) {
  .abos-hero-container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* HERO LAYOUT (legacy / non-tiles) */
.abos-hero:not(.abos-hero--tiles) {
    position: relative;
    border-radius: var(--abos-radius-xl);
    overflow: hidden;
    color: var(--abos-black);
    min-height: 440px;
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    gap: clamp(24px, 4vw, 38px);
    padding: clamp(32px, 4vw, 52px);
    isolation: isolate;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    background: #ffffff;
    border: 1px solid var(--abos-border);
}

/* Hero variant: tiles */
.abos-hero--tiles {
    display: block;
    grid-template-columns: 1fr;
    min-height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    width: auto;
    padding: clamp(8px, 1.2vw, 14px) 0 clamp(8px, 1.2vw, 14px);
    margin-bottom: clamp(12px, 2.2vw, 20px);
    border-radius: 0;
    overflow: visible;
    position: relative;
    z-index: 1 !important;
}

.abos-hero__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}

/* Cleaner horizontal review layout just for tiles hero */
.abos-hero--tiles .abos-hero__reviews {
    display: inline-flex;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: transparent !important;
    color: inherit;
    border: 1px solid var(--abos-border) !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none !important;
    max-width: none;
}
.abos-hero--tiles .abos-hero__reviews:hover { background: rgba(0, 0, 0, 0.04); }
.abos-hero--tiles .abos-hero__reviews-stars svg { width: 16px; height: 16px; }
.abos-hero--tiles .abos-hero__reviews-value strong { font-size: 18px; }

.abos-hero__visit-btn { margin-left: auto; }

.abos-hero__visit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.abos-hero__visit-icon svg {
    width: 16px;
    height: 16px;
}

.abos-hero__tiles-wrap {
    position: relative;
    margin-top: 6px;
}



.abos-hero__tiles {
    --tile-gap: clamp(12px, 1.4vw, 18px);
    display: flex;
    gap: var(--tile-gap);
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
    -ms-overflow-style: none;
    cursor: grab;
    align-items: stretch;
    overscroll-behavior-x: contain;
    padding-bottom: 8px; /* push scrollbar out */
    margin-bottom: -8px;
    touch-action: pan-y pan-x;
}
.abos-hero__tiles::-webkit-scrollbar { display: none; height: 0; }

.abos-hero__tiles.is-dragging { cursor: grabbing; }

.abos-hero__tile {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    flex: 0 0 calc((100% - 4 * var(--tile-gap)) / 5);
    min-width: calc((100% - 4 * var(--tile-gap)) / 5);
    border-radius: var(--abos-radius-lg);
    overflow: hidden;
    border: 1px solid var(--abos-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    min-height: clamp(220px, 26vw, 300px);
}

.abos-hero__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

.abos-hero__tile-label {
    position: absolute;
    --abos-tile-label-gap: 12px;
    bottom: var(--abos-tile-label-gap);
    left: var(--abos-tile-label-gap);
    right: var(--abos-tile-label-gap);
    background: #fff;
    border: 1px solid var(--abos-border);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    color: var(--abos-black);
    text-align: center;
}

.abos-tiles-nav__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--abos-black);
    border: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    z-index: 5;
    pointer-events: auto;
    user-select: none;
}
.abos-tiles-nav__btn.prev { left: 8px; }
.abos-tiles-nav__btn.next { right: 8px; }
.abos-tiles-nav__btn svg { width: 16px; height: 16px; }

@media (max-width: 1200px) {
  .abos-hero--tiles .abos-hero__tiles { display: flex; }
}

@media (max-width: 900px) {
  .abos-hero__topbar { 
    flex-direction: row; 
    align-items: stretch; 
    justify-content: center;
    gap: 8px; 
    margin-bottom: 10px;
    padding: 0 16px;
  }
  .abos-hero--tiles .abos-hero__reviews,
  .abos-hero__visit-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 11px;
    height: auto;
    min-height: 40px;
    box-sizing: border-box;
  }
  .abos-hero--tiles .abos-hero__reviews {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px;
  }
  .abos-hero--tiles .abos-hero__reviews-stars { display: flex; gap: 1px; }
  .abos-hero--tiles .abos-hero__reviews-stars svg { width: 11px; height: 11px; }
  .abos-hero--tiles .abos-hero__reviews-title { display: none; }
  .abos-hero--tiles .abos-hero__reviews-value { display: flex; gap: 3px; align-items: baseline; font-size: 10px; }
  .abos-hero--tiles .abos-hero__reviews-value strong { font-size: 12px; }
  .abos-hero__visit-btn .abos-hero__visit-label { display: none; }
  .abos-hero__visit-btn .abos-hero__visit-icon { display: flex; }
  .abos-hero__visit-btn .abos-hero__visit-icon svg { width: 14px; height: 14px; }
  .abos-hero__visit-btn::after { content: 'PRAHA'; margin-left: 4px; font-size: 10px; letter-spacing: 0.05em; }
  .abos-hero--tiles .abos-hero__tiles {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-padding: 16px;
    gap: 10px;
    padding: 0 16px 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .abos-hero--tiles .abos-hero__tiles::-webkit-scrollbar { display: none; }
  .abos-hero--tiles .abos-hero__tile {
    flex: 0 0 78%;
    min-width: 78%;
    aspect-ratio: 9 / 16;
    height: auto;
    scroll-snap-align: start;
  }
  .abos-hero--tiles .abos-hero__tile:focus,
  .abos-hero--tiles .abos-hero__tile:active { border-color: var(--abos-border) !important; }
  .abos-hero__tiles { padding-bottom: 0; margin-bottom: 0; }
  .abos-tiles-nav__btn { display: grid; }
}

/* Remove default blue focus ring and keep clean look */
.abos-hero__tile:focus,
.abos-hero__tile:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}

.abos-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    opacity: 0;
    pointer-events: none;
    z-index: -2;
}

.abos-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
    z-index: -1;
}

.abos-hero__content {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.4vw, 24px);
    min-height: 100%;
}

.abos-hero__tag {
    align-self: flex-start;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(249, 5, 5, 0.08);
    border: 1px solid rgba(249, 5, 5, 0.22);
    color: var(--abos-accent);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}

.abos-hero__trust-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: -8px;
}
.abos-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--abos-black);
}
.abos-trust-item svg {
    width: 16px;
    height: 16px;
    color: var(--abos-accent);
}

.abos-hero__headline {
    margin: 0;
    font-size: clamp(34px, 3.1vw + 10px, 56px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.005em;
    text-transform: none;
    color: var(--abos-black);
}
.abos-hero__headline::after {
    content: '';
    display: block;
    width: 84px;
    height: 3px;
    margin-top: 10px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--abos-accent), rgba(249, 5, 5, 0.35));
}

.abos-hero:not(.abos-hero--tiles) .abos-hero__reviews {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(249, 5, 5, 0.06), rgba(249, 5, 5, 0.0));
    border: 1px solid rgba(249, 5, 5, 0.16);
    box-shadow: 0 16px 36px rgba(249, 5, 5, 0.12);
    max-width: 420px;
}

.abos-hero__reviews-summary {
    display: flex;
    align-items: center;
    gap: 18px;
}

.abos-hero__reviews-stars {
    display: inline-flex;
    gap: 6px;
    color: var(--abos-accent);
}

.abos-hero__reviews-stars svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.abos-hero__reviews-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--abos-black);
}

.abos-hero__reviews-value {
    display: flex;
    gap: 6px;
    align-items: baseline;
    color: rgba(0, 0, 0, 0.72);
    font-weight: 500;
}

.abos-hero__reviews-value strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--abos-black);
}

.abos-hero__reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--abos-accent);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.abos-hero__reviews-link::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 5l6 5-6 5M13 10H4'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.25s ease;
}

.abos-hero__reviews-link:hover::after,
.abos-hero__reviews-link:focus-visible::after {
    transform: translateX(3px);
}

.abos-hero__copy {
    max-width: 520px;
    font-size: clamp(15px, 1vw + 10px, 18px);
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.72);
}

/* Chips on top of carousel */
.abos-hero__media-card .abos-hero__chips {
    display: flex;
    gap: 8px;
    padding: 12px 12px 0;
    position: relative;
    z-index: 4;
}
.abos-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--abos-border);
    color: var(--abos-black);
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}
.abos-chip:hover {
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.abos-chip.is-active {
    background: var(--abos-accent);
    color: var(--abos-white);
    border-color: var(--abos-accent);
    box-shadow: 0 8px 24px rgba(249,5,5,0.3);
}

.abos-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.abos-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 13px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
    border: none;
}

.abos-btn--primary {
    background: var(--abos-accent);
    color: var(--abos-white);
    box-shadow: 0 18px 40px rgba(249, 5, 5, 0.38);
}

.abos-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(249, 5, 5, 0.52);
}

.abos-btn--ghost {
    background: transparent;
    color: var(--abos-black);
    border: 1px solid rgba(0, 0, 0, 0.16);
}

.abos-btn--ghost:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.06);
}

/* Right-side media becomes a slider */
.abos-hero__media-card {
    position: relative;
    display: block;
    min-height: 520px;
    overflow: hidden;
    border-radius: var(--abos-radius-lg);
    background: #ffffff;
    border: 1px solid var(--abos-border);
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.abos-hero__media-card::before { display: none; }

.abos-hero__media {
    position: absolute;
    inset: 12px 12px 48px 12px;
    border-radius: calc(var(--abos-radius-lg) - 4px);
    overflow: hidden;
    background: var(--abos-white);
    border: 1px solid var(--abos-border);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.abos-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.abos-hero__media:first-of-type { opacity: 1; }
.abos-hero__media.is-active { opacity: 1; pointer-events: auto; }



.abos-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.abos-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.65);
}
.abos-slider__dot.is-active {
    width: 22px;
    background: var(--abos-accent);
}


/* CATEGORY GRID */
.abos-category-section {
    margin-top: clamp(12px, 1.8vw, 20px);
    overflow: visible;
}

.abos-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 22px);
    overflow: visible;
}

@media (max-width: 992px) {
  .abos-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .abos-category-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 6px;
    padding: 0 8px 8px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .abos-category-grid::-webkit-scrollbar { display: none; }
  .abos-category-card {
    flex: 0 0 85%;
    min-width: 85%;
    min-height: 78px;
    padding: 7px 10px;
    gap: 6px;
    scroll-snap-align: start;
  }
  .abos-category-icon {
    width: clamp(52px, 21vw, 76px);
    height: clamp(38px, 15vw, 58px);
    padding: 6px;
  }
  .abos-category-name {
    margin-bottom: 2px;
  }
  .abos-category-meta {
    display: inline-flex;
    font-size: 12px;
    gap: 4px;
    margin-top: 0;
  }
  .abos-category-meta svg {
    width: 12px;
    height: 12px;
  }
}

.abos-category-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: clamp(10px, 1.2vw, 14px) clamp(18px, 1.6vw, 24px);
    min-height: 72px;
    border-radius: var(--abos-radius-lg);
    background: var(--abos-snow);
    color: var(--abos-text);
    text-decoration: none;
    border: 1px solid var(--abos-border);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border 0.32s ease;
    overflow: hidden;
}

.abos-category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(249, 5, 5, 0.08));
    opacity: 0;
    transition: opacity 0.32s ease;
}

.abos-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.16);
    border-color: rgba(0, 0, 0, 0.22);
}

.abos-category-card:hover::after {
    opacity: 1;
}

.abos-category-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: clamp(72px, 8vw, 120px);
    height: clamp(48px, 6vw, 72px);
    border-radius: 18px;
    background: #f2f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 1vw, 14px);
    position: relative;
    z-index: 1;
    margin-left: auto;
}

.abos-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.abos-category-name {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(14px, 0.9vw + 10px, 18px);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    margin-bottom: 4px;
}

.abos-category-meta {
    grid-column: 1;
    grid-row: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--abos-muted);
    margin-top: 2px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.abos-category-card:hover .abos-category-meta svg {
    transform: translateX(4px);
}

.abos-category-meta svg {
    width: 14px;
    height: 14px;
}

.abos-category-card--featured {
    background: var(--abos-snow);
    color: var(--abos-text);
    border-color: var(--abos-border);
}

.abos-category-card--featured .abos-category-meta {
    color: var(--abos-muted);
}

.abos-category-card--all {
    background: var(--abos-snow);
    border: 1px solid var(--abos-border);
}


/* Responsive */
@media (max-width: 1200px) {
    .abos-hero:not(.abos-hero--tiles) {
        grid-template-columns: 1fr;
        padding: clamp(26px, 5vw, 44px);
    }

    .abos-hero__media-card {
        order: -1;
        min-height: 420px;
    }

    .abos-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .abos-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .abos-hero:not(.abos-hero--tiles) {
        padding: 24px 22px;
        border-radius: var(--abos-radius-lg);
    }
    .abos-hero__media-card { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}