/* Корневой сайт boxguide.ru: одна картинка-ссылка на лендинг apitable.boxguide.ru, кнопка и подвал.
   Цвета — как на лендинге: тёмно-синий фон (--navy) с мягким синим свечением сверху,
   на нём светлая картинка выделяется, жёлтая кнопка — как кнопки покупки лендинга. */
:root {
  --navy: #0B1F3A;
  --navy-glow: #1D4A8C;   /* свечение за картинкой — синий из логотипа BoxGuide, приглушённый */
  --yellow: #FFDD2D;
  --yellow-hover: #FFE55C;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B8C3D6;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--on-dark);
  background-color: var(--navy);
  background-image: radial-gradient(ellipse 80% 60% at 50% 18%, var(--navy-glow) 0%, rgba(11, 31, 58, 0) 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px var(--gutter);
}

/* Картинка-ссылка: на наведении чуть увеличивается и приподнимается, тень становится глубже */
.poster {
  display: block;
  width: 100%;
  max-width: 675px;   /* на телефоне — во всю ширину минус отступы 16px */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* backwards, а не both: после появления анимация не держит transform и не мешает :hover */
  animation: poster-in 0.6s ease-out backwards;
}
.poster__img { display: block; width: 100%; height: auto; }
@media (hover: hover) {
  .poster:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
}
.poster:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
@keyframes poster-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Кнопка — как кнопки покупки лендинга */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 10px 30px rgba(255, 221, 45, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--yellow-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--on-dark); outline-offset: 3px; }

.footer {
  padding: 20px var(--gutter) 28px;
  text-align: center;
  font-size: 14px;
  color: var(--on-dark-muted);
}
.footer p { margin: 0; }
.footer a { color: var(--on-dark); text-underline-offset: 3px; }

@media (max-width: 599px) {
  .main { gap: 24px; padding-top: 24px; }
  .poster { border-radius: 14px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .poster, .btn { transition: none; animation: none; }
  .poster:hover { transform: none; }
  .btn:hover { transform: none; }
}
