.kg-news-page .my-pano,
.kg-news-page .my-top,
.kg-news-page .my-midle {
  min-width: 0;
}

/* Я рисую: фирменные цвета и шрифты пробного дизайна. */
.paper--news .kg-news{--kg-navy:#000066;--kg-blue:#136b9b;--kg-cyan:#62c3cf;--kg-red:#e95e4f;--kg-soft:#eaf3f5;font-family:PFDin,Arial,sans-serif}
.paper--news .kg-news h1,.paper--news .kg-news h2,.paper--news .kg-news h3{font-family:Intro,Arial,sans-serif}
.paper--news .kg-news-card__title{font-family:Intro,Arial,sans-serif}
.paper--news .kg-news__eyebrow{color:#d25850}
.paper--news .kg-news-card__category{background:#d9f4f4;color:#034b68}
.paper--news .kg-news-card__excerpt,.paper--news .kg-news__intro{font-family:PFDin,Arial,sans-serif}
.paper--news .kg-news-card__fallback{background:linear-gradient(145deg,#64c4d1,#f6ad69,#e95e4f)}
.paper--news .drawing-news-fulltext{white-space:normal;overflow-wrap:anywhere;line-height:1.55}
.paper--news .kg-news-carousel__status{position:static;width:auto;height:auto;clip:auto;white-space:nowrap;color:#57647f;font:16px PFDin,Arial,sans-serif}
.side-nav>a[aria-current="page"]{background:#ffffff25;box-shadow:inset 3px 0 #f4ad5b}

body.kg-news-page {
  min-width: 0;
  overflow-x: hidden;
}

.kg-news-page .my-pano {
  overflow-x: clip;
}

.kg-news-page .fonpict {
  max-width: calc(100vw - 150px);
  overflow: hidden;
}

.kg-news-page .my-mdle-midle {
  min-height: 0;
  overflow: visible;
  text-align: left;
}

.kg-news,
.kg-news * {
  box-sizing: border-box;
}

.kg-news {
  --kg-navy: #071b3a;
  --kg-blue: #0d73b9;
  --kg-cyan: #28b6d3;
  --kg-red: #f25048;
  --kg-text: #10213e;
  --kg-muted: #62718a;
  --kg-line: #dbe5f0;
  --kg-surface: #ffffff;
  --kg-soft: #eef7fc;
  width: min(100%, 1180px);
  margin: 0 auto;
  color: var(--kg-text);
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

.kg-news h1,
.kg-news h2,
.kg-news h3,
.kg-news p {
  margin-top: 0;
}

.kg-news h1,
.kg-news h2,
.kg-news h3 {
  color: var(--kg-navy);
  font-family: PFDinTextCondPro-Medium, Arial, Helvetica, sans-serif;
  text-align: left;
}

.kg-news h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  font-weight: 700;
}

.kg-news__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--kg-line);
}

.kg-news__intro {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--kg-muted);
  font-size: 18px;
  line-height: 1.5;
}

.kg-news__eyebrow {
  margin-bottom: 7px;
  color: var(--kg-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kg-news-vk-link,
.kg-news-back,
.kg-news-article__source a {
  color: var(--kg-blue);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.kg-news-vk-link {
  flex: 0 0 auto;
  padding-bottom: 6px;
}

.kg-news-vk-link:hover,
.kg-news-back:hover,
.kg-news-article__source a:hover {
  color: var(--kg-red);
  text-decoration: underline;
}

.kg-news-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.kg-news-section-title h2 {
  margin-bottom: 0;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.05;
}

.kg-news-featured {
  margin-bottom: 56px;
}

.kg-news-carousel {
  position: relative;
  width: 100%;
  height: 590px;
  overflow: hidden;
  perspective: 1500px;
  perspective-origin: 50% 44%;
  touch-action: pan-y;
}

.kg-news-carousel:focus-visible {
  outline: 3px solid rgba(13, 115, 185, .3);
  outline-offset: 4px;
}

.kg-news-carousel__controls {
  display: flex;
  gap: 8px;
}

.kg-news-carousel__button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #a9c7da;
  border-radius: 50%;
  background: #fff;
  color: var(--kg-navy);
  cursor: pointer;
  font: 700 22px/1 Arial, sans-serif;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.kg-news-carousel__button:hover:not(:disabled) {
  border-color: var(--kg-red);
  background: var(--kg-red);
  color: #fff;
}

.kg-news-carousel__button:disabled {
  cursor: default;
  opacity: .36;
}

.kg-news-carousel__footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 4px;
}

.kg-news-carousel__dots {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.kg-news-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b7c6d7;
  cursor: pointer;
  transition: width .25s ease, height .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.kg-news-carousel__dot:hover {
  background: var(--kg-blue);
}

.kg-news-carousel__dot.is-active {
  width: 13px;
  height: 13px;
  background: var(--kg-red);
  box-shadow: 0 0 0 4px rgba(242, 80, 72, .14);
}

.kg-news-carousel__dot:focus-visible {
  outline: 3px solid rgba(13, 115, 185, .28);
  outline-offset: 3px;
}

.kg-news-carousel__hint {
  margin: 0;
  color: var(--kg-muted);
  font-size: 14px;
  text-align: center;
}

.kg-news-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--kg-line);
  border-radius: 18px;
  background: var(--kg-surface);
  box-shadow: 0 12px 28px rgba(12, 44, 79, .08);
  scroll-snap-align: start;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.kg-news-card:hover {
  transform: translateY(-4px);
  border-color: #b7d7e8;
  box-shadow: 0 18px 36px rgba(12, 44, 79, .15);
}

.kg-news-carousel .kg-news-card {
  position: absolute;
  top: 18px;
  left: 50%;
  width: min(54%, 560px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 0, -360px) scale(.68);
  transform-origin: center center;
  transition: transform .58s cubic-bezier(.2, .72, .2, 1), opacity .38s ease, box-shadow .35s ease, border-color .35s ease, filter .38s ease;
  will-change: transform, opacity;
}

.kg-news-carousel .kg-news-card:hover {
  border-color: var(--kg-line);
  box-shadow: 0 12px 28px rgba(12, 44, 79, .08);
}

.kg-news-carousel .kg-news-card.is-active {
  z-index: 4;
  opacity: 1;
  transition: transform .58s cubic-bezier(.2, .72, .2, 1), opacity 0s, box-shadow .35s ease, border-color .35s ease, filter .38s ease;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 85px) rotateY(0) scale(1);
  box-shadow: 0 28px 60px rgba(12, 44, 79, .22);
}

.kg-news-carousel .kg-news-card.is-active:hover {
  border-color: #b7d7e8;
  box-shadow: 0 34px 70px rgba(12, 44, 79, .28);
  transform: translate3d(-50%, -5px, 85px) rotateY(0) scale(1);
}

.kg-news-carousel .kg-news-card.is-prev,
.kg-news-carousel .kg-news-card.is-next {
  z-index: 2;
  opacity: .88;
  pointer-events: auto;
  cursor: pointer;
  filter: saturate(.88) brightness(.96);
}

.kg-news-carousel .kg-news-card.is-prev {
  transform: translate3d(-115%, 22px, -155px) rotateY(13deg) scale(.86);
}

.kg-news-carousel .kg-news-card.is-next {
  transform: translate3d(15%, 22px, -155px) rotateY(-13deg) scale(.86);
}

.kg-news-carousel .kg-news-card.is-far-prev {
  z-index: 1;
  opacity: .16;
  transform: translate3d(-152%, 54px, -330px) rotateY(18deg) scale(.68);
}

.kg-news-carousel .kg-news-card.is-far-next {
  z-index: 1;
  opacity: .16;
  transform: translate3d(52%, 54px, -330px) rotateY(-18deg) scale(.68);
}

.kg-news-carousel .kg-news-card:not(.is-active) .kg-news-card__link:focus-visible {
  outline-offset: -4px;
}

.kg-news-carousel .kg-news-card__body {
  min-height: 220px;
}

.kg-news-carousel .kg-news-card__media {
  aspect-ratio: 16 / 8.4;
}

.kg-news-carousel .kg-news-card__more {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff6258, #ef443e);
  color: #fff;
  box-shadow: 0 8px 18px rgba(242, 80, 72, .22);
}

.kg-news-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.kg-news-card__link:focus-visible {
  outline: 3px solid var(--kg-cyan);
  outline-offset: -3px;
}

.kg-news-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #09244a, #0d73b9 58%, #31c5dc);
}

.kg-news-card__image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  object-fit: cover;
  transition: transform .35s ease;
}

.kg-news-card:hover .kg-news-card__image {
  transform: scale(1.035);
}

.kg-news-card__fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.22), transparent 28%), linear-gradient(135deg, #071b3a, #0d73b9 62%, #28b6d3);
}

.kg-news-card__fallback span {
  font-size: 58px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.2));
  transform: rotate(-10deg);
}

