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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
header {
    background-color: #0000FF;
    color: #fff;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотипы */
.header-left img.logo-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.header-left img.logo-img2 {
    width: 150px;
    height: 25px;
    object-fit: cover;
}

/* Контакты */
.header-right a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
}

.header-right a:hover {
    color: #f1c40f;
}

/* Главное меню */
.main-nav {
    background-color: #fff; /* Изменён фон меню */
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; /* Фиксируем меню */
    top: 85px; /* Высоту устанавливаем вручную */
    width: 100%;
    z-index: 999;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.main-nav ul li a {
    display: block;
    color: #0000FF;
    text-decoration: none;
    padding: 0px 20px;
    transition: background 0.3s ease;
}

.main-nav ul li a:hover {
    background-color: #f1c40f;
    color: #2c3e50;
}

/* Основной герой */
.hero-section {
    padding: 250px 0;
    background-color: #fff;
}

.hero-section .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.hero-image img.loader-photo {
    width: 100%;
    height: auto;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-left: 20px;
}

.hero-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.hero-slogan {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 25px;
    font-style: italic;
}

.hero-reasons {
    list-style: none;
    margin-bottom: 30px;
}

.hero-reasons li {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.hero-reasons i {
    color: #27ae60;
    margin-right: 10px;
    font-size: 18px;
}

.btn-primary {
    display: inline-block;
    background-color: #f1c40f;
    color: #2c3e50;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #d4ac0d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

section {
    padding: 250px 0;
}

section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.about-content p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: justify;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.spec-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-5px);
}

.spec-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.spec-card i {
    color: #f1c40f;
    margin-right: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item p {
    padding: 15px;
    text-align: center;
    color: #333;
    font-weight: bold;
}

.contacts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-info i {
    color: #f1c40f;
    margin-right: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.site-footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.site-footer p {
    font-size: 14px;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media screen and (max-width: 900px) {

 .main-nav ul {
        overflow: hidden !important; /* Блокируем выход за границы */
        max-width: 100vw !important;
    }

   body {
        overflow-x: hidden; /* Блокируем горизонтальный скролл */
    }

       .main-nav {
    background-color: #fff; /* Изменён фон меню */
    display: flex;
  flex-direction: column;
    
    position: fixed; /* Фиксируем меню */
    top: 85px; /* Высоту устанавливаем вручную */
    width: 80%;
    z-index: 999;
}
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important; /* block вместо flex */
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    gap: 10px;
}
    header {
        padding: 10px 15px; /* Меньше отступов */
      position: fixed;
        text-align: center;
        gap: 10px;
    }
    
    .header-left img.logo-img2 {
        width: 80px ; /* СЖИМАЕМ логотип */
        height: auto;
    }
    .header-left img.logo-img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    }
    .header-right {
        display: none; /* СПРАВА убираем на мобилках */
    }
    
    .header-left {
        flex: 1; /* Занимает всё место */
        display: flex;
        align-items: center;
        gap: 10px;
    }
}