/* ========================= PRESS CENTER PAGE ========================= */

.press-page {
  padding-bottom: 0;
}

/* Hero статьи — board 1920×1010, координаты из Penpot */
.press-hero {
  margin: 0;
}

.press-hero__viewport {
  container-type: inline-size;
  container-name: press-hero;
  width: 100%;
  max-width: 1920px;
  aspect-ratio: 1920 / 1010;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.press-hero__stage {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1920px;
  height: 1010px;
  transform: translateX(-50%) scale(calc(100cqw / 1920px));
  transform-origin: top center;
}

.press-hero__copy {
  display: contents;
}

/* Mask group — path «2» @ 609,70 */
.press-hero__photo {
  position: absolute;
  left: 609px;
  top: 70px;
  z-index: 1;
  display: block;
  width: 1917px;
  height: 891px;
}

/* Rectangle 64 @ -121,113 */
.press-hero__panel {
  position: absolute;
  left: -121px;
  top: 113px;
  z-index: 2;
  display: block;
  width: 1452px;
  height: 452px;
}

/* Текст — абсолютные координаты hero */
.press-hero__date {
  position: absolute;
  left: 1067px;
  top: 196px;
  width: 123px;
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  z-index: 3;
}

.press-hero__title {
  position: absolute;
  left: 157px;
  top: 253px;
  width: 1200px;
  margin: 0;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.1;
  z-index: 3;
}

.press-hero__tag {
  position: absolute;
  left: 157px;
  top: 487px;
  width: 91px;
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: #ED1C24;
  z-index: 3;
}

/* Mask group — Vector 125 @ 21,577 */
.press-hero__thumb {
  position: absolute;
  left: 21px;
  top: 577px;
  z-index: 4;
  display: block;
  width: 644px;
  height: 383px;
}

/* Fallback без container queries */
@supports not (container-type: inline-size) {
  .press-hero__viewport {
    height: calc(min(100vw, 1920px) * 1010 / 1920);
  }

  .press-hero__stage {
    transform: translateX(-50%) scale(calc(min(100vw, 1920px) / 1920));
  }

  .press-share__viewport {
    height: calc(min(100vw, 1920px) * 143 / 1920);
  }

  .press-share__stage {
    transform: translateX(-50%) scale(calc(min(100vw, 1920px) / 1920));
  }
}

/* Текст статьи */
.press-article {
  padding-bottom: 70px;
}

.press-article__intro,
.press-article__body {
  font-size: 24px;
  line-height: 1.4;
  max-width: 1775px;
}

.press-article__intro {
  margin-bottom: 50px;
}

.press-article__body {
  margin-bottom: 0;
}

/* Pullquote — Group 194 */
.press-pullquote {
  display: flex;
  align-items: center;
  gap: 31px;
  background: #f9f9f9;
  min-height: 243px;
  padding: 6px 84px 6px 53px;
  margin: 0 0 50px;
  border: none;
}

.press-pullquote__img {
  width: 458px;
  max-width: 35%;
  height: 237px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

.press-pullquote__text {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

/* Поделиться — board 1920×143, Penpot «Поделиться» */
.press-share {
  margin: 0;
}

.press-share__viewport {
  container-type: inline-size;
  container-name: press-share;
  width: 100%;
  max-width: 1920px;
  aspect-ratio: 1920 / 143;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.press-share__stage {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1920px;
  height: 143px;
  transform: translateX(-50%) scale(calc(100cqw / 1920px));
  transform-origin: top center;
}

.press-share__label {
  position: absolute;
  left: 73px;
  top: 13px;
  width: 199px;
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.05;
  color: #000;
}

.press-share__btn {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 73px;
  padding: 0 25px;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: #000;
  text-decoration: none;
}

.press-share__btn--vk {
  left: 324px;
  width: 130px;
}

.press-share__btn--tg {
  left: 480px;
  width: 206px;
}

.press-share__btn--wa {
  left: 710px;
  width: 204px;
}

.press-share__arrow {
  flex-shrink: 0;
  display: block;
}

.press-share__btn:hover {
  color: #ED1C24;
}

/* Последние новости */
.press-related {
  padding-top: 0;
  padding-bottom: 80px;
}

.press-related__title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 50px;
}

.press-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 95px;
}

.press-related__card {
  position: relative;
  display: block;
  min-height: 323px;
  padding-bottom: 70px;
  color: inherit;
  text-decoration: none;
}

.press-related__date {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.press-related__ttl {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.25;
  transition: color 0.2s;
}

.press-related__card:hover .press-related__ttl,
.press-related__card:hover .press-related__btn {
  color: #ED1C24;
}

.press-related__btn {
  position: absolute;
  left: 0;
  bottom: 0;
  color: #000;
}

@media (max-width: 1800px) {
  .press-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 60px;
  }
}

@media (max-width: 1400px) {
  .press-related__grid {
    gap: 32px 40px;
  }

  .press-related__ttl {
    font-size: 30px;
  }
}

/* Планшет и узкий десктоп — стек вместо scale */
@media (max-width: 1023px) {
  .press-hero__viewport {
    container-type: normal;
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
    padding: 0 24px 40px;
  }

  .press-hero__stage {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-areas:
      "photo"
      "content"
      "thumb";
    gap: 24px;
  }

  .press-hero__photo {
    grid-area: photo;
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .press-hero__panel {
    display: none;
  }

  .press-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-area: content;
    position: relative;
    margin-top: -48px;
    padding: 32px 28px;
    background: #fefefe;
    border-radius: 0 24px 24px 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    z-index: 2;
  }

  .press-hero__date,
  .press-hero__title,
  .press-hero__tag {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    margin: 0;
  }

  .press-hero__date {
    align-self: flex-end;
    font-size: 18px;
  }

  .press-hero__title {
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.15;
  }

  .press-hero__tag {
    font-size: 18px;
  }

  .press-hero__thumb {
    grid-area: thumb;
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 644px;
    height: auto;
    margin: 0 auto;
  }

  .press-article {
    padding-bottom: 48px;
  }

  .press-pullquote {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 24px;
    min-height: 0;
  }

  .press-pullquote__img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 458 / 237;
  }

  .press-pullquote__text {
    font-size: clamp(24px, 4.5vw, 36px);
  }

  .press-share__viewport {
    container-type: normal;
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
    padding: 0 24px 48px;
  }

  .press-share__stage {
    position: relative;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
  }

  .press-share__label,
  .press-share__btn {
    position: static;
    width: auto;
  }

  .press-share__label {
    flex: 1 1 100%;
    font-size: 30px;
  }

  .press-share__btn {
    flex: 1 1 calc(50% - 10px);
    min-width: 130px;
    max-width: 100%;
  }

  .press-page .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .press-related__title {
    font-size: 30px;
    margin-bottom: 32px;
  }

  .press-related__card {
    min-height: 0;
    padding-bottom: 60px;
  }

  .press-related__ttl {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .press-page .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .press-hero__viewport {
    padding: 0 16px 32px;
  }

  .press-hero__copy {
    margin-top: -32px;
    padding: 24px 20px;
    border-radius: 0 16px 16px 16px;
  }

  .press-hero__title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .press-article__intro,
  .press-article__body {
    font-size: 18px;
  }

  .press-article__intro {
    margin-bottom: 32px;
  }

  .press-pullquote {
    padding: 20px 16px;
    margin-bottom: 32px;
  }

  .press-pullquote__text {
    font-size: 22px;
  }

  .press-share__viewport {
    padding: 0 16px 40px;
  }

  .press-share__label {
    font-size: 26px;
  }

  .press-share__btn {
    flex: 1 1 100%;
    width: 100%;
    height: 64px;
    font-size: 20px;
    border-radius: 16px;
  }

  .press-related {
    padding-bottom: 48px;
  }

  .press-related__title {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .press-related__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .press-related__ttl {
    font-size: 24px;
  }

  .press-related__card {
    padding-bottom: 56px;
  }
}

@media (max-width: 480px) {
  .press-hero__thumb {
    max-width: 100%;
  }

  .press-hero__date {
    align-self: flex-start;
  }
}

