/* Gallery Page - UNIK TECHPRO */

.gallery-page {
  background: #ffffff;
  color: #012149;
}

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


.gallery-btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0.02em;
  min-height: 54px;
  padding: 0 30px;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.gallery-btn--primary {
  background: linear-gradient(135deg, #ff6100 0%, #ff8c1a 100%);
  border: 0;
  box-shadow: 0 12px 30px rgba(255, 97, 0, 0.25);
  color: #ffffff;
}

.gallery-btn--primary:hover {
  background: linear-gradient(135deg, #ff7a00 0%, #ff9f2d 100%);
  box-shadow: 0 18px 40px rgba(255, 97, 0, 0.35);
  color: #ffffff;
  transform: translateY(-3px);
}

.gallery-btn--secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

.gallery-btn--secondary:hover {
  background: #ffffff;
  color: #012149;
  transform: translateY(-3px);
}

.gallery-hero {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(1, 33, 73, 0.636), rgba(0, 22, 51, 0.723)),
    url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=2200&q=82") center/cover;
  display: flex;
  min-height: 88vh;
  overflow: hidden;
  position: relative;
}

.gallery-hero__pattern {
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  position: absolute;
}

.gallery-hero__pattern::before,
.gallery-hero__pattern::after {
  content: "";
  position: absolute;
}

.gallery-hero__pattern::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  inset: 0;
}

.gallery-hero__pattern::after {
  background: radial-gradient(circle at 78% 28%, rgba(137, 196, 0, 0.24), transparent 28%);
  filter: blur(20px);
  height: 560px;
  right: -180px;
  top: 110px;
  width: 560px;
}

.gallery-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  width: 100%;
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.gallery-hero__title {
  color: #ffffff;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 34px 0 30px;
  max-width: 800px;
  text-align: left;
}

.gallery-hero__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.8;
  max-width: 700px;
}

.gallery-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

.gallery-section {
  padding: 120px 0;
}

.gallery-section__head {
  margin: 0 auto 46px;
  max-width: 820px;
  text-align: center;
}

.gallery-section__head h2 {
  color: #012149;
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 16px 0;
}

.gallery-section__head p {
  color: #60708a;
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0 auto;
  max-width: 720px;
}

.gallery-section__head--light h2,
.gallery-section__head--light p {
  color: #ffffff;
}

.gallery-section__head--light p {
  color: rgba(255, 255, 255, 0.72);
}

