/* "Мир ROX" pages: news and articles, media, owner stories, brand, design, FAQ.
   Builds on main.css (article-card, media-brand, link-arrow) and blocks.css (phead, acover, rtext, sections). */

/* ---------- Card grid (news, media, stories) ---------- */
.agrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 24px; }
@media (min-width: 600px) { .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; } }
.agrid .article-card { display: flex; flex-direction: column; }
.agrid .article-card__title { margin-top: 20px; margin-bottom: 12px; }
.agrid .article-card__summary { margin-bottom: 12px; font-size: 15px; line-height: 1.45; }
.agrid .article-card__date { margin-top: auto; }
.article-card__source { margin-top: 20px; color: var(--gold); }
.article-card__source + .article-card__title { margin-top: 8px; }
.article-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: auto; }
.article-card__foot .article-card__date { margin-top: 0; }
.article-card__ext { font-size: 14px; }
@media (min-width: 960px) { .agrid .article-card__summary { font-size: 16px; } }

/* Lead news: picture and text side by side on wide screens */
.article-card_wide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 48px; }
.article-card_wide .article-card__img { aspect-ratio: 16 / 9; }
.article-card_wide .article-card__title { margin: 12px 0 16px; }
.article-card_wide .article-card__summary { margin-bottom: 20px; }
@media (min-width: 960px) {
  .article-card_wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 48px; margin-bottom: 72px; }
}

/* ---------- Article ---------- */
.acover__meta a { color: var(--t2); transition: color .2s; }
.acover__meta a:hover { color: var(--gold); }
.article__lead { margin-top: 40px; font-size: 20px; line-height: 1.45; color: var(--white); }
.article__body { margin-top: 24px; }
.article__source { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--t3); }
.article__source a { color: var(--t2); text-decoration: underline; text-underline-offset: 3px; }
.article__source a:hover { color: var(--gold); }
@media (min-width: 960px) { .article__lead { margin-top: 56px; font-size: 24px; } }

/* ---------- Owner stories ---------- */
.stories { display: grid; gap: 24px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: 4px; background: var(--card-bg); }
.story__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--card); }
.story__img > picture { position: absolute; inset: 0; display: block; }
.story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.story:hover .story__img img { transform: scale(1.04); }
.story__play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(10, 10, 10, .55); color: var(--white); transition: background-color .3s; }
.story__play .icon { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
.story:hover .story__play { background: var(--gold); color: var(--bg); }
.story__body { display: flex; flex-direction: column; justify-content: center; padding: 28px 24px 32px; }
.story__quote { transition: color .2s; }
.story:hover .story__quote { color: var(--gold); }
.story__who { margin-top: 16px; font-size: 16px; line-height: 1.4; color: var(--t2); }
.story__who b { font-weight: var(--fw-medium); color: var(--white); }
.story__more { margin-top: 24px; }
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .story:nth-child(even) .story__img { order: 2; }
  .story__body { padding: 48px; }
}

.story-page { padding-top: calc(var(--header-h) + 32px); }
.story-page__quote { max-width: 1000px; }
.story-page__who { margin-top: 16px; font-size: 18px; color: var(--t2); }
.story-page__who b { font-weight: var(--fw-medium); color: var(--white); }
.video { position: relative; aspect-ratio: 16 / 9; margin-top: 32px; overflow: hidden; border-radius: 4px; background: var(--card); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 960px) { .story-page { padding-top: calc(var(--header-h) + 56px); } .video { margin-top: 48px; } }

/* ---------- Video first screen (brand page) ---------- */
.mvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Picture across the whole width (design page) ---------- */
.wideimg { position: relative; aspect-ratio: 390 / 260; overflow: hidden; background: var(--card); }
.wideimg > picture { position: absolute; inset: 0; display: block; }
.wideimg img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .wideimg { aspect-ratio: 1920 / 900; } }

/* Quote on a picture */
.bquote__text { font-family: var(--f-display); font-weight: var(--fw-thin); }
.bquote__author { margin-top: 16px; color: var(--t2); }
@media (min-width: 960px) { .bquote__author { margin-top: 24px; } }

/* Stack of media-text cards */
.mtstack { display: grid; gap: 24px; }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 48px; }
.faq-group__title { margin-bottom: 8px; color: var(--gold); }
.faq .acc__body a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.faq .acc__body a:hover { color: var(--gold); }
.faq .acc__body small { display: block; font-size: 13px; color: var(--t3); }
@media (min-width: 960px) { .faq-group + .faq-group { margin-top: 64px; } }
.video__alt { margin-top: 16px; font-size: 14px; color: var(--t2); }
figure.media-brand__inner, .media-brand__inner blockquote { margin: 0; }
/* Video cover with a play button (the player loads on click, assets/js/world.js) */
.video__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: rgba(10, 10, 10, .6); color: var(--white); cursor: pointer; transition: background-color .3s, color .3s; }
.video__play .icon { width: 36px; height: 36px; margin-left: 5px; fill: currentColor; }
.video__play:hover, .video__play:focus-visible { background: var(--gold); color: var(--bg); }
.video__note { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 14px; background: linear-gradient(0deg, rgba(10, 10, 10, .7), rgba(10, 10, 10, 0)); font-size: 13px; color: var(--t1); text-align: center; }
.video.is-live .video__cover, .video.is-live .video__play, .video.is-live .video__note { display: none; }
html:not(.js) .video__play, html:not(.js) .video__note { display: none; }
