.resume-main .container {
  max-width: 820px;
}

.resume-smileys {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.resume-smileys img.emoji-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
  animation: resume-float 3.2s ease-in-out infinite;
}

.resume-smileys img.emoji-img:nth-of-type(2) { animation-delay: 0.3s; }
.resume-smileys img.emoji-img:nth-of-type(3) { animation-delay: 0.6s; }
.resume-smileys img.emoji-img:nth-of-type(4) { animation-delay: 0.9s; }

@keyframes resume-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.resume-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 26px;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-m);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), background 0.2s var(--ease);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text-1);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--c1);
  color: var(--c1);
}

.btn-primary.disabled,
.btn-ghost.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.resume-viewer {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  height: min(78vh, 1050px);
}

.resume-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: relative;
  z-index: 1;
}

.resume-viewer-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  z-index: 0;
}

.resume-fallback {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 0.85rem;
  text-align: center;
}

.resume-missing {
  margin: 16px 0;
  color: var(--text-3);
  font-size: 0.9rem;
  text-align: center;
}

/* Мобільні браузери (особливо in-app WebView Telegram/Instagram) часто не
   вміють рендерити PDF всередині iframe — на вузьких екранах ховаємо
   в'ювер і залишаємо тільки кнопки завантаження/відкриття, щоб людина не
   впиралась у порожній прямокутник. */
@media (max-width: 640px) {
  .resume-viewer {
    display: none;
  }

  .resume-fallback {
    display: block;
  }
}

@media (min-width: 641px) {
  .resume-fallback {
    display: none;
  }
}
