

.appt-karnet {
  position: relative;
  width: 74px; height: 46px; flex: none;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background-color: #0c0c0c;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  transition: box-shadow .25s ease;
}
.appt-karnet::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/public/assets/karnet/button.webp') center center / cover no-repeat;
  transition: transform .4s cubic-bezier(.2, .7, .3, 1);
}
.appt-karnet:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .55); }
.appt-karnet:hover::before { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) {
  .appt-karnet:hover::before { transform: none; }
}

@media (max-width: 768px) { .appt-karnet { display: none; } }

.mmenu__karnet {
  position: relative; overflow: hidden;
  flex: none; height: 146px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px;
  width: 100%; padding: 12px 16px 16px; margin: 4px 0;
  background: #141414 url('/public/assets/karnet/karnet-mmenu-banner.webp') center bottom / cover no-repeat;
  border: 0; border-radius: 12px; cursor: pointer; text-align: center;
}

.mmenu__karnet-card {
  position: relative; z-index: 1;
  width: 94px; aspect-ratio: 90 / 56; border-radius: 14px;
  background: #0c0c0c url('/public/assets/karnet/button.webp') center center / cover no-repeat;
  border: 0;
  margin-bottom: 8px;
  transform: rotate(-4.37deg); transition: transform .2s ease;
}
.mmenu__karnet:active .mmenu__karnet-card { transform: rotate(-4.37deg) scale(.96); }

.mmenu__karnet-title {
  position: relative; z-index: 1;
  font-family: var(--ff-body); font-weight: 700; font-size: 16px; line-height: 24px;
  text-transform: uppercase; letter-spacing: .01em; color: #fff;
}

.mmenu__karnet-sub {
  position: relative; z-index: 1;
  font-family: var(--ff-body); font-weight: 400; font-size: 14px; line-height: 20px;
  letter-spacing: -.06em; color: var(--light-600); max-width: 280px;
}
.mmenu__karnet-sub b { color: #fff; font-weight: 400; text-transform: uppercase; }

.modal--karnet .modal__panel.kmodal {
  background: #0e0e0e url('/public/assets/karnet/modal-bg.webp') top center / cover no-repeat;
  aspect-ratio: 1860 / 2083;
  padding: 0 40px 48px;
  gap: 16px;
  justify-content: flex-end;
  overflow: hidden;
}

.modal--karnet .modal__close { position: absolute; z-index: 3; }

.kmodal__card {
  position: absolute; top: 4%; left: 50%;
  transform: translate(calc(-50% + var(--mx, 0) * 10px), calc(32px + var(--my, 0) * 8px));
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
  width: 84%; height: auto; z-index: 1; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .kmodal__card { transform: translate(-50%, 32px); } }

.kmodal__head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.kmodal__title {
  margin: 0;
  font-family: var(--ff-display); font-weight: 700; font-style: italic;
  font-size: 56px; line-height: .96; text-transform: uppercase; letter-spacing: normal;
  background: linear-gradient(180deg, #ffffff 38.834%, #787674 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.kmodal__sub {
  margin: 0; max-width: 460px;
  font-family: var(--ff-body); font-weight: 700; font-size: 20px; line-height: 28px;
  color: var(--light-1000); letter-spacing: -.05em;
}
.kmodal__sub-reg { font-weight: 400; color: rgba(255, 255, 255, .82); }
.kmodal__sub b { color: #ffffff; font-weight: 700; }

.kmodal__form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.kmodal__input { position: relative; width: 100%; }
.kmodal__email {
  width: 100%; height: 56px; padding: 0 52px 0 18px; border-radius: 10px; box-sizing: border-box;
  background: #141414; border: 1px solid rgba(255,255,255,.1); color: #fff;
  font-family: var(--ff-body); font-size: 14px; letter-spacing: -.05em; transition: border-color .15s ease;
}
.kmodal__email::placeholder { color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: -.05em; }
.kmodal__email:focus { outline: none; border-color: rgba(255,255,255,.5); }

.kmodal__email:-webkit-autofill, .kmodal__email:-webkit-autofill:hover, .kmodal__email:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #141414 inset; caret-color: #fff;
  transition: background-color 9999s ease 0s;
}
.kmodal__input-ic { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; pointer-events: none; }
.kmodal__input-ic img { width: 100%; height: 100%; object-fit: contain; display: block; }

.kmodal__btn {
  position: relative;
  display: flex; align-items: stretch;
  width: 100%; min-height: 66px; padding: 0; overflow: hidden;
  border-radius: 12px; background: #ffffff;
  font-family: var(--ff-body); font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: .02em; color: #0f0f0f;
  text-decoration: none; box-sizing: border-box;
  transition: transform .18s cubic-bezier(.34, 1.4, .64, 1), box-shadow .18s ease;
}
.kmodal__btn:hover { transform: scale(1.02); box-shadow: 0 14px 34px rgba(255, 190, 0, .3); }
.kmodal__btn:hover .btn-arrow__chev { opacity: 0; transform: translate(3px, -3px) scale(.6); }
.kmodal__btn:hover .btn-arrow__diag { opacity: 1; transform: translate(0, 0) scale(1); }
.kmodal__btn-txt { flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px 24px; text-align: center; }
.kmodal__btn-ic {
  flex: none; width: 58px; display: flex; align-items: center; justify-content: center;
  border-left: 1px solid rgba(15, 15, 15, .14); color: #0f0f0f;
}
.kmodal__btn-ic .btn-arrow { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .modal--karnet .modal__panel.kmodal {
    background-image: url('/public/assets/karnet/modal-bg-mob.webp');
    aspect-ratio: 760 / 1251;
    padding: 0 22px 32px;
    gap: 14px;
  }

  .kmodal__card { width: 94%; transform: translate(calc(-50% + var(--mx, 0) * 8px), calc(60px + var(--my, 0) * 8px)); }
  .kmodal__title { font-size: 38px; }
  .kmodal__sub { font-size: 16px; line-height: 22px; }
  .kmodal__btn { min-height: 58px; font-size: 14px; }
  .kmodal__btn-ic { width: 50px; }
  .kmodal__btn-ic .btn-arrow { width: 16px; height: 16px; }
}
