/* styles.css – оформление в стиле «Завод тракторов» (тяжёлая промышленность, металл, мощь, надёжность) */
/* Без Google Fonts, только системные шрифты. Всё локально. */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f2f2f2;
    color: #222;
    line-height: 1.6;
    max-width: 1090px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    overflow-x: hidden;
}

/* === Контейнер === */
.container {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Общие стили блоков === */
.section {
    padding: 60px 0;
    border-bottom: 8px solid #1a1a1a;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        #cc0000,
        #cc0000 20px,
        #ffcc00 20px,
        #ffcc00 40px
    );
    z-index: 1;
}

/* === Цветовая схема блоков (контрастное чередование) === */
.oferta { background: #1a1a1a; color: #f2f2f2; } /* чёрный металл */
.produkty { background: #cc0000; color: #ffffff; } /* красный как трактор */
.opinie { background: #333333; color: #f2f2f2; } /* тёмная сталь */
.formularz { background: #ffcc00; color: #1a1a1a; } /* жёлтый как предупреждающая полоса */
.media { background: #e6e6e6; color: #1a1a1a; } /* светлый бетон */
.specjalisci { background: #006600; color: #ffffff; } /* зелёный как поле, но тёмный */
.zostaw-opinie { background: #4d4d4d; color: #f2f2f2; } /* серый металл */
.mapa { background: #ffffff; color: #1a1a1a; border-bottom: none; }
.footer { background: #0d0d0d; color: #cccccc; padding: 30px 0; }

/* === Блок 1: Оферта (min 470px высоты) === */
.oferta {
    min-height: 470px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.oferta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(26,26,26,0.8), transparent);
}

.oferta h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.oferta p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.oferta strong {
    color: #ffcc00;
}

/* === Кнопка-ссылка в оферте === */
.btn-primary {
    display: inline-block;
    background: #ffcc00;
    color: #1a1a1a;
    font-weight: 900;
    font-size: 1.3rem;
    padding: 16px 36px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 4px solid #1a1a1a;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 #1a1a1a;
    margin-top: 20px;
}

.btn-primary:hover {
    background: #1a1a1a;
    color: #ffcc00;
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 #cc0000;
}

/* === Заголовки === */
h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #1a1a1a;
}

/* === Список продуктов === */
.produkty-lista {
    list-style: none;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.produkty-lista li {
    background: rgba(255,255,255,0.15);
    margin: 12px 0;
    padding: 16px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    border-left: 8px solid #1a1a1a;
    transition: transform 0.2s;
}

.produkty-lista li:hover {
    transform: translateX(10px);
    background: rgba(255,255,255,0.25);
}

/* === Статья (выделение) === */
.artykul {
    background: rgba(0,0,0,0.1);
    padding: 30px;
    border: 3px dashed #1a1a1a;
    border-radius: 0;
    max-width: 900px;
    margin: 3rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.artykul h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffcc00;
    text-align: center;
    text-transform: uppercase;
}

.artykul p {
    margin-bottom: 1.2rem;
}

.artykul em {
    display: block;
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
    color: #ffcc00;
}

/* === Формы === */
form {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

form input[type="email"],
form textarea,
form input[type="text"] {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    border: 4px solid #1a1a1a;
    background: #ffffff;
    margin-bottom: 20px;
    transition: border 0.3s;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #cc0000;
}

form button {
    background: #1a1a1a;
    color: #ffcc00;
    font-weight: 900;
    font-size: 1.2rem;
    padding: 16px 40px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 4px 4px 0 #cc0000;
}

form button:hover {
    background: #cc0000;
    color: #ffffff;
    transform: translateY(-2px);
}

/* === Отзывы === */
.opinie-lista {
    max-width: 900px;
    margin: 0 auto;
}

.opinie-lista blockquote {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    margin: 20px 0;
    border-left: 6px solid #ffcc00;
    font-style: italic;
    position: relative;
}

.opinie-lista cite {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: #ffcc00;
    font-style: normal;
}

/* === Специалисты === */
.specjalisci-lista {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.specjalisci-lista li {
    background: rgba(255,255,255,0.15);
    margin: 15px 0;
    padding: 18px;
    font-size: 1.2rem;
    border-bottom: 4px solid #ffcc00;
    text-align: center;
    font-weight: 600;
}

/* === Карта === */
.mapa iframe {
    border: 6px solid #1a1a1a;
    margin-top: 20px;
    display: block;
}

/* === Футер === */
.footer p {
    text-align: center;
    font-size: 0.9rem;
}

.domainName {
    color: #ffcc00;
    font-weight: 700;
}

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

    body {
        padding: 0 10px;
    }

    .container {
        padding: 0 15px;
    }

    .section {
        padding: 40px 0;
    }

    .oferta {
        min-height: 400px;
        padding: 40px 0;
    }

    .oferta h1 {
        font-size: 2.2rem;
    }

    .btn-primary {
        padding: 14px 28px;
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .artykul {
        padding: 20px;
        margin: 2rem auto;
    }

    form input[type="email"],
    form textarea,
    form input[type="text"] {
        padding: 12px;
    }

    .opinie-lista blockquote,
    .produkty-lista li,
    .specjalisci-lista li {
        font-size: 1rem;
        padding: 16px;
    }

    .mapa iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .oferta h1 {
        font-size: 1.8rem;
    }

    .btn-primary {
        width: 100%;
        padding: 16px;
    }

    h2 {
        font-size: 1.6rem;
    }

    .artykul h3 {
        font-size: 1.5rem;
    }
}
