.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    width: 75%;
    padding: 8rem 0;
}

.hero h3 {
    color: #ff6600;
    padding-bottom: 1rem;
    font-size: 0.95rem;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 600;
    padding-bottom: 2rem;
    line-height: 1;
    width: 36rem;
}

.hero p {
    font-size: 1rem
}

/* BAR */

main .bar {
    display: flex;
    justify-content: center;
    gap: 8rem;
    background-color: #e14f00;
    padding: 2rem;
}

.bar .section {
    text-align: center;
}

.bar .section h3 {
    color: #fff;
    font-size: 2.5rem;
}

.bar .section p {
    color: #f7d3bf;
}

/* TESTIMONIALS */

.testimonials {
    padding: 8rem;
    display: flex;
    justify-content: center;
}

.testimonials .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    width: 100%;
}

.testimonials .card {
    width: 100%;
    padding: 2rem;
    border-right: 1px solid #e0deda;
    border-bottom: 1px solid #e0deda;
}

.testimonials .card:nth-child(3n) {
    border-right: none;
}

.testimonials .card:nth-last-child(-n+3) {
    border-bottom: none;
}

.testimonials .card .top {
    border-bottom: 1px solid #e0deda;
}

.testimonials .card .top img {
    height: 2rem;
}

.testimonials .card .top p {
    padding: 0.5rem 0 1rem 0;
    font-size: 0.9rem;
}

.testimonials .card .bottom {
    padding-top: 1rem;
}

.testimonials .card .bottom .stars img {
    height: 1rem;
}

.testimonials .card .bottom h4 {
    font-weight: 500;
}

.testimonials .card .bottom h5 {
    font-weight: 500;
}

.testimonials .card .bottom p {
    font-size: 0.75rem;
    color: #ff6600;
}

/* POPTAVKA */

.poptavka {
    background-color: #f3f1ee;
    padding: 8rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #c7c7c7;
}

.poptavka h4 {
    font-size: 2rem;
}

.poptavka a {
    background-color: #ff6600;
    color: #fff;
    display: flex;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition-duration: 0.2s;
    border-radius: 8px;
}

.poptavka a:hover {
    background-color: #e14f00;
}

/* =========================
   TABLET (≤ 1024px)
   ========================= */
@media (max-width: 1024px) {

    /* HERO */
    .hero-content {
        width: 85%;
        padding: 6rem 0;
    }

    .hero h2 {
        font-size: 3rem;
        width: 100%;
        max-width: 32rem;
    }


    /* BAR */
    main .bar {
        gap: 3rem;
        padding: 2rem 1rem;
        flex-wrap: wrap;
    }

    .bar .section h3 {
        font-size: 2rem;
    }


    /* TESTIMONIALS GRID → 2 sloupce */
    .testimonials {
        padding: 6rem 2rem;
    }

    .testimonials .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials .card {
        width: 100%;
    }

    /* oprava borderů pro 2 sloupce */
    .testimonials .card:nth-child(3n) {
        border-right: 1px solid #e0deda;
    }

    .testimonials .card:nth-child(2n) {
        border-right: none;
    }

    .testimonials .card:nth-last-child(-n+3) {
        border-bottom: 1px solid #e0deda;
    }

    .testimonials .card:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .poptavka {
        padding: 6rem 1.5rem;
        text-align: center;
    }

    .poptavka h4 {
        font-size: 1.7rem;
        max-width: 32rem;
    }

    .poptavka p {
        max-width: 32rem;
    }
}


/* =========================
   MOBIL (≤ 600px)
   ========================= */
@media (max-width: 600px) {

    /* HERO */
    .hero-content {
        width: 90%;
        padding: 4rem 0;
    }

    .hero h2 {
        font-size: 2.2rem;
        line-height: 1.2;
        max-width: 100%;
    }


    /* BAR → pod sebe */
    main .bar {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 1rem;
    }

    .bar .section h3 {
        font-size: 1.8rem;
    }


    /* TESTIMONIALS GRID → 1 sloupec */
    .testimonials {
        padding: 3rem 1rem;
    }

    .testimonials .grid {
        grid-template-columns: 1fr;
    }

    .testimonials .card {
        width: 100%;
        max-width: 520px;   /* skoro celý displej */
        margin: 0 auto;     /* vycentrování */
        border-right: none;
    }

    .testimonials .card:not(:last-child) {
        border-bottom: 1px solid #e0deda;
    }
}

