/* ============================================
   ЕДИНЫЙ СТИЛЬ САЙТА POLY PROFILE (ТЕМА 7)
   ============================================ */

/* ===== БАЗОВЫЕ СБРОСЫ И ОБЩИЕ СТИЛИ ===== */
* {
    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-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M10 10 L50 50 M50 10 L10 50" stroke="%23e53e3e" stroke-width="0.8" opacity="0.15"/><path d="M20 0 L20 60 M40 0 L40 60" stroke="%23888" stroke-width="0.5" opacity="0.1"/></svg>');
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ССЫЛКИ И КНОПКИ ===== */
a {
    color: #e53e3e;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #b0302a;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #e53e3e;
    color: white;
    border-radius: 0;
}

.btn-primary:hover {
    background: #b0302a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* ===== ШАПКА САЙТА (НОВАЯ СТРУКТУРА) ===== */
.site-header {
    background: #ffffff;
    border-bottom: 5px solid #e53e3e;
}

/* Верхняя строка: гамбургер, логотип, корзина */
.header-top {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef; /* легкий разделитель */
}

.header-top-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Гамбургер по умолчанию скрыт (показывается только на мобильных) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    flex-shrink: 0;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #000;
    transition: all 0.3s;
    border-radius: 3px;
}

/* Логотип — занимает всё доступное пространство, центрируется */
.header-logo {
    flex: 1;
    text-align: center;
}

.header-logo img {
    max-height: 70px; /* при необходимости измените под свой логотип */
    width: auto;
    vertical-align: middle;
}

/* Корзина */
.header-cart {
    flex-shrink: 0;
}

.header-cart a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #e53e3e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.header-cart a:hover {
    background: #b0302a;
}

.cart-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.cart-count {
    background: white;
    color: #e53e3e;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Нижняя строка с навигацией */
.header-nav {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.header-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    gap: 2rem;
}

.main-navigation a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: #e53e3e;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e53e3e;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

/* ===== АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ УСТРОЙСТВ ===== */
@media (max-width: 991px) {
    .site-header {
        border-bottom: 5px solid #e53e3e;
    }

    .header-top {
        padding: 0.5rem 0;
        border-bottom: none; /* убираем разделитель, если не нужен */
    }

    /* Показываем гамбургер */
    .hamburger-menu {
        display: flex;
    }

    .header-logo img {
        max-height: 100px; /* чуть меньше на мобильных */
    }

    .header-cart a {
        padding: 0.5rem;
        min-width: auto;
    }

    .cart-icon {
        width: 28px;
        height: 28px;
    }

    .cart-count {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    /* Навигация превращается в выезжающее меню */
    .main-navigation {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1001;
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        overflow-y: auto;
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .main-navigation a {
        font-size: 1.2rem;
        white-space: normal;
        display: block;
        padding: 0.8rem 0;
    }

    /* Оверлей (затемнение фона) */
    .menu-overlay.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* ===== ДОПОЛНИТЕЛЬНАЯ АДАПТАЦИЯ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ ===== */
@media (max-width: 480px) {
    .header-logo img {
        max-height: 150px;
    }
    .hamburger-menu {
        width: 36px;
        height: 36px;
    }
    .hamburger-line {
        width: 24px;
    }
}
/* ===== ЧАТ С МЕНЕДЖЕРОМ ===== */
.chat-manager-icon {
    position: fixed;
    bottom: 35px;
    right: 25px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e53e3e, #b0302a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.5);
    z-index: 10000;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.chat-manager-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(229, 62, 62, 0.7);
}

.chat-manager-icon svg {
    width: 34px;
    height: 34px;
    fill: white;
}

.chat-manager-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.manager-chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.manager-chat-modal.active {
    display: flex;
}

.manager-chat-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.manager-chat-header {
    background: #e53e3e;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.manager-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.manager-chat-body {
    padding: 25px;
}

.manager-chat-form .form-group {
    margin-bottom: 20px;
}

.manager-chat-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.manager-chat-form input,
.manager-chat-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.manager-chat-form input:focus,
.manager-chat-form textarea:focus {
    border-color: #e53e3e;
    outline: none;
}

.manager-chat-form textarea {
    min-height: 120px;
}

.manager-chat-form button[type="submit"] {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.manager-chat-form button[type="submit"]:hover {
    background: #b0302a;
}

.manager-chat-success {
    display: none;
    text-align: center;
    padding: 40px 25px;
}

.manager-chat-success.active {
    display: block;
}

.success-icon svg {
    width: 60px;
    height: 60px;
    fill: #27ae60;
}

.manager-chat-footer {
    padding: 15px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
    color: #6c757d;
    border-radius: 0 0 12px 12px;
}

/* ===== ФУТЕР (ТЕМА 7) ===== */
.site-footer {
    background: #222222;
    color: #cccccc;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    height: 40px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #b0b0b0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #ecf0f1;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e53e3e;
    transform: translateY(-3px) scale(1.1);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e53e3e;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: white;
}

.footer-contacts {
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: #cccccc;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info strong {
    color: white;
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: #95a5a6;
}

.footer-links-bottom {
    display: flex;
    gap: 1.5rem;
}

.footer-links-bottom a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: white;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-links-bottom {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Карусель на главной – без белого оверлея, белый текст */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 2px solid #aaaaaa;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Оверлей убран – фон прозрачный */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 3;
}

.carousel-content {
    position: absolute;
    bottom: 80px;
    left: 60px;
    z-index: 4;
    color: #ffffff;                  /* абсолютно белый текст */
    max-width: 500px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6); /* тень для читаемости */
}

.carousel-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.carousel-content p {
    font-size: 1.2rem;
    line-height: 1.4;
    color: #ffffff;
}

/* Индикаторы (точки) – белая обводка, активная – красная */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 5;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator:hover {
    background: #ffffff;
}

.carousel-indicators .indicator.active {
    background: #e53e3e;
    border-color: #e53e3e;
}

/* Кнопки навигации */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    opacity: 0;
}

.carousel-control.prev {
    left: 30px;
}

.carousel-control.next {
    right: 30px;
}

.hero-carousel:hover .carousel-control {
    opacity: 0.8;
}

.carousel-control:hover {
    opacity: 1 !important;
    background: rgba(0,0,0,0.5);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }
    .carousel-content {
        bottom: 60px;
        left: 30px;
        right: 30px;
        text-align: center;
    }
    .carousel-content h2 {
        font-size: 1.8rem;
    }
    .carousel-content p {
        font-size: 1rem;
    }
    .carousel-control {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 300px;
    }
    .carousel-content h2 {
        font-size: 1.5rem;
    }
}

/* ===== ПАНЕЛЬ ФИЛЬТРОВ ===== */
.filters-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filters-title h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filters-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.products-count {
    font-weight: 600;
    color: #e53e3e;
}

.active-filters {
    font-size: 0.9rem;
    color: #7f8c8d;
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}

.filters-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filters-toggle, .clear-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1 1 0;              /* кнопки равной ширины */
    min-width: 120px;         /* минимальная ширина, чтобы не сжимались слишком сильно */
    background: #95a5a6;      /* серый цвет */
    color: white;
}

.filters-toggle:hover, .clear-filters:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* Иконка внутри кнопки Фильтры – убираем возможные лишние отступы */
.filters-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin: 0;
    flex-shrink: 0;
}

