/*
 * Страницы-инструкции для покупателей: «Как оформить заказ», «Доставка и оплата».
 * Бордовая палитра, как у «Скидок и бонусов». Каждый пункт: заголовок, одна строка
 * коротко и под ней блок «Подробнее».
 */

.guide-hero {
  text-align: center;
  padding: 40px 20px 26px;
}
.guide-hero__icon {
  margin-bottom: 16px;
}
.guide-hero__title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px;
}
.guide-hero__subtitle {
  font-size: 16px;
  color: #666;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Оглавление: весь путь на одном экране */
.guide-map {
  margin: 0 0 44px;
}
.guide-map__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-map__list--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.guide-map__item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e6d9dc;
  border-radius: 10px;
  color: #3f141e;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.guide-map__item:hover,
.guide-map__item:focus {
  background: #faf7f5;
  border-color: rgba(107, 31, 44, 0.45);
  color: #3f141e;
  text-decoration: none;
}
.guide-map__num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #6B1F2C;
  background: rgba(107, 31, 44, 0.1);
  border-radius: 50%;
}
.guide-map__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* Пункты: маркер слева, текст справа. У пошаговой инструкции
   (--timeline) маркеры связаны линией в одну дорожку */
.guide-steps {
  margin-bottom: 40px;
}
.guide-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 18px;
  padding-bottom: 36px;
}
.guide-step:last-child {
  padding-bottom: 0;
}
.guide-steps--timeline .guide-step::before {
  content: '';
  position: absolute;
  top: 48px;
  bottom: 8px;
  left: 19px;
  width: 2px;
  background: rgba(107, 31, 44, 0.14);
  border-radius: 1px;
}
.guide-steps--timeline .guide-step:last-child::before {
  display: none;
}
.guide-step__num,
.guide-step__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.guide-step__num {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: #6B1F2C;
}
/* Тематический пункт: бренд-цвет только в иконке, круг светлый */
.guide-step__icon {
  font-size: 18px;
  color: #6B1F2C;
  background: rgba(107, 31, 44, 0.1);
}
.guide-step__site {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #8a6f74;
  text-transform: uppercase;
}
.guide-step__title {
  margin: 6px 0 6px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: #3f141e;
}
.guide-step__site + .guide-step__title {
  margin-top: 0;
}
.guide-step__brief {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.5;
  color: #2f2a28;
}
.guide-step__details {
  padding: 16px 20px 6px;
  background: #faf8f7;
  border: 1px solid rgba(63, 20, 30, 0.08);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: #555;
}
.guide-step__label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6B1F2C;
}
.guide-step__details p {
  margin: 0 0 12px;
}
.guide-step__details a {
  color: #6B1F2C;
  text-decoration: underline;
}
.guide-list {
  margin: 0 0 12px;
  padding-left: 20px;
}
.guide-list li {
  margin-bottom: 8px;
}
.guide-list li::marker {
  color: #6B1F2C;
}
.guide-more {
  font-weight: 600;
}
/* Кнопка внутри текста («Позвоните мне», смена города) выглядит как ссылка */
.guide-inline-btn {
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: #6B1F2C;
  background: none;
  border: 0;
  border-bottom: 1px dashed rgba(107, 31, 44, 0.6);
  cursor: pointer;
}

/* Ряд небольших кнопок связи внутри пункта: светлые, бренд-цвет в тексте */
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #6B1F2C;
  background: #fff;
  border: 1px solid rgba(107, 31, 44, 0.3);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.guide-step__details a.guide-btn {
  text-decoration: none;
}
.guide-btn:hover,
.guide-btn:focus {
  background: rgba(107, 31, 44, 0.06);
  border-color: rgba(107, 31, 44, 0.5);
  color: #4A1A1F;
  text-decoration: none;
}

/* Карточки служб доставки и способов оплаты */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 4px 0 14px;
}
.guide-card {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(63, 20, 30, 0.1);
  border-radius: 10px;
}
.guide-card__title {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #3f141e;
}
.guide-card__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  color: #2F7A43;
  background: rgba(47, 122, 67, 0.08);
  border: 1px solid rgba(47, 122, 67, 0.3);
  border-radius: 10px;
  vertical-align: 1px;
}
.guide-step__details .guide-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.guide-card__note {
  margin-top: 6px !important;
  font-size: 13px !important;
  color: #8a7f7a;
}

