/* ===== HEADER ===== */
.header__top-services {
  margin-top: 20px;
}

.logo img {
  width: 50px;
  height: auto;
}

.header__title-news {
  position: relative;
  font-size: 80px;
  font-weight: 500;
  line-height: 96px;
  text-align: center;
  margin-bottom: 50px;
  animation: hero-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.header__title-news::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 40px));
  height: 1px;
  background-color: var(--color-black);
  opacity: 0.5;
}

.header__hero-news {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ИСПРАВЛЕНО: было translateX → translateY */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ИНТРО ===== */
.polk-intro {
  padding: 80px 0;
}

.polk-intro__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.polk-intro__lead {
  font-size: 24px;
  line-height: 36px;
  font-weight: 500;
  margin-bottom: 24px;
}

/* ===== ЦИФРЫ ===== */
.polk-stats {
  padding: 50px 0;
  border-top: 1px solid rgba(27, 25, 23, 0.15);
  border-bottom: 1px solid rgba(27, 25, 23, 0.15);
}

.polk-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.polk-stats__num {
  display: block;
  font-family: "Russo One", sans-serif;
  font-size: 56px;
  color: #c2551e;
}

.polk-stats__label {
  font-size: 15px;
  opacity: 0.7;
}

/* ===== ФИЛЬМ ===== */
.victory-film {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background-color: #24211e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}

.victory-film:hover {
  border-color: #c2551e;
  transform: translateY(-6px);
}

.victory-film__poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.victory-film__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(45%);
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

.victory-film:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.victory-film__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: rgba(194, 85, 30, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 6px;
  transition: transform 0.3s ease;
}

.victory-film:hover .victory-film__play {
  transform: translate(-50%, -50%) scale(1.1);
}

.victory-film__badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 12px;
  background-color: rgba(27, 25, 23, 0.75);
  border: 1px solid #c2551e;
  color: #c2551e;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.victory-film__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  flex: 1;
}

.victory-film__title {
  font-family: "Russo One", sans-serif;
  font-size: 22px;
  line-height: 30px;
  color: white;
  margin: 0;
}

.victory-film__desc {
  font-size: 15px;
  line-height: 24px;
  opacity: 0.75;
  color: white;
  margin: 0;
}

.victory-film__link {
  margin-top: auto;
  color: #c2551e;
  font-weight: 500;
}

/* ===== ГРУППЫ ===== */
.polk-groups {
  padding: 100px 0 140px;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s;
}

.polk-groups__head {
  text-align: center;
  margin-bottom: 60px;
}

.polk-groups__title {
  font-family: "Russo One", sans-serif;
  font-size: 48px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.polk-groups__subtitle {
  font-size: 18px;
  opacity: 0.75;
}

.polk-groups__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.polk-group-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.polk-group-card:hover {
  transform: translateY(-8px);
}

.polk-group-card__cover {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.polk-group-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
  transition:
    filter 0.5s ease,
    transform 0.5s ease;
}

.polk-group-card:hover .polk-group-card__cover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.polk-group-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(27, 25, 23, 0.95) 0%,
    rgba(27, 25, 23, 0.7) 40%,
    rgba(27, 25, 23, 0.3) 70%,
    transparent 100%
  );
}

.polk-group-card__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  padding: 28px;
}

.polk-group-card__num {
  font-family: "Russo One", sans-serif;
  font-size: 14px;
  color: #c2551e;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.polk-group-card__title {
  font-family: "Russo One", sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.2;
}

.polk-group-card__count {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.polk-group-card__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(194, 85, 30, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.polk-group-card:hover .polk-group-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== ГЕРОИ ===== */
.polk-heroes {
  padding: 80px 0 120px;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s;
}

.polk-heroes__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}

.polk-heroes__title {
  font-family: "Russo One", sans-serif;
  font-size: 48px;
  text-transform: uppercase;
  margin: 0;
}

.polk-heroes__counter {
  font-size: 16px;
  opacity: 0.7;
  margin: 0;
}

.polk-heroes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 24px 16px;
}

