/* =========================================
   Основные переменные и сброс
   ========================================= */
:root {
    --primary: #005bff;
    --primary-dark: #0042b3;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --border-radius: 8px;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Roboto', sans-serif;
}

body { 
    font-family: var(--font-body); 
    color: var(--text-dark); 
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .brand-font { 
    font-family: var(--font-heading); 
    font-weight: 700;
}

/* =========================================
   Навигация
   ========================================= */
.navbar-custom { 
    background: #fff; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.nav-link { 
    color: var(--text-dark) !important; 
    font-weight: 500; 
    margin-right: 15px; 
    transition: color 0.2s ease;
}
.nav-link:hover { 
    color: var(--primary) !important; 
}
.btn-primary-custom { 
    background: var(--primary); 
    color: white !important; 
    border-radius: var(--border-radius); 
    font-weight: 600; 
    border: none; 
    transition: all 0.3s ease; 
}
.btn-primary-custom:hover { 
    background: var(--primary-dark); 
    color: white !important; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

/* =========================================
   Главный экран (Hero)
   ========================================= */
.hero-section {
    position: relative;
    color: white;
    padding: 80px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4), rgba(0,0,0,0.1));
    z-index: 1;
}
.hero-content { position: relative; z-index: 3; }
.hero-badge { 
    background: #bc002d; 
    color: white; 
    padding: 4px 12px; 
    border-radius: 4px; 
    font-size: 0.85rem; 
    font-weight: bold; 
    display: inline-block; 
    vertical-align: middle; 
    margin-left: 8px; 
}
.hero-guarantee-img { max-width: 341px; width: 100%; height: auto; }

/* =========================================
   Каталог товаров
   ========================================= */
