/* Базовые сбросы и настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

/* Стили для кнопок */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2a5bd7, #1e40af);
    color: white;
    box-shadow: 0 4px 12px rgba(42, 91, 215, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 91, 215, 0.4);
}

.btn-outline {
    background: transparent;
    color: #2a5bd7;
    border: 2px solid #2a5bd7;
}

.btn-outline:hover {
    background: #2a5bd7;
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-hero {
    font-size: 18px;
    padding: 16px 40px;
    border-radius: 12px;
    margin-top: 30px;
}

/* Стили шапки */
.header {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #1e3a8a;
    text-decoration: none;
}

.logo span {
    color: #2a5bd7;
}

.nav a {
    margin-left: 32px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #2a5bd7;
}

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

.phone-link {
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.open-cart-btn {
    padding: 10px 20px;
    position: relative;
}

#cart-count {
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 8px;
}

/* Стили герой-секции */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1e3a8a;
}

.highlight {
    color: #2a5bd7;
}

.subtitle {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 30px;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.advantage {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #374151;
}

.advantage i {
    color: #10b981;
}

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

.image-placeholder {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, #2a5bd7, #1e40af);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 120px;
    box-shadow: 0 20px 40px rgba(42, 91, 215, 0.2);
}

/* Стили секции услуг */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 17px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 40px;
    color: #2a5bd7;
    margin-bottom: 20px;
}

.service-title {
    font-size: 22px;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.service-description {
    color: #4b5563;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-price {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 20px;
}

/* Стили корзины */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    color: #1e3a8a;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.close-cart-btn:hover {
    color: #ef4444;
}

.cart-body {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 40px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item-title {
    font-weight: 600;
    color: #374151;
}

.remove-item {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 4px;
}

.remove-item:hover {
    background-color: #fee2e2;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.cart-total {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

#cart-total-count {
    color: #1e3a8a;
    font-weight: 700;
    font-size: 22px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* Стили модального окна формы */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background-color: white;
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    padding: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ef4444;
}

.modal-title {
    font-size: 28px;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Стили формы */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    transition: border 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a5bd7;
    box-shadow: 0 0 0 3px rgba(42, 91, 215, 0.2);
}

.form-summary {
    background-color: #f0f9ff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #2a5bd7;
}

.form-note {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .advantages-list {
        align-items: center;
    }
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .cart-sidebar {
        width: 100%;
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    .nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
        display: flex;
    }
    .nav a {
        margin: 0 10px;
    }
    .hero h1 {
        font-size: 34px;
    }
    .section-title {
        font-size: 30px;
    }
}