/* ===========================================================
   Страница акции «Помогите нам стать лучше»
   /info/stanem-luchshe/
   Стилистика сайта elbamebel.com: шрифт Montserrat,
   тёмно-синий/индиго #331944 (фирменный цвет заголовков сайта)
   и акцентный оранжевый #FFB300 (фирменный цвет кнопок/бейджей сайта).
   Блок полностью самодостаточен (namespace .elba-promo),
   не трогает глобальные стили шаблона Aspro.
   =========================================================== */

.elba-promo {
  --c-dark: #331944;
  --c-dark-2: #2a1438;
  --c-accent: #ffb300;
  --c-accent-dark: #e6a200;
  --c-text: #333333;
  --c-text-secondary: #777777;
  --c-bg-panel: #f7f4ef;
  --c-border: #eae5db;
  --c-white: #ffffff;
  --font: 'Montserrat', Arial, sans-serif;

  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-white);
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.elba-promo *,
.elba-promo *::before,
.elba-promo *::after {
  box-sizing: border-box;
}

.elba-promo img {
  max-width: 100%;
  display: block;
}

.elba-promo .ep-section {
  margin: 60px 0;
}

.elba-promo .ep-section:first-child {
  margin-top: 32px;
}

/* ---------- 1. Промо-экран ---------- */

.ep-hero {
  display: flex;
  align-items: stretch;
  gap: 48px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--c-white);
}

.ep-hero__text {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}

.ep-hero__title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0 0 20px;
}

.ep-hero__intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  margin: 0;
  max-width: 420px;
}

.ep-hero__photo {
  position: relative;
  flex: 1 1 58%;
  border-radius: 20px;
  overflow: hidden;
  min-height: 360px;
}

.ep-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  aspect-ratio: 805 / 1000;
}

.ep-hero__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--c-dark);
  color: var(--c-white);
  border-radius: 18px;
  padding: 24px 28px;
  text-align: left;
  max-width: 230px;
  box-shadow: 0 10px 30px rgba(51, 25, 68, 0.25);
}

.ep-hero__badge-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--c-accent);
}

.ep-hero__badge-sum {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 6px;
  white-space: nowrap;
}

.ep-hero__badge-note {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  opacity: 0.85;
}

/* ---------- 2. Преимущества ---------- */

.ep-advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.ep-advantage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.ep-advantage__icon {
  width: 44px;
  height: 44px;
  color: var(--c-dark);
  flex-shrink: 0;
}

.ep-advantage__icon svg {
  width: 100%;
  height: 100%;
}

.ep-advantage__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text);
  margin: 0;
}

/* ---------- 3. Как стать тайным покупателем ---------- */

.ep-steps__title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0 0 44px;
}

.ep-steps__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.ep-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 14px;
}

.ep-step__circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-dark);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.ep-step__line {
  position: absolute;
  top: 26px;
  left: calc(50% + 26px);
  width: calc(100% - 52px);
  height: 0;
  border-top: 2px dashed var(--c-border-line, #cdbfd6);
  z-index: 0;
}

.ep-step:last-child .ep-step__line {
  display: none;
}

.ep-step__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 8px;
  line-height: 1.35;
}

.ep-step__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-secondary);
  margin: 0;
}

/* ---------- 4. Плашка «Важно!» ---------- */

.ep-important {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--c-bg-panel);
  border-radius: 16px;
  padding: 28px 32px;
}

.ep-important__icon {
  width: 32px;
  height: 32px;
  color: var(--c-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.ep-important__icon svg {
  width: 100%;
  height: 100%;
}

.ep-important__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0 0 6px;
}

.ep-important__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  margin: 0;
}

/* ---------- 5. Форма + Что нужно знать ---------- */

.ep-bottom {
  display: grid;
  grid-template-columns: 47% 1fr;
  gap: 56px;
  align-items: start;
}

.ep-form-col__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0 0 8px;
}

.ep-form-col__lead {
  font-size: 14px;
  color: var(--c-text-secondary);
  margin: 0 0 24px;
}

.ep-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ep-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ep-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ep-field label,
.ep-field__label {
  font-size: 13px;
  color: var(--c-text-secondary);
}

.ep-field input {
  font-family: var(--font);
  font-size: 15px;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 13px 16px;
  background: var(--c-white);
  width: 100%;
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
}

.ep-field input:focus {
  outline: none;
  border-color: var(--c-dark);
}

.ep-field.has-error input,
.ep-field.has-error .ep-select__control {
  border-color: #e0483d;
}

/* ---- Собственный выпадающий список (город / салон) ----
   Сделан своими силами (кнопка + список), а не через <select>,
   чтобы не зависеть от JS-виджетов темы сайта, которые могут
   перехватывать/переоформлять нативные select и глушить их события. */

.ep-select {
  position: relative;
}

.ep-select__control {
  font-family: var(--font);
  font-size: 15px;
  text-align: left;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 13px 36px 13px 16px;
  background: var(--c-white);
  width: 100%;
  min-height: 48px;
  cursor: pointer;
  position: relative;
  display: block;
}

.ep-select__control::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 12px;
  height: 8px;
  margin-top: -3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23331944' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
}

.ep-select__control:focus {
  outline: none;
  border-color: var(--c-dark);
}

.ep-select__value[data-empty="true"] {
  color: #9c98a1;
}

.ep-select.is-disabled .ep-select__control {
  color: var(--c-text-secondary);
  background-color: var(--c-bg-panel);
  cursor: not-allowed;
}

.ep-select.is-disabled .ep-select__control::after {
  opacity: 0.5;
}

.ep-select__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(51, 25, 68, 0.14);
}

