/* =========================================
   КОЛЬОРИ САЙТУ (змінюйте тут — оновиться весь сайт)
   ========================================= */
:root {
  --color-primary: #0077b5;      /* фірмовий синій: кнопки, посилання, акценти */
  --color-primary-dark: #005a8c; /* синій при наведенні */
  --color-navy: #042b54;         /* темно-синій: заголовки, підвал */
  --color-text: #333333;         /* основний текст */
  --color-text-soft: #4a5560;    /* описи, абзаци */
  --color-text-muted: #5f6b76;   /* підписи, другорядний текст */
  --color-border: #e1e4e8;       /* рамки карток */
  --color-surface: #f5f7f9;      /* світле тло секцій */
}

/* =========================================
   ЗАГАЛЬНІ СТИЛІ ТА НАВІГАЦІЯ
   ========================================= */
* {
  box-sizing: border-box;
}

body {
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 64px; /* Висота панелі навігації */
  background-color: #ffffff;
  color: #000000;
}

.navbar {
  display: flex;
  height: 64px;
  align-items: center;
  padding: 0 24px 0 40px;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  /* Повертаємо анімацію висування/засування */
  transition: transform 0.4s cubic-bezier(0.3, 0, 0.2, 1);
}

/* Клас для ховання меню (замінюємо прозорість на зсув вгору) */
.navbar.hidden-nav {
  transform: translateY(-100%);
}

/* Логотип вміщується в панель і не перекриває перший екран */
.logo {
  position: relative;
  z-index: 110;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #000000;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding-bottom: 5px;
}

.nav-links li.active a {
  border-bottom: 2px solid #000000;
}

.nav-links li a:hover {
  border-bottom: 2px solid var(--color-primary);
}

/* =========================================
   ПЕРЕМИКАЧ МОВ
   ========================================= */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 20px;
  flex-shrink: 0;
}

.lang-switch a {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--color-text-muted);
  padding: 3px 5px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.lang-switch a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.lang-switch a.lang-active {
  color: #000000;
  border-bottom-color: #000000;
}

.lang-switch span {
  color: #a9b2ba;
  font-size: 13px;
}

.lang-switch a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Кнопка «Забронювати обладнання» у панелі навігації */
.nav-cta {
  margin-left: 20px;
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.nav-cta .cta-short {
  display: none;
}

@media (max-width: 1150px) {
  .nav-links {
    gap: 18px;
  }

  .nav-cta .cta-long {
    display: none;
  }

  .nav-cta .cta-short {
    display: inline;
  }
}


/* =========================================
     ГОЛОВНА СТОРІНКА (index.html)
     ========================================= */
.hero-about {
  position: relative;
  height: 600px;
  background: url("../images/backgrounds/hero-bg.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 40px;
  margin-top: -30px;
}

.hero-about::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-about-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-about-title {
  flex: 1;
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  padding-right: 40px;
  /* Це <h1> — прибираємо типові відступи заголовка */
  margin: 0;
}

.hero-about-box {
  background-color: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  width: 450px;
  padding: 40px;
}

.hero-about-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 30px;
}

/* =========================================
   КНОПКИ: одна основна (синя) і одна другорядна (з обводкою)
   ========================================= */
.btn-blue,
.btn-yellow,
.btn-submit,
.nav-cta {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
}

.btn-blue:hover,
.btn-yellow:hover,
.btn-submit:hover,
.nav-cta:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
}

.btn-blue:active,
.btn-yellow:active,
.btn-submit:active,
.nav-cta:active,
.eq-book-btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 15px;
}

/* На темному тлі першого екрана головна кнопка має білу обводку */
.hero-about-box .btn-yellow {
  border-color: #ffffff;
}

.mission-text {
  max-width: 800px;
  margin: 60px auto;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text);
  padding: 0 20px;
}

.split-section {
  display: flex;
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 40px;
  gap: 60px;
  align-items: center;
}

.split-text {
  flex: 1;
}

.split-text h2 {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 20px;
}

.split-text p {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 30px;
}

