/* apply.travel-study.uz — one-screen landing + separate registration page */
:root { --ap-red: #1677ff; --ap-red-hi: #3b8cff; --ap-yellow: #ffd23f; --ap-bg: #030a1a; }

body.ap { background: var(--ap-bg); color: #fff; }
.ap .sky { display: none; }
.ap-stage {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh;
  display: flex; flex-direction: column; gap: 8px;
  padding: max(16px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 22px;
  background:
    radial-gradient(55% 65% at 26% 46%, rgba(22, 92, 220, .55), rgba(5, 20, 60, 0) 72%),
    radial-gradient(40% 50% at 82% 60%, rgba(70, 150, 255, .2), rgba(5, 20, 60, 0) 70%),
    linear-gradient(180deg, #06142f 0%, var(--ap-bg) 100%);
}
.ap-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 72px 72px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(85% 80% at 45% 45%, #000 40%, transparent 100%); mask-image: radial-gradient(85% 80% at 45% 45%, #000 40%, transparent 100%);
}
.ap-top, .ap-main, .ap-foot, .ap-reg { width: 100%; max-width: 1240px; margin-inline: auto; }

/* Top bar */
.ap-top { display: flex; align-items: center; gap: 16px 28px; min-height: 64px; }
.ap-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; }
.ap-brand img { width: 36px; height: 36px; border-radius: 10px; }
.ap-format { font-size: .9375rem; color: rgba(255, 255, 255, .72); }
.ap-format strong { color: #fff; font-weight: 650; margin-right: 6px; }
.ap-top__end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ap .lang { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.ap .lang button { color: rgba(255, 255, 255, .8); }
.ap .lang button[aria-pressed="true"] { background: #fff; color: #06142f; }

/* Buttons: solid red inside a soft frame, like the reference */
.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 0 26px; border-radius: 10px; font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  background: var(--ap-red); color: #fff; box-shadow: 0 12px 30px -10px rgba(22, 119, 255, .8);
  transition: background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.ap-btn:hover { background: var(--ap-red-hi); transform: translateY(-1px); }
.ap-btn:active { transform: scale(.98); }
.ap-btn--framed { box-shadow: 0 0 0 7px rgba(255, 255, 255, .06), 0 0 0 8px rgba(255, 255, 255, .14), 0 14px 34px -10px rgba(22, 119, 255, .8); }
.ap-btn--lg { min-height: 60px; padding: 0 36px; font-size: 1.1875rem; }
.ap-btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.ap-top .ap-btn--framed { box-shadow: 0 0 0 5px rgba(255, 255, 255, .06), 0 0 0 6px rgba(255, 255, 255, .14); }

/* Main screen */
.ap-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(18px, 4vh, 48px); }
.ap-title { font-size: clamp(2.15rem, 4.5vw, 3.85rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 750; text-wrap: balance; }
.ap-hl { color: var(--ap-yellow); white-space: nowrap; }
.ap-learn { margin: clamp(22px, 3.4vh, 32px) 0 12px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.ap-list { display: grid; gap: 10px; }
.ap-list li { display: flex; align-items: flex-start; gap: 10px; font-size: clamp(1rem, 1.3vw, 1.0625rem); line-height: 1.4; color: rgba(255, 255, 255, .92); }
.ap-list svg { flex: none; width: 22px; height: 22px; padding: 3px; margin-top: 1px; border-radius: 50%; background: var(--ap-red); color: #fff; }
.ap-cta { margin-top: clamp(26px, 4vh, 38px); }
.ap-note { margin-top: 16px; font-size: .9375rem; color: rgba(255, 255, 255, .6); }

/* Right side: graduate photo in a red card + floating chip and white card */
.ap-visual { position: relative; justify-self: end; width: min(440px, 100%); padding-bottom: 96px; }
.ap-photo { position: relative; padding: 12px; border-radius: 26px; rotate: -1.5deg; background: linear-gradient(160deg, #3d93ff 0%, #0b56c9 100%); box-shadow: 0 40px 80px -34px rgba(22, 119, 255, .6); }
.ap-photo__btn { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #0a1d40; cursor: pointer; }
.ap-photo__btn picture, .ap-photo__btn img { width: 100%; height: 100%; display: block; }
.ap-photo__btn img { object-fit: cover; object-position: 50% 22%; transition: transform .7s var(--ease); }
.ap-photo__btn:hover img { transform: scale(1.04); }
.ap-photo__btn::after { content: ""; position: absolute; inset: 0 0 70%; background: linear-gradient(180deg, rgba(3, 10, 26, .45), rgba(3, 10, 26, 0)); pointer-events: none; }
.ap-play { position: absolute; left: 50%; translate: -50% 0; top: 16px; white-space: nowrap; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; background: rgba(255, 255, 255, .96); color: #06142f; font-weight: 650; font-size: .9375rem; transition: transform .3s var(--ease); }
.ap-photo__btn:hover .ap-play { transform: scale(1.04); }
.ap-play__dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ap-red); color: #fff; }
.ap-play__dot svg { margin-left: 2px; }
.ap-burst { position: absolute; left: -22px; top: -22px; z-index: 2; width: 74px; height: 74px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 210, 63, .95) 0 7deg, transparent 7deg 30deg);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 71%); mask-image: radial-gradient(circle, #000 30%, transparent 71%); animation: spin 26s linear infinite; }
.ap-chip { position: absolute; right: -18px; top: 26%; z-index: 2; rotate: 3deg; padding: 10px 14px; border-radius: 14px; font-size: .875rem; font-weight: 650; background: rgba(6, 18, 44, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 30px -14px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ap-card { position: absolute; right: -8px; bottom: 0; z-index: 2; width: min(330px, 86%); padding: 18px 20px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 28px 50px -24px rgba(0, 0, 0, .7); }
.ap-card__title { font-weight: 650; line-height: 1.3; }
.ap-card__title strong { color: var(--ap-red); font-size: 1.25rem; letter-spacing: -.02em; }
.ap-card__text { margin-top: 6px; font-size: .875rem; line-height: 1.45; color: var(--ink-2); }

/* Footer line */
.ap-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .875rem; color: rgba(255, 255, 255, .55); }
.ap-foot a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .82); font-weight: 600; }
.ap-foot a:hover { color: #fff; }
.ap-foot svg { width: 16px; height: 16px; }
.ap-foot span { margin-left: auto; }

/* Registration page */
.ap .ticket, .ap .ap-card { color: var(--ink); }
.ap--reg .ap-top { display: grid; grid-template-columns: 1fr auto 1fr; }
.ap--reg .ap-brand { justify-self: center; }
.ap-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: rgba(255, 255, 255, .82); justify-self: start; padding: 8px 4px; }
.ap-back:hover { color: #fff; }
.ap-reg { flex: 1; max-width: 780px; padding-block: clamp(20px, 5vh, 56px); }
.ap-reg__title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 750; text-align: center; }
.ap-reg__sub { margin: 14px auto 0; max-width: 34em; text-align: center; color: rgba(255, 255, 255, .72); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.45; }
.ap-reg .ticket { margin-top: clamp(24px, 4vh, 36px); max-width: none; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); }
.ap-reg__call { margin-top: 22px; text-align: center; color: rgba(255, 255, 255, .7); }
.ap-reg__call a { color: #fff; font-weight: 700; white-space: nowrap; }
.ap #submit { background: var(--ap-red); box-shadow: 0 12px 30px -10px rgba(22, 119, 255, .7); }
.ap #submit:hover, .ap #submit.is-loading { background: var(--ap-red-hi); }
.ap .ticket__kind { color: var(--ap-red); }
.ap .field input:focus { border-color: var(--ap-red); box-shadow: 0 0 0 4px rgba(22, 119, 255, .18); }
.ap .req { color: var(--ap-red); }
.ap .done .ap-btn { margin-bottom: 14px; }
.ap .done .link { display: block; margin: 0 auto; color: var(--ap-red); }

/* Tablet and phone */
@media (max-width: 1000px) { .ap-format { display: none; } }
@media (max-width: 900px) {
  .ap-main { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .ap-visual { justify-self: center; width: min(400px, calc(100% - 20px)); }
  .ap-cta .ap-btn { width: 100%; }
}
@media (max-width: 560px) {
  .ap-top .ap-btn { display: none; }
  .ap-brand span { display: none; }
  .ap--reg .ap-brand span { display: none; }
  .ap-chip { right: -6px; }
  .ap-card { right: -4px; }
  .ap-foot span { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ap-burst { animation: none; } }
