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

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

.container {
    padding: 40px 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    font-size: 2em;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 4px solid;
    padding-bottom: 10px;
    display: inline-block;
}

h3 {
    font-size: 1.3em;
    margin-bottom: 12px;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
}

/* Блок 1: Hero section - стиль завода */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 470px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255, 140, 0, 0.1) 48px, rgba(255, 140, 0, 0.1) 50px),
        repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(255, 140, 0, 0.1) 48px, rgba(255, 140, 0, 0.1) 50px);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: #ff8c00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-section .lead {
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 500;
    color: #ffcc66;
}

.hero-section p {
    color: #e0e0e0;
    font-size: 1.05em;
}

/* Кнопка CTA - в стиле промышленной кнопки */
.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(180deg, #ff8c00 0%, #cc7000 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    border: 3px solid #ffaa33;
    border-radius: 0;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.cta-button:hover {
    background: linear-gradient(180deg, #ffaa33 0%, #ff8c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Блок отзывов - желтый промышленный */
.reviews-section {
    background-color: #ffd700;
    color: #1a1a1a;
}

.reviews-section h2 {
    border-bottom-color: #1a1a1a;
}

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

.review-item {
    background-color: #ffffff;
    padding: 25px;
    border-left: 5px solid #ff8c00;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.review-item h3 {
    color: #ff8c00;
    margin-bottom: 12px;
    font-weight: 700;
}

.review-item p {
    color: #2c2c2c;
    font-style: italic;
    line-height: 1.5;
}

/* Форма отзыва - серый металлический */
.review-form-section {
    background-color: #4a4a4a;
    color: #ffffff;
}

.review-form-section h2 {
    border-bottom-color: #ff8c00;
    color: #ff8c00;
}

.review-form-section p {
    color: #e0e0e0;
}

.review-form {
    max-width: 600px;
    margin-top: 25px;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #666666;
    background-color: #2c2c2c;
    color: #ffffff;
    font-size: 1em;
    font-family: inherit;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: #ff8c00;
    background-color: #3a3a3a;
}

/* Блок услуг - оранжевый акцент */
.services-section {
    background-color: #2c2c2c;
    color: #ffffff;
}

.services-section h2 {
    border-bottom-color: #ff8c00;
    color: #ff8c00;
}

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

.service-item {
    background-color: #3a3a3a;
    padding: 25px;
    border-top: 4px solid #ff8c00;
    transition: all 0.3s ease;
}

.service-item:hover {
    background-color: #454545;
    transform: translateX(5px);
}

.service-item h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

.service-item p {
    color: #e0e0e0;
}

/* Статья - выделенный блок */
.theme-article {
    background: linear-gradient(135deg, #ff8c00 0%, #cc7000 100%);
    padding: 35px;
    margin-top: 40px;
    border: 4px solid #ffd700;
    box-shadow: 0 0 0 8px #2c2c2c, 0 8px 16px rgba(0, 0, 0, 0.5);
    position: relative;
}

.theme-article::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.theme-article h2 {
    color: #ffffff;
    border-bottom-color: #ffd700;
    font-size: 1.8em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.theme-article p {
    color: #ffffff;
    font-size: 1.05em;
    line-height: 1.7;
    text-align: justify;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Блок команды - светлый */
.team-section {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

.team-section h2 {
    border-bottom-color: #ff8c00;
}

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

.team-member {
    background-color: #ffffff;
    padding: 25px;
    border: 3px solid #cccccc;
    border-left: 6px solid #ff8c00;
    transition: all 0.3s ease;
}

.team-member:hover {
    border-color: #ff8c00;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.team-member h3 {
    color: #1a1a1a;
    font-weight: 700;
}

.team-member .position {
    color: #ff8c00;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

/* Блок медиа - темно-серый */
.media-section {
    background-color: #3a3a3a;
    color: #ffffff;
}

.media-section h2 {
    border-bottom-color: #ffd700;
    color: #ffd700;
}

.media-section p {
    color: #e0e0e0;
    font-size: 1.05em;
    line-height: 1.8;
    text-align: justify;
}

/* Блок контактной формы - оранжевый */
.contact-section {
    background-color: #ff8c00;
    color: #1a1a1a;
}

.contact-section h2 {
    border-bottom-color: #1a1a1a;
}

.contact-section p {
    color: #2c2c2c;
    font-weight: 500;
}

.contact-form {
    max-width: 500px;
    margin-top: 25px;
}

.contact-form input[type="email"] {
    width: 100%;
    padding: 18px;
    margin-bottom: 15px;
    border: 3px solid #1a1a1a;
    background-color: #ffffff;
    color: #1a1a1a;
    font-size: 1.1em;
    font-family: inherit;
}

.contact-form input[type="email"]:focus {
    outline: none;
    border-color: #2c2c2c;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

/* Кнопки отправки */
.submit-button {
    padding: 18px 40px;
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
    color: #ffffff;
    border: 3px solid #ffd700;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.submit-button:hover {
    background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.review-form .submit-button {
    background: linear-gradient(180deg, #ff8c00 0%, #cc7000 100%);
    border-color: #ffcc66;
}

.review-form .submit-button:hover {
    background: linear-gradient(180deg, #ffaa33 0%, #ff8c00 100%);
}

/* Блок локации - желтый */
.location-section {
    background-color: #ffd700;
    color: #1a1a1a;
}

.location-section h2 {
    border-bottom-color: #1a1a1a;
}

.location-section .address {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c2c2c;
}

.map-container {
    margin-top: 20px;
    border: 4px solid #ff8c00;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    display: block;
}

/* Footer - черный промышленный */
.footer {
    background-color: #1a1a1a;
    color: #cccccc;
    text-align: center;
    padding: 25px 20px;
    border-top: 4px solid #ff8c00;
}

.footer p {
    margin: 0;
    font-size: 0.95em;
}

.footer .domainName {
    color: #ff8c00;
    font-weight: 600;
}

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

    .container {
        padding: 30px 15px;
    }

    h1 {
        font-size: 1.8em;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }

    .hero-section {
        min-height: 400px;
    }

    .hero-section .lead {
        font-size: 1.1em;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1em;
        width: 100%;
        text-align: center;
    }

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

    .theme-article {
        padding: 25px 20px;
        margin-top: 30px;
    }

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

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

    .contact-form,
    .review-form {
        max-width: 100%;
    }

    .contact-form input[type="email"],
    .review-form input[type="text"],
    .review-form textarea {
        padding: 12px;
        font-size: 16px; /* Предотвращает зум на iOS */
    }

    .submit-button {
        width: 100%;
        padding: 15px;
        font-size: 1em;
    }

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

    .service-item:hover,
    .team-member:hover {
        transform: none;
    }
}

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

    h2 {
        font-size: 1.3em;
    }

    .hero-section {
        min-height: 470px;
    }

    .hero-section .lead {
        font-size: 1em;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.95em;
    }

    .review-item,
    .service-item,
    .team-member {
        padding: 20px 15px;
    }

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

    .theme-article::before {
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
    }
}
