:root {
  --primary-color: #000;
  --secondary-color: #86868b;
  --accent-color: #0071e3;
  --background-color: #fff;
  --section-spacing: 120px;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-drone {
  margin-bottom: 20px;
}

.preloader p {
  color: var(--accent-color);
  font-size: 18px;
  font-weight: 500;
}

@keyframes rotatePropeller {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.preloader .propeller {
  transform-origin: center;
  animation: rotatePropeller 1s linear infinite;
}

.preloader .prop2 {
  animation-delay: 0.1s;
}

.preloader .prop3 {
  animation-delay: 0.2s;
}

.preloader .prop4 {
  animation-delay: 0.3s;
}

.preloader .drone-body {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  color: var(--primary-color);
  background-color: var(--background-color);
}

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

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 40px;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 24px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
  background-color: rgba(0, 113, 227, 0.1);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
  padding-top: 80px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 24px;
  margin-bottom: 40px;
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  padding: 16px 32px;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 17px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #0077ed;
}

/* Services Section */
.services {
  padding: var(--section-spacing) 0;
}

h2 {
  font-size: 48px;
  text-align: center;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  text-align: center;
  padding: 40px;
  border-radius: 20px;
  background: #f5f5f7;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

/* Portfolio Section */
.portfolio {
  padding: var(--section-spacing) 0;
  background-color: #f5f5f7;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
}

.portfolio-item-info h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.portfolio-item-info p {
  font-size: 16px;
  opacity: 0.8;
}

/* Equipment Section */
.equipment {
  padding: var(--section-spacing) 0;
}

.equipment-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.drone-card {
  text-align: center;
  padding: 20px;
}

.drone-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
}

.drone-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Contact Section */
.contact {
  padding: var(--section-spacing) 0;
  background-color: #f5f5f7;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  background-color: white;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.submit-button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #0077ed;
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background-color: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
  background-color: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-button svg {
  width: 24px;
  height: 24px;
}

/* Footer */
.footer {
  padding: 60px 0 30px;
  background-color: #f5f5f7;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: white;
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: currentColor;
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-4px);
}

.social-links a:hover::before {
  opacity: 0.15;
}

.social-links a svg {
  width: 36px;
  height: 36px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Специфичные стили для каждой соцсети */
.social-links a.telegram {
  color: #0088cc;
  background: rgba(0, 136, 204, 0.1);
}

.social-links a.telegram:hover {
  color: white;
  background: #0088cc;
  box-shadow: 0 8px 16px rgba(0, 136, 204, 0.3);
}

.social-links a.vk {
  color: #4a76a8;
  background: rgba(74, 118, 168, 0.1);
}

.social-links a.vk:hover {
  color: white;
  background: #4a76a8;
  box-shadow: 0 8px 16px rgba(74, 118, 168, 0.3);
}

.social-links a.instagram {
  color: #e4405f;
  background: rgba(228, 64, 95, 0.1);
}

.social-links a.instagram:hover {
  color: white;
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  box-shadow: 0 8px 16px rgba(228, 64, 95, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #d2d2d7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero .subtitle {
    font-size: 20px;
  }

  h2 {
    font-size: 36px;
  }

  .nav-links {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .main-nav .container {
    height: 60px;
  }

  .nav-links a {
    font-size: 32px;
    padding: 16px 32px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.drone-card,
.portfolio-item {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  background: white;
  width: 90%;
  max-width: 800px;
  margin: auto;
  padding: 40px;
  border-radius: 20px;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  top: 50%;
  left: 0;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-header {
  margin-bottom: 30px;
}

.modal-header h3 {
  font-size: 32px;
  margin-bottom: 10px;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.modal-body img {
  width: 100%;
  border-radius: 10px;
}

.modal-description {
  font-size: 16px;
  line-height: 1.6;
}

.modal-features {
  margin-top: 20px;
}

.modal-features h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.modal-features ul {
  list-style: none;
  padding: 0;
}

.modal-features li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.modal-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span {
  background-color: white;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links.active li:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-links a {
    font-size: 24px;
    color: white;
    font-weight: 600;
  }

  .nav-links a:hover {
    color: var(--accent-color);
  }
}
