@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Oswald:wght@400;500;600;700&display=swap');
*{margin:0;padding:0;box-sizing:border-box}
:root{--red:#E30613;--dark:#0F0F0F;--mid:#1C1C1C;--gray:#888;--light:#F5F5F5;--white:#FFFFFF}
body{font-family:'Montserrat',sans-serif;background:var(--white);color:var(--dark);overflow-x:hidden}
.wrap{max-width:1200px;margin:0 auto;padding:0 2rem}

/* =========================================
   1. НАВИГАЦИЯ (DESKTOP)
   ========================================= */
nav{position:sticky;top:0;z-index:100;background:rgba(255,255,255,0.97);backdrop-filter:blur(8px);border-bottom:1px solid #e0e0e0}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:80px}
.logo{display:flex;align-items:center;text-decoration:none}
.logo img {height: 56px; width: auto; display: block;}
.nav-links{display:flex;gap:2rem;list-style:none}
.nav-links a{font-size:0.85rem;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;color:var(--dark);text-decoration:none;transition:color .2s}
.nav-links a:hover{color:var(--red)}

/* Выпадающее меню */
.dropdown { position: relative; display: flex; align-items: center; }
.dropdown > a { display: flex; align-items: center; gap: 5px; }
.dropdown-menu {position: absolute; top: 100%; left: 0; background: var(--white); min-width: 320px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); opacity: 0; visibility: hidden; transition: all .2s; z-index: 200; list-style: none; padding: 10px 0; border: 1px solid #eee; border-top: 2px solid var(--red);}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { position: relative; }
.dropdown-menu a { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; font-size: 0.85rem; text-transform: none; font-weight: 500; color: var(--dark); border-bottom: 1px solid #f9f9f9; transition: background .2s, color .2s;}
.dropdown-menu a:hover { background: #fdfdfd; color: var(--red); }
.dropdown-menu li:last-child a { border-bottom: none; }
.arrow-right { font-size: 10px; color: #ccc; transition: color .2s; }
.dropdown-menu a:hover .arrow-right { color: var(--red); }

/* Подменю */
.dropdown-submenu .submenu-flyout {position: absolute; top: -2px; left: 100%; background: var(--white); min-width: 280px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); opacity: 0; visibility: hidden; transition: all .2s; list-style: none; padding: 10px 0; border: 1px solid #eee; border-top: 2px solid var(--red);}
.dropdown-submenu:hover .submenu-flyout { opacity: 1; visibility: visible; transform: translateX(0); }

/* Языки и бургер */
.lang-switch {display: flex; align-items: center; gap: 8px; margin-left: 1rem; padding-left: 1.5rem; border-left: 1px solid #ddd;}
.lang-switch a {font-family: 'Oswald', sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--gray); text-decoration: none; transition: color 0.2s; letter-spacing: 0.05em;}
.lang-switch a.active {color: var(--red); pointer-events: none;}
.lang-switch a:hover {color: var(--dark);}
.lang-switch span {color: #ccc; font-size: 0.8rem;}
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle span { width: 30px; height: 3px; background: var(--dark); transition: 0.3s; }


/* =========================================
   2. ГЛОБАЛЬНЫЕ КНОПКИ
   ========================================= */
button.btn-primary, input[type="submit"].btn-primary, .btn-primary {
  background: var(--red); color: var(--white); border: none; padding: 14px 32px;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: transform .15s, opacity .15s, box-shadow .15s; display: inline-block; text-decoration: none; text-align: center; box-sizing: border-box;
}
button.btn-primary:hover, input[type="submit"].btn-primary:hover, .btn-primary:hover {
  opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}
.btn-outline {
  background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.3); padding: 14px 32px;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: all .2s; display: inline-block; text-decoration: none; text-align: center;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-outline-dark {
  background: transparent; color: var(--dark); border: 2px solid var(--dark); padding: 14px 32px;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: all .2s; display: block; width: 100%; text-decoration: none; text-align: center;
}
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.nav-cta{background:var(--red);color:var(--white);border:none;padding:10px 24px;font-family:'Oswald',sans-serif;font-weight:700;font-size:0.9rem;letter-spacing:0.12em;text-transform:uppercase;cursor:pointer;transition:transform .15s,opacity .15s}
.nav-cta:hover{opacity:.9;transform:translateY(-1px)}


/* =========================================
   3. HERO СЕКЦИЯ И КАРУСЕЛЬ
   ========================================= */
.hero{background:var(--dark);color:var(--white);padding: 3rem 0 5rem;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;right:-10%;top:-20%;width:70%;height:140%;background:repeating-linear-gradient(45deg,transparent,transparent 2px,rgba(255,255,255,0.015) 2px,rgba(255,255,255,0.015) 4px);pointer-events:none}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:center}
.hero h1{font-family:'Oswald',sans-serif;font-size:3.5rem;font-weight:900;line-height:1.05;letter-spacing:-0.01em;text-transform:uppercase;margin-bottom:1.5rem}
.hero h1 em{color:var(--red);font-style:normal;display:inline;}
.hero p{font-size:1.05rem;line-height:1.7;color:#aaa;max-width:440px;}

.hero-carousel { background: var(--white); border-radius: 8px; padding: 2.5rem 3rem 2rem; position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.h-slide { display: none; text-align: center; animation: fadeSlide 0.5s ease-in-out; }
.h-slide.active { display: block; }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.h-slide img { max-width: 100%; height: 220px; object-fit: contain; margin-bottom: 1.5rem; }
.h-slide-info h3 { font-family: 'Oswald', sans-serif; font-size: 1.8rem; color: var(--dark); margin-bottom: 10px; text-transform: uppercase;}
.h-stats-mini { display: flex; justify-content: center; gap: 1.5rem; font-size: 0.9rem; color: #666; margin-bottom: 1rem; }
.h-stats-mini span { color: var(--red); font-weight: 600; }
.comp-label { display: inline-block; background: var(--red); color: var(--white); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 0.05em; }
.carousel-arrow { position: absolute; top: 40%; transform: translateY(-50%); background: rgba(0,0,0,0.05); color: var(--dark); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: background 0.2s; z-index: 10; display:flex; align-items:center; justify-content:center;}
.carousel-arrow:hover { background: rgba(0,0,0,0.1); }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
.carousel-dots { text-align: center; margin-top: 1.5rem; margin-bottom: 1rem; }
.carousel-dots .dot { display: inline-block; width: 10px; height: 10px; background: #ddd; margin: 0 5px; border-radius: 50%; cursor: pointer; transition: background 0.3s; }
.carousel-dots .dot.active { background: var(--red); }


/* =========================================
   4. КОНТЕНТНЫЕ БЛОКИ (STATS, PRODUCTS, ABOUT, QUOTE)
   ========================================= */
.section{padding:5rem 0}
.section-header{margin-bottom:3rem}
.section-eyebrow{font-size:0.75rem;font-weight:600;letter-spacing:0.2em;text-transform:uppercase;color:var(--red);margin-bottom:0.75rem;}
.section-title{font-family:'Oswald',sans-serif;font-weight:900;font-size:3rem;text-transform:uppercase;line-height:1.05;color:var(--dark)}

.stats{background:var(--red);padding:4rem 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.stat{text-align:center;padding:1rem;border-right:1px solid rgba(255,255,255,0.2);color:var(--white)}
.stat:last-child{border-right:none}
.stat-num{font-family:'Oswald',sans-serif;font-weight:900;font-size:3.5rem;line-height:1;display:block}
.stat-lbl{font-size:0.75rem;letter-spacing:0.12em;text-transform:uppercase;opacity:.8;margin-top:6px}

.products{background:var(--light)}
.tabs{display:flex;gap:0;margin-bottom:2.5rem;border-bottom:2px solid #ddd;overflow-x:auto}
.tab{padding:10px 20px;font-family:'Oswald',sans-serif;font-weight:700;font-size:0.85rem;letter-spacing:0.1em;text-transform:uppercase;cursor:pointer;border:none;background:transparent;color:#888;border-bottom:2px solid transparent;margin-bottom:-2px;}
.tab.active{color:var(--red);border-bottom-color:var(--red)}
.prod-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.prod-card{background:var(--white);border:1px solid #e0e0e0;padding:1.5rem;cursor:pointer;transition:all .2s;position:relative;overflow:hidden; text-decoration:none; display:block; color:inherit;}
.prod-card::before{content:'';position:absolute;top:0;left:0;width:3px;height:0;background:var(--red);transition:height .3s}
.prod-card:hover::before{height:100%}
.prod-card:hover{transform:translateY(-3px);box-shadow:0 12px 32px rgba(0,0,0,0.1)}
.prod-img{width:100%;aspect-ratio:4/3;background:#f0f0f0;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;position:relative;}
.prod-img img{max-width:80%; max-height:80%; object-fit:contain;}
.prod-badge{position:absolute;top:10px;right:10px;background:var(--red);color:var(--white);font-size:0.65rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;padding:3px 8px}
.prod-name{font-family:'Oswald',sans-serif;font-weight:700;font-size:1.15rem;text-transform:uppercase;letter-spacing:0.03em;color:var(--dark);margin-bottom:6px}
.prod-desc{font-size:0.82rem;color:#666;line-height:1.5;margin-bottom:1rem}
.prod-link{font-family:'Oswald',sans-serif;font-weight:700;font-size:0.8rem;letter-spacing:0.1em;text-transform:uppercase;color:var(--red);}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text p { font-size: 1.05rem; line-height: 1.8; color: #555; margin-bottom: 1.5rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.why-item { background: var(--light); padding: 2rem; text-align: center; border-radius: 8px; transition: transform 0.3s; }
.why-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.why-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.why-item h4 { font-family: 'Oswald', sans-serif; font-size: 1.4rem; color: var(--dark); margin-bottom: 10px; }
.why-item p { font-size: 0.9rem; color: #666; line-height: 1.5; }

.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.quote-info p { font-size: 1.1rem; line-height: 1.7; color: #555; }


/* =========================================
   5. ФУТЕР
   ========================================= */
footer { background: #0a0a0a; color: #888; padding: 4rem 0 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; }
.footer-logo img { height: 45px; margin-bottom: 1.5rem; display: block; filter: brightness(0) invert(1); }
.footer-col p { line-height: 1.6; margin-bottom: 1rem; }
.footer-link-more { color: var(--red); text-decoration: none; font-weight: 600; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.2s; }
.footer-link-more:hover { color: var(--white); }
.footer-col h4 { font-family: 'Oswald', sans-serif; font-size: 1.2rem; color: var(--white); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: #888; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-contacts li { display: flex; gap: 10px; line-height: 1.5; color: #aaa;}
.footer-contacts li a { color: #aaa; text-decoration: none; transition: color 0.2s; }
.footer-contacts li a:hover { color: var(--white); }
.footer-contacts strong { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #666; }


/* =========================================
   6. АДАПТИВНОСТЬ (ЕДИНЫЙ БЛОК ДЛЯ МОБИЛОК)
   ========================================= */

@media (max-width: 960px) {
  .wrap { padding: 0 1.5rem; }

  /* Навигация */
  .menu-toggle { display: flex; z-index: 110; }
  .nav-links {
    display: none; flex-direction: column; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px); padding: 6rem 2rem 2rem; gap: 1.5rem;
    overflow-y: auto; box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  }
  .nav-links.active { display: flex; }
  .dropdown { flex-direction: column; align-items: flex-start; width: 100%; }
  .dropdown-menu { position: relative; top: 0; left: 0; width: 100%; min-width: 100%; box-shadow: none; border: none; border-left: 2px solid var(--red); padding: 0 0 0 1rem; margin-top: 0.5rem; display: none; }
  .dropdown:hover .dropdown-menu { display: block; }
  .dropdown-submenu .submenu-flyout { position: relative; left: 0; top: 0; box-shadow: none; border: none; border-left: 2px solid var(--red); padding-left: 1rem; display: none; }
  .dropdown-submenu:hover .submenu-flyout { display: block; }
  .nav-right-actions { display: none !important; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero h1 { font-size: 2.8rem !important; }
  .hero p { margin: 0 auto; }
  .hero-btns { justify-content: center; }
  
  /* Сетки */
  .about-grid, .quote-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-text { text-align: center; }
  .prod-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem !important; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero .btn-primary, .hero .btn-outline { width: 100%; display: block; margin: 0; }
  
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 1.5rem 0; }
  .stat:last-child { border-bottom: none; }

  .tabs { display: flex; overflow-x: auto; white-space: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .tab { padding: 8px 16px; font-size: 0.8rem; }

  .prod-grid, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .quote-form-wrapper form div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 1.2rem !important; }
  
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
}