.split-image {
  flex: 1;
  height: 400px;
  background: url("../images/backgrounds/image-potential.webp") center/cover no-repeat;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* =========================================
     СТОРІНКА ОБЛАДНАННЯ
     ========================================= */
.hero-equip {
  position: relative;
  height: 350px;
  background: url("../images/backgrounds/banner-bg.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 40px;
  margin-top: -30px;
}

.hero-equip::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-equip-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.hero-equip-inner h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.hero-equip-inner p {
  font-size: 1.2rem;
  color: #cccccc;
  max-width: 600px;
}

/* ФІЛЬТРИ (Квадратні кнопки) */
.filters-container {
  max-width: 1400px;
  margin: 40px auto 20px auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.primary-filters,
.secondary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background-color: var(--color-surface);
  border: 1px solid #dee2e6;
  color: var(--color-text-soft);
  padding: 10px 20px;
  font-size: 14px;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: #e2e6ea;
  border-color: #ced4da;
}

.filter-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 119, 181, 0.3);
}

.sub-filter-btn {
  background-color: #ffffff;
  border: 1px solid #ced4da;
  color: var(--color-text-muted);
  padding: 8px 16px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sub-filter-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: #f8fbff;
}

.sub-filter-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* КАТАЛОГ ОБЛАДНАННЯ */
.equipment-catalog {
  max-width: 1400px;
  margin: 30px auto 80px auto;
  padding: 0 40px;
}

.equipment-catalog h2 {
  display: none;
}

.eq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.eq-card {
  border: 1px solid var(--color-border);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.eq-img {
  width: 100%;
  height: 220px;
  background-color: #ffffff;
  object-fit: contain;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
}

/* Заглушка замість фото, поки знімок приладу не додано */
.eq-img-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.modal-img-placeholder {
  width: 140px;
  height: 140px;
  min-width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-radius: 8px;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
}

.eq-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Бейдж стану приладу в модальному вікні */
.eq-status {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 20px;
}

.eq-status.status-active {
  background-color: #e3f5e9;
  color: #14694f;
  border: 1px solid #a8ddc0;
}

.eq-status.status-service {
  background-color: #fdf0e3;
  color: #8a5300;
  border: 1px solid #f2cc96;
}

/* Позначка про дані, які ще треба звірити з паспортом приладу */
.spec-note {
  background: #fff8e1;
  border-left: 4px solid #f0b429;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #6b5800;
}

.eq-loc {
  font-size: 11px;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.eq-loc span {
  color: var(--color-text);
  font-weight: normal;
  display: block;
  margin-top: 2px;
}

.eq-title {
  font-size: 1.3rem;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.eq-desc {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

/* Другорядна кнопка: «Забронювати» в картці приладу */
.eq-book-btn {
  align-self: flex-start;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  background: transparent;
  color: var(--color-primary);
  padding: 9px 20px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

.eq-book-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* =========================================
     ПОРОЖНІЙ РЕЗУЛЬТАТ ФІЛЬТРАЦІЇ
     ========================================= */
.no-results {
  grid-column: 1 / -1;
  margin: 0;
  padding: 60px 25px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  background: var(--color-surface);
  border: 1px dashed #ced4da;
  border-radius: 8px;
}

/* =========================================
     ВИДИМИЙ ФОКУС ДЛЯ КЛАВІАТУРНОЇ НАВІГАЦІЇ
     ========================================= */
.lab-card:focus-visible,
.eq-card:focus-visible,
.team-card:focus-visible,
.location-item:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.nav-links li a:focus-visible,
.filter-btn:focus-visible,
.sub-filter-btn:focus-visible,
.btn-yellow:focus-visible,
.btn-blue:focus-visible,
.btn-submit:focus-visible,
.eq-book-btn:focus-visible,
.nav-cta:focus-visible,
.burger:focus-visible,
.close-btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* =========================================
     АДАПТИВНІСТЬ
     ========================================= */
@media (max-width: 900px) {
  /* У колонку контент більше не вміщується у фіксовані 600px */
  .hero-about {
    height: auto;
    min-height: 600px;
  }
  .hero-about-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-about-title {
    margin-bottom: 40px;
  }
  .split-section {
    flex-direction: column;
  }
  .split-image {
    width: 100%;
  }
}

/* =========================================
     БЛОК СТАТИСТИКИ (МННЛЦ у цифрах)
     ========================================= */
.stats-section {
  background-color: var(--color-surface);
  padding: 60px 20px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  text-align: center;
}

.stat-item {
  flex: 1;
  min-width: 200px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--color-text-soft);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  /* Цифри сіткою 2×2 замість стовпчика на весь екран */
  .stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 12px;
  }

  .stat-item {
    min-width: 0;
  }

  .stat-number {
    font-size: 2.6rem;
  }
}

/* =========================================
   КАРТКИ ЛАБОРАТОРІЙ (Головна сторінка index.html)
   ========================================= */
.labs-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
}
/* Сітки карток: неповний останній ряд стоїть по центру */
.labs-grid,
.achievements-grid,
.video-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.labs-grid > *,
.achievements-grid > *,
.video-gallery-grid > * {
  flex: 0 1 calc((100% - 60px) / 3);
  min-width: 280px;
}

.labs-grid {
  margin-top: 40px;
}
.lab-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.lab-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}
.lab-img-wrapper {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 3px solid var(--color-primary); /* Синє підкреслення замість зеленого */
}
/* Затемнення для фотографій корпусів на головній сторінці */
.lab-img-wrapper::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(4, 43, 84, 0.1), rgba(4, 43, 84, 0.8));
  transition: background 0.3s ease; /* Додаємо плавність для підсвітки */
}
/* Синя підсвітка фотографії корпусу при наведенні на картку лабораторії */
.lab-card:hover .lab-img-wrapper::after {
  background: linear-gradient(rgba(0, 119, 181, 0.2), rgba(0, 119, 181, 0.9));
}

