/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

.phone a:hover {
    color: var(--secondary-color);
}

.btn-callback {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-callback:hover {
    background: #ff7700;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 0s 1s;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-in-out, visibility 0s 0s;
    z-index: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slide-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Slider Navigation */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    font-size: 40px;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover,
.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Hero Section (old - keep for compatibility) */
.hero {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #ff7700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,102,0,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* Sections */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-color);
    font-weight: 700;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    width: 50px;
    height: 50px;
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
}

.category-link:hover {
    color: var(--secondary-color);
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-item p {
    color: var(--text-light);
}

/* Consultation Section */
.consultation {
    padding: 80px 0;
    background: var(--bg-light);
}

.consultation-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.consultation-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.consultation-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.consultation-form input,
.consultation-form textarea {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.consultation-form input:focus,
.consultation-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-column p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

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

.social-links a {
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.social-links a:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-light);
}

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

.callback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.callback-form input {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

/* About Page Styles */
.about-section {
    padding: 60px 0;
}

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

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-content h3 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: var(--text-color);
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.advantage-item {
    text-align: center;
    padding: 20px;
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.advantage-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.advantage-item p {
    color: var(--text-light);
    font-size: 14px;
}

.tcl-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tcl-feature {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.tcl-feature h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.tcl-feature p {
    font-size: 14px;
    color: var(--text-light);
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.services-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
}

.services-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.cta-block {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
}

.cta-block h3 {
    margin-top: 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Contacts Page Styles */
.contacts-section {
    padding: 60px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-item p {
    margin-bottom: 5px;
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
}

.contact-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .header-top-content {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 4;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-contacts {
        flex-direction: column;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .categories-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .advantages-grid,
    .tcl-features {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .products-carousel {
        grid-template-columns: 1fr;
    }
}

/* Popular Products Section */
.popular-products {
    padding: 80px 0;
    background: var(--white);
}

.products-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.products-carousel .product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.products-carousel .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.products-carousel .product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.products-carousel .product-image {
    position: relative;
    height: 220px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.products-carousel .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-carousel .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
}

.products-carousel .badge-available {
    background: #28a745;
}

.products-carousel .badge-premium {
    background: var(--secondary-color);
    top: 45px;
}

.products-carousel .product-info {
    padding: 20px;
}

.products-carousel .product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-color);
    min-height: 40px;
    line-height: 1.3;
}

.products-carousel .product-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
    min-height: 20px;
}

.products-carousel .product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

/* How We Work Section */
.how-we-work {
    padding: 80px 0;
    background: var(--bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.step-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.step-item p {
    color: var(--text-light);
    line-height: 1.6;
}
