.start-page,
.menu-page,
.login-page {
  display: grid;
  place-items: center;
}

.start-screen,
.menu-screen,
.login-screen {
  width: min(420px, calc(100vw - 32px));
  text-align: center;
}

.menu-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.login-form input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #333;
  color: #f1f1f1;
  background: #111;
}

.form-error {
  margin: 16px 0 0;
  color: #e7b0a8;
}

.auth-page {
  position: relative;
  display: block;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  color: #bdb7ae;
  background: #030506;
}

.auth-page::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.16) 36%, rgba(0, 0, 0, 0.66) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.76)),
    url("../assets/images/auth/hospital-auth-bg.png") center center / cover no-repeat;
}

.auth-page::after {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 9%, rgba(174, 215, 236, 0.16), transparent 18%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38)),
    rgba(0, 0, 0, 0.18);
}

.public-nav {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 320px) minmax(280px, 1fr);
  align-items: center;
  width: min(1880px, calc(100vw - 24px));
  min-height: 64px;
  margin: 8px auto 0;
  color: #aaa39a;
  text-transform: uppercase;
}

.public-nav__toggle,
.public-nav__burger {
  display: none;
}

.public-nav__side {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 48px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.public-nav__side--left {
  clip-path: none;
  padding: 0 34px 0 18px;
  background: url("../assets/images/auth/public-nav-left.png") center center / 100% 100% no-repeat;
}

.public-nav__side--right {
  clip-path: none;
  padding: 0 18px 0 34px;
  background: url("../assets/images/auth/public-nav-right.png") center center / 100% 100% no-repeat;
}

.public-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 18px 12px;
  color: #aaa39a;
  font-size: clamp(16px, 1.22vw, 25px);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 2px #000;
}

.public-nav__link:hover,
.public-nav__link--active {
  color: #e6ddd1;
}

.public-nav__icon {
  flex: 0 0 auto;
  color: #858079;
  font-size: 1.08em;
}

.public-nav__icon--image {
  display: grid;
  place-items: center;
}

.public-nav__icon--image img {
  display: block;
  width: clamp(22px, 1.8vw, 34px);
  height: clamp(22px, 1.8vw, 34px);
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.78));
}

.public-nav__brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  min-height: 64px;
  margin: 0;
  padding: 0;
  color: #d8d1c9;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.72));
}

.public-nav__brand::before {
  display: none;
  content: none;
}

.public-nav__brand img {
  display: block;
  width: min(320px, 100%);
  height: auto;
}

.public-nav__title {
  font-size: clamp(42px, 4.4vw, 76px);
  font-weight: 700;
  line-height: 0.88;
  text-shadow:
    0 3px 0 rgba(24, 0, 0, 0.84),
    0 0 12px rgba(255, 255, 255, 0.11);
}

.public-nav__subtitle {
  margin-top: 8px;
  color: #a7251b;
  font-size: clamp(22px, 2.1vw, 38px);
  line-height: 0.92;
  text-shadow: 0 2px 0 #140000;
}

.auth-layout {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  width: min(1880px, calc(100vw - 36px));
  min-height: calc(100dvh - 150px);
  margin: 0 auto;
  padding: clamp(24px, 5.5vh, 70px) 72px clamp(24px, 4.6vh, 60px) 320px;
}

.auth-dossier {
  position: fixed;
  z-index: 2;
  left: max(22px, calc((100vw - 1880px) / 2 + 22px));
  top: 292px;
  display: grid;
  width: 255px;
  color: #b4aea6;
  text-shadow: 0 2px 2px #000;
}

.auth-dossier__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  min-height: 104px;
  padding: 18px 16px;
  border: 1px solid rgba(94, 88, 80, 0.25);
  background: linear-gradient(90deg, rgba(6, 8, 8, 0.74), rgba(10, 10, 9, 0.26));
}

.auth-dossier__icon {
  display: grid;
  place-items: center;
  color: #9b968f;
  font-size: 35px;
}

.auth-dossier b,
.auth-dossier em {
  display: block;
}

.auth-dossier b {
  color: #888077;
  font-size: 16px;
  font-style: normal;
  text-transform: uppercase;
}

.auth-dossier em {
  color: #b22922;
  font-style: normal;
}

.auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  width: min(1120px, 100%);
  min-height: min(650px, calc(100dvh - 224px));
  padding: clamp(34px, 5vh, 64px) 66px clamp(30px, 4vh, 52px);
  border: 0;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.58);
  background: url("../assets/images/auth/auth-panel-frame.png") center center / 100% 100% no-repeat;
}

.auth-panel::before,
.auth-panel::after {
  display: none;
  content: none;
}

.auth-panel__seal {
  display: none;
}

.auth-panel__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 44px;
  align-items: center;
  width: 100%;
}

.auth-panel--register .auth-panel__content {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.auth-form-area {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.auth-form-area h1 {
  margin: 0;
  color: #ddd6cc;
  font-size: clamp(28px, 2.6vw, 46px);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow:
    0 3px 0 rgba(27, 0, 0, 0.9),
    0 0 14px rgba(255, 255, 255, 0.08);
}

.auth-lead {
  margin: clamp(12px, 2vh, 24px) 0 0;
  color: #a9a39b;
  font-size: clamp(20px, 1.6vw, 29px);
  line-height: 1.25;
}

.auth-form {
  gap: clamp(12px, 1.9vh, 22px);
  margin-top: clamp(18px, 3vh, 34px);
}

.auth-field {
  display: grid;
  grid-template-columns: 54px 1fr 50px;
  align-items: center;
  min-height: clamp(58px, 7.8vh, 74px);
  border: 0;
  box-shadow: none;
  background: url("../assets/images/auth/auth-input-bg.png") center center / 100% 100% no-repeat;
}

.auth-field__icon,
.auth-field__trail {
  color: #8e8880;
  font-size: 27px;
}

.auth-field__icon--image {
  display: grid;
  place-items: center;
}

.auth-field__icon--image img {
  display: block;
  width: clamp(24px, 2.6vw, 38px);
  height: clamp(24px, 2.6vw, 38px);
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.75));
}

.auth-password-toggle {
  display: grid;
  place-items: center;
  width: min(44px, 100%);
  min-height: 0;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.auth-password-toggle img {
  display: block;
  width: min(clamp(24px, 2.6vw, 38px), 100%);
  height: min(clamp(24px, 2.6vw, 38px), 100%);
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.75));
  transition: opacity 0.16s ease, transform 0.16s ease, filter 0.16s ease;
}

.auth-password-toggle:hover img,
.auth-password-toggle[aria-pressed="true"] img {
  opacity: 1;
  filter:
    brightness(1.18)
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.75));
}

.auth-password-toggle[aria-pressed="true"] img {
  transform: scale(0.92);
}

.auth-field input,
.auth-line-field input {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  border: 0;
  color: #ded8cf;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font: inherit;
  font-size: clamp(19px, 1.5vw, 28px);
  outline: none;
  appearance: none;
}

.auth-field input:-webkit-autofill,
.auth-line-field input:-webkit-autofill {
  border: 0;
  -webkit-background-clip: text;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: #ded8cf;
  caret-color: #ded8cf;
  transition: background-color 9999s ease-in-out 0s;
}

.auth-field input::placeholder,
.auth-line-field input::placeholder {
  color: #6e6862;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #a7a096;
  font-size: clamp(18px, 1.35vw, 26px);
}

