/* ==========================================================================
   components2.css — Breadcrumbs, Stats, Timeline, Footer, Nav, Gallery, Lightbox
   ========================================================================== */

/* --- Breadcrumbs --- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 14px;
  padding: 16px 0;
  color: var(--steel);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: '/';
  margin: 0 8px;
  color: var(--border);
}

.breadcrumbs a {
  color: var(--steel);
  transition: color var(--transition-fast);
}

@media (hover: hover) {
  .breadcrumbs a:hover {
    color: var(--brand-blue);
  }
}

.breadcrumbs .is-active {
  color: var(--brand-dark);
  font-weight: 600;
}

/* --- Stats / Counters --- */

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.stat {
  text-align: center;
  min-width: 140px;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  color: var(--steel);
  font-size: 15px;
}

.section--dark .stat__label {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Timeline / Process Steps --- */

.timeline {
  display: flex;
  gap: 0;
  position: relative;
}

.timeline__step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.timeline__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--brand-blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.timeline__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background-color: var(--border);
}

.section--dark .timeline__step:not(:last-child)::after {
  background-color: rgba(255, 255, 255, 0.2);
}

.timeline__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.timeline__text {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.5;
}

.section--dark .timeline__text {
  color: rgba(255, 255, 255, 0.6);
}

/* --- Footer --- */

.footer {
  background-color: var(--dark-bg);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer__logo img {
  height: 40px;
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color var(--transition-fast);
}

@media (hover: hover) {
  .footer__links a:hover {
    color: var(--brand-blue);
  }
}

.footer__contacts p {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer__contacts a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

@media (hover: hover) {
  .footer__contacts a:hover {
    color: var(--brand-blue);
  }
}

.footer__col {
  min-width: 0;
}

.footer__about-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer__nav-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

@media (hover: hover) {
  .footer__nav-link:hover {
    color: var(--brand-blue);
  }
}

.footer__contacts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer__contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__contact-link svg {
  flex-shrink: 0;
  color: var(--brand-blue);
}

@media (hover: hover) {
  .footer__contact-link:hover {
    color: var(--brand-blue);
  }
}

.footer__contact-item--address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer__contact-item--address svg {
  flex-shrink: 0;
  color: var(--brand-blue);
  margin-top: 2px;
}

.footer__hours-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.footer__hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.footer__hours-day {
  color: rgba(255, 255, 255, 0.6);
}

.footer__hours-time {
  color: rgba(255, 255, 255, 0.8);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.4);
}

.footer__credit {
  color: rgba(255, 255, 255, 0.4);
}

/* --- Navigation / Header --- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
}

.header__inner,
.header__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.header__logo img {
  height: 44px;
  width: auto;
}

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

.header__cta {
  margin-left: 24px;
}

.nav__list {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav__link {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
  padding: 8px 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-blue);
  transition: width var(--transition-base);
}

@media (hover: hover) {
  .nav__link:hover {
    color: var(--brand-blue);
  }

  .nav__link:hover::after {
    width: 100%;
  }
}

.nav__link.is-active,
.nav__link--active {
  color: var(--brand-blue);
}

.nav__link.is-active::after,
.nav__link--active::after {
  width: 100%;
}

.burger,
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.burger span,
.burger__line,
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: transform var(--transition-base), opacity var(--transition-fast);
  border-radius: 1px;
}

/* --- Mobile Menu --- */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background-color: var(--dark-bg);
  z-index: 999;
  transform: translateX(100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.mobile-menu__close {
  color: var(--white);
  font-size: 28px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__link {
  display: block;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu__link.is-active,
.mobile-menu__link--active {
  color: var(--brand-blue);
}

.mobile-menu__contacts {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu__phone {
  color: var(--brand-blue);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.mobile-menu__logo img {
  height: 36px;
  width: auto;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  z-index: 998;
}

.mobile-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Gallery Grid --- */

.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-grid__item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gallery-grid__item img {
  width: 100%;
  display: block;
}

/* --- Lightbox --- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--white);
  background: transparent;
  border: none;
  font-size: 32px;
  cursor: pointer;
  padding: 8px;
  z-index: 2001;
  -webkit-tap-highlight-color: transparent;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  background: transparent;
  border: none;
  font-size: 32px;
  cursor: pointer;
  padding: 16px;
  z-index: 2001;
  -webkit-tap-highlight-color: transparent;
}

.lightbox__prev {
  left: 16px;
}

.lightbox__next {
  right: 16px;
}

@media (hover: hover) {
  .lightbox__close:hover,
  .lightbox__prev:hover,
  .lightbox__next:hover {
    color: var(--brand-blue);
  }
}
