/* =====================================================
   HOMEPAGE HERO / SLIDER
===================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.hero-slider .slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* --- Слайд: fade + лёгкий zoom фона --- */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition:
    opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    transform 6.5s ease-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(13, 54, 136) 35%,
    rgba(13, 58, 147, 0.815) 50%,
    rgba(10, 42, 107, 0) 100%
  );
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 680px;
  color: #ffffff;
}

/* --- Заголовок: выезд снизу + fade --- */
.hero-text h1 {
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.hero-slide.active .hero-text h1 {
  opacity: 1;
  transform: translateY(0);
}

/* --- Кнопки: появление с задержкой --- */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-buttons .btn {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.hero-slide.active .hero-buttons .btn:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.03s;
}

.hero-slide.active .hero-buttons .btn:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.03s;
}

/* когда слайд не активен — кнопки снова «прячутся» без задержки */
.hero-slide:not(.active) .hero-buttons .btn {
  transition-delay: 0s;
  transition-duration: 0.03s;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #1e5bb8;
  color: #ffffff;
  border-color: #1e5bb8;
}

.btn-primary:hover {
  background: #164a96;
  border-color: #164a96;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

/* --- Карточка президента --- */
.hero-side-card {
  position: absolute;
  right: 70px;
  bottom: 60px;
  z-index: 6;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  width: 200px;
  height: 280px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  /* появление только через animation, потом отключаем fill */
  animation: cardIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
  transition: box-shadow 0.35s ease;
  overflow: hidden;
}

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

/* после анимации появления — можно плавно двигать */
.hero-side-card.is-ready {
  animation: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.hero-side-card.is-ready:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

/* фото */
.hero-side-card .card-image-wrap {
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 8px;
}

.hero-side-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 6px;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-side-card .card-image-wrap img {
  margin-bottom: 0;
}

.hero-side-card.is-ready:hover img {
  transform: scale(1.08);
}



/* ссылка — БЕЗ text-decoration, только одна линия ::after */
.hero-side-card .card-link {
  position: relative;
  display: inline-block;
  font-size: 12px;
  color: #1e5bb8;
  font-weight: 500;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding-bottom: 2px;
  background-image: none !important;
}

.hero-side-card .card-link:hover,
.hero-side-card .card-link:focus {
  text-decoration: none !important;
  border-bottom: none !important;
}

.hero-side-card .card-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: #1e5bb8;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-side-card .card-link:hover::after {
  transform: scaleX(1);
}

.hero-side-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}

.hero-side-card .card-title {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.1;
  margin-bottom: 1px;
}

.hero-side-card .card-link {
  font-size: 13px;
  color: #1e5bb8;
  font-weight: 500;
}

.hero-side-card .card-link:hover {
  text-decoration: underline;
}

/* =====================================================
   ТОЧКИ — «таблетка» у активной
===================================================== */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 60%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.slider-dots button {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.slider-dots button:hover {
  background: rgba(255, 255, 255, 0.75);
}

.slider-dots button.active {
  width: 32px;
  background: rgba(255, 255, 255, 0.3);
}

.slider-dots button.active::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: #fff;
  border-radius: inherit;
  animation: dotProgress 5s linear forwards;
}

@keyframes dotProgress {
  from { width: 0; }
  to   { width: 100%; }
}
/* =====================================================
   Главная без скролла
===================================================== */
html:has(body.home),
html:has(body.front-page) {
  height: 100%;
  overflow: hidden;
}

body.home,
body.front-page {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

body.home .site-main,
body.front-page .site-main {
  height: 100%;
  overflow: hidden;
}