:root {
  --gms-shell-copy-max: 42rem;
  --gms-hero-surface: linear-gradient(180deg, rgba(47, 22, 19, 0.94) 0%, rgba(18, 9, 8, 0.96) 100%);
}

body.has-open-nav {
  overflow: hidden;
}

.gms-site-header {
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gms-site-header.is-scrolled {
  background: rgba(20, 9, 9, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.gms-nav-list a,
.gms-footer-links a,
.gms-footer-contact a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.gms-footer-links a:hover,
.gms-footer-contact a:hover,
.gms-footer-links a:focus-visible,
.gms-footer-contact a:focus-visible {
  color: #fff;
}

body:not(.home) .gms-page-shell {
  padding-top: clamp(18px, 2vw, 28px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.gms-page-stack {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}

.gms-page-stack + .gms-page-stack {
  margin-top: clamp(18px, 2vw, 24px);
}

.gms-page-content--elementor {
  display: grid;
}

.gms-page-content--elementor > .elementor {
  display: grid;
  gap: 0;
}

.gms-page-content--elementor .elementor-section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.gms-page-shell--has-intro .gms-page-content--elementor {
  margin-top: clamp(20px, 3vw, 32px);
}

.gms-page-hero--context {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 400px);
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
  min-height: clamp(340px, 42vw, 460px);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
  background: var(--gms-hero-surface);
  box-shadow: var(--gms-shadow);
}

.gms-page-hero--context::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(239, 32, 20, 0.26), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 74px 74px, 74px 74px;
  opacity: 0.88;
  pointer-events: none;
}

.gms-page-hero--context > * {
  position: relative;
  z-index: 1;
}

.gms-page-hero--context .gms-page-hero__copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.gms-page-hero--context .gms-page-hero__copy h1 {
  margin: 0;
  max-width: 12ch;
}

.gms-page-hero--context .gms-page-hero__copy p {
  margin: 0;
  max-width: var(--gms-shell-copy-max);
  font-size: 1rem;
  line-height: 1.75;
}

.gms-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gms-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.gms-page-hero__extra {
  display: grid;
  gap: 14px;
}

.gms-page-hero__art--context {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.gms-page-hero__art--context img {
  width: min(100%, 400px);
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.28));
}

.gms-page-hero--not-found .gms-page-hero__art--context img {
  width: min(100%, 240px);
}

.gms-notice {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gms-text);
}

.gms-notice--success {
  border-color: rgba(82, 214, 147, 0.3);
  background: rgba(82, 214, 147, 0.1);
}

.gms-notice--error {
  border-color: rgba(239, 32, 20, 0.26);
  background: rgba(239, 32, 20, 0.1);
}

.gms-shell-panel,
.gms-empty-state,
.gms-not-found-link {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(46, 24, 22, 0.88) 0%, rgba(18, 10, 9, 0.96) 100%);
  box-shadow: var(--gms-shadow);
}

.gms-shell-panel,
.gms-empty-state {
  padding: clamp(22px, 3vw, 34px);
}

.gms-rich-text {
  color: var(--gms-text-muted);
}

.gms-rich-text > *:first-child {
  margin-top: 0;
}

.gms-rich-text > *:last-child {
  margin-bottom: 0;
}

.gms-rich-text p,
.gms-rich-text li {
  color: var(--gms-text-muted);
  line-height: 1.8;
}

.gms-rich-text > p:first-of-type {
  color: var(--gms-text);
  font-size: 1.05rem;
}

.gms-rich-text h2,
.gms-rich-text h3,
.gms-rich-text h4 {
  margin-top: 2.25rem;
  margin-bottom: 0.9rem;
}

.gms-rich-text ul,
.gms-rich-text ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.gms-rich-text blockquote {
  margin: 2rem 0;
  padding: 1.15rem 1.3rem;
  border-left: 3px solid var(--gms-accent);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gms-text);
}

.gms-rich-text img {
  border-radius: 18px;
}

.gms-card-grid--archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.navigation.pagination {
  display: flex;
  justify-content: center;
  margin-top: clamp(8px, 2vw, 16px);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus-visible {
  background: rgba(239, 32, 20, 0.12);
  border-color: rgba(239, 32, 20, 0.28);
  color: #fff;
}

.gms-empty-state {
  display: grid;
  gap: 16px;
}

.gms-empty-state h2,
.gms-empty-state p {
  margin: 0;
}

.gms-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gms-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(100%, 560px);
}

.gms-search-form__input {
  flex: 1 1 260px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--gms-text);
}

.gms-search-form__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.gms-search-form__input:focus {
  outline: none;
  border-color: rgba(239, 32, 20, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 32, 20, 0.2);
}

.gms-not-found-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gms-not-found-link {
  display: grid;
  gap: 10px;
  padding: 18px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.gms-not-found-link:hover,
.gms-not-found-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(239, 32, 20, 0.28);
  background: linear-gradient(180deg, rgba(56, 27, 24, 0.94) 0%, rgba(20, 10, 9, 0.98) 100%);
}

.gms-not-found-link strong {
  color: #fff;
  font-size: 1rem;
}

.gms-not-found-link span {
  color: var(--gms-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.gms-article--single {
  overflow: hidden;
}

.gms-article--single .gms-article-featured {
  margin-top: 0;
  margin-bottom: 28px;
}

.gms-article--single .gms-article-featured img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gms-related-posts {
  display: grid;
  gap: 22px;
}

.gms-related-posts__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.gms-related-posts__header h2 {
  margin: 10px 0 0;
}

.gms-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1180px) {
  .gms-card-grid--archive,
  .gms-related-posts__grid,
  .gms-not-found-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .gms-page-hero--context {
    grid-template-columns: 1fr;
  }

  .gms-page-hero__art--context {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .gms-page-shell {
    padding-bottom: 72px;
  }

  .gms-page-hero--context {
    padding: 20px;
    border-radius: 22px;
    min-height: 0;
  }

  .gms-page-hero--context .gms-page-hero__copy h1 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .gms-chip-list span {
    min-height: 34px;
    padding: 0 12px;
  }

  .gms-card-grid--archive,
  .gms-related-posts__grid,
  .gms-not-found-links {
    grid-template-columns: 1fr;
  }

  .gms-search-form,
  .gms-empty-state__actions,
  .gms-related-posts__header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .gms-search-form button,
  .gms-empty-state__actions .gms-button,
  .gms-empty-state__actions .gms-button-outline,
  .gms-related-posts__header .gms-button-outline {
    width: 100%;
  }
}