/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Премиальные градиенты */
.premium-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gold-gradient {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.dark-gradient {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

/* Анимированные элементы */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Премиальные карточки */
.premium-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

img, video {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.section-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: #c1272d;
    color: white;
    border-color: #c1272d;
}

.btn-primary:hover {
    background: #a01e23;
    border-color: #a01e23;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.btn-secondary:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-outline:hover {
    background: #1a1a1a;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
    padding: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #c1272d;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c1272d;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-specs {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    width: 100%;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.spec-item {
    padding: 1rem;
}

.spec-value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.spec-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Design Section */
.design {
    padding: 100px 0;
    background: #f8f8f8;
}

.design-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    border-color: #c1272d;
    color: #c1272d;
}

/* Tab Content Styles */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

.design-content {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: center;
}

.design-content img {
    width: 50%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.design-info {
    flex: 1;
}

.design-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.design-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.design-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Colors Section */
.colors {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.colors::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(193, 39, 45, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.colors .container {
    position: relative;
    z-index: 1;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.color-option {
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 10px;
}

.color-option:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.color-option img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.color-info h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

.new-badge {
    background: #c1272d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.colors-actions {
    text-align: center;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Interior Section */
.interior {
    padding: 100px 0;
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.interior::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./Mazda EZ6/musicbg1.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.interior .container {
    position: relative;
    z-index: 1;
}

.interior .section-title,
.interior .section-description {
    color: white;
}

.interior-showcase {
    margin: 4rem 0;
}

.interior-main {
    margin-bottom: 4rem;
}

.interior-main img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.interior-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.feature-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Performance Section */
.performance {
    padding: 100px 0;
    background: white;
    text-align: center;
}

.performance-video {
    margin: 4rem 0;
}

.performance-video video {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.performance-item {
    background: #f8f8f8;
    padding: 2.5rem 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.performance-item h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.performance-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: #c1272d;
    margin-bottom: 0.5rem;
}

.performance-note {
    font-size: 0.9rem;
    color: #999;
}

/* Technology Section */
.technology {
    padding: 100px 0;
    background: #f8f8f8;
    text-align: center;
}

.technology-showcase {
    margin: 4rem 0;
}

.technology-showcase video {
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Safety Section */
.safety {
    padding: 100px 0;
    background: white;
    text-align: center;
}

.safety-showcase {
    margin: 4rem 0;
}

.safety-showcase video {
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Dealers Section */
.dealers {
    padding: 100px 0;
    background: #f8f8f8;
    text-align: center;
}

.dealers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.dealer-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.dealer-item:hover {
    transform: translateY(-5px);
}

.dealer-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.dealer-item h3 {
    padding: 2rem 2rem 1rem;
    font-size: 1.3rem;
}

.dealer-item .btn {
    margin: 0 2rem 2rem;
}

/* Order Section */
.order {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    text-align: center;
}

.order .section-title {
    color: white;
}

.order .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.order-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #c1272d;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-social h4 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #333;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #c1272d;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-legal a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: #ccc;
}

.footer-contact a {
    color: #c1272d;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.test-drive-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #c1272d;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-main {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    
    .nav-actions .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: auto;
        width: auto;
        display: inline-block;
        max-width: 80px;
        text-align: center;
    }
    
    .hero-main {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .colors-grid {
        grid-template-columns: 1fr;
    }
    
    .interior-features {
        grid-template-columns: 1fr;
    }
    
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-main {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-value {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-value {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 14px 28px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.4,0,0.2,1) 0.2s both;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    
    .nav-link::after {
        height: 3px;
    }
}

/* Gallery Styles */
.gallery {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gallery .section-title,
.gallery .section-description {
    color: white;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery-tab-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.gallery-tab-btn:hover,
.gallery-tab-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.gallery-content {
    position: relative;
}

.gallery-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.6s ease-in-out;
}

.gallery-grid.active {
    display: grid;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 2rem;
    color: white;
}

/* Gallery Modal Styles */
#gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#gallery-modal.active {
    opacity: 1;
}

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
}

#gallery-modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.gallery-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    transition: transform 0.3s ease;
}

.gallery-modal-close:hover {
    transform: scale(1.1);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-prev {
    left: -70px;
}

.gallery-next {
    right: -70px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.gallery-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
}

/* Gallery Grid Styles */
.gallery-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-grid.active {
    display: grid;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-tab-btn {
    padding: 10px 20px;
    border: 2px solid var(--mazda-red);
    background: transparent;
    color: var(--mazda-red);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.gallery-tab-btn:hover,
.gallery-tab-btn.active {
    background: var(--mazda-red);
    color: white;
    transform: translateY(-2px);
}

/* Print styles */
@media print {
    .header,
    .footer,
    .modal,
    .nav-toggle,
    .btn {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .hero-video {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
}

/* Floating Action Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #005577 100%);
}

.phone-btn {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-tabs {
        gap: 0.5rem;
    }
    
    .gallery-tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
}

/* Detailed Specifications Page */
.detailed-specs {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.specs-categories {
    margin-top: 3rem;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.category-tab:hover,
.category-tab.active {
    background: linear-gradient(135deg, #c1272d 0%, #8b1a1f 100%);
    border-color: #c1272d;
    color: white;
    transform: translateY(-2px);
}

.category-content {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-in-out;
}

.category-content.active {
    display: block;
}

.detailed-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.detailed-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.detailed-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 40%;
    background: rgba(193, 39, 45, 0.05);
}

.detailed-table td:last-child {
    color: #666;
}

.detailed-table tr:hover {
    background: rgba(193, 39, 45, 0.02);
}

.price-comparison {
    margin-top: 4rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comparison-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.comparison-card.featured {
    border-color: #c1272d;
    background: linear-gradient(135deg, rgba(193, 39, 45, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.comparison-card h4 {
    color: #c1272d;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.comparison-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: #c1272d;
    margin-bottom: 1.5rem;
}

.comparison-card ul {
    list-style: none;
    text-align: left;
}

.comparison-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.comparison-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c1272d;
    font-weight: bold;
}

.comparison-card li:last-child {
    border-bottom: none;
}

/* Enhanced specs hero */
.specs-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    color: white;
    text-align: center;
}

.specs-hero .section-title {
    color: white;
    margin-bottom: 1rem;
}

.specs-hero .section-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive for detailed specs */
@media (max-width: 768px) {
    .category-tabs {
        gap: 0.5rem;
    }
    
    .category-tab {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .detailed-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .detailed-table td:first-child {
        width: 50%;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comparison-card .price {
        font-size: 1.8rem;
    }
}

.car-color-section {
  text-align: center;
  margin: 40px 0;
}
.car-image-wrapper {
  margin-bottom: 30px;
}
#car-main-image {
  max-width: 700px;
  width: 100%;
  transition: 0.3s;
}
.color-choices {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 30px;
}
.color-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.color-choice.active {
  transform: scale(1.1);
}
.color-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #111, 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 8px;
  transition: box-shadow 0.2s, border 0.2s;
}
.color-choice.active .color-circle {
  box-shadow: 0 0 0 3px #c1272d, 0 2px 12px rgba(0,0,0,0.25);
  border: 3px solid #c1272d;
}
.color-label {
  font-size: 14px;
  color: #222;
  text-align: center;
  line-height: 1.2;
}
.new-badge {
  color: #c1272d;
  font-size: 12px;
  font-weight: bold;
}

/* Контакты в одну колонку */
.contact-methods {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  margin-top: 32px;
}
.contact-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}
.contact-method .contact-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.contact-method .btn {
  font-size: 16px;
}

@media (max-width: 900px) {
  .contact-methods {
    flex-direction: column;
    gap: 24px;
  }
}

/* Color Selection Animation */
#car-main-image {
    transition: opacity 0.3s ease;
}

.color-choice {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-choice:hover {
    transform: translateY(-2px);
}

.color-choice.active {
    transform: translateY(-2px);
}

.color-circle {
    transition: transform 0.2s ease;
}

.color-choice:hover .color-circle {
    transform: scale(1.1);
}

/* Contact Section Enhancement */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-item p {
    margin: 0;
    line-height: 1.6;
}

/* Vehicle Specifications Styles */
.vehicle-specs {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.specs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.specs-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.specs-tab {
    padding: 12px 30px;
    border: 2px solid #c1272d;
    background: transparent;
    color: #c1272d;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.specs-tab.active,
.specs-tab:hover {
    background: #c1272d;
    color: white;
}

.specs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.specs-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.specs-card:hover {
    transform: translateY(-5px);
}

.specs-card-header {
    margin-bottom: 25px;
    text-align: center;
}

.specs-card-header h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.specs-price {
    font-size: 1.3rem;
    color: #c1272d;
    font-weight: 700;
}

.specs-features {
    display: grid;
    gap: 20px;
}

.specs-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    font-size: 1.5rem;
    background: #f8f9fa;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.feature-info {
    flex: 1;
}

.feature-name {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.feature-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.specs-table th,
.specs-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background: #c1272d;
    color: white;
    font-weight: 500;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:hover td {
    background: #f8f9fa;
}

/* Стили для блока контактов */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.contact-info h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.contact-info p {
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
}

.whatsapp:hover {
    background: #25D366;
    color: white;
}

.whatsapp:hover .contact-icon,
.whatsapp:hover .contact-info h3,
.whatsapp:hover .contact-info p {
    color: white;
}

.telegram:hover {
    background: #0088cc;
    color: white;
}

.telegram:hover .contact-icon,
.telegram:hover .contact-info h3,
.telegram:hover .contact-info p {
    color: white;
}

.phone:hover {
    background: #c1272d;
    color: white;
}

.phone:hover .contact-icon,
.phone:hover .contact-info h3,
.phone:hover .contact-info p {
    color: white;
}

.email:hover {
    background: #007bff;
    color: white;
}

.email:hover .contact-icon,
.email:hover .contact-info h3,
.email:hover .contact-info p {
    color: white;
}

@media (max-width: 768px) {
    .specs-wrapper {
        padding: 20px;
    }
    
    .specs-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 25px;
        gap: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .contact-info h3 {
        font-size: 1.1rem;
    }
    
    .contact-info p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .specs-table {
        font-size: 0.9rem;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 10px 15px;
    }
}

/* Стили для промо-popup */
.promo-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 450px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e9ecef;
}

.promo-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.promo-popup::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #c1272d, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.promo-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.promo-close:hover {
    color: #c1272d;
    background: #f8f9fa;
    transform: rotate(90deg);
}

.promo-header {
    text-align: center;
    margin-bottom: 20px;
}

.promo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c1272d;
    margin-bottom: 8px;
    line-height: 1.3;
}

.promo-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.promo-timer {
    background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
}

.promo-content {
    text-align: center;
}

.promo-offer {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #c1272d;
}

.promo-offer h4 {
    color: #c1272d;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.promo-offer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.promo-offer li {
    padding: 5px 0;
    color: #333;
    position: relative;
    padding-left: 20px;
}

.promo-offer li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.promo-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.promo-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.95rem;
}

.promo-btn-primary {
    background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
    color: white;
}

.promo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(193, 39, 45, 0.3);
}

.promo-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.promo-btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Минимизированный popup */
.minimized-promo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
    color: white;
    border-radius: 50px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(193, 39, 45, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.minimized-promo.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.minimized-promo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(193, 39, 45, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(193, 39, 45, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(193, 39, 45, 0.6), 0 0 0 10px rgba(193, 39, 45, 0.1); }
    100% { box-shadow: 0 8px 25px rgba(193, 39, 45, 0.4); }
}

.minimized-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Overlay для popup */
.promo-popup::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promo-popup.show::after {
    opacity: 1;
}

/* Мобильные стили для popup */
@media (max-width: 768px) {
    .promo-popup {
        max-width: 350px;
        padding: 25px;
        margin: 20px;
    }
    
    .promo-title {
        font-size: 1.3rem;
    }
    
    .promo-actions {
        flex-direction: column;
    }
    
    .promo-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .minimized-promo {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
    }
    
    .minimized-content {
        font-size: 0.8rem;
    }
}

/* Стили для формы конфигуратора */
.configurator-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.configurator-form-overlay.show {
    opacity: 1;
    visibility: visible;
}

.configurator-form {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    border: 2px solid #e9ecef;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.configurator-form-overlay.show .configurator-form {
    transform: scale(1) translateY(0);
}

.configurator-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #c1272d, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

.form-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.form-close:hover {
    color: #c1272d;
    background: #f8f9fa;
    transform: rotate(90deg);
}

.configurator-form h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #c1272d;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.configurator-form h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
    border-radius: 2px;
}

.current-config {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #c1272d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.current-config h4 {
    color: #c1272d;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.config-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.config-item {
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.config-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
}

.config-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(193, 39, 45, 0.1);
    border-color: #c1272d;
}

.config-item strong {
    color: #c1272d;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c1272d;
    box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

/* Стили для выбора способа отправки */
.send-method-selection {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #c1272d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.send-method-selection h4 {
    color: #c1272d;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.send-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.send-method-option {
    cursor: pointer;
    display: block;
}

.send-method-option input[type="radio"] {
    display: none;
}

.method-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: all 0.3s ease;
}

.send-method-option input[type="radio"]:checked + .method-card {
    border-color: #c1272d;
    background: linear-gradient(135deg, #fff 0%, #fef7f7 100%);
    box-shadow: 0 8px 20px rgba(193, 39, 45, 0.15);
    transform: translateY(-2px);
}

.send-method-option input[type="radio"]:checked + .method-card::before {
    background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
}

.method-card:hover {
    border-color: rgba(193, 39, 45, 0.5);
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.method-icon {
    font-size: 32px;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.send-method-option input[type="radio"]:checked + .method-card .method-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.method-name {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.send-method-option input[type="radio"]:checked + .method-card .method-name {
    color: #c1272d;
}

/* Стили для выбора полей конфигурации */
.config-fields-selection {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #c1272d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.config-fields-selection h4 {
    color: #c1272d;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.config-checkboxes {
    display: grid;
    gap: 15px;
}

.config-checkbox {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
    border: 2px solid #e9ecef;
}

.config-checkbox:hover {
    background: #fafafa;
    border-color: rgba(193, 39, 45, 0.3);
    transform: translateX(5px);
}

.config-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #fff;
}

.config-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
    border-color: #c1272d;
    transform: scale(1.1);
}

.config-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.config-checkbox span:last-child {
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    transition: all 0.3s ease;
}

.config-checkbox input[type="checkbox"]:checked ~ span:last-child {
    color: #c1272d;
    font-weight: 600;
}

/* Стили для выбора конфигурации */
.config-selection-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #c1272d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.config-selection-section h4 {
    color: #c1272d;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

/* Стили для select элементов */
.config-selection-section select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.config-selection-section select:focus {
    outline: none;
    border-color: #c1272d;
    box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.1);
    transform: translateY(-2px);
}

.config-selection-section select:hover {
    border-color: rgba(193, 39, 45, 0.3);
}

/* Стили для плавающей кнопки конфигуратора */
.configurator-floating-btn {
    position: fixed;
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 25px 0 0 25px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(193, 39, 45, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    border: none;
}

.configurator-floating-btn.show {
    right: 0;
}

.configurator-floating-btn:hover {
    right: 10px;
    box-shadow: 0 6px 25px rgba(193, 39, 45, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.floating-btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-btn-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.floating-btn-text {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.submit-config-btn {
    width: 100%;
    background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.submit-config-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-config-btn:hover::before {
    left: 100%;
}

.submit-config-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(193, 39, 45, 0.4);
}

.submit-config-btn:active {
    transform: translateY(-1px);
}

.telegram-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Мобильные стили для формы конфигуратора */
@media (max-width: 768px) {
    .configurator-form-overlay {
        background: rgba(0, 0, 0, 0.8) !important;
        padding: 10px !important;
    }
    
    .configurator-form {
        padding: 15px !important;
        margin: 10px auto !important;
        max-height: 80vh !important;
        width: 90% !important;
        max-width: 500px !important;
        overflow-y: auto;
        background: #ffffff !important;
        border-radius: 12px !important;
        position: relative;
    }
    
    .configurator-form h3 {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
        padding-right: 40px;
        color: #333333 !important;
        background: #ffffff !important;
    }
    
    .form-close {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
        z-index: 1001;
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
        border-radius: 50% !important;
        color: #333333 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer;
    }
    
    .form-close:hover {
        background: #f5f5f5;
        color: #333;
    }
    
    .send-method-selection,
    .config-fields-selection {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 10px;
        background: #f8f9fa;
    }
    
    .send-method-selection h4,
    .config-fields-selection h4 {
        font-size: 1rem;
        margin-bottom: 12px;
        color: #333;
    }
    
    .current-config {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 10px;
        background: #f0f8ff;
        border: 1px solid #e3f2fd;
    }
    
    .current-config h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: #1976d2;
    }
    
    .send-methods {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .configurator-form-overlay {
        padding: 10px;
    }
    
    .method-card {
        padding: 15px;
    }
    
    .method-icon {
        font-size: 28px;
    }
    
    .method-name {
        font-size: 0.9rem;
    }
    
    .config-checkboxes {
        gap: 12px;
    }
    
    .config-checkbox {
        padding: 10px 12px;
    }
    
    .config-checkbox span:last-child {
        font-size: 0.9rem;
    }
    
    .config-selection-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .config-selection-section h4 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .config-selection-section select {
        padding: 12px 15px;
        font-size: 0.95rem;
        background: #ffffff;
        color: #333333;
        border: 2px solid #ddd;
        border-radius: 8px;
        width: 100%;
    }
    
    .config-selection-section select:focus {
        border-color: #c1272d;
        color: #333333;
        background: #ffffff;
        outline: none;
    }
    
    .current-config {
        padding: 20px;
    }
    
    .config-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .config-item {
        padding: 12px 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
        background: #ffffff;
        color: #333333;
        border: 2px solid #ddd;
        border-radius: 8px;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #c1272d;
        color: #333333;
        background: #ffffff;
    }
    
    .form-group label {
        color: #333333;
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
    }
    
    .submit-config-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .configurator-form {
        padding: 25px 20px;
        margin: 15px;
    }
    
    .configurator-form h3 {
        font-size: 1.4rem;
    }
    
    .current-config h4 {
        font-size: 1.1rem;
    }
    
    .config-item strong {
        font-size: 0.8rem;
    }
    
    /* Исправления для мобильной отправки конфигурации */
    .send-methods {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .method-card {
        padding: 12px;
        text-align: center;
    }
    
    .method-icon {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .method-name {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .config-selection-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .config-selection-section select {
        padding: 12px;
        font-size: 0.9rem;
        border-radius: 8px;
        background: #ffffff !important;
        color: #333333 !important;
        border: 2px solid #ddd !important;
        width: 100%;
    }
    
    .config-selection-section select:focus {
        border-color: #c1272d !important;
        color: #333333 !important;
        background: #ffffff !important;
        outline: none;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
        border-radius: 8px;
        background: #ffffff !important;
        color: #333333 !important;
        border: 2px solid #ddd !important;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #c1272d !important;
        color: #333333 !important;
        background: #ffffff !important;
        outline: none;
    }
    
    .form-group label {
        color: #333333 !important;
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
    }
    
    .submit-config-btn {
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 8px;
    }
}

/* Стили для кнопки promo-cta в popup */
.promo-cta {
    background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(193, 39, 45, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 20px 0 10px 0;
}

.promo-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.promo-cta:hover::before {
    left: 100%;
}

.promo-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(193, 39, 45, 0.4);
    background: linear-gradient(135deg, #d12d34 0%, #b02228 100%);
}

.promo-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(193, 39, 45, 0.3);
}

.cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.promo-cta:hover .cta-arrow {
    transform: translateX(5px);
}

/* Мобильные стили для кнопки */
@media (max-width: 768px) {
    .promo-cta {
        padding: 14px 24px;
        font-size: 1rem;
    }
}