.lab-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.lab-sector {
  font-size: 0.85rem;
  color: var(--color-primary); /* Синій колір сектора */
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
.lab-name {
  font-size: 1.3rem;
  color: var(--color-navy);
  margin-top: 0;
  margin-bottom: 15px;
}
.lab-desc {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}
.lab-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-top: 1px solid #eee;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Контейнер для свідоцтва */
.certificate-container {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  background: var(--color-surface);
  border-radius: 8px;
  border: 1px dashed #ccc;
}
.certificate-img {
  max-width: 100%;
  max-height: 400px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 4px;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}
.certificate-img:hover {
  transform: scale(1.02);
}

/* =========================================
   ПОВНОЕКРАННИЙ ПЕРЕГЛЯД ЗОБРАЖЕНЬ
   ========================================= */
.image-viewer-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-viewer-overlay.active-viewer {
  display: flex;
  opacity: 1;
}
.image-viewer-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.image-viewer-overlay.active-viewer img {
  transform: scale(1);
}

/* =========================================
     СТОРІНКА КОЛЕКТИВ (team.html)
     ========================================= */
.hero-team {
  position: relative;
  padding: 100px 20px;
  text-align: left;
  color: #ffffff;
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("../images/backgrounds/stock-photo2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-team-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
}

.hero-team h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.hero-team p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 700px;
}

/* Каталог Колективу */
.team-catalog {
  max-width: 1400px;
  margin: 30px auto 80px auto;
  padding: 0 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  border: 1px solid var(--color-border);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Фон: фото корпусу, де працює співробітник */
.team-img-wrapper {
  position: relative;
  width: 100%;
  height: 130px;
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
  background-color: var(--color-navy);
  margin-bottom: 72px;
}

/* Легке затемнення фото корпусу */
.team-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(4, 43, 84, 0.1), rgba(4, 43, 84, 0.8));
  transition: background 0.3s ease;
}

/* Синя підсвітка фону при наведенні на картку */
.team-card:hover .team-img-wrapper::after {
  background: linear-gradient(rgba(0, 119, 181, 0.2), rgba(0, 119, 181, 0.9));
}

/* Круглий аватар співробітника */
.team-img {
  position: absolute;
  bottom: -64px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  object-fit: cover !important;
  object-position: center 15% !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
  background-color: #fff;
}

.team-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-name {
  font-size: 1.3rem;
  margin: 0 0 8px 0;
  color: #000000;
  line-height: 1.3;
}

.team-position {
  font-size: 0.95rem;
  color: var(--color-primary);
  font-weight: bold;
  margin-bottom: 15px;
}

