/* ============================================================================
 *  ГеккоЦТ — визуальный слой: иллюстрации курсов, презентаций и теории
 * ==========================================================================*/
.art { display: block; width: 100%; height: 100%; }

/* --------------------------- КАРТОЧКИ КУРСОВ ---------------------------- */
.course-card { position: relative; overflow: hidden; }
.course-card__art {
  position: absolute; inset: 0; z-index: 0; opacity: .38;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 8%, #000 62%);
}
html[data-theme="dark"] .course-card__art { opacity: .22; }
.course-card > *:not(.course-card__art) { position: relative; z-index: 1; }

/* ------------------------- КАРТОЧКИ ПРЕЗЕНТАЦИЙ ------------------------- */
.deck-card { min-height: 178px; }
.deck-card__art {
  position: absolute; inset: 0; z-index: 0; opacity: .34;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 58%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 58%, transparent 92%);
}
html[data-theme="dark"] .deck-card__art { opacity: .22; }
.deck-card > *:not(.deck-card__art) { position: relative; z-index: 1; }
.deck-card__title { font-size: 18px; }
.deck-card__top { margin-bottom: 18px; }

/* ---------------------------- ПРЕЗЕНТАЦИЯ ------------------------------- */
.slide--title { position: relative; overflow: hidden; }
.slide--figure { position: relative; overflow-x: hidden; overflow-y: auto; justify-content: flex-start; }
.slide__art {
  position: absolute; inset: 0; z-index: 0; opacity: .34; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.25) 62%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.25) 62%, transparent 92%);
}
html[data-theme="dark"] .slide__art { opacity: .2; }
.slide--title > *:not(.slide__art) { position: relative; z-index: 1; }
.slide__figure {
  margin-top: 8px; border-radius: var(--r-lg); overflow: hidden;
  height: clamp(150px, 32vh, 290px);
  border: 1px solid var(--line); background: var(--surface-2);
  box-shadow: var(--sh-1);
}
.slide--figure .slide__h2 { margin-bottom: 10px; }
.art--anim { animation: artIn .4s ease both; }
@keyframes artIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* ------------------------------- ТЕОРИЯ -------------------------------- */
.theory__art {
  height: 156px; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px;
  border: 1px solid var(--line); background: var(--surface-2);
}
.theory__anim {
  height: 168px; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px;
  border: 1px solid var(--line); background: var(--surface-2);
  box-shadow: var(--sh-1);
}
@media (max-width: 560px) {
  .course-card__art { opacity: .3; }
  .deck-card { min-height: 158px; }
  .theory__art { height: 128px; }
  .theory__anim { height: 140px; }
}

/* -------------------------------- АВАТАР -------------------------------- */
.ava-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.prof-ava { overflow: hidden; }
.prof-ava .ava-img { width: 100%; height: 100%; }
.hud__avatar { overflow: hidden; }
.hud__avatar .ava-img { width: 100%; height: 100%; }
.onb__ava-preview {
  width: 78px; height: 78px; border-radius: 50%; overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center;
  margin: 0 auto 4px; border: 2px solid var(--line);
}
.onb__ava-preview svg { width: 38px; height: 38px; }
.onb__ava-preview .ava-img { width: 100%; height: 100%; }

/* ============================ СТАРТОВЫЙ ЭКРАН ============================ */
.land {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column;
  padding: calc(14px + var(--safe-top)) 18px calc(20px + var(--safe-bot));
  background:
    radial-gradient(600px 380px at 50% -8%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 65%),
    radial-gradient(500px 320px at 100% 30%, color-mix(in srgb, var(--math) 14%, transparent), transparent 65%),
    var(--bg);
}
.land__bg {
  position: absolute; inset: 0 0 auto; height: 300px; opacity: .2; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.3) 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}
