*{box-sizing:border-box}body{margin:0;font:16px/1.55 system-ui,Arial,sans-serif;color:#123b50;background:#f3f9fa}header{background:#078b8a;color:white;padding:16px max(24px,calc((100% - 1120px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}nav{display:flex;align-items:center;gap:20px}nav a{color:white;text-decoration:none}nav form{margin:0}main{max-width:1120px;margin:50px auto;padding:0 24px}.hero{padding:70px 45px;border-radius:18px;background:linear-gradient(110deg,#e0f7f5,#fff);border:1px solid #d0e9e9}.hero h1{font-size:clamp(28px,4vw,48px);line-height:1.15;max-width:750px}.button,button{background:#078b8a;color:white;border:0;border-radius:9px;padding:11px 19px;cursor:pointer;text-decoration:none;font:inherit}footer{text-align:center;color:#6b8790;padding:30px}.auth{max-width:430px;margin:10vh auto;background:white;padding:30px;border-radius:14px;box-shadow:0 8px 35px #123b5015}.auth h1{color:#078b8a}.auth label{display:block;margin:18px 0}.auth input{display:block;width:100%;padding:12px;border:1px solid #afc8cf;border-radius:7px}.auth button{width:100%}.error{color:#a12424}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.cards article{background:white;border:1px solid #d9e7e9;border-radius:12px;padding:20px}.note{padding:14px;background:#e5f5f4;border-radius:9px}a{color:#078b8a}

/* Shifobakhsh TNU-inspired public portal. Brand: #0c9488 */
:root{--teal:#0c9488;--deep:#075c58;--ink:#163d47;--muted:#6a8086;--line:#e2ebeb}body.public-site{background:#fff;color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif} .public-site a{text-decoration:none}.shell{width:min(1200px,calc(100% - 44px));margin:auto}.topline{background:#075c58;color:#e9fffc;font-size:12px}.topline .shell{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0}.langs b{color:#fff}.brandbar{background:white}.brandrow{display:flex;align-items:center;justify-content:space-between;min-height:116px;gap:22px}.brand{display:flex;align-items:center;gap:16px;color:var(--ink)!important}.brandmark{display:grid;place-items:center;width:64px;height:64px;border:3px solid var(--teal);border-radius:50%;font-size:35px;color:var(--teal);font-weight:700}.brand strong{display:block;color:var(--teal);font-size:30px;letter-spacing:1.3px;line-height:1.15}.brand small{display:block;font-size:12px;color:#648088;line-height:1.5;margin-top:5px}.brandright{display:flex;align-items:center;gap:20px}.brandbadge{color:#6a8184;font-size:13px}.outline{padding:11px 16px;border:1px solid #b7d9d6;border-radius:5px;font-size:13px;font-weight:650}.mainnav{background:var(--teal);box-shadow:0 4px 16px #073f3920}.navinner{position:relative}.navlist{display:flex;list-style:none;margin:0;padding:0;align-items:stretch}.navlist>li{position:relative}.navlist>li>a{display:block;padding:18px 17px;color:white;font-size:13px;font-weight:650;white-space:nowrap}.navlist>li:hover>a,.navlist>li:focus-within>a{background:#08796f}.navlist ul{display:none;position:absolute;z-index:10;left:0;top:100%;min-width:220px;background:white;box-shadow:0 12px 30px #123b5028;padding:8px 0;list-style:none;margin:0;border-top:3px solid var(--deep)}.navlist li:hover>ul,.navlist li:focus-within>ul{display:block}.navlist ul a{display:block;padding:10px 16px;color:var(--ink);font-size:13px}.navlist ul a:hover{background:#e9f6f4}.navtoggle{display:none}.public-site main{max-width:none;margin:0;padding:0}.feature{background:linear-gradient(105deg,#e4f5f2 0%,#f8fcfb 55%,#e0f0ed 100%);overflow:hidden}.featuregrid{min-height:405px;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:30px}.featurecopy{padding:45px 0}.eyebrow,.kicker{font-size:11px;letter-spacing:1.8px;color:var(--teal);font-weight:800}.feature h1{font-size:clamp(32px,3.5vw,52px);line-height:1.12;letter-spacing:-1.5px;margin:18px 0;color:#104451}.feature p{font-size:15px;color:#55727a;max-width:580px;line-height:1.8}.heroactions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.solid,.lightbutton{display:inline-block;padding:12px 19px;border-radius:5px;font-size:13px;font-weight:750}.solid{background:var(--teal);color:#fff!important}.lightbutton{border:1px solid #a8d4cf;background:#fff;color:var(--teal)}.slidercontrols{display:flex;align-items:center;gap:14px;margin-top:30px;font-size:12px;color:#6b888b}.slidercontrols button{border:1px solid #b7d8d4;border-radius:50%;width:32px;height:32px;background:white;color:var(--teal);padding:0}.featurevisual{min-height:330px;position:relative;display:grid;place-items:center}.visualring{width:270px;height:270px;border:2px solid #b3dad3;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 25px #0c94880b,0 0 0 70px #0c948807}.visualring span{font-size:160px;color:var(--teal);line-height:1;text-shadow:8px 12px 0 #c5e7e1}.visualcaption{position:absolute;bottom:10px;font-size:10px;letter-spacing:2px;color:#4c827c}.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:-20px;position:relative;z-index:1}.quick>a{display:grid;grid-template-columns:48px 1fr;column-gap:10px;align-items:center;background:white;padding:20px;border:1px solid var(--line);box-shadow:0 7px 25px #123b5010;border-radius:6px}.quick a>span{grid-row:span 2;display:grid;place-items:center;background:#e8f7f4;color:var(--teal);font-size:25px;width:45px;height:45px;border-radius:50%}.quick strong{font-size:14px;color:#17424b}.quick small{font-size:11px;color:#7d9498}.editorial{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(285px,1fr);gap:32px;padding:66px 0}.sectionhead{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:24px}.sectionhead h2,.aboutgrid h2{font-size:27px;letter-spacing:-.5px;margin:6px 0 0;color:#133e49}.sectionhead>a{font-size:12px;font-weight:700;color:var(--teal)}.newsgrid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.leadstory{border:1px solid var(--line);background:white;border-radius:5px;overflow:hidden}.storyimage{height:198px;background:linear-gradient(125deg,#087d75,#35b4a8);display:flex;justify-content:space-between;padding:18px;color:white}.storyimage>span{font-size:11px;font-weight:750;letter-spacing:1.5px}.medsymbol{font-size:100px;opacity:.25;line-height:1.4}.storybody{padding:20px}.storybody small,.smallstories small{color:var(--teal);font-size:11px}.storybody h3{font-size:19px;line-height:1.3;margin:9px 0}.storybody p,.smallstories p,.noticelist p{font-size:12px;color:#789096;line-height:1.6}.smallstories{display:flex;flex-direction:column;gap:12px}.smallstories article{display:flex;gap:14px;border-bottom:1px solid var(--line);padding:4px 0 16px}.miniicon{display:grid;place-items:center;flex-shrink:0;width:56px;height:60px;background:#e5f4f2;color:var(--teal);font-weight:800;border-radius:4px}.smallstories h3{font-size:14px;margin:5px 0;line-height:1.35}.smallstories p{margin:0}.noticecol{background:#f5faf9;padding:23px;border-top:4px solid var(--teal);align-self:start}.noticecol .sectionhead h2{font-size:24px}.noticelist article{padding:14px 0;border-bottom:1px solid #dcebe8}.notice-date{font-size:10px;color:var(--teal);font-weight:800;letter-spacing:1px}.noticelist h3{font-size:14px;margin:7px 0}.noticelist p{margin:0}.notice-more{display:inline-block;margin-top:20px;font-size:13px;font-weight:750}.band{background:#f1f8f7;padding:55px 0}.deptgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.deptgrid article{padding:23px;background:white;border:1px solid var(--line);border-radius:5px;border-bottom:3px solid var(--teal)}.deptgrid article span{font-size:24px;font-weight:800;color:#9ad4ce}.deptgrid h3{font-size:15px;margin:14px 0 9px}.deptgrid p{font-size:12px;color:#789096;line-height:1.6}.aboutgrid{display:grid;grid-template-columns:1fr 1fr;gap:70px;padding:65px 0}.aboutgrid p{font-size:14px;color:#668188;line-height:1.8}.placeholder{font-style:italic}.aboutpanel{background:#eaf7f4;padding:28px;border-radius:5px}.aboutpanel h3{font-size:22px}.doctorline{border-top:1px solid #c6e3df;padding-top:16px;display:flex;flex-direction:column;gap:8px;font-size:13px}.doctorline span{color:#67898a}.sitefooter{background:#103c43;color:#d4e9e8}.footergrid{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:35px;padding:48px 0}.footerbrand{font-size:21px;color:white}.sitefooter p{font-size:12px;line-height:1.8;color:#a9c7c9}.sitefooter h3{font-size:14px;color:white}.sitefooter a{display:block;color:#b6d4d5;font-size:12px;padding:5px 0}.footbottom{border-top:1px solid #315a60;padding:18px 0;display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#b5cdce}@media(max-width:950px){.navlist>li>a{padding:16px 10px;font-size:12px}.brandbadge{display:none}.quick{grid-template-columns:repeat(2,1fr)}.editorial{grid-template-columns:1fr}.deptgrid{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.topline .shell span:nth-child(2){display:none}.brandrow{min-height:94px}.brandmark{width:49px;height:49px;font-size:28px}.brand strong{font-size:22px}.brand small{font-size:10px}.brandright{display:none}.navtoggle{display:block;background:var(--teal);width:100%;text-align:left;border-radius:0;padding:15px 0}.navlist{display:none;flex-direction:column}.navlist.is-open{display:flex}.navlist>li>a{padding:12px 10px}.navlist ul{position:static;box-shadow:none;display:block;background:#08796f;border:0;padding:0 0 0 14px}.navlist ul a{color:white}.featuregrid{grid-template-columns:1fr;min-height:auto}.featurecopy{padding:40px 0}.featurevisual{display:none}.quick{margin-top:15px;gap:8px}.quick>a{padding:12px;grid-template-columns:36px 1fr}.quick a>span{width:34px;height:34px;font-size:20px}.quick strong{font-size:12px}.quick small{font-size:10px}.editorial{padding:45px 0}.newsgrid,.aboutgrid{grid-template-columns:1fr}.deptgrid{grid-template-columns:1fr}.footergrid{grid-template-columns:1fr 1fr;gap:20px}.footbottom{flex-direction:column}.aboutgrid{gap:20px;padding:45px 0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* News card uploaded image: preserve the fallback gradient */
.public-site .storyimage {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.public-site .storyimage[style*="background-image"] {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}


/* Shifobakhsh: оформление внутренних публичных страниц.
   Главная страница (.feature) и панель администратора не затрагиваются. */
@media screen {
  body.public-site main:not(:has(.feature)) {
    width: min(1120px, calc(100% - 44px));
    max-width: 1120px;
    min-height: 360px;
    margin: 0 auto;
    padding: 42px 0 72px;
  }
  body.public-site main:not(:has(.feature)) > h1,
  body.public-site main:not(:has(.feature)) h1 {
    color: var(--ink);
    font-size: clamp(27px, 3.2vw, 38px);
    line-height: 1.22;
    margin: 20px 0 18px;
    letter-spacing: -.5px;
  }
  body.public-site main:not(:has(.feature)) > p,
  body.public-site main:not(:has(.feature)) > article,
  body.public-site main:not(:has(.feature)) > section {
    max-width: 900px;
  }
  body.public-site main:not(:has(.feature)) p {
    line-height: 1.8;
    overflow-wrap: anywhere;
  }
  body.public-site main:not(:has(.feature)) img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
  }
  body.public-site main:not(:has(.feature)) a:hover {
    text-decoration: underline;
  }
}
@media (max-width: 680px) {
  body.public-site main:not(:has(.feature)) {
    width: calc(100% - 32px);
    min-height: 280px;
    padding: 28px 0 48px;
  }
}


/* Shifobakhsh: compact announcement images on the homepage only. */
body.public-site .noticecol .noticelist img,
body.public-site .noticecol .notice-image,
body.public-site .noticecol article img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  margin: 0 0 12px;
}
body.public-site .noticecol,
body.public-site .noticecol .noticelist,
body.public-site .noticecol .noticelist article {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 680px) {
  body.public-site .noticecol .noticelist img,
  body.public-site .noticecol .notice-image,
  body.public-site .noticecol article img { height: 170px; }
}


/* Shifobakhsh: compact department cards on the public homepage only. */
body.public-site #departments .deptgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
body.public-site #departments .deptgrid article {
  min-width: 0;
  width: auto;
  max-width: 100%;
  overflow: hidden;
}
body.public-site #departments .deptgrid article > a:has(img.department-thumb) {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
body.public-site #departments .deptgrid img.department-thumb,
body.public-site #departments .deptgrid article img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 160px !important;
  max-height: 160px !important;
  object-fit: cover;
  object-position: center;
  border-radius: 7px;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  body.public-site #departments .deptgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.public-site #departments .deptgrid { grid-template-columns: minmax(0, 1fr); }
}


