
body,
html {
    background-color: #fdfdfd;
    font-family: "Red Hat Display", sans-serif;
    scroll-behavior: smooth;
    color: var(--dark-color);
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-color: #252525;
    --light-green-color: #AACC00;
    --dark-green-color: #55A630;
    --white-color: #FAFAFA;
}

/* Utility classes */

.u-page-container {
    max-width: 1400px;
    margin-inline: auto;
    margin-top: 4rem;
}

.u-padding-inline {
    padding-inline: 1rem;
}

.u-green-font {
    color: var(--dark-green-color);
}

.u-bold {
    font-weight: 700;
}

.u-link-underline {
    text-decoration: underline;
    color: var(--dark-color);
}

.u-margin-inline-auto {
    margin-inline: auto;
}

/* header */

.main-header {
    background-color: var(--dark-color);
    height: 72px;
    width: 100%;
    position: fixed;
    z-index: 150;
}

.header-container {
    max-width: 1400px;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.main-header__logo {
    height: 60px;
}

.button {
    background-color: var(--light-green-color);
    color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    width: max-content;
    padding: .8rem 2.5rem;
    font-weight: 650;
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
    animation: bounce-effect 6s infinite;
    font-size: 1rem;
}

.main-header_phone,
.main-header__socials {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.main-header_phone a {
    color: var(--white-color);
    text-decoration: none;
    font-size: .9rem;
}

.main-header__socials img {
    width: 20px;
}

.main-header__socials a {
    display: flex;
}

/* homepage */

.h1-background {
    position: relative;
    margin-top: 72px;
}

.h1-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background: linear-gradient(to right, rgba(37, 37, 37, 1) 40%, transparent);
    pointer-events: none;
}

.h1-background img {
    height: 600px;
    width: 100%;
    object-fit: cover;
}

.headings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 22%;
    left: 6%;
    max-width: 1100px;
}

h1 {
    color: var(--white-color);
    font-size: clamp(2.5rem, 0.9375rem + 5vw, 3.75rem);
    line-height: 1;
    position: relative;
    animation: slideIn 3s ease forwards;
}

.company-name  {
    color: var(--white-color);
    font-size: clamp(0.875rem, 0.7188rem + 0.5vw, 1rem);
    text-transform: uppercase;
    letter-spacing: .3rem;
    font-weight: 400;
}

.headings h3 {
    color: var(--white-color);
    font-weight: 400;
    margin-top: 1rem;
    line-height: 1.4;
    max-width: 550px;
}

/* benefit-cards */

h2 {
    font-size: clamp(2rem, 1.8532rem + 0.7339vw, 3rem);    
    line-height: 1;
    margin-top: 6rem;
    width: fit-content;
    position: relative;
}

.benefit-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-block: 2rem;
}

.card {
    position: relative;
    overflow: hidden;
    height: 320px;
}

.card__image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.card__title {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    color: var(--light-green-color);
    font-size: 1.5rem;
    line-height: 1;
    width: 120px;
    font-weight: 600;
}

.card__text {
    position: absolute;
    top: 170px;
    color: var(--white-color);
    font-size: .9rem;
    padding-inline: 1.25rem;
    line-height: 1.6;
    font-weight: 400;
}

.button--icon {
    gap: .5rem;
}

/* transformations */

.carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin-top: 2rem;
}

