/*
Theme Name: VentureBeat RU
Theme URI: https://venturebeat.ru
Description: VentureBeat.ru — Russian mirror of venturebeat.com, modelled on the original design (child of Mirror RU).
Author: Victor
Template: mirror-ru
Version: 1.0.0
Text Domain: venturebeat-ru
*/

:root {
    --ink: #111;
    --muted: #555;
    --line: #e5e5e5;
    --red: #ed2025;
    --red-600: #e40014;
    --red-dark: #b3000f;
    --navy: #03264d;
    --navy-btn: #1f3a78;
    --link: #1a73e8;
    --viewall: #385396;
    --band: #f4f7fc;
    --topic-bg: #f6f3ef;
    --roboto: 'Roboto', 'Roboto Fallback', Arial, sans-serif;
    --inter: 'Inter', 'Inter Fallback', Arial, sans-serif;
    --serif: 'Merriweather', 'Merriweather Fallback', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/24px var(--roboto); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; top: 8px; }
.is-empty { display: block; background: #ececec; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* ---------- Buttons ---------- */
.vb-btn { display: inline-flex; align-items: center; justify-content: center; font: 400 14px/21px var(--inter); border-radius: 6px; padding: 12px 16px; white-space: nowrap; }
.vb-btn--red { background: var(--red); color: #fff; }
.vb-btn--red:hover { background: var(--red-600); }
.vb-btn--navy { background: var(--navy-btn); color: #fff; font-size: 16px; padding: 12px 22px; }
.vb-btn--navy:hover { background: var(--navy); }
.vb-btn--darkred { background: var(--red-dark); color: #fff; width: 100%; font-weight: 500; text-decoration: underline; padding: 8px 12px; border-radius: 4px; }

/* ---------- Header ---------- */
.vb-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #e0e0e0; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.vb-header__bar { height: 70px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 59px 0 60px; }
.vb-logo { display: flex; align-items: center; }
.vb-logo img { width: 55px; height: 30px; }
.vb-logo__rule { width: 1px; height: 30px; background: var(--red); margin-left: 12px; }
.vb-logo__tag { margin-left: 8px; font: 700 13px/1.15 var(--inter); color: var(--ink); white-space: nowrap; }
.vb-nav { display: flex; align-items: center; justify-content: center; gap: 0; font: 500 14px/21px var(--inter); white-space: nowrap; }
.vb-nav > a, .vb-more > summary { display: flex; align-items: center; height: 45px; padding: 0 17px; color: var(--ink); }
.vb-nav > a:hover, .vb-more > summary:hover { color: var(--red); }
.vb-nav > a[aria-current="page"] { color: var(--red); }
.vb-more { position: relative; }
.vb-more > summary { gap: 10px; color: #333; }
.vb-more > summary .vb-icon { width: 12px; height: auto; transform: rotate(180deg); }
.vb-more[open] > summary .vb-icon { transform: none; }
.vb-more__drop { position: absolute; top: 50px; right: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .1); padding: 8px 0; }
.vb-more__drop a { display: block; padding: 8px 18px; font-weight: 400; }
.vb-more__drop a:hover { background: #f5f5f5; color: var(--red); }
.vb-header__tools { display: flex; align-items: center; gap: 22px; }
.vb-search { position: relative; }
.vb-search > summary { display: flex; padding: 4px; }
.vb-search__form { position: absolute; right: -8px; top: 44px; display: flex; gap: 8px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .1); padding: 12px; }
.vb-search__form input { width: 300px; border: 1px solid #ccc; border-radius: 6px; padding: 10px 12px; outline: none; }
.vb-search__form button { background: var(--navy-btn); color: #fff; border: 0; border-radius: 6px; padding: 10px 16px; cursor: pointer; }
.vb-header__cta { padding: 11px 16px; }
.vb-burger { display: none; }
.vb-burger > summary { display: flex; padding: 8px; }
.vb-burger__panel { position: fixed; left: 0; right: 0; top: 70px; bottom: 0; background: #fff; overflow-y: auto; padding: 16px 24px 40px; display: flex; flex-direction: column; }
.vb-burger__panel a { font: 500 18px/1.3 var(--inter); padding: 14px 0; border-bottom: 1px solid var(--line); }
.vb-burger__panel a.is-minor { font-size: 15px; font-weight: 400; color: #333; padding: 10px 0; }
.vb-burger__panel input { width: 100%; border: 1px solid #ccc; border-radius: 6px; padding: 12px; margin-bottom: 8px; }
.vb-burger__panel .vb-btn { margin-top: 24px; border-bottom: 0; color: #fff; }

/* ---------- Layout ---------- */
.vb-main { min-height: 60vh; }
.vb-wrap { max-width: 1400px; margin: 0 auto; padding: 0 80px; }
.vb-wrap--wide { padding: 0 24px; }
.vb-grid { display: grid; gap: 32px; }
.vb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }

/* ---------- Kicker / meta ---------- */
.vb-kicker { display: block; font: 400 18px/1.2 var(--roboto); color: var(--red-600); text-transform: uppercase; margin: 0 0 6px; }
.vb-kicker:hover { text-decoration: underline; }
.vb-meta { margin: 16px 0 0; font-size: 16px; line-height: 17.92px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.vb-meta a:hover { color: var(--ink); text-decoration: underline; }
.vb-badge { display: inline-block; background: var(--navy); color: #fff; font: 500 14px/21px var(--inter); padding: 8px 12px; margin-bottom: 12px; }

/* ---------- Featured block ---------- */
.vb-feature { display: grid; grid-template-columns: 676px minmax(0, 1fr); gap: 24px; align-items: center; padding: 80px 0 80px; }
.vb-feature__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eee; }
.vb-feature__img { width: 100%; height: 100%; object-fit: cover; }
.vb-feature__title { font: 500 24px/26.88px var(--roboto); margin: 0 0 8px; }
.vb-feature__title a:hover, .vb-card__title a:hover { text-decoration: underline; }
.vb-feature__dek { margin: 0; font-size: 16px; line-height: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vb-feature .vb-meta { margin-top: 24px; }

/* ---------- Cards ---------- */
.vb-card { min-width: 0; }
.vb-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eee; margin-bottom: 24px; }
.vb-card__img { width: 100%; height: 100%; object-fit: cover; }
.vb-card__title { font: 500 24px/26.88px var(--roboto); margin: 0; overflow-wrap: anywhere; }
.vb-card__dek { margin: 10px 0 0; font-size: 16px; line-height: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vb-home-top { padding-bottom: 80px; }

/* ---------- Subscribe band ---------- */
.vb-subscribe { background: var(--band); border-radius: 8px; text-align: center; padding: 56px 24px 64px; margin: 40px 0 96px; }
.vb-subscribe__title { font: 500 32px/1.25 var(--roboto); margin: 0 0 20px; }
.vb-subscribe__sub { font-size: 20px; line-height: 1.4; margin: 0 0 28px; }
.vb-subscribe__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px; max-width: 760px; margin: 0 auto 32px; }
.vb-chip { display: inline-block; background: #fff; border-radius: 999px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); padding: 9px 13px; font: 400 15px/21px var(--inter); color: #333; }
.vb-chip:hover { color: var(--red); }
.vb-subscribe__fine { margin: 18px 0 0; font-size: 14px; color: #6b7280; }

/* ---------- Section blocks (Orchestration, Infrastructure, …) ---------- */
.vb-section { padding-bottom: 96px; }
.vb-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid #d4d4d4; padding-bottom: 20px; margin-bottom: 64px; }
.vb-section__title { font: 500 32px/1.2 var(--roboto); margin: 0 0 8px; }
.vb-section__desc { margin: 0; font-size: 14px; line-height: 1.4; color: #333; }
.vb-viewall { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/21px var(--inter); color: var(--viewall); white-space: nowrap; margin-bottom: 18px; }
.vb-viewall .vb-icon { transform: rotate(90deg); width: 10px; }
.vb-viewall:hover { text-decoration: underline; }

/* ---------- Topic / listing header ---------- */
.vb-topichead { background: var(--topic-bg); text-align: center; padding: 32px 24px 34px; }
.vb-topichead__title { font: 600 36px/43.2px var(--roboto); margin: 0 0 12px; }
.vb-topichead__desc { max-width: 640px; margin: 0 auto; font: 400 12px/18px var(--inter); letter-spacing: .01em; }
.vb-empty { padding: 56px 0; text-align: center; }
.vb-empty a { color: var(--link); }
.vb-search__form--big { position: static; justify-content: center; border: 0; box-shadow: none; margin-bottom: 24px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 72px 0 24px; }
.pager .page-numbers { min-width: 40px; padding: 8px 12px; border: 1px solid #d4d4d4; border-radius: 6px; font: 500 14px/21px var(--inter); text-align: center; }
.pager .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager a.page-numbers:hover { border-color: var(--ink); }

/* ---------- Article ---------- */
.vb-article-wrap { display: grid; grid-template-columns: minmax(0, 795px) 252px; justify-content: space-between; gap: 48px; padding-top: 80px; padding-bottom: 72px; }
.vb-article-wrap--single { grid-template-columns: minmax(0, 795px); }
.vb-article { min-width: 0; }
.vb-article__title { font: 500 40px/44.8px var(--roboto); margin: 0 0 32px; overflow-wrap: anywhere; }
.vb-article__byline, .vb-article__date { margin: 0; font: 500 14px/15.68px var(--roboto); color: var(--muted); }
.vb-article__byline { margin-bottom: 10px; }
.vb-article__byline a:hover { text-decoration: underline; }
.vb-article__figure { margin: 72px 0 0; background: #eee; }
.vb-article__figure img { width: 100%; }
.vb-article__tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 32px 0 88px; }
.vb-article__credit { margin: 0; font: 500 12px/18px var(--roboto); color: var(--muted); }
.vb-share { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.vb-share a { display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
.vb-share a:hover { opacity: .7; }
.vb-share__tg { font: 700 11px/1 var(--inter); background: #111; color: #fff; border-radius: 3px; }

.vb-prose { font: 400 16px/24px var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.vb-prose > * { margin: 0 0 16px; }
.vb-prose h2 { font: 500 36px/40.32px var(--roboto); margin: 48px 0 24px; }
.vb-prose h3 { font: 500 28px/1.2 var(--roboto); margin: 40px 0 20px; }
.vb-prose h4 { font: 500 22px/1.25 var(--roboto); margin: 32px 0 16px; }
.vb-prose a { color: var(--link); text-decoration: underline; }
.vb-prose img { margin: 24px 0; }
.vb-prose figure { margin: 32px 0; }
.vb-prose figcaption { font: 500 12px/18px var(--roboto); color: var(--muted); margin-top: 8px; }
.vb-prose ul, .vb-prose ol { padding-left: 24px; }
.vb-prose li { margin-bottom: 8px; }
.vb-prose blockquote { margin: 32px 0; padding-left: 20px; border-left: 3px solid var(--red); font-style: italic; }
.vb-prose table { display: block; overflow-x: auto; border-collapse: collapse; font: 400 14px/1.4 var(--roboto); width: 100%; }
.vb-prose th, .vb-prose td { border: 1px solid #d4d4d4; padding: 8px 10px; text-align: left; vertical-align: top; }
.vb-prose th { background: #f5f5f5; font-weight: 500; }
.vb-prose code { font-size: 14px; background: #f3f3f3; padding: 1px 4px; }
.vb-prose pre { overflow-x: auto; background: #f3f3f3; padding: 16px; font-size: 14px; }
.vb-prose iframe { max-width: 100%; }

.vb-source { margin: 48px 0 0; padding: 20px 24px; background: var(--band); border-left: 4px solid var(--red); border-radius: 0 8px 8px 0; font: 400 15px/1.5 var(--roboto); }
.vb-source p { margin: 0 0 8px; }
.vb-source__label { font: 500 12px/1 var(--inter) !important; text-transform: uppercase; letter-spacing: .06em; color: var(--red-600); }
.vb-source__link { font-weight: 500; color: var(--viewall); }
.vb-source__link:hover { text-decoration: underline; }
.vb-article__topics { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }

/* ---------- Article rail ---------- */
.vb-rail { position: sticky; top: 110px; align-self: start; }
.vb-railbox { padding: 0 0 8px; }
.vb-railbox__brand { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #333; border-radius: 6px; padding: 4px 8px; margin: 0 0 14px; font: 500 12px/1 var(--inter); text-transform: uppercase; }
.vb-railbox__brand img { width: 33px; height: 18px; }
.vb-railbox__title { font: 500 22px/1.2 var(--roboto); margin: 0 0 14px; }
.vb-railbox__list { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: r; }
.vb-railbox__list li { counter-increment: r; display: grid; grid-template-columns: 22px minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--line); font: 500 14px/1.35 var(--roboto); }
.vb-railbox__list li::before { content: counter(r); color: var(--red-dark); font: 700 14px/1.35 var(--inter); }
.vb-railbox__list a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.vb-footer { background: #111; color: #eee; margin-top: 24px; }
.vb-footer__inner { max-width: 1400px; margin: 0 auto; padding: 80px 56px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 210px 330px; gap: 24px 0; }
.vb-footer__brand img { width: 66px; height: 36px; }
.vb-social { list-style: none; display: flex; gap: 14px; margin: 32px 0 0; padding: 0; }
.vb-social a { display: flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.vb-social img { filter: invert(1); max-height: 20px; }
.vb-social a:hover { opacity: .7; }
.vb-footer__about { max-width: 460px; margin: 32px 0 0; font-size: 14px; line-height: 1.5; color: #bbb; }
.vb-footer__col { list-style: none; margin: 0; padding: 0; }
.vb-footer__col li { margin: 0 0 20px; }
.vb-footer__col a { font: 500 14px/21px var(--roboto); color: #eee; }
.vb-footer__col a:hover { text-decoration: underline; }
.vb-footer__legal { max-width: 1400px; margin: 0 auto; padding: 0 56px 48px; }
.vb-footer__legal p { margin: 0; font: 500 12px/18px var(--roboto); color: #eee; }

/* ---------- Responsive ---------- */
@media (max-width: 1340px) {
    .vb-nav > a, .vb-more > summary { padding: 0 10px; }
    .vb-header__bar { padding: 0 24px; }
    .vb-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 1180px) {
    .vb-nav > a:nth-child(6) { display: none; }
    .vb-logo__tag { display: none; }
    .vb-logo__rule { display: none; }
    .vb-wrap { padding: 0 40px; }
    .vb-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 1023px) {
    .vb-nav, .vb-search, .vb-header__cta { display: none; }
    .vb-burger { display: block; }
    .vb-header__bar { grid-template-columns: auto 1fr; padding: 0 24px; }
    .vb-header__tools { justify-self: end; }
    .vb-logo__tag, .vb-logo__rule { display: block; }
    .vb-article-wrap { grid-template-columns: minmax(0, 1fr); }
    .vb-rail { position: static; }
    .vb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vb-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 56px 24px 32px; }
    .vb-footer__brand { grid-column: 1 / -1; margin-bottom: 24px; }
    .vb-footer__legal { padding: 0 24px 40px; }
}
@media (max-width: 767px) {
    .vb-wrap, .vb-wrap--wide { padding: 0 24px; }
    .vb-feature { grid-template-columns: minmax(0, 1fr); padding: 40px 0 64px; gap: 24px; }
    .vb-grid--4, .vb-grid--3 { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
    .vb-home-top { padding-bottom: 48px; }
    .vb-logo__tag { font-size: 13px; }
    .vb-section__head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
    .vb-viewall { margin-bottom: 0; }
    .vb-subscribe { padding: 40px 16px 48px; margin: 24px 0 64px; }
    .vb-subscribe__title { font-size: 26px; }
    .vb-subscribe__sub { font-size: 17px; }
    .vb-article-wrap { padding-top: 40px; }
    .vb-article__title { font-size: 30px; line-height: 1.15; }
    .vb-article__figure { margin-top: 40px; }
    .vb-article__tools { flex-direction: column; align-items: flex-start; margin-bottom: 48px; }
    .vb-prose h2 { font-size: 28px; line-height: 1.2; }
    .vb-topichead__title { font-size: 30px; }
    .vb-search__form input { width: 100%; }
}
