:root {
    --primary: #4a6fa5;
    --secondary: #ff6b6b;
    --accent: #4ecdc4;
    --accent2: #c47d4e;
    --accent3: #9c4ec4;
    --dark: #2d3e50;
    --light: #f8f9fa;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.contact-info {
    text-align: right;
}

.phone {
    font-size: 18px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(45, 62, 80, 0.5), rgba(45, 62, 80, 0.2)), url('/img/krushka-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-plates {
    background-color: var(--accent2);
}

.btn-plates:hover {
    background-color: #b36a3d;
    box-shadow: 0 5px 15px rgba(196, 125, 78, 0.4);
}

.btn-clocks {
    background-color: var(--accent3);
}

.btn-clocks:hover {
    background-color: #8439ad;
    box-shadow: 0 5px 15px rgba(156, 78, 196, 0.4);
}

/* Products Section */
.products {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto;
    border-radius: 2px;
}

.plates-title:after {
    background: var(--accent2);
}

.clocks-title:after {
    background: var(--accent3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom:1px solid #ccc;
}

.product-image img {
    max-width: 100%;
    max-height: 180px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-description {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.price-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray);
    margin-right: 10px;
}

.new-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.discount-badge {
    background-color: var(--secondary);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin: 0 5px 10px;
}

.category-tab.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

/* Order Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.order-modal {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.5s ease;
}

.modal-overlay.active .order-modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--secondary);
}

.modal-title {
    margin-bottom: 20px;
    color: var(--dark);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.checkbox-group input {
    margin-right: 10px;
}

.warning {
    background-color: #fff4e6;
    border-left: 4px solid #ffa94d;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 14px;
}

.total-price {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
    color: var(--secondary);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-links a {
    color: white;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    .nav-links {
        margin: 15px 0;
    }

    .contact-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .category-tabs {
        flex-direction: column;
        align-items: center;
    }

    .category-tab {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }

    .products {
        padding: 60px 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .order-modal {
        padding: 20px;
    }
}/* Стили для футера */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 18px;
}

.center-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-section .logo {
    justify-content: center;
    margin-bottom: 15px;
}

.center-section .social-links {
    justify-content: center;
    margin-top: 15px;
}

.contacts p, .working-hours p {
    align-items: center;
    margin-bottom: 10px;
    color: #ccc;
}

.contacts i, .working-hours i {
    margin-right: 10px;
    color: var(--accent);
    min-width: 20px;
}

.payment-methods {
    margin-top: 20px;
}

.payment-methods p {
    margin-bottom: 10px;
    color: #ccc;
}

.payment-icons {
   
    gap: 10px;
}

.payment-icons i {
    font-size: 24px;
    color: #ccc;
}

.footer-address-details {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.footer-address-details h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

.footer-address-details p {
    margin-bottom: 10px;
    color: #ccc;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    background-color: #2a3b4d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: #ccc;
}

.map-placeholder i {
    font-size: 50px;
    margin-bottom: 15px;
    color: var(--accent);
}

/* Адаптивность для футера */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .center-section {
        grid-column: span 2;
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .center-section {
        grid-column: span 1;
    }

    .map-container {
        height: 250px;
    }
}