* {
box-sizing: border-box;
}

:root {
  --bg-1: #0b1020;
  --bg-2: #121933;
  --panel: rgba(20, 28, 48, 0.72);
  --panel-solid: #171f36;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f5f7ff;
  --muted: #c8d1ff;
  --soft: #98a6d4;
  --accent: #61e6b2;
  --accent-2: #67b8ff;
  --accent-3: #a78bfa;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background:
  radial-gradient(circle at top left, rgba(103, 184, 255, 0.12), transparent 30%),
  radial-gradient(circle at bottom right, rgba(97, 230, 178, 0.12), transparent 30%),
  linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
  linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.presentation {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  padding: 60px 72px 110px;
  overflow: hidden;
}

.slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideFade 0.45s ease;
}

.content {
  width: min(1250px, 100%);
  max-height: 100%;
}

.img-row {
  display: flex;
  align-items: center;
  gap: 56px;
}

.img-row .text {
  flex: 1;
}

.text {
  min-width: 0;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1 {
  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

p,
li {
  font-size: 24px;
  line-height: 1.6;
  color: var(--muted);
}

ul,
ol {
  padding-left: 28px;
}

li + li {
  margin-top: 8px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 28px;
  line-height: 1.5;
  max-width: 860px;
  color: #dde5ff;
}

.slide-img {
  width: 340px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, #1a2035, #13192b);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.slide-img:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.card {
  padding: 22px 22px 18px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(97, 230, 178, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
  color: #ffffff;
}

.card p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 18px 20px 18px 70px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #0f172a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.quote {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
}

.sources p {
  font-size: 22px;
}

.progress {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 7px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 18px rgba(97, 230, 178, 0.45);
  z-index: 10;
  transition: width 0.25s ease;
}

.controls {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 20;
  cursor: default;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(18, 24, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.controls button {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(145deg, #1d263d, #151c2e);
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: 0.22s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.controls button:hover {
  background: linear-gradient(145deg, var(--accent), #7cf0c1);
  color: #101525;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 22px rgba(97, 230, 178, 0.3);
}

.controls button:active {
  transform: translateY(-1px) scale(0.98);
}

.controls button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.counter {
  position: fixed;
  right: 24px;
  bottom: 25px;
  color: #dbe4ff;
  font-size: 15px;
  z-index: 20;
  cursor: default;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(18, 24, 40, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.hint {
  position: fixed;
  left: 24px;
  bottom: 25px;
  color: #c8d1ff;
  font-size: 15px;
  z-index: 20;
  cursor: default;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(18, 24, 40, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.sources .content {
  max-width: 1050px;
}

.sources .text {
  width: 100%;
}

.slide:first-child .content,
.slide:last-of-type:not(.sources) .content {
  text-align: left;
}

.slide:first-child h1,
.slide:last-of-type:not(.sources) h1 {
  margin-bottom: 18px;
}

.slide:first-child .subtitle,
.slide:last-of-type:not(.sources) .subtitle {
  max-width: 780px;
}

@keyframes slideFade {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1100px) {
  .slide {
    padding: 50px 42px 110px;
  }

  .img-row {
    gap: 34px;
  }

  .slide-img {
    width: 280px;
    max-height: 300px;
  }

  p,
  li {
    font-size: 22px;
  }

  .subtitle {
    font-size: 25px;
  }

  .card strong {
    font-size: 22px;
  }

  .card p {
    font-size: 19px;
  }
}

@media (max-width: 800px) {
  .slide {
    padding: 45px 30px 115px;
    overflow-y: auto;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 40px;
  }

  p,
  li {
    font-size: 22px;
  }

  .subtitle {
    font-size: 24px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .img-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .slide-img {
    width: 100%;
    max-width: 280px;
    max-height: 240px;
  }

  .controls {
    bottom: 18px;
    gap: 10px;
    padding: 8px 10px;
  }

  .controls button {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .hint {
    display: none;
  }

  .counter {
    right: 18px;
    bottom: 84px;
  }
}

@media (max-width: 520px) {
  .slide {
    padding: 32px 18px 115px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 31px;
  }

  p,
  li,
  .subtitle {
    font-size: 18px;
  }

  .card {
    padding: 18px;
  }

  .card strong {
    font-size: 20px;
  }

  .card p {
    font-size: 17px;
  }

  .steps li {
    padding: 16px 16px 16px 58px;
  }

  .steps li::before {
    width: 30px;
    height: 30px;
    left: 16px;
    font-size: 15px;
  }

  .quote {
    font-size: 28px;
  }
}
