:root {
    --width: 44rem;
    --colors-primary: #002060;
    --colors-emphasize: #ff0000;
    --colors-background: #fff;
    --colors-background-grey: #f0f0f0;
    --colors-text: 000;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 100%;
    line-height: 1.4;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: unset;
}

a {
    color: var(--colors-text);
    font-size: inherit;
    text-decoration: inherit;
}
a:hover {
    text-decoration: underline;
}

img,
video {
    max-inline-size: 100%;
}

h1 {
    color: var(--colors-primary);
    font-size: 1.375rem;
}
@media (min-width: 40em) {
    h1 {
        font-size: 1.5rem;
    }
}
h1 strong {
    font-weight: bold;
    color: var(--colors-emphasize);
}


/* UTILS */

.spacer-1 { block-size: 0.25rlh; }
.spacer-2 { block-size: 0.5rlh; }
.spacer-3 { block-size: 1rlh; }
.spacer-4 { block-size: 2rlh; }
@media (min-width: 40em) {
    .spacer-1:not(.preserve) { block-size: 0.5rlh; }
    .spacer-2:not(.preserve) { block-size: 1rlh; }
    .spacer-3:not(.preserve) { block-size: 2rlh; }
    .spacer-4:not(.preserve) { block-size: 3rlh; }
}


/* COMPONENTS */

.container {
    max-inline-size: var(--width);
    margin-inline: auto;
    padding: 1rlh 0.5rlh;
}
@media (min-width: 40em) {
    .container p {
        font-size: 1.25rem;
    }
}
.container p+p {
    margin-block-start: 0.5rlh;
}

.emphasize {
    display: block;
    margin-inline: auto;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--colors-primary);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    text-align: center;
    max-inline-size: 26rem;
}
@media (min-width: 40em) {
    .emphasize {
        font-size: 3.2rem;
        line-height: 1.3;
        letter-spacing: 0.3rem;
        max-inline-size: revert;
    }
}



.header {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: var(--colors-background);
}
.header.sticky {
    background: linear-gradient(177deg, var(--colors-background) 20%, var(--colors-primary) 760%);
}
.header .container {
    transition: padding-block 0.2s ease-in-out;
}
.header.sticky .container {
    padding-block: 0.5rlh;
}
.header h1 {
    display: flex;
    justify-content: center;
}
.header.sticky h1 {
    justify-content: revert;
}
.header h1 a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rlh;
    text-decoration: none;
    padding-inline-end: 1rlh;
}
.header h1 img {
    max-inline-size: 3rlh;
}
@media (min-width: 40em) {
    .header h1 img {
        max-inline-size: 4rlh;
    }
}
.header h1 span {
    margin-block-end: 0.25rlh;
}

.loop {
    object-fit: cover;
    inline-size: 100%;
}
@media (max-width: 40em) {
    .loop {
        aspect-ratio: 16/9;
        max-block-size: 25rem;
    }
}
@media (min-width: 40.001em) {
    .loop {
        block-size: 80vh;
    }
}
.slogan {
    text-align: center;
}
@media (min-width: 40em) {
    .slogan {
        font-size: 1.25rem;
    }
}

.shortTexts {
    text-align: center;
}

.button {
    display: block;
    inline-size: max-content;
    margin-inline: auto;
    padding: 0.5rlh 1rlh;
    border-radius: 0.5rlh;
    background-color: var(--colors-primary);
    color: var(--colors-background);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: transform 0.1s ease-in-out;
}
@media (min-width: 40em) {
    .button {
        font-size: 1.25rem;
    }
}
.button:hover {
    transform: scale(1.05);
    text-decoration: inherit;
}


