/* ==========================================================================
   Article page (single post)
   ========================================================================== */

.page-article {
  background-color: var(--color-dark-bg);
}

.page-article::before {
  display: none;
}

.page-article > .menu,
.page-article > .search-panel {
  position: relative;
  z-index: 20;
}

.page-article main {
  overflow: hidden;
}

.page-article > .header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 100%;
  max-width: var(--home-max-width);
  padding: 16px 80px 0 var(--home-padding-x);
}

/* Hero — same base as home, article-specific tweaks --------------------- */

.page-article .home-screen--article {
  min-height: 100dvh;
  background-color: var(--color-dark-bg);
}

.page-article .hero--article {
  min-height: 900px;
}

.page-article .hero--article .hero__content {
  align-self: center;
}

.page-article .hero--article .hero__title {
  font-size: 48px;
  line-height: 1.15;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 24px;
}

.hero__date {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.21;
  text-transform: uppercase;
  color: var(--color-white);
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.1;
}

.article-breadcrumbs a {
  flex-shrink: 0;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.article-breadcrumbs a:hover {
  color: var(--color-gold);
}

.article-breadcrumbs__sep {
  flex-shrink: 0;
  color: var(--color-text);
  font-size: 12px;
}

.article-breadcrumbs__current {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--color-sand);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-article .hero--article .hero__media .hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Body ------------------------------------------------------------------- */

.article-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 70px;
}

.article-section {
  max-width: var(--home-max-width);
  margin-inline: auto;
  padding: 10px var(--home-padding-x);
  box-sizing: border-box;
}

.article-section__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.article-section__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-dark-bg);
}

.article-section__text {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
}

.article-media-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: var(--home-max-width);
  margin-inline: auto;
  padding: 10px var(--home-padding-x);
  box-sizing: border-box;
}

.article-media-row__text {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.3;
  color: var(--color-text);
}

.article-media-row__figure {
  flex-shrink: 0;
  width: min(100%, 494px);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--color-dark-bg);
}

.article-media-row__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-media-row--reverse {
  flex-direction: row-reverse;
}

.article-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-checklist__item {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.1;
  color: var(--color-text);
}

.article-checklist__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-text);
}

/* Related ---------------------------------------------------------------- */

.article-related.services-news {
  margin-top: 70px;
}

.article-related .services-news-slider {
  margin-top: 64px;
}

@media (max-width: 1299px) {
  .page-article > .header {
    padding: 16px 45px 0 clamp(20px, 5vw, 80px);
  }

  .page-article .home-screen--article {
    min-height: 0;
    display: block;
    padding: 0 clamp(20px, 5vw, 80px);
    overflow: visible;
  }

  .page-article .hero--article {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    width: 100%;
    padding: 0 0 80px;
    overflow: visible;
    flex: none;
    box-sizing: border-box;
  }

  .page-article .hero--article .hero__content {
    margin-top: 32px;
    max-width: none;
    width: 100%;
    min-width: 0;
    align-self: stretch;
  }

  .page-article .hero--article .hero__title {
    font-size: clamp(32px, 7vw, 48px);
  }

  .page-article .hero--article .hero__media {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    flex: none;
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
    aspect-ratio: 666 / 880;
    margin: 24px var(--hero-media-inset) 0 0;
  }
}

@media (max-width: 1199px) {
  .article-section,
  .article-media-row {
    padding-inline: clamp(20px, 5vw, 80px);
  }

  .article-media-row,
  .article-media-row--reverse {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .page-article > .header {
    padding: 18px;
  }

  .page-article > .header .header__nav {
    gap: 12px;
  }

  .page-article > .header .header__lang,
  .page-article > .header .header__menu-text {
    font-size: 20px;
  }

  .page-article > .header .header__search {
    width: 20px;
    height: 20px;
  }

  .page-article > .header .header__search svg {
    width: 20px;
    height: 20px;
  }

  .page-article .home-screen--article {
    display: block;
    min-height: 100dvh;
    padding: 18px 18px 70px;
    border-radius: 0;
    box-sizing: border-box;
    overflow: visible;
  }

  .page-article .home-screen--article::before {
    top: auto;
    bottom: -54px;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 833px;
    opacity: 0.1;
    transform: none;
    background-image: url("../../img/bg-art-mob.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
  }

  .page-article .hero--article {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    width: 100%;
    padding: 0;
    overflow: visible;
    flex: none;
    box-sizing: border-box;
  }

  .page-article .hero--article .hero__content {
    margin-top: 0;
    max-width: none;
    width: 100%;
    min-width: 0;
    align-self: stretch;
    flex-shrink: 0;
    padding-top: 130px;
    gap: 24px;
    box-sizing: border-box;
  }

  .page-article .hero--article .hero__title {
    font-size: 40px;
    line-height: 1;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .page-article .hero--article .hero__media {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    flex: none;
    width: 100%;
    max-width: none;
    max-height: none;
    height: 367px;
    min-height: 367px;
    margin: 24px 0 0;
    aspect-ratio: auto;
    border-radius: 16px;
    overflow: hidden;
  }

  .page-article .article-body {
    position: relative;
    z-index: 1;
    background-color: var(--color-menu-bg);
  }

  .article-breadcrumbs {
    font-size: 14px;
    line-height: 1.1;
  }

  .article-breadcrumbs__sep {
    font-size: 10px;
  }

  .article-body {
    gap: 24px;
    padding-top: 24px;
  }

  .article-section,
  .article-media-row {
    padding: 10px 18px;
  }

  .article-section__inner {
    gap: 16px;
  }

  .article-section__title {
    font-size: 24px;
    line-height: 1.1;
  }

  .article-section__text,
  .article-media-row__text {
    font-size: 16px;
    line-height: 1.1;
  }

  .article-media-row,
  .article-media-row--reverse {
    flex-direction: column;
    gap: 16px;
  }

  .article-media-row--reverse .article-media-row__figure {
    order: -1;
  }

  .article-media-row__figure {
    width: 100%;
    max-width: none;
    height: 280px;
    aspect-ratio: auto;
  }

  .article-checklist {
    gap: 16px;
  }

  .article-checklist__item {
    font-size: 16px;
    line-height: 1.1;
  }

  .article-related.services-news {
    margin-top: 0;
  }

  .article-related .services-news__inner {
    display: flex;
    flex-direction: column;
    padding: 60px 18px;
  }

  .article-related .services-news__top {
    display: contents;
  }

  .article-related .services-news__heading {
    gap: 16px;
    max-width: none;
    order: 0;
  }

  .article-related .services-news__title {
    font-size: 32px;
    line-height: 1;
  }

  .article-related .services-news__intro {
    font-size: 16px;
    line-height: 1.3;
  }

  .article-related .services-news-slider {
    order: 1;
    margin-top: 40px;
  }

  .article-related .services-news__btn {
    order: 2;
    align-self: center;
    margin-top: 40px;
  }

  .page-article .footer {
    padding: 48px 18px 24px;
  }

  .page-article .footer__bottom {
    align-items: center;
    text-align: center;
  }

  .page-article .footer__legal {
    justify-content: center;
  }
}
