:root {
  color-scheme: light;
  --bg: #f4fff1;
  --surface: #ffffff;
  --surface-muted: #e7f9e3;
  --text: #172016;
  --muted: #617060;
  --line: #c9e7c4;
  --accent: #f06400;
  --accent-dark: #c34b00;
  --focus: #2563eb;
  --success: #16794b;
  --shadow: 0 12px 30px rgba(23, 34, 44, 0.08);
  --radius: 18px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.photo-hash-active {
  overflow-anchor: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(178, 220, 170, 0.9);
  background: rgba(237, 255, 233, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(calc(100% - 32px), var(--content));
  margin-inline: auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: grid;
  line-height: .82;
  letter-spacing: -.055em;
  font-family: Impact, "Arial Narrow", sans-serif;
  transform: skew(-2deg);
}

.brand-logo span {
  color: #111;
  font-size: 16px;
  letter-spacing: .01em;
}

.brand-logo b {
  color: var(--accent);
  font-size: 27px;
  font-weight: 900;
  text-shadow: 1px 1px 0 #111;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #34424d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--text);
}

.header-search {
  display: flex;
  width: min(310px, 28vw);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 4px 10px 16px;
  font: inherit;
}

.header-search button {
  border: 0;
  background: transparent;
  padding: 8px 13px;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
}

.page-shell {
  padding-block: 28px 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 5%, rgba(240, 100, 0, 0.24), transparent 35%),
    linear-gradient(135deg, #dfffd8 0%, #c8f5bf 100%);
  padding: clamp(26px, 5vw, 56px);
  color: var(--text);
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(223, 255, 216, .96) 0%, rgba(223, 255, 216, .78) 52%, rgba(223, 255, 216, .35) 100%);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-collage img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: saturate(.8) contrast(.92);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: #536452;
  font-size: clamp(16px, 2vw, 20px);
}

.ad-slot {
  display: grid;
  min-height: 74px;
  margin-block: 18px 26px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ad-slot iframe {
  display: block;
  width: 100%;
  border: 0;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 26px;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.result-count {
  color: var(--muted);
  font-size: 14px;
}

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

.latest-news {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(20, 30, 38, 0.03);
}

.latest-news-heading,
.latest-news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.latest-news-heading h2 {
  margin: 0;
  font-size: 18px;
}

.latest-news-heading a,
.latest-news-footer a {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
}

.latest-news ul {
  display: grid;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.latest-news li {
  padding: 8px 0;
  border-top: 1px solid rgba(77, 130, 65, 0.18);
  color: var(--muted);
  font-size: 12px;
}

.latest-news li:first-child {
  border-top: 0;
}

.latest-news li > a {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.latest-news li > a:hover {
  color: var(--accent-dark);
}

.latest-news li p {
  margin: 2px 0 0;
  line-height: 1.35;
}

.latest-news-footer {
  justify-content: flex-start;
}

.post-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(20, 30, 38, 0.02);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.post-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-muted);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.025);
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 0;
  font-size: clamp(19px, 2.5vw, 24px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent-dark);
}

.post-excerpt {
  display: -webkit-box;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

.sidebar {
  display: grid;
  align-self: stretch;
  align-content: start;
  gap: 18px;
}

.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.sidebar-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.sidebar-photo-promos {
  position: sticky;
  top: 90px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sidebar-photo-promo {
  position: relative;
  display: block;
  min-height: 165px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #172016;
  box-shadow: 0 8px 22px rgba(28, 48, 27, 0.12);
  color: #fff;
}

.sidebar-photo-promo img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.sidebar-photo-promo:hover img {
  transform: scale(1.025);
}

.sidebar-photo-promo span {
  position: absolute;
  inset: auto 0 0;
  padding: 38px 8px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.category-list,
.compact-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 4px;
  list-style: none;
}

.category-list a,
.compact-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 9px;
  padding: 8px 10px;
  color: #34424d;
  text-decoration: none;
}

.category-list a:hover,
.compact-list a:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.pagination .current {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-header {
  padding: clamp(24px, 5vw, 52px) clamp(20px, 6vw, 68px) 20px;
}

.article-header h1 {
  max-width: 880px;
  margin: 0 0 16px;
  font-size: clamp(31px, 5.5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.article-body {
  width: min(100% - 40px, 860px);
  margin-inline: auto;
  padding-bottom: 42px;
  font-size: clamp(16px, 1.8vw, 19px);
}

.article-body img {
  display: block;
  max-width: 100% !important;
  margin: 22px auto;
  border-radius: 13px;
}

.news-shell {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.news-tabs a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.news-tabs a:hover {
  border-color: var(--accent);
  background: var(--surface-muted);
  color: var(--accent-dark);
}

.news-page {
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(34, 62, 31, 0.09);
}

.news-page .article-header {
  padding: clamp(26px, 4vw, 42px) clamp(20px, 5vw, 54px) 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f8fff5, #fff);
}

.news-page .article-header h1 {
  max-width: 920px;
  margin-bottom: 10px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
}

.news-back {
  display: inline-flex;
  margin-top: 4px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.news-page .article-body {
  width: min(100% - 40px, 980px);
  padding: 30px 0 46px;
}

.news-content > h1,
.novosti-list > h1 {
  display: none;
}

.news-list .novosti-list {
  display: grid;
  gap: 14px;
}

.news-list .novosti-row {
  display: flow-root;
  min-height: 74px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.news-list .novosti-row:hover {
  transform: translateY(-1px);
  border-color: #b9d9b3;
  box-shadow: 0 8px 22px rgba(39, 72, 35, 0.08);
}

.news-list .novosti-row > a {
  color: var(--text);
  font-size: 18px;
  font-weight: 820;
  line-height: 1.25;
  text-decoration: none;
}

.news-list .novosti-row > a:hover {
  color: var(--accent-dark);
}

.news-list .novosti-row u {
  text-decoration: none;
}

.news-list .news-image {
  float: left;
  width: 148px !important;
  height: 96px;
  margin: 0 16px 0 0;
  border-radius: 11px;
  object-fit: cover;
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
  font-size: 0;
}

.news-pagination a {
  display: grid;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.news-pagination a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.news-pagination a.selected {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.news-catalog .article-body {
  width: min(100% - 40px, 1040px);
}

.news-catalog .news-content > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-catalog .news-content > ul > li {
  margin: 0;
}

.news-catalog .news-content > ul > li::before {
  content: none;
}

.news-catalog .news-content > ul a {
  display: flex;
  min-height: 100%;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.news-catalog .news-content > ul a:hover {
  border-color: var(--accent);
  background: var(--surface-muted);
  color: var(--accent-dark);
}

.news-article .article-body {
  width: min(100% - 40px, 780px);
}

.news-article .news-content > h1 {
  display: none;
}

.news-article .novosti-text {
  color: #26322a;
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.78;
}

.news-article .novosti-text p {
  margin: 0 0 1.15em;
}

.news-article .novosti-text a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-article .novosti-date {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.news-article .ooa_articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 24px;
}

.news-article .ooa_article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-muted);
}

.news-article .ooa_title {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.news-article .ooa_short {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.articles-shell {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.articles-page {
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(34, 62, 31, 0.09);
}

.articles-page .article-header {
  padding: clamp(26px, 4vw, 42px) clamp(20px, 5vw, 54px) 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff8f1, #fff);
}

.articles-page .article-header h1 {
  max-width: 920px;
  margin-bottom: 10px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
}

.articles-page .article-body {
  width: min(100% - 40px, 980px);
  padding: 30px 0 46px;
}

.articles-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.articles-list-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.articles-list-item:hover {
  transform: translateY(-1px);
  border-color: #b9d9b3;
  box-shadow: 0 8px 22px rgba(39, 72, 35, 0.08);
}

.articles-list-item > a {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 17px;
  font-weight: 820;
  line-height: 1.25;
  text-decoration: none;
}

.articles-list-item > a:hover {
  color: var(--accent-dark);
}

.articles-article .article-body {
  width: min(100% - 40px, 780px);
}

.articles-detail > h1 {
  display: none;
}

.articles-detail .novosti-text {
  color: #26322a;
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.78;
}

.articles-detail .novosti-text p {
  margin: 0 0 1.15em;
}

.articles-detail .novosti-text img {
  width: auto;
  max-height: 720px;
  margin: 26px auto;
  box-shadow: 0 10px 28px rgba(30, 45, 29, 0.1);
}

.articles-detail .novosti-text a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .news-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .news-tabs a {
    text-align: center;
  }

  .news-page .article-body,
  .news-catalog .article-body,
  .news-article .article-body {
    width: min(100% - 28px, 980px);
    padding-top: 20px;
  }

  .news-list .novosti-row {
    padding: 15px;
  }

  .news-list .news-image {
    float: none;
    width: 100% !important;
    height: 180px;
    margin: 0 0 13px;
  }

  .news-catalog .news-content > ul,
  .news-article .ooa_articles,
  .articles-list-grid {
    grid-template-columns: 1fr;
  }

  .articles-page .article-body,
  .articles-article .article-body {
    width: min(100% - 28px, 980px);
    padding-top: 20px;
  }

}

.photo-card {
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(41, 73, 36, .08);
  scroll-margin-top: 92px;
}

.photo-media {
  position: relative;
  background: #101510;
}

.photo-anchor {
  position: absolute;
  top: -92px;
}

.photo-media img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
}

.photo-card .photo-media > img {
  cursor: zoom-in;
}

body.photo-lightbox-open {
  overflow: hidden;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox {
  position: fixed;
  z-index: 200;
  inset: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, .9);
}

.photo-lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-out;
  touch-action: none;
}

.photo-lightbox-stage.is-zoomed {
  cursor: grab;
}

.photo-lightbox-stage.is-zoomed:active {
  cursor: grabbing;
}

.photo-lightbox-image {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center;
  will-change: transform;
}

.photo-lightbox-close {
  position: fixed;
  z-index: 202;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: white;
  cursor: pointer;
  font: 300 34px/1 Arial, sans-serif;
}

.photo-lightbox-controls {
  position: fixed;
  z-index: 202;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.photo-lightbox-controls button {
  min-width: 44px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 21px;
  background: rgba(0, 0, 0, .58);
  padding: 0 14px;
  color: white;
  cursor: pointer;
  font: 600 16px/1 Arial, sans-serif;
}

.photo-card figcaption {
  border-top: 1px solid var(--line);
}

.photo-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.photo-rating {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  right: 12px;
  gap: 8px;
}

.photo-vote {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  border-color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .9);
  padding: 7px 12px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.photo-vote:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.photo-vote:disabled {
  cursor: wait;
  opacity: .6;
}

.photo-rate-status {
  border-radius: 999px;
  background: rgba(20, 30, 20, .72);
  padding-inline: 7px;
  color: white;
  font-size: 13px;
}

.photo-comments {
  padding: 10px 16px 14px;
}

.photo-comment-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.photo-comment-list:empty {
  display: none;
}

html.photo-comments-hidden .photo-comment-list {
  display: none;
}

.photo-comments-toggle {
  display: block;
  width: fit-content;
  margin: 7px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.photo-comments-toggle[data-count="0"] {
  display: none;
}

.photo-comments-toggle:hover {
  color: var(--accent-dark);
}

.photo-comment {
  border-left: 3px solid #a9d8a1;
  border-radius: 0 10px 10px 0;
  background: #f6fff4;
  padding: 10px 12px;
  font-size: 15px;
}

.photo-comment-add {
  margin-top: 7px;
}

.photo-comment-add summary {
  width: fit-content;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
}

.photo-comment-add summary:hover {
  color: var(--accent-dark);
}

.photo-comment-add[open]::before {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(12, 20, 12, .58);
  content: "";
  backdrop-filter: blur(4px);
}

.photo-comment-add[open] > form {
  position: fixed;
  z-index: 91;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 28px), 680px);
  max-height: min(86vh, 620px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  transform: translate(-50%, -50%);
}

.photo-dialog-title {
  margin: 0 38px 18px 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 850;
}

.photo-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.photo-dialog-status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--accent-dark);
  font-size: 13px;
}

.photo-comment-add[open] .photo-comment-fields {
  grid-template-columns: 1fr;
}

.photo-comment-fields {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) 1.5fr auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.photo-comment-fields label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 750;
}

.photo-comment-fields input,
.photo-comment-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 9px 10px;
  color: var(--text);
  font: inherit;
}

.photo-comment-fields textarea {
  min-height: 44px;
  resize: vertical;
}

.floating-post-nav {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: 16px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.floating-post-link {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  padding: 0;
  color: var(--text);
  box-shadow: var(--shadow);
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.floating-post-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.floating-triangle {
  display: block;
  width: 0;
  height: 0;
}

.triangle-left {
  border-top: 7px solid transparent;
  border-right: 11px solid currentColor;
  border-bottom: 7px solid transparent;
}

.triangle-right {
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.triangle-up {
  border-right: 7px solid transparent;
  border-bottom: 11px solid currentColor;
  border-left: 7px solid transparent;
}

.triangle-down {
  border-top: 11px solid currentColor;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
}

.photo-promos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.photo-promo {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #172016;
  box-shadow: var(--shadow);
  color: white;
}

.photo-promo img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.photo-promo span {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .86));
  padding: 38px 10px 10px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.recent-carousel {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow);
}

.recent-carousel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.recent-carousel-heading h2 {
  margin: 0;
  font-size: 20px;
}

.recent-carousel-controls {
  display: flex;
  gap: 7px;
}

.recent-carousel-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
}

.recent-carousel-controls button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.recent-carousel-track {
  display: grid;
  grid-auto-columns: minmax(115px, 15%);
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 6px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.recent-carousel-item {
  min-width: 0;
  overflow: hidden;
  border-radius: 11px;
  background: var(--surface-muted);
  color: var(--text);
  scroll-snap-align: start;
  text-decoration: none;
}

.recent-carousel-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.recent-carousel-item span {
  display: -webkit-box;
  overflow: hidden;
  padding: 8px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (min-width: 1024px) {
  .post-page {
    --post-column: min(1000px, calc(100vw - 332px));
  }

  .post-page > .article,
  .post-page > .recent-carousel,
  .post-page > .ad-slot,
  .post-page > .comments {
    width: min(100%, var(--post-column));
    margin-inline: auto;
  }

  .photo-promos {
    display: contents;
  }

  .photo-promo {
    position: fixed;
    z-index: 20;
    width: 150px;
    min-height: 0;
    transform: translateY(var(--promo-release-offset, 0));
  }

  .photo-promo img {
    height: 130px;
    min-height: 0;
  }

  .photo-promo span {
    padding: 26px 6px 6px;
    font-size: 11px;
  }

  .photo-promo:nth-child(1),
  .photo-promo:nth-child(6) {
    top: 92px;
  }

  .photo-promo:nth-child(2),
  .photo-promo:nth-child(7) {
    top: 232px;
  }

  .photo-promo:nth-child(3),
  .photo-promo:nth-child(8) {
    top: 372px;
  }

  .photo-promo:nth-child(4),
  .photo-promo:nth-child(9) {
    top: 512px;
  }

  .photo-promo:nth-child(5),
  .photo-promo:nth-child(10) {
    top: 652px;
  }

  .photo-promo:nth-child(-n+5) {
    left: 8px;
  }

  .photo-promo:nth-child(n+6) {
    right: 8px;
  }
}

@media (min-width: 1024px) and (max-width: 1099px) {
  .photo-promo span {
    display: none;
  }
}

.article-body table {
  display: block;
  width: 100% !important;
  overflow-x: auto;
}

.article-body iframe {
  width: 100%;
  border: 0;
}

.article-body pre {
  overflow-x: auto;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 18px clamp(20px, 6vw, 68px);
}

.rating-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.star-button {
  border: 0;
  background: transparent;
  padding: 3px;
  color: #c4a134;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.comments {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(20px, 4vw, 36px);
}

.comments h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.comment-list {
  display: grid;
  margin: 0 0 28px;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.comment {
  border-radius: 14px;
  background: var(--surface-muted);
  padding: 16px 18px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.comment-name {
  font-weight: 800;
}

.comment-date {
  color: var(--muted);
  font-size: 13px;
}

.comment-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cbd5dc;
  border-radius: 11px;
  background: white;
  padding: 11px 12px;
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  padding: 10px 18px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
  color: white;
}

.notice {
  margin-bottom: 18px;
  border-left: 4px solid var(--success);
  border-radius: 9px;
  background: #e8f6ef;
  padding: 12px 14px;
}

.notice-error {
  border-left-color: var(--accent);
  background: #fff0f2;
}

.empty-state {
  border: 1px dashed #bac6ce;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 42px 24px;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding-block: 28px;
}

.counter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.counter-row img {
  display: block;
}

.sape-panel {
  width: min(100%, 860px);
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f9fff7, #eefbe9);
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(41, 73, 36, .06);
}

.sape-panel-title {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.sape-links {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.sape-links a {
  display: inline;
  border-radius: 5px;
  color: var(--accent-dark);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.sape-links a:hover {
  color: var(--accent);
}

.sape-service {
  display: none;
}

.admin-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(190, 231, 181, .6), transparent 34rem),
    #f5faf3;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}

.admin-brand {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.admin-header h1 {
  margin: 6px 0 4px;
  font-size: clamp(28px, 5vw, 42px);
}

.admin-header p {
  margin: 0;
  color: var(--muted);
}

.admin-filter {
  display: flex;
  align-items: end;
  gap: 10px;
}

.admin-filter label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-filter select {
  min-width: 130px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 9px 11px;
  color: var(--text);
}

.admin-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  font-weight: 750;
}

.admin-delete {
  background: #a53227;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-table td:first-child {
  width: 34px;
}

.admin-table input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--accent-dark);
}

.admin-kind {
  display: inline-block;
  border-radius: 999px;
  background: #e2f5de;
  padding: 3px 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.admin-table time {
  color: var(--muted);
  font-size: 12px;
}

.admin-comment-text {
  max-width: 650px;
  margin-top: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-empty {
  padding: 36px !important;
  color: var(--muted);
  text-align: center !important;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.admin-nav a {
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--accent-dark);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stat {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--muted);
  text-decoration: none;
}

.admin-stat strong {
  color: var(--text);
  font-size: 30px;
}

.admin-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.admin-panel h2 {
  margin: 0 0 13px;
}

.admin-tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.admin-tool-links a {
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.admin-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.button-secondary {
  background: var(--surface-muted);
  color: var(--text);
}

.admin-post-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px auto;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.admin-post-filter input,
.admin-post-filter select,
.admin-editor input,
.admin-editor select,
.admin-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
}

.admin-post-title {
  display: block;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.admin-post-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.admin-actions {
  white-space: nowrap;
}

.admin-actions form {
  display: inline;
  margin-left: 8px;
}

.admin-actions button {
  border: 0;
  background: none;
  padding: 0;
  color: #a53227;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.admin-pagination a {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.admin-pagination a[aria-current="page"] {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.admin-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.admin-field {
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-field-wide,
.admin-editor-actions {
  grid-column: 1 / -1;
}

.admin-field textarea {
  min-height: 140px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}

.admin-field legend {
  padding: 0 5px;
}

.admin-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-category-grid label {
  padding: 9px;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text);
}

.admin-category-grid input {
  width: auto;
  margin-right: 5px;
}

.admin-editor-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 700px) {
  .admin-shell {
    width: min(100% - 20px, 1180px);
    margin: 10px auto;
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .admin-filter {
    align-items: stretch;
  }

  .admin-filter label {
    flex: 1;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-table th:nth-child(2),
  .admin-table td:nth-child(2) {
    display: none;
  }

  .admin-post-table th:nth-child(2),
  .admin-post-table td:nth-child(2) {
    display: table-cell;
  }

  .admin-post-table th:nth-child(3),
  .admin-post-table td:nth-child(3),
  .admin-post-table th:nth-child(4),
  .admin-post-table td:nth-child(4) {
    display: none;
  }

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

  .admin-post-filter,
  .admin-editor {
    grid-template-columns: 1fr;
  }

  .admin-field-wide,
  .admin-editor-actions {
    grid-column: auto;
  }

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-search {
    justify-self: end;
    width: min(350px, 100%);
  }

  .layout {
    grid-template-columns: 1fr;
  }

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

  .sidebar-photo-promos {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-block: 10px;
  }

  .brand {
    font-size: 20px;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .nav-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .page-shell {
    width: min(calc(100% - 20px), var(--content));
    padding-top: 18px;
  }

  .hero {
    border-radius: 18px;
  }

  .hero-collage {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-collage img:nth-child(n+3) {
    display: none;
  }

  .hero::after {
    background: rgba(223, 255, 216, .78);
  }

  .post-grid,
  .sidebar,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-photo-promos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: auto;
  }

  .article {
    border-radius: 16px;
  }

  .article-body {
    width: min(100% - 28px, 860px);
  }

  .photo-comment-fields,
  .photo-promos {
    grid-template-columns: 1fr;
  }

  .recent-carousel-track {
    grid-auto-columns: 42%;
  }

  .floating-post-nav {
    bottom: 10px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
