/* Публичные страницы - общие стили */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка заведения */
.business-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.business-info h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stars {
    font-size: 18px;
}

.rating-value {
    font-size: 20px;
    font-weight: 600;
}

.rating-value.no-rating {
    opacity: 0.7;
}

.reviews-count {
    opacity: 0.9;
}

.category {
    opacity: 0.9;
    font-size: 16px;
}

.btn-telegram {
    background: white;
    color: #667eea;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    white-space: nowrap;
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Навигация */
.business-nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.business-nav .container {
    display: flex;
    gap: 30px;
}

.business-nav a {
    padding: 15px 0;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.business-nav a:hover,
.business-nav a.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Секции */
.section {
    background: white;
    margin: 30px 0;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 100px; /* Отступ для sticky навигации */
}

.section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

/* Карточки */
.about-card,
.contacts-card {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.business-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.loyalty-info {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid #667eea;
    border-radius: 8px;
}

.loyalty-info h3 {
    margin-bottom: 10px;
}

.loyalty-detail {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    font-weight: 600;
}

/* Товары */
.category-block {
    margin-bottom: 40px;
}

.category-block h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #667eea;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
}

.product-card {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.2s;
}

.product-card.merch-card {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    margin-bottom: 10px;
    text-align: center;
}

.product-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.product-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-rub {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.price-points {
    font-size: 14px;
    color: #667eea;
}

/* Отзывы */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.review-card {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-rating {
    color: #f59e0b;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.review-date {
    color: #999;
    font-size: 13px;
}

/* Контакты */
.contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-item strong {
    min-width: 100px;
    color: #666;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.qr-section {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.qr-section h3 {
    margin-bottom: 10px;
}

.qr-code {
    max-width: 250px;
    margin-top: 20px;
}

/* Кнопки */
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #5568d3;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

/* Футер */
.footer {
    background: #333;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    margin-left: 20px;
}

.footer a:hover {
    text-decoration: underline;
}

/* Плавающая кнопка Telegram */
.floating-telegram {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s;
    z-index: 1000;
}

.floating-telegram:hover {
    transform: scale(1.1);
}

/* Рабочие часы */
.working-hours-list {
    margin-top: 5px;
}

.working-hour-item {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

.working-hour-item .day {
    min-width: 80px;
    font-weight: 600;
}

.working-hour-item .time {
    color: #666;
}

/* Сети заведений */
.network-indicator {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 8px;
}

.network-locations {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.network-location-item {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.network-location-item strong {
    color: #333;
}

.network-location-item span {
    color: #666;
    font-size: 14px;
}

/* Яндекс.Карты */
.map-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.yandex-badge {
    display: inline-block;
    background: #ffcc00;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.btn-map-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-map-link:hover {
    background: #5568d3;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .business-info h1 {
        font-size: 28px;
    }

    .business-nav .container {
        gap: 15px;
        font-size: 14px;
        overflow-x: auto;
    }

    .section {
        padding: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .floating-telegram {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Cookie Banner Styles */
.plulo-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
}

.plulo-cookie__inner {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
    padding: 14px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.plulo-cookie__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--gray-700);
    font-size: 13px;
    line-height: 1.35;
}

.plulo-cookie__text strong {
    color: var(--gray-900);
    font-size: 14px;
}

.plulo-cookie__links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.plulo-cookie__links a {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.plulo-cookie__links a:hover {
    text-decoration: underline;
}

.plulo-cookie__btn {
    border: none;
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25);
    white-space: nowrap;
}

.plulo-cookie__btn:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
}

/* Cookie Banner Mobile Responsive */
@media (max-width: 640px) {
    .plulo-cookie { left: 12px; right: 12px; bottom: 12px; }
    .plulo-cookie__inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
    .plulo-cookie__btn { width: 100%; justify-content: center; padding: 9px 12px; font-size: 13px; }
    .plulo-cookie__text { font-size: 12px; gap: 4px; }
    .plulo-cookie__text strong { font-size: 13px; }
    .plulo-cookie__links { gap: 8px; }
}

@media (max-width: 480px) {
    .plulo-cookie { left: 6px; right: 6px; bottom: 6px; }
    .plulo-cookie__inner { padding: 10px; gap: 8px; }
    .plulo-cookie__btn { padding: 8px 10px; font-size: 12px; }
    .plulo-cookie__text { font-size: 11px; }
    .plulo-cookie__text strong { font-size: 12px; }
    .plulo-cookie__links { gap: 6px; flex-wrap: wrap; }
    .plulo-cookie__links a { font-size: 11px; }
}

@media (max-width: 360px) {
    .plulo-cookie { left: 4px; right: 4px; bottom: 4px; }
    .plulo-cookie__inner { padding: 8px; gap: 6px; }
    .plulo-cookie__btn { padding: 7px 8px; font-size: 11px; }
    .plulo-cookie__text { font-size: 10px; }
    .plulo-cookie__text strong { font-size: 11px; }
    .plulo-cookie__links { gap: 4px; }
    .plulo-cookie__links a { font-size: 10px; }
}