/* ========================================================================
   ИТ-БУРЯТИЯ — КОНКУРС ИТ-ПРОЕКТОВ
   Подача «демо-день / pitch deck»: страница как колода слайдов,
   с боковой навигацией по разделам вместо верхнего скролл-бара.
   Палитра: тёмно-синий фон, акценты electric blue / teal / gold.
   ======================================================================== */

:root {
  --bg: #070b14;
  --bg-soft: #0c1322;
  --fg: #eef2f9;
  --fg-dim: #8b96ab;
  --line: rgba(255,255,255,.09);

  --accent-blue: #3da9fc;
  --accent-teal: #2dd4bf;
  --accent-gold: #f5b942;
  --accent: var(--accent-blue);

  --grad: linear-gradient(110deg, var(--accent-blue), var(--accent-teal) 55%, var(--accent-gold));

  --radius: 18px;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
}

.plabel {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.psub {
  color: var(--fg-dim);
  margin-bottom: 48px;
  max-width: 560px;
}

/* ---------------------------------- NAV ---------------------------------- */

.pnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7,11,20,.65);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.pnav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-right: 76px;
}

.pnav__back {
  font-weight: 600;
  font-size: .9rem;
  color: var(--fg-dim);
  transition: color .2s;
}
.pnav__back:hover { color: var(--fg); }

.pnav__counter {
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--fg-dim);
}

.pnav__counter #slideNum {
  display: inline-block;
  color: var(--accent-teal);
  font-weight: 700;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .3s;
}

.pnav__counter #slideNum.is-bumping {
  transform: translateY(-3px) scale(1.25);
  color: var(--accent-gold);
}

.pnav__cta.pbtn--primary {
  padding: 11px 22px;
  font-size: .86rem;
}

/* ---------------------------------- SIDE SLIDE NAV ---------------------------------- */

.pdots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pdots::before {
  content: '';
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: var(--line);
  z-index: -1;
}

.pdots__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--fg-dim);
  transition: background .25s, border-color .25s, transform .25s;
}

.pdots__dot:hover,
.pdots__dot.is-active {
  background: var(--grad);
  border-color: transparent;
  transform: scale(1.3);
}

.pdots__dot.is-active::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent-teal);
  animation: pdotPing 1.8s ease-out infinite;
}

@keyframes pdotPing {
  0% { transform: scale(.6); opacity: .8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.pdots__label {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: .76rem;
  color: var(--fg-dim);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.pdots__dot:hover .pdots__label {
  opacity: 1;
}

@media (max-width: 860px) {
  .pdots { display: none; }
}

/* ---------------------------------- BUTTONS ---------------------------------- */

.pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s, box-shadow .2s;
}

.pbtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(61,169,252,.4) 40%, rgba(255,255,255,.65) 50%, rgba(245,185,66,.45) 60%, transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}

.pbtn:hover::before {
  left: 130%;
}

.pbtn--primary {
  background: var(--grad);
  color: #070b14;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px -8px rgba(61,169,252,.5);
  animation: pbtnPulse 2.6s ease-in-out infinite;
}

@keyframes pbtnPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px -8px rgba(61,169,252,.5); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 10px 36px -6px rgba(245,185,66,.5); }
}

.pbtn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 16px 40px -8px rgba(61,169,252,.65);
  animation-play-state: paused;
}

.pbtn--ghost {
  border: 1px solid var(--line);
  color: var(--fg);
  background: rgba(255,255,255,.03);
}

.pbtn--ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

/* ---------------------------------- SLIDE BASE ---------------------------------- */

.pslide {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--line);
}

/* общая чертёжная сетка на всех слайдах */
.pslide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 30%, #000 40%, transparent 100%);
}

/* гигантский полупрозрачный номер слайда — фоновый водяной знак */
.pslide::after {
  content: attr(data-num);
  position: absolute;
  right: -2vw;
  bottom: -8vw;
  z-index: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: min(42vw, 420px);
  line-height: 1;
  color: var(--accent-blue);
  opacity: .05;
  pointer-events: none;
  user-select: none;
  animation: pwatermarkBreathe 6s ease-in-out infinite;
}

