/* ============================================================
   azat.life/cuedeck — страница программы
   Наследует палитру и типографику из style.css
   ============================================================ */

.cd-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 48px;
}

.cd-hero__kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cd-hero h1 {
  font-size: clamp(38px, 7vw, 64px);
  margin-bottom: 18px;
}

.cd-hero__lead {
  color: var(--text-dim);
  font-size: clamp(17px, 2.4vw, 21px);
  max-width: 42ch;
  margin-bottom: 34px;
}

/* ---------- Кнопки скачивания ---------- */

.cd-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.cd-dl {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 700;
  transition: border-color 0.15s, background 0.15s;
}

.cd-dl:hover { border-color: var(--accent); background: var(--bg-raised); }

.cd-dl--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #16110a;
}

.cd-dl--primary:hover { background: #ffb44f; border-color: #ffb44f; }

.cd-dl__sub {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.7;
}

.cd-meta {
  color: var(--text-dim);
  font-size: 14px;
}

.cd-meta__free { color: var(--accent); font-weight: 700; }

/* ---------- Секции ---------- */

.cd-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
  border-top: 1px solid var(--border);
}

.cd-section h2 {
  font-size: clamp(26px, 4vw, 34px);
  margin-bottom: 12px;
}

.cd-section__intro {
  color: var(--text-dim);
  max-width: 60ch;
  margin-bottom: 32px;
}

/* ---------- Три окна ---------- */

.cd-windows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.cd-window__shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  margin-bottom: 14px;
}

.cd-window__shot { cursor: zoom-in; }

/* ---------- Просмотр скриншота во весь экран ---------- */

.cd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: rgba(5, 5, 8, 0.94);
  cursor: zoom-out;
}

.cd-lightbox[open] { display: flex; }

.cd-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.cd-lightbox__caption {
  color: var(--text-dim);
  font-size: 15px;
  text-align: center;
}

.cd-lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cd-lightbox__close:hover { border-color: var(--accent); color: var(--accent); }

.cd-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(26, 26, 34, 0.85);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.cd-lightbox__nav:hover { border-color: var(--accent); color: var(--accent); }
.cd-lightbox__nav[hidden] { display: none; }
.cd-lightbox__nav--prev { left: 18px; }
.cd-lightbox__nav--next { right: 18px; }

@media (max-width: 600px) {
  .cd-lightbox__nav { width: 44px; height: 44px; font-size: 26px; }
  .cd-lightbox__nav--prev { left: 8px; }
  .cd-lightbox__nav--next { right: 8px; }
}

.cd-window__placeholder {
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.45;
  border-style: dashed;
}

.cd-window h3 { font-size: 19px; margin-bottom: 6px; }
.cd-window p { color: var(--text-dim); font-size: 15px; }

/* ---------- Возможности ---------- */

.cd-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.cd-feature {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cd-feature h3 { font-size: 17px; margin-bottom: 7px; }
.cd-feature p { color: var(--text-dim); font-size: 15px; line-height: 1.55; }

/* ---------- Видео ---------- */

.cd-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
}

.cd-video { display: block; }

.cd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cd-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Кнопка проигрывания поверх обложки */
.cd-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.15s, background 0.15s;
}

.cd-video__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #16110a;
}

.cd-video:hover .cd-video__play { transform: translate(-50%, -50%) scale(1.08); background: #ffb44f; }

.cd-video__note {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 15px;
}

/* ---------- Требования ---------- */

.cd-req {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.cd-req__item { padding: 18px 20px; border-left: 2px solid var(--accent); background: var(--bg-raised); border-radius: 0 var(--radius) var(--radius) 0; }
.cd-req__item h3 { font-size: 16px; margin-bottom: 5px; }
.cd-req__item p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Подвал ---------- */

.cd-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 72px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 15px;
}

.cd-footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 16px; }

@media (max-width: 600px) {
  .cd-hero { padding-top: 48px; }
  .cd-dl { flex: 1 1 100%; }
}
