* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #1a1a2e;
  font-family: Arial, Helvetica, sans-serif;
}

.banner {
  position: relative;
  width: 320px;
  height: 500px;
  overflow: hidden;
  cursor: pointer;
  background: #1B2E5B;
}

.banner-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* ==========================================
   Фоновое изображение + затемнение
   ========================================== */
.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/bg.webp') center/cover no-repeat;
  animation: bgCycle 15s ease-in-out infinite;
  opacity: 0;
}

.banner-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

/* ==========================================
   Контент-слой
   ========================================== */
.banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 30px 24px 18px;
}

/* ==========================================
   Логотип
   ========================================== */
.logo-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: logoFadeIn 0.5s ease-out 0s forwards,
             logoFadeOut 0.5s ease-in 1.5s forwards;
}

.logo {
  width: 200px;
  height: auto;
}

.logo-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #FFFFFF;
  text-align: center;
  white-space: nowrap;
}

/* ==========================================
   Заголовок
   ========================================== */
.title-block {
  text-align: center;
  margin-bottom: 10px;
}

.main-title {
  font-size: 30px;
  font-weight: 700;
  color: #f8aa00;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: titleFadeIn 0.8s ease-out 2.5s forwards;
}

/* ==========================================
   Преимущества
   ========================================== */
.advantages-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.advantage {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgb(10 68 146 / 38%);
  border-radius: 6px;
  border-left: 3px solid #f8aa00;
  opacity: 0;
  animation: advantageFadeIn 0.5s ease-out forwards;
}

.advantage-1 { animation-delay: 3.2s; }
.advantage-2 { animation-delay: 3.7s; }
.advantage-3 { animation-delay: 4.2s; }

.advantage-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url('assets/icons/check.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.advantage-text {
  font-size: 19px;
  font-weight: 400;
  color: #FFFFFF;
}

/* ==========================================
   Область замены (вакансии ↔ контакты)
   ========================================== */
.swap-area {
  position: relative;
  width: 100%;
  height: 130px;
}

/* ==========================================
   Вакансии
   ========================================== */
.vacancies-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  animation: vacanciesIn 0.5s ease-out 5.5s forwards,
             vacanciesOut 0.5s ease-in 11.0s forwards;
}

.vacancy {
  font-size: 18px;
  font-weight: 400;
  color: #92400e;
  text-align: center;
  border-radius: 12px;
  background: #fef3c7;
  padding: 2px 12px;
  opacity: 0;
  animation: vacancyFadeIn 0.5s ease-out forwards;
}

.vacancy-1 { animation-delay: 5.5s; }
.vacancy-2 { animation-delay: 6.0s; }
.vacancy-3 { animation-delay: 6.5s; }
.vacancy-4 { animation-delay: 7.0s; }

/* ==========================================
   CTA-кнопка
   ========================================== */
.cta-block {
  margin-top: auto;
  margin-bottom: 8px;
  opacity: 0;
  animation: ctaFadeIn 0.6s ease-out 8.0s forwards;
}

.cta-button {
  display: block;
  width: 220px;
  padding: 14px 0;
  border: none;
  border-radius: 8px;
  background: #D62828;
  color: #FFFFFF;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  animation: ctaBreathe 2s ease-in-out 8.6s infinite;
}

/* ==========================================
   Контакты
   ========================================== */
.contacts-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: contactsIn 0.5s ease-out 11.5s forwards;
}

.phone {
  font-size: 23px;
  font-weight: 700;
  color: #f8aa00;
  line-height: 1.4;
}

/* ==========================================
   Юридическая информация
   ========================================== */
.legal-block {
  text-align: center;
  margin-top: 8px;
}

.legal-name {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
}

.legal-unp {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================
   Keyframes
   ========================================== */
@keyframes bgCycle {
  0%   { opacity: 0; transform: scale(1); }
  7%   { opacity: 1; transform: scale(1.03); }
  50%  { opacity: 1; transform: scale(1.1); }
  93%  { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes titleFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes advantageFadeIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes vacancyFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ctaFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes ctaBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

@keyframes vacanciesIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vacanciesOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-40px); }
}

@keyframes contactsIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes logoFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
