:root {
  --primary-color: #ff3c5a;
  --orange-color: #ff8c00;
  --text-light: #ffffff;
  --text-gray: #b0b0b0;
  --bg-light: #f5f5f5;
  --dark-bg: #1f1f1f;
}

body {
  font-family: "Commissioner", sans-serif;
  overflow-x: hidden;
}

/* ----- 3.1 Navbar ----- */
.navbar {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 15px 0;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.btn {
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #e0354e;
  border-color: #e0354e;
}

.contact-info-container {
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  margin-right: 15px;
  align-items: center;
}

.hero-section {
  background: url("/static/aboutus/images/bg1.png") no-repeat center center;
  background-size: cover;
  color: var(--text-light);
  padding: 100px 0;
  min-height: 300px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-size: 35px;
  font-weight: 700;
  margin-top: 35px;
  font-family: "Tektur", sans-serif;
  text-align: center;
}

.about-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.about-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: start;
  color: black;
  font-family: "Montserrat", sans-serif;
}

.about-sub-title {
  font-size: 26px;
  font-weight: 600;
  color: black;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.experience-strip {
  gap: 5rem 1rem;
}

.connect {
  background-image: url("/static/aboutus/images/connect.png");
  justify-content: center;
  align-items: center;
  align-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
  margin-top: 80px;
  margin-bottom: 80px;
  max-height: 400px;
  background-size: 100% auto;
}

.experience-item {
  width: 45%;
  align-items: center;
  display: flex;
}

.experience-number {
  font-size: 26px;
  font-weight: bold;
  font-family: "Tektur", sans-serif;
  margin-right: 0.5rem;
}

.experience-text {
  font-size: 16px;
  white-space: nowrap;
}

.about-text {
  font-size: 20px;
  line-height: 1.6;
  color: black;
  margin-bottom: 25px;
  font-family: "Montserrat", sans-serif;
}

.orange-line {
  display: block;
  width: 200px;
  height: 5px;
  background-color: var(--orange-color);
  margin: 20px 0;
}

.gallery-item img {
  width: 90%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
  justify-self: center;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.footer {
  background-color: #000000;
  color: #ffffff;
  padding: 30px 0;
}

.footer-logo {
  max-width: 150px;
  height: auto;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.footer-contact-item {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 5px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: start;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-contact-container {
  width: 100%;
}

.footer-contact-column {
  flex: 1;
}

.footer-contact-column:first-child {
  margin-right: 20px;
}

.section-subtitle {
  text-align: start;
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.product-title {
  color: #dc3545;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 1.5rem;
}
.yellow-line {
  height: 5px;
  background-color: #ffcdae;
  display: block;
  flex-grow: 1;
}

.align {
  align-items: center;
}
.d-flex-align {
  align-items: center;
  display: flex;
}

@media (max-width: 991px) {
  .gallery-item img {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }

  .footer .row {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
  }

  .footer-contact-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .experience-strip {
    width: 100%;
    gap: 0.1rem;
  }
  .experience-item {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }
  .connect {
    height: 500px;
    background-repeat: no-repeat;
    background-size: auto 100%;
  }

  .experience-item {
    width: 90%;
  }

  .navbar-brand {
    order: 0;
  }

  .navbar-toggler {
    order: 1;
  }

  .navbar .container {
    flex-wrap: nowrap;
  }

  .about-section {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .orange-line .about-text {
    text-align: start;
    margin-left: auto;
    margin-right: auto;
  }

  .about-title,
  .about-text {
    text-align: start;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-contact-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-contact-column {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer-contact-column:first-child {
    margin-right: 0;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 50px 0;
    min-height: 200px;
  }
  .connect .about-text {
    text-align: center;
  }
  .experience-number {
    min-width: 65px;
  }
  .about-title {
    font-size: 24px;
  }
  .about-text {
    font-size: 16px;
  }
  .about-sub-title {
    font-size: 16px;
  }

  .hero-title {
    font-size: 24px;
  }

  .about-section {
    padding: 40px 0;
  }

  .footer-logo {
    max-width: 120px;
  }

  .footer-title {
    font-size: 16px;
  }

  .footer-contact-item {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .contact-info-container-mobile .contact-text {
    display: none;
  }
}

.navbar-collapse {
  text-align: center;
}

.navbar-brand img {
  height: 30px;
}

.navbar .nav-link {
  color: var(--text-light);
  font-size: 16px;
}

.contact-info {
  display: flex;
  align-items: center;
  color: var(--text-light);
  font-size: 16px;
  margin-right: 20px;
}

.contact-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.contact-info-container-mobile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Медиа-запросы для header */
@media (max-width: 1199px) {
  .navbar-expand-lg .navbar-collapse {
    display: none;
  }

  .navbar-expand-lg .navbar-toggler {
    display: block;
  }

  .navbar-expand-lg.navbar-dark .navbar-nav {
    flex-direction: column;
  }

  .navbar-expand-lg .navbar-nav .nav-item {
    margin-bottom: 10px;
  }
}

@media (max-width: 1199px) {
  .navbar-collapse {
    text-align: center;
    margin-top: 15px;
  }

  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 10px;
    display: block;
    margin: 5px 0;
  }
}

@media (max-width: 1199px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-expand-lg .navbar-toggler {
    display: block;
  }
}

.navbar-collapse.show {
  display: block;
}

@media (max-width: 768px) {
  .contact-info-container {
    position: static;
    transform: none;
    justify-content: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }

  .contact-info-container-mobile {
    order: -1;
    margin-right: 10px;
  }

  .navbar-brand {
    order: 0;
  }

  .navbar-toggler {
    order: 1;
  }

  .navbar .container {
    flex-wrap: nowrap;
  }

  .contact-info {
    margin-bottom: 5px;
  }
}

@media (max-width: 767px) {
  .contact-info-container-mobile .contact-text {
    display: none;
  }

  .contact-info {
    margin-right: 10px;
    font-size: 12px;
  }

  .contact-icon {
    width: 24px;
    height: 24px;
  }

  .navbar-brand img {
    height: 25px;
  }
}

/* ====================================
   3. LAYOUT COMPONENTS
   ==================================== */
/* ----- 3.1 Navbar ----- */
.navbar {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px 0;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.contact-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.contact-info {
  display: flex;
  align-items: center;
  color: white;
}

.contact-text {
  font-size: 16px;
  color: white;
}

.navbar-brand img {
  max-height: 50px;
}

.nav-link {
  color: white;
}

.nav-link.btn {
  background-color: #343a40;
  color: white;
  border: 1px solid #495057;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile view adjustments */
.contact-info-container-mobile {
  justify-content: center;
  gap: 10px;
  width: 100%;
}

@media (max-width: 991px) {
  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #666;
  }

  .nav-link {
    text-align: center;
    padding: 15px 0;
    width: 100%;
    font-size: 18px;
  }

  .nav-link.btn {
    margin: 0;
    background-color: transparent;
    border: none;
  }
}

/* Desktop view adjustments */
@media (min-width: 992px) {
  .contact-info-container-mobile {
    display: none;
  }

  .contact-info-container {
    justify-content: center;
    gap: 20px;
  }

  .navbar > .container-fluid {
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  .navbar-nav {
    justify-content: center;
    gap: 20px;
  }
}

/* Остальные стили остаются без изменений */

/* Измените этот медиа-запрос в вашем CSS */
@media (max-width: 992px) {
  .nav-link {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-size: 18px;
    color: var(--text-light);
  }

  .nav-link::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #626262; /* Сіра лінія */
  }

  .nav-link.btn.btn-dark:hover {
    background-color: transparent; /* Убрали фон при наведении */
    border-color: transparent; /* Убрали границу при наведении */
    color: var(--text-light);
  }
}

@media (min-width: 992px) {
  .nav-link {
    padding: 8px 15px; /* Увеличиваем внутренние отступы */
    white-space: nowrap; /* Запрещаем перенос текста */
  }
}

/* Для основного меню */
.navbar-collapse {
  flex-grow: 0; /* Не растягивать на всю ширину */
}

/* Базова іконка (бургер) */
.navbar-toggler-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

/* Коли меню відкрите — змінити іконку на хрестик */
.navbar-collapse.show + .navbar-toggler .navbar-toggler-icon,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cline x1='6' y1='6' x2='24' y2='24' stroke='white' stroke-width='2'/%3e%3cline x1='24' y1='6' x2='6' y2='24' stroke='white' stroke-width='2'/%3e%3c/svg%3e");
}

.contact-link {
  color: inherit;
  text-decoration: none;
}

.copy-tooltip {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 4px 8px;
  position: absolute;
  z-index: 1;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-info.position-relative:hover .copy-tooltip,
.contact-info.position-relative.show-tooltip .copy-tooltip {
  visibility: visible;
  opacity: 1;
}