.catalog-section { padding: 60px 0; background: var(--bg-light); }
.product-card { 
    background: #fff; 
    border-radius: var(--border-radius); 
    overflow: hidden; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    transition: all .25s ease; 
    border: 1px solid #eee; 
    position: relative; 
}
.product-card:hover { 
    box-shadow: 0 8px 28px rgba(0,91,255,0.12); 
    transform: translateY(-3px); 
    border-color: var(--primary); 
}
.product-image-wrap { 
    position: relative; 
    padding-top: 100%; 
    background: #f7f7f8; 
    overflow: hidden; 
    cursor: pointer; 
}
.product-image-wrap .main-img { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform .4s; 
}
.product-card:hover .product-image-wrap .main-img { transform: scale(1.04); }
.gift-badge { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: var(--primary); 
    color: #fff; 
    font-size: 11px; 
    font-weight: 700; 
    padding: 5px 10px; 
    border-radius: 6px; 
    z-index: 2; 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); 
}
.product-placeholder { 
    position: absolute; 
    inset: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: linear-gradient(135deg, #e8ecf4 0%, #f7f7f8 100%); 
    color: var(--primary); 
    font-family: var(--font-heading); 
    font-weight: 900; 
    font-size: 24px; 
    letter-spacing: 2px; 
}
.product-thumbs-overlay { 
    position: absolute; 
    bottom: 10px; 
    left: 10px; 
    right: 10px; 
    display: flex; 
    gap: 6px; 
    z-index: 3; 
}
.product-thumbs-overlay img { 
    width: 40px; 
    height: 40px; 
    border-radius: 6px; 
    object-fit: cover; 
    border: 2px solid transparent; 
    cursor: pointer; 
    transition: all .2s; 
    background: #fff; 
}
.product-thumbs-overlay img.active, .product-thumbs-overlay img:hover { border-color: var(--primary); }
.quick-view-btn { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: rgba(255,255,255,0.95); 
    border: none; 
    border-radius: 50%; 
    width: 36px; 
    height: 36px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    opacity: 0; 
    transform: translateY(-5px); 
    transition: all .2s; 
    z-index: 3; 
    color: var(--text-dark); 
    font-size: 18px; 
}
.product-card:hover .quick-view-btn { opacity: 1; transform: translateY(0); }
.quick-view-btn:hover { background: var(--primary); color: #fff; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex-grow: 1; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.product-price { font-size: 22px; font-weight: 700; color: var(--text-dark); }
.product-old-price { font-size: 14px; color: #999; text-decoration: line-through; }
.product-title { 
    font-size: 14px; 
    line-height: 1.35; 
    color: var(--text-dark); 
    margin-bottom: 10px; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    min-height: 38px; 
}
.product-features { list-style: none; padding: 0; margin: 0 0 12px; font-size: 12px; color: var(--text-dark); opacity: 0.7; }
.product-features li { padding: 2px 0 2px 18px; position: relative; }
.product-features li::before { content: '✓'; position: absolute; left: 0; color: #00b368; font-weight: 700; }
.btn-buy { 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    padding: 10px; 
    border-radius: var(--border-radius); 
    font-weight: 600; 
    font-size: 14px; 
    width: 100%; 
    margin-top: auto; 
    transition: all .2s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    text-decoration: none; 
}
.btn-buy:hover { background: var(--primary-dark); color: #fff; }

/* =========================================
   Преимущества
   ========================================= */
.features-section { padding: 80px 0; background: var(--bg-light); }
.feature-card { 
    text-align: center; 
    padding: 35px 25px; 
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 91, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.feature-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0, 91, 255, 0.15); 
    border-color: rgba(0, 91, 255, 0.2);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
    transition: transform 0.4s ease, color 0.3s ease;
    color: var(--primary);
}
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(5deg); }
.feature-title { 
    font-weight: 700; 
    margin-bottom: 12px; 
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.feature-card:hover .feature-title { color: var(--primary); }
.feature-card .text-muted { transition: color 0.3s ease; line-height: 1.6; }
.feature-card:hover .text-muted { color: #555555 !important; }

/* =========================================
   Таймлайн
   ========================================= */
.timeline-section { padding: 60px 0; background: #fff; }
.timeline { position: relative; max-width: 1200px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--primary); top: 0; bottom: 0; left: 50%; margin-left: -2px; }
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 25px; height: 25px; right: -12px; background-color: white; border: 4px solid var(--primary); top: 15px; border-radius: 50%; z-index: 1; }
.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }
.timeline-item.right::after { left: -12px; }
.timeline-content { padding: 20px 30px; background-color: white; position: relative; border-radius: var(--border-radius); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.timeline-number { position: absolute; top: -15px; left: 20px; width: 40px; height: 40px; background-color: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; }
@media screen and (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.right { left: 0%; }
    .timeline-item.left::after, .timeline-item.right::after { left: 18px; }
}

/* =========================================
   Новости
   ========================================= */
.news-section { padding: 60px 0; background: var(--bg-light); }
.news-card { border: none; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform 0.3s; border-radius: var(--border-radius); overflow: hidden; height: 100%; }
.news-card:hover { transform: translateY(-5px); }

/* =========================================
   Текстовый блок
   ========================================= */
.text-section { padding: 60px 0; background: #fff; }
.text-section.bg-light { background: var(--bg-light); }

/* =========================================
   Отзывы (NEW)
   ========================================= */
.reviews-section { padding: 60px 0; background: #fff; }
.review-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 25px;
    height: 100%;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}
.review-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.review-stars { color: #ffc107; font-size: 1.1rem; margin-bottom: 10px; }
.review-author { font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.review-date { font-size: 0.85rem; color: #888; margin-bottom: 15px; }
.review-text { font-size: 0.95rem; line-height: 1.6; color: #555; font-style: italic; }

/* =========================================
   FAQ (NEW)
   ========================================= */
.faq-section { padding: 60px 0; background: var(--bg-light); }
.faq-item {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    border: 1px solid #eee;
    overflow: hidden;
}
.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.faq-question:hover { background: #f8f9fa; }
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 20px;
    color: #555;
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

/* =========================================
   CTA (Призыв к действию) (NEW)
   ========================================= */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 20px; }
.cta-section p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn-cta {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-cta:hover {
    background: #f0f0f0;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* =========================================
   Подвал
   ========================================= */
.footer-section { background: var(--text-dark); color: white; padding: 40px 0; }
.footer-section a { color: #ccc; text-decoration: none; transition: color 0.2s; }
.footer-section a:hover { color: var(--primary); }

/* =========================================
   Утилиты и модальные окна
   ========================================= */
.modal-legal { max-height: 70vh; overflow-y: auto; white-space: pre-line; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}