:root {
    /* Цветовая палитра - промышленная, серьёзная */
    --color-primary: #1a365d; /* Тёмно-синий - основа */
    --color-secondary: #5889D1; /* Синий акцент */
    --color-accent: #5889D1; /* Золотистый акцент */
    --color-dark: #2d3748; /* Тёмно-серый */
    --color-light: #f7fafc; /* Светлый фон */
    --color-gray: #718096; /* Серый текст */
    --color-steel: #4a5568; /* Стальной серый */
    --color-success: #38a169; /* Зелёный */
    
    /* Шрифты */
    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Roboto', sans-serif;

    
    /* Тени */
    --shadow-small: 0 2px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 15px 35px rgba(0, 0, 0, 0.2);
    
    /* Радиусы */
    --radius-small: 6px;
    --radius-medium: 12px;
    --radius-large: 15px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типография */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.accent {
    color: var(--color-secondary);
}

/* Кнопки */
.btn-primary, .btn-secondary, .btn-nav, .btn-submit {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-small);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-primary:hover {
    background-color: #2c4f9b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-nav {
    background-color: var(--color-secondary);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-small);
}

.btn-nav:hover {
    background-color: #2D4F9B;
    color:white;
    transform: translateY(-5px);
}

.btn-submit {
    background-color: var(--color-secondary);
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background-color: #2D4F9B;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Шапка */
.header {
    background-color: white;
    box-shadow: var(--shadow-small);
    top:0px;
    z-index: 1000;
}

/* Верхняя панель с контактами */
.header-main-info {
    flex-flow: column;
    align-items: baseline;
    display: flex;
    gap: 0.5rem;
}
.header-main-info-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
.top-bar {
    box-shadow: 0 10px 9px -7px rgba(0, 0, 0, 0.2);
    position: absolute;
    padding: 0.5rem 0;
    top: 6.5rem;
    left: 0;
    right: 0;
    z-index: 1001;
    background-color: white;
}

.top-bar-content {
    display: flex;
    justify-content: center;
}

.top-contact-info {
    flex-flow: column;
    align-items: baseline;
    display: flex;
    gap: 0.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--color-accent);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: white;
    width: 120px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}


