* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
}

.logo i {
    margin-right: 0.6rem;
    font-size: 2.1rem;
    color: #dc2626;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-link {
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-btn, .account-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.cart-btn:hover, .account-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffffff;
    color: #dc2626;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    padding: 120px 2rem 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(400px, 1fr) 1.3fr;
    gap: 0;
    align-items: center;
}

.hero-text {
    padding: 3rem 2rem 3rem;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    z-index: 3;
    position: relative;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
    font-weight: 700;
}

.hero-highlight {
    color: #dc2626;
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.catalog-button {
    text-decoration: none;
    background: #dc2626;
    color: white;
    font-family: inherit;
    padding: 0.35em;
    padding-left: 1.2em;
    font-size: 17px;
    font-weight: 500;
    border-radius: 0.9em;
    border: none;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    box-shadow: inset 0 0 1.6em -0.6em #dc2626;
    overflow: hidden;
    position: relative;
    height: 2.8em;
    padding-right: 3.3em;
    cursor: pointer;
    max-width: 230px;
    transition: all 0.3s ease;
}

.catalog-button:hover {
    background: #b91c1c;
}

.catalog-button .icon {
    background: white;
    margin-left: 1em;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
    border-radius: 0.7em;
    box-shadow: 0.1em 0.1em 0.6em 0.2em #dc2626;
    right: 0.3em;
    transition: all 0.3s;
}

.catalog-button:hover .icon {
    width: calc(100% - 0.6em);
}

.catalog-button .icon svg {
    width: 1.1em;
    transition: transform 0.3s;
    color: #dc2626;
}

.catalog-button:hover .icon svg {
    transform: translateX(0.1em);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #dc2626;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    margin-left: -2rem;
    z-index: 1;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.slider-container {
    width: 300%;
    height: 100%;
    display: flex;
    animation: slideShow 9s infinite;
}

.slide {
    width: 33.333%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.slide:hover img {
    transform: scale(1.05);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-slider:hover .slider-nav-btn {
    opacity: 1;
}

.slider-nav-btn:hover {
    background: rgba(185, 28, 28, 1);
    transform: translateY(-50%) scale(1.1);
}

@keyframes slideShow {
    0%, 30% { transform: translateX(0%); }
    33.33%, 63.33% { transform: translateX(-33.333%); }
    66.66%, 96.66% { transform: translateX(-66.666%); }
    100% { transform: translateX(0%); }
}

/* Products Section */
.products-section {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* Controls Panel */
.controls-panel {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #dc2626;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.sort-select, .category-filter {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    min-width: 200px;
}

.sort-select:focus, .category-filter:focus {
    outline: none;
    border-color: #dc2626;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: #dc2626;
}

.product-image {
    width: 100%;
    height: 200px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}


.product-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #dc2626;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    background: #ffffff;
    color: #dc2626;
    border: 1px solid #dc2626;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination button {
    background: white;
    color: #333;
    border: 2px solid #e5e7eb;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination button:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.pagination button.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button:disabled:hover {
    background: white;
    color: #333;
    border-color: #e5e7eb;
}

/* Product Page Styles */
.product-page {
    padding-top: 100px;
    min-height: 100vh;
}

.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumbs a {
    color: #dc2626;
    text-decoration: none;
}

.breadcrumbs span {
    margin: 0 0.5rem;
    color: #666;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
}


.zoom-container {
    position: relative;
    width: 100%;
    height: 500px;
    cursor: crosshair;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zoom-lens {
    position: absolute;
    border: 2px solid #dc2626;
    width: 100px;
    height: 100px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 10px;
}

.zoom-result {
    position: fixed;
    width: 300px;
    height: 300px;
    border: 3px solid #dc2626;
    border-radius: 15px;
    background-repeat: no-repeat;
    background-color: white;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    pointer-events: none; /* Добавить это */
}



.zoom-container:hover .zoom-lens {
    opacity: 1 !important;
}

.zoom-result {
    border: 3px solid #dc2626;
    background-color: white;
}

/* Для мобильных устройств скрыть zoom */
@media (max-width: 768px) {
    .zoom-lens,
    .zoom-result {
        display: none !important;
    }
}


.thumbnail-container {
    max-width: 100%;
}

.thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: #dc2626;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Details */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title {
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
}

.product-model {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}


.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars {
    color: #fbbf24;
}

.rating-text {
    color: #666;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #dc2626;
}

.old-price {
    font-size: 1.5rem;
    color: #666;
    text-decoration: line-through;
}

.product-availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 500;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #dc2626;
    color: white;
}

#quantity {
    border: none;
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 1rem;
}

.add-to-cart-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.add-to-cart-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.wishlist-btn {
    background: white;
    color: #dc2626;
    border: 2px solid #dc2626;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: #dc2626;
    color: white;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature i {
    color: #dc2626;
}

/* Product Tabs */
.product-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #dc2626;
    border-bottom-color: #dc2626;
}

.tab-btn:hover {
    color: #dc2626;
}

.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.specifications-table {
    display: grid;
    gap: 1rem;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.spec-label {
    font-weight: 600;
    color: #333;
}

.spec-value {
    color: #666;
}

/* Footer */
.footer {
    background: #1a202c;
    color: #e5e7eb;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #dc2626;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    background: #111827;
    padding: 1.5rem 0;
    border-top: 1px solid #374151;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.payment-methods i {
    color: #e5e7eb;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    top: -2.5rem;
}

.close:hover {
    color: #000000;
    animation: rotate(90deg) 0.3s ease;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #dc2626;
}

.login-btn {
    width: 100%;
    background: #dc2626;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #b91c1c;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 3000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 2px solid #e5e7eb;
    background: #dc2626;
    color: white;
}

.cart-items {
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-total {
    padding: 2rem;
    border-top: 2px solid #e5e7eb;
    background: #f8f9fa;
}

.checkout-btn {
    width: 100%;
    background: #dc2626;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #b91c1c;
}

/* Reviews */
.reviews-section {
    max-width: 800px;
}

.review-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.rating-overview {
    text-align: center;
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-number {
    font-size: 3rem;
    font-weight: bold;
    color: #dc2626;
}

.review {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
}

.review-rating {
    color: #fbbf24;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.delivery-info h3 {
    margin-bottom: 1rem;
    color: #333;
}

.delivery-info ul {
    list-style: none;
}

.delivery-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
}

.delivery-info i {
    color: #dc2626;
    width: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-slider {
        margin-left: 0;
        height: 300px;
    }
    
    .controls-panel {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .zoom-result {
        display: none !important;
    }
    
    .zoom-container {
        cursor: pointer;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    color: #dc2626;
    margin-bottom: 1rem;
}


/* ----------- HERO SECTION (About/Contact) ----------- */
.page-hero {
    position: relative;
    background: #000000;
    color: #fff;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
    overflow: hidden;
}
.page-hero .hero-content {
    position: relative;
    z-index: 2;
}
.page-hero .hero-content h1 {
    font-size: 2.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.7em;
}
.page-hero .hero-content p {
    font-size: 1.3rem;
    color: #ffffff;
    margin-top: 0.4em;
}
.page-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.12);
    z-index: 1;
}

/* ----------- ABOUT PAGE CUSTOM SECTIONS ----------- */
.company-story .story-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}
.story-text {
    flex: 1 1 350px;
    min-width: 280px;
}
.story-text h2 {
    color: #dc2626;
    margin-bottom: 1em;
    font-weight: 600;
}
.story-text .lead {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1em;
}
.story-image {
    flex: 1 1 350px;
    min-width: 250px;
    max-width: 420px;
}
.story-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
}

.values-section {
    margin-bottom: 4rem;
}
.values-section .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2.2rem;
    margin-top: 2rem;
}
.value-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 1.2rem;
    text-align: center;
    border: 1.5px solid #f0f0f0;
    transition: box-shadow 0.2s;
}
.value-card:hover {
}
.value-card i {
    font-size: 2.1rem;
    color: #dc2626;
    margin-bottom: 0.6em;
    display: block;
}
.value-card h3 {
    color: #1a202c;
    margin-bottom: 0.5em;
}
.value-card p {
    color: #656565;
    margin-bottom: 0.1em;
}