.guide-tip {
  display: flex;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(63, 20, 30, 0.1);
  border-radius: 10px;
}
.guide-tip__icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.4;
  color: #6B1F2C;
}
.guide-step__details .guide-tip p {
  margin: 0;
  font-size: 14px;
}

/* Цепочка этапов: статусы заказа и т.п. */
.guide-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.guide-chain li {
  font-size: 13px;
  font-weight: 600;
  color: #3f141e;
  white-space: nowrap;
}
.guide-chain li:not(:last-child)::after {
  content: '→';
  margin: 0 2px 0 6px;
  font-weight: 400;
  color: #b59aa0;
}

/* Срок доставки до города посетителя */
.guide-estimate {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(63, 20, 30, 0.1);
  border-radius: 10px;
}
.guide-estimate__city {
  margin-bottom: 8px;
  font-size: 15px;
  color: #3f141e;
}
.guide-estimate__rows {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-bottom: 6px;
}
.guide-estimate__row {
  font-size: 15px;
  color: #3f141e;
}
.guide-estimate__row strong {
  margin-left: 4px;
}
.guide-step__details .guide-estimate__note {
  margin: 0;
  font-size: 13px;
  color: #8a7f7a;
}

/* Сноска после пунктов и финальный призыв */
.guide-notice {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(63, 20, 30, 0.04);
  border: 1px solid rgba(63, 20, 30, 0.12);
  border-radius: 10px;
  margin-bottom: 30px;
}
.guide-notice__icon {
  font-size: 22px;
  color: #6B1F2C;
  flex-shrink: 0;
  padding-top: 2px;
}
.guide-notice__content {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}
.guide-notice__content p {
  margin: 0;
}
.guide-notice__content a {
  color: #6B1F2C;
  text-decoration: underline;
}

.guide-cta {
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(135deg, rgba(74, 26, 31, 0.05) 0%, rgba(107, 31, 44, 0.09) 100%);
  border: 1px solid rgba(63, 20, 30, 0.1);
  border-radius: 16px;
  margin-bottom: 40px;
}
.guide-cta__title {
  font-size: 22px;
  font-weight: 700;
  color: #3f141e;
  margin: 0 0 8px;
}
.guide-cta__text {
  color: #666;
  margin: 0 0 22px;
}
.guide-cta__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.guide-cta__btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.guide-cta__btn--primary {
  background: linear-gradient(135deg, #4A1A1F, #6B1F2C);
  border: 1px solid #4A1A1F;
  color: #fff;
}
.guide-cta__btn--primary:hover,
.guide-cta__btn--primary:focus {
  background: linear-gradient(135deg, #5B2028, #7C2837);
  color: #fff;
  text-decoration: none;
}
.guide-cta__btn--secondary {
  background: #fff;
  color: #6B1F2C;
  border: 1px solid rgba(107, 31, 44, 0.4);
}
.guide-cta__btn--secondary:hover,
.guide-cta__btn--secondary:focus {
  background: rgba(107, 31, 44, 0.06);
  color: #4A1A1F;
  text-decoration: none;
}

@media (max-width: 991px) {
  .guide-map__list,
  .guide-map__list--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .guide-hero {
    padding: 20px 4px 18px;
  }
  .guide-hero__title {
    font-size: 26px;
  }
  .guide-hero__subtitle {
    font-size: 15px;
  }
  .guide-map {
    margin-bottom: 32px;
  }
  .guide-map__list,
  .guide-map__list--4 {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .guide-map__item {
    padding: 8px 12px;
  }
  .guide-step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0 12px;
    padding-bottom: 28px;
  }
  .guide-steps--timeline .guide-step::before {
    top: 40px;
    left: 15px;
  }
  .guide-step__num,
  .guide-step__icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  .guide-step__title {
    font-size: 20px;
  }
  .guide-step__brief {
    font-size: 16px;
  }
  .guide-step__details {
    padding: 14px 14px 4px;
  }
  .guide-cards {
    grid-template-columns: 1fr;
  }
  .guide-notice {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
  .guide-cta {
    padding: 24px 16px;
  }
  .guide-cta__btn {
    width: 100%;
  }
}