@keyframes pwatermarkBreathe {
  0%, 100% { opacity: .05; transform: scale(1); }
  50% { opacity: .09; transform: scale(1.02); }
}

.pslide .container {
  position: relative;
  z-index: 1;
}

.pslide--hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(61,169,252,.16), transparent 55%),
    radial-gradient(circle at 90% 85%, rgba(245,185,66,.12), transparent 50%),
    var(--bg);
}

.pslide--statement {
  background:
    radial-gradient(circle at 75% 25%, rgba(45,212,191,.14), transparent 55%),
    var(--bg-soft);
}

.pslide--process {
  background:
    radial-gradient(circle at 85% 15%, rgba(61,169,252,.14), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(245,185,66,.1), transparent 50%),
    var(--bg);
}

.pslide--rubric {
  background:
    radial-gradient(circle at 20% 80%, rgba(45,212,191,.14), transparent 50%),
    radial-gradient(circle at 85% 10%, rgba(61,169,252,.1), transparent 50%),
    var(--bg-soft);
}

.pslide--faq {
  background:
    radial-gradient(circle at 50% 10%, rgba(245,185,66,.1), transparent 55%),
    var(--bg);
}

.pslide--apply {
  background:
    radial-gradient(circle at 80% 80%, rgba(61,169,252,.16), transparent 50%),
    radial-gradient(circle at 10% 10%, rgba(45,212,191,.1), transparent 50%),
    var(--bg-soft);
}

.pslide__index {
  position: absolute;
  top: 32px;
  left: 24px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--fg-dim);
}

.pslide__index::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--grad);
  transition: width .6s cubic-bezier(.16,1,.3,1) .15s;
}

.pslide__index:not(.is-visible)::before {
  width: 0;
}

.pslide__index-num {
  font-weight: 700;
  font-size: .94rem;
  color: var(--fg);
}

.pslide__index-sep {
  opacity: .6;
}

@media (max-width: 860px) {
  .pslide { min-height: auto; padding: 110px 0 70px; }
  .pslide::after { font-size: min(60vw, 280px); bottom: -10vw; }
}

/* ---------------------------------- SLIDE 01 — HERO ---------------------------------- */

.phero__inner {
  position: relative;
}

.phero__eyebrow {
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.phero__title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 24px;
  max-width: 820px;
}

.phero__title-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: pgradientShift 6s ease infinite;
}

@keyframes pgradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.phero__subtitle {
  max-width: 600px;
  font-size: 1.08rem;
  color: var(--fg-dim);
  margin-bottom: 20px;
}

.phero__meta {
  font-size: .9rem;
  color: var(--accent-teal);
  margin-bottom: 36px;
}

.phero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------------------------------- SLIDE 02 — STATEMENT ---------------------------------- */

.pstatement {
  position: relative;
  max-width: 820px;
}

.pstatement::before {
  content: '"';
  position: absolute;
  top: -120px;
  left: -20px;
  font-family: var(--font-head);
  font-size: 18rem;
  font-weight: 800;
  color: var(--accent-teal);
  opacity: .12;
  line-height: 1;
  pointer-events: none;
  z-index: -1;
}

.pstatement__quote {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 28px;
}

.pstatement__text {
  color: var(--fg-dim);
  font-size: 1.08rem;
  max-width: 640px;
}

/* ---------------------------------- SLIDE 03 — PROCESS / FUNNEL ---------------------------------- */

.pfunnel {
  display: flex;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
}

.pfunnel__step {
  flex: 1 1 240px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  transition: border-color .25s, transform .25s;
}

.pfunnel__step:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
}

.pfunnel__num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  color: var(--accent-teal);
  margin-bottom: 14px;
}

.pfunnel__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pfunnel__text {
  color: var(--fg-dim);
  font-size: .92rem;
}