.stats-section {
    padding: 3rem 0;
    background: #f8fafc;
    margin-bottom: 4rem;
    border-radius: 20px;
}
.stats-grid {
    display: flex;
    gap: 3rem;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}
.stat-item {
    flex: 1 1 140px;
    margin: 1rem 0;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #dc2626;
    margin-bottom: 0.3em;
    display: block;
}
.stat-label {
    font-size: 1em;
    color: #6b7280;
}

.team-section .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2.2rem;
    margin-top: 2.5rem;
}
.team-member {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 18px rgba(220,38,38,0.06);
    padding: 2rem 1.2rem;
    text-align: center;
}
.member-image img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 100px;
    margin-bottom: 0.8em;
    box-shadow: 0 2px 10px #fbbf24a8;
}
.team-member h3 {
    font-size: 1.1em;
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 0.2em;
}
.team-member .member-role {
    font-size: 0.96em;
    font-weight: 400;
    color: #554;
    margin-bottom: 0.7em;
}
.team-member p {
    color: #666;
    font-size: 0.96em;
}

.why-choose-section .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.feature-item {
    background: #fff;
    border-radius: 13px;
    padding: 1.8rem 1.1rem;
    text-align: center;
    border: 1px solid #eee;
    transition: box-shadow 0.2s;
}
.feature-item i {
    font-size: 1.7rem;
    color: #dc2626;
    margin-bottom: 0.5em;
}
.feature-item h3 {
    font-size: 1.13rem;
    color: #1a202c;
    margin-bottom: 0.5em;
}
.feature-item p {
    color: #756;
    font-size: 0.94em;
}

