@charset "utf-8";

/* ==========================================================================
   ЭПД — электронные перевозочные документы.
   Добавка к style.min.css: полоска на первом экране + секция на втором.
   Все классы с префиксом epd_, ничего существующего не переопределяем,
   кроме одной строки с отступом промо-секции (см. ниже).
   ========================================================================== */

/* Первый экран: полоска съедает высоту — компенсируем верхним отступом промо.
   Нижний отступ ужат так, чтобы от картинки до плитки «ЭДО нужен любому
   бизнесу» оставалось ~50px вместо 115px. */
.promo_section { padding-bottom: 238px; padding-top: 24px; }

/* 993–1080px: картинка героя подрезается справа, её видимый низ поднимается,
   и разрыв до плитки снова растёт. Добираем плавно, а не ступенькой. */
@media (min-width: 993px) and (max-width: 1080px) {
  .promo_section { padding-bottom: max(158px, calc(238px - (1080px - 100vw) * .9)); }
}

/* --------------------------------------------------------------- баннер */

.epd_bar_wrap { padding-bottom: 20px; padding-top: 4px; width: 100%; }

.epd_bar {
  background-color: rgb(102, 37, 209);
  border-radius: 20px;
  color: rgb(255, 255, 255);
  display: block;
  overflow: hidden;
  padding: 26px 40px 24px;
  position: relative;
  text-decoration: none;
  transition: background-color .1s, box-shadow .1s;
  z-index: 3;
}

@media (hover: hover) {
  .epd_bar:hover { background-color: rgb(88, 30, 184); box-shadow: rgba(102, 37, 209, .28) 0 12px 32px 0; }
}

.epd_bar:active { background-color: rgb(88, 30, 184); }

.epd_bar__title {
  display: block;
  font-family: Raleway, Helvetica, sans-serif;
  font-size: clamp(19px, 2.85vw, 38px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.14;
  text-transform: uppercase;
}

.epd_bar__row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 10px;
}

