/* --- Глобальні стилі та змінні --- */
:root {
    --primary-color: #0699da;
    --dark-color: #1b1918;
    --background-color: #e0eff6;
    --white-color: #ffffff;
    --gray-border-color: #e6e6e6;
    --gray-text-color: #9b9b9b;
    --success-color: #00b207;
    --font-family: 'Poppins', sans-serif;
}

/* --- Скидання стилів та базові налаштування --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

/* --- Утиліти --- */
.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #057ab0;
    transform: translateY(-2px);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Хедер --- */
.header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-border-color);
    background-color: var(--white-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px; 
    width: auto;
}

.nav {
    display: none; /* Сховано на мобільних */
}

.header-contacts {
    display: none; /* Сховано на мобільних */
}

/* --- СТИЛІ ДЛЯ ІКОНОК ТЕЛЕФОНУ (ДОДАНО) --- */
.header-phone-link {
    display: flex;
    align-items: center;
    gap: 8px; /* Відстань між іконкою та текстом */
    transition: color 0.3s ease;
}

.header-phone-link:hover {
    color: var(--primary-color);
}

.header-phone-link svg {
    width: 18px;
    height: 18px;
}
/* --- КІНЕЦЬ ДОДАНИХ СТИЛІВ --- */


/* --- Бургер-меню --- */
.menu-toggle {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle:checked ~ .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 133px; /* Оновлена висота хедера (100px logo + 2rem padding + 1px border) */
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav ul {
    width: 100%;
    text-align: center;
}

.nav ul li {
    padding: 1rem 0;
}

.nav ul li a {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
}
.menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


/* --- Секція Hero --- */
.hero {
    background-color: transparent; /* Переконуємось, що немає кольору під патерном */
    background-image: url('img/123-1.png');
    background-repeat: repeat;
    background-size: 1920px;
    background-position: center;
    padding: 4rem 0;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-images {
    display: none;
}


/* --- Каталог --- */
.catalog {
    padding: 4rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.product-card {
    border: 1px solid var(--gray-border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    background-color: var(--white-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.product-image {
    height: 180px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 1.5rem;
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    flex-grow: 1; /* Вирівнює кнопки по нижньому краю */
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-availability {
    color: var(--success-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-pickup {
    font-size: 0.8rem;
    font-style: italic;
    color: #777;
    margin-bottom: 1.5rem;
}

.product-card .btn {
    width: 100%;
}

/* --- Карта --- */
.map-section {
    padding: 4rem 0;
    background-color: #f8f8f8;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    width: 100%;
    /* === ОНОВЛЕНО: Збільшено висоту для кращого відображення точок на мобільних (125% = 4:5 співвідношення) === */
    padding-top: 125%; 
}

/* === СТИЛІ ДЛЯ ПРИХОВАННЯ ХЕДЕРА GOOGLE (без змін) === */
.map-container iframe {
    position: absolute;
    top: -100px; /* Зсуваємо iframe вгору, щоб сховати хедер */
    left: 0;
    width: 100%;
    height: calc(100% + 100px); /* Робимо iframe вищим, щоб компенсувати зсув */
    border: 0;
}
/* === КІНЕЦЬ СТИЛІВ ДЛЯ IFRAME === */


/* --- Футер --- */
.footer {
    background-color: transparent; /* Переконуємось, що немає кольору під патерном */
    background-image: url('img/334-1.png');
    background-repeat: repeat;
    background-size: 1920px;
    background-position: center;
}

.footer-cta {
    padding: 4rem 0;
}

.cta-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.cta-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    width: 100%;
}

.cta-form input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-border-color);
    background-color: #f9fcff;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-form input::placeholder {
    color: var(--gray-text-color);
}

.cta-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(6, 153, 218, 0.5);
}

.cta-form .btn {
    width: 100%;
}

.footer-divider {
    height: 1px;
    background-color: var(--gray-border-color);
    max-width: 1680px;
    margin: 0 auto;
}

.footer-bottom {
    padding: 3rem 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-logo {
    /* === ЗМІНЕНО === */
    height: 100px; /* Зменшено за вашим запитом */
    /* === /ЗМІНЕНО === */
    width: auto;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-column a, .footer-column p {
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}
.footer-column a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* --- Медіа-запити для планшетів --- */
@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    /* === ОНОВЛЕНО: Повертаємо 16:9 для планшетів і десктопів === */
    .map-container {
        padding-top: 56.25%; /* Співвідношення сторін 16:9 */
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-container {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    
    .cta-content { flex: 1; }
    
    /* --- ЗМІНЕНО: Вирівнювання тексту в CTA --- */
    .cta-content .section-title {
        text-align: left;
    }
    
    /* --- ЗМІНЕНО: Збільшено ширину форми --- */
    .cta-form { 
        flex: 1; 
        max-width: 625px; /* Було 500px */
    }
    .cta-form .btn { width: 100%; }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-start;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: space-around;
        gap: 2rem;
    }

    .social-icons {
        justify-content: flex-start;
    }
}

/* --- Медіа-запити для десктопів --- */
@media (min-width: 1200px) {
    .hamburger, .menu-toggle {
        display: none;
    }

    .nav {
        display: block;
    }

    .nav ul {
        display: flex;
        gap: 2.5rem;
    }

    .nav ul li a {
        font-size: 1rem;
        font-weight: 600;
        transition: color 0.3s ease;
    }
    .nav ul li a:hover {
        color: var(--primary-color);
    }
    
    .header-contacts {
        display: flex;
        gap: 1.5rem;
    }
    .header-contacts a {
        font-weight: 600;
    }

    .hero-container {
        flex-direction: row;
        text-align: left;
        padding-top: 4rem;
        padding-bottom: 4rem;
        min-height: 600px;
    }
    
    .hero-content {
        flex: 1.2;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
     .hero-content p {
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-images {
        display: block;
        flex: 1;
        position: relative;
        height: 500px;
    }
    
    .hero-images img {
        position: absolute;
        object-fit: contain;
        max-width: none; /* Override max-width: 100% */
        transition: transform 0.3s ease;
    }

    .hero-images img:hover {
        transform: scale(1.05);
    }

    .hero-img-1 { width: 280px; top: 0; left: 0; }
    .hero-img-2 { width: 300px; top: 0; left: 250px; z-index: 1; }
    .hero-img-3 { width: 265px; top: 250px; left: 40px; }
    .hero-img-4 { width: 243px; top: 320px; left: 300px; z-index: 1; }
    
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* === ОНОВЛЕНО: Обмеження висоти карти на десктопі === */
    .map-container {
        padding-top: 0;  /* Скидаємо відносний відступ */
        height: 600px; /* Встановлюємо фіксовану висоту */
    }
    /* === КІНЕЦЬ ОНОВЛЕННЯ === */
}
/* --- Стилі для модального вікна (без змін) --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-backdrop.is-visible .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--gray-text-color);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: var(--dark-color);
}

.modal-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray-text-color);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-border-color);
    background-color: #f9fcff;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: var(--gray-text-color);
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(6, 153, 218, 0.5);
}

.modal-form textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* --- СТИЛІ ДЛЯ СТОРІНКИ "ПРО НАС" (ABOUT) --- */

.about-section {
    padding: 4rem 0;
    background-color: var(--white-color);
}

.about-container {
    max-width: 1000px;
}

.about-content {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-block {
    padding: 1.5rem;
    border: 1px solid var(--gray-border-color);
    border-radius: 10px;
    background-color: #fcfcfc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.about-heading {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0eff6;
}

.about-content p {
    margin-bottom: 1rem;
}

.about-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.about-content ul li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.about-contacts-block {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 10px;
}

.about-contacts-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-email-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* --- Медіа-запити для десктопів: СТОРІНКА "ПРО НАС" --- */
@media (min-width: 1200px) {
    .about-section {
        padding: 6rem 0;
    }

    .about-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .about-block {
        flex: 1;
        min-width: 45%; /* Для двох колонок */
        padding: 2rem;
    }
}