﻿/* Home page */
/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--color-bg);
  background-image: url("/assets/glavnaya/hero-bg.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  filter: blur(2.5px);
  transform: scale(1.12);
  transform-origin: center center;
  opacity: 0.5;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(19, 19, 19, 0.5) 0%,
      rgba(19, 19, 19, 0.7) 45%,
      rgba(19, 19, 19, 0.85) 100%
    ),
    linear-gradient(
      180deg,
      rgba(19, 19, 19, 0.25) 0%,
      rgba(19, 19, 19, 0.1) 40%,
      rgba(19, 19, 19, 0.65) 100%
    );
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero__title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--color-white);
  max-width: 607px;
}

.hero__text {
  margin: 24px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.17;
  color: var(--color-white);
  max-width: 596px;
}

.hero__cta {
  margin-top: 32px;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 580px);
  margin: 12px;
  padding: 10px;
  border: 1px solid rgb(86 67 57 / var(--tw-border-opacity, 1));
  border-radius: var(--radius);
  box-sizing: border-box;
}

.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border-color: var(--color-orange);
  border-style: solid;
  pointer-events: none;
  z-index: 1;
}

.hero__visual::before {
  top: -10px;
  left: -10px;
  border-width: 2px 0 0 2px;
}

.hero__visual::after {
  right: -10px;
  bottom: -10px;
  border-width: 0 2px 2px 0;
}

.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}


/* ========== ABOUT ========== */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.about__media {
  position: relative;
}

.about__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: var(--radius);
}

.about__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.about__title {
  margin: 0 0 20px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

.about__text {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
}

.about__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.about__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--color-white);
}

.about__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-blue);
  border-radius: var(--radius);
}

.about__icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.about__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.about__link img {
  filter: invert(42%) sepia(98%) saturate(1200%) hue-rotate(350deg) brightness(95%) contrast(90%);
}

.about__link:hover {
  opacity: 0.85;
}

/* ========== ADVANTAGES ========== */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.adv-card {
  min-height: 229px;
  padding: 30px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-orange);
  border-radius: var(--radius);
}

.adv-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.adv-card__icon img {
  max-width: 40px;
  max-height: 34px;
}

.adv-card__title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.16;
  color: var(--color-text);
}

.adv-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-muted);
}

/* ========== GEOGRAPHY ========== */
.geo__map {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.geo__map img {
  width: 100%;
  height: auto;
  max-height: 610px;
  object-fit: cover;
}

/* ========== NEWS SLIDER ========== */
.news-slider {
  overflow: hidden;
}

.news-slider__track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
}

.news-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-orange);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  transition: border-color 0.2s;
}

.news-card:hover {
  border-color: var(--color-orange);
}

.news-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}

.news-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(
      ellipse 85% 75% at 0% 100%,
      rgba(189, 90, 32, 0.72) 0%,
      rgba(189, 90, 32, 0.35) 35%,
      rgba(189, 90, 32, 0) 70%
    );
  mix-blend-mode: soft-light;
  transition: opacity 0.4s ease;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transform: scale(1);
  transition: filter 0.4s ease, transform 0.45s ease;
}

.news-card:hover .news-card__image img {
  filter: grayscale(0);
  transform: scale(1.08);
}

.news-card:hover .news-card__image::after {
  opacity: 1;
}

/* Новость без фотографии — логотип по центру на тёмном фоне */
.news-card__image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card__image--empty img {
  width: 45%;
  height: auto;
  object-fit: contain;
  opacity: 0.35;
}
.news-card:hover .news-card__image--empty img {
  transform: none;
  opacity: 0.6;
}
.news-card__date {
  padding: 20px 24px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-blue);
}

.news-card__title {
  margin: 12px 24px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-white);
  flex: 1;
}

.news-card__more {
  margin: 20px 24px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-orange);
}


@media (max-width: 1200px) {
  .catalog-card {
    flex-basis: calc((100% - 48px) / 3);
  }

  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero__grid,
  .about__grid { grid-template-columns: 1fr; }
  .hero__visual {
    justify-self: center;
    order: -1;
  }
  .hero__title,
  .section__title { font-size: 32px; }
  .news-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 56px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__text {
    font-size: 16px;
  }

  .section {
    padding: 48px 0;
  }
  .section__title,
  .about__title { font-size: 26px; }
  .catalog-card,
  .news-card {
    flex-basis: 85%;
  }
  .advantages__grid { grid-template-columns: 1fr; }
}
