/* Общая основа Vibe: нейтральная типографика и зелёные акценты бренда. */
@font-face { font-family: Onest; src: url('/fonts/onest-variable.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body.vibe-site {
 --green: #087e50;
 --green-btn: #087e50;
 --text: #222629;
 --muted: #727779;
 --vibe-line: #e1e9e3;
 --font-body: Onest, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
 --font-heading: var(--font-body);
 --radius: 6px;
 margin: 0; font-family: var(--font-body); color: var(--text); background: white; font-size: 16px; line-height: 1.6;
}
.vibe-site h1, .vibe-site h2, .vibe-site h3, .vibe-site h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.25; margin: 0; }
.vibe-site p { margin: 0; }
.vibe-site img { max-width: 100%; height: auto; }
.vibe-site a { color: inherit; }
.vibe-site :focus-visible { outline: 2px solid #087e50; outline-offset: 5px; }
.vibe-site a, .vibe-site button, .vibe-site summary { -webkit-tap-highlight-color: transparent; }
.vibe-site .container { width: calc(100% - 80px); max-width: 1120px; margin-inline: auto; padding-inline: 0; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 1000; background: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.vibe-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 18px; font-weight: 500; letter-spacing: -.4px; line-height: 1.2; }
.vibe-brand > span > span { color: #159768; }
.vibe-brand img { width: 32px; height: 37px; flex: 0 0 32px; }
/* Общие ориентиры бренда; компактная навигация для двух разделов Vibe. */
.vibe-header { background: white; color: var(--text); }
.vibe-site .vibe-header__inner { display: flex; align-items: center; gap: 56px; min-height: 88px; }
.vibe-header__logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.vibe-header__logo img { display: block; width: 38px; height: 44px; object-fit: contain; }
.vibe-header__logo > span { white-space: nowrap; font-size: 16px; font-weight: 500; letter-spacing: -.35px; }
.vibe-header__logo > span > span { color: var(--green); }
.vibe-header nav { display: flex; align-items: center; gap: 26px; }
.vibe-header__portfolio { padding: 9px 0; font-size: 14px; text-decoration: none; }
.vibe-header__portfolio:hover { color: var(--green); }
.vibe-header a.vibe-header__media { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 5px; background: #edf7f1; color: var(--green); font-size: 14px; text-decoration: none; }
.vibe-header a.vibe-header__media:hover { background: #deeee4; }
.vibe-header__media svg { flex-shrink: 0; }
.vibe-header__actions { margin-left: auto; }
.vibe-header a.vibe-header__main-site { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 13px; border: 1px solid #dbe6df; border-radius: 5px; color: #476254; font-size: 13px; text-decoration: none; white-space: nowrap; }
.vibe-header a.vibe-header__main-site:hover { border-color: #93b5a0; color: var(--green); }
.vibe-footer { padding: 32px 0 24px; margin-top: 55px; border-top: 1px solid var(--vibe-line); }
.vibe-footer__top { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 30px; align-items: start; }
.vibe-footer__top > p { font-size: 12px; line-height: 1.8; color: #6b7b70; }
.vibe-footer__top > p a { text-underline-offset: 4px; }
.vibe-footer__top > div { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 13px; }
.vibe-footer__top > div a { text-decoration: none; }
.vibe-footer__bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #eef0ee; margin-top: 28px; padding-top: 18px; font-size: 11px; color: #6d7b71; }
.vibe-footer__bottom a { text-underline-offset: 3px; }
.vibe-eyebrow { font-size: 12px; line-height: 1.5; color: #65776b; margin-bottom: 18px !important; text-transform: none; letter-spacing: 0; }
.vibe-site .button-green { display: inline-flex; align-items: center; justify-content: center; gap: 15px; font: 14px/1.6 var(--font-body); padding: 13px 22px; border-radius: 4px; background: var(--green); color: white; text-decoration: none; box-shadow: none; }
.vibe-site .button-green:hover { background: #09613f; }
.vibe-text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; text-decoration: none; border-bottom: 1px solid #b0caba; padding-bottom: 3px; }
.vibe-text-link:hover { color: var(--green); }
.vibe-section { padding-top: 50px; }
.vibe-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 25px; }

/* Общие материалы наследуют разметку основного сайта, но типографику Vibe. */
.vibe-site .portfolio-list { padding-top: 40px; }
.vibe-site .media-layout { grid-template-columns: minmax(0,1fr) 245px; gap: 50px; padding-bottom: 30px; }
.vibe-site .portfolio-list__title { font-size: 36px; line-height: 1.2; letter-spacing: -.9px; margin-bottom: 18px; }
.vibe-portfolio-intro { max-width: 700px; color: #62756a; font-size: 15px; margin-bottom: 18px !important; }
.vibe-site .portfolio-list__note { margin-bottom: 30px; font-size: 12px; color: #687b6e; }
.vibe-portfolio-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 35px 25px; }
.vibe-filter-note { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--vibe-line); }
.vibe-filter-note h2 { font-size: 21px; letter-spacing: -.4px; margin-bottom: 12px; }
.vibe-filter-note p { font-size: 13px; color: #66786b; margin-bottom: 16px; }
.vibe-site .media-side { background: transparent; padding: 0; border-radius: 0; }
.vibe-site .media-side + .media-side { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--vibe-line); }
.vibe-site .media-side__title { font-weight: 500; font-size: 14px; }
.vibe-site .media-side__link { font-weight: 400; font-size: 13px; padding-block: 7px; }
.vibe-site .media-side__link--active { color: var(--green); font-weight: 500; }
.vibe-site .feed-card { background: transparent; border-radius: 0; }
.vibe-site .feed-card:hover { transform: none; box-shadow: none; }
.vibe-site .feed-card__media { border-radius: 6px; overflow: hidden; }
.vibe-site .feed-card__body { padding: 16px 0 0; }
.vibe-site .feed-card__title { font-size: 21px; letter-spacing: -.3px; margin-bottom: 10px; }
.vibe-site .feed-card__meta { margin-bottom: 12px; }
.vibe-site .feed-card__descr { opacity: 1; color: #62756a; font-size: 14px; }
.vibe-site .tag { font-size: 10px; font-weight: 400; padding: 3px 7px; border: 0; border-radius: 3px; background: #eef3ef; color: #56735f; }
.vibe-site .tag--video { background: #e6eeea; color: #31654a; }
.vibe-case-cover { overflow: hidden; border-radius: 8px; }
.vibe-site .vibe-case-cover .project-preview__image, .vibe-site .vibe-case-cover .feed-card__media, .vibe-site .vibe-case-cover .home-work__image { border-radius: 0; }
.vibe-site .vibe-development-badge { display: flex; align-items: center; flex-shrink: 0; width: 100%; min-height: 42px; margin: 0; padding: 10px 14px; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4; }
.vibe-development-badge--ai { background: #087e50; }
.vibe-development-badge--classic { background: #465568; }
.vibe-case__illustration { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.vibe-site .early-project .vibe-development-badge { min-height: 0; margin-bottom: 10px; padding: 0 0 0 10px; border-left: 3px solid #465568; background: transparent; color: #465568; }
.vibe-case { min-width: 0; display: flex; flex-direction: column; }
.vibe-case > .vibe-text-link { align-self: flex-start; margin-top: auto; }
.vibe-case__art { display: block; text-decoration: none; }
.vibe-case__meta { font-size: 11px; color: #617467; margin-top: 16px !important; margin-bottom: 7px !important; }
.vibe-case h3 { font-size: 22px; letter-spacing: -.3px; margin-bottom: 10px; }
.vibe-case h3 a { text-decoration: none; }
.vibe-case h3 a:hover { color: var(--green); }
.vibe-case__description { font-size: 14px; color: #62756a; line-height: 1.7; margin-bottom: 16px !important; }
.project-preview { margin: 0; min-width: 0; }
.project-preview__image { background: #eaf0ed; padding: 15px; aspect-ratio: 1.6; display: flex; align-items: center; border-radius: 8px; overflow: hidden; }
.project-preview__image img { width: 100%; height: 100%; object-fit: contain; object-position: top; background: white; border: 1px solid #e1e7e3; border-radius: 4px; }
.project-preview figcaption { font-size: 10px; color: #6b7c70; margin-top: 8px; }
.vibe-site .early-group summary { font-weight: 500; font-size: 17px; }
.vibe-site .early-project__title { font-weight: 500; font-size: 18px; }
.vibe-site .portfolio-list__title--mini { font-size: 29px; margin-top: 55px; }

.vibe-site .article-hero { padding-block: 45px; background: white; border-bottom: 1px solid var(--vibe-line); }
.vibe-site .article-hero__inner { align-items: center; }
.vibe-site .article-hero h1 { font-size: 36px; letter-spacing: -.8px; line-height: 1.2; margin-bottom: 20px; }
.vibe-site .article-hero__intro { font-size: 16px; line-height: 1.75; color: #62756a; opacity: 1; }
.vibe-site .article-hero__breadcrumb { text-transform: none; letter-spacing: 0; font-size: 12px; margin-bottom: 22px; }
.vibe-site .article { grid-template-columns: minmax(0,1fr) 245px; gap: 60px; padding-top: 40px; }
.vibe-site .article__body { min-width: 0; font-family: var(--font-body); font-size: 16px; }
.vibe-site .article__body > p { font-size: 16px; line-height: 1.8; margin-bottom: 20px; }
.vibe-site .article__body h2 { font-size: 27px; letter-spacing: -.5px; margin-top: 38px; margin-bottom: 18px; }
.vibe-case-note { border-left: 2px solid #a3bfac; padding: 10px 0 10px 20px; margin-bottom: 28px; color: #62756a; }
.vibe-case-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.vibe-site .article__body .vibe-case-modules section { margin: 0; padding: 20px 0 0; border-top: 1px solid var(--vibe-line); }
.vibe-site .article__body .vibe-case-modules h3 { font-size: 19px; margin: 0 0 10px; }
.vibe-site .article__body .vibe-case-modules p { font-size: 14px; color: #62756a; margin: 0; }
.vibe-case-aside { position: sticky; top: 25px; }
.vibe-case-aside h2 { font-size: 23px; letter-spacing: -.4px; margin-bottom: 18px; }
.vibe-case-aside > p { font-size: 13px; color: #627368; margin-bottom: 20px; }
.vibe-case-aside .button-green { margin-bottom: 20px; }
.vibe-case-aside ul { padding: 16px 0; border-block: 1px solid var(--vibe-line); list-style: none; }
.vibe-case-aside li { font-size: 13px; margin: 10px 0; }
.vibe-case-aside li a { text-decoration: none; }
.vibe-case-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.vibe-case-summary span { font-size: 11px; padding: 4px 8px; border-radius: 3px; background: #eef4ef; color: #50715b; }
.vibe-case-end { margin-top: 45px; padding-top: 12px; border-top: 1px solid var(--vibe-line); }
.vibe-case-end p { margin-bottom: 22px; }
@media(max-width:1100px) {
 .vibe-portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:1000px) {
 .vibe-site .media-layout { grid-template-columns: minmax(0,1fr); gap: 30px; }
 .vibe-site .media-layout__aside { position: static; order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
 .vibe-filter-note { display: none; }
 .vibe-site .media-side { border-top: 1px solid var(--vibe-line); padding-top: 18px; }
 .vibe-site .media-side + .media-side { margin-top: 0; padding-top: 18px; }
 .vibe-site .media-side__list { max-height: 185px; overflow-y: auto; }
 .vibe-site .article { grid-template-columns: minmax(0,1fr); gap: 35px; }
 .vibe-site .article__aside { order: 0; margin-bottom: 0; padding-top: 25px; border-top: 1px solid var(--vibe-line); }
 .vibe-case-aside { position: static; }
 .vibe-site .article-hero__cover { order: 0; }
 .project-preview--large { max-width: 650px; }
}
@media(max-width:700px) {
 .vibe-site .container { width: calc(100% - 40px); }
 .vibe-brand { font-size: 14px; gap: 9px; }
 .vibe-footer { margin-top: 40px; padding-top: 28px; }
 .vibe-footer__top { grid-template-columns: 1fr 1fr; gap: 25px 10px; }
 .vibe-footer__top > p { grid-column: 1/-1; grid-row: 2; }
 .vibe-footer__top > div { font-size: 12px; }
 .vibe-footer__bottom { flex-direction: column; gap: 10px; }
 .vibe-site .portfolio-list { padding-top: 24px; }
 .vibe-site .portfolio-list__title { font-size: 31px; }
 .vibe-site .article-hero { padding-block: 30px; }
 .vibe-site .article-hero h1 { font-size: 30px; }
 .vibe-site .article-hero__inner { gap: 25px; }
 .vibe-site .article__body h2 { font-size: 25px; }
}
@media(max-width:520px) {
 .vibe-portfolio-grid, .vibe-case-modules { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior: auto; }
 .vibe-site *, .vibe-site *::before, .vibe-site *::after { transition: none !important; animation: none !important; }
}

@media(max-width:900px) {
 .vibe-site .vibe-header__inner { gap: 30px; }
 .vibe-header nav { gap: 20px; }
}
@media(max-width:600px) {
 .vibe-site .vibe-header__inner { display: grid; grid-template-columns: 1fr auto; gap: 14px 12px; padding-block: 18px 14px; }
 .vibe-header__logo { gap: 9px; }
 .vibe-header__logo img { width: 30px; height: 35px; }
 .vibe-header__logo > span { font-size: 14px; }
 .vibe-header nav { grid-row: 2; grid-column: 1 / -1; gap: 24px; }
 .vibe-header__actions { grid-column: 2; grid-row: 1; }
 .vibe-header a.vibe-header__main-site { gap: 5px; padding: 6px 0; border: 0; font-size: 11px; }
 .vibe-header__portfolio, .vibe-header a.vibe-header__media { font-size: 13px; }
}

/* Short AI project descriptions stay in context, above the portfolio. */
.vibe-site button.vibe-case__art, .vibe-case__title { display: block; width: 100%; border: 0; padding: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vibe-case__title:hover { color: var(--green); }
.vibe-case > button.vibe-text-link { border: 0; border-bottom: 1px solid #b0caba; background: transparent; color: inherit; padding: 0 0 3px; font-family: inherit; cursor: pointer; }
html:has(.vibe-project-modal[open]) { overflow: hidden; }
.vibe-project-modal { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; margin: auto; padding: 36px; border: 0; border-radius: 16px; color: var(--text); background: white; box-shadow: 0 20px 90px #102a2340; }
.vibe-project-modal::backdrop { background: #13281fc4; backdrop-filter: blur(4px); }
.vibe-project-modal__close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f0f5f1; color: #365345; font: 26px/1 Arial, sans-serif; cursor: pointer; }
.vibe-site .vibe-project-modal__label { margin: 12px 0 14px; color: var(--green); font-size: 12px; font-weight: 500; }
.vibe-site .vibe-project-modal h2 { font-size: 30px; letter-spacing: -.7px; margin-bottom: 16px; }
.vibe-project-modal__intro { font-size: 16px; line-height: 1.7; }
.vibe-site dialog.vibe-project-modal h3 { font-size: 16px; margin: 24px 0 12px; }
.vibe-project-modal ul { padding-left: 20px; margin: 0 0 24px; font-size: 14px; line-height: 1.8; }
.vibe-project-modal li::marker { color: var(--green); }
.vibe-site .vibe-project-modal__review { padding-top: 18px; margin-bottom: 24px; border-top: 1px solid var(--vibe-line); color: #62756a; font-size: 13px; line-height: 1.7; }
@media(max-width:520px) {
 .vibe-project-modal { padding: 30px 22px 24px; }
 .vibe-site .vibe-project-modal h2 { font-size: 26px; }
 .vibe-project-modal__intro { font-size: 14px; }
}