/* 46.31 — Новость на главной: дата, заголовок и описание поверх фотографии. */
body.public-site #news .news-feature-card {
  border-radius: 10px;
  overflow: hidden;
  background: #0a4c4c;
}
body.public-site #news .news-feature-link {
  display: block;
  color: #fff;
  text-decoration: none;
}
body.public-site #news .news-feature-image {
  position: relative;
  display: block;
  height: 310px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #087d75, #164b54);
}
body.public-site #news .news-feature-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease, filter .45s ease;
}
body.public-site #news .news-feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4,30,35,.08) 5%, rgba(4,30,35,.38) 42%, rgba(4,30,35,.92) 100%);
  transition: background .45s ease;
  pointer-events: none;
}
body.public-site #news .news-feature-link:is(:hover, :focus-visible) .news-feature-image > img {
  filter: brightness(.67);
  transform: scale(1.035);
}
body.public-site #news .news-feature-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(0,85,81,.78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
body.public-site #news .news-feature-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 54px 20px 20px;
  color: #fff;
  transition: transform .35s ease;
}
body.public-site #news .news-feature-date {
  display: block;
  color: #a6f1e7;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}
body.public-site #news .news-feature-overlay h3 {
  margin: 0 0 8px;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.3;
  color: #fff;
}
body.public-site #news .news-feature-overlay p {
  margin: 0;
  color: #edf7f6;
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
body.public-site #news .news-feature-link:focus-visible { outline: 3px solid #15c9b8; outline-offset: -3px; }
@media (max-width: 680px) {
  body.public-site #news .news-feature-image { height: 340px; }
  body.public-site #news .news-feature-overlay { padding: 55px 16px 18px; }
  body.public-site #news .news-feature-image > img { filter: brightness(.82); }
}
@media (prefers-reduced-motion: reduce) {
  body.public-site #news .news-feature-image > img,
  body.public-site #news .news-feature-overlay { transition: none; }
}

