/* === Base & Reset === */
* { box-sizing: border-box; margin:0; padding:0; }
html, body { height: 100%; font-family: 'Poppins', sans-serif; scroll-behavior: smooth; color: #fcd662; background-color: transparent;
; }
a { text-decoration: none; color: #fcd662; transition: color 0.3s ease; }
a:hover { color: #ffffff; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Header === */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(8,22,50,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: background 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
header:hover { background: rgba(8,22,50,0.95); }

header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}
header .logo { display:flex; align-items:center; gap:10px; }
header .logo-img { height: 60px; width:auto; }
header .brand { font-size: 1.6em; font-weight: 600; color:#fcd662; letter-spacing:1px; }

.nav-menu { display:flex; gap:30px; list-style:none; margin-left:auto; align-items:center; }
.nav-menu a, .dropbtn {
  font-weight:500; text-transform: uppercase; letter-spacing:0.5px;
  padding:8px 12px; display:flex; align-items:center; transition: all 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active, .dropbtn:hover { color: #fffacd; }

dropdown { position: relative; }

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #081632;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  min-width: 250px;
  padding: 0;
  margin: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 1fr;

  /* спрятать полностью */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* показать по hover или при добавлении класса show */
.dropdown:hover .dropdown-content,
.dropdown-content.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* стили ссылок */
.dropdown-content li a {
  padding: 10px 20px;
  display: block;
  color: #fcd662;
  white-space: nowrap;
}

.dropdown-content li a:hover {
  background: #0a1d3f;
  color: #fffacd;
}

/* === Main Section === */
.main-section {
  flex:1;
  display:flex;
  justify-content:center;
  padding:140px 20px 80px;
  position: relative;
}

.page-content {
  background: linear-gradient(145deg, rgba(10,29,63,0.9), rgba(8,22,50,0.85));
  border-radius: 20px;
  padding: 50px;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.5), 0 0 25px rgba(252,214,98,0.2); /* мягкий золотой блик */
  position: relative;
  z-index: 1;
}
.category {
  background: rgba(8,22,50,0.75);
  border: 1px solid rgba(252,214,98,0.3);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 15px rgba(252,214,98,0.2);
  transition: all 0.4s ease;
}

.category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 25px rgba(252,214,98,0.4);
  background: rgba(8,22,50,0.85);
}
.category ul li {
  margin-bottom: 10px;
  line-height: 1.7;
  position: relative;
  padding-left: 25px;
}

.category ul li::before {
  content: "✦"; /* маленькая золотая звёздочка */
  position: absolute;
  left: 0;
  color: #fcd662;
  font-weight: bold;
}
.category {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.category.visible {
  opacity: 1;
  transform: translateY(0);
}

@media(max-width: 992px) {
  .page-content {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
  }
}

@media(max-width: 768px) {
  .page-content {
    grid-template-columns: 1fr; /* 1 колонка */
  }
}

.page-content h2 {
  text-align: center;
  font-size: 3em;
  color: #fcd662;
  margin-bottom: 30px;
  grid-column: 1 / -1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 8px rgba(252,214,98,0.5);
}
.category h3:hover {
  color: #fffacd;
  transform: translateY(-3px) scale(1.02);
  text-shadow: 0 2px 5px rgba(252,214,98,0.6);
}
.page-content {
  transition: background 0.5s ease;
}

.page-content:hover {
  background: linear-gradient(145deg, rgba(10,29,63,0.95), rgba(8,22,50,0.9));
}

.category:hover {
  transform: translateY(-5px) scale(1.03); /* немного увеличиваем */
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(252,214,98,0.5);
  background: rgba(8,22,50,0.9);
}
.category:hover {
  border: 1px solid rgba(252,214,98,0.6);
}
.page-content p, .page-content ul { font-size:1.15em; line-height:1.7; color:#fffacd; }
.page-content ul { padding-left:25px; }

/* === Services Section === */
.services-section { display:flex; flex-direction:column; gap:60px; }
.service-item { display:flex; align-items:center; gap:50px; border-bottom:1px solid #fcd66233; padding-bottom:40px; opacity:0; transform: translateY(40px); transition: all 0.8s ease-out; }
.service-item.reverse { flex-direction:row-reverse; }
.service-image img { width:100%; max-width:450px; border-radius:12px; object-fit:cover; box-shadow:0 8px 25px rgba(0,0,0,0.3); }
.service-text { flex:1; }
.service-text h3 { font-size:2em; margin-bottom:15px; color:#fcd662; }
.service-text p, .service-text ul { font-size:1.15em; line-height:1.7; }

/* Animation on scroll */
.service-item.show { opacity:1; transform:translateX(0); }
.service-item { opacity:0; transform:translateX(50px); transition: all 0.8s ease-out; }
.service-item.reverse { transform:translateX(-50px); }

/* === Buttons === */
.hero .btn, .contact-form button {
  background: linear-gradient(45deg, #fcd662, #e5b800);
  color:#081632; padding:12px 28px; border-radius:6px; font-weight:bold; transition: all 0.4s ease;
}
.hero .btn:hover, .contact-form button:hover {
  transform: translateY(-3px);
  box-shadow:0 8px 20px rgba(0,0,0,0.3);
}
/* === AOG Button === */
.aog-item {
  margin-left: auto; /* Отталкивает кнопку вправо */
}

.aog-btn {
  background-color: #c62828;
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(198, 40, 40, 0.6);
  transition: all 0.3s ease;
  animation: pulse 2.5s infinite;
  white-space: nowrap;
}

.aog-btn:hover {
  background-color: #ff3b3b;
  box-shadow: 0 0 20px rgba(255, 60, 60, 0.8);
  transform: scale(1.05);
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px rgba(198, 40, 40, 0.6); }
  50% { box-shadow: 0 0 25px 5px rgba(252, 214, 98, 0.7); }
  100% { box-shadow: 0 0 10px rgba(198, 40, 40, 0.6); }
}

@media (max-width: 768px) {
  .aog-item {
    margin-left: 0;
    width: 100%;
  }
  .aog-btn {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 10px;
  }
}



/* === Footer === */

footer a { color:#fcd662; font-weight:500; }
footer a:hover { color:#ffffff; }
/* === Enhanced Footer === */
.site-footer {
  background-color: #081632;
  color: #fcd662;
  padding: 50px 20px 25px;
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid rgba(252, 214, 98, 0.2);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 30px;
}
.footer-left {
  flex: 1 1 350px;
  max-width: 500px;
}
.footer-left p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #fffacd;
  margin-top: 10px;
}
/* === Лёгкое свечение логотипа при появлении футера === */
.footer-logo {
  transition: filter 1.5s ease, transform 1.2s ease;
  filter: drop-shadow(0 0 0 rgba(252,214,98,0));
}

.footer-logo.glow {
    transform: none !important; /* отменяем масштаб */
    filter: drop-shadow(0 0 15px rgba(252,214,98,0.6))
            drop-shadow(0 0 25px rgba(252,214,98,0.4));
}

.footer-right {
  display: flex;
  flex: 1 1 400px;
  justify-content: flex-end;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-column h4 {
  color: #fcd662;
  font-size: 1.1em;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(252,214,98,0.3);
  padding-bottom: 6px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column li {
  margin-bottom: 8px;
}
.footer-column a {
  color: #fffacd;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-column a:hover {
  color: #fcd662;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(252,214,98,0.2);
  padding-top: 15px;
  font-size: 0.9em;
  color: #fcd662;
}
.footer-bottom a {
  color: #fcd662;
  text-decoration: underline;
}
.footer-bottom a:hover {
  color: #fffacd;
}
@media (max-width: 768px) {
  .footer-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}/* === Compact Footer === */
.compact-footer {
  background-color: #081632;
  color: #fcd662;
  padding: 25px 20px 10px;
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid rgba(252,214,98,0.15);
}
/* Скрываем футер по умолчанию */
.compact-footer {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-in-out;
}

/* Когда футер в зоне видимости */
.compact-footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center; /* вместо flex-end */
  flex-wrap: wrap;
  gap: 20px;
}

/* Left block (logo + short text) */
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
}
.footer-logo {
    width: 70px !important;
    max-width: 70px !important;
    height: auto !important;
    transform: none !important; /* игнорирует glow */
}

.footer-left p {
  font-size: 0.9em;
  line-height: 1.3;
  color: #fffacd;
  margin: 0;
}

/* Right block (columns) */
.footer-right {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-column h4 {
  font-size: 1em;
  margin-bottom: 6px;
  color: #fcd662;
}
.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-column li {
  margin-bottom: 4px;
}
.footer-column a {
  text-decoration: none;
  color: #fffacd;
  font-size: 0.9em;
  transition: color 0.3s ease;
}
.footer-column a:hover {
  color: #fcd662;
}

/* Bottom line */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(252,214,98,0.15);
  padding-top: 8px;
  font-size: 0.85em;
  color: #fcd662;
}
.footer-bottom a {
  color: #fcd662;
  text-decoration: underline;
}
.footer-bottom a:hover {
  color: #fffacd;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center; /* центрируем логотип и колонки */
    text-align: center;
  }
  .footer-left {
    align-items: center; /* центрируем логотип */
  }
  .footer-right {
    justify-content: center;
    gap: 25px;
  }
}



/* === Background Images for Pages === */
body.home {
  background-image: url('assets/images/bg-home.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

body.about {
  background-image: url('assets/images/bg-about.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

body.services {
  background-image: url('assets/images/bg-services.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}
body.contact {
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

body.careers {
  background-image: url('assets/images/bg-careers.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

ody.privacy {
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  min-height: 100vh; /* закрывающая скобка была пропущена */
}

/* Overlay for better text readability */
body.home::before,
body.about::before,
body.services::before,
body.contact::before,
body.careers::before,
body.privacy::before {
  content: "";
  position: absolute; /* вместо fixed */
  top: 0; left: 0;
  width: 100%; height: 100%;
background: rgba(8,22,50,0.3); /* легкое затемнение */
  z-index: -1; 
}


/* === Responsive === */
@media(max-width:768px){
  header .header-inner { flex-direction:column; gap:10px; }
  .nav-menu { flex-wrap:wrap; justify-content:center; gap:20px; }
  header .brand { font-size:1.4em; }
  footer { font-size:0.85em; padding:15px 5px; }
  .service-item, .service-item.reverse { flex-direction:column; text-align:center; }
  .service-image img { max-width:100%; margin-bottom:20px; }
  .page-content { padding:30px; }
}
/* === Privacy Page Specific === */
body.privacy {
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;          /* растягиваем на весь экран */
  background-position: center;     /* центрируем */
  background-repeat: no-repeat;    /* запрещаем повторение */
  background-attachment: fixed;    /* фон не движется при скролле */
  position: relative;
  min-height: 100vh;
}

/* Overlay for better text readability */
body.privacy::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(8,22,50,0.3);
  z-index: -1;
}
/* Main section content */
body.privacy .main-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--header-height, 72px) + 20px) 20px 140px; /* верх = хедер + отступ */
}

/* Page content block */
body.privacy .page-content {
  display: block; /* вместо grid */
  max-width: 900px;
  padding: 40px;
  margin: 0 auto;
  background: rgba(10,29,63,0.9);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

/* Text inside page content */
body.privacy .page-content h2,
body.privacy .page-content h3,
body.privacy .page-content p,
body.privacy .page-content ul {
  grid-column: auto; /* отменяем сетку */
  text-align: left;
}

/* Footer and general layout fix */
body {
  position: relative;
  overflow-x: hidden;
  min-height: 100%;
  padding-top: var(--header-height, 72px); /* хедер */
}

html, body {
  height: auto;
}

.site-footer,
.compact-footer {
  position: relative;
  z-index: 1;
}

/* === Responsive adjustments === */
@media(max-width:768px){
  header .header-inner { flex-direction:column; gap:10px; }
  .nav-menu { flex-wrap:wrap; justify-content:center; gap:20px; }
  header .brand { font-size:1.4em; }
  footer { font-size:0.85em; padding:15px 5px; }
  .service-item, .service-item.reverse { flex-direction:column; text-align:center; }
  .service-image img { max-width:100%; margin-bottom:20px; }
  .page-content { padding:30px; }
}

/* === BURGER MENU BASE === */
.menu-toggle {
  display: none; /* покажем только на мобильных */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 2px solid #fcd662;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background-color: #fcd662;
}

.menu-toggle:hover .burger-line {
  background-color: #081632;
}

/* линии */
.burger-line {
  width: 22px;
  height: 2px;
  background-color: #fcd662;
  transition: all 0.3s ease;
}

/* анимация открытия */
.menu-toggle.active .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === MOBILE MENU === */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: relative; /* важно для координат меню */
    z-index: 1001;
  }
  

  /* вертикальное меню */
  .nav-menu {
   position: absolute; /* вместо fixed */
    top: 100%; /* сразу под кнопкой */
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    background: rgba(8, 22, 50, 0.97);
    padding: 15px 0;
    gap: 18px;
    transform: translateY(-10px); /* скрыто чуть выше */
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  /* открытое меню */
  .nav-menu.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

  /* подменю скрыто по умолчанию */
  .dropdown-content {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(8, 22, 50, 0.95);
    margin: 5px 0 0 0;
    padding: 0;
    border-radius: 6px;
  }

  /* открытие подменю при клике */
  .dropdown.open .dropdown-content {
    display: flex;
  }

  .dropdown-content li a {
    padding: 10px 20px;
    color: #fcd662;
    text-align: left;
  }

  .dropdown-content li a:hover {
    background-color: #0a1d3f;
    color: #fffacd;
  }
.request-form textarea {
  margin-bottom: 10px;
}

.form-note {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  text-align: left;
  font-style: italic;
}
