/*
Theme Name: СпецПродукт
Theme URI: https://specproduct.ru
Author: СпецПродукт Team
Author URI: https://specproduct.ru
Description: Кастомная тема для сайта производителя растворимых напитков
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: specproduct
*/

/* ===================================
   НАВИГАЦИЯ ПО ФАЙЛУ
   ===================================

   1. ДИЗАЙН-СИСТЕМА (переменные) ......... строка ~20
   2. ОБЩИЕ СТИЛИ (reset, typography) ..... строка ~40
   3. КНОПКИ И ССЫЛКИ ..................... строка ~95
   4. HEADER (липкая шапка) ............... строка ~150
   5. HERO СЕКЦИЯ (главная) ............... строка ~210
   6. СЕТКА ТОВАРОВ (products-grid) ....... строка ~260
   7. ПРОИЗВОДСТВО (production) ........... строка ~340
   8. FOOTER (подвал) ..................... строка ~380
   9. МЕТКИ ТОВАРОВ (badges) .............. строка ~430
   10. АДАПТИВНОСТЬ (media queries) ....... строка ~450

   =================================== */

/* --- 1. ДИЗАЙН-СИСТЕМА (VARIABLES) --- */
:root {
    /* Цветовая палитра */
    --color-primary: #C2185B;   /* Ягодный/Бордовый */
    --color-accent: #FF9800;    /* Оранжевый CTA */
    --color-secondary: #4CAF50; /* Зеленый */
    --color-text: #333333;      /* Основной текст */
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-light-gray: #F5F5F5;

    /* Типографика */
    --font-headings: 'Exo 2', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* UI Элементы */
    --border-radius-pill: 50px;
    --border-radius-card: 16px;
    --shadow-card: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

/* --- ОБЩИЕ СТИЛИ --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    
    /* ПОЯСНЕНИЕ: Эффект "акварельных пятен"
       Реализован через множественные радиальные градиенты (radial-gradient)
       на фоне body. Мы используем прозрачность (rgba) и размытие, чтобы 
       имитировать мягкие пятна краски.
    */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(194, 24, 91, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 50%, rgba(194, 24, 91, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(76, 175, 80, 0.05) 0%, transparent 40%);
    background-attachment: fixed; /* Пятна остаются на месте при скролле */
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

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

ul {
    list-style: none;
}

/* Контейнер для центрирования контента */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-family: var(--font-headings);
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

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

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Ссылки со стрелками */
.link-arrow {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.link-arrow:hover {
    gap: 12px;
    color: var(--color-accent);
}

/* --- 1. STICKY HEADER --- */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
    zoom: 1.6;
}

.logo i {
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    position: relative;
}

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

/* Мобильное меню (гамбургер) скрыто на десктопе */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* --- 2. HERO SECTION --- */
.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 30px; /* Скругление для контента */
    /* Тень для объема */
    filter: drop-shadow(0 20px 30px rgba(194, 24, 91, 0.2)); 
}



/* --- 3. НОВИНКИ (GRID) --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 0;
}

.product-card {
    background: white;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-card);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(194, 24, 91, 0.15);
}

.badge-new {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--color-secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-img {
    width: 180px;
    height: 220px;
    object-fit: contain;
    margin: 0 auto 20px;
    /* Placeholder styling */
    background-color: #f9f9f9; 
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
}

.product-card h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

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

/* --- 4. ПРОИЗВОДСТВО --- */
.production-section {
    background-color: white;
    padding: 100px 0;
    margin-bottom: 50px;
}

.production-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.production-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.production-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

.production-content {
    flex: 1;
}

.production-content h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

/* --- 5. FOOTER --- */
.footer {
    background-color: #f9f9f9;
    padding: 60px 0 30px;
    border-top: 1px solid #eaeaea;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: white;
}