.team-desc {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.team-loc {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
  border-top: 1px solid #eeeeee;
  padding-top: 15px;
  margin-top: auto;
}

/* =========================================
     МОДАЛЬНІ ВІКНА (Ефект 3D Перевороту)
     ========================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  perspective: 2000px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: #ffffff;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 8px;
  position: relative;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: flipInCard 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
  transform-style: preserve-3d;
}

/* Хрестик лишається видимим під час прокрутки довгого вікна */
.close-btn {
  position: sticky;
  top: -20px;
  float: right;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -20px -20px 0 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 28px;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, background-color 0.2s;
}

.close-btn:hover {
  color: #ffffff;
  background: #d9534f;
}

/* Кнопка бронювання у вікні приладу (додається скриптом) */
.modal-book-btn {
  margin-top: 15px;
}

.modal-header {
  display: flex;
  gap: 30px;
  align-items: center;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.modal-img {
  width: 140px;
  height: 140px;
  min-width: 140px; /* Жорстко фіксуємо мінімальну ширину */
  flex-shrink: 0; /* Забороняємо тексту стискати фотографію */
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%; /* Те саме кадрування, що й на картці */
  border: 4px solid var(--color-primary);
}

.modal-title-box h2 {
  margin: 0 0 10px 0;
  font-size: 1.8rem;
  color: var(--color-text);
}

.modal-position {
  font-weight: bold;
  color: var(--color-primary);
  font-size: 1.05rem;
  margin: 0 0 10px 0;
}

.modal-contact {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.modal-links {
  margin-top: 15px;
  font-size: 0.95rem;
}

.modal-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.modal-links a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.modal-body h3 {
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.cv-body p,
.cv-body ul,
.publications-list {
  color: var(--color-text-soft);
  line-height: 1.6;
}

.cv-body p {
  margin-bottom: 20px;
}

.publications-list {
  padding-left: 20px;
}

.publications-list li {
  margin-bottom: 10px;
}

@keyframes flipInCard {
  0% {
    opacity: 0;
    transform: rotateY(-180deg) scale(0.3);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
}

@media (max-width: 600px) {
  .modal-header {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================
     ФОРМА БРОНЮВАННЯ
     ========================================= */
.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--color-text);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 5px rgba(0, 119, 181, 0.3);
}

.btn-submit {
  width: 100%;
  margin-top: 15px;
  padding: 15px 24px;
  font-size: 15px;
}

/* =========================================
     АНІМАЦІЯ ЗНИКНЕННЯ (Закриття вікна)
     ========================================= */
.modal-overlay.closing {
  animation: fadeOutOverlay 0.6s forwards;
}

.modal-overlay.closing .modal-content {
  animation: flipOutCard 0.6s cubic-bezier(0.175, 0.885, 0.32, 1) forwards;
}

@keyframes flipOutCard {
  0% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotateY(180deg) scale(0.3);
  }
}

@keyframes fadeOutOverlay {
  0% {
    background-color: rgba(0, 0, 0, 0.7);
  }
  100% {
    background-color: rgba(0, 0, 0, 0);
  }
}

/* =========================================
     ВІДЕОГАЛЕРЕЯ (index.html)
     ========================================= */
.video-gallery-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.video-gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* Обкладинка відео з кнопкою відтворення */
.yt-facade {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
  background: #000000;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: rgba(4, 43, 84, 0.85);
  transition: background-color 0.2s, transform 0.2s;
}

.yt-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #ffffff;
}

.yt-facade:hover img,
.yt-facade:focus-visible img {
  opacity: 1;
}

.yt-facade:hover .yt-play,
.yt-facade:focus-visible .yt-play {
  background: var(--color-primary);
  transform: translate(-50%, -50%) scale(1.08);
}

.yt-facade:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(4, 43, 84, 0.1);
  transition: transform 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(4, 43, 84, 0.15);
}

.youtube-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 15px 20px;
  text-align: center;
}

.video-info h3 {
  color: var(--color-navy);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.4;
}

/* =========================================
   КАРТКИ ДОСЯГНЕНЬ (index.html)
   ========================================= */
.achievement-card {
  padding: 30px;
  border-radius: 0;
  border-left: 4px solid var(--color-primary); /* Синій замість зеленого */
  background: #eaf2f8; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); 
}

.achievement-card h3 {
  color: var(--color-navy);
  margin-top: 0;
  margin-bottom: 15px;
}

.achievement-card p {
  color: var(--color-text-soft);
  margin-bottom: 0;
  line-height: 1.6;
}

/* =========================================
   СТОРІНКА СПІВРОБІТНИЦТВО (cooperation.html)
   ========================================= */
.hero-coop {
  position: relative;
  height: 400px;
  background: linear-gradient(rgba(4, 43, 84, 0.8), rgba(4, 43, 84, 0.8)),
    url("../images/locations/voli-1.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 40px;
  margin-top: -30px;
}
.hero-coop-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: #ffffff;
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-coop-inner h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: 800;
}
.hero-coop-inner p {
  font-size: 1.2rem;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}
.coop-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
}
.coop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}
.coop-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary); /* Синій замість зеленого */
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}
.coop-card h3 {
  color: var(--color-navy);
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
}
.coop-card ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.coop-card li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: var(--color-text-soft);
  line-height: 1.5;
}
.coop-card li::before {
  content: "🔹";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9rem;
}
.cta-box {
  background: var(--color-surface);
  border-left: 5px solid var(--color-primary);
  padding: 40px;
  margin-top: 60px;
  text-align: center;
}
.cta-box h3 {
  color: var(--color-navy);
  margin-top: 0;
  font-size: 1.8rem;
}
.cta-box p {
  color: var(--color-text-soft);
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* =========================================
   СТОРІНКА КОНТАКТИ (contacts.html)
   ========================================= */
.hero-contacts {
  position: relative;
  height: 350px;
  background: linear-gradient(rgba(10, 15, 20, 0.7), rgba(10, 15, 20, 0.7)),
    url("../images/locations/ruska-12.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 40px;
  margin-top: -30px;
}
.hero-contacts-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: #ffffff;
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-contacts-inner h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: 800;
}
.contacts-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info h3 {
  color: var(--color-navy);
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}
.contact-block {
  margin-bottom: 25px;
  padding: 15px;
  background: #ffffff;
  border-radius: 0;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary); /* Синій замість зеленого */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-block:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.contact-block h4 {
  color: var(--color-primary); /* Синій замість зеленого */
  margin-bottom: 5px;
  font-size: 1.1rem;
}
.contact-block p {
  color: var(--color-text-soft);
  margin: 5px 0;
  line-height: 1.5;
}

/* =========================================
   ІНТЕРАКТИВНІ ЛОКАЦІЇ (Картки з фоном)
   ========================================= */
.locations-container {
  margin-top: 50px;
}
.locations-container h3 {
  color: var(--color-navy);
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  text-align: center;
}
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.location-item {
  position: relative;
  padding: 25px;
  border-radius: 8px; /* Додано заокруглення кутів */
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
}

/* Синювате затемнення, ідентичне до карток на головній сторінці */
.location-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(4, 43, 84, 0.1), rgba(4, 43, 84, 0.85));
  transition: background 0.3s ease;
  z-index: 1;
}

