* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #E6E9F0, #F5F6FA);
    color: #2A3F5F;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(74, 90, 94, 0.8), rgba(74, 90, 94, 0.8)), url('building-image.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #FFFFFF;
    color: #2A3F5F;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
}

.tariff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* Products Section */
.products {
    padding: 10px 0;
    text-align: center;
}

.products h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2A3F5F;
}

.product-grid {
    display: grid;
    gap: 30px;
    justify-content: center;  
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
}

@media (min-width: 600px) and (max-width: 991px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }
}

@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(250px, 1fr));
  }
}

.product-card {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 340px;          
}


.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    background-color: #000000;
    padding: 10px;
    border-radius: 10px;
}

.product-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2A3F5F;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 16px;
    color: #5A6A7A;
    margin-bottom: 15px;
}

.price-and-button {
    margin-top: auto; /* Притискаємо блок із ціною та кнопкою донизу */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Відстань між ціною та кнопкою */
}

.price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount-price {
    font-size: 18px;
    font-weight: 700;
    color: #00A3E0;
}

.discount-badge {
    position: absolute;
    top: -15px;
    right: -10px;
    background-color: #ff4d4f;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


.product-card .price {
    font-weight: 700;
    color: #00A3E0;
    font-size: 16px;
}


.buy-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFFFFF;
    color: #2A3F5F;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.buy-button:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    text-align: center;
}

.contact h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2A3F5F;
    margin-bottom: 20px;
}

.contact p {
    font-size: 18px;
    color: #5A6A7A;
    margin-bottom: 30px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #D3D8E0;
    border-radius: 10px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    color: #2A3F5F;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #A0A8B5;
}

.contact-form textarea {
    height: 100px;
    resize: none;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #00A3E0;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #008BBF;
}

/* Footer */
.footer {
    padding: 20px 0;
    text-align: center;
    background-color: #FFFFFF;
    border-top: 1px solid #D3D8E0;
}

.footer p {
    font-size: 14px;
    color: #5A6A7A;
}

.social-links a {
    color: #00A3E0;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {

    .filter-menu {
      overflow-x: auto;
      flex-wrap: nowrap;
      justify-content: flex-start;
      //justify-content: center;
      padding-bottom: 10px;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;

    }
    .filter-menu::-webkit-scrollbar {
      display: none;
    }


    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .products h2, .contact h2 {
        font-size: 28px;
    }

    .product-card h3 {
        font-size: 20px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }


}