/* css/kak-zakazat.css */

/* ─── HERO ─── */
.kz-hero { padding: 40px 0 0; }

.kz-hero__card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.kz-hero__body {
  min-width: 0;
}

.kz-hero__title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}

.kz-hero__text {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
}

.kz-hero__text + .kz-hero__text { margin-top: 12px; }

.kz-hero__img-wrap {
  flex-shrink: 0;
}

.kz-hero__img-wrap img {
  width: auto;
  height: auto;
  max-width: 300px;
  max-height: 240px;
  display: block;
}

/* ─── ШАГИ ─── */
.kz-steps-section { padding: 16px 0 40px; }

.kz-steps-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 52px 56px;
  overflow: hidden;
}

.kz-path {
  position: relative;
  padding-left: 88px;
}

/* Дорожка-пунктир */
.kz-path::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  border-left: 2px dashed var(--red);
  opacity: 0.4;
}

/* ─── ОДИН ШАГ ─── */
.kz-step {
  position: relative;
  margin-bottom: 52px;
}

.kz-step:last-child { margin-bottom: 0; }

.kz-step__num {
  position: absolute;
  left: -88px;
  top: 8px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--red);
  z-index: 1;
}

.kz-step__title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  padding-top: 14px;
}

.kz-step__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 680px;
}

/* ─── КОНТАКТЫ В ШАГЕe 1 ─── */
.kz-contacts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.kz-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 10px;
  padding: 11px 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}

.kz-contact:hover { background: #ffe5e5; }
.kz-contact svg { color: var(--red); flex-shrink: 0; }

/* ─── РАЗВИЛКА В ШАГЕ 2 ─── */
.kz-fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.kz-fork__card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kz-fork__card .btn {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.kz-fork__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.kz-fork__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

/* ─── АДАПТИВ ─── */
@media (max-width: 900px) {
  .kz-hero__card {
    padding: 36px 32px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .kz-hero__img-wrap {
    display: flex;
    justify-content: center;
  }

  .kz-steps-card { padding: 36px 32px; }
}

@media (max-width: 900px) {
  .kz-fork { grid-template-columns: 1fr; }
  .kz-fork__card .btn {
    white-space: normal;
    line-height: 1.4;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 560px) {
  .kz-hero__card {
    padding: 28px 24px 24px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kz-hero__img-wrap {
    display: flex;
    justify-content: center;
    order: 2;
  }

  .kz-steps-card  { padding: 28px 24px; }
  .kz-path        { padding-left: 64px; }
  .kz-step__num   { left: -64px; width: 44px; height: 44px; font-size: 14px; }
  .kz-path::before { left: 21px; }
  .kz-contacts    { flex-direction: column; }
  .kz-contact     { justify-content: center; }
}