.ep-select__list[hidden] {
  display: none;
}

.ep-select__list li {
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--c-text);
}

.ep-select__list li:hover,
.ep-select__list li.is-active {
  background: var(--c-bg-panel);
}

.ep-field.has-error .ep-select__control {
  border-color: #e0483d;
}

.ep-field__error {
  font-size: 12px;
  color: #e0483d;
  display: none;
  min-height: 14px;
}

.ep-field.has-error .ep-field__error {
  display: block;
}

.ep-submit {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-white);
  background: var(--c-dark);
  border: none;
  border-radius: 12px;
  padding: 17px 20px;
  width: 100%;
  cursor: pointer;
  min-height: 48px;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.ep-submit:hover {
  background: var(--c-dark-2);
}

.ep-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.ep-form__consent {
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-text-secondary);
  margin: 0;
}

.ep-form__consent a {
  color: var(--c-text-secondary);
  text-decoration: underline;
}

.ep-form__consent a:hover {
  color: var(--c-dark);
}

/* honeypot */
.ep-field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ep-form__status {
  display: none;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.5;
}

.ep-form__status.is-visible {
  display: block;
}

.ep-form__status--success {
  background: #eef7ea;
  color: #2f6b31;
}

.ep-form__status--error {
  background: #fdeceb;
  color: #b23327;
}

/* Что нужно знать */

.ep-know__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-dark);
  margin: 0 0 20px;
}

.ep-know__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ep-know__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text);
}

.ep-know__item svg {
  width: 20px;
  height: 20px;
  color: var(--c-accent-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.ep-contact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--c-bg-panel);
  border-radius: 14px;
  padding: 20px 22px;
}

.ep-contact__icon {
  width: 22px;
  height: 22px;
  color: var(--c-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.ep-contact__icon svg {
  width: 100%;
  height: 100%;
}

.ep-contact__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text);
  margin: 0;
}

.ep-contact__text a {
  color: var(--c-dark);
  font-weight: 700;
  text-decoration: none;
}

.ep-contact__text a:hover {
  text-decoration: underline;
}

/* ===========================================================
   Готовый баннер-картинка (текст+иконки+фото в одном файле) —
   показывается только на десктопе. На планшете/мобильной версии
   остаётся обычный текст+фото (см. .ep-hero__text / .ep-hero__photo).
   =========================================================== */

.ep-hero-banner-desktop {
  display: none;
}

.ep-hero-banner-desktop img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

@media (min-width: 1025px) {
  .ep-hero {
    display: block;
    height: auto;
  }

  /* Визуально скрываем текстовый блок и фото на десктопе (их заменяет
     готовая картинка ниже), но оставляем доступными для скринридеров
     и поисковых систем — не display:none */
  .ep-hero__text,
  .ep-hero__photo {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .ep-hero-banner-desktop {
    display: block;
  }
}

/* ===========================================================
   Планшет
   =========================================================== */

@media (max-width: 1024px) {
  .elba-promo {
    padding: 0 24px;
  }

  .ep-hero__title {
    font-size: 32px;
  }

  .ep-advantages {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .ep-steps__list {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 36px;
  }

  .ep-step__line {
    display: none;
  }

  .ep-bottom {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* ===========================================================
   Мобильные устройства (320–767)
   =========================================================== */

@media (max-width: 767px) {
  .elba-promo {
    padding: 0 16px;
  }

  .ep-section {
    margin: 40px 0;
  }

  .ep-hero {
    flex-direction: column;
    gap: 24px;
    border-radius: 16px;
  }

  .ep-hero__text {
    flex: none;
    order: 1;
    padding: 8px 0 0;
  }

  .ep-hero__photo {
    order: 2;
    min-height: 0;
  }

  .ep-hero__photo img {
    aspect-ratio: 4 / 3;
    object-position: center 25%;
  }

  .ep-hero__title {
    font-size: 26px;
  }

  .ep-hero__intro {
    font-size: 15px;
    max-width: none;
  }

  .ep-hero__badge {
    top: 16px;
    right: 16px;
    padding: 16px 18px;
    max-width: 170px;
    border-radius: 14px;
  }

  .ep-hero__badge-sum {
    font-size: 24px;
  }

  .ep-hero__badge-label {
    font-size: 11px;
  }

  .ep-hero__badge-note {
    font-size: 11px;
  }

  .ep-advantages {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
    padding: 32px 0;
  }

  .ep-steps__title {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .ep-steps__list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ep-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 0 0 28px;
    position: relative;
  }

  .ep-step:last-child {
    padding-bottom: 0;
  }

  .ep-step__circle {
    margin-bottom: 0;
    margin-right: 16px;
  }

  .ep-step__body {
    padding-top: 12px;
  }

  .ep-step__vline {
    position: absolute;
    left: 25px;
    top: 52px;
    bottom: 8px;
    width: 0;
    border-left: 2px dashed #cdbfd6;
  }

  .ep-step:last-child .ep-step__vline {
    display: none;
  }

  .ep-important {
    flex-direction: row;
    padding: 20px;
    border-radius: 14px;
  }

  .ep-form-col__title,
  .ep-know__title {
    font-size: 20px;
  }

  .ep-form__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ep-field input,
  .ep-select__control,
  .ep-submit {
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .ep-hero__badge {
    top: 12px;
    right: 12px;
    padding: 12px 14px;
    max-width: 132px;
    border-radius: 12px;
  }

  .ep-hero__badge-sum {
    font-size: 19px;
  }

  .ep-hero__badge-label {
    font-size: 9.5px;
  }

  .ep-hero__badge-note {
    font-size: 9.5px;
    line-height: 1.3;
  }
}
