* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --dark: #1A1A1A;
    --light: #F8FAFC;
    --text: #333333;
    --border: #E0E0E0;
    --success: #27AE60;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ========== ШАПКА ========== */
header.header {
    background: var(--dark);
    color: white;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 2px;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.right-block {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cart {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.2);
    transition: all 0.3s;
    font-weight: 500;
}

.cart:hover {
    background: var(--primary);
    color: white;
}

.cart-badge {
    background: #E53935;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

.cart-badge:empty {
    display: none;
}

/* ========== КНОПКИ ========== */
.btn {
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn:hover {
    background: rgba(255, 107, 53, 0.3);
    border-color: var(--primary);
}

.btn.small {
    padding: 8px 14px;
    font-size: 13px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn.small:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn.small.admin-btn {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary);
}

.btn.small.admin-btn:hover {
    background: rgba(255, 107, 53, 0.25);
    color: var(--primary);
}

.btn.small.primary {
    background: var(--primary);
    color: white;
}

.btn.small.primary:hover {
    background: #E55A2B;
    transform: translateY(-2px);
}

.btn.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn.primary:hover {
    background: #E55A2B;
    border-color: #E55A2B;
    transform: translateY(-2px);
}

/* ========== НАВИГАЦИЯ ========== */
nav.nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav.nav a {
    color: #CCC;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

nav.nav a:hover {
    color: var(--primary);
}

nav.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav.nav a:hover::after {
    width: 100%;
}

.header-separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 6px;
}

.btn-text,
.cart-text {
    display: inline;
}

main {
    flex: 1;
}

/* ========== СЛАЙДЕР ========== */
.slider {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    height: 750px;
    margin-bottom: 40px;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
    width: 100%;
}

.slide {
    min-width: 100%;
    flex: 0 0 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.slide-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.slide-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A1A1A, #2d2d2d);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 10;
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slide-discount {
    display: inline-block;
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 20px;
    font-weight: bold;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    font-size: 36px;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
    border-radius: 5px;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.6);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* ========== ОСОБЕННОСТИ ========== */
.features {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-top: 4px solid var(--primary);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature p {
    color: #666;
    font-size: 14px;
}

/* ========== О НАС ========== */
.about {
    background: white;
    padding: 60px 20px;
    margin-bottom: 60px;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    max-height: 600px;
    object-fit: cover;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* ========== ОТЗЫВЫ ========== */
.reviews {
    background: var(--light);
    padding: 60px 20px;
    margin-bottom: 60px;
}

.reviews h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--dark);
}

.reviews-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 50px;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease;
}

.review-card {
    flex: 0 0 100%;
    min-width: 0;
    margin-right: 20px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary);
}

.review-card:last-child {
    margin-right: 0;
}

.review-card-empty {
    text-align: center;
    border-left-color: #CCC;
}

.review-stars {
    margin-bottom: 12px;
    font-size: 14px;
}

.review-card p {
    font-size: 16px;
    margin-bottom: 15px;
    font-style: italic;
    color: #555;
    line-height: 1.5;
    word-wrap: break-word;
}

.review-card span {
    display: block;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.rev-prev, .rev-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rev-prev:hover, .rev-next:hover {
    background: #E55A2B;
}

.rev-prev {
    left: 0;
}

.rev-next {
    right: 0;
}

.review-errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.review-errors p {
    margin: 4px 0;
}

/* ========== КОНТАКТЫ ========== */
.contacts {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.contacts h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--dark);
}

.contact-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.contact-map {
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    display: block;
}

.contact-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ========== ПОДВАЛ ========== */
footer {
    flex-shrink: 0;
    background: var(--dark);
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 40px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    color: #AAA;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    padding: 6px 0;
    color: #AAA;
    font-size: 13px;
}

.footer-col ul li a {
    color: #AAA;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 12px;
    color: #666;
}

/* ========== ФОРМА ОТЗЫВА ========== */
.review-form-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #E0E0E0;
}

.review-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E0E0E0;
}

.review-form-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFF5F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.review-form-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #1A1A1A;
}

.review-form-header p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.review-success {
    background: linear-gradient(135deg, #D4EDDA, #C3E6CB);
    color: #155724;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
}

.rating-select {
    margin-bottom: 20px;
}

.rating-label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
    color: #1A1A1A;
}

.stars-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.stars-input input {
    display: none;
}

.stars-input label {
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.3;
    filter: grayscale(100%);
}

.stars-input input:checked ~ label,
.stars-input label:hover,
.stars-input label:hover ~ label {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.15);
}

.review-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 16px;
    transition: border-color 0.3s;
    line-height: 1.5;
}

.review-form textarea:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.08);
}

.review-form textarea::placeholder {
    color: #BBB;
}

.review-form .btn-primary {
    padding: 12px 28px;
    background: #FF6B35;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.review-form .btn-primary:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.review-login-notice {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 14px;
    background: #F8FAFC;
    border-radius: 8px;
}

.review-login-notice a {
    color: #FF6B35;
    font-weight: 600;
    text-decoration: none;
}

.review-login-notice a:hover {
    text-decoration: underline;
}

/* ========== ПАНЕЛЬ СРАВНЕНИЯ ========== */
.compare-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1A1A1A;
    color: white;
    z-index: 9998;
    padding: 12px 20px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

.compare-panel-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.compare-panel-title strong {
    color: #FF6B35;
    font-size: 16px;
}

.compare-panel-items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.compare-chip {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.compare-chip button {
    background: none;
    border: none;
    color: #FF6B35;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.compare-go-btn {
    padding: 8px 20px !important;
    font-size: 13px !important;
    white-space: nowrap;
}

.compare-btn {
    position: absolute;
    top: 44px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: #CCC;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.compare-btn:hover,
.compare-btn.active {
    color: #FF6B35;
    background: white;
}

.btn-compare {
    padding: 15px;
    background: white;
    color: #666;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-compare:hover,
.btn-compare.active {
    border-color: #FF6B35;
    color: #FF6B35;
    background: #FFF5F0;
}

/* ========== УВЕДОМЛЕНИЯ ========== */
.catalog-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1A1A1A;
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.catalog-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.catalog-toast a {
    color: #FF6B35;
    font-weight: 600;
    text-decoration: none;
}

/* ========== СТРАНИЦЫ ОШИБОК ========== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 60px 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: #FF6B35;
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.8;
    text-shadow: 4px 4px 0 rgba(255, 107, 53, 0.15);
}

.error-page h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 15px;
}

.error-page p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.6;
}

.error-page .btn {
    padding: 14px 32px;
    background: #FF6B35;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.error-page .btn:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav.nav {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        gap: 0;
        background: #222;
        border-radius: 8px;
        overflow: hidden;
        padding: 0;
    }
    
    nav.nav.active {
        display: flex;
    }
    
    nav.nav a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 15px;
    }
    
    nav.nav a:last-child {
        border-bottom: none;
    }
    
    nav.nav a::after {
        display: none;
    }
    
    .cart {
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .header-row {
        padding: 10px 15px;
    }
    
    .slider {
        height: 250px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-box {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 300px;
    }

    .contact-info {
        padding: 30px;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .review-card {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
    }
    
    .btn.small {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .header-separator {
        display: none;
    }
    
    .right-block {
        gap: 2px;
    }
}