/* ======================
   CSS VARIABLES
   ====================== */
:root {
    --primary: #256AF2;
    --primary-dark: #1a4db8;
    --accent: #FF4040;
    --text-dark: #222;
    --text-gray: #666;
    --bg-white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Mobile touch targets */
    --touch-target-min: 44px;
}

/* ======================
   RESET & BASE
   ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Better touch scrolling on iOS */
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Prevent text size adjustment on orientation change */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
    overflow-x: hidden;
    /* Improve font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    text-align: center;
    /* Touch-friendly */
    min-height: var(--touch-target-min);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* Active state for touch devices */
.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 106, 242, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-add {
    width: 100%;
    background: var(--primary);
    color: white;
}

.btn-add:hover {
    background: var(--primary-dark);
}

.btn-add:active {
    transform: scale(0.98);
}

.btn-phone {
    background: var(--primary);
    color: white;
    display: inline-block;
}

.btn-phone:hover {
    background: var(--primary-dark);
}

.btn-block {
    width: 100%;
}

/* Badges */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 1;
}

.badge-sale {
    background: var(--accent);
    color: white;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================
   HEADER
   ====================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    min-height: 100px;
}

.logo img {
    display: block;
    border-radius: 8px;
}

/* Logo responsive sizing */
@media (min-width: 769px) {
    .logo img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .logo img {
        width: 60px;
        height: 60px;
    }
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Cart Button */
.cart-btn {
    position: relative;
    padding: 10px;
    color: var(--text-dark);
    /* Touch-friendly */
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn:hover {
    color: var(--primary);
}

.cart-btn:active {
    transform: scale(0.95);
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 0 6px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    /* Touch-friendly */
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* ======================
   HERO SECTION
   ====================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(37, 106, 242, 0.4));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: white;
    animation: heroFadeIn 1s ease;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* ======================
   ABOUT SECTION
   ====================== */
.about-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9ff 0%, white 100%);
}

.about-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.about-lead {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 500;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-block {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
}

.about-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    line-height: 1.7;
    color: var(--text-dark);
}

.about-list li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: var(--primary);
    font-size: 24px;
    line-height: 1.4;
}

.about-list-numbered {
    list-style: none;
    counter-reset: item;
    padding: 0;
}

.about-list-numbered li {
    padding: 12px 0 12px 40px;
    position: relative;
    line-height: 1.7;
    color: var(--text-dark);
    counter-increment: item;
}

.about-list-numbered li::before {
    content: counter(item) ".";
    position: absolute;
    left: 10px;
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 8px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.stat-note {
    font-size: 12px;
    color: var(--text-gray);
    display: block;
    margin-top: 4px;
}

/* Mission */
.about-mission {
    background: linear-gradient(135deg, #256AF2 0%, #1a4db8 100%);
    color: white;
}

.about-mission .about-subtitle {
    color: white;
    border-bottom-color: rgba(255,255,255,0.2);
}

.mission-text {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.95;
}

.mission-cta {
    font-size: 18px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* ======================
   SERVICES SECTION
   ====================== */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-hover);
}

.service-image {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 28px;
}

.service-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ======================
   CATALOG SECTION
   ====================== */
.catalog {
    padding: 80px 0;
    background: #f8f9ff;
}

.catalog-category {
    margin-bottom: 60px;
}

.catalog-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.5s ease, margin-top 0.3s ease, opacity 0.3s ease;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px var(--shadow-hover);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 24px;
}

.product-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.old-price {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-left: 8px;
}

/* ======================
   GALLERY SECTION (SLIDER)
   ====================== */
.gallery {
    padding: 80px 0;
    background: white;
}