/* --- АДАПТИВНОСТЬ (Responsive) --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header */
    .nav-menu {
        display: none; /* В реальном проекте здесь будет JS для открытия меню */
    }
    .mobile-toggle {
        display: block;
    }
    
    /* Hero */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .hero-content {
        order: 2;
    }
    .hero-image {
        order: 1;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr; /* Stacking в 1 колонку */
    }

    /* Production */
    .production-inner {
        flex-direction: column;
    }
    .production-img {
        width: 100%;
    }

    /* Адаптивность для карточек товаров на мобильных */
    .product-card h3 {
        font-size: 1rem;
    }

    .product-card p {
        font-size: 0.85rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    /* Hero секция */
    .hero-content h1 {
        font-size: 2rem !important;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Отступы для мобильных */
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* ===================================
   МЕТКИ ТОВАРОВ (Badges)
   =================================== */

.badge-new,
.badge-hit,
.badge-sale {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    z-index: 10;
}

.badge-new {
    background-color: var(--color-secondary); /* Зеленый */
}

.badge-hit {
    background-color: var(--color-primary); /* Бордовый */
}

.badge-sale {
    background-color: var(--color-accent); /* Оранжевый */
}

/* Анимация появления метки */
.badge-new,
.badge-hit,
.badge-sale {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   КАТЕГОРИИ ПРОДУКЦИИ - БЛОК 1
   ============================================ */

/* Блоки категорий */
.product-category-block {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 3px solid #e8e8e8;
}

.product-category-block:first-child {
    border-top: none;
    padding-top: 0;
}

.product-category-block .category-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    max-width: 900px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.no-products {
    font-style: italic;
    color: #999;
    padding: 20px;
    text-align: center;
}

/* Бейджи/Метки товаров */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 10px 0;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background: #ecf0f1;
    color: #2c3e50;
    transition: transform 0.2s ease;
}

.badge:hover {
    transform: translateY(-2px);
}

/* Цветовая схема для разных тегов */
.badge-stm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-horeca {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-fasovka20 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.badge-gosoboronzakaz {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.badge-fsin {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.badge-porcionnye {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-category-block {
        margin: 30px 0;
        padding: 30px 0;
    }

    .product-category-block .category-title {
        font-size: 24px;
    }

    .category-description {
        font-size: 14px;
        padding: 12px;
    }

    .badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .product-badges {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .product-category-block .category-title {
        font-size: 20px;
    }

    .badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* ============================================
   О КОМПАНИИ - БЛОК 2
   ============================================ */

.about-company-page {
    padding: 60px 0 80px;
}

.about-company-page h1 {
    font-size: 42px;
    margin-bottom: 50px;
    text-align: center;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-company-page section {
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.about-company-page section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(194, 24, 91, 0.12);
}

.about-company-page h2 {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-company-page h3 {
    font-size: 24px;
    color: var(--color-text);
    margin: 25px 0 15px;
}

.about-company-page .section-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--color-text-light);
}

.about-company-page .section-content p {
    margin-bottom: 20px;
}

.about-company-page .section-content ul,
.about-company-page .section-content ol {
    margin: 20px 0;
    padding-left: 30px;
    list-style: initial;
}

.about-company-page .section-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.about-company-page .section-content strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* Документы для скачивания */
.certification-docs {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e8e8e8;
}

.certification-docs h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--color-text);
}

.docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.docs-list li {
    margin: 0;
}

.docs-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    transition: var(--transition);
}

.docs-list a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.docs-list a i {
    font-size: 20px;
    color: var(--color-accent);
    transition: var(--transition);
}

.docs-list a:hover i {
    color: white;
}

/* Адаптив для страницы О компании */
@media (max-width: 992px) {
    .about-company-page h1 {
        font-size: 36px;
    }

    .about-company-page h2 {
        font-size: 28px;
    }

    .about-company-page section {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .about-company-page {
        padding: 40px 0;
    }

    .about-company-page h1 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .about-company-page h2 {
        font-size: 24px;
    }

    .about-company-page h3 {
        font-size: 20px;
    }

    .about-company-page section {
        padding: 25px 20px;
        margin-bottom: 40px;
    }

    .about-company-page .section-content {
        font-size: 15px;
    }

    .docs-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .docs-list a {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .about-company-page h1 {
        font-size: 24px;
    }

    .about-company-page h2 {
        font-size: 20px;
    }

    .about-company-page section {
        padding: 20px 15px;
    }
}
