/* Home page: three live editorial feeds in a first-screen desktop rail.
   The feed DOM/API and the original mobile order are preserved. */
@media (min-width: 1180px) {
  body[data-page="home"] {
    --home-rail-width: clamp(240px, 19vw, 285px);
    --home-rail-gap: 26px;
    /* Keep the main portal column on its established 1200px alignment
       on large screens. On smaller desktops the content column contracts. */
    --home-rail-left: max(20px, calc((100vw - 1200px) / 2 - 311px));
    --home-content-left: calc(var(--home-rail-left) + var(--home-rail-width) + var(--home-rail-gap));
  }
  body[data-page="home"] main.home-layout {
    display: grid;
    grid-template-columns: var(--home-rail-width) minmax(0, 1fr);
    grid-template-areas: "news top" "news bottom";
    column-gap: var(--home-rail-gap);
    row-gap: 0;
    align-items: start;
    width: min(1512px, calc(100vw - 40px));
    max-width: none;
    margin-left: var(--home-rail-left);
    margin-right: 0;
  }
  .home-layout .home-top-block { grid-area: top; min-width: 0; }
  .home-layout .home-bottom-block { grid-area: bottom; min-width: 0; }
  body[data-page="home"] header .wrap,
  body[data-page="home"] footer.wrap {
    width: min(1200px, calc(100vw - var(--home-content-left) - 20px));
    max-width: none;
    margin-left: var(--home-content-left);
    margin-right: 20px;
  }

  /* This panel stays in view while exploring the main MAX and VK portals. */
  .home-layout .home-news-rail {
    grid-area: news;
    position: sticky;
    top: 91px;
    align-self: start;
    height: min(830px, calc(100dvh - 131px));
    min-height: 0;
    min-width: 0;
    z-index: 4;
  }
  .home-news-rail .live-news-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 0;
  }
  .home-news-rail .feed-section-top {
    flex: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 11px;
  }
  .home-news-rail .feed-section-top .eyebrow { font-size: 8px; letter-spacing: .07em; }
  .home-news-rail .feed-section-top h2 {
    font-size: 23px;
    line-height: 1.08;
    letter-spacing: -.75px;
    margin: 6px 0 0;
  }
  .home-news-rail .feed-section-top p { display: none; }
  /* Every card already has its own live status; save space for the headlines. */
  .home-news-rail .news-global-tools { display: none; }
  .home-news-rail .news-live-badge { font-size: 7px; padding: 5px 7px; gap: 4px; }
  .home-news-rail .news-live-badge i { width: 5px; height: 5px; }
  .home-news-rail #newsChecked { display: none; }
  .home-news-rail .live-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 9px;
    flex: 1;
    min-height: 0;
  }
  .home-news-rail .news-column {
    min-height: 0;
    min-width: 0;
    border-radius: 17px;
    border-top: 3px solid var(--news-accent);
  }
  .home-news-rail .news-scene { height: 23px; flex: none; }
  .home-news-rail .news-scene-symbol,
  .home-news-rail .news-scene-ring,
  .home-news-rail .news-scene-grid { display: none; }
  .home-news-rail .news-scene-word { font-size: 28px; bottom: -3px; right: 8px; }
  .home-news-rail .news-scene-index { top: 6px; left: 11px; right: auto; }
  .home-news-rail .news-column-heading { padding: 7px 11px 5px; gap: 5px; flex: none; }
  .home-news-rail .news-column-heading h3 { font-size: 17px; letter-spacing: -.45px; margin: 0 0 3px; }
  .home-news-rail .news-column-heading p { font-size: 8px; }
  .home-news-rail .news-state { font-size: 7px; padding: 4px 6px; }
  .home-news-rail .news-filters {
    flex: none;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px;
    padding: 0 10px 6px;
  }
  .home-news-rail .news-filters::-webkit-scrollbar { display: none; }
  .home-news-rail .news-filters button {
    flex: 0 0 auto;
    font-size: 8px;
    padding: 3px 7px;
    min-height: 23px;
  }
  .home-news-rail .news-tags {
    flex: none;
    min-height: 23px;
    font-size: 8px;
    padding: 0 11px 7px;
    gap: 5px;
  }
  .home-news-rail .news-items,
  .home-news-rail .live-news-section[data-full="true"] .news-items {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow-y: auto;
    padding: 2px 9px 5px;
    scrollbar-gutter: auto;
  }
  .home-news-rail .news-item { border-radius: 11px; padding: 7px 9px; margin-bottom: 6px; }
  .home-news-rail .news-image,
  .home-news-rail .news-item-summary,
  .home-news-rail .news-item-extra { display: none !important; }
  .home-news-rail .news-item-meta { font-size: 7px; margin-bottom: 3px; }
  .home-news-rail .news-item h4 {
    font-size: 11px;
    line-height: 1.32;
    letter-spacing: 0;
    margin: 3px 0 1px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
  .home-news-rail .news-empty { padding: 10px 5px; font-size: 10px; line-height: 1.4; }
  .home-news-rail .news-skeleton { padding: 9px 0; }
  .home-news-rail .news-column-footer {
    flex: none;
    padding: 6px 10px;
    font-size: 7px;
    gap: 7px;
    align-items: center;
  }
  .home-news-rail .news-column-footer [data-news-source] {
    min-width: 0;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-news-rail .news-column-footer a { white-space: nowrap; }
  .home-news-rail .news-bottom-note { display: none; }
  .home-news-rail .news-column:hover { transform: none; }
  .home-news-rail .news-column::after { border-radius: inherit; }
}
/* The original 3-column feed and full-size stories remain at tablet/mobile widths. */

/* News HOVER V2.  Preserve the three fixed-size grid slots at all times.
   Only a card *inside* its slot floats over the layout; expanding it cannot
   change the page height or stretch the last news column. */
.news-slot { min-width: 0; min-height: 0; }

@media (min-width: 1180px) {
  .home-news-rail .live-news-grid { overflow: visible; }
  .home-news-rail .news-slot {
    position: relative;
    z-index: 1;
    isolation: isolate;
  }
  .home-news-rail .news-column {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    transform: none;
    transition: width .32s cubic-bezier(.2,.8,.2,1),
                height .32s cubic-bezier(.2,.8,.2,1),
                top .32s cubic-bezier(.2,.8,.2,1),
                bottom .32s cubic-bezier(.2,.8,.2,1),
                box-shadow .32s ease,
                border-color .32s ease;
  }
  .home-news-rail .news-slot:focus-within,
  .home-news-rail .news-slot:hover { z-index: 12; }
  .home-news-rail .news-column .news-items { overscroll-behavior: contain; }
  /* News are always readable, even before the global motion observer starts.
     Page-wide news-arrival animation otherwise pauses at opacity: 0. */
  .home-news-rail .news-item,
  .home-news-rail .news-arrival {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
  }

}

@media (min-width: 1180px) and (hover: hover) and (pointer: fine) {
  .home-news-rail .news-column:hover,
  .home-news-rail .news-column:focus-within {
    --news-hover-open-height: min(375px, calc(100dvh - 170px));
    width: clamp(290px, 23vw, 320px);
    height: var(--news-hover-open-height);
    min-height: 0;
    max-height: none;
    border-color: var(--news-accent);
    box-shadow: 0 18px 42px rgba(12, 38, 29, .20);
    z-index: 2;
    transform: none;
  }
  /* Top opens down, middle straddles the middle row, bottom opens up. */
  .home-news-rail .news-slot:nth-child(1) .news-column:hover,
  .home-news-rail .news-slot:nth-child(1) .news-column:focus-within {
    top: 0; bottom: auto;
  }
  .home-news-rail .news-slot:nth-child(2) .news-column:hover,
  .home-news-rail .news-slot:nth-child(2) .news-column:focus-within {
    top: calc(50% - var(--news-hover-open-height) / 2); bottom: auto;
  }
  .home-news-rail .news-slot:nth-child(3) .news-column:hover,
  .home-news-rail .news-slot:nth-child(3) .news-column:focus-within {
    top: auto; bottom: 0;
  }
  /* Show several compact headlines, not one giant article in the open view. */
  .home-news-rail .news-column:hover .news-items,
  .home-news-rail .news-column:focus-within .news-items {
    padding: 5px 11px 9px;
    overflow-y: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
  }
  .home-news-rail .news-column:hover .news-item,
  .home-news-rail .news-column:focus-within .news-item {
    margin-bottom: 5px;
    padding: 9px 10px;
  }
  .home-news-rail .news-column:hover .news-item h4,
  .home-news-rail .news-column:focus-within .news-item h4 {
    display: block;
    overflow: visible;
    line-height: 1.4;
    font-size: 11px;
    margin: 2px 0;
  }
  .home-news-rail .news-column:hover .news-item-meta,
  .home-news-rail .news-column:focus-within .news-item-meta {
    font-size: 8px;
    margin-bottom: 4px;
  }
  /* Mouse expansion reveals more headlines; do not steal room with summaries.
     Keyboard navigation retains an accessible story synopsis. */
  .home-news-rail .news-column:focus-within .news-item:focus-visible .news-item-summary {
    display: block !important;
    font-size: 10px;
    line-height: 1.5;
    margin: 8px 0 5px;
  }
  .home-news-rail .news-column:focus-within .news-item:focus-visible .news-item-extra {
    display: flex !important;
    align-items: center;
    margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-news-rail .news-column { transition: none !important; }
}

/* BIRJA shared news rail v4. On desktop the three news streams always stay
   at the same fixed screen coordinates on every site page. */
@media (min-width: 1180px) {
  body[data-page="home"] .home-layout .home-news-rail {
    position: fixed;
    left: var(--home-rail-left);
    top: 91px;
    width: var(--home-rail-width);
    height: calc(100dvh - 108px);
    max-height: 830px;
    z-index: 18;
  }
  body.universal-news-rail-page {
    --home-rail-width: clamp(240px, 19vw, 285px);
    --home-rail-gap: 26px;
    --home-rail-left: max(20px, calc((100vw - 1200px) / 2 - 311px));
    --home-content-left: calc(var(--home-rail-left) + var(--home-rail-width) + var(--home-rail-gap));
  }
  body.universal-news-rail-page .home-news-rail {
    position: fixed;
    top: 91px;
    left: var(--home-rail-left);
    width: var(--home-rail-width);
    height: calc(100dvh - 108px);
    max-height: 830px;
    min-height: 0;
    z-index: 18;
  }
  body.universal-news-rail-page header .wrap,
  body.universal-news-rail-page footer.wrap,
  body.universal-news-rail-page main.wrap {
    width: min(1200px, calc(100vw - var(--home-content-left) - 20px));
    max-width: none;
    margin-left: var(--home-content-left);
    margin-right: 20px;
  }
  body.universal-news-rail-page .home-news-rail .live-news-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    min-height: 0;
  }
  body.universal-news-rail-page .home-news-rail .live-news-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3,minmax(0,1fr));
    gap: 9px;
  }
  body.universal-news-rail-page .home-news-rail .feed-section-top {
    flex: none;
    margin-bottom: 11px;
  }
  /* Keep first-screen typography and card geometry identical on every tab. */
  body.universal-news-rail-page .home-news-rail .feed-section-top .eyebrow {font-size:8px;letter-spacing:.07em}
  body.universal-news-rail-page .home-news-rail .feed-section-top h2 {font-size:23px;line-height:1.08;letter-spacing:-.75px;margin:6px 0 0}
  body.universal-news-rail-page .home-news-rail .feed-section-top p,
  body.universal-news-rail-page .home-news-rail .news-global-tools,
  body.universal-news-rail-page .home-news-rail .news-bottom-note {display:none}
  body.universal-news-rail-page .home-news-rail .news-column {min-height:0;min-width:0;border-radius:17px;border-top:3px solid var(--news-accent)}
  body.universal-news-rail-page .home-news-rail .news-scene {height:23px;flex:none}
  body.universal-news-rail-page .home-news-rail .news-scene-symbol,
  body.universal-news-rail-page .home-news-rail .news-scene-ring,
  body.universal-news-rail-page .home-news-rail .news-scene-grid {display:none}
  body.universal-news-rail-page .home-news-rail .news-scene-word {font-size:28px;bottom:-3px;right:8px}
  body.universal-news-rail-page .home-news-rail .news-scene-index {top:6px;left:11px;right:auto}
  body.universal-news-rail-page .home-news-rail .news-column-heading {padding:7px 11px 5px;gap:5px;flex:none}
  body.universal-news-rail-page .home-news-rail .news-column-heading h3 {font-size:17px;letter-spacing:-.45px;margin:0 0 3px}
  body.universal-news-rail-page .home-news-rail .news-column-heading p {font-size:8px}
  body.universal-news-rail-page .home-news-rail .news-state {font-size:7px;padding:4px 6px}
  body.universal-news-rail-page .home-news-rail .news-filters {display:flex;flex:none;flex-wrap:nowrap;overflow-x:auto;gap:4px;padding:0 10px 6px;scrollbar-width:none}
  body.universal-news-rail-page .home-news-rail .news-filters button {flex:0 0 auto;font-size:8px;padding:3px 7px;min-height:23px}
  body.universal-news-rail-page .home-news-rail .news-tags {flex:none;min-height:23px;font-size:8px;padding:0 11px 7px;gap:5px}
  body.universal-news-rail-page .home-news-rail .news-items,
  body.universal-news-rail-page .home-news-rail .live-news-section[data-full="true"] .news-items {flex:1 1 auto;height:auto;min-height:0;overflow-y:auto;padding:2px 9px 5px;scrollbar-gutter:auto}
  body.universal-news-rail-page .home-news-rail .news-item {border-radius:11px;padding:7px 9px;margin-bottom:6px}
  body.universal-news-rail-page .home-news-rail .news-item-meta {font-size:7px;margin-bottom:3px}
  body.universal-news-rail-page .home-news-rail .news-item h4 {font-size:11px;line-height:1.32;letter-spacing:0;margin:3px 0 1px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
  body.universal-news-rail-page .home-news-rail .news-column-footer {flex:none;padding:6px 10px;font-size:7px;gap:7px;align-items:center}
  body.universal-news-rail-page .home-news-rail .news-column-footer [data-news-source] {max-width:58%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.universal-news-rail-page .home-news-rail .news-column:hover {transform:none}
  body.universal-news-rail-page .home-news-rail .news-column::after {border-radius:inherit}

  /* Preserve the fixed row slots — the expanded card floats over the page. */
  .home-news-rail .news-slot {position:relative;isolation:isolate;min-height:0;z-index:1}
  .home-news-rail .news-slot:hover,
  .home-news-rail .news-slot:focus-within {z-index:20}
  .home-news-rail .news-column {position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:100%;overflow:hidden;transform:none}
  .home-news-rail .news-item,.home-news-rail .news-arrival {animation:none !important;opacity:1 !important;transform:none !important;translate:none !important}
  /* Always show a readable illustrative thumbnail on compact stories. */
  .home-news-rail .news-item {min-height:69px;}
  .home-news-rail .news-item::after {content:"";display:block;clear:both}
  .home-news-rail .news-image,
  .home-news-rail .news-column:hover .news-image,
  .home-news-rail .news-column:focus-within .news-image {
    display:flex !important;
    float:left;
    width:52px;
    height:54px;
    aspect-ratio:auto;
    margin:0 8px 4px 0;
    border-radius:9px;
    overflow:hidden;
    flex:0 0 auto;
  }
  .home-news-rail .news-image img {width:100%;height:100%;object-fit:cover;}
  .home-news-rail .news-item-summary,.home-news-rail .news-item-extra {display:none !important}
  .home-news-rail .news-item h4 {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .home-news-rail .news-item-meta {flex-wrap:wrap}
  .home-news-rail .news-column:hover .news-item,
  .home-news-rail .news-column:focus-within .news-item {min-height:67px;padding:7px 8px;margin-bottom:4px}
  .home-news-rail .news-column:hover .news-items,
  .home-news-rail .news-column:focus-within .news-items {overflow-y:auto;padding:5px 9px 8px;overscroll-behavior:contain}
  .home-news-rail .news-column:hover .news-item h4,
  .home-news-rail .news-column:focus-within .news-item h4 {font-size:11px;line-height:1.3;margin:3px 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
  .home-news-rail .news-column:hover .news-image,
  .home-news-rail .news-column:focus-within .news-image {width:58px;height:60px}
  .home-news-rail .news-column:hover .news-item-extra,
  .home-news-rail .news-column:focus-within .news-item-extra {display:none!important}
  .home-news-rail .news-column:focus-within .news-item:focus-visible .news-item-summary {display:block!important;line-height:1.4;font-size:10px;clear:both}
  .home-news-rail .news-column:focus-within .news-item:focus-visible .news-item-extra {display:flex!important;clear:both}
}
/* Unambiguous fallback graphics: not photos of real-world incidents. */
.news-image--illustration {
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  background:radial-gradient(circle at 78% 25%,#ffffffba 0 5%,transparent 6%),
    radial-gradient(circle at 13% 84%,#ffffff7a 0 9%,transparent 10%),
    linear-gradient(145deg,var(--news-light),#e4ebdf);
  border:1px solid color-mix(in srgb,var(--news-accent) 22%,white);
  color:var(--news-accent);
  isolation:isolate;
}
.news-image--illustration::before {content:"";position:absolute;inset:9%;border:1px solid color-mix(in srgb,var(--news-accent) 25%,transparent);border-radius:50%;transform:rotate(-25deg)}
.news-illustration-symbol {font-size:clamp(19px,2vw,27px);line-height:1.05;font-weight:700;position:relative}
.news-image--illustration small {font-size:5px;font-weight:600;letter-spacing:.02em;position:relative;max-width:100%;overflow:hidden}
/* Keep original large-feed imagery on the dedicated /feed/ page. */

/* Desktop panel is always present, mobile uses a compact accessible drawer on
   secondary pages; the original home news section stays in normal flow. */
.news-rail-toggle,.news-rail-close {display:none}
@media (max-width:1179px) {
  body.universal-news-rail-page .home-news-rail {display:none}
  body.universal-news-rail-page .news-rail-toggle {
    display:block;position:fixed;z-index:33;right:16px;bottom:76px;
    padding:10px 15px;border-radius:999px;border:1px solid #cddbd1;
    background:#173329;color:white;font-weight:700;box-shadow:0 6px 25px #102e2426;
  }
  body.universal-news-rail-page .home-news-rail.news-rail-open {
    display:block;position:fixed;z-index:32;inset:82px 8px 67px;width:auto;height:auto;
    overflow-y:auto;padding:16px;background:#f6f7f2;border:1px solid #cddbd1;
    border-radius:18px;box-shadow:0 25px 60px #102e2466;
  }
  body.universal-news-rail-page .home-news-rail.news-rail-open .news-rail-close {
    display:block;position:sticky;top:0;left:calc(100% - 38px);width:36px;height:36px;
    z-index:4;border:1px solid #cddbd1;background:white;border-radius:50%;
    font-size:25px;line-height:30px;
  }
  body.universal-news-rail-page .home-news-rail.news-rail-open .live-news-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
  body.universal-news-rail-page .home-news-rail.news-rail-open .news-slot {min-height:260px}
  body.universal-news-rail-page .home-news-rail.news-rail-open .news-column {position:relative;width:100%;height:auto;min-height:260px;max-height:400px;overflow:hidden}
  body.universal-news-rail-page .home-news-rail.news-rail-open .news-items {height:220px;overflow:auto}
  body.universal-news-rail-page .home-news-rail.news-rail-open .news-column .news-image {display:flex}
  body.universal-news-rail-page .home-news-rail.news-rail-open .news-item-summary {display:none}
}
@media (prefers-reduced-motion:reduce) {
  .home-news-rail .news-column {transition:none!important}
}

/* The shared desktop panel starts below the preview strip and sticky header.
   Keep this top coordinate identical on every page, including navigation. */
@media (min-width:1180px) {
  body[data-page="home"] .home-layout .home-news-rail,
  body.universal-news-rail-page .home-news-rail {
    top: 121px;
    height: calc(100dvh - 138px);
  }
}


/* === Right projects rail: future products / MAX apps === */
.projects-rail{min-width:0}
.projects-panel{background:linear-gradient(180deg,#ffffff 0%,#f8faf7 100%);border:1px solid #dce2d8;border-radius:30px;padding:22px;box-shadow:0 18px 44px rgba(18,43,36,.06);display:flex;flex-direction:column;gap:16px;overflow:hidden}
.projects-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.projects-panel-head .eyebrow{font-size:8px;letter-spacing:.11em;color:#5c6f68}
.projects-panel-head h2{font-size:20px;line-height:1.08;letter-spacing:-.8px;margin:8px 0 0}
.projects-panel-head p{margin:8px 0 0;font-size:12px;line-height:1.55;color:#63716d}
.projects-count{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 10px;border-radius:14px;background:#e9efdf;color:#25694f;font-size:12px;font-weight:800;box-shadow:inset 0 0 0 1px rgba(37,105,79,.08)}
.projects-list{display:grid;gap:14px}
.project-card{position:relative;overflow:hidden;border-radius:24px;padding:20px 20px 18px;border:1px solid rgba(255,255,255,.18);display:flex;flex-direction:column;gap:14px;min-height:196px;isolation:isolate;transform-origin:center;transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease,filter .28s ease}
.project-card>*{position:relative;z-index:1}
.project-card::before{content:"";position:absolute;inset:-30% -10% auto auto;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 68%);opacity:.8;pointer-events:none;z-index:0}
.project-card:hover,.project-card:focus-within{transform:translateY(-5px) scale(1.02);box-shadow:0 22px 42px rgba(18,43,36,.18);border-color:rgba(255,255,255,.34);filter:saturate(1.04)}
.project-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.project-card-badge,.project-card-state{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:700;letter-spacing:.01em}
.project-card-badge{background:rgba(255,255,255,.16);backdrop-filter:blur(8px)}
.project-card-state{background:rgba(255,255,255,.13);color:inherit}
.project-card-state i{display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;opacity:.9;box-shadow:0 0 0 0 currentColor;animation:projectPulse 2.1s ease-in-out infinite}
.project-card h3{margin:0;font-size:26px;line-height:1.02;letter-spacing:-1px}
.project-card p{margin:0;max-width:238px;font-size:14px;line-height:1.5;color:inherit;opacity:.92}
.project-card-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.project-card-meta span{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:700;background:rgba(255,255,255,.12);backdrop-filter:blur(8px)}
.project-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:2px}
.project-card-link.button{min-height:42px;padding:10px 15px;border-radius:999px;font-size:12px;gap:10px;box-shadow:0 10px 24px rgba(12,33,30,.14);transition:transform .24s ease,box-shadow .24s ease,background-color .24s ease,color .24s ease}
.project-card-link.button:hover,.project-card-link.button:focus-visible{transform:translateY(-1px);box-shadow:0 16px 28px rgba(12,33,30,.18)}
.project-card-link.button span{font-size:16px}
.project-card-note{font-size:11px;line-height:1.45;opacity:.85;max-width:150px;text-align:right}
.project-card-art{position:absolute;inset:auto 10px 10px auto;pointer-events:none;z-index:0}
.project-card-horoscope{background:radial-gradient(circle at 18% 18%,rgba(83,155,116,.28),transparent 42%),linear-gradient(135deg,#16392f 0%,#2d7a61 100%);color:#f5faef}
.project-card-horoscope .project-card-art{right:-12px;bottom:-8px;width:160px;height:160px;animation:projectFloat 8s ease-in-out infinite}
.project-card-horoscope .project-card-art::before,.project-card-horoscope .project-card-art::after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(235,243,220,.34)}
.project-card-horoscope .project-card-art::before{inset:16px;animation:projectSpin 18s linear infinite}
.project-card-horoscope .project-card-art::after{inset:0;transform:rotate(-15deg);animation:projectSpinReverse 24s linear infinite}
.project-card-horoscope .project-card-art span{position:absolute;inset:42px;border-radius:50%;display:grid;place-items:center;background:rgba(12,33,30,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.15)}
.project-card-horoscope .project-card-art span::before{content:"☾";font-size:50px;color:#f7f5d2;transform:translateX(3px)}
.project-card-horoscope .project-card-art i,.project-card-horoscope .project-card-art b{position:absolute;width:8px;height:8px;border-radius:50%;background:#eef8bf;box-shadow:0 0 0 6px rgba(238,248,191,.06)}
.project-card-horoscope .project-card-art i{left:24px;top:40px;animation:starTwinkle 2.8s ease-in-out infinite}
.project-card-horoscope .project-card-art b{right:34px;bottom:50px;animation:starTwinkle 3.4s ease-in-out infinite 1s}
.project-card-horoscope .project-card-link{background:#eff7d3;color:#173026}
.project-card-radar{background:radial-gradient(circle at 84% 18%,rgba(255,255,255,.58),transparent 34%),linear-gradient(135deg,#f5f1ff 0%,#cfd2ff 100%);color:#1b3142}
.project-card-radar .project-card-badge,.project-card-radar .project-card-state,.project-card-radar .project-card-meta span{background:rgba(255,255,255,.58)}
.project-card-radar .project-card-link{background:#173026;color:#fff}
.project-card-radar .project-card-art{right:-18px;bottom:-22px;width:170px;height:170px;animation:projectFloat 7.5s ease-in-out infinite .4s}
.project-card-radar .project-card-art::before,.project-card-radar .project-card-art::after{content:"";position:absolute;inset:0;border-radius:50%;border:1px solid rgba(70,89,169,.20)}
.project-card-radar .project-card-art::after{inset:22px}
.project-card-radar .project-card-art span{position:absolute;left:24px;top:24px;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle at center,rgba(79,105,220,.16) 0,rgba(79,105,220,.16) 7%,transparent 8%,transparent 26%,rgba(79,105,220,.14) 27%,transparent 28%,transparent 49%,rgba(79,105,220,.12) 50%,transparent 51%)}
.project-card-radar .project-card-art span::after{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 210deg,rgba(79,105,220,0) 0deg,rgba(79,105,220,0) 250deg,rgba(79,105,220,.28) 305deg,rgba(110,145,255,.9) 324deg,rgba(79,105,220,0) 360deg);animation:radarSweep 3.8s linear infinite}
.project-card-radar .project-card-art i{position:absolute;left:78px;top:78px;width:14px;height:14px;border-radius:50%;background:#4f69dc;box-shadow:0 0 0 8px rgba(79,105,220,.12),0 0 0 18px rgba(79,105,220,.08)}
.project-card-radar .project-card-art b{position:absolute;left:112px;top:52px;width:8px;height:8px;border-radius:50%;background:#fff;box-shadow:0 0 0 6px rgba(255,255,255,.24);animation:radarBlink 2s ease-in-out infinite}
.projects-panel-foot{font-size:11px;line-height:1.5;color:#63716d;padding-top:2px;border-top:1px solid #edf1eb}
body.universal-projects-rail-page .projects-main-column{min-width:0}
body.universal-projects-rail-page main.wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
body.universal-projects-rail-page .projects-rail{order:2}
body.universal-projects-rail-page .projects-main-column{order:1}
@media (min-width: 1360px){
  body.universal-projects-rail-page main.wrap{grid-template-columns:minmax(0,1fr) clamp(260px,20vw,308px);gap:24px}
  body.universal-projects-rail-page .projects-rail{position:sticky;top:91px;align-self:start}
}
@media (min-width: 1360px){
  body[data-page="home"]{--projects-rail-width:clamp(260px,20vw,308px)}
  body[data-page="home"] main.home-layout{grid-template-columns:var(--home-rail-width) minmax(0,1fr) var(--projects-rail-width);grid-template-areas:"news top projects" "news bottom projects";width:min(1820px,calc(100vw - 40px));margin-inline:auto}
  body[data-page="home"] .home-layout .projects-rail{grid-area:projects;position:sticky;top:91px;align-self:start}
}
@media (max-width: 1359px){
  .projects-rail{margin-top:22px}
}
@keyframes projectSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes projectSpinReverse{from{transform:rotate(-15deg)}to{transform:rotate(-375deg)}}
@keyframes projectFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes projectPulse{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.32)}50%{box-shadow:0 0 0 6px rgba(255,255,255,0)}}
@keyframes starTwinkle{0%,100%{opacity:.58;transform:scale(.82)}50%{opacity:1;transform:scale(1.16)}}
@keyframes radarSweep{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes radarBlink{0%,100%{opacity:.5;transform:scale(.8)}50%{opacity:1;transform:scale(1.18)}}
@media (prefers-reduced-motion: reduce){
  .project-card,.project-card-link.button,.project-card-state i,.project-card-art,.project-card-art::before,.project-card-art::after,.project-card-art span::after,.project-card-art b,.project-card-art i{animation:none!important;transition:none!important}
}
@media (max-width: 760px){
  .projects-panel{padding:18px;border-radius:22px}
  .projects-panel-head h2{font-size:28px;line-height:1.05}
  .projects-panel-head p{font-size:13px}
  .projects-count{min-width:40px;min-height:40px}
  .project-card{padding:18px 18px 16px;min-height:174px;border-radius:20px}
  .project-card h3{font-size:25px}
  .project-card p{font-size:13px;max-width:200px}
  .project-card-link.button{min-height:40px;padding:10px 14px}
  .project-card-note{display:none}
  .project-card-horoscope .project-card-art{width:138px;height:138px;right:-18px}
  .project-card-radar .project-card-art{width:150px;height:150px;right:-24px}
}
