/* ====== Base ====== */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, #0b132b, #1c2541);
  color: #ffffff;
}
body.menu-open {
  overflow: hidden;
}
a { color: #4da6ff; text-decoration: none; }
a:hover { text-decoration: underline; color: #71bfff; }
a:visited { color: #4da6ff; }

/* ====== Header ====== */
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0px 40px;
  background: rgba(11, 19, 43, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky; top: 0;
  z-index: 1001;
  backdrop-filter: blur(12px); 
}
.logo img { height: 100px; display: block; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav nav { display: flex; gap: 20px; }
.desktop-nav nav a, .desktop-nav nav a:visited { color: #fff; text-decoration: none; font-weight: 500; transition: color 0.2s; }
.desktop-nav nav a:hover { color: #bbb; text-decoration: none; }
.lang-switcher { position: relative; }
.lang-current { cursor: pointer; padding: 5px; border-radius: 4px; transition: background-color 0.2s; }
.lang-current:hover { background-color: rgba(255, 255, 255, 0.1); }
.lang-current img { width: 28px; display: block; }
.lang-options { display: none; position: absolute; top: calc(100% + 10px); right: 0; background-color: #1c2541; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; padding: 8px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); width: 150px; }
.lang-switcher.active .lang-options { display: block; }
.lang-options a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #fff; text-decoration: none; border-radius: 6px; font-size: 14px; }
.lang-options a:hover { background-color: rgba(77, 166, 255, 0.2); }
.lang-options img { width: 24px; }
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(11, 19, 43, 0.98); backdrop-filter: blur(5px); z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 50px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 25px; }
.mobile-menu nav a { font-size: 1.8rem; color: #fff; }
.mobile-lang-switcher { display: flex; gap: 15px; }
.mobile-lang-switcher a img { width: 32px; opacity: 0.6; transition: opacity 0.2s; }
.mobile-lang-switcher a:hover img { opacity: 1; }
.mobile-lang-switcher a.active img { opacity: 1; box-shadow: 0 0 8px rgba(255,255,255,0.5); border-radius: 4px; }
.hamburger-button { display: none; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1002; }
.hamburger-button:focus, .hamburger-button:focus-visible { outline: none; }
.hamburger-button .line { fill: #fff; transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out; transform-origin: center; }
.hamburger-button.active .line.top { transform: translateY(32.5px) rotate(45deg); }
.hamburger-button.active .line.middle { opacity: 0; }
.hamburger-button.active .line.bottom { transform: translateY(-32.5px) rotate(-45deg); }
@media (max-width: 992px) {
  header { padding: 10px 20px; }
  .logo img { height: 60px; }
  .desktop-nav { display: none; }
  .hamburger-button { display: block; }
}

/* ====== Main Section ====== */
main { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

/* ======== HERO SECTION ======== */
.hero-section {
  text-align: center;
  padding: 0px 20px;
  padding-top: 40px;
  margin-bottom: 40px;
}
.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 15px 0;
}
.hero-section p {
  font-size: 1.1rem;
  color: #c0c8e7;
  max-width: 600px;
  margin: 0 auto 25px auto;
  line-height: 1.6;
}
.hero-section .hero-link {
  font-size: 1rem;
  font-weight: 600;
  color: #4da6ff;
  text-decoration: underline;
  transition: color 0.2s;
}
.hero-section .hero-link:hover {
  color: #71bfff;
}
/* ======== END BLOCK ======== */


.main-columns { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }
.column { flex: 1; min-width: 300px; }
.column-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}
.card { background: #1f2a40; border-radius: 10px; padding: 20px; color: #fff; margin-bottom: 20px; }
.card .date { color: #999; font-size: 0.9rem; margin-bottom: 5px; }
.card .title { font-weight: bold; font-size: 1.1rem; margin-bottom: 8px; }
.card .desc { font-size: 0.95rem; color: #ccc; margin-bottom: 10px; }
.card .read-more { color: #4da6ff; text-decoration: underline; font-size: 0.95rem; }

/* ======== STATS ======== */
h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.stat-box {
  background-color: #1c2541;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #4da6ff;
}
.stat-label {
  font-size: 1rem;
  color: #ccc;
  margin-top: 8px;
}
/* ======== END ======== */

.carousel-container { position: relative; overflow: hidden; width: 100%; height: 100px; margin-top: 20px; }
.carousel-track-wrapper { overflow: hidden; width: 100%; height: 100%; }
.carousel-track { display: flex; align-items: center; height: 100%; will-change: transform; }
.carousel-item { flex: 0 0 auto; padding: 0 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; height: 100%; }
.carousel-item img {
  height: 60px;
  object-fit: contain;
  opacity: 0.7; 
  transition: all 0.3s ease; 
  filter: grayscale(1) invert(1) brightness(1.2); 
}

.carousel-item:hover img {
  opacity: 1; 
  transform: scale(1.1); 
  filter: none; 
}
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); border: none; color: #fff; font-size: 24px; padding: 5px 10px; cursor: pointer; z-index: 5; border-radius: 4px; }
.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-bottom: 30px; }
#searchInput, #countrySelect { padding: 12px 16px; font-size: 14px; border-radius: 8px; border: none; background: #1c2541; border: 1px solid rgba(255,255,255,0.1); color: #fff; width: 100%; flex: 1; min-width: 200px; outline: none; }
#searchInput::placeholder { color: #8a9bbd; }
select, select option { background-color: #1c2541; color: #ffffff; }
.glass-section { padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
.glass-title { font-size: 32px; font-weight: bold; color: #fff; margin-bottom: 30px; text-align: center; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; padding: 0; margin: 0; }
.company-card { list-style: none; background: #1c2541; border-radius: 16px; padding: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); transition: all 0.3s ease; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 160px; }
.company-card:hover { background: #2a3858; box-shadow: 0 0 15px rgba(77, 166, 255, 0.4); transform: translateY(-5px); }
.company-card img { height: 60px; max-width: 100%; object-fit: contain; margin-bottom: 15px; }
.company-card .name { font-size: 1rem; font-weight: 600; color: #f0f0f0; text-align: center; }
.company-card .country { font-size: 0.8rem; color: #8a9bbd; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.05em; text-align: center; }


/* ===== MODAL ===== */
.glass-modal {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  padding: 40px;
  box-sizing: border-box;
  display: none;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.glass-modal.active {
  display: grid;
  opacity: 1;
  visibility: visible;
}
/* ===== Кнопка закрытия (ФИНАЛЬНАЯ, ПУЛЕНЕПРОБИВАЕМАЯ ВЕРСИЯ) ===== */
#modal-close-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background-color: #ff3b3b;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease-in-out;
  
  /* Правильное красное свечение */
  box-shadow: 0 0 15px rgba(255, 59, 59, 0.5);
}

#modal-close-button::before,
#modal-close-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px; 
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
}

#modal-close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#modal-close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#modal-close-button:hover {
  background-color: #ff0000;
  transform: scale(1.1) rotate(180deg);
}


#modal-content {
  position: relative;
}


#modal-body img {
  max-width: calc(100vw - 80px); 
  max-height: calc(100vh - 80px); 
  width: auto;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}


/* ===== Collapsible / Accordion ====== */
.collapsible .collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.collapsible .icon {
  font-weight: bold; font-size: 20px; color: #4da6ff;
  transition: transform 0.3s ease;
}
.collapsible.open .icon {
  transform: rotate(45deg);
}
.collapsible .collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.collapsible.open .collapsible-body {
  max-height: 1000px;
  opacity: 1;
  margin-top: 10px;
  padding-right: 10px;
  padding-left: 10px;
  padding-top: 10px;
}
/* ====== About Page Styles ====== */
.about-page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #ccc;
  line-height: 1.7;
}

.about-page-content .page-title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 40px;
  text-align: center;
}

.about-section {
  margin-bottom: 40px;
}

.about-section .section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 2px solid #4da6ff;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.about-page-content p {
  margin-bottom: 1em;
}

.about-page-content .styled-list {
  list-style: none;
  padding-left: 0;
}

.about-page-content .styled-list li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 12px;
}

.about-page-content .styled-list li::before {
  content: '✓';
  color: #4da6ff;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 1px;
}
/* ====== Contact Page Styles ====== */
.contact-page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.contact-page-content .page-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 15px;
  color: #fff;
}
.contact-page-content .page-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.6;
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.contact-details, .contact-form-wrapper {
  flex: 1;
  min-width: 320px;
}
.contact-details h2, .contact-form-wrapper h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 20px;
  border-bottom: 2px solid #4da6ff;
  padding-bottom: 10px;
}
.contact-details .detail-item {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.5;
}
.contact-details .detail-item strong {
  display: block;
  color: #fff;
  margin-bottom: 5px;
}
.contact-details .detail-item span {
  color: #ccc;
}
.contact-details .detail-item a {
  color: #4da6ff;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 14px;
  background: #1c2541;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box; 
  -webkit-appearance: none;
  appearance: none;
}
.contact-form select {
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: .65em auto;
  padding-right: 40px;
}
.contact-form select:required:invalid {
  color: #8a9bbd;
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: #8a9bbd;
}
.contact-form .button-primary {
  padding: 15px;
  background-color: #4da6ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.contact-form .button-primary:hover {
  background-color: #3a8fe5;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: #1c2541;
  color: #f0f0f0;
  border: 1px solid #3a506b;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.contact-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4da6ff;
  box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.25);
}
/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
  main { padding: 40px 15px; }
  
  .hero-section {
    padding: 50px 15px;
  }
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
  .column-title {
    font-size: 1.5rem;
  }
  
  .stats-container { grid-template-columns: 1fr; }
  .glass-title { font-size: 24px; }
  .filter-bar { flex-direction: column; }
  #searchInput, #countrySelect { width: auto; }
  .company-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; }
  .glass-modal { padding: 15px; }
  .cert-close { top: 15px; right: 15px; width: 32px; height: 32px; font-size: 16px; }
  #modal-body img {
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 30px);
  }
}