/* Общие стили */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
    --success-color: #2ecc71;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

.btn-primary, .btn-calculate, .btn-order, .btn-footer {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover, .btn-calculate:hover, .btn-order:hover, .btn-footer:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-reset {
    display: inline-block;
    background-color: var(--gray-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-reset:hover {
    background-color: #7f8c8d;
}

/* Шапка */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
    margin-right: 10px;
    color: var(--secondary-color);
}

.logo-highlight {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    margin-right: 30px;
}

.nav-item {
    margin-left: 20px;
}

.nav-item a {
    padding: 8px 0;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-item a:hover, .nav-item.active a {
    color: var(--secondary-color);
}

.nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.header-contacts {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.contact-item i {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* Основной контент */
.main-content {
    min-height: calc(100vh - 150px);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Секция калькулятора */
.calculator-section {
    padding: 80px 0;
    background-color: white;
}

.calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.calculator-form, .calculator-result {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-with-unit {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.input-with-unit input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 1rem;
}

.input-with-unit span {
    padding: 0 15px;
    background-color: #f5f5f5;
    height: 100%;
    display: flex;
    align-items: center;
}

.range-container {
    margin-top: 10px;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
}

select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: white;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input:checked + .checkbox-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

.note {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 5px;
}

.btn-calculate {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
    margin-top: 10px;
}

/* Результаты калькулятора */
.calculator-result h3 {
    text-align: center;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.result-details {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.result-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.min-order-notice {
    display: flex;
    align-items: flex-start;
    background-color: #fff8e1;
    padding: 12px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    font-size: 0.9rem;
}

.min-order-notice i {
    color: #ff9800;
    margin-right: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.order-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.btn-order, .btn-reset {
    flex: 1;
    padding: 15px;
    font-size: 1rem;
}

.price-examples {
    background-color: #f0f8ff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
}

.price-examples h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.price-examples li {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.price-examples li:last-child {
    border-bottom: none;
}

/* Секция преимуществ */
.features-section {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.feature-card h3 {
    color: var(--primary-color);
}

/* Секция "Как заказать" */
.howto-section {
    padding: 80px 0;
    background-color: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.step {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 25px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

/* Подвал */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-links li, .footer-contacts li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-contacts li {
    display: flex;
    align-items: center;
}

.footer-contacts i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-footer {
    display: inline-block;
    margin-top: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-info {
    max-width: 500px;
    text-align: right;
}

/* Адаптивность */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .calculator-section, .features-section, .howto-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .nav-item {
        margin: 0 0 15px 0;
        width: 100%;
    }
    
    .nav-item a {
        display: block;
        padding: 10px 0;
    }
    
    .header-contacts {
        width: 100%;
    }
    
    .calculator-container {
        flex-direction: column;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .calculator-container {
        padding: 20px;
    }
    
    .features-grid, .steps-container {
        grid-template-columns: 1fr;
    }
}