.clear-filters {
    background: #95a5a6;
    color: white;
}

.clear-filters:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.filters-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.filter-section h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-tag {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #495057;
}

.filter-tag:hover {
    background: #e9ecef;
    border-color: #e53e3e;
    color: #e53e3e;
}

.filter-tag.active {
    background: #e53e3e;
    border-color: #e53e3e;
    color: white;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.sort-options {
    display: flex;
    gap: 1rem;
}

.sort-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-size: 1rem;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #e53e3e;
}

@media (max-width: 768px) {
    .filters-content {
        display: none;
        grid-template-columns: 1fr;
    }
    .filters-panel.expanded .filters-content {
        display: grid;
    }
    .filters-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

/* ===== СЕТКА ТОВАРОВ ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Карточка товара */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}


.product-images {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.product-image.active {
    opacity: 1;
}

/* Бейдж АКЦИЯ */
.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s infinite;
    border: 2px solid rgba(255,255,255,0.9);
}

@keyframes pulse-badge {
    0% { box-shadow: 0 4px 12px rgba(231,76,60,0.4); }
    50% { box-shadow: 0 4px 20px rgba(231,76,60,0.6); }
    100% { box-shadow: 0 4px 12px rgba(231,76,60,0.4); }
}

.image-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 15;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.8);
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: #2c3e50;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 15;
    opacity: 0;
    transition: all 0.3s;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.product-images:hover .nav-btn {
    opacity: 1;
}

.nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.product-type {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.prices {
    margin-bottom: 1rem;
}

.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    display: block;
}

