.hf-ts,
.hf-ts * {
    box-sizing: border-box;
}

.hf-ts {
    --hf-ts-gap: 28px;
    --hf-ts-radius: 2px;
    --hf-ts-text: #111111;
    --hf-ts-muted: #525252;
    --hf-ts-line: rgba(17, 17, 17, 0.14);
    --hf-ts-card: #ffffff;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(56px, 8vw, 120px) clamp(18px, 4vw, 56px);
    color: var(--hf-ts-text);
    font-family: inherit;
}

.hf-ts__heading-wrap {
    margin: 0 auto clamp(36px, 5vw, 72px);
    max-width: 1100px;
    text-align: center;
}

.hf-ts__heading {
    margin: 0;
    font: inherit;
    font-size: clamp(38px, 5vw, 70px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hf-ts__viewport {
    width: 100%;
    overflow: hidden;
}

.hf-ts__track {
    display: flex;
    gap: var(--hf-ts-gap);
    align-items: stretch;
    will-change: transform;
    transition: transform 560ms cubic-bezier(.22,.61,.36,1);
}

.hf-ts__slide {
    min-width: 100%;
    flex: 0 0 100%;
}

.hf-ts__card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--hf-ts-card);
    border: 1px solid rgba(17, 17, 17, 0.10);
    border-radius: var(--hf-ts-radius);
    overflow: hidden;
}

.hf-ts__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 68% 26%, rgba(255,255,255,.95) 0, rgba(255,255,255,.35) 22%, transparent 45%),
        linear-gradient(135deg, #f8eeec 0%, #f4f0f2 55%, #eee8ec 100%);
}

.hf-ts__media--landscape {
    aspect-ratio: 4 / 3;
}

.hf-ts__media--product {
    aspect-ratio: 5 / 4;
}

.hf-ts__media--wide {
    aspect-ratio: 16 / 9;
}

.hf-ts__media--square {
    aspect-ratio: 1 / 1;
}

.hf-ts__media--portrait {
    aspect-ratio: 4 / 5;
}

.hf-ts__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: var(--hf-ts-fit, cover);
    object-position: var(--hf-ts-pos, center center);
    transform: scale(var(--hf-ts-zoom, 1));
    transform-origin: var(--hf-ts-pos, center center);
}

/* Teljes kép módban a kép természetes aránya határozza meg a blokk magasságát,
   így nem marad üres sáv a kép alatt vagy felett. */
.hf-ts__media--natural {
    aspect-ratio: auto !important;
    min-height: 0 !important;
    height: auto !important;
    background: transparent;
}

.hf-ts__media--natural .hf-ts__image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    transform: none;
}

.hf-ts__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #111;
    text-align: center;
}

.hf-ts__placeholder span {
    font-size: clamp(42px, 8vw, 78px);
    line-height: 1;
    letter-spacing: -0.08em;
}

.hf-ts__placeholder small {
    max-width: 70%;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hf-ts__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: clamp(28px, 4vw, 44px);
}

.hf-ts__title {
    margin: 0 0 12px;
    font: inherit;
    font-size: clamp(24px, 2.1vw, 34px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hf-ts__subtitle,
.hf-ts__description,
.hf-ts__closing {
    margin: 0;
    font: inherit;
}

.hf-ts__subtitle {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--hf-ts-text);
}

.hf-ts__rule {
    width: 100%;
    height: 1px;
    margin: 24px 0;
    background: var(--hf-ts-line);
}

.hf-ts__description,
.hf-ts__closing {
    font-size: 15px;
    line-height: 1.7;
    color: var(--hf-ts-muted);
}

.hf-ts__closing {
    margin-top: 22px;
    color: var(--hf-ts-text);
}

.hf-ts__controls {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
}

.hf-ts__arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.hf-ts__arrow:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 17, 17, 0.4);
}

.hf-ts__arrow:focus-visible,
.hf-ts__dot:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.hf-ts__arrow span {
    font-size: 21px;
    line-height: 1;
    transform: translateY(-1px);
}

.hf-ts__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.hf-ts__dot {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: #c7c7c7;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease;
}

.hf-ts__dot.is-active {
    background: #111;
    transform: scale(1.35);
}

@media (min-width: 720px) and (max-width: 1023px) {
    .hf-ts__slide {
        min-width: calc((100% - var(--hf-ts-gap)) / 2);
        flex-basis: calc((100% - var(--hf-ts-gap)) / 2);
    }
}

@media (min-width: 1024px) {
    .hf-ts__slide {
        min-width: calc((100% - (var(--hf-ts-gap) * 2)) / 3);
        flex-basis: calc((100% - (var(--hf-ts-gap) * 2)) / 3);
    }

    .hf-ts__controls {
        display: none;
    }

    .hf-ts__track {
        transform: none !important;
    }
}

@media (max-width: 719px) {
    .hf-ts {
        --hf-ts-gap: 18px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .hf-ts__media:not(.hf-ts__media--natural),
    .hf-ts__media--landscape:not(.hf-ts__media--natural),
    .hf-ts__media--wide:not(.hf-ts__media--natural),
    .hf-ts__media--square:not(.hf-ts__media--natural),
    .hf-ts__media--portrait:not(.hf-ts__media--natural),
    .hf-ts__media--product:not(.hf-ts__media--natural) {
        aspect-ratio: 1 / 1;
    }

    .hf-ts__heading-wrap {
        text-align: left;
        margin-bottom: 34px;
    }

    .hf-ts__heading {
        max-width: 9ch;
        font-size: clamp(42px, 13vw, 64px);
        line-height: 0.98;
    }

    .hf-ts__media {
        min-height: 0;
    }

    .hf-ts__content {
        padding: 28px 24px 34px;
    }

    .hf-ts__title {
        font-size: 28px;
    }

    .hf-ts__subtitle,
    .hf-ts__description,
    .hf-ts__closing {
        font-size: 16px;
    }

    .hf-ts__controls {
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hf-ts__track,
    .hf-ts__arrow,
    .hf-ts__dot {
        transition: none;
    }
}