/* Step 46.32: six image-led homepage news cards; other news pages unchanged. */
body.public-site #news .newsgrid-six {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
body.public-site #news .newsgrid-six .news-feature-card { min-width: 0; }
body.public-site #news .newsgrid-six .news-feature-link { display: block; height: 100%; }
body.public-site #news .newsgrid-six .news-feature-image { height: 270px; }
body.public-site #news .newsgrid-six .news-feature-overlay { padding: 45px 14px 15px; }
body.public-site #news .newsgrid-six .news-feature-overlay h3 {
  font-size: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
body.public-site #news .newsgrid-six .news-feature-overlay p {
  font-size: 11px;
  -webkit-line-clamp: 2;
}
@media (max-width: 680px) {
  body.public-site #news .newsgrid-six { grid-template-columns: minmax(0, 1fr); }
  body.public-site #news .newsgrid-six .news-feature-image { height: 300px; }
}
/* Шаг 46.35: фотографии отдельных новостей */
body.public-site main:not(:has(.feature)) article > img {
    display: block;
    width: 100%;
    max-width: 650px;
    height: auto;
    margin: 20px auto 25px;
    object-fit: contain;
    border-radius: 12px;
}

/* Step 46.40: refined homepage news cards. Scoped to #news only. */
body.public-site #news .newsgrid-six .news-feature-card {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(7,143,136,.15);
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(8,57,64,.10);
  transform: translateY(0);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
