:root {
  --bg: #f4efe8;
  --surface: rgba(255, 251, 246, 0.92);
  --surface-border: rgba(125, 101, 82, 0.16);

  --text: #2c241e;
  --text-soft: #6f6055;
  --text-faint: #9c8c81;

  --accent: #a17a32;
  --accent-deep: #8b6928;
  --accent-pale: rgba(161, 122, 50, 0.10);
  --primary: #2f4a34;
  --primary-hover: #243a28;

  --shadow-sm: 0 12px 30px rgba(70, 49, 31, 0.08);

  --radius-md: 24px;
  --radius-lg: 34px;
  --radius-pill: 999px;

  --container: 1040px;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Wix Madefor Text", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(161, 122, 50, 0.05), transparent 20%),
    radial-gradient(circle at 100% 20%, rgba(47, 74, 52, 0.06), transparent 24%),
    linear-gradient(180deg, #f6f1e8 0%, #f4eee3 38%, #f1e9dc 100%);
  min-height: 100vh;
}

.news-detail-page,
.news-detail {
  background: transparent;
}

.news-detail {
  padding: clamp(28px, 4vw, 56px) 18px 88px;
}

.news-detail__container {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.news-backlink {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  background: rgba(255, 251, 246, 0.9);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform var(--transition),
    color var(--transition),
    background var(--transition);
}

.news-backlink:hover,
.news-backlink:focus-visible {
  transform: translateY(-2px);
  color: var(--accent-deep);
  background: rgba(159, 111, 73, 0.1);
}

.news-empty {
  padding: 52px 24px;
  border: 1px dashed rgba(125, 101, 82, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 247, 0.9);
  text-align: center;
}

.news-empty h1 {
  margin: 0 0 10px;
  font-family: "Philosopher", serif;
  font-size: clamp(34px, 6vw, 58px);
}

.news-empty p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-soft);
  line-height: 1.7;
}

.news-article {
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.42), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.96) 0%, rgba(247, 239, 230, 0.9) 100%);
  box-shadow: var(--shadow-sm);
  padding: 22px clamp(18px, 4vw, 28px);
}

.news-article__hero {
  margin-bottom: 24px;
}

.news-article__meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 247, 240, 0.96);
  border: 1px solid rgba(125, 101, 82, 0.12);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-badge--brand {
  background: var(--accent-pale);
  color: var(--accent-deep);
}

.news-article__title {
  margin: 0 0 12px;
  font-family: "Philosopher", serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.news-article__excerpt {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.news-article__gallery-wrap {
  margin-top: 18px;
}

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

.news-gallery-card {
  grid-column: span 4;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(180deg, #eedece 0%, #ddc6b0 100%);
  min-height: 220px;
}

.news-gallery-card--wide {
  grid-column: span 6;
}

.news-gallery-card--hero {
  grid-column: span 12;
  min-height: 360px;
}

.news-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-article__body {
  margin-top: 24px;
}

.news-article__content {
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

.news-article__content p {
  margin: 0 0 1.1em;
}

.news-article__content p + p {
  text-indent: 1.5em;
}

.news-article__content strong {
  font-weight: 600;
}

.news-article__content em {
  font-style: italic;
}

@media (max-width: 900px) {
  .news-gallery-card,
  .news-gallery-card--wide {
    grid-column: span 6;
  }

  .news-gallery-card--hero {
    grid-column: span 12;
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .news-detail {
    padding-inline: 14px;
  }

  .news-article {
    padding-inline: 18px;
    border-radius: 26px;
  }

  .news-article__title {
    font-size: clamp(28px, 8vw, 42px);
  }

  .news-article__excerpt {
    font-size: 16px;
  }

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

  .news-gallery-card,
  .news-gallery-card--wide,
  .news-gallery-card--hero {
    grid-column: auto;
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}