/* СЕКЦИЯ «ПЕРВЫЙ ЭКРАН» — главная */

.intro {
  --intro-bevel: 25%; /* срез левого края фото */
  --intro-skew: -17deg; /* наклон плашки «Каталог продукции» */

  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: -200px;
  z-index: 0;
  width: 1066px;
  height: 503px;
  border-radius: 50%;
  background-color: var(--glow);
  opacity: 0.24;
  filter: blur(72.85px);
  pointer-events: none;
}

.intro::after {
  content: '';
  position: absolute;
  top: calc(var(--header-h) + 64px);
  left: 38%;
  z-index: 1;
  width: 560px;
  height: 534px;
  background-color: var(--text-primary);
  opacity: 0.2;
  -webkit-mask: url('../../imgs/intro-pattern.svg') no-repeat center / contain;
  mask: url('../../imgs/intro-pattern.svg') no-repeat center / contain;
  pointer-events: none;
}

/* ---- Верхний блок ---- */

.intro__hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 140px) 0 60px;
}

.intro__media {
  position: absolute;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 45%;
  height: calc(100% - var(--header-h));
  clip-path: polygon(var(--intro-bevel) 0, 100% 0, 100% 100%, 0 100%);
}

.intro__media picture,
.intro__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro .container {
  position: relative;
  z-index: 3;
}

.intro__content {
  max-width: 725px;
}

.intro__badge {
  display: block;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.intro__title {
  margin-bottom: 20px;
  text-transform: uppercase;
}

.intro__desc {
  margin-bottom: 50px;
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.intro__btn {
  width: auto;
  min-width: 285px;
  max-width: none;
}

/* ---- Каталог продукции ---- */

.intro__catalog {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 10px;
  padding-top: 40px;
  padding-bottom: 90px;
}

.intro__plaque-wrap {
  display: flex;
  margin-left: -10%;
}

.intro__plaque {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 300px;
  flex: 1;
  padding: 35px 110px 35px 30px;
  text-transform: uppercase;
}

.intro__plaque::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -56px;
  right: 56px;
  z-index: -1;
  border: 1px solid var(--text-primary);
  transform: skewX(var(--intro-skew));
  background-color: #0D2A4A;
}

.intro__plaque::after {
  content: '';
  display: none;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  background-color: var(--button);
  -webkit-mask: url('data:image/svg+xml,<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M18.3202 5.33606L30.4841 17.5L18.3202 29.6639L16 27.3437L25.8438 17.5L16 7.65625L18.3202 5.33606Z" fill="%230D4EA6"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.19531 15.8594H28.4375V19.1406H5.19531V15.8594Z" fill="%230D4EA6"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml,<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M18.3202 5.33606L30.4841 17.5L18.3202 29.6639L16 27.3437L25.8438 17.5L16 7.65625L18.3202 5.33606Z" fill="%230D4EA6"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.19531 15.8594H28.4375V19.1406H5.19531V15.8594Z" fill="%230D4EA6"/></svg>') no-repeat center / contain;
}

.intro__plaque:hover {
  opacity: 0.7;
}

/* ---- Карточки категорий ---- */

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

.intro__item {
  display: flex;
}

.intro__card {
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: var(--cards);
  border: 1px solid color-mix(in srgb, var(--text-primary) 25%, transparent);
}

.intro__card:hover {
  opacity: 0.85;
}

.intro__card-media {
  display: block;
}

.intro__card-media img {
  display: block;
  width: 100%;
  height: 119px;
  object-fit: cover;
}

.intro__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 10px 10px 18px;
}

.intro__card-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
}

