@import url("https://fonts.cdnfonts.com/css/futura-pt");

:root {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --text: #111214;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --border: rgba(17, 18, 20, 0.12);
  --muted: rgba(17, 18, 20, 0.65);
  --shadow-soft: 0 8px 24px rgba(17, 18, 20, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  font-family: "Futura PT", "Futura PT Web", "Futura", "Trebuchet MS", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 14px 28px;
}

.top-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #151617;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  transition: opacity 0.15s ease;
}

.top-link:hover,
.top-link:focus-visible {
  opacity: 0.65;
  outline: none;
}

.top-link--telegram {
  font-weight: 500;
}

.tg-icon {
  width: 14px;
  height: 14px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: transparent;
  color: #151617;
}

.app__header {
  margin-bottom: 10px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 600;
  opacity: 1;
}

.notice {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 14px;
}

.loader {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader--in-content {
  min-height: 180px;
}

.loader__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--text);
  animation: pulse 0.9s ease-in-out infinite;
}

.hidden {
  display: none;
}

.shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 5px solid #ffd65d;
  border-radius: 0;
  padding: 18px 16px;
  box-shadow: none;
  width: 100%;
}

.card--content {
  min-height: 360px;
}

.card--nav h2 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.card--nav {
  width: 100%;
  padding: 2px 2px 0;
}

.card--nav p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-image {
  width: 100%;
  max-height: 220px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  margin: 0 0 8px;
  border: 0;
  box-shadow: none;
}

.content {
  font-size: 16px;
  line-height: 1.42;
  word-wrap: break-word;
  white-space: normal;
}

.content.hidden,
.hero-image.hidden-by-loading {
  display: none;
}

.actions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.actions__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.action-btn {
  width: 100%;
  border: 1px solid #d9d9dd;
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
  background: #ececef;
  color: #1b1c1f;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.1s ease,
    opacity 0.15s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.action-btn:hover,
.action-btn:focus-visible {
  transform: translateY(-1px);
  opacity: 1;
  background: #e3e3e8;
  box-shadow: 0 2px 8px rgba(17, 18, 20, 0.08);
  outline: none;
}

.action-btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.75);
    opacity: 0.55;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .content {
    font-size: 15px;
  }
}
