/* 22. Памятка экстренной помощи (отдельная страница) ----------------------
   Подключается после main.css и inner.css. Здесь только блоки памятки:
   шапка с 112, карточки телефонов по темам и три уровня срочности. */

.emg {
  width: 100%;
  max-width: calc(980px + 2 * var(--pad));
  margin-inline: auto;
  padding-block: clamp(30px, 4vw, 54px) clamp(44px, 6vw, 80px);
  /* семантические цвета срочности — только для этой страницы */
  --emg-now: #a8452c;
  --emg-today: #8a5a1e;
  --emg-days: #4a6b57;

}

/* вступление */
.emg__h1 {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.018em;

}
.emg__lead {
  margin-top: 16px;
  max-width: 62ch;
  font-size: clamp(14.5px, 1.1vw, 16.5px);
  line-height: 1.62;
  color: var(--ink-2);

}

/* 112 — главный блок страницы */
.emg__alarm {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "n t t"
    "n d b";
  align-items: center;
  column-gap: clamp(16px, 2.4vw, 30px);
  row-gap: 4px;
  margin-top: clamp(22px, 3vw, 32px);
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px);
  background: var(--dark);
  color: #f2eee7;

}
.emg__alarm-n {
  grid-area: n;
  align-self: center;
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 46px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--clay-2);

}
.emg__alarm-t {
  grid-area: t;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.2;
  color: #f2eee7;

}
.emg__alarm-d {
  grid-area: d;
  align-self: start;
  max-width: 52ch;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(242, 238, 231, .64);

}
.emg__alarm-btn {
  grid-area: b;
  align-self: center;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(242, 238, 231, .38);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f2eee7;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);

}
.emg__alarm-btn:hover { background: #f2eee7; border-color: #f2eee7; color: var(--dark); }

/* тематические разделы */
.emg__sec {
  margin-top: clamp(26px, 3.4vw, 40px);
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--line-2);

}
.emg__sec-h { display: flex; align-items: center; gap: 12px; }
.emg__ico {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: #8C7B60;

}
.emg__ico svg { width: 18px; height: 18px; }
.emg__sec h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.12;
  letter-spacing: -.006em;

}

/* карточки телефонов */
.emg__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(26px, 3.4vw, 46px);
  margin-top: 14px;

}
/* одна карточка в разделе — на всю ширину: длинные описания не жмутся */
.emg__cards--full { grid-template-columns: 1fr; }
.tel { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.tel__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.22;
  color: var(--ink);

}
.tel__num {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(21px, 1.9vw, 25px);
  line-height: 1.1;
  letter-spacing: .01em;
  white-space: nowrap;
  color: #8f4e22;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);

}
a.tel__num:hover { border-color: currentColor; }
.tel__num--plain { color: var(--ink); cursor: default; }
.tel__sched { margin-top: 8px; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }
.tel__wait { margin-top: 2px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.tel__desc { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

/* состояния: три уровня срочности */
.emg__urg { margin-top: 18px; padding-left: 16px; border-left: 3px solid var(--emg-c); }
.emg__urg--now { --emg-c: var(--emg-now); }
.emg__urg--today { --emg-c: var(--emg-today); }
.emg__urg--days { --emg-c: var(--emg-days); }
.emg__urg-t {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(19px, 1.75vw, 23px);
  line-height: 1.15;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--emg-c);

}
.emg__urg-s {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);

}
.emg__urg ul {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px clamp(20px, 3vw, 40px);

}
.emg__urg li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);

}
.emg__urg li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emg-c);
  opacity: .85;

}

/* сохранить и поделиться */
.emg__share {
  margin-top: clamp(26px, 3.4vw, 40px);
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;

}
.emg__share p {
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);

}
.emg__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);

}
.emg__share-btn:hover { background: var(--dark); border-color: var(--dark); color: var(--paper); }
.emg__share-btn svg { width: 15px; height: 15px; }

.emg__note {
  margin-top: 18px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);

}

@media (max-width: 719px) {
    .emg__cards { grid-template-columns: 1fr; }
    .emg__urg ul { grid-template-columns: 1fr; }

}
@media (max-width: 560px) {
    .emg__alarm {
        grid-template-columns: 1fr;
        grid-template-areas: "n" "t" "d" "b";
        row-gap: 8px;
    }
    .emg__alarm-n { font-size: 32px; }
    .emg__alarm-d { max-width: none; }
    .emg__alarm-btn { justify-self: stretch; justify-content: center; margin-top: 6px; }
    .emg__share { flex-direction: column; align-items: flex-start; }
    .emg__share-btn { width: 100%; justify-content: center; }

}
