/* ===== БАЗОВІ СТИЛІ ===== */
:root {
    --primary-blue: #0077cc;
    --primary-dark: #005599;
    --accent-orange: #ff6b35;
    --light-blue: #e6f2ff;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 119, 204, 0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ШАПКА ===== */
.aircon-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Логотип */
.logo-container .custom-logo {
    max-height: 60px;
    width: auto;
}

.site-logo {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-text {
    color: var(--primary-blue);
}

.logo-text-accent {
    color: var(--accent-orange);
}

/* Контактна інформація */
.header-contacts {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    font-size: 24px;
    background: var(--light-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
}

.contact-value {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

/* Кнопки дій */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-button {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-orange);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.consultation-button {
    background: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.consultation-button:hover {
    background: var(--primary-dark);
}

/* Навігація */
.main-navigation {
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.primary-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.primary-menu a:hover {
    color: var(--primary-blue);
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s;
}

.primary-menu a:hover::after {
    width: 100%;
}

/* ===== ГЕРОЙ СЕКЦІЯ ===== */
.hero-section {
    background: linear-gradient(135deg, #f8fbff 0%, #e6f2ff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.primary-button, .secondary-button {
    padding: 15px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.primary-button {
    background: var(--primary-blue);
    color: white;
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 204, 0.2);
}

.secondary-button {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.secondary-button:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== КАЛЬКУЛЯТОР ===== */
.calculator-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 18px;
}

.calculator-form {
    background: var(--light-blue);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.calculator-inputs {
    flex: 1;
    min-width: 300px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.range-slider {
    margin-top: 10px;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
}

.calculator-result {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.calculator-result h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.power-result {
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.power-result small {
    font-size: 24px;
    color: var(--text-light);
}

.power-note {
    color: var(--text-light);
    margin-bottom: 30px;
}

#show-matching {
    width: 100%;
}

/* ===== КАТЕГОРІЇ ===== */
.categories-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 119, 204, 0.15);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.category-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.category-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 15px;
}

.category-link {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
}

/* ===== ТОВАРИ ===== */
.featured-products {
    padding: 80px 0;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.view-all {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-orange);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-image {
    display: block;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-info {
    padding: 20px;
}

.product-title {
    margin-bottom: 15px;
}

.product-title a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
}

.product-title a:hover {
    color: var(--primary-blue);
}

.product-specs {
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.spec-label {
    color: var(--text-light);
}

.spec-value {
    font-weight: 600;
}

.energy-class-a {
    color: #00a854;
}

.energy-class-b {
    color: #8cc152;
}

.energy-class-c {
    color: #ffce54;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
}

.sale-badge {
    background: #ff4757;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart {
    flex: 1;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: var(--primary-dark);
}

.cart-plus {
    font-size: 20px;
}

.details-button {
    padding: 12px 20px;
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.details-button:hover {
    background: var(--light-blue);
}

/* ===== ПЕРЕВАГИ ===== */
.advantages-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.advantage-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* ===== КОНСУЛЬТАЦІЯ ===== */
.consultation-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
}

.consultation-wrapper {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.consultation-content {
    flex: 1;
    min-width: 300px;
}

.consultation-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.consultation-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.consultation-benefits {
    list-style: none;
}

.consultation-benefits li {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consultation-form {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #e05a2b;
}

.form-note {
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

/* ===== АДАПТИВНІСТЬ ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .consultation-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .header-contacts {
        flex-direction: column;
        gap: 15px;
    }
    
    .primary-menu {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .products-grid,
    .categories-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .primary-button,
    .secondary-button {
        width: 100%;
        text-align: center;
    }
    
    .calculator-form {
        padding: 20px;
    }
}