/* Общие сбросы стилей и переменные */
:root {
    --primary-color: #0077b6;
    --secondary-color: #00b4d8;
    --dark-color: #1d3557;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-color: #4a4a4a;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Шапка (Header) */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary-color);
}

.nav a {
    text-decoration: none;
    color: var(--dark-color);
    margin-left: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-color);
}

.nav .btn-contact {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 20px;
}

.nav .btn-contact:hover {
    background-color: var(--dark-color);
    color: var(--white);
}

/* Главный баннер (Hero) */
.hero {
    background: linear-gradient(135deg, rgba(0,119,182,0.8) 0%, rgba(0,180,216,0.6) 100%), 
                url('https://unsplash.com') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Кнопки */
.btn-primary {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Секции общие */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* Сетки */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* О компании */
.about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 16px;
}

.about-stats {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
}

.stat-item {
    margin-bottom: 20px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item h3 {
    font-size: 36px;
    color: var(--primary-color);
}

/* Преимущества */
.advantages {
    background-color: var(--light-bg);
}

.card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,119,182,0.1);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* Продукция */
.product-item {
    background-color: var(--white);
    border: 1px solid #eef2f5;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.product-item:hover {
    border-color: var(--secondary-color);
}

.product-img-placeholder {
    background-color: #e2f1f8;
    height: 200px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.product-item h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.product-item p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #777;
}

.product-item .price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
}

/* Контакты */
.contacts {
    background-color: var(--light-bg);
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

.contact-form .btn-primary {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-form .btn-primary:hover {
    background-color: var(--dark-color);
}

/* Подвал (Footer) */
.footer {
    background-color: var(--dark-color);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav a {
        margin: 0 10px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
