/* Общие стили для мобильных устройств (mobile-first) */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    font-size: 16px; /* Минимальный размер шрифта для readability */
    -webkit-text-size-adjust: 100%; /* Предотвращает автоматическое изменение размера текста */
    word-wrap: break-word; /* Перенос слов для адаптивности */
}

.container {
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto; /* Центрирование контента при более широком экране */
}

/* --- Header --- */
.header {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.logo-link {
    display: block;
    margin-bottom: 10px;
}

.logo {
    max-width: 150px; /* Оптимизировано для мобильных */
    height: auto;
    display: block;
    margin: 0 auto;
}

.main-heading {
    font-size: 24px;
    color: #0056b3;
    margin: 10px 0;
}

/* --- Секции контента --- */
.section-title {
    font-size: 20px;
    color: #0056b3;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 5px;
}

.hero-section {
    text-align: center;
    margin-bottom: 30px;
}

.tagline {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    margin-bottom: 15px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Убираем лишнее пространство под изображением */
}

.value-proposition {
    font-size: 17px;
    margin-bottom: 25px;
}

.features-section .feature-item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.features-section .feature-item h3 {
    font-size: 18px;
    color: #0056b3;
    margin-top: 0;
}

.testimonial-quote {
    background-color: #e6f2ff;
    padding: 20px;
    border-left: 5px solid #0056b3;
    margin: 20px 0;
    font-style: italic;
    border-radius: 4px;
}

.testimonial-quote cite {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 15px;
    color: #777;
}

.content-section ul, .content-section ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-section ul li, .content-section ol li {
    margin-bottom: 8px;
}

.content-section p strong {
    color: #0056b3;
}

/* --- Кнопки (CTA) --- */
.cta-button {
    display: block;
    width: 100%; /* Full width on mobile */
    padding: 15px 10px; /* Touch-friendly size */
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    min-height: 44px; /* Minimum touch target size */
    line-height: 1; /* Ensures text aligns well within button */
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* --- Формы --- */
.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 16px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none; /* Hidden by default, shown by JS */
}

.success-message {
    color: #28a745;
    font-size: 16px;
    padding: 10px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}

/* --- Google Map --- */
.map-container {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    height: 0;
    margin-top: 20px;
    border-radius: 8px;
}

.map-container iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: 8px;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #0056b3;
    color: #fff;
    font-size: 14px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.footer-nav {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    display: block; /* Stack links on mobile */
    padding: 5px 0;
    font-size: 15px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    box-sizing: border-box;
    display: flex; /* Flexbox for alignment */
    flex-direction: column; /* Stack items on mobile */
    align-items: center;
    gap: 10px; /* Space between text and button */
    z-index: 1000; /* Ensure it's on top */
    transform: translateY(100%); /* Start off-screen */
    animation: slideUp 0.5s forwards; /* Slide in animation */
}

.cookie-banner.hidden {
    display: none; /* Hide when accepted */
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner p {
    margin: 0;
    font-size: 15px;
    flex-grow: 1; /* Allow text to take up available space */
}

.cookie-banner p a {
    color: #87ceeb;
    text-decoration: underline;
}

.cookie-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    min-width: 120px; /* Ensure sufficient width */
    min-height: 44px; /* Touch-friendly height */
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.cookie-button:hover {
    background-color: #0056b3;
}

/* --- Стили для десктопа (Media Queries) --- */
@media (min-width: 768px) {
    .container {
        max-width: 800px; /* Увеличиваем ширину для десктопов */
    }

    .main-heading {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .tagline {
        font-size: 22px;
    }

    .value-proposition {
        font-size: 18px;
    }

    .cta-button {
        width: auto; /* Allow buttons to size based on content */
        padding: 15px 30px;
        display: inline-block; /* For horizontal alignment if needed */
    }

    .features-section {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }

    .features-section .feature-item {
        flex: 1; /* Distribute space equally */
        margin-bottom: 0;
    }

    .footer-nav a {
        display: inline-block; /* Display links inline on desktop */
        padding: 0;
    }

    .cookie-banner {
        flex-direction: row; /* Align items horizontally on desktop */
        justify-content: space-between;
    }
    .cookie-banner p {
        text-align: left;
    }
    .cookie-button {
        margin-left: 20px; /* Space between text and button */
    }
}