body.public-site #news .newsgrid-six .news-feature-card:hover,
body.public-site #news .newsgrid-six .news-feature-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(30,195,180,.72);
  box-shadow: 0 18px 42px rgba(7,79,82,.22);
}
body.public-site #news .newsgrid-six .news-feature-image {
  background-color: #075c58;
  transition: background-color .3s ease;
}
body.public-site #news .newsgrid-six .news-feature-image > img {
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .45s ease;
}
body.public-site #news .newsgrid-six .news-feature-link:hover .news-feature-image > img,
body.public-site #news .newsgrid-six .news-feature-link:focus-visible .news-feature-image > img {
  transform: scale(1.075);
  filter: brightness(.75) saturate(1.13);
}
body.public-site #news .newsgrid-six .news-feature-image::after {
  background: linear-gradient(180deg, rgba(3,32,40,.06) 4%, rgba(3,32,40,.34) 42%, rgba(3,32,40,.94) 100%);
  transition: background .35s ease;
}
body.public-site #news .newsgrid-six .news-feature-link:hover .news-feature-image::after,
body.public-site #news .newsgrid-six .news-feature-link:focus-visible .news-feature-image::after {
  background: linear-gradient(180deg, rgba(3,32,40,.12) 0%, rgba(3,32,40,.46) 42%, rgba(3,32,40,.96) 100%);
}
body.public-site #news .newsgrid-six .news-feature-overlay {
  transition: transform .35s ease;
}
body.public-site #news .newsgrid-six .news-feature-link:hover .news-feature-overlay,
body.public-site #news .newsgrid-six .news-feature-link:focus-visible .news-feature-overlay {
  transform: translateY(-4px);
}
body.public-site #news .newsgrid-six .news-feature-tag {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 3px 14px rgba(0,0,0,.13);
}
body.public-site #news .newsgrid-six .news-feature-overlay h3 {
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
body.public-site #news .newsgrid-six .news-feature-link:focus-visible {
  outline: 3px solid #16d7c3;
  outline-offset: -3px;
  border-radius: 16px;
}
@media (hover: none) {
  body.public-site #news .newsgrid-six .news-feature-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.public-site #news .newsgrid-six .news-feature-card,
  body.public-site #news .newsgrid-six .news-feature-image > img,
  body.public-site #news .newsgrid-six .news-feature-overlay,
  body.public-site #news .newsgrid-six .news-feature-image::after {
    transition: none !important;
    animation: none !important;
  }
  body.public-site #news .newsgrid-six .news-feature-card:hover,
  body.public-site #news .newsgrid-six .news-feature-card:focus-within,
  body.public-site #news .newsgrid-six .news-feature-link:hover .news-feature-overlay,
  body.public-site #news .newsgrid-six .news-feature-link:focus-visible .news-feature-overlay {
    transform: none;
  }
}

