﻿/* styles.css */
:root {
    --primary-color: #0047A0; /* Основной синий цвет */
    --secondary-color: #FFD700; /* Акцентный золотой */
    --text-color: #333;
    --font-primary: 'Arial', sans-serif;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    line-height: 1.6;
}

/* Стили для пунктов меню */
.nav-links a {
    color: var(--primary-color); /* Цвет текста */
    text-decoration: none; /* Убираем подчеркивание */
    padding: 0.5rem 1rem; /* Отступы для удобства */
    border-radius: 5px; /* Закругленные углы */
    transition: background-color 0.3s ease, color 0.3s ease; /* Плавный переход */
}

/* Эффект при наведении */
.nav-links a:hover {
    background-color: #FFFACD; /* Приглушенный желтый цвет */
    color: var(--primary-color); /* Цвет текста при наведении */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255,255,255,0.95);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.main-header {
    background: linear-gradient(rgba(0,71,160,0.8), rgba(0,71,160,0.8)),
                url('header-bg.jpg') center/cover;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block; /* Для корректного отображения ссылки */
    text-decoration: none; /* Убираем подчеркивание */
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    transition: transform 0.3s;
    border: 2px solid transparent; /* Добавляем рамку */
}

.cta-button:hover {
    transform: scale(1.05);
    border-color: var(--primary-color); /* Эффект при наведении */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 5%;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.center-text {
    text-align: center; /* Выравнивание текста по центру */
}

.cta-text {
    margin: 1rem 10%; /* Отступы сверху/снизу 1rem, слева/справа 10% */
    text-align: center; /* Выравнивание текста по центру */
    font-size: 1.2rem; /* Размер текста */
    color: #fff; /* Цвет текста (если нужно) */
    line-height: 1.5; /* Межстрочный интервал */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .cta-text {
        margin: 1rem 5%; /* Уменьшаем отступы на мобильных */
        font-size: 1rem; /* Уменьшаем размер текста */
    }
}

/* Добавляем стили для эффекта при наведении */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; /* Плавный переход */
    border: 2px solid transparent; /* Прозрачная рамка по умолчанию */
}

.feature-card:hover {
    border-color: #87CEEB; /* Светло-голубой контур при наведении */
    transform: scale(1.05); /* Легкое увеличение блока */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Увеличение тени */
}

/* Реализация меню для смартфонов */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column; /* Пункты меню вертикально */
        background-color: rgba(255, 255, 255, 0.95); /* Фон меню */
        padding: 1rem;
    }

        background-color: rgba(255, 255, 255, 0.95); /* Фон меню */
        padding: 1rem;
    }

    .nav-links a {
        padding: 0.5rem; /* Уменьшаем отступы */
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Для мобильных можно добавить гамбургер-меню */
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
}

/* Стили для других страниц */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 5%;
}

/* Общие стили логотипа */
.logo img {
    height: 110px; /* Размер для десктопов по умолчанию */
    width: auto;
    transition: all 0.3s ease;
}

/* Приоритетные медиа-запросы */
@media (max-width: 1280px) {
    .logo img {
        height: 80px !important; 
    }
}

@media (max-width: 1024px) {
    .logo img {
        height: 80px !important;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 100px !important; /* Размер для планшетов */
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 100px !important; /* Явный размер для мобильных */
        min-height: 65px; /* Фиксируем минимальный размер */
    }
}

/* Гарантия отображения */
.navbar .logo {
    flex-shrink: 0; /* Запрещаем уменьшение */
    z-index: 1000; /* Приоритет над другими элементами */
}

  @keyframes fadeIn {
      to {
          opacity: 1;
      }
  }

@media (max-width: 600px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Стили для дополнительных страниц меню */
/* Стили для секции "О компании" */
.about-section {
    padding: 2rem 5%;
    text-align: center;
}

.about-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: left;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
}

.about-content ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.about-content ul li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-section h1 {
        font-size: 2rem;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }
}

/* Стили для картинки в блоке */
.feature-image {
    width: 100%; /* Картинка занимает всю ширину блока */
    height: auto; /* Высота подстраивается автоматически */
    border-radius: 10px; /* Закругленные углы */
    margin-bottom: 1rem; /* Отступ снизу */
    transition: transform 0.3s ease; /* Плавное увеличение при наведении */
}

.feature-card:hover .feature-image {
    transform: scale(1.05); /* Легкое увеличение картинки при наведении */
}

/* Стили для секции "Контакты" */
.contacts-section {
    padding: 2rem 5%;
    text-align: center;
}

.contacts-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: var(--secondary-color);
}


/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .feature-image {
        max-width: 80%; /* Уменьшаем ширину картинки на мобильных */
        margin: 0 auto 1rem; /* Центрируем картинку */
    }
    
    .contacts-section h1 {
        font-size: 2rem;
    }

    .contact-item h2 {
        font-size: 1.3rem;
    }

    .contact-item p {
        font-size: 1rem;
    }
}

/* Стили для страницы "Продукция" */
.products-section {
    padding: 2rem 5%;
    text-align: center;
}

.products-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.telegram-cta {
    background: var(--primary-color);
    padding: 2rem;
    border-radius: 15px;
    color: white;
    max-width: 800px;
    margin: 2rem auto;
}

.telegram-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.telegram-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .products-section h1 {
        font-size: 2rem;
    }
    
    .product-card {
        padding: 1rem;
    }

    .telegram-cta {
        padding: 1.5rem;
        margin: 1rem;
    }

    .telegram-cta h2 {
        font-size: 1.5rem;
    }
}