.price-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.description {
    font-size: 0.95rem;
    color: #5d6d7e;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.add-to-cart-btn {
    width: 100%;
    background: #e53e3e;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background: #b0302a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.add-to-cart-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* Сообщение о пустом результате */
.no-products-message {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    grid-column: 1 / -1;
}

.no-products-icon { font-size: 4rem; margin-bottom: 1.5rem; opacity: 0.7; }
.no-products-message h3 { color: #2c3e50; margin-bottom: 1rem; font-size: 1.5rem; }
.no-products-message p { color: #7f8c8d; margin-bottom: 2rem; }

.reset-all-filters {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.reset-all-filters:hover {
    background: #b0302a;
    transform: translateY(-2px);
}

/* Адаптивность */
/* Планшеты и небольшие десктопы */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 0.75rem;
    }
    .product-images {
        height: 180px;
    }
    .product-info {
        padding: 1rem;
    }
    .product-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    .product-type {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    .prices .price {
        font-size: 1.3rem;
    }
    .prices .price-desc {
        font-size: 0.8rem;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }
    .product-images {
        height: 150px;
    }
    .product-info {
        padding: 0.75rem;
    }
    .product-info h3 {
        font-size: 1rem;
    }
    .product-type {
        font-size: 0.75rem;
    }
    .prices .price {
        font-size: 1.2rem;
    }
    /* Скрываем краткое описание на очень маленьких экранах, чтобы сэкономить место */
    .product-info .description {
        display: none;
    }
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2c3e50, #e53e3e);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
    font-size: 0.95rem;
}

.notification.success { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.notification.error { background: linear-gradient(135deg, #e74c3c, #c0392b); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== СТРАНИЦА ТОВАРА (product.php) ===== */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb a { color: #e53e3e; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #2c3e50; font-weight: 600; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.product-gallery {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s;
}

.fullscreen-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    color: #2c3e50;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: white;
    padding: 5px;
}

.thumbnail:hover,
.thumbnail.active { border-color: #e53e3e; }

.product-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-type-center {
    font-size: 1.2rem;
    color: #e53e3e;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-article-subtle {
    color: #95a5a6;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.price-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.price-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.price-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-detail {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.price-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.product-description { margin-bottom: 2rem; }

.description-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
}

.description-section h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.description-section p {
    line-height: 1.6;
    color: #5d6d7e;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .product-detail { grid-template-columns: 1fr; }
    .price-details { grid-template-columns: 1fr; }
    .action-buttons { flex-direction: column; }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; }
.lightbox-image { max-height: 80vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px; }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===== СТРАНИЦА КОРЗИНЫ (korzina.php) ===== */
.client-info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.cart-section, .summary-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.cart-items {
    width: 100%;
    border-collapse: collapse;
}

.cart-items th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
}

.cart-items td {
    padding: 1rem;
    border-bottom: 1px solid #f1f2f6;
    vertical-align: middle;
}

.cart-item-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    background: #f1f2f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.quantity-btn:hover { background: #e53e3e; color: white; }

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.remove-item:hover { background: rgba(231,76,60,0.1); }

.certificate-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.certificate-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-transform: uppercase;
    font-family: monospace;
}

.certificate-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.certificate-btn:hover { background: #b0302a; }

.certificate-info {
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    display: none;
}
.certificate-info.success { background: #d4edda; color: #155724; display: block; }
.certificate-info.error { background: #f8d7da; color: #721c24; display: block; }

.order-totals {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.total-row.final {
    font-size: 1.2rem;
    font-weight: 700;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.weight-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
}
.weight-warning.show { display: block; }

.order-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .cart-items thead { display: none; }
    .cart-item-row {
        display: block;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    .cart-items td {
        display: block;
        padding: 0.5rem 0;
        border: none;
    }
    .order-actions { flex-direction: column; }
    .certificate-input-group { flex-direction: column; }
    .certificate-btn { width: 100%; }
}

/* ===== СТРАНИЦА ПРОВЕРКИ ЗАКАЗА ===== */
.order-check-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.order-check-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #e53e3e;
    outline: none;
}

.btn-block {
    width: 100%;
    grid-column: 1 / -1;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.alert-danger { background: #f8d7da; color: #721c24; }
.alert-success { background: #d4edda; color: #155724; }

.customer-info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.orders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.order-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #e53e3e;
}

.order-card.highlighted {
    border: 2px solid #e53e3e;
    box-shadow: 0 6px 20px rgba(229,62,62,0.2);
}

/* ===== СТРАНИЦЫ О КОМПАНИИ, КОНТАКТЫ, ДЛЯ ПАРТНЁРОВ ===== */
.page-hero {
    text-align: center;
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #5d6d7e;
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    padding: 1.5rem;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
}

.section-block {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #e53e3e;
    border-radius: 2px;
}

/* Карточки преимуществ, ценностей */
.values-grid, .advantages-grid, .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card, .advantage-card, .contact-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-top: 5px solid #e53e3e;
}

.value-card:hover, .advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.value-icon, .advantage-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #e53e3e;
}

/* Адаптивность для страниц */
@media (max-width: 768px) {
    .page-hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ГЛАВНОЙ ===== */
.page-title {
    text-align: center;
    margin: 2rem 0 3rem;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #e53e3e;
    border-radius: 2px;
}

/* Для карточек товаров */
.product-card.single-image .nav-btn,
.product-card.single-image .image-indicators {
    display: none !important;
}

/* Анимация появления карточек */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.5s ease;
}

/* Адаптивность заголовка */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        margin: 1.5rem 0 2rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
}



/* ===== ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНОЙ ШАПКИ ===== */
@media (max-width: 992px) {
    .site-header {
        height: 70px;
    }

    .header-logo {
        height: 70px;
        flex: 0 1 auto;
        margin: 0;
    }

    .header-logo img {
        height: 100%;
        max-width: 180px; /* ограничение ширины логотипа */
        object-fit: contain;
    }

    .header-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        gap: 0.5rem;
    }

    .hamburger-menu {
        display: flex !important;
        order: 1;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .header-logo {
        order: 2;
        max-width: calc(100% - 110px); /* оставляем место для гамбургера и корзины */
    }

    .header-cart {
        order: 3;
        margin-left: 0;
        flex-shrink: 0;
    }

    .header-cart a {
        padding: 0.5rem;
        min-width: 50px;
        justify-content: center;
    }

    .cart-icon {
        width: 28px;
        height: 28px;
    }

    .cart-count {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    /* Навигационное меню (выезжающее) */
    .main-navigation {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1001;
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        overflow-y: auto;
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation a {
        font-size: 1.2rem;
        white-space: normal;
        display: block;
        padding: 0.8rem 0;
    }

    .menu-overlay.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .site-header {
        height: 60px;
    }

    .header-logo {
        height: 60px;
    }

    .header-logo img {
        max-width: 200px;
    }

    .header-cart a {
        padding: 0.4rem;
    }

    .cart-icon {
        width: 24px;
        height: 24px;
    }

    .hamburger-menu {
        width: 36px;
        height: 36px;
    }
}

/* ===== СТРАНИЦА "О КОМПАНИИ" (about.php) ===== */
.page-hero {
    text-align: center;
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M20,50 Q50,20 80,50 Q50,80 20,50 Z" fill="none" stroke="%232c3e50" stroke-opacity="0.05" stroke-width="1"/></svg>');
}

.page-hero h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #5d6d7e;
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 1.2rem 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-width: 140px;
    transition: transform 0.3s ease;
    border-top: 3px solid #e53e3e;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e53e3e;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.section-block {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #e53e3e;
    border-radius: 2px;
}

.mission-statement {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 5px solid #e53e3e;
    position: relative;
    overflow: hidden;
}

.mission-statement::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 30px;
    font-size: 8rem;
    color: rgba(229, 62, 62, 0.1);
    font-family: Georgia, serif;
    z-index: 1;
}

.mission-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #2c3e50;
    font-style: italic;
    text-align: center;
    position: relative;
    z-index: 2;
    margin: 0;
}

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

.value-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 2rem;
    text-align: center;
    border-top: 5px solid #e53e3e;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #e53e3e;
}

.value-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    color: #5d6d7e;
    line-height: 1.6;
    flex-grow: 1;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
    padding-left: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #e53e3e, #2c3e50);
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 0;
    width: 20px;
    height: 20px;
    background: #e53e3e;
    border: 4px solid white;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.2);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e53e3e;
    margin-bottom: 0.5rem;
}

.timeline-text {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #e53e3e;
    color: #5d6d7e;
    line-height: 1.6;
    margin: 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    color: #e53e3e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid #e9ecef;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #e53e3e;
}

.process-step h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.process-step p {
    color: #5d6d7e;
    line-height: 1.6;
    margin: 0;
}

.cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #e53e3e 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 12px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M20,50 Q50,20 80,50 Q50,80 20,50 Z" fill="none" stroke="white" stroke-opacity="0.1" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.cta-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-buttons .btn-primary {
    background: white;
    color: #2c3e50;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-buttons .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Адаптивность для страницы "О компании" */
@media (max-width: 992px) {
    .page-hero { padding: 2.5rem 1rem; }
    .page-hero h1 { font-size: 2.3rem; }
    .hero-subtitle { font-size: 1.1rem; padding: 1rem; }
    .hero-stats { gap: 1.5rem; }
    .stat-item { min-width: calc(50% - 1.5rem); }
    .values-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .section-block { padding: 2rem 1.5rem; }
}

@media (max-width: 768px) {
    .page-hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .mission-statement { padding: 2rem 1.5rem; }
    .mission-text { font-size: 1.1rem; }
    .cta-section { padding: 3rem 1.5rem; }
    .cta-title { font-size: 1.8rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn-primary { width: 100%; max-width: 300px; }
}

/* ===== СТРАНИЦА ДИСТРИБЬЮТОРОВ (partners.php) ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.partner-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.partner-images {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.partner-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-logo-placeholder {
    font-size: 4rem;
    color: #b0b0b0;
}

.partner-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.partner-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.partner-region {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.partner-details {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.partner-detail {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #5d6d7e;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.partner-detail strong {
    color: #2c3e50;
    min-width: 120px;
    font-weight: 600;
}

.partner-phone {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.partner-phone:hover {
    color: #b0302a;
    text-decoration: underline;
}

.visit-site-btn {
    width: 100%;
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-top: auto;
}

.visit-site-btn:hover {
    background: #b0302a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.visit-site-btn.disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}

.visit-site-btn.disabled:hover {
    background: #7f8c8d;
    transform: none;
    box-shadow: none;
}

.partners-count {
    font-weight: 600;
    color: #e53e3e;
}

.no-partners-message {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    grid-column: 1 / -1;
}

.no-partners-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-partners-message h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-partners-message p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
    .partner-detail {
        flex-direction: column;
        gap: 0.25rem;
    }
    .partner-detail strong {
        min-width: auto;
    }
}

/* ===== СТРАНИЦА "СТАТЬ ДИСТРИБЬЮТОРОМ" (for-partners.php) ===== */

/* Преимущества */
.advantages-section {
    margin-bottom: 3rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.advantage-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 2rem;
    text-align: center;
    border-top: 5px solid #e53e3e;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #e53e3e;
}

.advantage-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.advantage-card p {
    color: #5d6d7e;
    line-height: 1.6;
    flex-grow: 1;
}

/* Форма */
.form-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid #e9ecef;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-message {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.form-label .required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8f9fa;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #e53e3e;
    background: white;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-control.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

/* Поле телефона */
.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
}

.phone-prefix {
    background: #2c3e50;
    color: white;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    min-width: 60px;
}

.phone-input {
    flex: 1;
    border: none;
    background: transparent;
}

.phone-input-wrapper:focus-within {
    border-color: #e53e3e;
    background: white;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Кнопка отправки */
.submit-btn {
    width: 100%;
    background: #e53e3e;
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #b0302a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Ссылки на документы */
.legal-links {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-link {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-link:hover {
    background: #f8f9fa;
    border-color: #e53e3e;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .form-section {
        padding: 2rem 1.5rem;
    }
    .legal-links {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1.5rem 1rem;
    }
    .advantage-card {
        padding: 1.5rem;
    }
}

/* ===== СТРАНИЦА ПРОВЕРКИ ЗАКАЗА (prov_zakaz.php) ===== */
.order-check-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.order-check-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #e53e3e;
    outline: none;
}

.form-text {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}

.btn-block {
    width: 100%;
    grid-column: 1 / -1;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.customer-info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.customer-info-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

.customer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.customer-detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.customer-status-новый {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
}

.orders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.order-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e9ecef;
    border-left: 5px solid #e53e3e;
}

.order-card.highlighted {
    border: 2px solid #e53e3e;
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.2);
    transform: translateY(-2px);
}

.searched-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e53e3e;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.order-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-number {
    display: flex;
    flex-direction: column;
}

.order-number .label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
}

.order-number .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.order-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.order-date .label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
}

