/* ───────────── Detail typu tréningu — vizuál podľa starého webu ─────────────
   Farba typu sa nastavuje cez --tt-color na .tt-page (inline z controllera). */

body {
    /* plnoširoké (edge-to-edge) sekcie používajú 100vw trik */
    overflow-x: hidden;
}

.tt-page {
    --tt-color: var(--neon);
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 15px 60px;
    text-align: left;
}

.tt-fullbleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.tt-section-title {
    font-family: "Barlow condensed", sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin: 50px 0 25px;
}

/* ── 1. Hero ── */

.tt-hero {
    background-color: #111111;
    color: white;
}

.tt-hero-colorbar {
    display: block;
    height: 8px;
    background-color: var(--tt-color);
}

.tt-hero-main {
    display: flex;
    min-height: 355px;
}

.tt-hero-left {
    flex: 1 1 50%;
    min-width: 0;
    background-color: black;
    padding: 32px 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tt-hero-name {
    font-family: "Barlow condensed", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    color: white;
    margin: 0 0 10px;
}

.tt-hero-subrow {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.tt-hero-slogan {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    margin: 0;
    position: relative;
}

/* biely podčiarkovací pruh pod sloganom (ako na starom webe) */
.tt-hero-slogan::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 40px;
    height: 5px;
    background-color: white;
}

/* Piktogramy — malé neónové ikonky vedľa sloganu */
.tt-hero-pictos {
    margin-left: 24px;
    min-width: 0;
}

.tt-hero-pictos .picto-row {
    margin: 0;
    gap: 10px;
    flex-wrap: nowrap;
}

.tt-hero-pictos .picto-chip {
    background: transparent;
    border: none;
    padding: 0;
}

.tt-hero-pictos .picto-label {
    display: none;
}

.tt-hero-pictos .picto-icon {
    width: 28px;
    height: 28px;
    /* prefarbenie bielych/čiernych SVG ikon na neónovú (#EA1A6C) */
    filter: brightness(0) saturate(100%) invert(25%) sepia(95%) saturate(5650%) hue-rotate(326deg) brightness(95%) contrast(96%);
}

.tt-hero-desc {
    margin: 0;
    padding-right: 38px;
    font-size: 15px;
    line-height: 1.7;
    color: #d4d4d4;
    text-align: justify;
    white-space: pre-line;
}

/* Hero vpravo — video/obrázok s farebným overlay typu */

.tt-hero-right {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tt-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tt-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--tt-color);
    opacity: 0.7;
}

.tt-hero-initials {
    font-family: "Barlow condensed", sans-serif;
    font-size: 90px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.55);
}

.tt-hero-video {
    padding: 0;
    border: none;
    background-color: #111111;
    cursor: pointer;
    font: inherit;
}

.tt-hero-play {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    border: 3px solid white;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.tt-hero-play::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-38%, -50%);
    border-style: solid;
    border-width: 13px 0 13px 22px;
    border-color: transparent transparent transparent white;
}

.tt-hero-video:hover .tt-hero-play {
    transform: scale(1.08);
}

.tt-hero-iframe,
.tt-video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── 2. Info pás pod hero ── */

.tt-hero-bottom {
    display: flex;
}

.tt-hero-bottom-item {
    flex: 1 1 0;
    min-width: 0;
    background: linear-gradient(to right, #242425 0%, #323334 100%);
    padding: 8px 28px;
    color: white;
    text-align: center;
}

.tt-hero-bottom-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 24px 0 8px;
}

.tt-hero-bottom-item p {
    font-size: 13px;
    line-height: 1.5;
    color: #d4d4d4;
    margin: 0 0 16px;
}

.tt-hero-bottom-schedule {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 20px 24px;
    text-align: left;
}

.tt-hero-next {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.tt-hero-next-icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    flex-shrink: 0;
}

.tt-hero-next-label {
    display: block;
    color: var(--neon);
    margin-bottom: 2px;
}

.tt-hero-next strong {
    font-size: 16px;
    color: white;
}

/* ── Tlačidlá ── */

.tt-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background-color: var(--neon);
    color: white !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    transition: background-color 0.1s ease-in-out;
    text-decoration: none;
}

.tt-btn-primary:hover {
    background-color: #ff2980;
}

.tt-btn-primary img {
    width: 9px;
    flex-shrink: 0;
}

.tt-btn-schedule {
    width: 100%;
}

