/* ═══════════════════════════════════════════════════════════════
   ABOUT — Страница «О компании»
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. H1 ──────────────────────────────────────────────────── */
.about-title {
  margin: 32px 0 40px;
}

/* ── 2. About block ─────────────────────────────────────────── */
.about-block {
  display: grid;
  grid-template-columns: minmax(400px, 1fr) minmax(300px, 479px);
  gap: 40px;
  margin-bottom: 120px;
}
.about-block__img {
  position: relative;
}
.about-block__img img:first-child {
  top: 0;
  left: 0;
  width: calc(100% - 100px);
  object-fit: cover;
  z-index: 1;
  height: 606px;
  margin-left: 100px;
}
.about-block__img img:last-child {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 382px;
  height: 395px;
  object-fit: cover;
  border-left: 2px solid #9F0505;
  z-index: 2;
}
.about-block__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-block__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.25;
}
.about-block__text {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.85;
}
.about-block__text p { margin-bottom: 12px; }
.about-block__text p:last-child { margin-bottom: 0; }
.about-block__text ul,
.about-block__text ol { padding-left: 20px; margin-bottom: 12px; }
.about-block__text li { margin-bottom: 6px; }

.about-block__text blockquote {
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  font-style: italic;
}

/* ── 3. About why ───────────────────────────────────────────── */
.about-why {
  padding: 0 0 60px;
}
.about-why .title-2 {
  margin-bottom: 60px;
}
.about-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
/* CSS-grid внутри item: иконка слева (span 2 строки), title + text справа */
.about-why__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  column-gap: 10px;
  row-gap: 10px;
  align-items: start;
}
.about-why__item img {
  grid-row: span 2;
  width: 90px;
  height: 86px;
  object-fit: contain;
  margin-top: 2px;
  align-self: center;
}
.about-why__item-title {
  font-family: var(--font-heading);
font-weight: 400;
font-size: 20px;
line-height: 100%;
}
.about-why__item-text {
font-weight: 400;
font-size: 16px;
line-height: 100%;

}

/* ── 4. Mat section ─────────────────────────────────────────── */
.mat {
  background: linear-gradient(
    to bottom,
    var(--background) 0%,
    #D7D7D7 150px,
    #D7D7D7 calc(100% - 130px),
    var(--background) 100%
  );
  padding: 100px 0;
}
.mat * { color: var(--text-dark); }
.mat__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
div.mat__text {
  font-size: 15px;
  line-height: 1.65;
  max-width: 800px;
}
div.mat__text p { margin-bottom: 10px; }
div.mat__text p:last-child { margin-bottom: 0; }
div.mat__text ul { list-style: disc; padding-left: 20px; }
div.mat__text li { margin-bottom: 6px; list-style: disc; }
.mat__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 40px;
}
.mat__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mat__img {
    position: relative;
}
.mat__img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;

}

.mat__img::after {
  display: block;
  content: '';
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border: 1px solid #9F050580;
  position: absolute;
  left: 10px;
  top: 10px;
}
p.mat__text {
  font-family: var(--font-heading);
font-weight: 400;
font-size: 26px;
line-height: 100%;
text-align: center;

}

/* ── 5. Media queries ───────────────────────────────────────── */
@media (max-width: 1080px) {
  
  .about-why__grid {
    gap: 28px 40px;
  }

  .about-block__img img:first-child {
    margin-left: 40px;
    width: calc(100% - 40px);
  }
  .mat__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-block {
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .about-block {
    gap: 40px;
    display: flex;
    flex-direction: column-reverse;
  }
  p.mat__text {
    font-size: 24px;
  }
  .about-block__img img:first-child {
    height: 352px;
    margin-left: 0;
    width: 100%;
  }

  .about-block__img img:last-child {
    width: 200px;
    height: 200px;
    bottom: 0;
    top: initial;
    transform: none;
  }
  .about-why__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-why__item img {
    width: 45px;
    height: 55px;
  }
  .mat {
    padding: 60px 0;
  }
  

  .about-why__item {
    grid-template-columns: 45px 1fr;
  }

  .about-why__item-title {
  font-family: var(--font-heading);
font-weight: 400;
font-size: 18px;
line-height: 100%;
}
.about-why__item-text {
font-weight: 400;
font-size: 15px;
line-height: 120%;

}
}

@media (max-width: 560px) {
  .mat__grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
}