/* Основные стили для сайта "Канализационные люки" */
:root {
    --primary-color: #3F4A59; /* Темно-синий с серым оттенком - основной цвет */
    --secondary-color: #f7f7f7; /* Светло-серый для фона */
    --accent-color: #FF5722; /* Оранжевый - акцентный цвет */
    --dark-color: #263238; /* Темно-синий почти черный для акцентов */
    --text-color: #333333; /* Темно-серый для текста */
    --light-text: #ffffff; /* Белый для текста на темном фоне */
    --border-color: #E0E0E0; /* Цвет для границ */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-color);
}

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

/* Шапка сайта */
header {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: var(--light-text);
    font-size: 24px;
    font-weight: 700;
}

.logo-emoji {
    font-size: 28px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--light-text);
}

/* Основное содержимое */
main {
    flex: 1;
    padding: 40px 0;
}

h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-title {
    font-size: 32px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.content-section {
    margin-bottom: 40px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Стили для главной страницы */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--light-text);
    padding: 60px 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h2 {
    color: var(--light-text);
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.product-emoji {
    margin-right: 12px;
    font-size: 24px;
}

.features-list {
    list-style: none;
    margin: 25px 0;
}

.features-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.cta-section {
    background-color: var(--accent-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 40px 0;
    color: var(--light-text);
}

.cta-section h3 {
    color: var(--light-text);
    margin-bottom: 15px;
}

.cta-btn {
    display: inline-block;
    background-color: var(--light-text);
    color: var(--accent-color);
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--accent-color);
}

/* Стили для страницы о компании */
.company-history {
    margin-top: 25px;
}

.milestone {
    margin-bottom: 30px;
    position: relative;
    padding-left: 35px;
}

.milestone:before {
    content: "🔍";
    position: absolute;
    left: 0;
    top: 0;
}

.year {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 18px;
}

.team-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

.team-value {
    flex: 1 1 300px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    border-bottom: 3px solid var(--primary-color);
}

.value-icon {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Стили для страницы контактов */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 26px;
    margin-right: 15px;
    color: var(--primary-color);
    margin-top: 3px;
}

.map-container {
    margin-top: 30px;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    flex-direction: column;
    padding: 20px;
}

.map-placeholder {
    font-size: 24px;
    margin-bottom: 15px;
}

.map-address {
    font-weight: 500;
}

/* Подвал сайта */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 30px 0;
    margin-top: auto;
}

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

.copyright {
    font-size: 14px;
}

/* Стили для блоков */
.info-box {
    background-color: rgba(63, 74, 89, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid var(--primary-color);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .team-section {
        flex-direction: column;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h2 {
        font-size: 28px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
}