*,
*::before,
*::after {
  box-sizing: border-box;
}

.page {
  position: relative;
  min-height: 100vh;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #e8ecff;
  background: linear-gradient(160deg, rgba(8, 10, 22, 0.82) 0%, rgba(10, 14, 26, 0.85) 55%, rgba(6, 8, 18, 0.9) 100%), url("../assets/images/novatv-tv.png") center/cover no-repeat;
  overflow: auto;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 20, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.guide {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  color: #e8ecff;
}

.guide__header {
  text-align: center;
  margin-bottom: 48px;
}

.guide__logo {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8fa7ff;
  text-decoration: none;
  font-size: 12px;
  margin-bottom: 18px;
}

.guide__header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
}

.guide__intro {
  margin: 14px auto 0;
  max-width: 620px;
  color: rgba(233, 238, 255, 0.75);
}

.guide__steps {
  display: grid;
  gap: 32px;
}

.guide-step {
  background: rgba(16, 22, 43, 0.8);
  border: 1px solid rgba(143, 167, 255, 0.12);
  border-radius: 18px;
  padding: 28px 28px 34px;
  position: relative;
  overflow: hidden;
}

.guide-step__label {
  position: absolute;
  top: 20px;
  left: 24px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(143, 167, 255, 0.9);
}

.guide-step__content {
  margin-top: 28px;
}

.guide-step__content h2 {
  margin: 0 0 12px;
  font-size: 24px;
  color: #ffffff;
}

.guide-step__content p {
  margin: 0 0 18px;
  color: rgba(233, 238, 255, 0.78);
}

.guide-step__content code {
  background: rgba(255, 208, 80, 0.92);
  color: #1a1f35;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
}

.guide-step__content code a {
  color: inherit;
  text-decoration: none;
}

.guide-step__content code a:hover,
.guide-step__content code a:focus {
  color: #ffffff;
  text-decoration: underline;
}

.guide-step__image,
.guide-gallery {
  margin: 18px 0 0;
}

.guide-step__image img,
.guide-gallery__item img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(8, 10, 26, 0.45);
}

.guide-step__image figcaption,
.guide-gallery__item figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(233, 238, 255, 0.6);
}

.guide-gallery {
  display: grid;
  gap: 20px;
}

.guide-gallery__item {
  margin: 0;
}

.guide-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 208, 80, 0.16);
  border: 1px solid rgba(255, 208, 80, 0.4);
  margin-bottom: 10px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.guide-cta:hover,
.guide-cta:focus {
  background: rgba(255, 208, 80, 0.28);
  border-color: rgba(255, 208, 80, 0.5);
  transform: translateY(-1px);
  outline: none;
}

.guide-cta:active {
  transform: translateY(0);
}

.guide-cta--copied {
  background: rgba(58, 214, 143, 0.35);
  border-color: rgba(58, 214, 143, 0.55);
}

.guide-cta__code {
  font-size: 20px;
  font-weight: 700;
  color: #ffd050;
  letter-spacing: 0.1em;
}

.guide-cta__hint {
  font-size: 13px;
  color: rgba(233, 238, 255, 0.8);
}

.guide__footer {
  margin-top: 48px;
  text-align: center;
  color: rgba(233, 238, 255, 0.7);
}

.guide__footer a {
  color: #9dc0ff;
  font-weight: 600;
}

.guide__footer a:hover,
.guide__footer a:focus {
  color: #ffffff;
  text-decoration: none;
}

.guide__back {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  color: rgba(233, 238, 255, 0.75);
}

.guide__back:hover,
.guide__back:focus {
  color: #ffffff;
}

.guide__note {
  margin-top: 48px;
  padding: 28px 30px;
  border-radius: 18px;
  background: rgba(143, 167, 255, 0.12);
  border: 1px solid rgba(143, 167, 255, 0.22);
  color: rgba(233, 238, 255, 0.78);
}

.guide__note h2 {
  margin: 0 0 14px;
  font-size: 24px;
  color: #ffffff;
}

.guide__note p {
  margin: 0 0 16px;
}

.guide__note ol {
  margin: 0 0 16px 20px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.guide__note li {
  line-height: 1.55;
}

@media (min-width: 768px) {
  .guide-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .guide {
    padding: 40px 16px 56px;
  }

  .guide-step {
    padding: 24px 20px 30px;
  }

  .guide-step__label {
    position: static;
    display: inline-block;
    margin-bottom: 14px;
  }

  .guide-step__content {
    margin-top: 18px;
  }

  .guide__note {
    margin-top: 36px;
    padding: 24px;
  }
}
