@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --text: #333333;
    --background: #ffffff;
    --light-gray: #f5f5f5;
    --border: #e0e0e0;
    --text-secondary: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background-color: var(--background);
    z-index: 1000;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: font-size 0.3s ease;
}

header.scrolled .logo {
    font-size: 20px;
}

.logo span {
    color: var(--primary);
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 32px;
    color: #666;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(37, 99, 235, 0.25);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn i {
    margin-right: 8px;
}

.services {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background-color: var(--background);
    border-radius: 8px;
    padding: 32px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 72px;
    height: 72px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.price-section {
    padding: 80px 0;
}

.price-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.price-category {
    margin-bottom: 40px;
}

.price-category-title {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.price-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.price-item-info {
    flex: 1;
}

.price-item-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.price-item-description {
    color: var(--text-secondary);
    font-size: 14px;
}

.price-item-dots {
    flex: 0 0 40px;
    overflow: hidden;
    position: relative;
    margin: 0 10px;
}

.price-item-dots::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    border-bottom: 2px dotted var(--border);
}

.price-item-cost {
    flex: 0 0 100px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

.price-consultation {
    text-align: center;
    margin-top: 40px;
    padding: 24px;
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 12px;
}

.price-consultation-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.price-consultation-description {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.contact {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--background);
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group .input-icon {
    position: relative;
}

.form-group .input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.form-group .input-icon input {
    padding-left: 45px;
}

footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright {
    color: #666;
    text-align: center;
    font-size: 14px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1100;
    transform: translateX(400px);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.notification.show {
    transform: translateX(0);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notification-title {
    font-weight: 600;
    font-size: 18px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
}

.notification-message {
    margin-bottom: 15px;
}

.notification-success {
    border-left: 4px solid #22c55e;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-success .notification-title {
    color: #22c55e;
}

.notification-error .notification-title {
    color: #ef4444;
}

.form-status-message {
    text-align: center;
    background-color: var(--primary-light);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* Мобильные стили */
@media (max-width: 768px) {
    /* Заголовок */
    .header-content {
        flex-direction: row;
    }
    
    /* Показываем мобильное меню */
    .menu-toggle {
        display: block;
    }
    
    /* Стили для навигации */
    nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        z-index: 100;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav.active {
        max-height: 300px;
        padding: 15px 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 0 20px;
        gap: 10px;
    }
    
    nav a {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }
    
    /* Секция Hero */
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    /* Услуги */
    .services {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    /* Прайс-лист */
    .price-section {
        padding: 60px 0;
    }
    
    .price-container {
        padding: 20px;
    }
    
    .price-item {
        flex-direction: column;
    }
    
    .price-item-dots {
        display: none;
    }
    
    .price-item-cost {
        align-self: flex-start;
        margin-top: 10px;
        padding: 3px 8px;
        background-color: rgba(37, 99, 235, 0.1);
        border-radius: 4px;
        text-align: left;
    }
    
    /* Контакты */
    .contact {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    /* Кнопки */
    .btn {
        display: block;
        width: 100%;
    }
    
    /* Уведомления */
    .notification {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
}