.kg-news-card__body {
  display: flex;
  min-height: 275px;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.kg-news-card__meta,
.kg-news-article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--kg-muted);
  font-size: 13px;
}

.kg-news-card__category {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #9fd5e5;
  border-radius: 999px;
  background: #effbff;
  color: #08769a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.kg-news-card__title {
  display: -webkit-box;
  min-height: 54px;
  margin-bottom: 12px;
  overflow: hidden;
  font-size: 24px;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kg-news-card__excerpt {
  display: -webkit-box;
  margin-bottom: 20px;
  overflow: hidden;
  color: var(--kg-muted);
  font-size: 16px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.kg-news-card__more {
  margin-top: auto;
  color: var(--kg-red);
  font-size: 15px;
  font-weight: 700;
}

.kg-news-archive {
  padding-top: 38px;
  border-top: 1px solid var(--kg-line);
}

.kg-news-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.kg-news-search {
  flex: 0 1 320px;
}

.kg-news-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #b9ccdc;
  border-radius: 10px;
  background: #fff;
  color: var(--kg-text);
  font: 16px/1.3 Arial, sans-serif;
}

.kg-news-search input:focus {
  border-color: var(--kg-blue);
  outline: 3px solid rgba(13,115,185,.14);
}

.kg-news-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.kg-news-filter {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #c6d6e3;
  border-radius: 999px;
  background: #fff;
  color: var(--kg-text);
  cursor: pointer;
  font: 600 14px/1 Arial, sans-serif;
}

.kg-news-filter:hover,
.kg-news-filter.is-active {
  border-color: var(--kg-blue);
  background: var(--kg-blue);
  color: #fff;
}

.kg-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.kg-news-grid .kg-news-card__body {
  min-height: 260px;
}

.kg-news-load-more-wrap {
  margin-top: 28px;
  text-align: center;
}

.kg-news-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--kg-red);
  border-radius: 9px;
  background: var(--kg-red);
  color: #fff;
  cursor: pointer;
  font: 700 15px/1.2 Arial, sans-serif;
  text-decoration: none;
}

