/* Дзинь — landing. Apple-like, translucent glass, soft bluish tones. */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: #1c2333;
  background:
    radial-gradient(1200px 600px at 15% -10%, #dbe7ff 0%, transparent 55%),
    radial-gradient(1000px 500px at 110% 20%, #cfe0fb 0%, transparent 50%),
    linear-gradient(180deg, #eef3fc 0%, #e4ecf9 45%, #dfe9f8 100%);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: 0 12px 40px rgba(31, 58, 106, 0.12);
}

header.glass { text-align: left; }

h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #16233c;
}

.tag {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #4a6cb5;
  text-transform: none;
}

.lead {
  margin-top: 14px;
  font-size: 18px;
  color: #33415e;
}

.lead em {
  font-style: normal;
  font-weight: 600;
  color: #2c4d92;
}

/* Tooltip hint on hover/focus */
.hint {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #4a6cb5;
  z-index: 40;
}

/* Tooltip must paint ABOVE the next glass block (backdrop-filter
   creates a stacking context per block, later siblings win otherwise) */
header.glass {
  position: relative;
  z-index: 2;
}

.hint-text {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: min(320px, 78vw);
  background: rgba(22, 35, 60, 0.94);
  color: #eaf1ff;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  box-shadow: 0 12px 32px rgba(31, 58, 106, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 20;
}

.hint:hover .hint-text,
.hint:focus .hint-text,
.hint:focus-within .hint-text {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #16233c;
  margin-bottom: 18px;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  font-size: 16px;
  color: #2c3a56;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(74, 108, 181, 0.16);
  color: #2c4d92;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path {
  display: inline;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(74, 108, 181, 0.12);
  color: #2c4d92;
  font-size: 14px;
  font-family: "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  word-break: break-word;
}

.btn {
  display: inline-block;
  margin-top: 26px;
  padding: 15px 30px;
  border-radius: 16px;
  background: linear-gradient(180deg, #4d7bd1 0%, #3562b8 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(53, 98, 184, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(53, 98, 184, 0.42);
}

.btn:active { transform: translateY(0); }

.note {
  margin-top: 16px;
  font-size: 13px;
  color: #66748f;
}

footer {
  text-align: center;
  font-size: 13px;
  color: #66748f;
  padding: 4px 0 8px;
}

/* Video player */
.player-glass h2 {
  margin-bottom: 14px;
}

.player-box {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(22, 35, 60, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 32px rgba(31, 58, 106, 0.18);
  aspect-ratio: 16 / 9;
}

/* Glass banner: "turn sound on" */
.sound-banner {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 16px 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 40px rgba(31, 58, 106, 0.22);
  color: #16233c;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
  z-index: 5;
  animation: banner-in 0.25s ease;
}

.sound-banner.is-visible {
  display: block;
}

@keyframes banner-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101828;
}

@media (max-width: 520px) {
  .wrap { padding: 22px 14px 32px; }
  h1 { font-size: 34px; }
  .glass { padding: 22px 18px; border-radius: 20px; }
  .steps li { padding-left: 42px; }
  .btn { width: 100%; text-align: center; }
}
