/* ================================
   Windmill Aviation Solutions
   Dark Corporate Theme with Animations
   ================================ */

:root {
  /* RAL 5004 – Black Blue (main background) */
  --bg: #18171c;
  --panel: #0f141a;

  /* Text */
  --text: #eaf2fb;
  --muted: #98a2ac;

  /* RAL 5015 – Sky Blue (main accent ~30%) */
  --accent: #0077b6;

  /* RAL 3024 – Luminous Red (highlight 5–10%) */
  --accent-2: #ff2d21;

  --glass: rgba(255,255,255,0.04);
  --radius: 10px;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(0,119,182,0.35), transparent 55%),
    radial-gradient(circle at bottom, rgba(255,45,33,0.28), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ================================
   HEADER
   ================================ */

.header {
  position: sticky;
  top: 0;
  background: rgba(10,12,18,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 1000;
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: inherit;
}


.brand-name {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.35px;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.95rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  margin: 4px 0;
  border-radius: 2px;
}

/* ================================
   HERO
   ================================ */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh; /* ← ВАЖНО: растягивает фон на высоту экрана */
  display: flex;
  align-items: center;
}


.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(5,10,15,0.45), rgba(5,10,15,0.75)),
    url('../assets/engine-hero.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.1s linear;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}



@keyframes heroGlow {
  0% {
    transform: translate3d(0,0,0);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(0,-10px,0);
    opacity: 1;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
  padding: 160px 0 120px; 
  position: relative;
  z-index: 2;
}



.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-content h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 14px;
}

.lead {
  color: var(--muted);
  max-width: 720px;
  font-size: 1.02rem;
  margin-bottom: 22px;
}

/* Text glow for better readability on dark hero image */
.hero-content h1 {
  text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.hero-content p,
.hero-kicker {
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-stat {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-stat-value {
  font-size: 0.98rem;
}

/* BUTTONS & PILLS */

.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #071423;
  border: 0;
}

.btn-outline {
  border-color: rgba(255,255,255,0.32);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--muted);
}

.pill-blue {
  border-color: var(--accent);
  color: var(--accent);
}

.pill-red {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.pill-outline {
  border-style: dashed;
}

/* ================================
   SECTIONS GENERAL
   ================================ */

.section {
  padding: 64px 0;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 30px;
  align-items: flex-start;
}

.about-text h2 {
  margin-bottom: 12px;
}

.features {
  list-style: none;
  color: var(--muted);
  margin-top: 12px;
}

.features li::before {
  content: "• ";
  color: var(--accent);
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--glass);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.05);
}

/* ================================
   NEWS
   ================================ */

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-item {
  background: var(--glass);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.news-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,119,182,0.25), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.news-item:hover::before {
  opacity: 1;
}

.news-item h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.news-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.news-date {
  opacity: 0.8;
}

.news-tag {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
}

.news-tag-red {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.news-hint {
  margin-top: 16px;
  font-size: 0.85rem;
}

/* ================================
   SERVICES PAGE
   ================================ */

.page-hero h1 {
  margin-bottom: 10px;
}

.services-list .service {
  background: var(--glass);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 20px;
}

.services-list .service h2 {
  margin-bottom: 10px;
  color: var(--accent);
}

.services-list .service p {
  color: var(--muted);
  margin-bottom: 8px;
}

.services-list .service ul {
  margin-left: 18px;
  color: var(--muted);
}

/* ================================
   CONTACT
   ================================ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: flex-start;
}

.contact-info h2 {
  margin-bottom: 10px;
}

.contact-info p a {
  color: var(--accent);
  text-decoration: none;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.4);
  color: var(--text);
  margin-bottom: 10px;
}

.form-result {
  margin-top: 8px;
  font-size: 0.9rem;
}

/* ================================
   FOOTER
   ================================ */

.footer {
  background: rgba(0,0,0,0.6);
  padding: 18px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 14px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

/* ================================
   REVEAL ANIMATION
   ================================ */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-side {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
    position: absolute;
    right: 20px;
    top: 60px;
    flex-direction: column;
    background: rgba(9,11,18,0.98);
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    gap: 10px;
  }

  .nav.open {
    display: flex;
  }

  .burger {
    display: block;
  }

  .footer-grid {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .news-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-list {
    grid-template-columns: 1fr;
  }
}


/* Intro logo screen */
#intro-logo {
  position: fixed;
  inset: 0;
  background: #0b0d10;          /* фон в цвет сайта */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
}

#intro-logo img {
  width: 190px;                 /* увеличить до 220–260, если нужно больше */
  height: auto;
  opacity: 0;
  transform: scale(0.9);
  animation: introZoom 0.8s ease forwards;
}

@keyframes introZoom {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* когда скрываем загрузочный экран */
#intro-logo.intro-hide {
  opacity: 0;
  pointer-events: none;
}

@keyframes logoFade {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.brand-logo {
  width: 72px;
  height: auto;

  /* мягкое осветление */
  filter: brightness(1.8) contrast(1.4);

  /* лёгкое свечение для читаемости */
  filter: brightness(1.8) contrast(1.4)
          drop-shadow(0 0 4px rgba(255,255,255,0.25));
}




/* --- MOBILE TUNING --- */
@media (max-width: 640px) {

  /* Хедер: чуть больше воздуха и поменьше текст */
  .header .wrap {
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 0.98rem;
    font-weight: 500;
  }

  /* Hero: понижаем размер заголовка и делаем текст компактнее */
  .hero-inner {
    padding: 120px 16px 80px; /* сверху больше, по бокам меньше */
  }

  .hero-content h1 {
    font-size: 1.9rem;
    line-height: 1.15;
  }

  .hero-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }

  .lead {
    font-size: 0.95rem;
  }

  /* Кнопки: одна под другой на узких экранах */
  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 260px;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  .hero-meta .pill {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  /* Блоки справа (статы) — чуть компактнее */
  .hero-side {
    max-width: 320px;
  }

  .hero-stat {
    font-size: 0.85rem;
  }
}
