:root {
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --border-subtle: #dde2ee;
  --text: #1f2430;
  --text-muted: #606880;
  --accent: #2646af;
  --accent-soft: #e1e6ff;
  --accent-strong: #1c2f7c;
  --danger: #b3261e;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --space: 1.25rem;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(circle at top left, #eef2ff, #f5f7fb);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-main {
  flex: 1;
  padding-bottom: 3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(120deg, rgba(10, 20, 60, 0.88), rgba(10, 35, 90, 0.9));
  color: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.32);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 650;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}

.brand-subtitle {
  font-size: 0.72rem;
  opacity: 0.85;
}

.eu-flag {
  width: 32px;
  height: 22px;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 30%, #4f8bff, #173077);
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eu-circle {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.9);
}

.eu-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 5%, #ffd700 0, #ffd700 18%, transparent 24%),
    radial-gradient(circle at 85% 25%, #ffd700 0, #ffd700 16%, transparent 22%),
    radial-gradient(circle at 95% 55%, #ffd700 0, #ffd700 16%, transparent 22%),
    radial-gradient(circle at 15% 25%, #ffd700 0, #ffd700 16%, transparent 22%),
    radial-gradient(circle at 50% 95%, #ffd700 0, #ffd700 16%, transparent 22%),
    radial-gradient(circle at 5% 55%, #ffd700 0, #ffd700 16%, transparent 22%);
  opacity: 0.9;
  mix-blend-mode: screen;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.84rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.main-nav a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(15, 23, 42, 0.45);
}

.hero {
  padding: 2.8rem 0 1.8rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.hero-text {
  max-width: 640px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 2.35vw + 1.3rem, 2.4rem);
  line-height: 1.1;
  margin: 0 0 0.85rem;
}

.hero-lead {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 550;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2646af, #3b82f6);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  filter: brightness(1.03);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-strong);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-secondary:hover {
  background: #ffffff;
  text-decoration: none;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 460px;
}

.hero-card {
  background: radial-gradient(circle at top left, #ffffff, #e5edff);
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-card-title {
  font-size: 0.96rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.hero-steps {
  margin: 0 0 0.9rem 1.1rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-card-footnote {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.section-title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.features {
  padding: 0.75rem 0 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-header {
  padding: 2.2rem 0 1.2rem;
}

.page-header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.page-lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 700px;
}

.content-section {
  padding: 0.5rem 0 2.2rem;
}

.content-article {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.content-article h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.content-article h3 {
  font-size: 1rem;
  margin-top: 1.1rem;
}

.content-article p,
.content-article ul,
.content-article ol {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.content-article ul,
.content-article ol {
  padding-left: 1.2rem;
}

.format-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.format-table th,
.format-table td {
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.55rem;
}

.format-table th {
  background: #eef2ff;
  text-align: left;
}

.callout {
  padding: 1.5rem 0 2.3rem;
}

.callout-inner {
  background: radial-gradient(circle at top left, #e0ecff, #ffffff);
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 1.3rem;
}

.callout h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.callout-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.callout-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent-strong);
  margin: 0 0 0.3rem;
}

.callout-body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.related-pages {
  padding: 0.3rem 0 2.2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.related-card {
  display: block;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 0.95rem 1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.related-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.96rem;
}

.related-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  border-color: rgba(59, 130, 246, 0.7);
  text-decoration: none;
}

.ad-section {
  padding: 0.5rem 0;
}

.ad-section-top {
  padding-top: 1.1rem;
}

.ad-section-bottom {
  padding-bottom: 1.5rem;
}

.ad-horizontal {
  margin: 0 auto;
}

.ad-incontent {
  margin: 1rem auto;
}

.site-footer {
  background: #0b1220;
  color: rgba(226, 232, 240, 0.9);
  padding-top: 1.6rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  padding-bottom: 1.1rem;
}

.footer-title {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-text {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(148, 163, 184, 0.96);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.84rem;
}

.footer-links li + li {
  margin-top: 0.25rem;
}

.footer-links a {
  color: rgba(191, 219, 254, 0.95);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.6rem 0 0.9rem;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 880px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.3rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .callout-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-main {
    padding-bottom: 2.2rem;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom-inner {
    flex-direction: column;
  }
}