.tt-btn-outline {
    display: inline-block;
    border: 1px solid #c4c4c4;
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 3px;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.tt-btn-outline:hover {
    border-color: var(--neon);
    color: var(--neon);
}

/* ── 3. Tmavá sekcia — obsah + STORIES ── */

.tt-dark {
    background-color: #111111;
    padding: 50px 0;
    margin-top: 45px;
}

.tt-dark-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: flex-start;
}

.tt-dark-left {
    width: 50%;
    min-width: 0;
    padding-right: 35px;
}

.tt-dark-content {
    display: flex;
}

.tt-dark-bar {
    width: 2px;
    background-color: white;
    flex-shrink: 0;
}

.tt-dark .tt-cms-content {
    padding-left: 15px;
}

/* Typografia CMS obsahu na tmavom pozadí (ako customcontent na starom webe) */
.tt-dark .tt-cms-content h1,
.tt-dark .tt-cms-content h3,
.tt-dark .tt-cms-content h5,
.tt-dark .tt-cms-content h6 {
    color: white;
}

.tt-dark .tt-cms-content h2 {
    color: var(--tt-color);
}

.tt-dark .tt-cms-content h4 {
    color: var(--neon);
}

.tt-dark .tt-cms-content,
.tt-dark .tt-cms-content p,
.tt-dark .tt-cms-content ul li,
.tt-dark .tt-cms-content ol li {
    color: #d4d4d4;
    font-size: 14px;
    line-height: 1.65;
}

.tt-dark .tt-cms-content p,
.tt-dark .tt-cms-content ul li,
.tt-dark .tt-cms-content ol li {
    margin-bottom: 5px;
}

.tt-dark .tt-cms-content a {
    color: var(--neon) !important;
}

.tt-dark .tt-cms-content strong {
    color: white;
}

/* Recenzie z obsahu — tmavé karty */
.tt-dark .tt-cms-content .tt-review {
    background: #000;
    border-left-color: var(--tt-color);
    border-radius: 0 10px 10px 0;
}

.tt-dark .tt-cms-content .tt-review,
.tt-dark .tt-cms-content .tt-review p,
.tt-dark .tt-cms-content .tt-review footer {
    color: white;
}

/* Registračné CTA s nakreslenou šípkou */

.tt-register {
    position: relative;
    margin-top: 50px;
    padding-left: 15px;
}

.tt-register-arrow {
    position: absolute;
    top: 56px;
    left: -75px;
    width: 72px;
}

.tt-register-arrow img {
    width: 100%;
    display: block;
}

.tt-register h3 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px;
}

.tt-btn-register {
    width: 100%;
    max-width: 270px;
    font-size: 16px;
    padding: 14px 20px;
    text-align: left;
}

.tt-btn-register small {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

/* STORIES carousel */

.tt-dark-right {
    width: 50%;
    min-width: 0;
}

.tt-stories-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0 0 25px;
}

.tt-stories-viewport {
    overflow: hidden;
    background-color: #323334;
    padding: 14px 0;
}

.tt-stories-track {
    display: flex;
    transition: transform 0.35s ease;
}

.tt-stories-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 14px;
}

.tt-stories-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.tt-stories-dots {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
}

.tt-stories-dot {
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    position: relative;
}

.tt-stories-dot.active {
    background-color: var(--neon);
}

/* Timer ring — SVG kružnica sa naplní za trvanie slidu a preskočí ďalej */
.tt-dot-ring {
    position: absolute;
    inset: -7px;
    width: calc(100% + 14px);
    height: calc(100% + 14px);
    pointer-events: none;
}

.tt-dot-ring circle {
    fill: none;
    stroke: var(--neon);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 81.68;
    stroke-dashoffset: 81.68;
    transform: rotate(-90deg);
    transform-origin: center;
    animation: ttDotRing linear forwards;
}

@keyframes ttDotRing {
    to { stroke-dashoffset: 0; }
}

/* Cenový pás pod carouselom */

.tt-price-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    margin-top: 22px;
}

.tt-price-strip-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tt-price-strip-left:not(:only-child) {
    border-right: 1px solid #898a8b;
    padding-right: 18px;
}

.tt-price-euro {
    background-color: white;
    border-radius: 50%;
    color: black;
    font-size: 17px;
    line-height: 18px;
    padding: 3px 7px 2px;
    margin-right: 4px;
}

.tt-price-strip-left strong {
    color: var(--neon);
    font-size: 16px;
}