/* ----------- CONTACT PAGE CUSTOM SECTIONS ----------- */
.contact-info-section .contact-grid {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.contact-details {
    flex: 2 1 340px;
    min-width: 280px;
}
.contact-details h2 {
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 1em;
}
.contact-details .contact-methods {
    margin-top: 2rem;
}
.contact-method {
    display: flex;
    gap: 1.3rem;
    align-items: flex-start;
    margin-bottom: 1.6em;
}
.contact-method i {
    font-size: 1.6em;
    color: #dc2626;
    margin-top: 0.2em;
    min-width: 35px;
    text-align: center;
}
.contact-method h3 {
    margin-bottom: 0.3em;
    color: #444;
    font-weight: 600;
    font-size: 1.07em;
}
.contact-details .contact-intro {
    color: #565;
    margin-bottom: 1.5em;
}

.contact-form-container {
    flex: 3 2 340px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.07);
    padding: 2rem 1.4rem;
    margin-bottom: 1.2em;
}
.contact-form-container h2 {
    color: #dc2626;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 1.1em;
}
.contact-form .form-row {
    display: flex;
    gap: 1rem;
}
.contact-form .form-group {
    flex: 1 1 140px;
    margin-bottom: 1.2em;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: #333;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8em;
    border: 2px solid #e5e7eb;
    border-radius: 7px;
    font-size: 1.01em;
    transition: border-color 0.3s;
    margin-bottom: 0.2em;
    background: #f8f9fa;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #dc2626;
}
.contact-form textarea {
    resize: vertical;
}
.submit-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.9em 2em;
    border-radius: 8px;
    font-size: 1.07em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5em;
    display: flex;
    align-items: center;
    gap: 0.6em;
}
.submit-btn:hover {
    background: #b91c1c;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.6em;
}
.checkbox-group input[type=\"checkbox\"] {
    min-width: 18px;
    min-height: 18px;
}

.map-section {
    background: #f8fafc;
    border-radius: 18px;
    padding: 2.5rem 0;
    margin-bottom: 3rem;
}
.map-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.map-placeholder {
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 4px 18px #00000036;
    padding: 2.2rem 2rem;
    text-align: center;
    max-width: 380px;
}
.map-placeholder i {
    font-size: 3em;
    color: #dc2626;
    margin-bottom: 0.7em;
}
.map-placeholder h3 {
    color: #dc2626;
    font-size: 1.3em;
    font-weight: 600;
    margin: 0.6em 0;
}
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    color: #dc2626;
    font-weight: 500;
    font-size: 1.05em;
    text-decoration: none;
    margin-top: 1em;
}
.map-link:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-section {
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}
.faq-section h2 {
    color: #dc2626;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 1.3em;
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.3em;
    max-width: 700px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 9px #0000002a;
    padding: 1.1em 1.2em;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.faq-question h3 {
    font-size: 1.09em;
    font-weight: 500;
    color: #333;
    margin: 0;
}
.faq-question i {
    color: #dc2626;
    font-size: 1.25em;
    margin-left: 1em;
    transition: transform 0.2s;
}
.faq-answer {
    display: none;
    padding: 0.7em 0 0.2em 0;
    color: #575757;
    font-size: 0.99em;
}
.faq-item.active .faq-answer {
    display: block;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* ----------- Responsive ----------- */
@media (max-width: 900px) {
    .company-story .story-content,
    .contact-info-section .contact-grid {
        flex-direction: column;
        gap: 2.2rem;
    }
    .stats-grid {
        gap: 2rem;
    }
}

@media (max-width: 550px) {
    .hero-text {
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.2em;
        margin-bottom: 0.5em;
    }

    .hero-stats {
        display: block
    }



    .about-page, .contact-page {
        padding: 0;
    }
    .company-story .story-content {
        gap: 1.4rem;
    }
    .values-section .values-grid,
    .team-section .team-grid,
    .why-choose-section .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .map-placeholder {
        padding: 1rem;
    }
    .faq-grid {
        gap: 0.9em;
    }
}

@media (max-width: 350px) {

    .hero {
        padding: 120px 0rem 80px;
    }

    .products-section {
        padding: 0;
    }
}

/* Hero Section with Video Background */
.page-hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Полная высота экрана */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}

/* Затемняющий оверлей */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный */
    z-index: 1;
}

/* Контент поверх видео */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .page-hero {
        height: 70vh; /* Немного меньше на мобильных */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    /* Отключаем автовоспроизведение на мобильных для экономии трафика */
    .hero-video {
        display: none;
    }
    
    /* Запасной фон для мобильных */
    .page-hero {
        background: linear-gradient(
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)
        ), url('https://images.unsplash.com/photo-1580273916550-e323be2ae537?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
        background-size: cover;
        background-position: center;
    }
}