.transformations {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.transformation {
    width: calc(100% / 3);
    flex-shrink: 0;
}

.transformation__upper {
    position: relative;
}

.transformation__upper img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.weights {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    text-align: center;
}

.weight-before {
    background-color: var(--dark-color);
    color: var(--light-green-color);
    width: 100%;
    padding-block: .7rem;
    font-weight: 700;
}

.weight-after {
    background-color: var(--light-green-color);
    color: var(--dark-color);
    width: 100%;
    padding-block: .7rem;
    font-weight: 700;
}

.transformation__lower {
    background-color: white;
    padding: 2rem;
    border: 1px solid rgb(234 234 234);
    border-top: none;
}

.transformation__lower-heading {
    font-size: 1.5rem;
}

.dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dots span {
    display: block;
    width: 12px;
    height: 12px;
    background-color: lightgray;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dots .active {
    background-color: darkgray;
}

.left-border {
    border-left: none;
}

.right-border {
    border-right: none;
}

/* Media queries pro responzivitu */
@media (max-width: 1250px) {
    .transformation {
        width: calc(100% / 2);
    }
}

@media (max-width: 768px) {
    .transformation {
        width: 100%;
    }
}

/* Google recenze */

.reviews-wrapper {
    display: flex;
    gap: .3rem;
    align-items: center;
}

.google-info {
    margin-right: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.google-info p:first-child {
    font-weight: 800;
    font-size: 1.4rem;
}

.google-info span {
    width: max-content;
}

.google-logo {
    width: 100px;
}

.reviews-container {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.reviews-slider {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.reviews {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    padding-block: 1rem;
}

.reviewwws {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.review {
    width: 300px;
    background: white;
    box-shadow: 1px 1px 7px 0 rgb(0 0 0 / .13), 0 0 2px 0 rgb(0 0 0 / .05);
    padding: 1.5rem;
    border-radius: 4px;
}

.review__header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.review__profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.review__name {
    font-weight: bold;
    font-size: .9rem;
}

.review__date {
    font-size: .8rem;
    color: #878787;
}

.review__content {
    margin-top: .8rem;
    line-height: 1.4;
}

.review__content {
    position: relative;
}

.review__full-text {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Maximální počet řádků */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: max-height 0.3s ease; /* Plynulý přechod */
}

.review__full-text.expanded {
    -webkit-line-clamp: unset; /* Odstranění omezení řádků při rozbalení */
    max-height: none; /* Zrušení maximální výšky */
    overflow: visible;
}


.toggle-button {
    display: block;
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.google-stars,
.review-rating {
    display: flex;
}

.google-stars img {
    width: 35px;
}

.star-icon {
    width: 20px;
}

.review__read-more {
    background: none;
    border: none;
    color: #B3B3B3;
    font-size: .9rem;
    cursor: pointer;
    padding: 0;
    margin-top: 0.6rem;
}

.arrow {
    width: 30px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.right-arrow {
    transform: rotate(180deg) translateY(4px);
}

/* Bannery */

.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 2rem 4rem;
}

.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(37, 37, 37, 1) 40%, transparent);
    pointer-events: none;
}

.banner1 {
    background-image: url('img/cinky.webp');
}

.banner2 {
    background-image: url('img/lana.webp');
}

.banner3 {
    background-image: url('img/strava.webp');
}

.banner4 {
    background-image: url('img/kontakt.webp');
}

.banner5 {
    background-image: url('img/private_fitness.webp');
}

.banner__left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
    gap: 1.4rem;
    z-index: 100;
}

.banner__left-content a {
    margin-top: 1rem;
}

.banner__heading {
    margin: 0;
}

.banner__paragraph {
    font-weight: 350;
    max-width: 550px;
    line-height: 1.7;
}

.banner__right-content {
    display: flex;
    align-items: center;
    z-index: 100;
}

.banner__image {
    height: 400px;
}

/* kontakt */

.contact {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.contact__leftside, .maps-frame {
    flex: 1;
}

.contact__form {
    background: var(--dark-color);
    border-radius: 24px;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.contact__form > * {
    max-width: 450px;
    width: 100%;
}

.contact__form h3 {
    color: var(--white-color);
    font-size: 1.7rem;
    line-height: 1.1;
}

.contact__form p {
    font-size: .9rem;
    color: var(--white-color);
    font-weight: 350;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form, .contact__form h3 {
    margin-right: 4rem;
}

.contact__form-input {
    position: relative;
}

.contact__input-icon {
    position: absolute;
    top: 28%;
    left: 4%;
}

[type="text"], [type="email"], [type="tel"]{
    padding: 0.9rem 3rem;
    border-radius: 6px;
    border: none;
    width: 100%;
    font-family: "Red Hat Display", sans-serif;
    -webkit-appearance: none;
    font-size: .9rem;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

::placeholder {
    color: var(--dark-color);
}

.contact__submit-button {
    background-color: var(--light-green-color);
    color: var(--dark-color);
    font-family: "Red Hat Display", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
    font-size: 1rem;
    border: none;
    font-weight: 650;
    cursor: pointer;
    width: 50%;
    padding: 0.9rem 3rem;
}

.maps {
    border-radius: 24px;
    border: none;
    height: 100%;
    min-height: 350px;
}

/* FAQ */

.faq-section {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.faq-question {
    background: var(--light-green-color);
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding-left: 1rem;
    background-color: #fff;
    padding-top: .5rem;
}

.faq-answer.open {
    max-height: 300px;
}

.faq-answer__paragraph {
    line-height: 1.5;
    margin-block: 1.5rem;
}

.faq-section__icon  {
    transition: transform .5s;
    height: 20px;
}

img.rotated {
    transform: rotate(90deg);
}

.yt-video {
    flex: 1;
}

.video {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 24px;
}

/* footer */

footer {
    background-color: var(--dark-color);
    margin-top: 4rem;
    padding-block: 4rem;
}

.footer-container {
    color: var(--white-color);
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin-inline: auto;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-container h3 {
    margin-bottom: 1rem;
}

.white-a {
    color: var(--white-color);
    text-decoration: none;
    font-size: .9rem;
}

.icon-and-detail {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.footer-socials {
    display: flex;
    gap: .7rem;
    margin-top: 1rem;
    align-items: center;
}

.footer-socials a {
    display: flex;
}

.footer-socials img {
    width: 20px;
}

.footer-logo-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer-container li {
    list-style: none;
    margin-bottom: .5rem;
    font-size: .9rem;
}

.footer-details {
    max-width: 350px;
    line-height: 1.4;
}

/* cookies */

.cookie-banner {
    position: fixed;
    bottom: 0;
    max-width: 500px;
    right: 0;
    width: 100%;
    background-color: var(--white-color);
    padding: 1rem 2rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 150;
    display: none;
}

.cookie-banner p {
    font-size: .8rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 500;
}

.cookie-banner button {
    width: 100px;
    font-family: "Red Hat Display", sans-serif;
    margin-right: .5rem;
    padding-block: 0.6rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid var(--dark-color);
    font-size: .9rem;
    color: var(--dark-color);
}

#accept-cookies {
    border: 2px solid var(--dark-color);
    background-color: var(--light-green-color);
}

/* stránky po vyplnění formuláře */

.after-form-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    gap: 2rem;
}

.after-form-content__heading {
    color: var(--dark-color);
    text-align: center;
}

.after-form-content__paragraph {
    font-size: 1.5rem;
}

@media (hover: hover) {
    .button:hover, .contact__submit-button:hover {
        box-shadow: 0 0 20px 1px var(--light-green-color);
    }

    .review__read-more:hover {
        text-decoration: underline;
        color: #585858;
        transition: all .3s linear;
    }

    .cookie-banner button:hover, #accept-cookies:hover {
        background-color: var(--dark-color);
        color: var(--white-color);
        transition: all .3s;
    }
}


@media (max-width: 1300px) {
    .benefit-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .contact {
        flex-direction: column;
    }
}

@media (max-width: 860px) {
    .banner {
        flex-direction: column;
        gap: 2rem;
        border-radius: 15px;
        padding: 4rem 2rem;
    }

    .contact__form, .maps, .video {
        border-radius: 15px;
    }

    .banner__left-content {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .benefit-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {

    .main-header_phone,
    .main-header__socials {
        display: none;
    }

    .header-container {
        justify-content: space-between;
    }

    .reviews-wrapper {
        display: block;
    }

    .google-info {
        margin-right: 0;
    }

    .headings {
        top: 12%;
    }

    .contact__submit-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .benefit-cards {
        grid-template-columns: 1fr;
    }

    .card {
        height: 300px;
    }

    .contact__form {
        padding: 3rem 2rem;
    }

    .video {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 430px) {
    .banner__right-content img {
        height: 300px;
    }
}

@keyframes bounce-effect {

    0%,
    90%,
    100% {
        transform: translateY(0);
    }

    92% {
        transform: translateY(-10px);
        /* Skok nahoru */
    }

    95% {
        transform: translateY(0px);
        /* Rychlé přiblížení dolů */
    }

    97% {
        transform: translateY(-5px);
        /* Malý odskok nahoru */
    }

    99% {
        transform: translateY(0);
        /* Návrat na původní pozici */
    }
}

@keyframes slideIn {
    0% {

        opacity: 0;
    }

    100% {

        opacity: 1;
    }
}