/* ==========================================================================
   Главная страница
   ========================================================================== */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 858px;
  background: url('../assets/img/hero-bg.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero__bg-video {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  z-index: 0;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.09) translate(-1%, -1%); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,30,45,.08) 0%, rgba(20,30,45,.05) 40%, rgba(20,30,45,.32) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  height: 100%;
  z-index: 2;
}

.hero__decor {
  position: absolute;
  left: 65px;
  top: 281px;
  width: 732px;
  height: 422px;
  pointer-events: none;
}

.hero__text {
  position: absolute;
  top: 351px;
  left: 0;
  max-width: 757px;
  color: var(--color-white);
}

.hero__text-title {
  display: block;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 48px;
  line-height: 50px;
  margin-bottom: 36px;
}

.hero__text-body {
  display: block;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 24px;
  line-height: 34px;
}

.hero__video-btn {
  position: absolute;
  top: 581px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--color-white);
  font-weight: 500;
  font-size: 18px;
  transition: filter .2s ease;
}

.hero__video-btn:hover {
  filter: brightness(.8);
}

.hero__play {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  flex-shrink: 0;
  transition: background-color .3s ease, transform .3s ease;
}

.hero__video-btn:hover .hero__play {
  background: rgba(255,255,255,.2);
  transform: scale(1.1);
}

@keyframes heroPlayPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.45); }
  100% { box-shadow: 0 0 0 16px rgba(255,255,255,0); }
}

.hero__play::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  animation: heroPlayPulse 2.2s ease-out infinite;
}

.hero__play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--color-white);
}

/* ---------- Stats / About preview ---------- */

.about-preview {
  padding: 90px 0 100px;
}

.about-preview__top {
  display: flex;
  align-items: flex-end;
  gap: 67px;
  margin-bottom: 90px;
}

.about-preview__photo {
  width: 463px;
  height: 251px;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
}

.about-preview__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-preview__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-preview__text p {
  font-size: 18px;
  line-height: 30px;
}

.about-preview__text .btn {
  margin-top: 24px;
  align-self: flex-start;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}

.stat {
  width: 340px;
  max-width: 100%;
}

.stat p {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 4px;
}

.stat strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--color-blue);
  font-weight: 500;
  font-size: 60px;
}

.stat-unit {
  font-weight: 600;
  font-size: 24px;
}

/* ---------- Products (Плашки 1) ---------- */

.products {
  padding-bottom: 100px;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.product-card {
  position: relative;
  height: 386px;
  border-radius: 10px;
  overflow: hidden;
  color: var(--color-white);
}

.product-card__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-repeat: no-repeat;
}

.product-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 95, .4);
  transition: opacity .3s ease;
}

.product-card:hover .product-card__img::after {
  opacity: 0;
}

.product-card--1 .product-card__img { background-image: url('../assets/img/product-1.jpg'); background-size: 296.91% 128.37%; background-position: 28.76% 0%; }
.product-card--2 .product-card__img { background-image: url('../assets/img/product-2.jpg'); background-size: 304.00% 131.43%; background-position: 29.90% 0.06%; }
.product-card--3 .product-card__img { background-image: url('../assets/img/product-3.jpg'); background-size: 342.20% 147.95%; background-position: 20.72% 0.18%; }
.product-card--4 .product-card__img { background-image: url('../assets/img/product-4.jpg'); background-size: 292.74% 126.57%; background-position: 37.86% 70.33%; }
.product-card--5 .product-card__img { background-image: url('../assets/img/product-5.jpg'); background-size: 310.11% 134.07%; background-position: 18.37% 0%; }

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,62,95,0) 40%, rgba(44,62,95,.85) 100%);
  z-index: 2;
}

.product-card__body {
  position: absolute;
  top: 227px;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 24px;
}

.product-card__body h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
}

.product-card--3 .product-card__body h3 {
  transform: translateX(-8px);
}

.product-card__body h3 span {
  display: inline-block;
  transition: background-color .25s ease;
  padding: 2px 10px;
  margin-left: -10px;
}

.product-card:hover .product-card__body h3 span {
  background: var(--color-blue);
}

/* ---------- Shared: news / tenders card ---------- */

.card-outline {
  position: relative;
  border: 1px solid var(--color-border-soft);
  border-radius: 5px;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-outline__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
}

.card-outline__more {
  flex-shrink: 0;
  width: 20px;
  height: 13px;
  color: var(--color-blue);
  transition: transform .2s ease;
}

.card-outline__more:hover {
  transform: translateX(4px);
}

.card-outline__thumb {
  width: 100%;
  height: 207px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.card-outline__thumb--news-1 { background-image: url('../assets/img/news-1.jpg'); background-size: 350.86% 305.23%; background-position: 33.10% 45.80%; background-repeat: no-repeat; }
.card-outline__thumb--news-2 { background-image: url('../assets/img/news-2.jpg'); background-size: 343.87% 299.14%; background-position: 80.66% 84.18%; background-repeat: no-repeat; }
.card-outline__thumb--news-3 { background-image: url('../assets/img/news-3.jpg'); background-size: 298.61% 259.77%; background-position: 18.58% 10.02%; background-repeat: no-repeat; }

.card-outline p {
  font-size: 16px;
  line-height: 26px;
}

.card-outline time {
  font-size: 16px;
  color: var(--color-text);
}

.section-foot {
  margin-top: 45px;
  text-align: left;
}

.tenders .section-foot {
  margin-top: 52px;
}

/* ---------- News (Плашки 2) ---------- */

.news {
  padding-bottom: 100px;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---------- Tenders (Плашки 3) ---------- */

.tenders {
  padding-bottom: 100px;
}

.tenders__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 77px;
}

.tenders__intro {
  max-width: 451px;
  flex-shrink: 0;
}

.tenders__intro .section-title {
  margin-bottom: 24px;
}

.tenders__intro p {
  font-size: 16px;
  line-height: 26px;
  margin-top: 20px;
}

.tenders__grid {
  display: grid;
  grid-template-columns: 362px 362px;
  align-items: start;
  gap: 28px;
  flex: 0 0 auto;
}

.tenders__grid .card-outline {
  height: 273px;
}

.tenders__grid .card-outline p {
  padding-bottom: 20px;
}

/* ---------- Gallery (Плашки 4) ---------- */

.gallery {
  padding-bottom: 100px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: 508px repeat(3, 1fr);
  gap: 7px;
}

.gallery__cell {
  position: relative;
  height: 318px;
  border-radius: 10px;
  overflow: hidden;
}

.gallery__cell--1 { background-image: url('../assets/img/gallery-1.jpg'); background-size: 178.36% 118.03%; background-position: 82.08% 100%; background-repeat: no-repeat; }
.gallery__cell--2 { background-image: url('../assets/img/gallery-2.jpg'); background-size: 342.20% 147.95%; background-position: 66.68% 0%; background-repeat: no-repeat; }
.gallery__cell--3 { background-image: url('../assets/img/gallery-3.jpg'); background-size: 349.82% 151.24%; background-position: 0.04% 3.05%; background-repeat: no-repeat; }

.gallery__cell--1::after,
.gallery__cell--2::after,
.gallery__cell--3::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 95, .4);
  transition: opacity .3s ease;
}

.gallery__cell--1:hover::after,
.gallery__cell--2:hover::after,
.gallery__cell--3:hover::after {
  opacity: 0;
}

.gallery__cell--cta {
  background: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: left;
}

.gallery__cell--cta span {
  color: var(--color-white);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
}

.gallery__cell--cta span strong {
  font-weight: 700;
}
