/* style.css - максимальная прозрачность + баннеры брендов */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #1a1e2b;
    position: relative;
    min-height: 100vh;
}

#falling-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6; /* Немного увеличим яркость падающих объектов */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Шапка */
.header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 3px solid #b22222;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    line-height: 1.2;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #fff, #ffcccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: #ddd;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.2s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
    color: white;
    border-bottom-color: #b22222;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    text-align: right;
}

.header-phone a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    display: block;
}

.header-phone span {
    font-size: 14px;
    color: #aaa;
}

.btn-request {
    background-color: transparent;
    border: 2px solid #b22222;
    color: white;
    padding: 8px 20px;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-request:hover {
    background-color: #b22222;
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid white;
    color: white;
    font-size: 28px;
    padding: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
}

/* Плавающие кнопки мессенджеров */
.floating-messengers {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.messenger-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #b22222;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s, background-color 0.2s;
}

.messenger-btn:hover {
    transform: scale(1.1);
}

.messenger-btn.telegram { background-color: #0088cc; }
.messenger-btn.whatsapp { background-color: #25D366; }
.messenger-btn.viber { background-color: #7360f2; }

.messenger-btn.telegram:hover { background-color: #0077b5; }
.messenger-btn.whatsapp:hover { background-color: #20b859; }
.messenger-btn.viber:hover { background-color: #5e4ad8; }

/* Основной контент */
.page-section {
    display: none;
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.3); /* Максимальная прозрачность */
    backdrop-filter: blur(4px);
    border-radius: 30px 30px 0 0;
    margin-top: 20px;
    min-height: 70vh;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.page-section.active-section {
    display: block;
}

/* Усиленная тень для текста на прозрачном фоне */
h1, h2, h3, h4, p, li, .hero-subtitle, .feature-item p, .brand-desc, .brand-price, .seo-block p {
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.9);
}

h1 {
    font-size: 48px;
    color: #1a1e2b;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 36px;
    color: #1a1e2b;
    margin-bottom: 30px;
    border-left: 8px solid #b22222;
    padding-left: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.hero {
    text-align: center;
    padding: 40px 0 20px; /* уменьшил нижний отступ */
}

.hero-subtitle {
    font-size: 20px;
    color: #34495e;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background-color: #b22222;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-large {
    padding: 15px 50px;
    font-size: 20px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #b22222;
    color: #b22222;
}

.btn-outline:hover {
    background-color: #b22222;
    color: white;
}

.btn:hover {
    transform: scale(1.02);
}

/* Баннеры брендов */
.brand-banners {
    margin: 40px 0 30px;
    text-align: center;
}

.brand-banners-title {
    font-size: 28px;
    color: #b22222;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin: 0 auto;
}

.brand-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.5);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Контейнер для картинки бренда */
.brand-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;         /* чтобы изображение не вылезало за круг */
    background-color: #f0f0f0; /* запасной фон, пока картинка не загрузилась */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Сама картинка */
.brand-img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* картинка заполнит круг, возможно обрезание */
    /* Если хотите, чтобы картинка вписывалась целиком, используйте object-fit: contain; 
       и добавьте background-color под неё */
}

.brand-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #1a1e2b;
}

.brand-desc {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.brand-price {
    font-size: 20px;
    font-weight: bold;
    color: #b22222;
    display: block;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 30px;
    text-align: center;
}

.catalog-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.category-btn {
    background: none;
    border: 2px solid #b22222;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: #b22222;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    background-color: rgba(255,255,255,0.5);
}

.category-btn.active, .category-btn:hover {
    background-color: #b22222;
    color: white;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    height: 180px;
    background-color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
}

.image-placeholder {
    background-color: rgba(0,0,0,0.4);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(2px);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: #b22222;
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 40px 0;
}

.contacts-list {
    list-style: none;
    margin-bottom: 30px;
}

.contacts-list li {
    margin-bottom: 15px;
    font-size: 18px;
}

.contacts-list span {
    font-weight: bold;
    display: inline-block;
    min-width: 80px;
}

.contacts-form input, .contacts-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
}

.contacts-form input:focus, .contacts-form textarea:focus {
    outline: none;
    border-color: #b22222;
}

.form-note {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 10px;
    font-style: italic;
}

/* SEO-блоки */
.seo-block {
    margin: 50px 0 20px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border-left: 5px solid #b22222;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.seo-block p {
    margin-bottom: 15px;
}

.seo-block a {
    color: #b22222;
    text-decoration: underline;
    font-weight: 600;
}

.seo-block ul, .seo-block ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.seo-block li {
    margin-bottom: 8px;
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
}

.faq-item h4 {
    margin-bottom: 5px;
    color: #b22222;
}

/* Отзывы */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.review-item {
    background: rgba(255,255,255,0.7);
    padding: 20px;
    border-radius: 15px;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* CTA блок */
.cta-block {
    text-align: center;
    padding: 40px;
    background: rgba(178, 34, 34, 0.15);
    border-radius: 30px;
    margin-top: 40px;
}

.cta-block h3 {
    font-size: 32px;
    color: #b22222;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Карта */
.map-block {
    margin: 40px 0;
}

.map-block h3 {
    margin-bottom: 15px;
}

/* Подвал */
.footer {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: #aaa;
    padding: 30px 0;
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: white;
}

/* Стиль выделения текста (белое выделение) */
::selection {
    background-color: white;
    color: #b22222;
}
::-moz-selection {
    background-color: white;
    color: #b22222;
}

/* Адаптация */
@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-actions {
        margin-right: auto;
        margin-left: 20px;
        gap: 10px;
    }
    
    .header-phone a {
        font-size: 16px;
    }
    
    .btn-request {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .brand-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 15px;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 20px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 18px;
    }

    .header .container {
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
        font-size: 28px;
    }

    .header-actions {
        order: 2;
    }

    .mobile-menu-btn {
        order: 3;
    }

    .catalog-categories {
        gap: 8px;
    }
    .category-btn {
        padding: 6px 15px;
        font-size: 12px;
    }

    .floating-messengers {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    .messenger-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .reviews {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-phone span {
        display: none;
    }
    .logo {
        font-size: 24px;
    }
    .btn-request {
        display: none;
    }
    .brand-grid {
        grid-template-columns: 1fr 1fr;
    }
}