.order-date .value {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.order-body {
    padding: 1.5rem;
}

.order-info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-info {
    display: flex;
    flex-direction: column;
}

.order-info.full-width {
    grid-column: 1 / -1;
}

.order-info .label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.order-info .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.order-status {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-новый { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.status-подтверждение { background: rgba(241, 196, 15, 0.1); color: #f39c12; }
.status-ожидание-оплаты { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.status-оплачено { background: rgba(46, 204, 113, 0.1); color: #27ae60; }
.status-производится,
.status-собирается,
.status-отгружено { background: rgba(155, 89, 182, 0.1); color: #8e44ad; }
.status-доставлено,
.status-получено-клиентом,
.status-завершено { background: rgba(39, 174, 96, 0.1); color: #27ae60; }

.order-total { color: #2c3e50; font-size: 1.3rem; }
.order-actual { color: #27ae60; }

.delivery-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-show-details {
    width: 100%;
    margin-top: 1rem;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-show-details:hover {
    background: #e9ecef;
    border-color: #e53e3e;
    color: #e53e3e;
}

.btn-show-details .arrow {
    transition: transform 0.3s ease;
}

.btn-show-details.active .arrow {
    transform: rotate(180deg);
}

.order-details-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #e53e3e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-orders-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.no-orders-message p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Отключение декоративной полосы под заголовком на странице проверки заказа */
body.prov_zakaz .page-title::after {
    display: none;
}

/* ===== СТРАНИЦА КОНТАКТЫ (contacts.php) ===== */

/* Контактная информация в карточках */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 5px solid #e53e3e;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #e53e3e;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.contact-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700; /* жирный шрифт */
}

.contact-details {
    color: #5d6d7e;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 1.1rem;
}

.contact-link {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    display: block;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #b0302a;
    text-decoration: underline;
}

.contact-note {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-top: 1rem;
    font-style: italic;
}

/* Реквизиты */
.requisites-block {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 2rem;
    border: 2px solid #e9ecef;
}

.requisites-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.requisite-item {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
    transition: all 0.3s;
}

.requisite-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.requisite-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    font-weight: 600; /* жирный */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requisite-value {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600; /* жирный, но не слишком */
    line-height: 1.5;
    word-break: break-word;
}

/* Кнопки действий */
.contact-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.action-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
    justify-content: center;
}

.action-btn:hover {
    background: #b0302a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.3);
}

.action-btn.outline {
    background: white;
    color: #e53e3e;
    border: 2px solid #e53e3e;
}

.action-btn.outline:hover {
    background: #f8f9fa;
    color: #b0302a;
}

/* Адаптивность */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .requisites-list {
        grid-template-columns: 1fr;
    }
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .contact-card {
        padding: 2rem 1.5rem;
    }
    .requisites-block {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 3rem;
    }
    .requisite-item {
        padding: 1.2rem;
    }
    .requisite-value {
        font-size: 1rem;
    }
}

/* ===== СТРАНИЦА КОНТАКТЫ (дополнительные стили для адресов) ===== */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.address-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 2.5rem 2rem;
    border-left: 5px solid #e53e3e;
    position: relative;
}

.address-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.address-badge {
    display: inline-block;
    background: #e53e3e;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-info {
    color: #5d6d7e;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600; /* жирный шрифт для адреса */
}

.address-hours {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c3e50;
    margin-top: 1rem;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600; /* жирный */
}

/* ===== СТРАНИЦА КЛИЕНТА (client.php) ===== */
.client-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
}

.info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-box h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-box p {
    color: #7f8c8d;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.customer-form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f2f6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #e53e3e;
    background: white;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-control.error {
    border-color: #e74c3c;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .client-container {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }
    .customer-form-section {
        padding: 1.5rem;
    }
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    pointer-events: none;
}

select.form-control {
    appearance: none;
    padding-right: 2.5rem;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.phone-input-group {
    position: relative;
}

.phone-check-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #e53e3e;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    display: none;
}

.phone-check-btn:hover {
    background: #b0302a;
}

.customer-found-message {
    background: #f8f9fa;
    border: 1px solid #e53e3e;
    color: #2c3e50;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease;
}

.customer-found-message.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f2f6;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
    }
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.btn-primary {
    background: #e53e3e;
    color: white;
}

.btn-primary:hover {
    background: #b0302a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #e53e3e;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e53e3e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #e74c3c;
    padding: 0.5rem;
    background: #fff5f5;
    border-radius: 4px;
    border-left: 3px solid #e74c3c;
}

@media (max-width: 480px) {
    .page-title { font-size: 1.5rem; }
    .section-title { font-size: 1.25rem; }
    .customer-form-section { padding: 1rem; }
    .btn { padding: 0.875rem 1rem; }
}

/* ===== СТРАНИЦА КОРЗИНЫ (korzina.php) ===== */
.korzina-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

/* Карточка клиента */
.client-info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.client-info-box h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.client-info-box p {
    margin: 0.5rem 0;
    color: #2c3e50;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-info-box strong {
    min-width: 100px;
    color: #7f8c8d;
    font-weight: 600;
}

.change-customer-btn {
    width: 100%;
    margin-top: 1rem;
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e0e0e0;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.change-customer-btn:hover {
    background: #e9ecef;
    border-color: #e53e3e;
    color: #e53e3e;
}

/* Секция корзины */
.cart-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f2f6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.empty-cart-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #7f8c8d;
}

.empty-cart-message svg {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-cart-message h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Таблица товаров */
.cart-items {
    width: 100%;
    border-collapse: collapse;
}

.cart-items thead {
    background: #f8f9fa;
}

.cart-items th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
}

.cart-items td {
    padding: 1rem;
    border-bottom: 1px solid #f1f2f6;
    vertical-align: middle;
}

.cart-item-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #f8f9fa;
}

.cart-item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.cart-item-type {
    font-size: 0.85rem;
    color: #e53e3e;
    margin-bottom: 0.25rem;
}

.cart-item-weight {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    background: #f1f2f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.quantity-btn:hover {
    background: #e53e3e;
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
}

.quantity-input:focus {
    border-color: #e53e3e;
    outline: none;
}

.item-price, .item-total {
    font-weight: 600;
    color: #2c3e50;
}

.remove-item {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.remove-item:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* Панель итогов */
.summary-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    position: sticky;
    top: 100px;
    align-self: start;
}

.customer-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.customer-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.customer-info p {
    margin: 0.25rem 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Сертификат */
.certificate-section {
    margin-bottom: 1.5rem;
}

.certificate-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.certificate-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.certificate-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-family: monospace;
}

.certificate-input:focus {
    border-color: #e53e3e;
    outline: none;
}

.certificate-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.certificate-btn:hover {
    background: #b0302a;
}

.certificate-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.certificate-info {
    font-size: 0.9rem;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    display: none;
}

.certificate-info.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.certificate-info.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.certificate-details {
    background: #e8f4fc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.certificate-details.active {
    display: block;
}

.certificate-details p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #2c3e50;
}

/* Итоги */
.order-totals {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.total-row:last-child {
    margin-bottom: 0;
}

.total-row.discount {
    color: #27ae60;
}

.total-row.final {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

/* Предупреждение о весе */
.weight-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
}

.weight-warning.show {
    display: block;
}

.weight-warning h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Кнопки */
.order-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    min-height: 48px;
}

.btn-primary {
    background: #e53e3e;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #b0302a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.3);
}

.btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #e53e3e;
}

/* Загрузка */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(229, 62, 62, 0.2);
    border-top: 4px solid #e53e3e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .cart-items thead {
        display: none;
    }

    .cart-item-row {
        display: block;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .cart-items td {
        display: block;
        padding: 0.5rem 0;
        border: none;
    }

    .cart-item-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .quantity-control {
        justify-content: flex-start;
    }

    .summary-section {
        position: static;
        margin-top: 1rem;
    }

    .order-actions {
        flex-direction: column;
    }

    .certificate-input-group {
        flex-direction: column;
    }

    .certificate-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .korzina-container {
        padding: 0 0.5rem;
    }
    .cart-section, .summary-section {
        padding: 1rem;
    }
    .quantity-btn {
        width: 28px;
        height: 28px;
    }
    .quantity-input {
        width: 50px;
    }
}

/* ===== СТРАНИЦА ТОВАРА (product.php) ===== */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb a { color: #e53e3e; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #2c3e50; font-weight: 600; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.product-gallery {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s;
}

.fullscreen-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    color: #2c3e50;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: white;
    padding: 5px;
}

.thumbnail:hover,
.thumbnail.active { border-color: #e53e3e; }

.product-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-type-center {
    font-size: 1.2rem;
    color: #e53e3e;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-article-subtle {
    color: #95a5a6;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.price-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.price-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.price-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-detail {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.price-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.product-description { margin-bottom: 2rem; }

.description-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
}

.description-section h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.description-section p {
    line-height: 1.6;
    color: #5d6d7e;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .product-detail { grid-template-columns: 1fr; }
    .price-details { grid-template-columns: 1fr; }
    .action-buttons { flex-direction: column; }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; }
.lightbox-image { max-height: 80vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px; }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.similar-products {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.similar-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

/* ===== КНОПКИ НА СТРАНИЦЕ ТОВАРА ===== */
.product-detail .action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.product-detail .action-buttons .btn-primary,
.product-detail .action-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    flex: 1 1 auto;
    min-width: 200px;
    cursor: pointer;
    border: none;
}

.product-detail .action-buttons .btn-primary {
    background: #e53e3e;
    color: white;
}

.product-detail .action-buttons .btn-primary:hover {
    background: #b0302a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.product-detail .action-buttons .btn-secondary {
    background: white;
    color: #e53e3e;
    border: 2px solid #e53e3e;
}

.product-detail .action-buttons .btn-secondary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-detail .action-buttons {
        flex-direction: column;
    }
    .product-detail .action-buttons .btn-primary,
    .product-detail .action-buttons .btn-secondary {
        width: 100%;
    }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ДЛЯ СТРАНИЦЫ ТОВАРА ===== */
@media (max-width: 768px) {
    /* Переопределяем порядок блоков */
    .product-detail {
        display: flex;
        flex-direction: column;
    }
    .product-gallery {
        order: 1;
    }
    .product-info-page {
        order: 2;
    }
    .similar-products {
        order: 3;
    }

    /* Скрываем десктопное описание, показываем мобильное */
    .product-description-desktop {
        display: none;
    }
    .product-description-mobile {
        display: block;
        margin-top: 1.5rem;
    }

    /* Убеждаемся, что кнопки занимают всю ширину */
    .action-buttons {
        flex-direction: column;
    }
    .action-buttons .btn-primary,
    .action-buttons .btn-secondary {
        width: 100%;
    }
}

/* Десктоп: по умолчанию показываем десктопное описание, мобильное скрыто */
.product-description-desktop {
    display: block;
}
.product-description-mobile {
    display: none;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ДЛЯ СТРАНИЦЫ ТОВАРА (исправленный порядок) ===== */
@media (max-width: 768px) {
    /* Основной контейнер */
    .product-detail {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Левая колонка (галерея) */
    .product-gallery {
        order: 1 !important;
    }

    /* Правая колонка */
    .product-info-page {
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Заголовок (название, тип, артикул) */
    .product-info-page .product-header {
        order: 1 !important;
    }

    /* Блок цены */
    .product-info-page .price-section {
        order: 2 !important;
    }

    /* Кнопки */
    .product-info-page .action-buttons {
        order: 3 !important;
        flex-direction: column !important;
    }
    .product-info-page .action-buttons .btn-primary,
    .product-info-page .action-buttons .btn-secondary {
        width: 100% !important;
    }

    /* Описание (мобильное) */
    .product-info-page .product-description-mobile {
        order: 4 !important;
        display: block !important;
        margin-top: 1.5rem !important;
    }

    /* Скрываем десктопное описание */
    .product-description-desktop {
        display: none !important;
    }

    /* Похожие товары */
    .similar-products {
        order: 3 !important;
    }
}

/* Десктопные стили по умолчанию */
@media (min-width: 769px) {
    .product-description-desktop {
        display: block !important;
    }
    .product-description-mobile {
        display: none !important;
    }
}

/* ===== СТРАНИЦА СЕРТИФИКАТА (certificate.php) ===== */
.certificate-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.certificate-info-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.certificate-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e53e3e;
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(229, 62, 62, 0.1);
    border-radius: 50%;
}

.certificate-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #e53e3e;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 rgba(229,62,62,0.2);
}

.certificate-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.certificate-details li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.4;
}

.certificate-details li span {
    font-size: 1.3rem;
}

.certificate-details li strong {
    color: #e53e3e;
    font-weight: 700;
}

.certificate-description {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.certificate-description h2 {
    color: #e53e3e;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.certificate-description p {
    color: #5d6d7e;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.certificate-description .limited {
    font-weight: 600;
    color: #e53e3e;
    border-left: 4px solid #e53e3e;
    padding-left: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.certificate-form-section {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-top: 3rem;
}

.certificate-form-section h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.certificate-form {
    max-width: 600px;
    margin: 2rem 0 0;
}

.certificate-form .form-group {
    margin-bottom: 1.5rem;
}

.certificate-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.certificate-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f8f9fa;
}

.certificate-form .form-control:focus {
    border-color: #e53e3e;
    outline: none;
    background: white;
}

.certificate-form .required {
    color: #e74c3c;
}

.certificate-form .btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
}

.certificate-form .form-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-align: center;
    margin-top: 1rem;
}

.certificate-form .form-note a {
    color: #e53e3e;
    text-decoration: none;
}

.certificate-form .form-note a:hover {
    text-decoration: underline;
}

/* Блок успеха */
.certificate-success {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 2rem 0;
    border: 2px solid #27ae60;
}

.certificate-success .success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.certificate-success h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.certificate-success .certificate-number {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e0e0e0;
}

.certificate-success .certificate-number strong {
    color: #e53e3e;
    font-size: 2rem;
    letter-spacing: 2px;
    font-family: monospace;
}

.certificate-success .success-info {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #5d6d7e;
    line-height: 1.6;
}

.certificate-success .btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #e53e3e;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.certificate-success .btn-primary:hover {
    background: #b0302a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229,62,62,0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .certificate-info-block {
        grid-template-columns: 1fr;
    }
    .certificate-price {
        font-size: 2.8rem;
    }
    .certificate-success h2 {
        font-size: 1.8rem;
    }
}

