/* 1. Загальні налаштування */
header {
    background-color: white;
    color: rgb(0, 0, 0);
    font-family: 'Playfair Display', serif;
    border-radius: 60px;
    margin: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 40px;
    gap: 30px;
}
header h1 {
    font-size: 100px;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.1;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}
.logo-image {
    width: 200px;
    height: 200px;
    margin-left: auto;
} 
body {
    background: linear-gradient(270deg, #000000, #2a2a2a, #2a2a2a, #000000);
    background-size: 600% 600%;
    animation: ocean 20s ease infinite;
    color: white; 
    border: none;
    max-width: 1200px;
    margin: 0 auto;
}
@keyframes ocean {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.nav {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.nav-link {
    text-decoration: none;
    color: black;
    font-family: Doppio One;
    background-color: white;
    padding: 20px 100px;
    margin: 100px;
    margin-bottom: 200px;
    margin-top: 10px;
    border-radius: 60px;
    font-size: 28px;
    font-family: Bebas Neue;
    transition: 0.3s;
}
.nav-link:hover {
    background-color: black; 
    color: white;           
    outline: 1px solid white;
    transform: scale(1.1);
}
.main-image {
    width: 450px;
    height: 600px;
    border: 3px solid white;
    display: block;
    margin: 20px;
}
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 50px;
    margin-top: -100px;
}
.cut {
    color: white;
    border: 3px solid white;
    padding: 60px;
    width: 350px;
    text-align: center;
    font-size: 28px;
    font-family: Doppio One;
    margin-bottom: 25px;
}
/* CONTACT */
.cont {
    font-size: 50px;
    font-family: Doppio One;
    margin-top: 30px;
    text-decoration: none;
    color: white;
}
.cont:hover {
    color: grey;
    transition: 0.3s;
}
.cont1 {
    font-size: 40px;
    font-family: Doppio One;
    text-align: center;
    margin-top: 150px;
}
.cont2 {
    font-size: 60px;
    font-family: Doppio One;
    text-align: center;
    margin-top: 50px;
}
.cont3 {
    font-size: 20px;
    font-family: Doppio One;
    text-align: center;
    margin-top: 350px;
}
.cont4 {
    font-size: 20px;
    font-family: Doppio One;
    text-align: right;
    margin-top: 50px;
}
/* GARAGE */
/* Заголовок */
.main-title {
    text-align: center;
    font-size: 60px;
    font-family: 'Doppio One', sans-serif;
    color: white;
}
.home-link {
    position: absolute; 
    top: 30px;          
    left: 30px;         
    text-decoration: none;
    color: white;
    font-family: 'Doppio One', sans-serif;
    font-size: 20px;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.home-link:hover {
    background-color: white;
    color: black;
}

/* Фільтр кубів */
.engine-filter {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}
.filter-label {
    font-family: 'Doppio One', sans-serif;
    font-size: 24px;
    color: white;
    margin-right: 10px;
}

.filter-row {
    display: inline-flex;
    border: 2px solid white; 
    display: flex;
    border: 2px solid white;
    border-radius: 12px;
    overflow: hidden;
}

.filter-item {
    border-right: 1px solid white;
    font-weight: bold;
    cursor: pointer;
    font-size: 25px;
    padding: 15px 40px;
    color: white;
    font-family: 'Doppio One', sans-serif;
    transition: 0.3s;
}
.filter-item:last-child {
    border-right: none;
}
.filter-item:hover, .filter-item.active {
    background-color: white;
    color: black;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}


.moped-grid {
    flex-wrap: wrap; 
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 40px;           
    padding: 40px;       
    width: 95%;         
    max-width: 1400px;   
    margin: 0 auto;
}


.moped-card {
    border: 1px solid white;
    padding: 20px;
    width: calc(33.33% - 30px); 
    min-width: 250px; 
    text-align: center;
    background: black;
    box-sizing: border-box; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    min-height: 450px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    display: none;
}

.moped-card:hover {
    transform: translateY(-10px); 
    border-color: #00aaff;        
    box-shadow: 0px 10px 20px rgba(0, 170, 255, 0.4); 
    cursor: pointer;              
}



.img-box img {
    width: 100%;
    height: auto;
    background: white;
}

.info {
    display: flex;
    justify-content: space-between;
    color: white;
    margin: 15px 0 5px 0;
    font-size: 20px;
    width: 100%;
}

.price {
    color: white;
    font-size: 26px;
    font-weight: bold;
    text-align: left; 
    margin-top: 10px;
    display: block;
    width: 100%;
}
#paymentModal {
    display: none;
    position: absolute;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #00aaff;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.5);
    color: white;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-btn {
    position: absolute;
    right: 0;
    top: -10px;
    font-size: 30px;
    cursor: pointer;
    color: #777;
    line-height: 1;
}

.close-btn:hover { color: white; }

.pay-button {
    background: #00aaff;
    color: black;
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    margin-top: 15px;
    font-size: 18px;
    transition: 0.2s;
}

.pay-button:hover {
    background: #00d5ff;
    transform: scale(1.02);
}
@media (max-width: 600px) {

    .main-title {
        font-size: 40px;
    }

    .moped-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 10px;
    }

    .filter-row {
        overflow-x: auto;
        display: flex;
        justify-content: flex-start;
        padding: 5px;
    }

    .filter-item {
        padding: 10px 20px; 
        flex-shrink: 0;
    }
}