:root {
  --paper: #f2efe8;
  --paper-soft: #f8f6f1;
  --ink: #161514;
  --ink-muted: #585451;
  --ink-soft: #8a847f;
  --line: #d9d1c7;
  --line-strong: #beb4a8;
  --accent: #b2421e;
  --accent-soft: #f3dfd8;
  --accent-deep: #862f13;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 8px 32px rgba(14, 11, 7, 0.08);
  --shadow-card: 0 2px 0 rgba(22, 21, 20, 0.12), 0 12px 36px rgba(22, 21, 20, 0.06);
  --ff-display: "Literata", "Times New Roman", serif;
  --ff-body: "Space Grotesk", "Segoe UI", sans-serif;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--ff-body);
  background:
    radial-gradient(1400px 600px at 120% -20%, rgba(178, 66, 30, 0.12), transparent 60%),
    radial-gradient(1000px 500px at -20% 10%, rgba(22, 21, 20, 0.06), transparent 60%),
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

.geo-blocker {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 17, 15, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.32s ease;
}

.geo-blocker.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.geo-blocker__inner {
  width: min(92vw, 520px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 239, 0.95));
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 42px 38px;
}

.geo-blocker__icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.geo-blocker__inner h2 {
  font-family: var(--ff-display);
  font-size: 2rem;
  line-height: 1.08;
  margin-bottom: 10px;
}

.geo-blocker__inner p {
  font-size: 0.97rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.geo-blocker__btn {
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  box-shadow: 0 10px 20px rgba(178, 66, 30, 0.3);
}

.geo-blocker__btn:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 242, 234, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header__inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.header__tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 44px 58px;
  flex: 1;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-label::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.news-featured-link,
.news-card-link {
  display: block;
  color: inherit;
}

.news-featured {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 44%);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #fbf8f3, #f2ece3 62%);
  box-shadow: var(--shadow-card);
  margin-bottom: 36px;
}

.news-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(178, 66, 30, 0.08), transparent 38%);
}

.news-featured__content {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-featured__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.news-featured__date {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.news-featured__badge {
  padding: 4px 10px;
  border: 1px solid #d9b8ad;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-featured__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.news-featured__summary {
  max-width: 58ch;
  color: var(--ink-muted);
  line-height: 1.75;
  font-size: 0.98rem;
}

.news-featured__readmore {
  margin-top: 22px;
  width: fit-content;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(134, 47, 19, 0.35);
  padding-bottom: 4px;
}

.news-featured__image-wrap {
  background: #dfd7cb;
  min-height: 300px;
  overflow: hidden;
}

.news-featured__image-wrap--placeholder,
.news-card__image-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-featured__image,
.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.news-featured:hover .news-featured__image,
.news-card:hover .news-card__image {
  transform: scale(1.06);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.news-card {
  background: #fcfaf6;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: #bfa58e;
  box-shadow: 0 10px 34px rgba(22, 21, 20, 0.12);
}

.news-card__image-wrap {
  height: 184px;
  overflow: hidden;
  background: #e7dfd3;
}

.news-card__body {
  padding: 18px 18px 20px;
}

.news-card__date {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72rem;
  margin-bottom: 9px;
}

.news-card__title {
  font-family: var(--ff-display);
  font-size: 1.42rem;
  line-height: 1.23;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
}

.news-card__summary {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--ink-muted);
}

.news-placeholder,
.news-placeholder-sm {
  color: #a99d8e;
}

.empty-state {
  text-align: center;
  padding: 86px 24px;
  color: var(--ink-muted);
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #f4f1ea;
}

.footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer__brand {
  font-family: var(--ff-display);
  font-size: 1.16rem;
}

.footer__copy {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.visitors-main {
  padding-top: 26px;
}

.visitors-stats {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
}

.stat-card {
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 16px 20px;
}

.stat-card__num {
  font-family: var(--ff-display);
  font-size: 2rem;
  line-height: 1;
}

.stat-card__label {
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  background: #fbf8f2;
  box-shadow: var(--shadow-soft);
}

.visitors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  white-space: nowrap;
}

.visitors-table thead tr {
  background: #eee8de;
}

.visitors-table th {
  text-align: left;
  color: var(--ink-muted);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.visitors-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #ece4d8;
  color: #403d39;
}

.visitors-table tbody tr:hover {
  background: #f4ede3;
}

.visitors-table tbody tr:last-child td {
  border-bottom: none;
}

.td-num,
.td-date {
  color: var(--ink-soft);
}

.td-mono {
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.76rem;
}

.td-address {
  max-width: 280px;
}

.text-truncate {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.map-link:hover {
  transform: translateY(-1px);
}

.map-link--yandex {
  background: #f7e2dc;
  border-color: #e9bdb2;
  color: #8b3217;
}

.map-link--osm {
  background: #ece8e0;
  border-color: #d4cabd;
  color: #5e5750;
}

.flag {
  display: inline-block;
  font-size: 0.67rem;
  color: #685f56;
  background: #e8dfd2;
  border: 1px solid #d9cebf;
  border-radius: 4px;
  padding: 2px 4px;
  margin-right: 4px;
}

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-modal.hidden {
  display: none;
}

.map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.map-modal__inner {
  position: relative;
  z-index: 1;
  width: min(92vw, 860px);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.map-modal__header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ececec;
}

.map-modal__close {
  border: none;
  background: #f2f2f2;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  cursor: pointer;
}

.breadcrumb {
  margin-bottom: 26px;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-deep);
  font-weight: 700;
}

.article {
  max-width: 860px;
  margin: 0 auto;
}

.article__header {
  margin-bottom: 28px;
}

.article__date {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.article__title {
  margin-top: 10px;
  margin-bottom: 16px;
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.article__lead {
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  color: var(--ink-muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.article__cover {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
}

.article__cover-img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.article__body {
  color: #2f2c2a;
  font-size: 1.04rem;
  line-height: 1.9;
}

.article__body p {
  margin-bottom: 1.2em;
}

.related {
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.news-grid--small {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.leaflet-popup-content-wrapper {
  border-radius: 10px;
}

.leaflet-popup-content {
  margin: 12px 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-featured,
.article,
.table-wrap {
  animation: fadeUp 0.55s ease both;
}

.news-card {
  animation: fadeUp 0.5s ease both;
}

.news-card:nth-child(2n) {
  animation-delay: 0.04s;
}

.news-card:nth-child(3n) {
  animation-delay: 0.08s;
}

@media (max-width: 1100px) {
  .header__inner,
  .main,
  .footer__inner {
    padding-left: 28px;
    padding-right: 28px;
  }

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

  .news-featured__image-wrap {
    order: -1;
    min-height: 240px;
  }
}

@media (max-width: 760px) {
  .header__inner {
    gap: 14px;
    min-height: 66px;
  }

  .header__logo {
    font-size: 1.88rem;
  }

  .header__tagline {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .main {
    padding-top: 28px;
  }

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

  .article__body {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .header__inner,
  .main,
  .footer__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header__tagline {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .geo-blocker__inner {
    padding: 28px 22px;
  }

  .news-featured__content {
    padding: 22px 20px;
  }

  .news-card__title {
    font-size: 1.22rem;
  }
}