/* Баннер сертификата в шапке (уже не используется, но оставлен для совместимости) */
.header-certificate {
    flex-shrink: 0;
    margin-left: 1rem;
}

.certificate-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #e53e3e 0%, #b0302a 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.certificate-banner:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
    color: white;
}

.gift-icon {
    font-size: 1.2rem;
}

/* Адаптивность: на экранах от 992 до 1199px показываем только иконку */
@media (max-width: 1199px) and (min-width: 992px) {
    .certificate-banner .certificate-text {
        display: none;
    }
    .certificate-banner {
        padding: 0.5rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

/* На мобильных (меньше 992px) скрываем баннер полностью, т.к. ссылка уже есть в меню */
@media (max-width: 992px) {
    .header-certificate {
        display: none;
    }
}

/* Плавающая иконка подарочного сертификата */
.certificate-float-icon {
    position: fixed;
    bottom: 120px;    /* выше иконки чата (у чата bottom: 35px) */
    right: 25px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f1c40f, #e67e22); /* золотисто-оранжевый градиент */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(241, 196, 15, 0.5);
    z-index: 9999;    /* ниже чата (у чата z-index: 10000) */
    transition: all 0.3s ease;
    border: 3px solid white;
}

.certificate-float-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.7);
}

.certificate-float-icon svg {
    width: 34px;
    height: 34px;
    fill: white;
}