.pfunnel__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-gold);
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .pfunnel { flex-direction: column; }
  .pfunnel__arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* ---------------------------------- SLIDE 04 — RUBRIC ---------------------------------- */

.prubric {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 760px;
}

.prubric__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .96rem;
  margin-bottom: 10px;
}

.prubric__pct {
  color: var(--accent-teal);
}

.prubric__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 10px;
}

.prubric__bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(61,169,252,.5);
  transition: width 1.1s cubic-bezier(.16,1,.3,1);
}

.prubric__text {
  color: var(--fg-dim);
  font-size: .9rem;
}

/* ---------------------------------- SLIDE 05 — FAQ / Q&A ---------------------------------- */

.pqa {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 720px;
}

.pqa__item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.pqa__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pqa__q,
.pqa__a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pqa__q {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.pqa__a {
  color: var(--fg-dim);
  font-size: .94rem;
}

.pqa__tag {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  background: var(--grad);
  color: #070b14;
}

.pqa__tag--a {
  background: rgba(255,255,255,.07);
  color: var(--fg-dim);
}

/* ---------------------------------- SLIDE 06 — APPLY ---------------------------------- */

.papply {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.papply__checklist ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.papply__checklist li {
  display: flex;
  gap: 12px;
  color: var(--fg-dim);
  font-size: .96rem;
}

.papply__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #070b14;
  font-size: .72rem;
  margin-top: 1px;
}

.papply__card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.papply__card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.papply__card p {
  color: var(--fg-dim);
  font-size: .94rem;
  margin-bottom: 20px;
}

@media (max-width: 760px) {
  .papply { grid-template-columns: 1fr; }
}

/* ---------------------------------- FOOTER ---------------------------------- */

.pfooter {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.pfooter__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.pfooter__back {
  color: var(--fg-dim);
  font-size: .9rem;
  transition: color .2s;
}
.pfooter__back:hover { color: var(--fg); }

.pfooter p {
  color: var(--fg-dim);
  font-size: .78rem;
}

.pfooter__org {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: .78rem;
  line-height: 1.7;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.pfooter__org a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-color: rgba(61,169,252,.4);
  transition: color .2s;
}

.pfooter__org a:hover {
  color: var(--fg);
}

/* Две колонки первого экрана: текст и кнопки слева, компактный чертёж справа. */
.phero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.phero__content { min-width: 0; }
.phero__title { max-width: 100%; }
.phero__visual {
  display: grid;
  place-items: center;
  min-width: 0;
}
.phero__blueprint {
  display: block;
  width: min(100%, 260px);
  height: auto;
  opacity: .82;
  filter: drop-shadow(0 0 24px rgba(61,169,252,.12));
}

.pfunnel__step {
  position: relative;
  box-shadow: inset 0 1px 0 rgba(168,208,240,.1), 0 18px 45px -35px rgba(61,169,252,.3);
}

.pfunnel__step::before {
  content: '';
  position: absolute;
  left: 27px;
  right: 27px;
  top: 0;
  height: 2px;
  background: var(--grad);
  opacity: .65;
}

.papply__card {
  border-color: rgba(61,169,252,.28);
  box-shadow: inset 0 1px 0 rgba(168,208,240,.1), 0 20px 55px -38px rgba(61,169,252,.4);
}

/* Существующий блик остаётся на всех кнопках страницы. */
.pbtn::before { pointer-events: none; }

@media (max-width: 860px) {
  .phero__inner { grid-template-columns: 1fr; gap: 34px; }
  .phero__visual { justify-items: start; }
  .phero__blueprint { width: min(100%, 220px); }
}

@media (max-width: 640px) {
  .pnav__inner { justify-content: space-between; gap: 10px; }
  .pnav__back { white-space: nowrap; font-size: .78rem; }
  .pnav__counter { display: none; }
  .pnav__cta.pbtn--primary { padding: 10px 14px; font-size: .78rem; white-space: nowrap; }
}
