/* ALGYR news. Scoped styles; does not change the site's .container. */
.algyr-news {
  --an-purple: #7130f0;
  --an-ink: #050038;
  padding: 80px 0;
  color: var(--an-ink);
  font-family: gotham, Arial, sans-serif;
  font-weight: 400;
  text-align: left;
}
.algyr-news *, .algyr-news *::before, .algyr-news *::after { box-sizing: border-box; }
/* Same geometry as algyr.kz .container, independent of global overrides. */
.algyr-news .algyr-news__container { width: 100%; max-width: 1272px; padding: 0 16px; margin: 0 auto; }
.algyr-news .algyr-news__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #e9dffc; border-radius: 30px; color: var(--an-purple); font-size: 12px; line-height: 1.3; margin-bottom: 16px; }
.algyr-news .algyr-news__heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 14px; }
.algyr-news .algyr-news__title { margin: 0; color: var(--an-ink); font-family: Inter, Arial, sans-serif; font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -1px; }
.algyr-news .algyr-news__title span { color: var(--an-purple); }
.algyr-news .algyr-news__all { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 12px; min-height: 45px; padding: 13px 22px; background: var(--an-purple); border: 1px solid var(--an-purple); border-radius: 24px; color: #fff; text-decoration: none; font-size: 14px; line-height: 1.25; transition: background .2s ease; }
.algyr-news .algyr-news__all:hover { background: #5d22d2; }
.algyr-news .algyr-news__intro { margin: 0; max-width: 640px; color: #78718a; font-size: 16px; line-height: 1.6; }
/* Bleed for rotation is kept INSIDE the measured content edges. */
.algyr-news .algyr-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 26px 0 0; padding: 14px 8px 16px; list-style: none; }
.algyr-news .algyr-news__item { display: flex; min-width: 0; margin: 0; padding: 0; }
.algyr-news .algyr-news__poster { --an-angle: -1.5deg; --an-surface: #7130f0; --an-text: #fff; --an-faint: #ffffff38; position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; min-width: 0; min-height: 442px; padding: 27px; border-radius: 22px; background: var(--an-surface); color: var(--an-text); transform: rotate(var(--an-angle)); box-shadow: 0 8px 20px #3e167512; text-decoration: none; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.algyr-news .algyr-news__poster--event { --an-angle: 1.5deg; --an-surface: #eee5ff; --an-text: #281152; --an-faint: #7130f033; }
.algyr-news .algyr-news__poster--update { --an-angle: -1deg; --an-surface: #120b36; }
.algyr-news .algyr-news__top { position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; }
.algyr-news .algyr-news__brand { font-family: Inter, Arial, sans-serif; font-weight: 700; font-size: 12px; line-height: 1.3; letter-spacing: 1px; }
.algyr-news .algyr-news__category { padding: 6px 10px; border: 1px solid var(--an-faint); border-radius: 20px; font-size: 11px; line-height: 1.3; }
.algyr-news .algyr-news__art { position: relative; display: flex; flex-direction: column; justify-content: center; flex: 1; min-height: 240px; margin: 22px 0; }
.algyr-news .algyr-news__display { position: relative; z-index: 1; margin: 0; font-family: Inter, Arial, sans-serif; font-size: clamp(38px, 3.5vw, 52px); line-height: 1.02; letter-spacing: -2px; font-weight: 700; overflow-wrap: anywhere; }
.algyr-news .algyr-news__year { display: block; margin-top: 6px; font-family: Inter, Arial, sans-serif; font-size: 78px; font-weight: 700; letter-spacing: -5px; line-height: 1; color: #ffffff73; }
.algyr-news .algyr-news__seal { align-self: flex-end; margin: -18px 0 0; padding: 10px 12px; background: #fff; color: var(--an-purple); border-radius: 8px; transform: rotate(8deg); font-size: 11px; line-height: 1.25; font-weight: 700; box-shadow: 3px 3px 0 #35079a; }
.algyr-news .algyr-news__orbit { position: absolute; z-index: 0; top: 35px; right: -110px; width: 280px; height: 280px; border: 1px solid #ffffff33; border-radius: 50%; pointer-events: none; }
.algyr-news .algyr-news__orbit::after { content: ''; position: absolute; inset: 20px; border: 1px solid #ffffff22; border-radius: 50%; }
.algyr-news .algyr-news__ticket { margin-top: 22px; padding: 12px 0; border-top: 1px dashed #7130f066; border-bottom: 1px dashed #7130f066; font-size: 12px; letter-spacing: 2px; line-height: 1.3; }
.algyr-news .algyr-news__star { position: absolute; right: 0; top: -8px; color: #b592fc; font-size: 90px; line-height: 1; transform: rotate(10deg); }
.algyr-news .algyr-news__update-label { display: flex; gap: 8px; align-items: center; margin-top: 18px; color: #d2bbff; font-size: 11px; letter-spacing: 2px; line-height: 1.4; }
.algyr-news .algyr-news__dot { width: 6px; height: 6px; border-radius: 50%; background: #b18aff; }
.algyr-news .algyr-news__bottom { display: grid; grid-template-columns: minmax(0, 1fr) 44px; column-gap: 12px; align-items: end; position: relative; z-index: 1; border-top: 1px solid var(--an-faint); padding-top: 18px; }
.algyr-news .algyr-news__date { display: block; grid-column: 1 / -1; margin-bottom: 10px; font-size: 11px; letter-spacing: 1px; line-height: 1.5; }
.algyr-news .algyr-news__card-title { margin: 0; color: inherit; font-family: Inter, Arial, sans-serif; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.5px; overflow-wrap: anywhere; }
.algyr-news .algyr-news__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #ffffff24; color: inherit; font: 400 23px/1 Arial, sans-serif; }
.algyr-news .algyr-news__poster--event .algyr-news__arrow { background: var(--an-purple); color: #fff; }
.algyr-news .algyr-news__footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 22px; color: #78718a; font-size: 12px; line-height: 1.5; }
.algyr-news .algyr-news__signature { color: var(--an-purple); }
.algyr-news a:focus-visible { outline: 3px solid #c6a6ff; outline-offset: 5px; }
@media (hover: hover) and (pointer: fine) {
  .algyr-news .algyr-news__poster:hover { transform: rotate(0) translateY(-5px); box-shadow: 0 14px 28px #3e167523; }
}
.algyr-news .algyr-news__poster:focus-visible { transform: rotate(0); }
@media (max-width: 1280px) {
  .algyr-news { padding: 50px 0; }
  .algyr-news .algyr-news__container { max-width: 980px; }
  .algyr-news .algyr-news__title { font-size: 28px; }
  .algyr-news .algyr-news__grid { gap: 24px; }
  .algyr-news .algyr-news__poster { min-height: 402px; padding: 22px; }
  .algyr-news .algyr-news__display { font-size: 38px; }
  .algyr-news .algyr-news__art { min-height: 205px; }
  .algyr-news .algyr-news__card-title { font-size: 20px; }
  .algyr-news .algyr-news__year { font-size: 64px; }
}
@media (max-width: 992.9px) { .algyr-news .algyr-news__container { max-width: none; } }
@media (max-width: 992px) {
  .algyr-news .algyr-news__title { font-size: 24px; }
  .algyr-news .algyr-news__intro { font-size: 14px; }
  .algyr-news .algyr-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .algyr-news .algyr-news__display { font-size: 44px; }
  .algyr-news .algyr-news__item:last-child { grid-column: 1 / -1; }
  .algyr-news .algyr-news__item:last-child .algyr-news__poster { --an-angle: -.6deg; min-height: 270px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 30px; }
  .algyr-news .algyr-news__item:last-child .algyr-news__top { grid-column: 1 / -1; align-self: start; }
  .algyr-news .algyr-news__item:last-child .algyr-news__art { margin: 20px 0 0; min-height: 180px; }
  .algyr-news .algyr-news__item:last-child .algyr-news__bottom { align-self: end; }
}
@media (max-width: 768px) {
  .algyr-news .algyr-news__heading { align-items: flex-start; gap: 16px; }
  .algyr-news .algyr-news__all { padding: 12px 16px; font-size: 12px; }
  .algyr-news .algyr-news__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 20px; padding: 12px 7px; }
  .algyr-news .algyr-news__poster { --an-angle: -1deg; min-height: 398px; padding: 24px; }
  .algyr-news .algyr-news__poster--event { --an-angle: 1deg; }
  .algyr-news .algyr-news__display { font-size: clamp(34px, 10.5vw, 52px); }
  .algyr-news .algyr-news__item:last-child { grid-column: auto; }
  .algyr-news .algyr-news__item:last-child .algyr-news__poster { --an-angle: -1deg; display: flex; min-height: 398px; }
  .algyr-news .algyr-news__item:last-child .algyr-news__art { margin: 22px 0; min-height: 205px; }
  .algyr-news .algyr-news__item:last-child .algyr-news__bottom { align-self: auto; }
  .algyr-news .algyr-news__footer { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .algyr-news .algyr-news__poster, .algyr-news .algyr-news__all { transition: none; } }
