/* --- Общие стили --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f5f5f5; /* светло-серый фон вместо тёмного */
  color: #0b132b; /* тёмный текст для контраста */
  overflow-x: hidden;
}



a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  font-weight: 600;
}

/* --- Хедер и навигация --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(11, 19, 43, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.5em;
  color: #00bcd4;
  font-weight: bold;
}
.logo span {
  color: #40e0d0;
}

.nav a {
  color: #e0e0e0;
  margin: 0 15px;
  transition: color 0.3s;
}
.nav a:hover,
.nav a.active {
  color: #40e0d0;
}

/* --- Главная секция (hero) --- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Размытый фон */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("bg.png") no-repeat center/cover;
  filter: blur(5px);
  transform: scale(1.1); /* чтобы края не обрезались */
  z-index: 0;
}

/* Затемнение (по желанию, делает текст читаемым) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Контент поверх */
.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 2s ease;
}

.hero h1 {
  color: #00bcd4;
  font-size: 2.8em;
  margin-bottom: 15px;
}
.hero p {
  color: #000000ff;
  font-size: 1.1em;
  margin-bottom: 25px;
}
.btn {
  background: linear-gradient(135deg, #00bcd4, #40e0d0);
  color: #0b132b;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn:hover {
  transform: scale(1.05);
}

/* --- Общие секции --- */
.page-section {
  padding: 150px 20px 80px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
  animation: fadeIn 1.5s ease;
}

/* --- Таблица "О компании" --- */
.company-table {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  border: 1px solid #40e0d0;
  padding: 12px;
  text-align: left;
}
.company-table th {
  background: #00bcd4;
  color: #0b132b;
}
.company-table tr:nth-child(even) {
  background: rgba(64, 224, 208, 0.1);
}
.company-table tr:hover {
  background: rgba(64, 224, 208, 0.3);
  transition: 0.3s;
}

/* --- Карточки услуг --- */
.services-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.card {
  background: rgba(0, 188, 212, 0.1);
  padding: 20px;
  border-radius: 12px;
  width: 250px;
  text-align: left;
  animation: fadeIn 1.5s ease;
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
}
.card h3 {
  color: #00bcd4;
  margin-bottom: 10px;
}
.card ul {
  list-style: none;
}
.card li {
  margin: 8px 0;
}

/* --- Контакты --- */
.contacts {
  margin-top: 50px;
  text-align: center;
}
.contacts a {
  color: #40e0d0;
  text-decoration: none;
}
.contacts a:hover {
  text-decoration: underline;
}

/* --- Кнопка "Наверх" --- */
.to-top {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #00bcd4;
  color: #0b132b;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 100;
}
.to-top:hover {
  background: #40e0d0;
}

/* --- Анимации --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Адаптивность --- */
@media (max-width: 768px) {

  .header {
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
  }

  .hero h1 {
    font-size: 2em;
  }

  /* Карточки 2 сверху / 2 снизу */
.services-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: rgba(0, 188, 212, 0.1);
  padding: 20px;
  border-radius: 12px;
  text-align: left;
  width: 100%;
}


  .company-table th,
  .company-table td {
    font-size: 0.9em;
    padding: 8px;
  }
}

  /* Контейнер кнопки */
  .lang-container {
    position: relative;
  }

  /* Кнопка выбора языка */
  .lang-btn {
    background: linear-gradient(135deg,#00bcd4,#0097a7);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .lang-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
  }

  /* Меню языков */
  .lang-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .lang-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Элементы меню */
  .lang-menu span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 18px;
  }

  .lang-menu span:hover {
    background: #00bcd4;
    color: #fff;
  }

  /* Флаги */
  .flag {
    font-size: 20px;
  }
  .about {
    height: 100vh;
    background: url("aboutbg.png") no-repeat center/cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
.services_bg {
  position: relative;
  overflow: hidden;
}

.services_bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("services_bg.png") no-repeat center/cover;
  filter: none;
  transform: scale(1.1);
  z-index: 0;
}

.services_bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.services_bg .services-cards {
  position: relative;
  z-index: 2;
}


/* Размытый фон */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("bg.png") no-repeat center/cover;
  filter: blur(12px);
  transform: scale(1.1); /* чтобы края не обрезались */
  z-index: 0;
}

/* Затемнение (по желанию, делает текст читаемым) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Контент поверх */
.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 2s ease;
  }
  
  @media (max-width: 992px) {
  .services-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

  @media (max-width: 576px) {
  .services-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
