@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f6f0e4;
  color: #151a2f;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

.topbar {
  height: 60px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(21, 26, 47, 0.08);
  background: #f8f2e8;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}

.logo {
  font-family: 'Anton', sans-serif;
  font-size: 27px;
  letter-spacing: 1px;
}

.logo span {
  color: #0099e8;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: #151a2f;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
}

.top-button {
  padding: 9px 24px;
  border-radius: 999px;
  border: 3px solid #151a2f;
  background: #ffe66b;
  font-weight: 900;
  color: #151a2f;
  cursor: pointer;
  box-shadow: 4px 4px 0 #151a2f;
}

.presentation {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.slide {
  position: absolute;
  inset: 60px 0 0 0;
  padding: 55px 60px 85px;
  opacity: 0;
  transform: translateY(35px) scale(0.98);
  pointer-events: none;
  transition: 0.55s ease;
}

.slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.hero-grid {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 55px;
  align-items: center;
}

.sticker {
  display: inline-block;
  padding: 7px 20px;
  border: 3px solid #151a2f;
  border-radius: 5px;
  box-shadow: 4px 4px 0 #151a2f;
  font-weight: 900;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 20px;
  transform: rotate(-2deg);
}

.orange {
  background: #ff795b;
  color: #fff;
}

.blue {
  background: #18a8ee;
  color: #fff;
}

.yellow {
  background: #ffe66b;
  color: #151a2f;
}

h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(76px, 10vw, 145px);
  line-height: 0.88;
  letter-spacing: 3px;
  margin-bottom: 25px;
}

h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

h3 {
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 10px;
}

.big-text {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  max-width: 760px;
  margin-bottom: 18px;
}

.small-text,
.large-p {
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.55;
  max-width: 850px;
}

.mini-cards {
  margin-top: 35px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mini-cards div,
.info-block,
.tech-grid div,
.task-list div,
.future div {
  background: #fff;
  border: 3px solid #151a2f;
  border-radius: 13px;
  box-shadow: 7px 7px 0 #151a2f;
}

.mini-cards div {
  padding: 18px;
}

.mini-cards b {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
}

.mini-cards span {
  font-size: 14px;
  line-height: 1.4;
}

.screen-card {
  position: relative;
  background: #fff;
  border: 3px solid #151a2f;
  border-radius: 28px;
  box-shadow: 12px 12px 0 #151a2f;
  padding: 24px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-card .sticker {
  position: absolute;
  right: -15px;
  top: -20px;
}

.screen-card img,
.screens img {
  width: 100%;
  display: block;
  border: 3px solid #151a2f;
  border-radius: 18px;
  object-fit: cover;
  background: #f8f8f8;
}

.content-box {
  height: 100%;
  border: 3px solid #151a2f;
  border-radius: 30px;
  box-shadow: 12px 12px 0 #151a2f;
  background: #fff8df;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 20px;
}

.info-block {
  padding: 25px;
  min-height: 190px;
}

.info-block span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #18a8ee;
  color: #fff;
  border: 3px solid #151a2f;
  font-weight: 900;
  margin-bottom: 15px;
}

.info-block p {
  font-size: 18px;
  line-height: 1.45;
}

.split {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 45px;
  align-items: center;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.task-list div {
  padding: 22px 26px;
  font-size: 22px;
  font-weight: 900;
}

.advantage {
  margin-top: 28px;
  padding: 22px;
  background: #ffe66b;
  border: 3px solid #151a2f;
  border-radius: 15px;
  box-shadow: 6px 6px 0 #151a2f;
  font-weight: 900;
  font-size: 22px;
}

.tech-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tech-grid div {
  padding: 22px;
}

.tech-grid b {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.tech-grid span {
  font-size: 15px;
}

.scheme {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 20px 0 35px;
}

.scheme div {
  background: #fff;
  border: 3px solid #151a2f;
  border-radius: 18px;
  box-shadow: 6px 6px 0 #151a2f;
  padding: 25px;
  font-weight: 900;
  font-size: 20px;
  text-align: center;
}

.scheme span {
  font-size: 36px;
  font-weight: 900;
}

.center {
  text-align: center;
  margin: 0 auto;
}

.image-slide {
  height: 100%;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 35px;
  align-items: center;
}

.screens {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.screens.three {
  grid-template-columns: repeat(3, 1fr);
}

.screens img {
  height: 430px;
  box-shadow: 8px 8px 0 #151a2f;
}

.screens.three img {
  height: 360px;
}

.final-slide {
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.future {
  margin: 35px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 1050px;
}

.future div {
  padding: 20px;
  font-weight: 900;
}

.final-slide h3 {
  font-family: 'Anton', sans-serif;
  font-size: 58px;
  letter-spacing: 2px;
}

.answer {
  font-size: 24px;
  font-weight: 800;
}

.controls {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 3px solid #151a2f;
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 6px 6px 0 #151a2f;
}

.controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #151a2f;
  background: #18a8ee;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

#counter {
  font-weight: 900;
  min-width: 60px;
  text-align: center;
}

.hint {
  position: fixed;
  right: 25px;
  bottom: 35px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0.65;
}

@media (max-width: 1100px) {
  body {
    overflow: auto;
  }

  .topbar {
    padding: 0 20px;
  }

  nav {
    display: none;
  }

  .slide {
    position: relative;
    inset: auto;
    min-height: calc(100vh - 60px);
    display: none;
    padding: 35px 20px 95px;
  }

  .slide.active {
    display: block;
  }

  .hero-grid,
  .split,
  .image-slide {
    grid-template-columns: 1fr;
  }

  .mini-cards,
  .cards-3,
  .tech-grid,
  .future,
  .screens,
  .screens.three {
    grid-template-columns: 1fr;
  }

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

  .scheme span {
    transform: rotate(90deg);
    text-align: center;
  }

  .screens img,
  .screens.three img {
    height: auto;
  }

  .hint {
    display: none;
  }
}

.slide {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

body {
  min-width: 320px;
}

p,
.info-block p,
.small-text,
.large-p {
  font-size: clamp(20px, 1.6vw, 30px);
}

nav a {
  font-size: clamp(13px, 1vw, 18px);
}

.logo {
  font-size: clamp(24px, 2vw, 34px);
}

.sticker {
  font-size: clamp(13px, 1vw, 18px);
}

.mini-cards span,
.tech-grid span {
  font-size: clamp(15px, 1vw, 20px);
}

.mini-cards b,
.tech-grid b,
.task-list div,
.future div {
  font-size: clamp(18px, 1.4vw, 26px);
}

.info-block h3 {
  font-size: clamp(22px, 1.7vw, 32px);
}

.screen-card img,
.screens img {
  max-height: 58vh;
  object-fit: contain;
}

.content-box {
  max-width: 1500px;
  margin: 0 auto;
}

@media (min-width: 1800px) {
  .topbar {
    height: 76px;
    padding: 0 90px;
  }

  .slide {
    inset: 76px 0 0 0;
    padding: 70px 80px 100px;
  }

  h1 {
    font-size: clamp(110px, 8vw, 170px);
  }

  h2 {
    font-size: clamp(70px, 5vw, 105px);
  }

  .big-text {
    font-size: clamp(34px, 2.4vw, 52px);
  }

  .large-p {
    font-size: clamp(26px, 1.7vw, 36px);
  }
}

@media (max-height: 750px) {
  .slide {
    padding-top: 30px;
    padding-bottom: 80px;
  }

  h1 {
    font-size: clamp(60px, 8vw, 105px);
  }

  h2 {
    font-size: clamp(42px, 5vw, 70px);
  }

  .mini-cards,
  .cards-3,
  .tech-grid,
  .future {
    gap: 12px;
  }

  .info-block,
  .tech-grid div,
  .task-list div,
  .future div {
    padding: 16px;
  }

  .screens img {
    max-height: 50vh;
  }
}