/* ==========================================================================
   ТехноШок — главная страница
   ========================================================================== */

/* ---------- Hero ---------- */
.hero { padding-block: 32px 56px; overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-top: 16px; }
.hero .lead { margin-top: 20px; }
.hero .btn-row { margin-top: 32px; }

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--c-text-muted);
}
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; margin-top: -1px; color: var(--c-accent); stroke-width: 2.25; }

/* «подиум»: фото прижато к левому и нижнему краю тёплой подложки */
.hero__media { position: relative; padding: 16px 16px 0 0; }
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.hero__media img {
  position: relative;
  width: 100%;
  border-bottom-left-radius: var(--r-lg);
  mix-blend-mode: multiply;
}
.hero__tag {
  display: none; /* на телефоне скрыта, с 768px — grid */
  position: absolute;
  left: 16px;
  bottom: 16px;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.hero__tag strong { font: 700 0.9375rem/1.3 var(--font-head); }
.hero__tag > span { font-size: 0.8125rem; line-height: 1.4; color: var(--c-text-muted); }

@media (min-width: 768px) {
  .checklist { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 24px; }
  .hero__media { padding: 32px 32px 0 0; }
  .hero__tag { display: grid; left: 24px; bottom: 24px; }
}

@media (min-width: 1024px) {
  .hero { padding-block: 56px 88px; }
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; }
  .checklist { grid-template-columns: 1fr; }
}

@media (min-width: 1280px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- Цифры ---------- */
.section--stats { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

.stat__unit {
  margin-left: 0.12em;
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0;
}

/* ---------- Технологическая цепочка ---------- */
.chain { display: grid; }
.chain__stage {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 40px;
}
.chain__stage:last-child { padding-bottom: 0; }
.chain__stage:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: 8px;
  width: 2px;
  background: var(--c-border);
}
.chain__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--c-accent);
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-accent);
  font: 700 0.875rem/1 var(--font-head);
  font-variant-numeric: tabular-nums;
}
.chain__body { display: grid; gap: 16px; }
.chain__name { padding-top: 7px; font: 700 1.125rem/1.35 var(--font-head); }
.chain__note { margin-top: 8px; font-size: 0.875rem; line-height: 1.5; color: var(--c-text-muted); }
.chain__cards { display: grid; gap: 12px; }

/* флагман на телефоне — фото сверху на всю ширину */
@media (max-width: 639px) {
  .chain__cards .card--featured { flex-direction: column; }
  .chain__cards .card--featured .card__media {
    flex-basis: auto;
    width: auto;
    height: auto;
    aspect-ratio: 16 / 10;
    margin: 0;
    border-radius: 0;
  }
  .chain__cards .card--featured .card__media img { position: static; }
  .chain__cards .card--featured .card__body { padding: 16px; }
  .chain__cards .card--featured .card__more { display: inline-flex; }
}

@media (min-width: 640px) {
  .chain__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .chain__cards .card--featured { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .chain__stage { gap: 20px; padding-bottom: 48px; }
  .chain__name { padding-top: 4px; font-size: var(--fs-h3); line-height: 1.25; }
  .chain__cards .card--row .card__media { flex-basis: 42%; }
  .chain__cards > .card:only-child { grid-column: 1 / -1; }
  .chain__cards > .card:only-child .card__media { flex-basis: 32%; }
  .chain__cards .card--featured .card__media { flex-basis: 50%; min-height: 240px; }
}

@media (min-width: 1280px) {
  .chain__body { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 24px; align-items: start; }
}

/* ---------- Линия АС 275 (компактный блок на светлом фоне) ---------- */
.line__stats {
  margin-bottom: 24px;
  padding: 4px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
}
.line__stats .stat { padding-block: 16px; }
.line__stats .stat__value { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
.line__stats .stat__label { margin-top: 6px; font-size: 0.875rem; }

.line__grid { display: grid; gap: 24px; }
.line__photo img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 1403 / 752;
  object-fit: cover;
  border-radius: var(--r-md);
}
.line__specs {
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
}
.line__specs h3 { margin-bottom: 12px; font-size: 1.125rem; line-height: 1.35; }
.line__specs .specs { border-top: 0; }
.line__specs .specs__row { padding: 10px 0; }
.line__specs .specs__row:last-child { border-bottom: 0; }
.line__specs .btn-row { margin-top: 16px; }

.products {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
}
.products__img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-sm); }
.products__title { font: 700 1.0625rem/1.35 var(--font-head); }
.products__text { margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--c-text-muted); }
.products .chips { grid-column: 1 / -1; margin-top: 4px; }

/* на телефоне фото и заголовок в строку, чипы — на всю ширину под ними */
@media (max-width: 639px) {
  .products { row-gap: 4px; }
  .products .chips { margin-top: 12px; }
  .products__body { display: contents; }
  .products__img { grid-row: span 2; }
  .products__title,
  .products__text { grid-column: 2; }
}
.products .chip { min-height: 32px; padding: 4px 12px; font-size: 0.875rem; }

@media (min-width: 640px) {
  .products { grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px; }
  .products__img { width: 140px; height: 140px; }
  .products .chips { grid-column: auto; margin-top: 12px; }
}

@media (min-width: 1024px) {
  .line__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
  .line__photo img { aspect-ratio: auto; }
  .line__specs { padding: 24px 28px; }
}

/* ---------- О компании ---------- */
.about__grid { display: grid; gap: 40px; }
.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.about__figure figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--c-text-subtle); }
.features { display: grid; gap: 28px 32px; }

/* на телефоне преимущества компактнее: иконка слева от текста */
@media (max-width: 639px) {
  .features { gap: 20px; }
  .features .feature { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; }
  .features .feature__icon { grid-row: span 2; width: 40px; height: 40px; }
  .features .feature__icon .icon { width: 20px; height: 20px; }
  .features .feature__title { font-size: 1.0625rem; }
}

.about__links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; }

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* на мобильном сначала заголовок и преимущества, фото — после них */
@media (max-width: 1023px) {
  .about__figure { order: 2; }
}

@media (min-width: 1024px) {
  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .about__figure { position: sticky; top: calc(var(--header-h) + 24px); }
  .about__figure img { aspect-ratio: 4 / 5; }
}