.auth-row a,
.auth-switch a {
  color: #b7372e;
  text-decoration-color: rgba(183, 55, 46, 0.72);
  text-underline-offset: 4px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.auth-check input {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent url("../assets/images/auth/remember-checkbox.png") center center / contain no-repeat;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
}

.auth-check input::after {
  width: 42%;
  height: 24%;
  border-bottom: 3px solid #d1bba1;
  border-left: 3px solid #d1bba1;
  content: "";
  opacity: 0;
  transform: translateY(-2px) rotate(-45deg) scale(0.6);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.auth-check input:checked::after {
  opacity: 1;
  transform: translateY(-2px) rotate(-45deg) scale(1);
}

.auth-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(560px, 100%);
  min-height: clamp(66px, 9vh, 92px);
  margin: 2px auto 0;
  border: 0;
  box-shadow:
    0 10px 0 rgba(26, 0, 0, 0.54),
    0 18px 28px rgba(0, 0, 0, 0.48);
  color: #d8d0c7;
  background: url("../assets/images/auth/auth-submit-bg.png") center center / 100% 100% no-repeat;
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #170000, 0 0 8px rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.auth-submit:hover {
  filter: brightness(1.12);
}

.auth-switch {
  margin: clamp(16px, 3vh, 34px) 0 0;
  color: #a9a39b;
  font-size: clamp(19px, 1.45vw, 28px);
}

.auth-note {
  justify-self: end;
  width: min(220px, 100%);
  min-height: 330px;
  padding: 28px 22px;
  border: 1px solid rgba(79, 69, 59, 0.9);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.42), inset 0 0 18px rgba(48, 11, 6, 0.3);
  color: #241d18;
  background:
    linear-gradient(rgba(140, 131, 115, 0.84), rgba(93, 82, 68, 0.88)),
    #938674;
  text-align: center;
  transform: rotate(1.6deg);
}

.auth-note--warning {
  width: min(206px, 100%);
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.42);
  background: transparent;
  transform: rotate(1.2deg);
}

.auth-note--warning img {
  display: block;
  width: 100%;
  height: auto;
}

.auth-note b {
  display: block;
  margin-bottom: 18px;
  font-size: 29px;
  line-height: 1;
  text-transform: uppercase;
}

.auth-note p {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  text-transform: uppercase;
}

.auth-note__skull {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 18px;
  border: 2px solid rgba(42, 35, 29, 0.5);
  border-radius: 50%;
  font-size: 62px;
}