.carousel {
    position: relative;
	margin-inline: auto;
}
@media (max-width: 39.999em) {
    .carousel {
        max-inline-size: calc(100% - 3rlh);
    }
}
@media (min-width: 40em) {
    .carousel {
        margin-inline: -4rlh;
    }
}
.carousel__slides {
    --carouselPosition: 0;
    list-style-type: none;
    display: flex;
    max-block-size: 20rem;
    overflow: hidden;
}
@media (min-width: 40em) {
    .carousel__slides {
        max-block-size: 40rem;
    }
}
.carousel__slide {
    flex-shrink: 0;
    flex-basis: 100%;
    transform: translateX(calc(var(--carouselPosition) * -100%));
    transition: transform 200ms ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel__slide img {
    margin-inline: initial;
    border-radius: 2em;
    max-height: 100%;
}
.carousel__button {
    position: absolute;
    inset-block-start: calc(50% - 1rlh);
    padding: 1rlh;
    border: none;
    cursor: pointer;
    background-color: transparent;
    background-image: url("./assets/icon-arrow-right.svg");
    background-position: center center;
    background-size: auto 1.9em;
    background-repeat: no-repeat;
    z-index: 3;
    opacity: 1;
    transition: opacity 200ms ease-in-out;
}
@media (min-width: 40em) {
    .carousel__button {
        background-size: auto 2.4em;
    }
}
.carousel__button:hover {
    transform: scale(1.1);
}
.carousel__button:active {
    transform: scale(1.1) translate(1px, 1px);
}
.carousel__button--previous {
    inset-inline-start: -2rlh;
    transform: rotateY(200grad);
}
.carousel__button--previous:hover {
    transform: scale(1.1) rotateY(200grad);
}
.carousel__button--previous:active {
    transform: scale(1.1) translate(1px, 1px) rotateY(200grad);
}
.carousel__button--next {
    inset-inline-end: -2rlh;
}
.carousel__button--hidden {
    opacity: 0;
    pointer-events: none;
}
.carousel__dots {
    margin-block-start: 0.5rlh;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
}
.carousel__dot {
    display: block;
    padding: 0.1rem;
    cursor: pointer;
}
.carousel__dot::before {
    content: "";
    display: block;
    --carousel-dot-visual-size: 0.4rem;
    inline-size: var(--carousel-dot-visual-size);
    block-size: var(--carousel-dot-visual-size);
    background-color: var(--colors-background-grey);
    border-radius: 50%;
}
.carousel__dot--active::before {
    background-color: var(--colors-primary);
}



.socials {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1rlh;
}
@media (min-width: 40em) {
    .socials {
        font-size: 1.25rem;
        row-gap: 0.125rlh;
    }
}
.socials a {
    display: flex;
    flex-direction: column;
}
.socials img {
    flex-shrink: 0;
    flex-basis: 2.2rem;
    display: block;
    aspect-ratio: 1;
    block-size: 2rem;
}
.socials .fb img {
    block-size: 1.8rem;
}
@media (min-width: 40em) {
    .socials .fb img {
        block-size: 2.2rem;
    }
}
.socials .ig img {
    block-size: 2.2rem;
}
@media (min-width: 40em) {
    .socials .ig img {
        block-size: 2.4rem;
    }
}
.socials .yt img {
    aspect-ratio: 12/10;
    block-size: 2.2rem;
}
@media (min-width: 40em) {
    .socials .yt img {
        block-size: 2.6rem;
    }
}
.socials a span {
    font-weight: 600;
}
.socials a:hover span {
    text-decoration: underline;
}


.contacts {
    background-color: var(--colors-background-grey);
    padding-block: 1rlh 30vh;
}
.contacts__text {
    max-inline-size: 36rem;
    margin-inline: auto;
    text-align: center;
}
.contacts__items {
    font-size: 1.2rem;
    text-align: center;
}
@media (min-width: 40em) {
    .contacts__items div {
        font-size: 1.3rem;
    }
}
.contacts__items .label {
    font-weight: 300;
}
.contacts__items span {
    font-weight: 800;
}

#kontakt {
    scroll-margin-block-start: 1rlh;
}