.epd_bar__date {
  background-color: rgb(210, 10, 17);
  border-radius: 8px;
  display: inline-block;
  font-family: Raleway, Helvetica, sans-serif;
  font-size: clamp(19px, 2.85vw, 38px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.14;
  padding: 2px 16px 5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* светло-фиолетовая — контрастнее белого на фиолетовом фоне баннера */
.epd_bar__icon { display: block; flex-shrink: 0; }

.epd_bar__icon svg {
  fill: none;
  height: 46px;
  stroke: rgb(209, 219, 250);
  width: auto;
}

.epd_bar__foot {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: space-between;
  margin-top: 14px;
}

.epd_bar__aud {
  color: rgba(255, 255, 255, .88);
  font-size: 1.0625rem;
  letter-spacing: .01em;
  line-height: 22px;
  max-width: 900px;
}

.epd_bar__more {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 600;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
}

.epd_bar__more svg { height: 20px; stroke: rgb(255, 255, 255); width: 20px; }

@media (max-width: 992px) {
  /* колонка с текстом здесь выше, а картинка стоит на том же месте —
     нижний отступ приходится дожимать, иначе разрыв до плитки снова растёт */
  .promo_section { padding-bottom: 140px; }
  .epd_bar { padding: 24px 28px 22px; }
}

@media (max-width: 576px) {
  /* padding-bottom обязательно переопределить: правило выше перебивает
     мобильные 90px из style.min.css (одинаковая специфичность, файл ниже) */
  .promo_section { padding-bottom: 30px; padding-top: 12px; }
  .epd_bar_wrap { padding-bottom: 14px; padding-top: 0; }
  .epd_bar { border-radius: 16px; padding: 20px 14px 18px; }
  .epd_bar__title { font-size: 21px; line-height: 1.16; }
  .epd_bar__row { gap: 8px 10px; margin-top: 8px; }
  /* иконку на мобильном не показываем — плашка с датой остаётся крупной */
  .epd_bar__icon { display: none; }
  .epd_bar__date {
    border-radius: 6px;
    font-size: 21px;
    padding: 1px 10px 3px;
    white-space: normal;
  }
  .epd_bar__foot { gap: 12px; margin-top: 14px; }
  .epd_bar__aud { font-size: .9375rem; line-height: 20px; }
  .epd_bar__more { font-size: .9375rem; margin-left: 0; }
}

/* ---------------------------------------------------------------- секция */

/* баннер и ссылки ведут по якорю: пункт меню скроллит скриптом сайта
   с учётом шапки, а обычному якорю нужен этот отступ */
#epd, #epd-tariff { scroll-margin-top: 96px; }

.epd_section .section_descr { margin-bottom: 0; max-width: 940px; }

.epd_section .section_descr a { color: rgb(102, 37, 209); text-decoration: underline; }

@media (hover: hover) {
  .epd_section .section_descr a:hover { color: rgb(133, 64, 246); }
}

.epd_subtitle {
  color: rgb(35, 31, 32);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 28px;
  margin-bottom: 24px;
  margin-top: 56px;
}

/* --- какие документы --- */

.epd_row {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.epd_item {
  background-color: rgb(248, 244, 231);
  border-radius: 8px;
  padding: 28px;
  position: relative;
  width: calc(33.3333% - 16px);
}

.epd_row__4 .epd_item { width: calc(25% - 18px); }

.epd_item__icon {
  align-items: center;
  background-color: rgb(255, 255, 255);
  border-radius: 12px;
  display: flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 20px;
  width: 48px;
}

.epd_item__icon svg { height: 26px; stroke: rgb(102, 37, 209); width: 26px; }

.epd_title {
  color: rgb(35, 31, 32);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 24px;
  margin-bottom: 12px;
}

.epd_item p {
  color: rgb(100, 103, 112);
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 22px;
}

.epd_item p + p { margin-top: 12px; }

.epd_note { color: rgb(140, 139, 133) !important; font-size: .9375rem !important; }

/* --- кому нужно --- */

.epd_who {
  counter-reset: epd;
  display: grid;
  gap: 20px 24px;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.epd_who li {
  counter-increment: epd;
  padding-left: 52px;
  position: relative;
}

.epd_who li::before {
  align-items: center;
  background-color: rgb(241, 235, 252);
  border-radius: 50%;
  color: rgb(102, 37, 209);
  content: counter(epd);
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: -4px;
  width: 36px;
}

.epd_who strong {
  color: rgb(35, 31, 32);
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 24px;
}

.epd_who span {
  color: rgb(100, 103, 112);
  display: block;
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 22px;
  margin-top: 4px;
}

.epd_cta {
  align-items: center;
  background-color: rgb(241, 235, 252);
  border-radius: 16px;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin-top: 32px;
  padding: 24px 32px;
}

.epd_cta p {
  color: rgb(100, 103, 112);
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 22px;
}

.epd_cta p strong { color: rgb(35, 31, 32); font-weight: 600; }

.epd_cta .btn { flex-shrink: 0; width: 287px; }

/* --- как это работает --- */

.epd_steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.epd_step {
  border-top: 2px solid rgb(230, 224, 205);
  padding-top: 20px;
  width: calc(33.3333% - 16px);
}

.epd_step__num {
  align-items: center;
  background-color: rgb(102, 37, 209);
  border-radius: 50%;
  color: rgb(255, 255, 255);
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  margin-bottom: 14px;
  width: 32px;
}

.epd_step p {
  color: rgb(100, 103, 112);
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 22px;
}

.epd_roaming {
  align-items: flex-start;
  background-color: rgb(248, 244, 231);
  border-radius: 12px;
  color: rgb(35, 31, 32);
  display: flex;
  font-size: 1rem;
  gap: 14px;
  letter-spacing: .02em;
  line-height: 22px;
  margin-top: 28px;
  padding: 18px 24px;
}

.epd_roaming svg { flex-shrink: 0; height: 24px; stroke: rgb(102, 37, 209); width: 24px; }

.epd_roaming + .epd_roaming { margin-top: 12px; }

/* --- риски --- */

.epd_risks {
  background-color: rgb(253, 236, 237);
  border-radius: 16px;
  margin-top: 56px;
  padding: 28px 32px;
}

.epd_risks__title {
  color: rgb(35, 31, 32);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 26px;
}

.epd_risks__lead {
  color: rgb(100, 103, 112);
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 22px;
  margin-top: 8px;
}

.epd_risks__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.epd_risks__list li {
  color: rgb(35, 31, 32);
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 22px;
  padding-left: 30px;
  position: relative;
  width: calc(33.3333% - 16px);
}

.epd_risks__list li::before {
  background-color: rgb(210, 10, 17);
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 8px;
  position: absolute;
  top: 7px;
  width: 8px;
}

@media (max-width: 1024px) {
  .epd_row__4 .epd_item { width: calc(50% - 12px); }
  .epd_item { width: calc(50% - 12px); }
  .epd_step { width: calc(50% - 12px); }
  .epd_risks__list li { width: calc(50% - 12px); }
}

@media (max-width: 768px) {
  .epd_cta { align-items: flex-start; flex-direction: column; gap: 20px; }
  .epd_cta .btn { width: 100%; }
  .epd_who { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .epd_subtitle { font-size: 1.25rem; line-height: 26px; margin-top: 40px; }
  .epd_row__4 .epd_item, .epd_item { padding: 20px; width: 100%; }
  .epd_step { width: 100%; }
  .epd_risks { padding: 20px; }
  .epd_risks__list li { width: 100%; }
  .epd_roaming { padding: 16px 18px; }
  .epd_cta { padding: 20px; }
}

/* ------------------------------------------------- спецтариф под тарифами */

.epd_tariff {
  align-items: stretch;
  background-color: rgb(248, 244, 231);
  border-radius: 16px;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin-top: 24px;
  padding: 32px 48px;
}

.epd_tariff__info { flex: 1 1 auto; min-width: 0; }

.epd_tariff__label {
  align-items: center;
  color: rgb(102, 37, 209);
  display: flex;
  font-size: 1rem;
  font-weight: 600;
  gap: 8px;
  letter-spacing: .01em;
  margin-bottom: 10px;
}

.epd_tariff__label svg { height: 22px; stroke: rgb(102, 37, 209); width: 22px; }

.epd_tariff__title {
  color: rgb(35, 31, 32);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: normal;
}

.epd_tariff__descr {
  color: rgb(100, 103, 112);
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 22px;
  margin-top: 8px;
}

.epd_tariff__info ul { font-size: 1.0625rem; letter-spacing: .01em; margin-left: 0; margin-top: 18px; }

.epd_tariff__info ul li { margin-bottom: 6px; }

.epd_tariff__note {
  color: rgb(140, 139, 133);
  font-size: .9375rem;
  letter-spacing: .01em;
  line-height: 20px;
  margin-top: 16px;
}

.epd_tariff__offer {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 16px;
  width: 293px;
}

.epd_tariff__offer { justify-content: center; }

.epd_tariff__price {
  color: rgb(35, 31, 32);
  font-size: 2.5rem;
  letter-spacing: .01em;
  line-height: 44px;
  text-align: center;
}

.epd_tariff__price strong { font-weight: 600; }

.epd_tariff__offer .tariff_time { background-color: rgb(255, 255, 255); justify-content: center; }

.epd_tariff__link {
  color: rgb(102, 37, 209);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
}

@media (hover: hover) {
  .epd_tariff__link:hover { color: rgb(133, 64, 246); }
}

@media (max-width: 992px) {
  .epd_tariff { flex-direction: column; gap: 28px; padding: 32px; }
  .epd_tariff__offer { width: 100%; }
}

@media (max-width: 576px) {
  .epd_tariff { border-radius: 12px; padding: 24px; }
  .epd_tariff__title { font-size: 1.25rem; }
  .epd_tariff__info ul { font-size: 1rem; }
}

/* пункт меню «ЭПД» */

/* пятый пункт добавляет шапке ширины — компенсируем отступами между блоками,
   иначе кнопки уезжают правее контейнера (ниже 1221px меню и так в бургере) */
@media (min-width: 1221px) {
  .header_app__row { column-gap: 16px; }
  .site_btns { gap: 20px; }
}

.site_nav__item_new { position: relative; }

.site_nav__item_new::after {
  background-color: rgb(210, 10, 17);
  border-radius: 50%;
  content: "";
  display: block;
  height: 6px;
  position: absolute;
  right: -10px;
  top: -2px;
  width: 6px;
}

@media (max-width: 1220px) {
  .epd_section .container::after { display: none; }
  .epd_item { width: calc(50% - 12px); }
  .epd_date { width: calc(50% - 12px); }
}

@media (max-width: 768px) {
  .epd_item { width: 100%; }
  .epd_date { width: 100%; }
  .epd_foot { align-items: flex-start; flex-direction: column; gap: 20px; }
  .epd_foot .btn { width: 100%; }
}

@media (max-width: 576px) {
  .epd_section .section_descr { margin-bottom: 28px; }
  .epd_item { padding: 24px; }
  .epd_foot { margin-top: 32px; padding: 24px; }
}