.kg-news-button:hover {
  border-color: #d83933;
  background: #d83933;
  color: #fff;
}

.kg-news-button--secondary {
  border-color: #b9ccdc;
  background: #fff;
  color: var(--kg-blue);
}

.kg-news-button--secondary:hover {
  border-color: var(--kg-blue);
  background: var(--kg-blue);
}

.kg-news-no-results,
.kg-news-empty {
  padding: 42px 24px;
  border: 1px dashed #a9c7da;
  border-radius: 16px;
  background: rgba(255,255,255,.6);
  color: var(--kg-muted);
  text-align: center;
}

.kg-news-empty h1,
.kg-news-empty h2,
.kg-news-empty p {
  text-align: center;
}

.kg-news-empty .kg-news-button {
  margin-top: 10px;
}

.kg-news-article {
  max-width: 900px;
}

.kg-news-back {
  display: inline-block;
  margin-bottom: 30px;
}

.kg-news-article__header {
  margin-bottom: 28px;
}

.kg-news-article__meta {
  justify-content: flex-start;
}

.kg-news-article__lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--kg-muted);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
}

.kg-news-article__cover {
  display: block;
  width: 100%;
  max-height: 560px;
  margin-bottom: 34px;
  padding: 0 !important;
  border-radius: 18px;
  object-fit: cover;
}

