:root {
  --ink: #162116;
  --muted: #647064;
  --forest: #1f3d2a;
  --moss: #6f7f3d;
  --gold: #c5a45b;
  --cream: #f4f6ee;
  --paper: #fbfcf8;
  --line: rgba(22, 33, 22, 0.12);
  --shadow: 0 24px 70px rgba(19, 31, 20, 0.14);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 4px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 252, 248, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 54px;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #334334;
  font-size: 0.9rem;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #eef1e7;
  color: var(--forest);
}

.nav-links a.cta {
  background: #101a12;
  border-color: #101a12;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 26, 18, 0.18);
}

.nav-links a.cta:hover,
.nav-links a.cta[aria-current="page"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #101a12;
}

.cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(197, 164, 91, 0.5);
  border-radius: 6px;
  background: var(--forest);
  color: white;
  font-weight: 800;
}

.cta.light {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero {
  min-height: calc(100svh - 78px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: #101a12;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 21, 14, 0.88), rgba(12, 21, 14, 0.58) 46%, rgba(12, 21, 14, 0.14)),
    linear-gradient(0deg, rgba(12, 21, 14, 0.12), rgba(12, 21, 14, 0.12));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 118px;
  padding-left: clamp(14px, 2vw, 32px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.8vw, 4.35rem);
  font-weight: 500;
}

.hero p {
  max-width: 650px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats {
  width: min(1180px, calc(100% - 32px));
  margin: -58px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(19, 31, 20, 0.18);
  overflow: hidden;
}

.stat {
  display: grid;
  place-items: center;
  min-height: 118px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest);
  font-size: clamp(2.2rem, 3vw, 3.05rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.section.narrow {
  width: min(900px, calc(100% - 32px));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

h2 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.2vw, 3.25rem);
  font-weight: 500;
}

h3 {
  font-size: 1.2rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

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

.feature,
.post,
.panel,
.contact-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.feature {
  padding: 28px;
}

.feature .icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 6px;
  background: #eef1e7;
  color: var(--forest);
}

.feature .icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feature p,
.post p,
.panel p,
.article-body p,
.article-body li {
  color: var(--muted);
}

.post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.clickable-post {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.clickable-post:hover,
.clickable-post:focus-visible {
  border-color: rgba(197, 164, 91, 0.5);
  box-shadow: 0 18px 48px rgba(19, 31, 20, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.post img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.news-compact {
  gap: 16px;
}

.news-compact .post img {
  aspect-ratio: 16 / 6.6;
  height: clamp(150px, 12vw, 190px);
}

.news-compact .post-body {
  padding: 14px;
}

.news-compact .post h3 {
  font-size: 0.98rem;
  line-height: 1.25;
  display: -webkit-box;
  min-height: 2.62em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-compact .post p {
  display: -webkit-box;
  font-size: 0.88rem;
  line-height: 1.42;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.news-compact .read-more {
  margin-top: auto;
}

.date {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.read-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  color: var(--forest);
  font-weight: 900;
}

.post .read-more,
.feature .read-more {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(31, 61, 42, 0.16);
  border-radius: 7px;
  background: white;
  box-shadow: 0 12px 26px rgba(19, 31, 20, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.feature .read-more {
  margin-top: 14px;
}

.post .read-more:hover,
.post .read-more:focus-visible,
.feature .read-more:hover,
.feature .read-more:focus-visible {
  border-color: rgba(197, 164, 91, 0.58);
  background: #fdfdf9;
  box-shadow: 0 16px 34px rgba(19, 31, 20, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.back-link {
  gap: 8px;
}

.back-link::before {
  content: "";
  width: 9px;
  height: 9px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.news-filters button {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--forest);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.news-filters button.active,
.news-filters button:hover {
  background: var(--forest);
  color: white;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.band {
  background: var(--forest);
  color: white;
}

.band .section {
  padding: 84px 0;
}

.band p {
  color: rgba(255, 255, 255, 0.76);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 52px;
  padding-top: 46px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(197, 164, 91, 0), rgba(197, 164, 91, 0.9), rgba(197, 164, 91, 0));
}

.timeline-item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 265px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -42px;
  width: 17px;
  height: 17px;
  border: 3px solid var(--gold);
  border-radius: 999px;
  background: var(--forest);
  transform: translateX(-50%);
  box-shadow: 0 0 0 8px rgba(197, 164, 91, 0.12);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -17px;
  width: 1px;
  height: 17px;
  background: linear-gradient(180deg, rgba(197, 164, 91, 0.8), rgba(197, 164, 91, 0.12));
  transform: translateX(-50%);
}

.timeline-item span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 0.9;
}

.timeline-item strong {
  display: block;
  margin-bottom: 10px;
  color: white;
  font-size: 1.05rem;
  line-height: 1.25;
}

.timeline-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.96rem;
  line-height: 1.55;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: white;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--page-hero-image, none);
  background-position: var(--page-hero-position, center);
  background-size: cover;
  opacity: 0.52;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 31, 20, 0.94) 0%, rgba(13, 31, 20, 0.72) 46%, rgba(13, 31, 20, 0.46) 100%),
    linear-gradient(0deg, rgba(13, 31, 20, 0.36), rgba(13, 31, 20, 0.18));
}

.page-hero .section {
  position: relative;
  z-index: 1;
  padding: 86px 0;
}

.hero-novosti {
  --page-hero-image: url("../img/gallery-2.png");
}

.hero-about,
.hero-lovstvo,
.article-hero {
  --page-hero-image: url("../img/hero-divljac.jpg");
  --page-hero-position: center 42%;
}

.hero-kinologija {
  --page-hero-image: url("../img/hero-kinologija.jpg");
  --page-hero-position: center 45%;
}

.hero-streljastvo {
  --page-hero-image: url("../img/hero-streljastvo.jpg");
}

.hero-contact {
  --page-hero-image: url("../img/gallery-1.png");
  --page-hero-position: center 38%;
}

.hero-gallery {
  --page-hero-image: url("../img/news-100-godina.png");
}

.article-hero .section {
  padding: 54px 0 58px;
}

.article-hero h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.article-meta > span {
  position: relative;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding-right: 16px;
}

.article-meta > span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.24);
}

.article-meta strong {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-share {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.article-share:hover,
.article-share:focus-visible {
  background: rgba(197, 164, 91, 0.22);
  outline: none;
}

.article-share svg,
.article-share-mask {
  display: block;
  width: 18px;
  height: 18px;
}

.article-share svg {
  fill: none;
  color: var(--gold);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.article-share-mask {
  background: var(--gold);
}

.facebook-mask {
  mask: url("../img/facebook.svg") center / contain no-repeat;
  -webkit-mask: url("../img/facebook.svg") center / contain no-repeat;
}

.article-share::before,
.article-share::after {
  position: absolute;
  left: 50%;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.article-share::before {
  content: "";
  top: calc(100% + 2px);
  border: 6px solid transparent;
  border-bottom-color: rgba(13, 27, 18, 0.96);
}

.article-share::after {
  content: attr(data-tooltip);
  top: calc(100% + 13px);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(13, 27, 18, 0.96);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.article-share:hover::before,
.article-share:hover::after,
.article-share:focus-visible::before,
.article-share:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.article-summary {
  max-width: 980px;
  margin: 0 0 30px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  font-weight: 850;
  line-height: 1.42;
}

.article-body {
  font-size: 1.05rem;
}

.article-body h2 {
  margin-top: 36px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.82;
}

.about-content p:first-child {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 650;
}

.article-cover {
  width: 100%;
  max-height: 520px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article-image-caption {
  max-width: 920px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

.article-media-meta {
  justify-content: center;
  margin: 0 auto 38px;
  color: var(--muted);
}

.article-media-meta > span {
  padding-right: 18px;
}

.article-media-meta > span:not(:last-child)::after {
  background: rgba(31, 61, 42, 0.22);
}

.article-media-meta strong {
  color: var(--gold-dark);
}

.article-media-meta .share-label {
  position: static;
  padding-right: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.article-media-meta > .share-label:not(:last-child)::after {
  display: none;
}

.article-media-meta .article-share {
  border-color: rgba(31, 61, 42, 0.16);
  background: #eef1e7;
  color: var(--forest);
}

.article-media-meta .article-share:hover,
.article-media-meta .article-share:focus-visible {
  background: rgba(197, 164, 91, 0.18);
  border-color: rgba(197, 164, 91, 0.42);
}

.article-error {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--muted);
}

.article-body ul {
  padding-left: 22px;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 48px 0 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-nav-card {
  display: grid;
  min-height: 132px;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.article-nav-card:hover,
.article-nav-card:focus-visible {
  border-color: rgba(197, 164, 91, 0.55);
  box-shadow: 0 18px 48px rgba(19, 31, 20, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.article-nav-card.next {
  text-align: right;
}

.article-nav-card span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-nav-card strong {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.25;
}

.article-nav-card small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.media-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.media-split img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  padding: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(620px, 1.38fr);
  gap: 24px;
  align-items: stretch;
  min-height: 640px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 24px;
  align-items: start;
}

.admin-body {
  background: #f5f7f1;
}

.admin-login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.admin-login-card {
  width: min(460px, 100%);
  box-shadow: var(--shadow);
}

.admin-login-card h1,
.admin-topbar h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.admin-dashboard {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: #101a12;
  color: white;
}

.admin-sidebar .brand small,
.admin-user-box span {
  color: rgba(255, 255, 255, 0.62);
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu button {
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.admin-menu button.active,
.admin-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-user-box {
  margin-top: auto;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.admin-main {
  padding: 34px;
}

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

.admin-table-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 16px 50px rgba(19, 31, 20, 0.08);
}

.admin-card,
.admin-list-item,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.admin-card,
.form-card {
  padding: 28px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  min-height: 44px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcf8;
  color: var(--ink);
  font: inherit;
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.editor-wrap {
  display: grid;
  gap: 10px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f7f1;
}

.editor-toolbar button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.rich-editor {
  min-height: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcf8;
  color: var(--ink);
  outline: none;
}

.rich-editor:focus {
  border-color: rgba(31, 61, 42, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 61, 42, 0.08);
}

.rich-editor img,
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.rich-editor table,
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.rich-editor td,
.rich-editor th,
.article-content td,
.article-content th {
  padding: 10px;
  border: 1px solid var(--line);
}

.cover-preview {
  width: min(360px, 100%);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button-secondary,
.button-danger {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 850;
  cursor: pointer;
}

.button-secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--forest);
}

.button-danger {
  border: 1px solid rgba(130, 40, 40, 0.24);
  background: #fff7f5;
  color: #8a2a22;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.admin-list-item h3 {
  margin-bottom: 4px;
}

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

.status-note {
  min-height: 24px;
  color: var(--moss);
  font-weight: 800;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pagination button {
  min-width: 40px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--forest);
  font-weight: 850;
  cursor: pointer;
}

.pagination button.active {
  background: var(--forest);
  color: white;
}

.pagination button:disabled {
  color: rgba(29, 45, 30, 0.38);
  cursor: not-allowed;
  opacity: 0.72;
}

.cms-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: min(860px, calc(100svh - 40px));
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.cms-dialog::backdrop {
  background: rgba(10, 16, 11, 0.56);
}

.small-dialog {
  width: min(520px, calc(100% - 32px));
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.is-hidden {
  display: none !important;
}

.contact-box {
  padding: 28px;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #1877f2;
  color: white;
  font-weight: 850;
}

.social-icon-link span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: #1877f2;
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.social-icon-link img {
  width: 15px;
  height: 15px;
}

.contact-map {
  width: 100%;
  height: 100%;
  min-height: 640px;
  overflow: hidden;
  background: #eef1e7;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 640px;
  border: 0;
}

.site-footer {
  background: #101a12;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 28px;
  display: grid;
  gap: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.1fr 1.35fr;
  align-items: start;
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  color: white;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 850;
  margin: 0 0 16px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.footer-logo img {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.22));
}

.footer-logo span {
  display: block;
  color: white;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
}

.footer-logo small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-contact p {
  margin: 0 0 12px;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: white;
}

.footer-map {
  height: 156px;
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #223525;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-open-link {
  display: inline-flex;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 800;
}

.map-open-link:hover {
  color: white;
}

.copyright {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 78px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .cta {
    color: white;
  }

  .stats,
  .grid.three,
  .grid.two,
  .timeline,
  .article-nav,
  .media-split,
  .contact-grid,
  .admin-shell,
  .admin-dashboard,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-main {
    padding: 20px 16px 40px;
  }

  .admin-topbar,
  .admin-list-item,
  .dialog-head {
    align-items: stretch;
    flex-direction: column;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 14px;
  }

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

  .article-nav-card.next {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 22px;
  }

  .footer-logo-column,
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-logo {
    align-items: center;
  }

  .footer-logo img {
    width: 64px;
  }

  .footer-logo span {
    display: block;
  }
}

@media (max-width: 560px) {
  .brand span {
    font-size: 0.92rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-inner {
    padding-bottom: 100px;
  }

  .post img {
    aspect-ratio: 16 / 7.5;
    max-height: 150px;
  }

  .news-compact .post img {
    height: 132px;
  }

  .section,
  .band .section,
  .page-hero .section {
    padding: 62px 0;
  }

  .timeline-item {
    min-height: auto;
  }

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

  .footer-inner {
    padding-top: 38px;
  }

  .footer-grid {
    gap: 24px 18px;
  }

  .site-footer h3 {
    margin-bottom: 12px;
  }

  .footer-logo img {
    width: 54px;
  }

  .footer-map {
    margin-top: 10px;
  }
}
