/*				блок 1 - баннер				*/
.biometry-banner {
  position: relative;
  width: 100%;
  background-image: url("../images/phy/biometry-banner.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 2883 / 1024;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 6rem 2rem 2rem;
  box-sizing: border-box;
}

.biometry-banner-content {
  width: 45%;
  height: 80%;
  background: rgba(10, 10, 10, 0.75);
  border-radius: 1rem;
  padding: 2rem 3rem 2rem 2rem;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  animation: fadeInUp 1s ease-out both;
}

.biometry-banner-title-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
}

.biometry-banner-title {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.biometry-banner-title-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.biometry-banner-text {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  color: #e0ffe8;
  flex: 1;
  z-index: 1;
  animation: fadeInText 1.2s ease-in forwards;
  opacity: 0;
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Адаптивность --- */

@media (max-width: 1024px) {
  .biometry-banner {
    padding: 1.5rem 3rem 1.5rem 1rem;
    justify-content: center;
  }

  .biometry-banner-content {
    width: 60%;
    padding: 1.5rem 2rem 1.5rem 1.5rem;
  }

  .biometry-banner-text {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .biometry-banner {
    flex-direction: column;
    aspect-ratio: auto;
    padding: 1rem 1.5rem;
    justify-content: center;
    align-items: center;
    min-height: 400px; /* Чтобы был хотя бы нормальный размер */
  }

  .biometry-banner-content {
    width: 90%;
    height: auto;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    border-radius: 0.8rem;
  }

  .biometry-banner-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .biometry-banner {
    padding: 1rem 1rem;
    min-height: 350px;
  }

  .biometry-banner-content {
    width: 100%;
    padding: 1rem 1rem 1.5rem 1rem;
    border-radius: 0.7rem;
  }

  .biometry-banner-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/*				блок 2 - основная информация				*/
.biometry-info-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.biometry-info-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #222;
  position: relative;
}

.biometry-info-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #55c97e;
  margin: 10px auto 0;
  border-radius: 2px;
}

.biometry-info-block {
  background: #f9f9f9;
  border-left: 4px solid #55c97e;
  padding: 20px 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  border-radius: 12px;
}

.biometry-info-block p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

/* Анимация появления */
.biometry-info-block.show {
  opacity: 1;
  transform: translateY(0);
}
/*				блок 3 - Детали для клиента				*/
.biometry-details-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 20px;
  background-color: #ffffff;
}

.biometry-details-main-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #202020;
}

.biometry-details-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.biometry-details-card {
  flex: 1 1 300px;
  background-color: #f5f5f5;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.biometry-details-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.biometry-details-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.biometry-details-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}

.biometry-details-card-text {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.6;
}

.biometry-details-links {
  margin-top: 35px;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
}

.biometry-details-links a {
  color: #389e83;
  text-decoration: underline;
  margin: 0 5px;
}
.biometry-offices-buttons {
  text-align: center;
  margin-bottom: 30px;
}

.office-btn {
  background: #f5f5f5;
  border: 2px solid #389e83;
  color: #222;
  font-size: 1rem;
  padding: 10px 18px;
  margin: 0 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.office-btn:hover {
  background: #389e83;
  color: #fff;
}

.office-btn.active {
  background: #389e83;
  color: #fff;
}
/*				блок 4 - Таблица с деталями				*/
/* === ОБОЛОЧКА === */
.biometry-table-wrapper {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  color: #eee;
}

/* === ЗАГОЛОВОК === */
.biometry-table-title {
  font-size: 1.6rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 35px;
  line-height: 1.4;
  color: #222;
  position: relative;
}
.biometry-table-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 12px auto 0;
  background: #55c97e; /* зелёная линия */
  border-radius: 2px;
}

/* === КОНТЕЙНЕР ТАБЛИЦЫ === */
.biometry-table-container {
  background: #111;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #222;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  overflow-x: auto;
  transition: all 0.6s ease;
  opacity: 0;
  transform: translateY(25px);
}

/* === ТАБЛИЦА === */
.biometry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  min-width: 600px;
}
.biometry-table th {
  padding: 14px 12px;
  text-align: left;
  border: 1px solid #222;
  background: #1a1a1a;
  color: #eee;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Левая колонка */
.biometry-table th[rowspan] {
  background: #0f0f0f;
  color: #ffea00; /* жёлтый акцент */
  font-weight: bold;
  border-right: 2px solid #55c97e; /* зелёная граница */
}

/* Подсветка строки */
.biometry-table tr:hover th {
  background: #161616;
  color: #fff;
  box-shadow: inset 0 -2px 0 #55c97e;
}
.biometry-table tr:hover th[colspan] {
  color: #ffea00; /* жёлтый при наведении */
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
  .biometry-table-title {
    font-size: 1.2rem;
  }
  .biometry-table {
    font-size: 0.9rem;
  }
}