/* Индивидуальные стили главной страницы. */

/* Первый экран: заголовок слева, знак в фокусе справа. */
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  min-height: 580px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 64px;
  padding: 88px 40px 80px 0;
  border-right: 1px solid var(--line);
}
.hero h1 {
  margin-top: 28px;
  font-size: clamp(40px, 4.45vw, 64px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-lead { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.hero-lead p { flex: 1 1 280px; max-width: 340px; font-size: 18px; line-height: 1.55; color: var(--soft); }
.hero-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 0 48px 40px;
}
.hero-figure img { display: block; width: min(430px, 100%); height: auto; }

/* Услуги: строгий список вместо карточек. */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.services::before { content: ""; grid-column: 1 / -1; border-top: 1px solid var(--line); }
.service {
  display: flex;
  flex-direction: column;
  padding: 44px 40px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service:first-of-type { padding-left: 0; }
.service:last-of-type { padding-right: 0; border-right: 0; }
.service:hover { text-decoration: none; }
.service-head { display: flex; justify-content: space-between; gap: 16px; font-size: 18px; }
.service strong { margin: 40px 0 14px; font-size: 34px; letter-spacing: -.04em; }
.service-text { font-size: 15px; line-height: 1.6; color: var(--soft); max-width: 300px; }
.service:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Продукты: тёмная полоса. */
.products { margin-top: 140px; padding: 0 0 104px; background: var(--graphite); color: #f2f2f0; }
.products .section-head { padding-top: 112px; padding-bottom: 64px; }
.products .section-head > p { color: var(--graphite-soft); }
.product-list { margin: 0; padding: 0; list-style: none; }
.product-list li {
  display: grid;
  grid-template-columns: 160px 1fr 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--graphite-line);
}
.product-list li:last-child { border-bottom: 1px solid var(--graphite-line); }
.product-list .label { color: var(--graphite-muted); }
.product-list h3 { font-size: clamp(30px, 3vw, 40px); font-weight: 600; letter-spacing: -.045em; }
.product-list p { font-size: 15px; color: var(--graphite-soft); max-width: 420px; }

/* Как мы работаем */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 8px 0 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.steps-dots { display: flex; gap: 6px; }
.steps-dots i { width: 7px; height: 7px; border: 1px solid var(--ink); border-radius: 50%; }
.steps-dots i.on { background: var(--ink); }
.steps h3 { margin: 44px 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.steps p { font-size: 14px; color: var(--soft); max-width: 240px; }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-figure { order: -1; padding: 28px 0 8px; }
  .hero-figure img { width: 240px; }
  .hero-figure .label { display: none; }
  .hero-text { gap: 28px; padding: 16px 0 56px; border-right: 0; }
  .hero h1 { margin-top: 16px; font-size: clamp(36px, 11.5vw, 46px); }
  .hero-lead p { font-size: 16px; }
  .hero-lead .button { width: 100%; justify-content: space-between; }
  .services { grid-template-columns: 1fr; }
  .service, .service:first-of-type, .service:last-of-type { padding: 22px 0; border-right: 0; }
  .service strong { margin: 10px 0 6px; font-size: 26px; }
  .service-text { font-size: 14px; }
  .products { margin-top: 96px; padding-bottom: 72px; }
  .products .section-head { padding-top: 72px; padding-bottom: 32px; }
  .product-list li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps h3 { margin-top: 18px; }
}