/* 46.41 — Modern announcement cards in the homepage sidebar only. */
body.public-site #announcements.noticecol {
  background: linear-gradient(160deg,#f0faf8 0%,#f7fbfc 100%);
  border-top: 4px solid var(--teal);
  border-radius: 12px;
  padding: 22px 18px;
  min-width: 0;
}
body.public-site #announcements .noticelist {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 14px;
}
body.public-site #announcements .noticelist article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  margin: 0;
  border: 1px solid #dbece9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(11,67,69,.045);
  overflow: hidden;
  transition: transform .28s ease,box-shadow .28s ease,border-color .28s ease;
}
body.public-site #announcements .noticelist article:hover,
body.public-site #announcements .noticelist article:focus-within {
  transform: translateY(-3px);
  border-color: #82d3c8;
  box-shadow: 0 13px 25px rgba(11,67,69,.12);
}
body.public-site #announcements .noticelist article > a:has(img) {
  display: block !important;
  margin: 0 0 11px !important;
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e6f5f3;
}
body.public-site #announcements .noticelist article > a > img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease,filter .45s ease;
}
body.public-site #announcements .noticelist article:hover > a > img,
body.public-site #announcements .noticelist article:focus-within > a > img {
  transform: scale(1.055);
  filter: saturate(1.08);
}
body.public-site #announcements .noticelist .notice-date {
  font-size: 10px;
  font-weight: 800;
  color: #078f88;
  letter-spacing: .045em;
}
body.public-site #announcements .noticelist h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 6px 0 7px;
}
body.public-site #announcements .noticelist h3 a {
  color: #103d49;
  transition: color .2s ease;
}
body.public-site #announcements .noticelist h3 a:hover,
body.public-site #announcements .noticelist h3 a:focus-visible {color: #078f88;}
body.public-site #announcements .noticelist p {
  font-size: 12px;
  line-height: 1.65;
  color: #647f86;
  margin: 0;
}
body.public-site #announcements .notice-more {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 750;
  color: #077b76;
}
@media (max-width: 950px) and (min-width: 601px) {
  body.public-site #announcements .noticelist {grid-template-columns: repeat(2,minmax(0,1fr));}
}
@media (max-width: 600px) {
  body.public-site #announcements.noticecol {padding: 16px 12px;}
  body.public-site #announcements .noticelist {grid-template-columns: minmax(0,1fr);}
}
@media (hover:none) {
  body.public-site #announcements .noticelist article:hover {transform: none;}
}
@media (prefers-reduced-motion: reduce) {
  body.public-site #announcements .noticelist article,
  body.public-site #announcements .noticelist article > a > img,
  body.public-site #announcements .noticelist h3 a {transition: none !important;}
  body.public-site #announcements .noticelist article:hover,
  body.public-site #announcements .noticelist article:focus-within {transform: none;}
}


