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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #000;
}

/* === Демобаннер === */
.demo-banner {
  background: #ff9800;
  color: white;
  text-align: center;
  font-weight: 600;
  padding: 8px 0;
  animation: fadeIn 1s ease-in-out;
}

/* === Шапка === */
header {
  background: rgba(0,0,0,0.9);
  color: #ff8c00;
  padding: 20px 0;
  border-bottom: 3px solid #ff8c00;
  transition: background 0.3s ease;
}
header.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
}
header h1 { font-size: 2.5rem; margin-bottom: 10px; }
header p { color: #fff; margin-bottom: 20px; }

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
nav ul li { margin: 0 15px; }
nav ul li a {
  color: #ff8c00;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}
nav ul li a:hover { color: #ffa733; }

/* === Hero Slider === */
.hero-slider {
  position: relative;
  height: 550px;
  overflow: hidden;
  border-radius: 12px;
  margin: 30px auto;
  max-width: 1000px;
  border: 3px solid #ff8c00;
}
.cb-slideshow { list-style: none; height: 100%; position: relative; }
.cb-slideshow li {
  position: absolute;
  width: 100%; height: 100%;
  opacity: 0; animation: imageAnimation 30s linear infinite;
}
.cb-slideshow li span {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: absolute;
  border-radius: 10px;
}
.cb-slideshow li .slide-content {
  position: absolute;
  bottom: 50px;
  width: 100%;
  text-align: center;
  color: #fff;
  background: rgba(255, 140, 0, 0.85);
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  padding: 20px;
}
.cb-slideshow li .slide-content h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
  from { text-shadow: 0 0 10px #ff8c00; }
  to { text-shadow: 0 0 25px #ffa733; }
}
.cb-slideshow li:nth-child(2){animation-delay:6s;}
.cb-slideshow li:nth-child(3){animation-delay:12s;}
.cb-slideshow li:nth-child(4){animation-delay:18s;}
.cb-slideshow li:nth-child(5){animation-delay:24s;}

@keyframes imageAnimation {
  0%{opacity:0;}8%{opacity:1;transform:scale(1.05);}
  17%{opacity:1;transform:scale(1.1);}
  25%{opacity:0;}100%{opacity:0;}
}

/* === Основное содержимое === */
main { padding: 60px 0; background: #000; }
section { margin-bottom: 50px; opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
section.visible { opacity: 1; transform: translateY(0); }

h2 {
  color: #ff8c00;
  border-bottom: 2px solid #ff8c00;
  margin-bottom: 20px;
  font-size: 2rem;
  padding-bottom: 10px;
}
.technics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
  gap: 25px;
}
.technic-item {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.technic-item img {
  width: 100%; height: 200px; object-fit: cover;
  transition: all 0.3s ease;
}
.technic-item:hover img { transform: scale(1.02); filter: brightness(1.1); }
.technic-item h3 { color: #ff8c00; padding: 10px 15px 5px; font-size: 1.4rem; }
.technic-item p { padding: 0 15px 15px; color: #fff; }

/* === Услуги === */
#services ul { list-style: none; padding-left: 20px; }
#services li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}
#services li::before {
  content: "➤";
  position: absolute;
  left: 0;
  color: #ff8c00;
}

/* === Контакты === */
#contacts p { margin-bottom: 15px; }

/* === Подвал === */
footer.demo-footer {
  background: linear-gradient(to top, #000, #1a1a1a);
  color: #fff;
  text-align: center;
  padding: 25px 0;
  border-top: 3px solid #ff8c00;
}

/* === Кнопка “наверх” === */
#toTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #ff8c00;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  font-weight: bold;
  transition: background 0.3s;
}
#toTop:hover { background: #ffa733; }

/* === Адаптивность === */
@media (max-width:768px){
  header h1{font-size:2rem;}
  nav ul{flex-direction:column;align-items:center;}
  nav li{margin-bottom:10px;}
  .hero-slider{height:380px;}
}
@media (max-width:480px){
  header h1{font-size:1.6rem;}
  .hero-slider{height:320px;}
  .cb-slideshow li .slide-content h3{font-size:1.3rem;}
  .cb-slideshow li .slide-content p{font-size:0.9rem;}
}
@keyframes fadeIn{from{opacity:0;transform:translateY(-10px);}to{opacity:1;transform:translateY(0);}}