.certificate-float-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

/* Адаптив для мобильных: уменьшаем размер и смещение */
@media (max-width: 768px) {
    .certificate-float-icon {
        bottom: 100px;
        right: 15px;
        width: 60px;
        height: 60px;
    }
    .certificate-float-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Кнопка сертификата на карусели */
.certificate-carousel-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 15;
}

.btn-certificate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #2c3e50;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-certificate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,105,180,0.4);
    background: linear-gradient(135deg, #fad0c4 0%, #ff9a9e 100%);
    color: #2c3e50;
}

.gift-icon {
    font-size: 1.4rem;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .certificate-carousel-btn {
        top: 10px;
        right: 10px;
    }
    .btn-certificate {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .btn-certificate .text {
        display: none; /* на мобильных только иконка */
    }
}





    /* Уменьшаем общий отступ между логотипом, меню и корзиной */
    .header-container {
        gap: 1rem; /* было 2rem */
    }

    /* Уменьшаем расстояние между пунктами меню */
    .main-navigation ul {
        gap: 1rem; /* было 1.5rem */
    }

    /* При необходимости можно чуть уменьшить размер шрифта ссылок */
    .main-navigation a {
        font-size: 1rem; /* было 1.1rem */
    }
}



    .header-logo img {
        max-height: 80px;       /* при необходимости увеличьте логотип */
        width: auto;
    }

    .main-navigation {
        flex: 1;                /* меню занимает всё доступное место */
        order: 2;               /* явно указываем порядок после логотипа */
    }

    .main-navigation ul {
        justify-content: flex-start; /* прижимаем пункты меню влево */
        gap: 2rem;              /* расстояние между пунктами */
    }

    .header-cart {
        order: 2;               /* корзина тоже во второй строке */
        margin-left: auto;      /* прижимаем её вправо */
    }

    /* Гамбургер и так скрыт на десктопе, но на всякий случай */
    .hamburger-menu {
        display: none;
    }
}