.polk-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  opacity: 0;
  animation: hero-appear 0.4s ease forwards;
}

.polk-hero:hover {
  transform: translateY(-4px);
}

.polk-hero img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.polk-hero:hover img {
  filter: grayscale(0%);
}

.polk-hero__name {
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes hero-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Задержка появления карточек */
.polk-hero:nth-child(1) {
  animation-delay: 0.02s;
}
.polk-hero:nth-child(2) {
  animation-delay: 0.04s;
}
.polk-hero:nth-child(3) {
  animation-delay: 0.06s;
}
.polk-hero:nth-child(4) {
  animation-delay: 0.08s;
}
.polk-hero:nth-child(5) {
  animation-delay: 0.1s;
}
.polk-hero:nth-child(6) {
  animation-delay: 0.12s;
}
.polk-hero:nth-child(7) {
  animation-delay: 0.14s;
}
.polk-hero:nth-child(8) {
  animation-delay: 0.16s;
}
.polk-hero:nth-child(9) {
  animation-delay: 0.18s;
}
.polk-hero:nth-child(10) {
  animation-delay: 0.2s;
}
.polk-hero:nth-child(11) {
  animation-delay: 0.22s;
}
.polk-hero:nth-child(12) {
  animation-delay: 0.24s;
}
.polk-hero:nth-child(n + 13) {
  animation-delay: 0.26s;
}

/* Кнопка назад */
.polk-back-link {
  display: inline-block;
  margin-bottom: 30px;
  padding: 12px 24px;
  background: #c2551e;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s;
}

.polk-back-link:hover {
  background: #a34418;
}

.polk-back-link:focus-visible {
  outline: 2px solid #c2551e;
  outline-offset: 2px;
}

/* Пустое состояние */
.polk-heroes__empty {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  opacity: 0.7;
}

/* ===== ПЕРЕКЛЮЧЕНИЕ СЕКЦИЙ ===== */
.polk-groups.is-hidden,
.polk-heroes.is-hidden {
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.polk-groups.is-visible,
.polk-heroes.is-visible {
  opacity: 1;
}

/* ===== МОДАЛКА ===== */
.polk-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s;
}

.polk-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.polk-modal[hidden] {
  display: none;
}

.polk-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 25, 23, 0.85);
  backdrop-filter: blur(4px);
  border: none;
  padding: 0;
  cursor: pointer;
}

.polk-modal__content {
  position: relative;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.polk-modal.is-open .polk-modal__content {
  transform: scale(1) translateY(0);
}

.polk-modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(27, 25, 23, 0.1);
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #1b1917;
  transition: background 0.3s ease;
  z-index: 10;
}

.polk-modal__close:hover {
  background: rgba(27, 25, 23, 0.2);
}

.polk-modal__close:focus-visible {
  outline: 2px solid #c2551e;
  outline-offset: 2px;
}

.polk-modal__body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.polk-modal__photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.polk-modal__name {
  font-family: "Russo One", sans-serif;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px 0;
  color: #1b1917;
}

.polk-modal__years {
  display: block;
  font-size: 16px;
  color: #c2551e;
  font-weight: 500;
  margin-bottom: 20px;
}

.polk-modal__bio {
  font-size: 16px;
  line-height: 1.7;
  color: #1b1917;
  opacity: 0.85;
  margin: 0;
}

/* ===== УТИЛИТЫ ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #c2551e;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* === БЕЗЫМЯННЫЕ ГЕРОИ === */
.polk-hero.is-unknown {
  opacity: 0.7;
}

.polk-hero.is-unknown img {
  filter: grayscale(100%) brightness(0.85);
}

.polk-hero.is-unknown .polk-hero__name {
  font-style: italic;
  opacity: 0.75;
}

.polk-hero.is-unknown .polk-hero__name::before {
  content: "";
  color: #c2551e;
}