.kg-news-article__content {
  max-width: 760px;
  color: #20314e;
  font-size: 18px;
  line-height: 1.68;
}

.kg-news-article__content p,
.kg-news-article__content ul,
.kg-news-article__content ol,
.kg-news-article__content blockquote {
  margin: 0 0 1.2em;
}

.kg-news-article__content ul,
.kg-news-article__content ol {
  padding-left: 1.35em;
}

.kg-news-article__content li {
  margin-bottom: .45em;
}

.kg-news-article__content a {
  color: var(--kg-blue);
  text-decoration: underline;
}

.kg-news-article__content blockquote {
  padding-left: 20px;
  border-left: 4px solid var(--kg-cyan);
  color: var(--kg-muted);
}

.kg-news-article__content .kg-text-blue { color: var(--kg-blue); }
.kg-news-article__content .kg-text-red { color: var(--kg-red); }
.kg-news-article__content .kg-text-large { font-size: 1.25em; }
.kg-news-article__content .kg-text-small { font-size: .85em; }
.kg-news-article__content .kg-text-sans { font-family: Arial, Helvetica, sans-serif; }
.kg-news-article__content .kg-text-condensed { font-family: PFDinTextCondPro-Medium, "Arial Narrow", sans-serif; }

.kg-news-article__video {
  display: block;
  width: 100%;
  max-height: 620px;
  margin: 0 0 30px;
  border-radius: 16px;
  background: #000;
}

.kg-news-article__video-link { margin: 0 0 30px; }

.kg-news-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--kg-text);
  box-shadow: 0 30px 90px rgba(2, 14, 38, .45);
}

.kg-news-dialog::backdrop { background: rgba(2, 14, 38, .78); backdrop-filter: blur(5px); }
.kg-news-dialog-open { overflow: hidden; }
.kg-news-dialog__scroll { max-height: calc(100vh - 32px); overflow: auto; }
.kg-news-dialog__media { aspect-ratio: 16 / 7; overflow: hidden; background: var(--kg-navy); }
.kg-news-dialog__media img { width: 100%; height: 100%; object-fit: cover; }
.kg-news-dialog__inner { padding: 34px 38px 40px; }
.kg-news-dialog__inner h2 { margin: 14px 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.02; }
.kg-news-dialog__close-form { position: absolute; top: 12px; right: 12px; z-index: 2; }
.kg-news-dialog__close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 0 4px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(7, 27, 58, .82);
  color: #fff;
  cursor: pointer;
  font: 30px/1 Arial, sans-serif;
}
.kg-news-dialog__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--kg-line); }

.kg-news-article__source {
  margin-top: 34px;
}

.kg-news-article__footer {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--kg-line);
}

