/* Download hierarchy: one clear primary action, followed by product evidence. */
.header-inner {
  height: 80px;
}

.header-download {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 14px;
}

.hero-grid {
  min-height: 620px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.hero-copy h1 {
  font-size: clamp(44px, 4.8vw, 68px);
  line-height: 1.1;
  letter-spacing: -3px;
  margin: 22px 0;
}

.hero-description {
  max-width: 470px;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 19px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 19px;
  padding: 0;
  margin: 0 0 29px;
  list-style: none;
  color: #d4d5d6;
  font-size: 13px;
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-benefits li span {
  color: var(--yellow);
}

/* Явная колонка: вторичная ссылка всегда под кнопкой при любой ширине. */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.button.download-primary {
  width: min(100%, 380px);
  min-width: 0;
  min-height: 80px;
  justify-content: flex-start;
  padding: 17px 22px;
  gap: 16px;
  box-shadow:
    0 8px 0 #9e7500,
    0 18px 45px #ffcd1f1c;
  border: 1px solid #ffe475;
}

.button.download-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 11px 0 #9e7500,
    0 21px 55px #ffcd1f30;
}

.button.download-primary:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 #9e7500;
}

.download-primary .windows-icon {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  gap: 3px;
}

.download-label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.download-label strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.45px;
}

.download-label small {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #594815;
}

.download-primary .download-arrow {
  margin-left: auto;
  font-size: 31px !important;
}

.hero-actions .watch-link {
  margin-top: 0;
  white-space: normal;
  color: #aeb2b5;
  font-size: 14px;
  font-weight: 400;
  gap: 10px;
}

.hero-actions .watch-link:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Never make the download link wait for the decorative entrance sequence. */
.motion-ready:not(.motion-paused) .hero-copy > .hero-actions {
  animation: none;
  opacity: 1;
  transform: none;
}

.hero .floating-keyboard {
  border-color: #ffffff20;
}

.hero .floating-keyboard .key-label {
  color: #c8c9cb;
}

/* Repeat the same action at two natural decision points. */
.download-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  padding: 29px 32px;
  border-radius: 12px;
}

.callout-dark {
  background: #ffcd1f08;
  border: 1px solid #ffcd1f3a;
  border-left: 4px solid var(--yellow);
}

.callout-light {
  border: 1px solid #d9d9ce;
  background: #fff;
  border-left: 4px solid var(--yellow);
}

.callout-kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #a9acaf;
}

.callout-light .callout-kicker {
  color: #767b7e;
}

.download-callout h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  margin: 9px 0;
}

.download-callout p {
  color: #aeb2b5;
  font-size: 16px;
  margin: 0;
}

.callout-light p {
  color: #6d7377;
}

.download-callout .button {
  flex-shrink: 0;
  min-height: 59px;
  font-size: 15px;
  padding-inline: 24px;
}

.download-section .button-dark {
  min-height: 72px;
  padding-inline: 30px;
  font-size: 18px;
}

/* Mobile-only CTA dock; desktop already has a persistent header download. */
.download-dock {
  position: fixed;
  z-index: 35;
  inset: auto 0 0;
  padding: 12px 20px calc(9px + env(safe-area-inset-bottom));
  color: white;
  background: #171819f5;
  border-top: 1px solid #ffcd1f55;
  box-shadow: 0 -10px 32px #0003;
  backdrop-filter: blur(18px);
  animation: dock-arrive 0.25s ease-out;
}

.dock-inner {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 600px;
  margin-inline: auto;
}

.dock-copy {
  line-height: 1.35;
  flex-shrink: 0;
}

.dock-copy strong {
  display: block;
  font-size: 14px;
}

.dock-copy span {
  display: block;
  color: #b4b7ba;
  font-size: 11px;
  margin-top: 3px;
}

.dock-button {
  margin-left: auto;
  min-height: 49px;
  padding: 11px 15px;
  gap: 10px;
  font-size: 14px;
}

@keyframes dock-arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 961px) {
  .download-dock {
    display: none !important;
  }
}

@media (min-width: 1500px) {
  .hero-grid {
    min-height: 700px;
  }
}

@media (max-width: 1100px) and (min-width: 961px) {
  .hero-copy h1 {
    font-size: 48px;
  }
  .hero-description {
    font-size: 16px;
  }
  .hero-benefits {
    gap: 8px 12px;
    font-size: 12px;
  }

  .download-callout {
    padding: 25px;
  }
}

@media (max-width: 960px) {
  html {
    scroll-padding-bottom: 110px;
  }
  body {
    padding-bottom: calc(95px + env(safe-area-inset-bottom));
  }
  .header-inner {
    height: 68px;
  }
  .hero-grid {
    padding-top: 36px;
    padding-bottom: 24px;
    min-height: 0;
    gap: 28px;
  }
  .hero-copy .eyebrow {
    font-size: 12px;
    letter-spacing: 0.8px;
  }
  .hero-copy h1 {
    font-size: clamp(34px, 7.5vw, 56px);
    letter-spacing: -1.9px;
    margin: 19px 0;
  }
  .hero-description {
    max-width: 500px;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 16px;
  }
  .hero-benefits {
    font-size: 12px;
    gap: 8px 16px;
    margin-bottom: 22px;
  }
  .button.download-primary {
    width: 100%;
    max-width: 380px;
    min-width: 0;
    min-height: 78px;
    padding: 16px 20px;
    gap: 14px;
  }
  .download-label strong {
    font-size: 20px;
  }
  .download-label small {
    font-size: 12px;
  }
  .download-primary .windows-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
  .hero-actions .watch-link {
    font-size: 14px;
  }
  .download-callout {
    display: block;
    margin-top: 28px;
    padding: 24px 22px;
  }
  .download-callout h3 {
    font-size: 23px;
  }
  .download-callout p {
    font-size: 16px;
    line-height: 1.8;
  }
  .download-callout .button {
    width: 100%;
    margin-top: 22px;
  }
  .download-section .button-dark {
    min-height: 66px;
    font-size: 17px;
  }
  .download-final > span {
    margin-left: 0;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .hero-copy h1 {
    font-size: 34px;
  }
  .hero-benefits {
    gap: 6px 10px;
    font-size: 12px;
  }
  .download-label strong {
    font-size: 18px;
  }
  .button.download-primary {
    padding-inline: 16px;
    gap: 12px;
  }
  .download-primary .download-arrow {
    font-size: 27px !important;
  }
  .download-dock {
    padding-inline: 16px;
  }
  .dock-inner > img {
    display: none;
  }
  .dock-button {
    font-size: 13px;
    padding-inline: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-dock {
    animation: none;
  }
}
