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

body {
    font-family: 'Inter', 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #FFFFFF;
    color: #1A1A1A;
    line-height: 1.4;
    scroll-behavior: smooth;
}

/* Контейнер */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Типографика */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}
.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #E30613;
    margin: 0.8rem auto 0;
    border-radius: 4px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
}
.btn-primary {
    background: #E30613;
    color: white;
    box-shadow: 0 4px 8px rgba(227, 6, 19, 0.2);
}
.btn-primary:hover {
    background: #b0050f;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(227, 6, 19, 0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid #E30613;
    color: #E30613;
}
.btn-outline:hover {
    background: #E30613;
    color: white;
}

/* Шапка */
.header {
    background: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
    border-bottom: 1px solid #f0f0f0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.logo-img {
    display: block;
    height: 52px;
    width: auto;
    object-fit: contain;
}
/* fallback если лого не загрузится */
.logo-img-error {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1A1A1A 30%, #E30613 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 8px 0;
}
.nav {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}
.nav a {
    text-decoration: none;
    color: #1A1A1A;
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover {
    color: #E30613;
}
.btn-contacts {
    background: #E30613;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

/* Hero секция */
.hero {
    padding: 60px 0 40px;
}
.hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}
.hero-content {
    flex: 1.2;
    min-width: 280px;
}
.hero-sub {
    color: #E30613;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-desc {
    font-size: 1.1rem;
    margin: 1rem 0 2rem;
    color: #4a4a4a;
}
.order-form {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}
.order-form input, .order-form select {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 60px;
    font-family: inherit;
    font-size: 0.9rem;
    background: white;
    outline: none;
    transition: 0.2s;
}
.order-form input:focus, .order-form select:focus {
    border-color: #E30613;
}
.order-form button {
    background: #E30613;
    color: white;
    border: none;
    padding: 0 28px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.hero-visual {
    flex: 1;
    text-align: center;
    background: #f3f3f3;
    border-radius: 32px;
    padding: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.box-stack-img {
    max-width: 100%;
    height: auto;
    background: #e9e9e9;
    border-radius: 24px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
}

/* Секция продукции (слайдер/сетка для мобилки) */
.products {
    padding: 60px 0;
    background: white;
}
.products-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.product-card {
    background: #fafafa;
    border-radius: 28px;
    padding: 24px 20px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.product-card:hover {
    transform: translateY(-6px);
}
.product-img-placeholder {
    background: #e2e2e2;
    height: 150px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #888;
}
.product-card h3 {
    margin-bottom: 8px;
}
.product-card p {
    color: #555;
    font-size: 0.9rem;
}

/* Секция НАШИ КЛИЕНТЫ — партнеры с фото из static/partners */
.partners {
    padding: 60px 0;
    background: #fef6f5;
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}
.partner-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 220px;
}
.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.partner-logo {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 8px;
}
.partner-name {
    font-weight: 600;
    color: #1A1A1A;
    margin-top: 8px;
    font-size: 0.95rem;
}
.partner-desc {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* Карта + преимущества */
.map-block {
    padding: 40px 0 60px;
    background: white;
}
.map-placeholder {
    background: #eaeaea;
    height: 420px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #1A1A1A;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23aaa" width="48px" height="48px"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
    background-repeat: no-repeat;
    background-position: center 40%;
    background-size: 60px;
    padding-top: 70px;
    font-weight: 500;
}
.map-text {
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
    color: #E30613;
}

/* Форма заявки (низ) */
.request-section {
    padding: 60px 0;
    background: #f8f8f8;
}
.request-card {
    background: white;
    border-radius: 40px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.form-group {
    margin-bottom: 1.2rem;
}
.request-card input, .request-card select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 60px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
    background: white;
}
.request-card button {
    width: 100%;
    background: #E30613;
    color: white;
    border: none;
    padding: 14px;
    font-weight: bold;
    border-radius: 60px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

/* Подвал (темный) */
.footer {
    background: #1A1A1A;
    color: #ccc;
    padding: 50px 0 30px;
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}
.footer-col {
    flex: 1;
    min-width: 200px;
}
.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.footer-logo-abstract {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #E30613, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.full-cycle {
    font-weight: 600;
    color: white;
    margin: 1rem 0;
}
.footer-contacts p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 25px;
    text-align: center;
    font-size: 0.8rem;
}

/* Медиа запросы — мобильная адаптация */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }
    .header-inner {
        flex-direction: column;
        align-items: center;
    }
    .nav {
        justify-content: center;
        gap: 20px;
    }
    .hero-grid {
        flex-direction: column;
    }
    .order-form {
        flex-direction: column;
    }
    .order-form button {
        padding: 14px;
    }
}

@media (max-width: 640px) {
    /* Мобильная версия: слайдер/сетка продукции — перестраиваем в горизонтальный скролл */
    .products-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 18px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    .product-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
        min-width: 240px;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .request-card {
        padding: 28px 20px;
    }
    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }
    .hero-visual {
        min-height: 220px;
    }
    .map-placeholder {
        height: 250px;
    }
    .btn-contacts {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }
}

.placeholder-icon {
    font-size: 3rem;
    font-weight: 300;
    color: #bdbdbd;
}


/* Для мобильных устройств */
@media (max-width: 768px) {
.map-placeholder {
    padding-bottom: 75%; /* Более высокое соотношение для мобильных */
    border-radius: 24px;
}
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
.map-placeholder {
    padding-bottom: 100%; /* Квадратное соотношение на телефонах */
    border-radius: 20px;
}
}