/* === МОДАЛКА БЕЗЫМЯННОГО ГЕРОЯ === */
.polk-modal__unknown-notice {
  text-align: center;
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.polk-modal__unknown-notice .polk-modal__photo {
  max-width: 200px;
  margin: 0 auto 24px;
  filter: grayscale(100%);
  opacity: 0.8;
}

.polk-modal__unknown-icon {
  font-size: 48px;
  color: #c2551e;
  margin-bottom: 16px;
  opacity: 0.8;
}

.polk-modal__unknown-text {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.polk-modal__unknown-cta {
  font-size: 15px;
  color: #c2551e;
  font-weight: 500;
}

.polk-modal__unknown-cta a {
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.polk-modal__unknown-cta a:hover {
  opacity: 0.7;
}

.polk-modal__body:has(.polk-modal__unknown-notice) {
  display: block;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1200px) {
  .header__title-news {
    font-size: 64px;
    line-height: 76px;
  }

  .polk-intro__wrapper {
    gap: 40px;
  }

  .polk-group-card__content {
    padding: 24px;
  }
}

@media (max-width: 1024px) {
  .header__title-news {
    font-size: 56px;
    line-height: 68px;
    margin-bottom: 40px;
  }

  .header__title-news::after {
    bottom: -160px;
  }

  .polk-intro {
    padding: 60px 0;
  }

  .polk-intro__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .polk-intro__lead {
    font-size: 22px;
    line-height: 32px;
  }

  .polk-stats {
    padding: 40px 0;
  }

  .polk-stats__grid {
    gap: 30px;
  }

  .polk-stats__num {
    font-size: 48px;
  }

  .victory-film__play {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }

  .victory-film__body {
    padding: 24px;
  }

  .victory-film__title {
    font-size: 20px;
    line-height: 28px;
  }

  .polk-groups {
    padding: 80px 0 120px;
  }

  .polk-groups__head {
    margin-bottom: 40px;
  }

  .polk-groups__title {
    font-size: 40px;
  }

  .polk-groups__subtitle {
    font-size: 16px;
  }

  .polk-groups__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .polk-group-card__title {
    font-size: 20px;
  }

  .polk-heroes {
    padding: 60px 0 100px;
  }

  .polk-heroes__heading {
    margin-bottom: 30px;
  }

  .polk-heroes__title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .header__title-news {
    font-size: 40px;
    line-height: 48px;
    margin-bottom: 30px;
  }

  .header__title-news::after {
    bottom: -120px;
  }

  .polk-intro {
    padding: 40px 0;
  }

  .polk-intro__wrapper {
    gap: 30px;
  }

  .polk-intro__lead {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 16px;
  }

  .polk-intro__text p {
    font-size: 15px;
    line-height: 24px;
  }

  .polk-stats {
    padding: 30px 0;
  }

  .polk-stats__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .polk-stats__item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(27, 25, 23, 0.08);
  }

  .polk-stats__item:last-child {
    border-bottom: none;
  }

  .polk-stats__num {
    font-size: 40px;
    margin-bottom: 4px;
  }

  .polk-stats__label {
    font-size: 14px;
  }

  .victory-film:hover {
    transform: none;
  }

  .victory-film__play {
    width: 52px;
    height: 52px;
    font-size: 16px;
  }

  .victory-film__body {
    padding: 20px;
    gap: 10px;
  }

  .victory-film__title {
    font-size: 18px;
    line-height: 24px;
  }

  .victory-film__desc {
    font-size: 14px;
    line-height: 22px;
  }

  .polk-groups {
    padding: 60px 0 80px;
  }

  .polk-groups__head {
    margin-bottom: 30px;
  }

  .polk-groups__title {
    font-size: 32px;
  }

  .polk-groups__subtitle {
    font-size: 15px;
  }

  .polk-groups__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .polk-group-card {
    aspect-ratio: 2 / 3;
  }

  .polk-group-card__content {
    padding: 16px;
  }

  .polk-group-card__num {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .polk-group-card__title {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .polk-group-card__count {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .polk-group-card__arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
    top: 10px;
    right: 10px;
    opacity: 1;
    transform: translateX(0);
  }

  .polk-heroes {
    padding: 40px 0 60px;
  }

  .polk-heroes__heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
  }

  .polk-heroes__title {
    font-size: 28px;
  }

  .polk-heroes__counter {
    font-size: 14px;
  }

  .polk-heroes__grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 16px 10px;
  }

  .polk-hero__name {
    font-size: 11px;
  }

  .polk-back-link {
    padding: 10px 20px;
    font-size: 14px;
    margin-bottom: 20px;
  }

  .polk-heroes__empty {
    padding: 40px 16px;
    font-size: 16px;
  }

  .polk-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .polk-modal__content {
    padding: 24px 20px 32px;
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
  }

  .polk-modal__close {
    width: 44px;
    height: 44px;
    top: 12px;
    right: 12px;
    font-size: 28px;
  }

  .polk-modal__body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .polk-modal__photo {
    max-width: 240px;
    margin: 0 auto;
  }

  .polk-modal__name {
    font-size: 22px;
    text-align: center;
  }

  .polk-modal__years {
    text-align: center;
    font-size: 15px;
    margin-bottom: 16px;
  }

  .polk-modal__bio {
    font-size: 15px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .header__title-news {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 24px;
  }

  .header__title-news::after {
    bottom: -80px;
    width: 100vw;
    left: 0;
    transform: none;
  }

  .polk-intro {
    padding: 30px 0;
  }

  .polk-intro__lead {
    font-size: 18px;
    line-height: 26px;
  }

  .polk-stats__num {
    font-size: 36px;
  }

  .polk-groups {
    padding: 40px 0 60px;
  }

  .polk-groups__title {
    font-size: 26px;
  }

  .polk-groups__subtitle {
    font-size: 14px;
  }

  .polk-groups__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .polk-group-card {
    aspect-ratio: 16 / 9;
  }

  .polk-group-card__title {
    font-size: 18px;
  }

  .polk-heroes__title {
    font-size: 24px;
  }

  .polk-heroes__grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px 8px;
  }

  .polk-hero__name {
    font-size: 10px;
  }

  .polk-modal {
    padding: 0;
  }

  .polk-modal__content {
    padding: 20px 16px 24px;
    border-radius: 0;
    max-height: 100vh;
    height: 100%;
  }

  .polk-modal__photo {
    max-width: 200px;
  }

  .polk-modal__name {
    font-size: 20px;
  }

  .polk-modal__years {
    font-size: 14px;
  }

  .polk-modal__bio {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .header__title-news {
    font-size: 28px;
    line-height: 36px;
  }

  .polk-intro__lead {
    font-size: 16px;
    line-height: 24px;
  }

  .polk-groups__title {
    font-size: 22px;
  }

  .polk-group-card__title {
    font-size: 16px;
  }

  .polk-heroes__title {
    font-size: 20px;
  }

  .polk-heroes__grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px 6px;
  }

  .polk-hero__name {
    font-size: 9px;
  }

  .polk-modal__name {
    font-size: 18px;
  }

  .polk-modal__bio {
    font-size: 13px;
  }
}

@media (hover: none) {
  .victory-film:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.12);
  }

  .victory-film:hover img {
    transform: none;
    filter: grayscale(45%);
  }

  .victory-film:hover .victory-film__play {
    transform: translate(-50%, -50%);
  }

  .polk-group-card:hover {
    transform: none;
  }

  .polk-group-card:hover .polk-group-card__cover img {
    transform: none;
    filter: grayscale(40%);
  }

  .polk-hero:hover {
    transform: none;
  }

  .polk-hero:hover img {
    filter: grayscale(30%);
  }
}

@media (pointer: coarse) {
  .polk-modal__close {
    min-width: 44px;
    min-height: 44px;
  }

  .polk-back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
