* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

/* контейнер */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* HEADER */
.header {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

/* ЛОГО */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 6px 12px;
    border-radius: 8px;

    background: rgba(255,255,255,0.06);
}

.logo img {
    height: 36px;
    width: auto;

    /* чуть усиливаем видимость */
    filter: brightness(1.2) contrast(1.1);
}

.logo span {
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
}

/* НАВИГАЦИЯ */
nav a {
    margin-left: 25px;
    text-decoration: none;
    font-weight: 500;

    color: #cbd5f5;
    transition: 0.2s;
}

/* убираем дефолт браузера */
nav a:visited,
nav a:link {
    color: #cbd5f5;
}

nav a:hover {
    color: #ffffff;
}

/* HERO */
.hero {
    position: relative;
    padding: 140px 20px;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* фон */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('images/factory.jpg') center/cover no-repeat;

    filter: blur(2px) brightness(0.8);
    transform: scale(1.05);

    z-index: 0;
}

/* лёгкий overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(15,23,42,0.2),
        rgba(15,23,42,0.45)
    );

    z-index: 1;
}

/* текст */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 15px;
}

.hero p {
    color: #e5e7eb;
    font-size: 18px;
}

/* СЕКЦИИ */
.section {
    padding: 60px 20px;
}

/* КАРТОЧКИ */
.cards {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.card {
    flex: 1;
    background: #1e293b;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);

    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.1);
}

/* КОНТАКТЫ */
.contact-box {
    background: #1e293b;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* КНОПКА */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

.btn:hover {
    background: #1d4ed8;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    color: #6b7280;
}

.map {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

/* PRODUCTS */

.products-hero::before {
    background: url('images/products-bg.jpg') center/cover no-repeat;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.product-card {
    background: #1e293b;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);

    transition: 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-content {
    padding: 20px;
}

.product-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.product-content ul {
    padding-left: 20px;
}

/* RAW */

.raw-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;

    margin-top: 40px;
}

.raw-item {
    text-align: center;
}

.raw-item img {
    width: 140px;
    height: 140px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid rgba(255,255,255,0.08);

    transition: 0.2s;
}

.raw-item img:hover {
    transform: scale(1.05);
}

.raw-item span {
    display: block;
    margin-top: 15px;
}

/* MOBILE */

@media (max-width: 768px) {

    .product-grid {
        grid-template-columns: 1fr;
    }

    .raw-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* CONTACT HERO */

.contacts-hero::before {
    background: url('images/contacts-bg.jpg') center/cover no-repeat;

    filter: blur(1px) brightness(0.82);

    transform: scale(1.03);
}

.contacts-hero .contact-box {
    margin-top: 40px;

    background: rgba(15, 23, 42, 0.72);

    backdrop-filter: blur(8px);

    border: 1px solid rgba(255,255,255,0.06);

    text-align: left;

    max-width: 900px;

    margin-left: auto;
    margin-right: auto;
}

.contacts-hero h1 {
    font-size: 48px;
}

/* BUTTONS ROW */

.buttons-row {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

/* HEADER RIGHT */
/* HEADER RIGHT */

.header .container {
    display: flex;
    align-items: center;
}

/* меню */
.main-nav {
    margin-left: auto;

    display: flex;
    align-items: center;
}

/* сертификат */
.cert-badge {
    margin-left: 25px;

    display: flex;
    align-items: center;

    background: rgba(255,255,255,0.05);

    border-radius: 10px;

    padding: 4px;

    transition: 0.2s;
}

.cert-badge:hover {
    transform: scale(1.04);
    background: rgba(255,255,255,0.08);
}

.cert-badge img {
    height: 56px;
    width: auto;

    border-radius: 6px;
}

/* CERT */

.cert-badge {
    display: flex;
    align-items: center;

    background: rgba(255,255,255,0.05);

    border-radius: 10px;

    padding: 4px;

    transition: 0.2s;
}

.cert-badge:hover {
    transform: scale(1.04);
    background: rgba(255,255,255,0.08);
}

.cert-badge img {
    height: 56px;
    width: auto;

    border-radius: 6px;
}