.gallery-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Individual Slides */
.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 40px 20px 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* Slider Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(37, 106, 242, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-arrow:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-arrow-prev {
    left: -70px;
}

.gallery-arrow-next {
    right: -70px;
}

/* Slider Dots */
.gallery-dots {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.gallery-dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

.gallery-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

/* ======================
   REVIEWS SECTION
   ====================== */
.reviews {
    padding: 80px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.review-card {
    background: white;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.review-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.review-stars {
    display: flex;
    gap: 4px;
}

.review-text {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ======================
   CONTACTS SECTION
   ====================== */
.contacts {
    padding: 80px 0;
    background: #f8f9ff;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    align-items: start;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-gray);
    font-size: 16px;
}

.phone-number {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
}

/* ======================
   FOOTER
   ====================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-link:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ======================
   MODAL
   ====================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    font-size: 32px;
    color: var(--text-gray);
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    /* Touch-friendly */
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-close:active {
    transform: scale(0.9);
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 24px 28px;
    border-top: 1px solid #eee;
}

/* Cart Items */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--text-gray);
    font-size: 14px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty button {
    width: 32px;
    height: 32px;
    /* Touch-friendly */
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
}

.cart-item-qty button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cart-item-qty button:active {
    transform: scale(0.95);
}

.cart-item-remove {
    color: var(--accent);
    font-size: 24px;
    /* Touch-friendly */
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    opacity: 0.7;
}

.cart-item-remove:active {
    transform: scale(0.9);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #eee;
}

.cart-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-gray);
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: var(--transition);
    /* Touch-friendly */
    min-height: var(--touch-target-min);
    /* Better mobile input */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 106, 242, 0.1);
}

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

/* ======================
   RESPONSIVE (MOBILE IMPROVEMENTS)
   ====================== */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        padding: 12px 0;
        min-height: 70px;
    }
    
    /* Mobile Navigation */
    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: white;
        box-shadow: -5px 0 20px var(--shadow);
        padding: 40px 28px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero Section */
    .hero {
        min-height: 450px;
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Hero Slider Controls */
    .hero-arrow {
        width: 40px;
        height: 40px;
    }
    
    .hero-arrow-prev {
        left: 15px;
    }
    
    .hero-arrow-next {
        right: 15px;
    }
    
    .hero-dots {
        bottom: 20px;
        gap: 10px;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-dot.active {
        width: 24px;
    }
    
    /* About Section */
    .about-section {
        padding: 50px 0;
    }
    
    .about-intro {
        margin-bottom: 30px;
    }
    
    .about-lead {
        font-size: 16px;
    }
    
    .about-block {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .about-subtitle {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .about-list li,
    .about-list-numbered li {
        font-size: 15px;
        padding: 10px 0 10px 28px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .mission-text {
        font-size: 15px;
    }
    
    .mission-cta {
        font-size: 16px;
    }
    
    /* Services */
    .services {
        padding: 50px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-content h3 {
        font-size: 20px;
    }
    
    .service-content p {
        font-size: 15px;
    }
    
    /* Catalog */
    .catalog {
        padding: 50px 0;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    /* Gallery */
    .gallery {
        padding: 50px 0;
    }
    
    .gallery-slider {
        aspect-ratio: 4/3;
    }
    
    .gallery-arrow {
        width: 44px;
        height: 44px;
    }
    
    .gallery-arrow-prev {
        left: -55px;
    }
    
    .gallery-arrow-next {
        right: -55px;
    }
    
    .gallery-caption {
        font-size: 16px;
        padding: 30px 16px 16px;
    }
    
    .gallery-dots {
        bottom: -45px;
        gap: 10px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-info h4 {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    /* Reviews */
    .reviews {
        padding: 50px 0;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 24px;
    }
    
    .review-header h4 {
        font-size: 16px;
    }
    
    .review-text {
        font-size: 15px;
    }
    
    /* Contacts */
    .contacts {
        padding: 50px 0;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-item h4 {
        font-size: 16px;
    }
    
    .phone-number {
        font-size: 18px !important;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Gallery Mobile */
    .gallery-slider {
        aspect-ratio: 1;
        border-radius: 8px;
    }
    
    .gallery-arrow {
        width: 40px;
        height: 40px;
    }
    
    .gallery-arrow-prev {
        left: 10px;
    }
    
    .gallery-arrow-next {
        right: 10px;
    }
    
    .gallery-caption {
        font-size: 14px;
        padding: 25px 12px 12px;
    }
    
    .gallery-dots {
        bottom: -40px;
        gap: 8px;
    }
    
    .gallery-dot {
        width: 10px;
        height: 10px;
    }
    
    .gallery-dot.active {
        width: 24px;
    }
    
    /* Modal */
    .modal {
        padding: 0;
    }
    
    .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* Cart */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Section Spacing */
    .section-title {
        font-size: 1.875rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 16px;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Header */
    .header-content {
        min-height: 60px;
    }
    
    .nav {
        top: 60px;
        height: calc(100vh - 60px);
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
    }
    
    /* Hero */
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    /* Hero Slider Controls */
    .hero-arrow {
        width: 36px;
        height: 36px;
    }
    
    .hero-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .hero-arrow-prev {
        left: 10px;
    }
    
    .hero-arrow-next {
        right: 10px;
    }
    
    .hero-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .hero-dot {
        width: 8px;
        height: 8px;
    }
    
    .hero-dot.active {
        width: 20px;
    }
    
    /* About */
    .about-lead {
        font-size: 15px;
    }
    
    .about-block {
        padding: 20px 16px;
    }
    
    .about-subtitle {
        font-size: 18px;
    }
    
    .about-list li,
    .about-list-numbered li {
        font-size: 14px;
        padding: 8px 0 8px 24px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .mission-text {
        font-size: 14px;
    }
    
    .mission-cta {
        font-size: 15px;
    }
    
    /* Services */
    .service-content {
        padding: 16px;
    }
    
    .service-content h3 {
        font-size: 18px;
    }
    
    .service-content p {
        font-size: 14px;
    }
    
    /* Catalog */
    .category-title {
        font-size: 20px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-info h4 {
        font-size: 15px;
    }
    
    .product-price {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .old-price {
        font-size: 14px;
    }
    
    /* Reviews */
    .review-card {
        padding: 20px 16px;
    }
    
    .review-header h4 {
        font-size: 15px;
    }
    
    .review-stars svg {
        width: 16px;
        height: 16px;
    }
    
    .review-text {
        font-size: 14px;
    }
    
    /* Contacts */
    .contact-item h4 {
        font-size: 15px;
    }
    
    .contact-item p {
        font-size: 14px;
    }
    
    .phone-number {
        font-size: 16px !important;
    }
    
    /* Footer */
    .footer p,
    .footer-link {
        font-size: 13px;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
    }
    
    .social-links img {
        width: 20px;
        height: 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Modal */
    .modal-header {
        padding: 16px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-close {
        font-size: 28px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 16px;
    }
    
    /* Form */
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    /* Cart */
    .cart-total {
        font-size: 18px;
    }
    
    .cart-item-name {
        font-size: 15px;
    }
    
    .cart-item-price {
        font-size: 13px;
    }
}

/* ======================
   CATALOG ACCORDION
   ====================== */
.catalog-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 20px 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
    user-select: none;
    -webkit-user-select: none;
    margin-bottom: 0 !important;
}

.catalog-toggle:hover {
    box-shadow: 0 4px 16px var(--shadow-hover);
    color: var(--primary);
}

.toggle-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.catalog-category.open .toggle-arrow {
    transform: rotate(180deg);
}

/* accordion styles moved to main .catalog-grid rule */

.catalog-category.open .catalog-grid {
    max-height: 5000px;
    opacity: 1;
    margin-top: 28px;
}

/* Photo preview in order form */
#photoPreview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
}

#orderPhotos {
    background: #fafafa;
}

#orderPhotos:hover {
    border-color: var(--primary);
}