.location-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-color: var(--color-primary); /* Синій при наведенні */
}

.location-item:hover::before {
  /* Трохи світліший фільтр при наведенні мишкою */
  background: linear-gradient(rgba(4, 43, 84, 0.0), rgba(4, 43, 84, 0.7));
}

.location-item.active-loc {
  border-color: var(--color-primary-dark); /* Темніший синій для активної */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.location-item.active-loc::before {
  /* Більш насичений синій для вибраної (активної) локації */
  background: linear-gradient(rgba(0, 119, 181, 0.2), rgba(0, 119, 181, 0.9));
}

.loc-content {
  position: relative;
  z-index: 2;
}

.locations-grid .location-item h4 {
  color: #ffffff !important;
  margin-bottom: 10px;
  margin-top: 0;
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.locations-grid .location-item p {
  color: var(--color-surface) !important;
  margin: 5px 0;
  font-size: 0.95rem;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.locations-grid .location-item p strong {
  color: #ffffff !important;
}

.contact-form-container {
  background: var(--color-surface);
  padding: 40px;
  border-radius: 0;
  border-top: 4px solid var(--color-primary);
  transition: box-shadow 0.3s ease;
  height: fit-content;
}
.contact-form-container:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.contact-form-container h3 {
  color: var(--color-navy);
  margin-top: 0;
  margin-bottom: 20px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.map-container {
  margin-top: 40px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 450px;
  transition: opacity 0.4s ease;
}

/* Адаптивність */
@media (max-width: 1024px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .locations-grid {
    grid-template-columns: 1fr;
  }
  .map-container {
    height: 350px;
    margin-top: 40px;
  }
}
/* =========================================
   АНІМАЦІЯ ДЛЯ ГАЛЕРЕЇ (Плавне розгортання)
   ========================================= */
.gallery-container {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.6s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.4s ease;
}

.gallery-container.open {
  max-height: 1000px; /* Достатня висота, щоб вмістити всі фото */
  opacity: 1;
  margin-top: 25px;
}
/* =========================================
   МОБІЛЬНА АДАПТИВНІСТЬ (Телефони та планшети < 768px)
   ========================================= */

/* Стилі для іконки-гамбургера (прихована на ПК) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  margin-left: auto; /* Відштовхує меню вправо */
  z-index: 1001;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background-color: #000000;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Відкрите меню: три смужки перетворюються на хрестик */
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  /* 1. Навігація */
  .burger {
    display: flex;
    order: 3;
    margin-left: 0;
  }

  /* Перемикач мов лишається у смужці, бургер — праворуч від нього */
  .lang-switch {
    order: 2;
    margin-left: auto;
    margin-right: 18px;
  }

  .navbar {
    padding: 0 20px; /* Зменшуємо відступи панелі на телефоні */
  }

  .nav-links {
    position: absolute;
    top: 64px; /* Меню рівно під панеллю навігації */
    left: -100%;
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);   
    padding: 24px 0 30px 0;
    gap: 18px;
    z-index: 100; 
  }

  /* Клас, який буде додаватися через JS для показу меню */
  .nav-links.nav-active {
    left: 0;
  }

  /* 2. Типографіка та заголовки */
  .hero-about-title, 
  .hero-equip-inner h1, 
  .hero-team h1, 
  .hero-coop-inner h1, 
  .hero-contacts-inner h1 {
    font-size: 2rem !important; /* Зменшуємо з 3.5rem до 2rem */
    padding-right: 0 !important;
    text-align: center;
  }

  .hero-about-inner, .hero-equip-inner, .hero-team-inner {
    flex-direction: column;
    align-items: center;
  }

  .logo img {
    height: 44px;
    width: 44px;
  }

  .hero-about,
  .hero-equip,
  .hero-team,
  .hero-coop,
  .hero-contacts {
    padding: 48px 20px 36px 20px;
    height: auto;
    min-height: 400px;
    text-align: center;
  }
  /* 3. Блоки з фіксованою шириною (виправлення помилок з виходом за екран) */
  .hero-about-box {
    width: 100% !important;
    max-width: 100%;
    padding: 25px !important;
    margin-top: 20px;
  }

  /* 4. На телефоні кнопки «Забронювати» в панелі немає (бракує місця) */
  .nav-cta {
    display: none;
  }

  .close-btn {
    top: -10px;
    margin: -10px -10px 0 10px;
  }

  /* 5. Модальні вікна */
  .modal-content {
    width: 95%;
    padding: 20px !important; /* Зменшуємо внутрішні відступи з 40px до 20px */
  }

  .modal-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .modal-img,
  .modal-img-placeholder {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
  }

  .modal-img-placeholder {
    font-size: 2.5rem;
  }
  
  .modal-title-box h2 {
    font-size: 1.4rem;
  }

  /* 6. Фільтри */
  .filters-container {
    padding: 0 20px;
  }
  
  /* Фільтри: компактні кнопки, що переносяться на нові рядки — усі видно одразу */
  .primary-filters, .secondary-filters {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-btn, .sub-filter-btn {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.3;
  }
}

/* =========================================
   ПІДВАЛ САЙТУ
   ========================================= */
.site-footer {
  background-color: var(--color-navy);
  color: #e6edf5;
  margin-top: 80px;
  padding: 50px 40px 0 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.footer-col p {
  margin: 0 0 10px 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #c3d2e3;
}

.footer-col a {
  color: #8fc8ea;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #9fb3c8;
}

.site-footer a:focus-visible {
  outline: 2px solid #8fc8ea;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 40px 20px 0 20px;
    text-align: center;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
/* ===== Сторінка 404 ===== */
.page-404 {
  padding-top: 0;
  background: #f4f7fa;
}

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 16px;
  text-align: center;
  color: var(--color-navy);
}

.not-found h1 {
  font-size: 4rem;
  margin: 0;
}

.not-found p {
  max-width: 520px;
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.6;
}

.not-found-logo {
  width: 96px;
  height: auto;
}

.not-found-en {
  margin-top: 24px !important;
}

/* ===== Стилі, винесені з атрибутів style="" ===== */
.eq-card,
.team-card,
.lab-card {
  cursor: pointer;
}

.modal-title-box .eq-status {
  display: inline-block;
  margin-bottom: 10px;
}

.eq-modal .modal-img {
  border-radius: 8px;
  border: 2px solid var(--color-primary);
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.gallery-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  cursor: zoom-in;
  border: 1px solid #ccc;
}
/* =========================================
   ІКОНКИ (SVG замість емодзі; колір = колір тексту)
   ========================================= */
.ico {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.17em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}

.ico-pin { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.ico-mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.ico-phone { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2Z'/%3E%3C/svg%3E"); }
.ico-file { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E"); }
.ico-globe { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10Z'/%3E%3C/svg%3E"); }
.ico-user { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1'/%3E%3C/svg%3E"); }
.ico-door { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 20V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14M2 20h20M14 12v.01'/%3E%3C/svg%3E"); }
.ico-area { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.4 2.4 0 0 1 0-3.4l2.6-2.6a2.4 2.4 0 0 1 3.4 0ZM14.5 12.5l2-2M11.5 9.5l2-2M8.5 6.5l2-2M17.5 15.5l2-2'/%3E%3C/svg%3E"); }
.ico-check { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.ico-camera { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3Z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E"); }
.ico-search { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }

/* На світлому тлі іконки — у фірмовому синьому; на фото й у підвалі — колір тексту */
.ico-pin,
.ico-mail,
.ico-phone,
.ico-user,
.ico-door,
.ico-area,
.ico-file,
.ico-globe,
.ico-camera {
  color: var(--color-primary);
}

.location-item .ico,
.site-footer .ico,
.hero-about .ico,
.hero-equip .ico,
.hero-team .ico,
.hero-coop .ico,
.hero-contacts .ico {
  color: inherit;
}

/* =========================================
   ПОШУК І ЛІЧИЛЬНИК (обладнання, колектив)
   ========================================= */
.search-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.search-box {
  position: relative;
  flex: 1 1 320px;
  max-width: 560px;
}

.search-box .ico-search {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-navy);
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.35);
}

.result-count {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
}

.search-hidden {
  display: none !important;
}

/* =========================================
   КОМПАКТНІ КАРТКИ ПРИЛАДІВ НА ТЕЛЕФОНІ
   ========================================= */
@media (max-width: 600px) {
  .equipment-catalog {
    padding: 0 16px;
  }

  .eq-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .eq-card {
    flex-direction: row;
    border-radius: 10px;
    overflow: hidden;
  }

  .eq-card:hover {
    transform: none;
  }

  .eq-img,
  .eq-img-placeholder {
    width: 104px;
    min-width: 104px;
    height: auto;
    min-height: 120px;
    padding: 10px;
    border-bottom: 0;
    border-right: 1px solid var(--color-border);
  }

  .eq-img-placeholder {
    font-size: 2.2rem;
  }

  .eq-content {
    padding: 14px 16px;
    min-width: 0;
  }

  .eq-loc {
    font-size: 10.5px;
    margin-bottom: 6px;
  }

  .eq-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .eq-desc {
    font-size: 0.88rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .eq-book-btn {
    padding: 7px 14px;
    font-size: 12px;
  }
}
/* =========================================
   МЕНШЕ РУХУ: для тих, хто вимкнув анімації в системі
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