.intro__card-action::after {
  content: '';
  flex-shrink: 0;
  width: 67px;
  height: 8px;
  background-color: var(--text-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='67' height='8' viewBox='0 0 67 8'%3E%3Cpath d='M0.5 3.18198C0.223858 3.18198 0 3.40583 0 3.68198C0 3.95812 0.223858 4.18198 0.5 4.18198V3.68198V3.18198ZM66.8536 4.03553C67.0488 3.84027 67.0488 3.52369 66.8536 3.32842L63.6716 0.146442C63.4763 -0.0488198 63.1597 -0.0488198 62.9645 0.146442C62.7692 0.341705 62.7692 0.658287 62.9645 0.853549L65.7929 3.68198L62.9645 6.5104C62.7692 6.70567 62.7692 7.02225 62.9645 7.21751C63.1597 7.41277 63.4763 7.41277 63.6716 7.21751L66.8536 4.03553ZM0.5 3.68198V4.18198H66.5V3.68198V3.18198H0.5V3.68198Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='67' height='8' viewBox='0 0 67 8'%3E%3Cpath d='M0.5 3.18198C0.223858 3.18198 0 3.40583 0 3.68198C0 3.95812 0.223858 4.18198 0.5 4.18198V3.68198V3.18198ZM66.8536 4.03553C67.0488 3.84027 67.0488 3.52369 66.8536 3.32842L63.6716 0.146442C63.4763 -0.0488198 63.1597 -0.0488198 62.9645 0.146442C62.7692 0.341705 62.7692 0.658287 62.9645 0.853549L65.7929 3.68198L62.9645 6.5104C62.7692 6.70567 62.7692 7.02225 62.9645 7.21751C63.1597 7.41277 63.4763 7.41277 63.6716 7.21751L66.8536 4.03553ZM0.5 3.68198V4.18198H66.5V3.68198V3.18198H0.5V3.68198Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ============================================
   ПЛАНШЕТ ≤ 1080px
   ============================================ */

@media (max-width: 1530px) {
  .intro__plaque-wrap {
    margin-left: 0;
  }

  .intro__plaque::before {
    left: 0;
  }

  .intro {
    --intro-skew: -10deg;
  }
}

@media (max-width: 1080px) {

  .intro {
    --intro-bevel: 80px;
    --intro-skew: -12deg;
  }

  .intro__hero {
    min-height: 560px;
    padding: calc(var(--header-h) + 40px) 0 40px;
  }

  .intro__content {
    max-width: 55%;
  }

  .intro__catalog {
    grid-template-columns: 1fr;
  }

  .intro__plaque {
    justify-content: center;
    min-height: 160px;
    padding: 30px 60px;
  }

  .intro__plaque-wrap {
    margin-left: initial;
  }

  .intro__plaque::before {
    left: 10px;
    right: 10px;

  }
}

/* ============================================
   МОБАЙЛ ≤ 768px
   ============================================ */

@media (max-width: 768px) {


  .intro::before {
    left: -50%;
    width: 200%;
    height: 320px;
  }

  .intro::after {
    top: calc(var(--header-h) + 24%);
    width: 340px;
    height: 324px;
    left: -28px;
  }

  .intro__hero {
    display: block;
    min-height: 0;
    padding: calc(var(--header-h) + 10px) 0 144px;
  }

  .intro__media {
    width: 100%;
    height: 346px;
    top: calc(var(--header-h) + 50%);
    left: 20px;
  }

  .intro__content {
    max-width: 100%;
  }

  .intro__badge {
    margin-bottom: 20px;
    text-align: center;
  }

  .intro__title {
    margin-bottom: 10px;
  }

  
  .intro__desc {
    margin-bottom: 20px;
  }

  .intro__actions {
    flex-direction: column;
    gap: 20px;
  }

  .intro__btn {
    width: 100%;
    min-width: 0;
  }

  .intro__catalog {
    gap: 12px;
    padding-top: 0;
    padding-bottom: 40px;
  }

  .intro__plaque {
    justify-content: space-between;
    gap: 20px;
    min-height: 0;
    padding: 34px 10px;
  }

  .intro__plaque::before {
    transform: none;
    left: 0;
    right: 0;
  }

  .intro__plaque::after {
    display: block;
  }

  .intro__cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .intro__card {
    flex-direction: row;
  }

  .intro__card-media {
    flex-shrink: 0;
    width: 120px;
  }

  .intro__card-media img {
    height: 100%;
    aspect-ratio: auto;
  }

  .intro__card-body {
    padding: 20px 8px;
    gap: 10px;
  }

  .intro__card-action {
    padding-top: 10px;
  }
}