.gallery-showcase {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.gallery-filter__button {
  background: #ffffff;
  border: 1px solid rgba(1, 33, 73, 0.1);
  border-radius: 999px;
  color: #012149;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  min-height: 46px;
  padding: 0 22px;
  transition: all 0.3s ease;
}

.gallery-filter__button:hover,
.gallery-filter__button.is-active {
  background: #ff6100;
  border-color: #ff6100;
  box-shadow: 0 12px 28px rgba(255, 97, 0, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.gallery-masonry {
  display: grid;
  gap: 22px;
  grid-auto-flow: dense;
  grid-auto-rows: 210px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(1, 33, 73, 0.08);
  min-height: 210px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}

.gallery-card.is-hidden {
  display: none;
}

.gallery-card--tall {
  grid-row: span 2;
}

.gallery-card--wide {
  grid-column: span 2;
}

.gallery-card img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.4s ease;
  width: 100%;
}

.gallery-card::after {
  background: linear-gradient(
    180deg,
    rgba(1, 33, 73, 0.15) 0%,
    rgba(1, 33, 73, 0.85) 100%
  );
  content: "";
  inset: 0;
  position: absolute;
}

.gallery-card__overlay {
  bottom: 0;
  color: #ffffff;
  left: 0;
  padding: 28px;
  position: absolute;
  right: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transform: translateY(10px);
  transition: transform 0.35s ease;
  z-index: 1;
}

.gallery-card__overlay h3 {
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.gallery-card__overlay p {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  opacity: 0.9;
}

.gallery-card:hover {
  box-shadow: 0 25px 60px rgba(1, 33, 73, 0.18);
  transform: translateY(-8px);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card:hover .gallery-card__overlay {
  transform: translateY(0);
}

.team-action {
  background: #ffffff;
}

.team-action__grid {
  display: grid;
  gap: 22px;
  grid-auto-flow: dense;
  grid-auto-rows: 220px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-action__card {
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(1, 33, 73, 0.08);
  min-height: 220px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-action__card--tall {
  grid-row: span 2;
}

.team-action__card--wide {
  grid-column: span 2;
}

.team-action__card img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.4s ease;
  width: 100%;
}

.team-action__card::after {
  background: linear-gradient(
    180deg,
    rgba(1, 33, 73, 0.1),
    rgba(1, 33, 73, 0.308)
  );
  content: "";
  inset: 0;
  position: absolute;
}

.team-action__overlay {
  bottom: 0;
  left: 0;
  padding: 26px;
  position: absolute;
  right: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transform: translateY(8px);
  transition: transform 0.4s ease;
  z-index: 1;
}

.team-action__overlay h3 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.team-action__overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  margin: 0;
}

.team-action__card:hover {
  box-shadow: 0 25px 60px rgba(1, 33, 73, 0.18);
  transform: translateY(-8px);
}

.team-action__card:hover img {
  transform: scale(1.08);
}

.team-action__card:hover .team-action__overlay {
  transform: translateY(0);
}

.team-action__stats {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(1, 33, 73, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 58px rgba(1, 33, 73, 0.1);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 36px auto 0;
  max-width: 1120px;
  overflow: hidden;
}

.team-action__stats article {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.95));
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  padding: 26px 18px;
  text-align: center;
}

.team-action__stats strong {
  color: #ff6100;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.team-action__stats span {
  color: #53647e;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.45;
  margin-top: 12px;
  text-transform: uppercase;
}

.gallery-execution {
  background: linear-gradient(135deg, #012149 0%, #001633 100%);
}

.execution-strip {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  overflow-x: auto;
  padding: 6px 2px 18px;
  scroll-snap-type: x mandatory;
}

.execution-card {
  background: #ffffff;
  border-radius: 24px;
  min-height: 310px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: transform 0.35s ease;
}

.execution-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  width: 100%;
}

.execution-card span {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  bottom: 22px;
  color: #012149;
  font-size: 0.86rem;
  font-weight: 850;
  left: 22px;
  padding: 10px 18px;
  position: absolute;
  text-transform: uppercase;
}

.execution-card:hover {
  transform: translateY(-8px);
}

.execution-card:hover img {
  transform: scale(1.08);
}

.gallery-videos,
.gallery-testimonials {
  background: #ffffff;
}

.video-grid,
.testimonial-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
  border-radius: 24px;
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.video-card::after {
  background: linear-gradient(180deg, rgba(1, 33, 73, 0.08), rgba(1, 33, 73, 0.88));
  content: "";
  inset: 0;
  position: absolute;
}

.video-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  width: 100%;
}

.video-card span {
  align-items: center;
  background: #ff6100;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  height: 70px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  z-index: 2;
}

.video-card h3 {
  bottom: 26px;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 850;
  left: 26px;
  margin: 0;
  position: absolute;
  right: 26px;
  z-index: 2;
}

.video-card:hover img {
  transform: scale(1.08);
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(1, 33, 73, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(1, 33, 73, 0.06);
  padding: 34px;
}

.testimonial-card i {
  color: #ff6100;
  font-size: 2rem;
  margin-bottom: 22px;
}

.testimonial-card p {
  color: #53647e;
  font-size: 1.05rem;
  line-height: 1.8;
}

.testimonial-card strong {
  color: #012149;
}

.gallery-cta {
  background: #ffffff;
  padding: 80px 0 100px;
}

.gallery-cta__inner {
  background: linear-gradient(135deg, #012149 0%, #001633 100%);
  border-radius: 32px;
  overflow: hidden;
  padding: clamp(44px, 6vw, 76px);
  position: relative;
}

.gallery-cta__inner::after {
  background: radial-gradient(circle, rgba(255, 97, 0, 0.18), transparent 64%);
  content: "";
  height: 420px;
  position: absolute;
  right: -120px;
  top: -130px;
  width: 420px;
}

.gallery-cta__inner h2 {
  color: #ffffff;
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 18px 0;
  max-width: 840px;
  position: relative;
  z-index: 1;
}

.gallery-cta__inner p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.gallery-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

@media (max-width: 1199px) {
  .gallery-section {
    padding: 90px 0;
  }

  .gallery-hero__title {
    font-size: 56px;
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-action__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-action__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .execution-strip {
    grid-template-columns: repeat(5, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .gallery-section {
    padding: 70px 0;
  }

  .gallery-hero {
    min-height: 76vh;
  }

  .gallery-hero__title {
    font-size: 42px;
    letter-spacing: -1.2px;
    margin: 26px 0 24px;
  }

  .gallery-hero__text {
    font-size: 17px;
  }

  .gallery-hero__actions {
    margin-top: 34px;
  }

  .gallery-masonry,
  .team-action__grid,
  .video-grid,
  .testimonial-grid {
    grid-auto-rows: auto;
    grid-template-columns: 1fr;
  }

  .team-action__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card,
  .gallery-card--tall,
  .gallery-card--wide,
  .team-action__card,
  .team-action__card--tall,
  .team-action__card--wide {
    height: 340px;
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .gallery-card__overlay h3 {
    font-size: 25px;
    line-height: 1.08;
  }

  .gallery-card__overlay p {
    font-size: 16px;
  }

  .team-action__stats article {
    min-height: 132px;
    padding: 22px 12px;
  }

  .gallery-filter {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .gallery-filter__button {
    flex: 0 0 auto;
  }
}

@media (max-width: 420px) {
  .team-action__stats {
    gap: 1px;
  }

  .team-action__stats strong {
    font-size: 2.15rem;
  }

  .team-action__stats span {
    font-size: .68rem;
  }
}