.kg-news [hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1180px) {
  .kg-news-page .my-midle {
    width: 96%;
  }

  .kg-news-page .my-mdle-left {
    min-width: 280px;
    width: 28%;
  }

  .kg-news-page .my-mdle-midle {
    width: 72%;
    padding: 28px;
  }

  .kg-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kg-news-page .my-pano,
  .kg-news-page .my-midle,
  .kg-news-page .my-mdle-left,
  .kg-news-page .my-mdle-midle {
    width: 100%;
    min-width: 0;
  }

  .kg-news-page .my-midle {
    display: block;
  }

  .kg-news-page .my-mdle-left {
    min-height: 0;
    float: none;
  }

  .kg-news-page .my-mdle-midle {
    margin: 0;
    padding: 20px 16px 34px;
    border-radius: 0;
    clear: both;
  }

  .kg-news-page .my-top,
  .kg-news-page .kalendar,
  .kg-news-page .fonpict,
  .kg-news-page .gagarin_text,
  .kg-news-page .project,
  .kg-news-page .vkinsta,
  .kg-news-page .my-bottom {
    display: none !important;
  }

  .kg-news-page .my-logo {
    position: relative;
    top: auto;
    left: auto;
    width: min(92%, 440px);
    margin: 0 auto;
    padding: 20px 12px 8px;
    text-align: center;
  }

  .kg-news-page .accordion {
    width: 94%;
    min-width: 0;
    max-width: none;
    margin: 14px auto 22px;
  }

  .kg-news__header,
  .kg-news-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .kg-news-vk-link {
    align-self: flex-start;
  }

  .kg-news-search {
    flex-basis: auto;
    width: 100%;
  }

  .kg-news-filters {
    justify-content: flex-start;
  }

  .kg-news-carousel { height: 560px; }
  .kg-news-carousel .kg-news-card { width: min(62%, 520px); }
}

@media (max-width: 620px) {
  .kg-news h1 {
    font-size: 38px;
  }

  .kg-news__header {
    margin-bottom: 32px;
  }

  .kg-news-carousel { height: 510px; }
  .kg-news-carousel .kg-news-card { width: 86%; top: 14px; }
  .kg-news-carousel .kg-news-card.is-prev { transform: translate3d(-118%, 24px, -170px) rotateY(12deg) scale(.82); }
  .kg-news-carousel .kg-news-card.is-next { transform: translate3d(18%, 24px, -170px) rotateY(-12deg) scale(.82); }
  .kg-news-carousel .kg-news-card__body { min-height: 218px; padding: 17px; }
  .kg-news-carousel .kg-news-card__title { font-size: 22px; }
  .kg-news-carousel .kg-news-card__excerpt { -webkit-line-clamp: 2; }

  .kg-news-grid {
    grid-template-columns: 1fr;
  }

  .kg-news-card__body,
  .kg-news-grid .kg-news-card__body {
    min-height: 238px;
  }

  .kg-news-section-title--archive {
    display: block;
  }

  .kg-news-article__content {
    font-size: 17px;
  }

  .kg-news-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 14px; }
  .kg-news-dialog__scroll { max-height: calc(100vh - 16px); }
  .kg-news-dialog__media { aspect-ratio: 16 / 10; }
  .kg-news-dialog__inner { padding: 26px 18px 30px; }
  .kg-news-dialog__inner h2 { font-size: 34px; }
  .kg-news-dialog__actions { align-items: stretch; flex-direction: column; }
}

/* Старый шаблон сайта не содержал viewport. Этот блок остаётся страховкой
   для мобильных браузеров, которые применяют его после начала отрисовки. */
@media screen and (orientation: portrait) and (max-width: 1180px) {
  .kg-news-page .my-pano,
  .kg-news-page .my-midle,
  .kg-news-page .my-mdle-left,
  .kg-news-page .my-mdle-midle {
    width: 100%;
    min-width: 0;
  }

  .kg-news-page .my-midle {
    display: block;
    margin: 0;
  }

  .kg-news-page .my-mdle-left {
    min-height: 0;
    float: none;
  }

  .kg-news-page .my-mdle-midle {
    margin: 0;
    padding: 20px 16px 34px;
    border-radius: 0;
    clear: both;
  }

  .kg-news__header,
  .kg-news-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .kg-news-carousel .kg-news-card {
    width: 86%;
  }

  .kg-news-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kg-news-card,
  .kg-news-card__image,
  .kg-news-carousel__dot {
    transition: none;
  }
}

.paper--news .kg-news-carousel .kg-news-card__title{font-size:clamp(20px,2.1vw,25px);line-height:1.1;-webkit-line-clamp:3;min-height:0}
@media(max-width:620px){.paper--news .kg-news-carousel .kg-news-card__title{font-size:20px;-webkit-line-clamp:3}}
