/* ============================================================
   style.css — Завод Сейм
   ============================================================ */

/* --- СКИДАННЯ ТА БАЗОВІ СТИЛІ --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    color: #1d2327;
    background: #fff;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- КОНТЕЙНЕР --- */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.centered         { text-align: center; }

/* --- КНОПКИ --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .1s;
    text-decoration: none;
}
.btn-gold {
    background: #c79e33;
    color: #fff;
}
.btn-gold:hover { background: #b38a22; transform: translateY(-1px); }
.btn-submit { padding: 14px 40px; font-size: 15px; margin-top: 8px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(29,35,39,.82);
    backdrop-filter: blur(6px);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 24px;
    max-width: 1400px;
    margin: 0 auto;
}
.header-phones {
    flex: 1;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.header-phones a { color: #c79e33; font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.header-phones a:hover { color: #fff; }
/* Логотип оператора — висота рівна рядку тексту посилання */
.operator-logo {
    height: 1.1em;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}
.header-socials { display: flex; gap: 14px; }
.header-socials a { color: #c79e33; display: flex; align-items: center; transition: color .2s; }
.header-socials a:hover { color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background: url('images/hero_bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: rgba(29,35,39,.40);
}
.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 20px;
}
.hero-subtitle {
    font-size: clamp(16px, 2vw, 22px);
    color: #f5c842;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: .04em;
    text-shadow: 0 1px 8px rgba(0,0,0,.9), 0 0 30px rgba(0,0,0,.7);
}
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(40px, 7vw, 90px);
    font-weight: 700;
    color: #f5c842;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,.95), 0 4px 20px rgba(0,0,0,.8), 0 0 40px rgba(0,0,0,.6);
}

/* ============================================================
   СЕКЦІЇ — спільне
   ============================================================ */
.section { padding: 80px 0; }
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 40px;
}

/* ============================================================
   ХАРАКТЕРИСТИКИ
   ============================================================ */
.section-chars { background: #faf8f0; }
.chars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.factory-photo {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    margin-top: 24px;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 32px;
}
.stat-item {
    padding: 28px 24px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.stat-item:nth-child(2n) { border-right: none; }
.stat-item:nth-last-child(-n+2) { border-bottom: none; }
.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 6px;
}
.stat-label { font-size: 14px; color: #666; }

.divisions h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.divisions ul li {
    padding: 4px 0 4px 18px;
    position: relative;
    color: #444;
}
.divisions ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #c79e33;
}

/* ============================================================
   ПРОДУКЦІЯ
   ============================================================ */
.section-products { background: #faf8f0; padding-top: 60px; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}
.product-card {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
}
.product-overlay {
    position: absolute; inset: 0;
    background: rgba(29,35,39,.38);
    transition: background .3s;
}
.product-card:hover .product-overlay { background: rgba(29,35,39,.55); }
.product-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    min-height: 320px;
}
.product-content h3 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
/* Кнопка КУПИТИ займає рівно половину ширини картки */
.product-content .btn {
    width: 50%;
    text-align: center;
}
.shop-cta {
    text-align: center;
    padding: 60px 0 20px;
}
.shop-cta p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 24px;
}

/* ============================================================
   СПІВРОБІТНИЦТВО
   ============================================================ */
.section-collab { background: #fff; padding: 0; }
.collab-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}
.collab-img {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}
.collab-content {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.collab-items { margin-top: 12px; }
.collab-item {
    font-size: 18px;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #1d2327;
}
.collab-item:last-child { border-bottom: none; }

/* ============================================================
   РОЗТАШУВАННЯ
   ============================================================ */
.section-location { background: #faf8f0; }
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.location-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.location-item p { color: #555; margin-bottom: 16px; }
.map-wrap { border-radius: 6px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.1); }

/* ============================================================
   ФОРМА
   ============================================================ */
.section-form { background: #fff; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; color: #444; }
.required { color: #c0392b; }
.form-group input, .form-group select, .form-group textarea {
    padding: 12px 14px;
    border: 1px solid #d0cfc5;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    background: #faf8f0;
    color: #1d2327;
    transition: border-color .2s, box-shadow .2s;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #c79e33;
    box-shadow: 0 0 0 3px rgba(199,158,51,.15);
}
.phone-wrap { display: flex; gap: 10px; }
.phone-wrap select { width: 200px; flex-shrink: 0; }
.phone-wrap input  { flex: 1; }

.alert {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-weight: 600;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ============================================================
   КОНТАКТИ
   ============================================================ */
.section-contacts { background: #faf8f0; }
.section-contacts p { margin-bottom: 8px; }
.section-contacts a { color: #c79e33; font-weight: 600; }
.section-contacts a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1d2327;
    color: #aaa;
    padding: 24px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { color: #c79e33; display: flex; align-items: center; transition: color .2s; }
.footer-socials a:hover { color: #fff; }
.copyright { font-size: 14px; }

/* ============================================================
   АДАПТИВНІСТЬ
   ============================================================ */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .chars-grid    { grid-template-columns: 1fr; gap: 32px; }
    .collab-wrap   { grid-template-columns: 1fr; }
    .collab-img    { min-height: 280px; }
}

@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .products-grid   { grid-template-columns: 1fr; }
    .location-grid   { grid-template-columns: 1fr; }
    .stats-grid      { grid-template-columns: 1fr; }
    .stat-item       { border-right: none; }
    .stat-item:nth-last-child(-n+2) { border-bottom: 1px solid #ddd; }
    .stat-item:last-child { border-bottom: none; }

    .header-inner    { flex-wrap: wrap; gap: 10px; }
    .header-phones   { order: 3; width: 100%; justify-content: center; gap: 12px; }

    .hero-title { font-size: 40px; }
    .phone-wrap { flex-direction: column; }
    .phone-wrap select { width: 100%; }

    .collab-content { padding: 40px 24px; }
}

@media (max-width: 480px) {
    .header-phones a { font-size: 12px; }
    .btn { padding: 10px 20px; font-size: 13px; }
}