.tt-price-strip-right {
    padding-left: 18px;
    color: #898a8b;
}

.tt-price-strip-right a {
    color: var(--neon);
    text-decoration: underline;
}

/* ── Horizontálny scroller so šípkami (videá, recenzie) ── */

.tt-scroller {
    position: relative;
}

.tt-scroller-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 40px;
    /* skrytý scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tt-scroller-track::-webkit-scrollbar {
    display: none;
}

.tt-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 5px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

/* guard — display: flex by inak prebil atribút hidden */
.tt-scroll-arrow[hidden] {
    display: none;
}

.tt-scroll-arrow:hover {
    background-color: var(--neon);
}

.tt-scroll-prev {
    left: 12px;
}

.tt-scroll-next {
    right: 12px;
}

/* na konci dráhy sa šípka zoslabí a nedá kliknúť */
.tt-scroll-arrow.tt-scroll-off {
    opacity: 0.25;
    pointer-events: none;
}

/* ── 4. Technika — karty videí v jednom riadku ── */

.tt-videos-band {
    background-color: #323334;
    padding: 50px 0;
}

.tt-video-card {
    position: relative;
    flex: 0 0 300px;
    width: 300px;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: white;
    font: inherit;
}

.tt-video-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.tt-video-shade {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.tt-video-play {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border: 3px solid #cccccc;
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color 0.1s ease-in-out;
}

.tt-video-play::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-38%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #cccccc;
    transition: border-color 0.1s ease-in-out;
}

.tt-video-card:hover .tt-video-play {
    border-color: white;
}

.tt-video-card:hover .tt-video-play::after {
    border-left-color: white;
}

.tt-video-title {
    position: relative;
    z-index: 1;
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin: 0;
    text-align: center;
}

/* ── 4b. Hodnotenia zákazníkov — tmavé karty pod videami ── */

.tt-reviews-band {
    background-color: #242425;
    padding: 50px 0;
}

.tt-reviews-title {
    font-family: "Barlow condensed", sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: white;
    margin: 0 0 30px;
}

.tt-review-card {
    flex: 0 0 300px;
    width: 300px;
    display: flex;
    flex-direction: column;
    background-color: #0e0e0e;
    border-radius: 6px;
    padding: 24px 22px 20px;
}

.tt-review-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px;
}

.tt-review-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.65;
    color: #d4d4d4;
    margin: 0 0 18px;
}

/* hviezdy dole v strede — zlaté podľa ratingu */
.tt-review-rating {
    text-align: center;
    letter-spacing: 3px;
    line-height: 1;
}

.tt-star {
    color: #4a4b4c;
    font-size: 17px;
}

.tt-star.is-filled {
    color: #f5a623;
}

/* ── Najbližšie termíny ── */