/* Фиксированная корзина */
.header-cart-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.header-cart-fixed a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #e53e3e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.header-cart-fixed a:hover {
    background: #b0302a;
}

/* Адаптация для мобильных устройств */
@media (max-width: 992px) {
    .header-cart-fixed a {
        padding: 0.5rem;
        min-width: 50px;
        justify-content: center;
    }
    .header-cart-fixed .cart-icon {
        width: 28px;
        height: 28px;
    }
    .header-cart-fixed .cart-count {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}

/* Скрываем оригинальную корзину, но оставляем её размеры для вёрстки */
.header-cart {
    visibility: hidden;  /* скрывает содержимое, но элемент остаётся в потоке */
}

/* Фиксированная корзина */
.header-cart-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000; /* выше, чем у чата (10000) */
}

.header-cart-fixed a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #e53e3e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    min-width: auto;      /* убираем возможное растягивание */
    width: auto;          /* ширина по содержимому */
}

.header-cart-fixed a:hover {
    background: #b0302a;
}

/* Адаптация для мобильных */
@media (max-width: 992px) {
    .header-cart-fixed {
        top: 10px;
        right: 10px;
    }
    .header-cart-fixed a {
        padding: 0.5rem;
        min-width: 50px;
        width: auto;
        justify-content: center;
    }
    .header-cart-fixed .cart-icon {
        width: 28px;
        height: 28px;
    }
    .header-cart-fixed .cart-count {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f8f9fa;
}
.search-input:focus {
    outline: none;
    border-color: #e53e3e;
    background: white;
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .address-grid {
        grid-template-columns: 1fr; /* одна колонка на всю ширину */
    }
    .address-card {
        width: 100%;
        box-sizing: border-box; /* учитываем padding внутри ширины */
        text-align: center;      /* при необходимости центрируем текст */
    }
}

@media (max-width: 768px) {
    .order-check-form {
        grid-template-columns: 1fr; /* одна колонка на всю ширину */
    }
    .order-check-form .form-group input,
    .order-check-form .form-group select,
    .order-check-form .form-group textarea {
        width: 100%;
        box-sizing: border-box; /* учитываем padding внутри ширины */
    }
    .order-check-form-container {
        padding: 1rem; /* уменьшаем отступы для экономии места */
    }
}

/* Вертикальное расположение на странице сертификата */
.certificate-info-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.certificate-card-image {
    background: none;          /* убираем фоновый градиент */
    box-shadow: none;          /* убираем тень, если не нужна */
    border: none;              /* убираем границу */
    padding: 0;                /* убираем внутренние отступы */
    overflow: visible;
}

.certificate-card-image::before {
    display: none;             /* убираем декоративный кружок */
}

.certificate-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;       /* скругление для красоты */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.certificate-description {
    width: 100%;
}

.certificate-info-block {
    width: 78%;                /* блок будет занимать половину ширины родителя */
    margin-left: auto;         /* центрируем блок */
    margin-right: auto;
}

/* Для мобильных устройств, чтобы блок не был слишком узким */
@media (max-width: 768px) {
    .certificate-info-block {
        width: 100%;           /* на маленьких экранах возвращаем полную ширину */
    }
}