/* Шаг 46.38: только полная новость — компактная галерея без обрезки фото. */
body.public-site .news-detail-page .news-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 16px;
}
body.public-site .news-detail-page .news-photo-gallery a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e2ebeb;
  border-radius: 12px;
  background: #f8fbfb;
}
body.public-site .news-detail-page .news-photo-gallery img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
}
@media (max-width: 520px) {
  body.public-site .news-detail-page .news-photo-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  body.public-site .news-detail-page .news-photo-gallery img {
    max-width: 100%;
    max-height: 210px;
  }
}


/* 46.44 — Объявления на главной: примерно на 20% компактнее.
   Только блок #announcements; архив объявлений и новости не затрагиваются. */
body.public-site #announcements.noticecol { padding: 18px 14px; }
body.public-site #announcements .sectionhead { margin-bottom: 19px; }
body.public-site #announcements .noticelist { gap: 11px; }
body.public-site #announcements .noticelist article { padding: 10px; }
body.public-site #announcements .noticelist article > a:has(img) {
  aspect-ratio: 20 / 9;
  margin-bottom: 9px !important;
}
body.public-site #announcements .noticelist h3 {
  font-size: 14px;
  line-height: 1.35;
  margin: 5px 0 5px;
}
body.public-site #announcements .noticelist p { font-size: 11px; line-height: 1.5; }
body.public-site #announcements .notice-more { margin-top: 14px; }
@media (max-width: 600px) {
  body.public-site #announcements.noticecol { padding: 13px 10px; }
}


/* 46.45: Fix news detail gallery without requiring .news-detail-page class.
   The news detail markup has inline image height:210px and grid styles. */
body.public-site section[aria-label="Фотогалерея новости"] .news-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)) !important;
  gap: 14px;
  margin-top: 14px;
  max-width: 100%;
}
body.public-site section[aria-label="Фотогалерея новости"] .news-photo-gallery > a {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 8px;
  border: 1px solid #e2ebeb;
  border-radius: 10px;
  background: #f8fbfb;
  overflow: hidden;
}
body.public-site section[aria-label="Фотогалерея новости"] .news-photo-gallery > a > img {
  display: block;
  width: 100% !important;
  max-width: 220px !important;
  height: auto !important;
  max-height: 180px !important;
  object-fit: contain !important;
  border-radius: 7px;
}
@media (max-width: 520px) {
  body.public-site section[aria-label="Фотогалерея новости"] .news-photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  body.public-site section[aria-label="Фотогалерея новости"] .news-photo-gallery > a { padding: 5px; }
  body.public-site section[aria-label="Фотогалерея новости"] .news-photo-gallery > a > img {
    max-width: 100% !important;
    max-height: 145px !important;
  }
}
