/* ====== БАЗОВЫЕ СТИЛИ ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.5;
  background-color: #fff;
  color: #333;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  margin-bottom: 10px;
}

/* ====== HEADER С ВИДЕО ====== */
header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,102,0,0.3), rgba(0,0,0,0.6));
  z-index: 0;
}

video#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.5);
  animation: slowZoom 20s infinite alternate ease-in-out;
}

@keyframes slowZoom {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(1.05); }
}

.header-content {
  z-index: 1;
  max-width: 1000px;
}

.header-content h1 {
  font-size: 100px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.btn {
  margin-top: 20px;
  padding: 12px 24px;
  background-color: rgb(255, 102, 0);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
  transform: skewX(-20deg);
}

.btn:hover::before {
  animation: shine 0.75s;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

.btn:hover {
  background-color: #bd6014;
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 100px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 30px;
  background: none;
}

.nav-links a {
  font-size: 18px;
  color: white;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: rgb(255, 102, 0);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* ====== SERVICES ====== */
.services {
  padding: 60px 20px;
  background-color: #000;
  text-align: center;
}

.services h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #fff;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-card {
  background: #111;
  border-radius: 16px;
  padding: 20px;
  max-width: 500px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(5px);
}

.service-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #fff;
}

.service-card p {
  font-size: 16px;
  color: #ccc;
}

/* ====== INFO SECTION ====== */
.info-section {
  padding: 60px 20px;
  background-color: #000;
}

.info-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.info-text {
  flex: 1;
  min-width: 280px;
}

.info-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #fff;
}

.info-text p {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 25px;
}

.info-text .btn {
  background-color: #ff5e00;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.info-text .btn:hover {
  background-color: #bd6014;
}

.info-image {
  flex: 1;
  min-width: 280px;
}

.info-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* ====== CONTACT ====== */
.contact-section {
  background-color: #111;
  padding: 80px 20px;
  color: white;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-container h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  background-color: #222;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  outline: none;
  resize: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff5e00;
}

.contact-form .btn {
  padding: 14px;
}

/* ====== FOOTER ====== */
.footer {
  background-color: #111;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-content h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.footer-content p {
  margin: 8px 0;
  font-size: 16px;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.footer-icons .icon svg {
  transition: transform 0.3s, filter 0.3s;
  filter: brightness(0) invert(1);
}

.footer-icons .icon:hover svg {
  transform: scale(1.2);
  filter: brightness(0) invert(0.6);
}

/* ====== MODAL ====== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  color: white;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ====== АДАПТИВ ====== */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    background-color: rgba(0, 0, 0, 0.9);
    padding-left: 0;
    margin-top: 10px;
    display: none;
  }

  .nav-links.open {
    max-height: 500px;
    opacity: 1;
    display: flex;
  }

  .nav-links li {
    padding: 10px 0;
    text-align: center;
  }

  .modal-content {
    width: 90%;
  }

  .header-content h1 {
    font-size: 48px;
  }
}