.auth-line-field {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.auth-line-field__label {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #b6aea4;
  font-size: clamp(20px, 1.55vw, 30px);
  text-align: left;
  text-transform: uppercase;
}

.auth-line-field__control {
  display: grid;
  grid-template-columns: 1fr 46px;
  align-items: center;
  min-height: clamp(54px, 7vh, 66px);
  padding-left: 22px;
  border: 0;
  box-shadow: none;
  background: url("../assets/images/auth/auth-input-bg.png") center center / 100% 100% no-repeat;
}

.auth-line-field__control > span {
  color: #8e8880;
  font-size: 24px;
}

.auth-stamp {
  justify-self: center;
  display: block;
  align-self: start;
  width: min(227px, 100%);
  height: auto;
  margin-top: 76px;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.auth-stamp img,
.auth-note--small img {
  display: block;
  width: 100%;
  height: auto;
}

.auth-note--small {
  position: absolute;
  right: 70px;
  bottom: 78px;
  width: 176px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.42);
  transform: none;
}

@media (max-width: 1280px) {
  .auth-layout {
    padding-right: 28px;
    padding-left: 260px;
  }

  .auth-dossier {
    width: 220px;
  }

  .auth-panel {
    padding-right: 42px;
    padding-left: 42px;
  }
}

@media (min-width: 1021px) and (max-height: 820px) {
  .public-nav {
    min-height: 58px;
    margin-top: 4px;
  }

  .public-nav__side {
    min-height: 44px;
  }

  .public-nav__brand {
    min-height: 58px;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .auth-layout {
    min-height: calc(100vh - 112px);
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .auth-dossier {
    top: 220px;
  }

  .auth-dossier__item {
    min-height: 82px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .auth-panel {
    min-height: 535px;
    padding-top: 42px;
    padding-bottom: 36px;
  }

  .auth-panel__content {
    gap: 32px;
  }

  .auth-form-area h1 {
    font-size: clamp(28px, 2.4vw, 42px);
  }

  .auth-lead {
    margin-top: 14px;
  }

  .auth-form {
    gap: 14px;
    margin-top: 22px;
  }

  .auth-field {
    min-height: 60px;
  }

  .auth-line-field {
    gap: 18px;
  }

  .auth-line-field__control {
    min-height: 56px;
  }

  .auth-field input,
  .auth-line-field input {
    min-height: 48px;
  }

  .auth-submit {
    min-height: 70px;
    font-size: clamp(22px, 2vw, 32px);
  }

  .auth-switch {
    margin-top: 20px;
  }

  .auth-note {
    min-height: 260px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .auth-note p {
    font-size: 19px;
  }

  .auth-note__skull {
    width: 76px;
    height: 76px;
    font-size: 46px;
  }

  .auth-stamp {
    width: 190px;
    height: 190px;
    margin-top: 54px;
  }

  .auth-note--small {
    bottom: 48px;
    min-height: 180px;
  }
}

@media (max-width: 1020px) {
  .public-nav {
    grid-template-columns: 1fr;
    width: min(360px, calc(100vw - 24px));
  }

  .public-nav__brand {
    order: -1;
    min-height: 64px;
    margin: 0 0 10px;
  }

  .public-nav__side,
  .public-nav__side--left,
  .public-nav__side--right {
    clip-path: none;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .public-nav__side--right {
    margin-top: 8px;
  }

  .auth-layout {
    justify-content: center;
    width: min(760px, calc(100vw - 24px));
    padding: 38px 0 44px;
  }

  .auth-dossier {
    display: none;
  }

  .auth-panel,
  .auth-panel--register {
    min-height: 0;
    padding: 54px 26px 38px;
  }

  .auth-panel__content,
  .auth-panel--register .auth-panel__content {
    grid-template-columns: 1fr;
  }

  .auth-note,
  .auth-stamp {
    display: none;
  }

  .auth-form-area {
    max-width: 100%;
  }
}

@media (max-width: 820px), (max-height: 560px) and (orientation: landscape) {
  .auth-page {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .public-nav {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr auto;
    align-items: center;
    width: 100%;
    min-height: 76px;
    margin: 0;
    padding: 8px 10px;
    background: transparent;
    backdrop-filter: none;
  }

  .public-nav__brand {
    order: 0;
    justify-self: start;
    min-height: 44px;
    width: min(160px, calc(100vw - 86px));
    margin: 0;
    padding: 0;
  }

  .public-nav__title {
    font-size: clamp(30px, 10vw, 48px);
  }

  .public-nav__subtitle {
    margin-top: 4px;
    font-size: clamp(16px, 5vw, 24px);
  }

  .public-nav__burger {
    position: relative;
    z-index: 7;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 0;
    box-shadow: none;
    background: transparent;
    cursor: pointer;
  }

  .public-nav__burger span {
    display: block;
    width: 28px;
    height: 2px;
    background: #c7beb2;
    box-shadow: 0 8px 0 #c7beb2, 0 -8px 0 #c7beb2;
  }

  .public-nav__side,
  .public-nav__side--left,
  .public-nav__side--right {
    position: absolute;
    right: 10px;
    left: 10px;
    z-index: 6;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0;
    clip-path: none;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .public-nav__side--left {
    top: 76px;
  }

  .public-nav__side--right {
    top: 225px;
    margin-top: 0;
  }

  .public-nav__toggle:checked ~ .public-nav__side {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .public-nav__link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 18px;
    border-bottom: 0;
    font-size: 18px;
  }

  .auth-layout {
    width: min(100%, calc(100vw - 12px));
    min-height: calc(100dvh - 76px);
    padding: clamp(8px, 1.8vh, 18px) 0 12px;
  }

  .auth-panel {
    min-height: 0;
    padding: clamp(28px, 4.2vh, 42px) 14px clamp(18px, 3vh, 28px);
  }

  .auth-panel__seal {
    width: 52px;
    height: 52px;
    top: -23px;
    font-size: 26px;
  }

  .auth-form-area h1 {
    font-size: clamp(22px, 5.4vw, 28px);
  }

  .auth-lead {
    font-size: clamp(17px, 4.3vw, 21px);
  }

  .auth-form {
    gap: 10px;
    margin-top: 14px;
  }

  .auth-switch {
    margin-top: 12px;
    font-size: clamp(17px, 4.3vw, 21px);
  }
}

@media (max-width: 640px) {
  .auth-page::before {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.44)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82)),
      url("../assets/images/auth/hospital-auth-bg.png") 37% center / cover no-repeat;
  }

  .auth-panel {
    padding-right: 10px;
    padding-left: 10px;
  }

  .auth-panel::before,
  .auth-panel::after {
    inset: 12px;
  }

  .auth-field {
    grid-template-columns: 42px 1fr 38px;
    min-height: 52px;
  }

  .auth-field input,
  .auth-line-field input {
    min-height: 44px;
    font-size: 17px;
  }

  .auth-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    font-size: 17px;
  }

  .auth-submit {
    min-height: 58px;
    font-size: clamp(18px, 5vw, 24px);
  }

  .auth-line-field {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .auth-line-field__label {
    gap: 10px;
    font-size: 16px;
  }

  .auth-line-field__control {
    min-height: 48px;
    padding-left: 14px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  html,
  body.auth-page {
    min-height: 100dvh;
    overflow: hidden;
  }

  .public-nav {
    min-height: 52px;
    padding: 4px 8px;
  }

  .public-nav__brand {
    min-height: 36px;
    width: 120px;
    padding: 0;
  }

  .public-nav__title {
    font-size: clamp(28px, 5.4vw, 38px);
  }

  .public-nav__subtitle {
    font-size: clamp(14px, 3vw, 18px);
  }

  .public-nav__burger {
    width: 44px;
    height: 44px;
  }

  .public-nav__burger span {
    width: 24px;
    box-shadow: 0 7px 0 #c7beb2, 0 -7px 0 #c7beb2;
  }

  .public-nav__side--left {
    top: 52px;
  }

  .public-nav__side--right {
    top: 199px;
  }

  .public-nav__link {
    min-height: 44px;
    font-size: 16px;
  }

  .auth-layout {
    width: min(100%, calc(100vw - 10px));
    min-height: calc(100dvh - 52px);
    padding: 4px 0;
  }

  .auth-panel,
  .auth-panel--register {
    width: min(930px, 100%);
    min-height: calc(100dvh - 60px);
    padding: 22px clamp(24px, 5vw, 54px) 16px;
    background-size: 100% 100%;
  }

  .auth-panel::before,
  .auth-panel::after,
  .auth-panel__seal,
  .auth-dossier,
  .auth-note,
  .auth-stamp {
    display: none;
  }

  .auth-panel__content,
  .auth-panel--register .auth-panel__content {
    display: block;
  }

  .auth-form-area {
    max-width: min(760px, 100%);
  }

  .auth-form-area h1 {
    font-size: clamp(20px, 4vw, 30px);
  }

  .auth-lead {
    margin-top: 4px;
    font-size: clamp(13px, 2.7vw, 17px);
  }

  .form-error {
    margin-top: 6px;
    font-size: 14px;
  }

  .auth-form {
    gap: 7px 10px;
    margin-top: 8px;
  }

  .auth-page--login .auth-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;
  }

  .auth-page--login .auth-row,
  .auth-page--login .auth-submit {
    grid-column: 1 / -1;
  }

  .auth-field {
    grid-template-columns: 34px 1fr 30px;
    min-height: 38px;
  }

  .auth-field__icon,
  .auth-field__trail {
    font-size: 18px;
  }

  .auth-field input,
  .auth-line-field input {
    min-height: 34px;
    font-size: 15px;
  }

  .auth-row {
    gap: 12px;
    font-size: 14px;
  }

  .auth-check input {
    width: 22px;
    height: 22px;
    min-height: 22px;
  }

  .auth-submit {
    width: min(330px, 100%);
    min-height: 40px;
    font-size: clamp(18px, 3.6vw, 24px);
  }

  .auth-switch {
    margin-top: 6px;
    font-size: 14px;
  }

  .auth-page--register .auth-form--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    max-width: min(690px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .auth-page--register .auth-line-field {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .auth-page--register .auth-line-field__label {
    gap: 8px;
    font-size: 13px;
  }

  .auth-page--register .auth-line-field__control {
    min-height: 36px;
    padding-left: 12px;
  }

  .auth-page--register .auth-line-field__control > span {
    font-size: 16px;
  }

  .auth-page--register .auth-submit {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 380px), (max-height: 700px) {
  .public-nav {
    min-height: 44px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .public-nav__brand {
    min-height: 38px;
  }

  .public-nav__burger {
    width: 48px;
    height: 48px;
  }

  .public-nav__side--left {
    top: 44px;
  }

  .public-nav__side--right {
    top: 193px;
  }

  .auth-layout {
    min-height: calc(100dvh - 44px);
    padding-top: 6px;
  }

  .auth-panel {
    padding-top: 26px;
    padding-bottom: 16px;
  }

  .auth-panel::before,
  .auth-panel::after {
    inset: 9px;
  }

  .auth-panel__seal {
    display: none;
  }

  .auth-form-area h1 {
    font-size: clamp(21px, 5.5vw, 28px);
  }

  .auth-lead {
    margin-top: 7px;
    font-size: 16px;
  }

  .auth-form {
    gap: 8px;
    margin-top: 10px;
  }

  .auth-field {
    min-height: 48px;
  }

  .auth-check input {
    width: 26px;
    height: 26px;
    min-height: 26px;
  }

  .auth-switch {
    margin-top: 9px;
    font-size: 16px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .public-nav {
    min-height: 42px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .public-nav__brand {
    min-height: 34px;
  }

  .public-nav__burger {
    width: 44px;
    height: 44px;
  }

  .public-nav__side--left {
    top: 42px;
  }

  .public-nav__side--right {
    top: 189px;
  }

  .auth-layout {
    min-height: calc(100dvh - 42px);
    padding-top: 4px;
  }

  .auth-panel,
  .auth-panel--register {
    min-height: calc(100dvh - 60px);
    padding-top: 22px;
    padding-bottom: 16px;
  }

  .auth-form-area h1 {
    font-size: clamp(20px, 4vw, 30px);
  }

  .auth-lead {
    margin-top: 4px;
    font-size: clamp(13px, 2.7vw, 17px);
  }

  .auth-form {
    gap: 7px 10px;
    margin-top: 8px;
  }

  .auth-switch {
    margin-top: 6px;
    font-size: 14px;
  }
}

.landing-page {
  overflow-x: hidden;
}

.hero {
  min-height: 858px;
  background:
    linear-gradient(90deg, rgba(4, 3, 2, 0.98) 0%, rgba(7, 5, 4, 0.94) 37%, rgba(0, 0, 0, 0.2) 56%, rgba(0, 0, 0, 0.18) 100%),
    url("../assets/images/hero-corridor-wide.png") center center / cover no-repeat;
}

.hero-copy {
  width: min(415px, 47vw);
  min-height: 858px;
  padding: 78px 40px 52px 54px;
  background:
    linear-gradient(180deg, rgba(15, 10, 7, 0.42), rgba(2, 2, 2, 0.78)),
    rgba(3, 2, 2, 0.72);
}

.logo-mark {
  margin: 0;
  color: #d8d2ca;
  font-size: clamp(78px, 8vw, 118px);
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(25, 0, 0, 0.7), 0 0 18px rgba(255, 255, 255, 0.08);
}

.logo-subtitle {
  margin: 20px 0 46px 42px;
  color: #9c1212;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #240000;
}

.ornament {
  width: 230px;
  height: 1px;
  margin: 0 0 34px 48px;
  background: rgba(139, 103, 76, 0.64);
}

.ornament::after,
.title-rule::after {
  display: block;
  width: 26px;
  height: 26px;
  margin: -13px auto 0;
  color: #817365;
  text-align: center;
  content: "✥";
}

.hero-copy p:not(.logo-mark):not(.logo-subtitle) {
  margin: 0 0 28px;
  color: #c8bfb3;
  font-size: 23px;
  line-height: 1.55;
  text-shadow: 0 2px 2px #000;
}

.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  min-height: 112px;
  margin-top: 16px;
  padding: 18px 38px 12px;
  border: 0;
  box-shadow:
    0 9px 0 rgba(0, 0, 0, 0.45),
    0 0 18px rgba(0, 0, 0, 0.8);
  color: #12100d;
  background: url("../assets/images/start-button-plate-transparent.png") center center / 100% 100% no-repeat;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.start-button:hover {
  filter: brightness(1.12);
}

.info-area {
  background:
    linear-gradient(rgba(5, 5, 4, 0.58), rgba(8, 7, 6, 0.84)),
    url("../assets/images/section-footer-bg.png") center center / cover no-repeat;
}

.faq-section {
  padding: 58px 24px 44px;
  background: transparent;
}

.section-frame {
  width: min(815px, 100%);
  margin: 0 auto;
  padding: 42px 56px 58px;
  border: 1px solid rgba(93, 78, 66, 0.62);
  box-shadow:
    inset 0 0 0 5px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.7);
  background: rgba(9, 9, 8, 0.72);
}

.section-frame h1 {
  margin: 0;
  color: #cfc2b4;
  font-size: clamp(37px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #000;
}

.title-rule {
  width: 290px;
  height: 1px;
  margin: 28px auto 38px;
  background: linear-gradient(90deg, transparent, #761010, transparent);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(103, 75, 53, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.68),
    0 3px 0 rgba(0, 0, 0, 0.54);
  background: rgba(18, 17, 15, 0.85);
}

.faq-item summary {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr 34px;
  align-items: center;
  min-height: 64px;
  padding: 0 18px;
  color: #d2c7ba;
  font-size: 25px;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  color: #981c17;
  font-size: 43px;
  line-height: 1;
  text-align: center;
  content: "+";
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-icon {
  width: 36px;
  height: 36px;
  border: 2px solid #8e1512;
  color: #9f1c17;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
}

.faq-item p {
  margin: 0;
  padding: 0 28px 20px 76px;
  color: #a99f92;
  font-size: 18px;
  line-height: 1.5;
}

.site-footer {
  padding: 42px 24px 32px;
  color: #bcb0a0;
  text-align: center;
  background: transparent;
}

.footer-emblem {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border: 2px solid rgba(151, 143, 130, 0.64);
  color: #c8beb1;
  font-size: 43px;
  border-radius: 50%;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 34px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  color: #f2e7d8;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  color: #090807;
  background: #958c80;
  font-weight: 700;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
  font-size: 20px;
}

@media (max-width: 760px) {
  .hero {
    min-height: 772px;
    background:
      linear-gradient(90deg, rgba(4, 3, 2, 0.98) 0%, rgba(5, 4, 3, 0.92) 45%, rgba(0, 0, 0, 0.22) 72%, rgba(0, 0, 0, 0.12) 100%),
      url("../assets/images/hero-corridor-wide.png") center center / cover no-repeat;
  }

  .hero-copy {
    width: min(520px, 60vw);
    min-height: 772px;
    padding: 62px 20px 40px 38px;
  }

  .logo-mark {
    font-size: clamp(64px, 15vw, 104px);
  }

  .logo-subtitle {
    margin: 14px 0 36px 28px;
    font-size: clamp(32px, 8vw, 52px);
  }

  .ornament {
    display: none;
  }

  .hero-copy p:not(.logo-mark):not(.logo-subtitle) {
    font-size: clamp(19px, 4.6vw, 27px);
  }

  .start-button {
    width: min(460px, calc(100vw - 70px));
    min-height: 104px;
    font-size: clamp(41px, 8vw, 58px);
  }

  .faq-section {
    padding: 0;
  }

  .section-frame {
    padding: 38px 22px 42px;
    border-left: 0;
    border-right: 0;
  }

  .faq-item summary {
    grid-template-columns: 50px 1fr 34px;
    min-height: 70px;
    padding: 0 14px;
    font-size: clamp(20px, 5vw, 30px);
  }

  .faq-item p {
    padding: 0 18px 18px 64px;
  }

  .footer-nav {
    gap: 14px 28px;
  }
}

@media (max-width: 520px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(4, 3, 2, 0.99) 0%, rgba(4, 3, 2, 0.95) 55%, rgba(0, 0, 0, 0.28) 100%),
      url("../assets/images/hero-corridor-wide.png") 58% center / cover no-repeat;
  }

  .hero-copy {
    width: 100%;
    padding-right: 28px;
    background:
      linear-gradient(90deg, rgba(3, 2, 2, 0.9) 0%, rgba(3, 2, 2, 0.82) 67%, rgba(3, 2, 2, 0.22) 100%);
  }

  .hero-copy p:not(.logo-mark):not(.logo-subtitle) {
    max-width: 330px;
  }

  .start-button {
    width: 100%;
  }

  .section-frame h1 {
    font-size: 40px;
  }

  .title-rule {
    width: 220px;
  }

  .faq-icon {
    width: 34px;
    height: 34px;
  }

  .footer-nav {
    display: grid;
    gap: 16px;
  }
}
