* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --white: #ffffff;
}

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(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--light-bg);
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-size: 14px;
}

.phone {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

.work-time,
.free-call {
    color: #666;
    font-size: 13px;
}

.callback-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.callback-btn:hover {
    background-color: #2980b9;
}

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

.logo h1 {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

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

.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    margin-top: 5px;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    padding: 8px 20px;
}

.submenu a {
    font-size: 14px;
}

.cart {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.cart-count {
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

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

/* Products Section */
.products {
    padding: 60px 0;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.product-card.reverse {
    direction: rtl;
}

.product-card.reverse > * {
    direction: ltr;
}

.product-image {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 0;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.product-placeholder {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image:has(.product-img) .product-placeholder {
    display: none;
}

.product-content {
    padding: 20px 0;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #666;
}

/* Calculator Section */
.calculator {
    background-color: var(--light-bg);
    padding: 60px 0;
    text-align: center;
}

.calculator-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.calculator-description {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Why Choose Us */
.why-choose {
    padding: 60px 0;
}

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

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

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Control Options */
.control-options {
    background-color: var(--light-bg);
    padding: 60px 0;
}

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

.option-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.option-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.option-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* News Section */
.news {
    padding: 60px 0;
}

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

.news-item {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
}

.news-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.news-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.news-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-text {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-text.small {
    font-size: 12px;
    margin-bottom: 20px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.subscribe-form input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 14px;
}

.subscribe-form input::placeholder {
    color: #999;
}

.subscribe-form button {
    padding: 10px 20px;
}

.footer-company {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-address {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-contact {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-phone {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-phone strong {
    color: var(--white);
    display: block;
    margin-bottom: 5px;
}

.footer-phone a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.scroll-top {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.scroll-top:hover {
    color: var(--white);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .header-contacts {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .header-main {
        flex-wrap: wrap;
        padding: 15px;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    .nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-radius: 4px;
        padding: 15px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        padding: 10px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .has-submenu .submenu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 20px;
    }

    .has-submenu.open .submenu {
        display: block;
    }

    .cart {
        order: 1;
        margin-left: auto;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card.reverse {
        direction: ltr;
    }

    .product-title {
        font-size: 22px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 22px;
    }

    .hero-title {
        font-size: 20px;
    }

    .product-title {
        font-size: 20px;
    }

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

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