.tt-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tt-upcoming-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: white;
    border: 1px solid #ececec;
    border-radius: 4px;
    padding: 14px 16px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tt-upcoming-item:hover {
    border-color: var(--neon-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

.tt-upcoming-bar {
    width: 5px;
    align-self: stretch;
    border-radius: 2px;
    flex-shrink: 0;
}

.tt-upcoming-date {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.tt-upcoming-date strong {
    font-family: "Barlow condensed", sans-serif;
    font-size: 17px;
    text-transform: uppercase;
}

.tt-upcoming-date span {
    font-size: 14px;
    color: #888;
}

.tt-upcoming-place {
    flex: 1;
    font-size: 14px;
    color: var(--dark);
}

.tt-upcoming-trainer {
    font-size: 13px;
    color: #888;
}

.tt-upcoming-arrow {
    font-size: 24px;
    color: var(--neon);
    line-height: 1;
}

.tt-upcoming-more {
    text-align: center;
    margin-top: 20px;
}

/* ── Info stĺpce (trvanie, kredity, cena, prevádzky) ── */

.tt-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background-color: #2b2b2b;
    color: white;
    margin-top: 50px;
}

.tt-feature {
    padding: 28px 24px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.tt-feature:first-child {
    border-left: none;
}

.tt-feature h3 {
    font-family: "Barlow condensed", sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tt-feature p {
    font-size: 14px;
    color: #cfcfcf;
}

.tt-price {
    color: var(--neon);
    font-size: 16px;
}

/* ── 5. Ostatné cvičenia — plnofarebné dlaždice ── */

.tt-others-heading {
    font-family: "Barlow condensed", sans-serif;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    padding: 100px 15px 48px;
}

.tt-others-grid {
    display: flex;
    flex-wrap: wrap;
}

.tt-other-card {
    --tt-other-color: var(--neon);
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tt-other-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    overflow: hidden;
    padding: 24px 24px 30px 43px;
    background-color: var(--tt-other-color);
}

.tt-other-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.tt-other-card:hover .tt-other-visual img {
    transform: scale(1.1);
}

.tt-other-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--tt-other-color);
    opacity: 0.7;
}

.tt-other-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    color: white;
}

.tt-other-name {
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 26px;
}

.tt-other-name::after {
    content: "";
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 40px;
    height: 5px;
    background-color: white;
}

.tt-other-desc {
    font-size: 15px;
    font-weight: 600;
    padding-right: 24px;
}

.tt-other-footer {
    display: flex;
    align-items: stretch;
    background: linear-gradient(to right, #242425 0%, #323334 100%);
    color: white;
    padding: 16px;
    flex: 1;
}

.tt-other-next {
    display: flex;
    align-items: center;
    flex: 1 1 50%;
    min-width: 0;
    border-right: 1px solid #616263;
    padding: 8px 8px 8px 12px;
    font-size: 13px;
}

.tt-other-next-icon {
    width: 24px;
    height: 24px;
    margin-right: 14px;
    flex-shrink: 0;
}

.tt-other-next-label {
    display: block;
}

.tt-other-next strong {
    display: block;
    font-size: 15px;
    color: white;
}

.tt-btn-ghost {
    border: 1px solid white;
    color: white;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 18px;
    margin: auto;
    white-space: nowrap;
    transition: all 0.1s ease-in-out;
}

.tt-other-card:hover .tt-btn-ghost,
.tt-btn-ghost:hover {
    background-color: white;
    color: #0c0c0c;
}

/* ── Responzivita ── */

@media screen and (max-width: 1199px) {
    .tt-hero-name {
        font-size: 44px;
    }

    .tt-register-arrow {
        display: none;
    }
}

@media screen and (max-width: 991px) {
    .tt-hero-bottom {
        flex-wrap: wrap;
    }

    .tt-hero-bottom-item {
        flex: 1 1 50%;
    }

    .tt-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 40px;
    }

    .tt-feature:nth-child(odd) {
        border-left: none;
    }

    .tt-other-card {
        flex: 1 1 50%;
    }

    .tt-others-heading {
        padding-top: 60px;
    }
}

@media screen and (max-width: 768px) {
    .tt-hero-main {
        flex-direction: column;
    }

    .tt-hero-left {
        padding: 28px 20px 26px;
    }

    .tt-hero-name {
        font-size: 38px;
    }

    .tt-hero-subrow {
        flex-wrap: wrap;
        row-gap: 24px;
    }

    .tt-hero-desc {
        padding-right: 0;
    }

    .tt-hero-right {
        min-height: 220px;
    }

    .tt-hero-bottom-item {
        flex: 1 1 100%;
    }

    .tt-dark-inner {
        flex-direction: column;
    }

    .tt-dark-left,
    .tt-dark-right {
        width: 100%;
        padding-right: 0;
    }

    .tt-dark-right {
        margin-top: 45px;
    }

    .tt-register {
        margin-top: 35px;
    }

    .tt-scroller-track {
        padding: 0 15px;
        gap: 16px;
    }

    /* na mobile šípky skryté — swipe je natívny cez overflow scroll */
    .tt-scroll-arrow {
        display: none;
    }

    .tt-video-card,
    .tt-review-card {
        flex-basis: 260px;
        width: 260px;
    }
}

@media screen and (max-width: 560px) {
    .tt-other-card {
        flex: 1 1 100%;
    }

    .tt-features {
        grid-template-columns: 1fr;
    }

    .tt-feature {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .tt-feature:first-child {
        border-top: none;
    }
}

/* Málo kariet bez overflow — vycentrované namiesto zarovnania doľava */
.tt-scroller-track--centered {
    justify-content: center;
}

/* Modal na prehrávanie technických videí */
.tt-video-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.tt-video-modal[hidden] {
    display: none;
}

body.tt-video-modal-open {
    overflow: hidden;
}

.tt-video-modal-dialog {
    position: relative;
    width: min(1100px, 96vw);
    aspect-ratio: 16 / 9;
}

.tt-video-modal-dialog iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.tt-video-modal-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.tt-video-modal-close:hover {
    background: var(--neon, #ff006a);
}
