﻿:root {
    --primary-color: #0056b3; /* РЎРёРЅРёР№ */
    --secondary-color: #f4f4f4; /* РЎРІРµС‚Р»Рѕ-СЃРµСЂС‹Р№ С„РѕРЅ */
    --dark-color: #333;
    --light-color: #fff;
    --text-color: #555;
    --container-width: 1140px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--light-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    white-space: nowrap;
}

.nav a {
    color: var(--dark-color);
    text-decoration: none;
    margin: 0 8px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

.header-contact {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.header-contact a {
    color: var(--dark-color);
    text-decoration: none;
    margin-right: 10px;
    font-size: 0.9rem;
}

.button {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #004494;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    max-width: 50%;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.hero-title-mobile {
    display: none !important;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image img {
    max-width: 450px;
    border-radius: 10px;
}

/* Advantages Section */
.advantages {
    padding: 80px 0;
}

.advantages h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    color: var(--dark-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.advantage-item {
    text-align: center;
    position: relative;
}

.advantage-item h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    margin-top: 20px;
}

.advantage-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
}

.advantage-photo-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.advantage-photo-wrapper.active {
    opacity: 1;
    z-index: 1;
}

.advantage-photo-wrapper::after {
    content: '⤢';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    pointer-events: none;
    z-index: 10;
}

.advantage-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.advantage-carousel:hover .advantage-photo-wrapper {
    transform: scale(1.02);
}

/* Кнопки карусели */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.advantage-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Индикаторы карусели */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}



/* Specs Section */
.specs {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.specs h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    color: var(--dark-color);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    table-layout: fixed;
}

.specs-col-param {
    width: 38%;
}

.specs-col-160,
.specs-col-300 {
    width: 31%;
}

.specs-table th, .specs-table td {
    padding: 15px;
    text-align: left;
    border: none;
    background: transparent;
    word-break: break-word;
}

.specs-table td.same-value {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(50px);
}

@media (max-width: 768px) {
    .specs-table {
        font-size: 14px;
    }

    .specs-table thead {
        display: none;
    }

    .specs-table,
    .specs-table tbody,
    .specs-table tr {
        display: block;
        width: 100%;
    }

    .specs-table tr {
        margin-bottom: 20px;
        border: 2px solid var(--primary-color);
        border-radius: 8px;
        padding: 12px;
        background: white;
    }

    .specs-table td {
        display: block;
        text-align: left;
        padding: 8px 10px;
        border: none;
        position: relative;
    }

    .specs-table td:first-child {
        font-weight: bold;
        color: var(--primary-color);
        font-size: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 8px;
    }

    .specs-table td:not(:first-child):before {
        content: "• ";
        color: var(--primary-color);
        font-weight: bold;
    }

    .specs-table td.same-value {
        transform: none;
        text-align: center;
        background: #f8f9fa;
        border-radius: 4px;
        padding: 12px;
        font-weight: 500;
        margin-top: 5px;
    }

    .specs-table td.same-value:before {
        content: "";
    }
}

.specs-table th {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.specs-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    text-align: left;
}

/* Application Section */
.application {
    padding: 80px 0;
}

.application h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    color: var(--dark-color);
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.application-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
}

.application-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Models Section */
.models {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.models h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    color: var(--dark-color);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.model-card {
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.model-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.model-card h3 {
    font-size: 1.5rem;
    padding: 20px;
    color: var(--primary-color);
}

.model-card ul {
    list-style: none;
    padding: 0 20px 20px;
}

.model-card ul li {
    margin-bottom: 10px;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.reviews h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    color: var(--dark-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.review-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-author-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.review-author-info p {
    color: var(--text-color);
    font-size: 0.9rem;
}

.review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 15px;
}

.star {
    color: #ffc107;
    font-size: 1.2rem;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
}

.contact-form-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    color: var(--dark-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form .form-status {
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
    margin-top: 10px;
    min-height: 1.2em;
}

.contact-guard {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
}

.form-status--success {
    color: #2e7d32;
}

.form-status--error {
    color: #c62828;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.2rem;
}

.footer-contact p {
    margin-bottom: 5px;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
}

.privacy-mobile {
    display: none !important;
}

/* Desktop display settings */
@media (min-width: 769px) {
    .hero-title-desktop {
        display: block !important;
    }
    
    .hero-title-mobile {
        display: none !important;
    }
    
    .privacy-desktop {
        display: inline !important;
    }
    
    .privacy-mobile {
        display: none !important;
    }
    
    .nav,
    .header-contact {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    max-height: 1000px;
    opacity: 1;
}

.mobile-menu .nav {
    flex-direction: column;
    padding: 20px;
}

.mobile-menu .nav a {
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-menu .header-contact {
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid #eee;
}

.mobile-menu .header-contact a {
    margin: 5px 0;
}

.mobile-menu .button {
    margin-top: 10px;
    align-self: flex-start;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        position: relative;
    }
    
    .header-content {
        justify-content: space-between;
        align-items: center;
    }

    .nav,
    .header-contact {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu .nav {
        display: flex !important;
    }

    .mobile-menu .header-contact {
        display: flex !important;
    }
    
    .hero-title-desktop {
        display: none !important;
    }
    
    .hero-title-mobile {
        display: block !important;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-image {
        margin-top: 30px;
    }
    
    .hero {
        padding: 40px 0;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-image img {
        max-width: 300px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-contact p {
        margin-bottom: 8px;
    }

    /* Карусель на мобильных - всегда показывать кнопки */
    .carousel-btn {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }

    .logo-img {
        height: 40px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-logo {
        font-size: 1rem;
    }
    
    .footer-contact p {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .privacy-desktop {
        display: none !important;
    }
    
    .privacy-mobile {
        display: inline !important;
    }
    
    .hero-title-desktop {
        display: none !important;
    }
    
    .hero-title-mobile {
        display: block !important;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Навигация в lightbox */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}
