/* Основные стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    max-width: 1090px;
    margin: 0 auto;
    background: #f8f9fa;
}

.container {
    padding: 60px 20px;
}

h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #1a5490;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #2c5f7f;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #67b8e3);
    border-radius: 2px;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2c5f7f;
}

p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Блок 1: Hero - стиль горных вершин */
#hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e9ac4 100%);
    color: #ffffff;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(255,255,255,0.1) 0%, transparent 100%);
    clip-path: polygon(0 100%, 10% 80%, 20% 90%, 30% 70%, 40% 85%, 50% 60%, 60% 80%, 70% 65%, 80% 85%, 90% 75%, 100% 90%, 100% 100%);
}

#hero h1 {
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    font-size: 3em;
    margin-bottom: 25px;
}

#hero p {
    font-size: 1.3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопка CTA в hero */
.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, #e8f4f8 0%, #b8d4e0 100%);
    color: #1e3c72;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    margin-top: 20px;
    border: 3px solid #ffffff;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #ffffff 0%, #d4e8f0 100%);
}

/* Блок отзывов - снежно-белый */
#reviews {
    background: #ffffff;
    color: #2c3e50;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-item {
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e7f0 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #4a90e2;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
}

.review-item h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.review-item p {
    color: #34495e;
    font-style: italic;
    line-height: 1.7;
}

/* Блок формы отзыва - темно-синий горный */
#leave-review {
    background: linear-gradient(135deg, #2c5f7f 0%, #1e3c72 100%);
    color: #ffffff;
}

#leave-review h2 {
    color: #ffffff;
}

#leave-review h2::after {
    background: linear-gradient(90deg, #e8f4f8, #b8d4e0);
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #4a90e2;
    border-radius: 10px;
    font-size: 1.1em;
    font-family: inherit;
    background: #ffffff;
    color: #2c3e50;
    transition: border-color 0.3s ease;
}

.review-form input:focus,
.review-form textarea:focus {
    outline: none;
    border-color: #67b8e3;
    box-shadow: 0 0 10px rgba(103, 184, 227, 0.3);
}

.review-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: linear-gradient(135deg, #e8f4f8 0%, #b8d4e0 100%);
    color: #1e3c72;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #ffffff 0%, #d4e8f0 100%);
}

/* Блок специалистов - светло-голубой ледниковый */
#specialists {
    background: linear-gradient(135deg, #d1e7f0 0%, #a8d5e8 100%);
    color: #2c3e50;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.specialist-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #2c5f7f;
}

.specialist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 95, 127, 0.2);
}

.specialist-item h3 {
    color: #1e3c72;
    margin-bottom: 15px;
}

.specialist-item p {
    color: #34495e;
    line-height: 1.7;
}

/* Блок обучения и СМИ - темно-серо-синий */
#training-media {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #ecf0f1;
}

#training-media h2 {
    color: #e8f4f8;
}

#training-media h2::after {
    background: linear-gradient(90deg, #4a90e2, #67b8e3);
}

#training-media p {
    font-size: 1.15em;
    line-height: 1.8;
    text-align: justify;
    color: #ecf0f1;
}

/* Блок продуктов и статьи - белый с акцентами */
#products {
    background: #ffffff;
    color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.product-item {
    background: linear-gradient(135deg, #f0f7fa 0%, #e1eff5 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #2c5f7f;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 95, 127, 0.2);
}

.product-item h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.product-item p {
    color: #34495e;
    line-height: 1.7;
}

/* Стили для статьи - выделенный блок */
.tips-article {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(30, 60, 114, 0.3);
    margin-top: 60px;
    border: 3px solid #4a90e2;
    position: relative;
    overflow: hidden;
}

.tips-article::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.tips-article h2 {
    color: #e8f4f8;
    text-align: left;
    font-size: 2em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4a90e2;
}

.tips-article h2::after {
    display: none;
}

.tips-article p {
    color: #ecf0f1;
    font-size: 1.1em;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 20px;
}

/* Блок newsletter - горно-синий */
#newsletter {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #ffffff;
    text-align: center;
}

#newsletter h2 {
    color: #ffffff;
}

#newsletter h2::after {
    background: linear-gradient(90deg, #e8f4f8, #ffffff);
}

#newsletter p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ecf0f1;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid #ffffff;
    border-radius: 50px;
    font-size: 1.1em;
    font-family: inherit;
    background: #ffffff;
    color: #2c3e50;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.newsletter-form .submit-button {
    flex: 0 0 auto;
    min-width: 180px;
    background: linear-gradient(135deg, #e8f4f8 0%, #ffffff 100%);
    color: #1e3c72;
}

/* Блок локации - светлый */
#location {
    background: #f8f9fa;
    color: #2c3e50;
}

#location p {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #1e3c72;
    font-weight: bold;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    border: 3px solid #4a90e2;
}

.map-container iframe {
    display: block;
}

/* Footer - темный горный */
#copyright {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ecf0f1;
    text-align: center;
    padding: 30px 20px;
}

#copyright p {
    margin: 0;
    font-size: 1em;
    color: #b8d4e0;
}

.domainName {
    font-weight: bold;
    color: #4a90e2;
}

/* Мобильная версия */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 40px 15px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.3em;
    }

    #hero {
        min-height: 470px;
        padding: 20px;
    }

    #hero h1 {
        font-size: 2em;
    }

    #hero p {
        font-size: 1.1em;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 1.1em;
    }

    .reviews-grid,
    .specialists-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .review-item,
    .specialist-item,
    .product-item {
        padding: 20px;
    }

    .tips-article {
        padding: 30px 20px;
        margin-top: 40px;
    }

    .tips-article h2 {
        font-size: 1.6em;
    }

    .tips-article p {
        font-size: 1em;
        text-align: left;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"],
    .newsletter-form .submit-button {
        width: 100%;
        min-width: 100%;
    }

    .review-form input,
    .review-form textarea {
        font-size: 1em;
    }

    .map-container {
        border-radius: 10px;
    }

    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.7em;
    }

    h2 {
        font-size: 1.5em;
    }

    #hero h1 {
        font-size: 1.7em;
    }

    #hero p {
        font-size: 1em;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }

    .tips-article {
        padding: 20px 15px;
    }

    .tips-article h2 {
        font-size: 1.4em;
    }
}
