/* Кнопка ЭТРН и диалог на главной странице. */
.etrn-announcement {
  position: relative; isolation: isolate; overflow: hidden;
  display: block; align-self: flex-start; flex: 0 0 auto;
  width: fit-content; max-width: 100%; padding: 0;
  border: 0; border-radius: 8px;
  color: #302619;
  background:
    linear-gradient(180deg, rgba(255, 250, 231, .24), transparent 48%, rgba(93, 64, 18, .06)),
    linear-gradient(112deg, #c5a86d 0%, #e4cd99 24%, #f2e1b5 46%, #dfc58b 73%, #c9ad74 100%);
  box-shadow: 0 6px 22px rgba(0, 8, 17, .2);
  cursor: pointer; text-align: left;
  transition: box-shadow .25s ease, transform .25s ease;
}
.etrn-announcement::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; left: -60%; width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 230, .4), transparent);
  transform: skewX(-24deg); transition: transform .7s cubic-bezier(.2, .7, .2, 1); pointer-events: none;
}
.etrn-announcement:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 8, 17, .26);
}
.etrn-announcement:hover::after { transform: translateX(460%) skewX(-24deg); }
.etrn-announcement:active { transform: translateY(0); }
.etrn-announcement:focus-visible { outline: 2px solid #f3dca5; outline-offset: 4px; }
.etrn-announcement__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: flex-start; gap: 16px;
  min-height: 54px; padding: 11px 20px;
}
.etrn-announcement__icon { width: 19px; height: 22px; flex: 0 0 auto; color: #69512a; }
.etrn-announcement__copy { display: flex; align-items: center; gap: 19px; }
.etrn-announcement__copy strong { font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: .015em; }
.etrn-announcement__message {
  display: inline-flex; align-items: center; gap: 8px;
  color: #514329; font-size: 13px; line-height: 1.3;
}
.etrn-announcement__message svg { width: 15px; height: 15px; color: #455638; flex: 0 0 auto; }
.etrn-announcement__more {
  display: inline-flex; align-items: center; gap: 12px;
  margin-left: 12px; padding-left: 26px; border-left: 1px solid rgba(94, 68, 26, .25);
  font-size: 12px; line-height: 1.4;
}
.etrn-announcement__more svg { width: 17px; height: 17px; transition: transform .2s ease; }
.etrn-announcement:hover .etrn-announcement__more svg { transform: translateX(4px); }
.hero--etrn, .hero--etrn .hero__inner { min-height: max(828px, 100svh); }
.hero--etrn .hero__inner { padding-top: 112px; }
.hero--etrn .hero__copy { padding-block: 48px 64px; }
.etrn-status-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--etrn-mint); }

.etrn-dialog {
  --etrn-mint: #a6f3ca;
  width: min(580px, calc(100% - 32px)); max-height: calc(100svh - 48px);
  margin: auto; padding: 44px; overflow-y: auto; border: 1px solid #38536b;
  border-radius: 10px; color: #fff; background: #0b2235;
  box-shadow: 0 32px 100px rgba(0, 7, 18, .55); font-family: "PS Text", Arial, sans-serif;
}
.etrn-dialog::backdrop { background: rgba(2, 12, 23, .78); backdrop-filter: blur(7px); }
.etrn-dialog__close {
  position: absolute; top: 15px; right: 15px; display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0; border: 1px solid rgba(181, 217, 247, .25);
  border-radius: 50%; color: #d4e8f6; background: transparent; cursor: pointer;
}
.etrn-dialog__close:hover { color: #fff; background: rgba(181, 217, 247, .1); }
.etrn-dialog__close svg { width: 15px; height: 15px; }
.etrn-dialog__status {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 25px; color: var(--etrn-mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
}
.etrn-dialog h2 { margin: 0 0 23px; font-family: "PS Display", Arial, sans-serif; font-size: 56px; font-weight: 500; line-height: .98; letter-spacing: -.015em; }
.etrn-dialog h2 span { color: #b9deff; }
.etrn-dialog__copy { color: #b9ccdc; font-size: 16px; line-height: 1.6; }
.etrn-dialog__connection {
  display: flex; align-items: center; gap: 16px; margin: 28px 0; padding: 18px 0;
  border-block: 1px solid rgba(181, 217, 247, .18); color: #d6eafd; font-size: 14px;
}
.etrn-dialog__connection strong { font-weight: 500; }
.etrn-dialog__connection-line { position: relative; flex: 1; height: 1px; background: #396b97; }
.etrn-dialog__connection-line::after {
  content: ""; position: absolute; top: -3px; left: calc(50% - 3px); width: 7px; height: 7px;
  border-radius: 50%; background: var(--etrn-mint); box-shadow: 0 0 0 5px rgba(166, 243, 202, .08);
}
.etrn-dialog > .button { width: 100%; margin-top: 12px; }
body.etrn-dialog-open { overflow: hidden; }

@media (max-width: 760px) {
  .etrn-announcement { width: 100%; }
  .etrn-announcement__inner { min-height: 62px; padding: 10px 14px; gap: 12px; }
  .etrn-announcement__copy { display: grid; gap: 4px; }
  .etrn-announcement__copy strong { font-size: 14px; }
  .etrn-announcement__message { gap: 5px; font-size: 12px; }
  .etrn-announcement__message svg { width: 13px; height: 13px; }
  .etrn-announcement__more { margin-left: auto; padding-left: 12px; border-left: 0; }
  .etrn-announcement__more > span { display: none; }
  .hero--etrn, .hero--etrn .hero__inner { min-height: 822px; }
  .hero--etrn .hero__inner { padding-top: 96px; }
  .hero--etrn .hero__copy { padding: 40px 0 48px; }
  .etrn-dialog { padding: 35px 25px 28px; }
  .etrn-dialog h2 { font-size: 44px; }
  .etrn-dialog__copy { font-size: 15px; }
}
