/* ===== RESET И БАЗОВЫЕ СТИЛИ ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Arial', sans-serif; line-height: 1.6; color: #333; background-color: #ffffff; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== ОБЩИЕ СЕКЦИИ ===== */
.section { padding: 60px 0; position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.section_inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section_inner.big { max-width: 1400px; }
.dark::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.noise { position: absolute; inset: 0; background-size: cover; opacity: .1; }

/* ===== ТИПОГРАФИЯ ===== */
.title { font-size: 2.5rem; text-align: center; margin-bottom: 20px; color: #2c3e50; font-weight: bold; line-height: 1.2; }
.sub_title { font-size: 1.2rem; text-align: center; margin-bottom: 30px; color: #555; }
.title.hidden, .sub_title.hidden { display: none; }

/* ===== СЕТКА ===== */
.arr1 { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 0 -10px; }
.col_3, .col_4 { flex: 1; min-width: 250px; max-width: 400px; padding: 0 10px; margin-bottom: 30px; }
.col_3 { flex: 0 0 calc(33.333% - 20px); }
.col_4 { flex: 0 0 calc(25% - 20px); }
.last { margin-right: 0; }

/* ===== КАРТОЧКИ ===== */
.border { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.shadow { box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform .3s ease, box-shadow .3s ease; }
.shadow:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); }

/* ===== ИЗОБРАЖЕНИЯ В КАРТОЧКАХ ===== */
.service-image, .image { position: relative; width: 100%; height: 250px; overflow: hidden; border-radius: 8px; }
.service-image img, .image img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .3s ease; }
.service-image:hover img, .image:hover img { transform: scale(1.05); }

/* ===== УСЛУГИ ===== */
.service-item { text-align: center; margin-bottom: 30px; }
.service-title { font-size: 1.3rem; font-weight: bold; margin-top: 15px; color: #2c3e50; text-align: center; }
.overlay_image_box { display: none; }

/* ===== МЕНЮ ===== */
.menu1 ul { display: flex; justify-content: center; flex-wrap: wrap; }
.menu1 li { margin: 0 15px; }
.menu1 a { color: #333; font-weight: bold; padding: 10px 15px; border-radius: 5px; transition: background-color .3s ease; }
.menu1 a:hover { background-color: #f0f0f0; }
.menu-toogler { display: none; cursor: pointer; padding: 10px 15px; background: #f0f0f0; text-align: center; border: 1px solid #e5e5e5; border-radius: 6px; }

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantage-card { padding: 20px; text-align: center; height: 100%; position: relative; overflow: hidden; }
.num1, .num2, .num3, .num4 { font-size: 3rem; font-weight: bold; color: #FF6347; float: left; margin-right: 15px; line-height: 1; }
.txt1, .txt2, .txt3, .txt4 { overflow: hidden; padding: 10px 0; text-align: left; }

/* ===== БРЕНДЫ ===== */
.brands-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.brand-logo { width: 120px; height: 80px; background-size: contain !important; background-position: center !important; background-repeat: no-repeat !important; margin: 10px; display: inline-block; }

/* ===== ФУТЕР ===== */
footer { background: #3D3D3D; color: #fff; }
.logo_img { text-align: center; margin-bottom: 20px; }
.footer-contacts { display: flex; justify-content: space-around; flex-wrap: wrap; margin-bottom: 30px; }
.contact-item { text-align: center; margin: 10px; flex: 1; min-width: 200px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; background: #fff; border-radius: 4px; border: 1px solid #eee; }
.contact-item i { color: #FF6347; }
.contact-item strong { display: block; margin-bottom: 0; color: #FF6347; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.footer-nav a { color: #ccc; transition: color .3s ease; }
.footer-nav a:hover { color: #FF6347; }
.policy2 { cursor: pointer; color: #FF6347; margin-top: 10px; text-align: center; background: none; border: 0; }
.policy2_popup { display: none; background: #fff; color: #333; padding: 20px; border-radius: 5px; margin-top: 20px; }
.policy2_title { font-size: 1.3rem; font-weight: bold; margin-bottom: 10px; }
#copyright { background: #2a2a2a; padding: 20px 0; text-align: center; }
.copyright-text { color: #999; }

/* ===== CTA ===== */
.phone-link { font-weight: bold; color: #FF6347; }

/* ===== УТИЛИТЫ ===== */
.clear { clear: both; }
.clear480 { display: none; }
.hide_line { border: none !important; }
.text-center { text-align: center; }
.mode_2 .arr1 { justify-content: space-around; }

/* ===== АНИМАЦИИ ПО СКРОЛЛУ ===== */
.fade-in { opacity: 1 !important; transform: translateY(0) !important; }

/* ===== ФОРМА ===== */
.contact-form-container { display: flex; flex-wrap: wrap; gap: 40px; max-width: 1000px; margin: 0 auto; }
.contact-form { flex: 1; min-width: 300px; }
.contact-info-side { flex: 0 0 300px; background: #f8f9fa; padding: 30px; border-radius: 8px; border: 1px solid #ddd; height: fit-content; }
.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 20px; flex: 1; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #2c3e50; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid #e9ecef; border-radius: 6px; font-size: 1rem; font-family: inherit; transition: all .3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #FF6347; box-shadow: 0 0 0 3px rgba(255,99,71,.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.checkbox-group { display: flex; align-items: center; gap: 10px; margin: 10px 0 20px; }
.checkbox-group input { width: auto; transform: scale(1.1); }
.submit-btn { background: linear-gradient(135deg,#FF6347,#e5533d); color: #fff; border: none; padding: 16px 30px; border-radius: 6px; font-size: 1.1rem; font-weight: 600; cursor: pointer; width: 100%; transition: all .3s ease; font-family: inherit; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,99,71,.3); }
.submit-btn:active { transform: translateY(0); }
.form-message { margin-top: 20px; padding: 15px; border-radius: 6px; text-align: center; display: none; font-weight: 500; }
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
  .title { font-size: 2rem; }
  .sub_title { font-size: 1rem; }
  .col_3, .col_4 { flex: 0 0 100% !important; max-width: 100% !important; padding: 0 5px; }
  .arr1 { margin: 0 -5px; }
  .menu1 ul { flex-direction: column; align-items: center; }
  .menu1 li { margin: 5px 0; }
  .clear480 { display: block; clear: both; }
  .menu-toogler { display: inline-block; }
  .menu1 { display: none; }
  .menu1.active { display: block; }
  .footer-contacts { flex-direction: column; align-items: center; }
  .contact-item { min-width: 100%; margin: 10px 0; }
  .service-image, .image { height: 200px; }
  .brand-logo { width: 100px; height: 60px; }
  .service-title { font-size: 1.2rem; }
  .contact-form-container { flex-direction: column; gap: 30px; }
  .contact-info-side { order: -1; flex: 1; }
  .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .section_inner { padding: 0 15px; }
  .title { font-size: 1.8rem; }
  .service-image, .image { height: 180px; }
  .brands-row { gap: 10px; }
  .brand-logo { width: 80px; height: 50px; margin: 5px; }
  .service-title { font-size: 1.1rem; }
}

/* Мобильное меню — соседнее правило */
.menu-toogler.active + .menu1 { display: block; }