html[data-theme="dark"] .land__bg { opacity: .12; }
.land > *:not(.land__bg) { position: relative; z-index: 1; }
.land__top { display: flex; align-items: center; justify-content: space-between; max-width: 560px; width: 100%; margin: 0 auto 10px; }
.land__brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 15px; letter-spacing: -.02em; }
.land__logo {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-600)); color: #fff;
  font-weight: 900; box-shadow: var(--sh-brand);
}
.land__hero { text-align: center; max-width: 560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.land__hero .mascot { margin-bottom: -4px; }
.land__kicker { font-size: 11px; font-weight: 900; letter-spacing: .22em; color: var(--brand-700); text-transform: uppercase; margin-top: 4px; }
html[data-theme="dark"] .land__kicker { color: var(--brand); }
.land__title { font-size: clamp(36px, 9vw, 52px); line-height: 1; letter-spacing: -.05em; margin: 6px 0 10px; }
.land__lead { font-size: 15px; line-height: 1.45; color: var(--fg-2); max-width: 380px; }
.land__stats {
  display: flex; gap: 8px; margin-top: 16px; width: 100%; max-width: 430px;
}
.land__stat {
  flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 6px; box-shadow: var(--sh-1); display: grid; gap: 1px;
}
.land__stat b { font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
.land__stat span { font-size: 10.5px; font-weight: 800; color: var(--fg-3); text-transform: uppercase; letter-spacing: .04em; }

.land__carousel {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 18px 2px 8px; margin: 0 auto; width: 100%; max-width: 560px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.land__carousel::-webkit-scrollbar { display: none; }
.land__card {
  flex: 0 0 150px; scroll-snap-align: center; padding: 13px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1); border-top: 4px solid var(--card, var(--brand));
}
.land__card-ico { font-size: 26px; margin-bottom: 8px; }
.land__card-t { font-size: 14px; font-weight: 900; letter-spacing: -.02em; }
.land__card-d { font-size: 11.5px; color: var(--fg-3); font-weight: 700; line-height: 1.3; margin-top: 3px; }

.land__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 520px; margin: 8px auto 0; }
.land__chip {
  font-size: 11.5px; font-weight: 800; color: var(--fg-2); background: var(--surface-2);
  border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px;
}
.land__cta { width: 100%; max-width: 430px; margin: auto auto 0; padding-top: 22px; }
.land__row { display: flex; gap: 8px; margin-top: 8px; }
.land__row .btn { flex: 1; }
.land__note { text-align: center; font-size: 11px; color: var(--fg-3); margin-top: 10px; font-weight: 700; }

@media (max-height: 740px) {
  .land__hero .mascot { width: 150px; }
  .land__title { font-size: 34px; }
  .land__carousel { padding-top: 12px; }
  .land__cta { padding-top: 12px; }
}

/* ------------------------- приветствие Гекко ---------------------------- */
.land__body { display: flex; flex-direction: column; flex: 1; }
.land__hero--greet { margin: auto 0; padding-top: 4px; }
.land__bubble {
  position: relative; display: grid; gap: 2px; margin-top: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 12px 16px; box-shadow: var(--sh-2);
  font-size: 14px; line-height: 1.45; color: var(--fg-2); font-weight: 600;
  max-width: 330px; text-align: left;
  animation: landBubble .5s cubic-bezier(.34,1.56,.64,1) both;
}
.land__bubble::before {
  content: ''; position: absolute; top: -8px; left: 50%; width: 14px; height: 14px;
  background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.land__bubble-name { font-size: 10.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); }
html[data-theme="dark"] .land__bubble-name { color: var(--brand); }
.land__title--greet { font-size: clamp(30px, 7.4vw, 42px); margin-top: 14px; }
.land__hero--greet .land__cta { margin: 18px auto 0; padding-top: 0; }
@keyframes landBubble {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@media (max-height: 740px) {
  .land__hero--greet .mascot { width: 132px; }
  .land__bubble { font-size: 12.5px; padding: 10px 13px; }
  .land__title--greet { font-size: 28px; margin-top: 10px; }
}
