:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #162033;
  --muted: #5a667d;
  --line: #d9e2ee;
  --primary: #8cc819;
  --primary-dark: #6ea50f;
  --primary-soft: #f2f9df;
  --badge: #edf7d7;
  --shadow: 0 12px 34px rgba(22, 32, 51, 0.08);
  --shadow-strong: 0 22px 60px rgba(16, 22, 34, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.header-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand-block {
  display: flex;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-texts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.2;
}

.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  transition: 0.18s ease;
}

.header-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.hero {
  padding: 42px 0 22px;
}

.hero-media {
  position: relative;
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  margin-top: 24px;
  box-shadow: var(--shadow-strong);
  display: flex;
  align-items: center;
  background: #071018;
}

.hero-media-bg {
  position: absolute;
  inset: 0;
}

.hero-media-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  filter: saturate(0.92) brightness(0.62);
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 34%, rgba(140, 200, 25, 0.12), transparent 24%),
    linear-gradient(90deg, rgba(4, 10, 18, 0.90) 0%, rgba(4, 10, 18, 0.72) 34%, rgba(4, 10, 18, 0.42) 68%, rgba(4, 10, 18, 0.28) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(700px, 100%);
  padding: 56px 44px 64px;
  color: #fff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-eyebrow {
  background: rgba(140, 200, 25, 0.16);
  color: #f6ffe1;
  border: 1px solid rgba(140, 200, 25, 0.36);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.35rem, 4vw, 3.75rem);
  line-height: 1.04;
  max-width: 12ch;
  color: #fff;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero p,
.hero-lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 62ch;
  line-height: 1.75;
  font-size: 1.04rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.20);
}

.quota-box {
  margin-top: 18px;
  display: inline-block;
  padding: 12px 16px;
  background: var(--primary-soft);
  border: 1px solid #d8ebb1;
  border-radius: 999px;
  color: var(--text);
}

.hero-quota {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.quota-box.small {
  margin-top: 0;
}

.search-card,
.result-card,
.info-card,
.detail-card,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-card {
  padding: 22px;
}

.search-card.compact {
  margin-top: 28px;
}

.search-card-floating {
  margin-top: -54px;
  position: relative;
  z-index: 5;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.field label {
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field select,
.field button {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font-size: 1rem;
  background: #fff;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(140, 200, 25, 0.12);
}

.field button,
.button-link {
  background: var(--primary);
  color: #101010;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  transition: 0.18s ease;
}

.field button:hover,
.button-link:hover {
  background: var(--primary-dark);
  color: #fff;
}

.field-actions {
  justify-content: flex-end;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0 40px;
}

.info-card {
  padding: 22px;
}

.info-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.results-header {
  margin: 28px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.results-header h1 {
  margin: 6px 0 10px;
}

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

.results-list {
  display: grid;
  gap: 16px;
}

.result-card {
  padding: 20px;
}

.result-card h2 {
  margin: 10px 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

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

.result-card h2 a:hover {
  color: var(--primary-dark);
}

.result-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.badge {
  background: var(--badge);
  color: var(--primary-dark);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.summary {
  color: var(--muted);
  line-height: 1.7;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 26px 0 40px;
  flex-wrap: wrap;
}

.pagination a {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 800;
}

.detail-card,
.empty-state {
  padding: 28px;
  margin: 28px 0 40px;
}

.detail-card h1,
.empty-state h1 {
  margin-top: 8px;
  line-height: 1.25;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.65;
}

.detail-section {
  margin-top: 24px;
}

.detail-section h2 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.detail-section p {
  line-height: 1.8;
  color: var(--muted);
}

.detail-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-link {
  padding: 12px 18px;
  border-radius: 12px;
}

.button-link.secondary {
  background: #e9eef5;
  color: var(--text);
}

.button-link.secondary:hover {
  background: #dce5ef;
  color: var(--text);
}

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

.page-banner {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  margin-top: 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(11, 17, 28, 0.96) 0%, rgba(18, 34, 32, 0.92) 48%, rgba(87, 126, 16, 0.88) 100%);
  box-shadow: var(--shadow-strong);
}

.page-banner-compact {
  min-height: 180px;
}

.page-banner-alis::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(140, 200, 25, 0.22), transparent 28%),
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(120deg, transparent 0%, rgba(140, 200, 25, 0.10) 50%, transparent 100%);
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.14) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
  padding: 34px 36px;
  color: #fff;
}

.page-banner-content h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.1;
  color: #fff;
}

.page-banner-content p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.page-banner-eyebrow {
  background: rgba(140, 200, 25, 0.16);
  color: #f6ffe1;
  border: 1px solid rgba(140, 200, 25, 0.36);
}

.detail-card-floating {
  margin-top: -42px;
  position: relative;
  z-index: 5;
}

@media (max-width: 920px) {
  .search-form,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .results-header,
  .header-wrap,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-link {
    align-items: flex-start;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .hero-media {
    min-height: 440px;
  }

  .hero-content {
    width: 100%;
    padding: 34px 22px 40px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.7rem);
    max-width: none;
  }

  .search-card-floating {
    margin-top: 20px;
  }

  .page-banner {
    min-height: 190px;
  }

  .page-banner-compact {
    min-height: 160px;
  }

  .page-banner-content {
    padding: 26px 22px;
  }

  .page-banner-content h1 {
    font-size: 1.6rem;
  }

  .detail-card-floating {
    margin-top: 18px;
  }
}