:root {
    --main-yellow: #FFD700;
    --text-dark: #333;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

h2 {
    font-size: 2.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-dark);
    text-transform: uppercase;
}

.top-bar {
    background-color: var(--main-yellow);
    color: black;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: fixed;
    z-index: 20;
    width: 100%;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .header-contact i {
    margin-right: 0.5rem;
}

.header-contact a {
    text-decoration: none;
    color: black;
}

.top-bar .header-contact span+span {
    margin-left: 1.5rem;
}

.navbar {
    padding-top: 4rem;
    padding-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    margin-left: 1rem;
    color: #000;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: var(--main-yellow);
}

.nav-item {
    align-content: center;
}

.highlight-phone a {
    color: var(--main-yellow);
    font-weight: bold;
    margin-left: 2rem;
    text-decoration: none;
}

.container.hero-content {
    justify-items: center;
    max-width: 62rem;
    margin-bottom: 4rem;
}

.hero {
    position: relative;
    background: url('../images/koparka.webp') no-repeat center center/cover;
    min-height: 500px;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 700px;
}

.hero-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0;
    text-transform: uppercase;
    text-align: center;
    padding: 2rem 2rem 3rem;
    border: 1px solid var(--main-yellow);
}

.hero-header-small-text {
    color: black;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: -2rem;
}

.subtitle-small-text {
    padding: 1rem;
    margin: 0;
    background-color: var(--main-yellow);
    text-transform: uppercase;
}

.our-offers {
    padding: 2rem 0;
    position: relative;
}

.our-offers::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--main-yellow);
    border-radius: 2px;
}

.offer-machines {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
    column-gap: 10px;
    row-gap: 10px;
}

.offer-machine {
    background: white;
    margin: 0;
    width: 20%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

@media (max-width: 768px) {
    .offer-machine {
        background: white;
        width: 45%;
    }
}

.offer-machine img {
    max-width: 100%;
    height: auto;
}

.row {
    --bs-gutter-x: 1rem;
}

#services {
    margin-top: -9rem;
    position: relative;
    padding-bottom: 0rem !important;
}

@media (max-width: 1320px) {
    #services {
        margin-top: -8rem;
    }
}

@media (max-width: 600px) {
    #services {
        margin-top: 0;
    }
}

.service-card {
    height: 100%;
    text-align: center;
    border: 1px solid #eee;
    padding: 1rem 1rem;
    transition: background 0.3s ease;
    background-color: var(--main-yellow);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    position: relative;
    overflow: hidden;
}


.service-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    background-color: #e6c200;
}

.service-card img {
    max-width: 100px;
    max-height: 100px;
    width: 100%;
    height: auto;
}

.service-card img,
.service-card h5 {
    transition: opacity 0.2s ease;
}

.service-card.hovered {
    background-size: cover;
    background-position: center;
}

.service-card.hovered img,
.service-card.hovered h5 {
    opacity: 0;
}

.service-card h5 {
    font-weight: bold;
    margin-bottom: 0;
}

.service-card p {
    font-size: 0.9rem;
}

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1650px;
    }
}

@media (max-width: 1280px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm {
        max-width: 100%;
    }
}

@media (max-width: 1120px) {
    .col-md-2 {
        flex: 0 0 auto;
        width: 25%;
    }
}

@media (max-width: 768px) {
    .col-md-2 {
        flex: 0 0 auto;
        width: 50%;
    }

    .container,
    .container-sm {
        max-width: 100%;
    }
}

@media (min-width: 1121px) {
    .col-md-2 {
        flex: 0 0 auto;
        width: 12.5%;
    }
}

.about-section {
    margin: 2rem auto;
    padding: 2rem 0 0;
    position: relative;

}

@media (max-width: 768px) {
    .about-section {
        padding: 2rem 2rem 0;
    }
}

.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--main-yellow);
    border-radius: 2px;
}

.about-section .container {
    max-width: 1530px;
    margin: 0 auto;
}


.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
    color: black;
    max-width: 60rem;
    justify-self: center;
}

.about-section ul {
    list-style-type: disc;
    margin: 1rem auto;
    /* wcięcie dla punktorów */
    font-size: 1.1rem;
    line-height: 1.8;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;

}

@media (max-width: 768px) {
    .about-section ul {
        padding-left: 0;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
}

.about-section li {
    text-transform: uppercase;
}

.contact-area {
    position: relative;
}

.contact-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--main-yellow);
    border-radius: 2px;
}

.contact-title {
    justify-self: center;
    margin-bottom: 2rem;
}

.contact-info-row {
    justify-self: center;
    display: flex;
    gap: 4rem;
}

.contact-info-row a {
    text-decoration: none;
    color: black;
}

footer {
    background-color: #f8f9fa;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

footer p {
    margin: 0;
}

@media (max-width: 767.98px) {
    .service-card {
        margin-bottom: 1rem;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .contact-info-row {
        gap: 2rem;
        flex-direction: column;

        p {
            text-align: center;
        }
    }
}