:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #151515;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #1455d9;
  --accent-dark: #0f3fa3;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home,
.page {
  padding: 56px 0;
}

.hero,
.page-title {
  margin-bottom: 36px;
}

.hero h1,
.page-title h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero p,
.page-title p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.banner-card {
  min-height: 260px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.banner-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.banner-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.banner-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.banner-arrow {
  margin-top: 28px;
  font-size: 34px;
  color: var(--accent);
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--accent);
  font-weight: 700;
}

.search-box {
  margin-bottom: 24px;
}

.search-box input {
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 17px;
  outline: none;
  background: #ffffff;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(20, 85, 217, 0.1);
}

.status {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
}

.pdf-list {
  display: grid;
  gap: 14px;
}

.pdf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.pdf-name {
  font-weight: 700;
  word-break: break-word;
}

.pdf-download {
  flex-shrink: 0;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  transition: background 0.2s ease;
}

.pdf-download:hover {
  background: var(--accent-dark);
}

.site-footer {
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}

.banner-somogyi {
  background:
    linear-gradient(135deg, rgba(20, 85, 217, 0.95), rgba(6, 32, 92, 0.95)),
    #1455d9;
  color: #ffffff;
}

.banner-somogyi .banner-label {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.banner-somogyi p {
  color: rgba(255, 255, 255, 0.82);
}

.banner-somogyi .banner-arrow {
  color: #ffffff;
}

.banner-somogyi {
  background:
    linear-gradient(135deg, rgba(20, 85, 217, 0.95), rgba(6, 32, 92, 0.95)),
    #1455d9;
  color: #ffffff;
}

.banner-somogyi .banner-label {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.banner-somogyi p {
  color: rgba(255, 255, 255, 0.82);
}

.banner-somogyi .banner-arrow {
  color: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
}

.legal-page {
  max-width: 900px;
}

.legal-content {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 22px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.7;
}

.legal-content a {
  color: var(--accent);
  font-weight: 700;
}

.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
}

.cookie-consent-box {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cookie-consent-text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.cookie-consent-text p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-consent-text a {
  color: var(--accent);
  font-weight: 700;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  border: 0;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-btn.primary {
  background: var(--accent);
  color: #ffffff;
}

.cookie-btn.secondary {
  background: #eef3ff;
  color: var(--accent);
}

.cookie-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.cookie-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.cookie-option input {
  margin-top: 4px;
}

.cookie-option.disabled {
  opacity: 0.75;
}

@media (max-width: 760px) {
  .cookie-consent-box {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .legal-content {
    padding: 22px;
  }
}

@media (max-width: 900px) {
  .banner-grid {
    grid-template-columns: 1fr;
  }

  .banner-card {
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .header-inner {
    min-height: 66px;
  }

  .logo {
    font-size: 19px;
  }

  .home,
  .page {
    padding: 36px 0;
  }

  .pdf-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdf-download {
    width: 100%;
    text-align: center;
  }
}