.logo-title {
    margin-left: -1px;
    line-height: 0.8;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--color-primary);
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--color-gray);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Герой секция */
.hero {
    padding: 5rem 0;
    background: linear-gradient(273deg, rgb(58 91 139 / 15%), #ffffff);
    position: relative;
    overflow: hidden;
}
.contact-map {
    border-radius: 40px;
    position: relative;
}
.contact-map::before {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 40px;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/map.png');
    background-size: cover; /* или contain, в зависимости от задачи */
    opacity: 0.8; /* Здесь задается прозрачность от 0 до 1 */
    z-index: -1; /* Помещает фон под контент элемента */
    pointer-events: none; /* Чтобы псевдоэлемент не перехватывал клики */
}
.hero::before {
    /* content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: var(--color-primary);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(100px, -100px); */
    content: "";
    transform: scaleX(-1);
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/background.png');
    background-size: contain; /* или contain, в зависимости от задачи */
    opacity: 0.3; /* Здесь задается прозрачность от 0 до 1 */
    z-index: -1; /* Помещает фон под контент элемента */
    pointer-events: none; /* Чтобы псевдоэлемент не перехватывал клики */
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 0 0 300px;
}

.factory-icon {
    font-size: 15rem;
    color: var(--color-primary);
    opacity: 0.8;
    text-align: center;
}

/* Секции */
section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-secondary);
    margin: 1rem auto;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* О заводе */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    text-align: center;
    transition: transform 0.3s ease;
}
.slide-card {
        transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.about-icon {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.about-details {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.details-text {
    flex: 1;
}

.details-image {
    flex: 0 0 300px;
}

.industrial-image {
    font-size: 10rem;
    color: var(--color-primary);
    opacity: 0.7;
    text-align: center;
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
}

.features-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.features-list i {
    color: var(--color-success);
    margin-right: 10px;
}

/* Примеры работ */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.work-card {
    background: white;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.work-image {
    height: 250px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
}

.work-content {
    padding: 0.8rem;
}

.work-tag {
display: inline-block;
    background-color: #5889d1;
    color: white;
    padding: 2px 5px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-top: 0.2rem;
}

/* Услуги */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-secondary);
    opacity: 0.7;
    flex: 0 0 60px;
}

.service-content {
    flex: 1;
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    background-color: var(--color-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.contact-details a {
    color: var(--color-secondary);
}

.contact-details a:hover {
    text-decoration: underline;
}

.map-placeholder {
    color: var(--color-primary);
    padding: 3rem;
    border-radius: var(--radius-medium);

}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* Форма */
.request-form {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-small);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

.form-note {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #edf2f7;
    border-radius: var(--radius-small);
    color: var(--color-gray);
    text-align: center;
}

.form-note i {
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

/* Футер */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.footer-logo .logo-title {
    color: white;
}

.footer-logo .logo-subtitle {
    color: #cbd5e0;
}

.footer-logo p {
    margin-top: 1rem;
    color: #cbd5e0;
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #cbd5e0;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.footer-contact i {
    color: var(--color-accent);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-secondary);
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid #4a5568;
    text-align: center;
    color: #cbd5e0;
    font-size: 0.5rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Наши принципы */
.principles {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0f1a2e 100%);
    color: white;
    padding: 5rem 0;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.principle-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-medium);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.principle-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.principle-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.principle-quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-medium);
    border-left: 4px solid var(--color-secondary);
}

.principle-quote blockquote {
    margin: 0;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
}

.principle-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}
    .slider-container span {
        font-size: 2.5rem;
        filter: drop-shadow(2px 4px 6px black);
    }
    .map-placeholderpc {
        display: none;
    }

/* Адаптивность */
@media (max-width: 992px) {
    .contacts-grid {
        gap: 1rem;
    }
    .principle-card, .about-card {
        padding: 1rem;
    }
    .map-placeholderpc {
        margin-top: 2rem;
        display: flex;
    }
    
    .map-placeholder {
        display: none;
    }
    .hero-image {
        display: none;
    }
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.8rem;;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .about-details {
        flex-direction: column;
        gap: 2rem;
    }
    
    .details-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .contact-map {
        width: 100%;
        height: 360px;
    }
    
    .header {
        position: sticky;
        font-size:12px;
    }
    .logo-text .sub {
        display: none;
    }
    .logo-subtitle {
        font-size: 0.7rem;
    }
    .logo-icon {
        width: 75px;
    }
    .slider-container span {
        font-size: 1rem;

    }
    .nav-links {
        display: none;
    }
    .header-main-info {
        width:33%
    }
    .logo-title {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .factory-icon {
        font-size: 10rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Адаптация верхней панели с контактами */
    .top-bar {
        padding: 0.3rem 0;
    }
    
    .top-contact-info {
        gap: 0.5rem;
        margin-right: 1rem;
    }
    
    .contact-link span {
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .request-form {
        padding: 1.5rem;
    }
    
    /* Адаптация верхней панели с контактами для мобильных */
    .header-main-info {
        display: none;
    }
    
    .contact-link {
        gap: 0.3rem;
    }
    
    .top-bar {
        padding: 0.2rem 0;
    }
}
.fixed {
    position: fixed;
    top: 0px;
}

.house-image {
    width: 100%;
    max-width: 1160px;
    margin: 0rem auto 4rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 5px 15px #1f427d;
    position: relative;
    background: #97bdf1;
    }
    .slider-container {
        font-weight: 700;
        line-height: 1.2;
        font-family: var(--font-heading);
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 5; /* широкий формат, как вы просили */
        min-height: 500px;
        max-height: 550px;
        background: #e6edf6;
    }
    .slider-track {
        display: flex;
        width: 100%;
        height: 100%;
        transition: transform 0.5s ease-in-out;
        will-change: transform;
    }
    .slide {
        flex: 0 0 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        font-weight: 500;
        color: #1e2a3a;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        /* Для демонстрации используем градиенты + эмодзи/иконки, 
            но вы можете заменить на реальные картинки */
    }
    /* Стрелки навигации */
    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(255,255,255,0.85);
        border: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        font-size: 1.8rem;
        color: #1e3a6f;
        cursor: pointer;
        transition: 0.2s;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(4px);
    }
    .slider-btn:hover {
        background: #ffffff;
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
        transform: translateY(-50%) scale(1.05);
    }
    .slider-btn.prev { left: 16px; }
    .slider-btn.next { right: 16px; }
    /* Индикаторы (точки) */
    .slider-dots {
        position: absolute;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 12px;
        z-index: 10;
    }
    .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255,255,255,0.6);
        border: 2px solid rgba(0,0,0,0.1);
        cursor: pointer;
        transition: 0.25s;
    }
    .dot.active {
    background: #1e3a6fa1;
    border-color: #1e3a6f54;
    transform: scale(1.2);
    }
    /* Адаптив */
    @media (max-width: 768px) {
        .house-image {
            margin: 0rem auto 2rem;
        }
        .slider-container { 
            aspect-ratio: 16 / 6;
            min-height: 230px;
         }
        .slider-btn { 
            width: 38px;
            height: 38px;
            font-size: 1.4rem;
         }
        .slider-btn.prev { 
            left: 8px; 
        }
        .slider-btn.next { 
            right: 8px; 
        }
        .dot { 
            width: 10px;
            height: 10px;
            gap: 8px; 
            }
    }
    @media (max-width: 480px) {
        .house-image {
            height: 250px;
        }
        .slider-container { 
            aspect-ratio: 16 / 7; 
            height: 100%; 
        }
    }