@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-1: #f4f7ff;
  --bg-2: #fef9ef;
  --ink: #12213f;
  --muted: #4f5d7c;
  --brand: #1f4ed8;
  --brand-strong: #173fb5;
  --accent: #f3b63f;
  --ok: #1f8f5f;
  --warn: #b65228;
  --card: #ffffff;
  --line: #dfe5f2;
  --shadow: 0 14px 35px rgba(27, 61, 145, 0.13);
  --shadow-card: 0 2px 12px rgba(27, 61, 145, 0.09);
  --radius-card: 16px;
  --eu-blue: #003399;
  --eu-gold: #FFCC00;
  --page-width: 960px;
}

* {
  box-sizing: border-box;
}

.hidden{
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(31, 78, 216, 0.07), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(243, 182, 63, 0.12), transparent 28%),
    linear-gradient(155deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .site-header           { flex-shrink: 0; }
body > .hero                  { flex-shrink: 0; }
body > main,
body > .container             { flex: 1 0 auto; }
body > .pre-footer-disclaimer { flex-shrink: 0; }
body > .site-footer           { flex-shrink: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(27, 61, 145, 0.06);
}

.site-header-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
}

.brand-eu-emblem {
  display: block;
  width: 32px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
}

.brand-eu-emblem svg {
  display: block;
  width: 100%;
  height: 100%;
}

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

.brand-text .brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.brand-text .brand-zone {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--eu-blue);
  letter-spacing: 0.03em;
  opacity: 0.8;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: rgba(31, 78, 216, 0.08);
  color: var(--brand);
}

.hero {
  padding: 3rem 1.5rem 2rem;
}

.hero-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.3rem 0.65rem;
  background: rgba(31, 78, 216, 0.1);
  border: 1px solid rgba(31, 78, 216, 0.24);
  border-radius: 999px;
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.85rem;
}

h1 {
  margin: 1rem 0 0.35rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.subtitle {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.07rem;
}

.lang-switch {
  margin-top: 1.1rem;
  display: inline-flex;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--brand-strong);
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--brand);
  color: #fff;
}

.container {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.calculator h2,
.card h2 {
  margin: 0 0 0.4rem;
}

.field-group {
  display: grid;
  gap: 0.35rem;
  margin: 0.9rem 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

label {
  font-weight: 700;
}

input[type="date"],
input[type="number"],
select {
  border: 1px solid #bfc9e1;
  border-radius: 10px;
  padding: 0.68rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

small {
  color: var(--muted);
}

.trips-head {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
}

.trips-head h3 {
  margin: 0;
}

.trip-wrap.collapsed {
  display: none;
}

.trips-container {
  display: grid;
  gap: 0.7rem;
}

.trip-group-box {
  background: #f5f8ff;
  border: 1px solid #dbe5f5;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}

.trip-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.65rem;
  align-items: end;
  background: #ffffff;
  border: 1px solid #dbe4f5;
  border-radius: 10px;
  padding: 0.75rem;
  box-shadow: 0 1px 4px rgba(27, 61, 145, 0.06);
}

.trip-row .field-group {
  margin: 0;
}

.trip-row .field-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.trip-row input[type="date"] {
  padding: 0.55rem 0.65rem;
  font-size: 0.9rem;
  width: 100%;
}

.btn-remove-trip {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: rgba(220, 53, 69, 0.08);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
  color: #dc3545;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.btn-remove-trip:hover {
  background: rgba(220, 53, 69, 0.18);
  transform: scale(1.1);
}

.btn-remove-trip:focus-visible {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}

.btn {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 0.62rem 0.85rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.add-trip-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
}

.btn-icon {
  display: block;
  width: 2.1rem;
  height: 2.1rem;
}

.add-trip-button:hover {
  transform: translateY(-1px);
}

.add-trip-button:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 3px;
  border-radius: 8px;
}

.btn:hover {
  background: var(--brand-strong);
}

.btn-outline {
  background: transparent;
  color: var(--brand-strong);
}

.actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.result,
.notice {
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #cfd8ec;
  display: none;
}

.timeline-visual {
  margin-top: 0.8rem;
  display: none;
  border: 1px solid #d6dfef;
  border-radius: 10px;
  padding: 0.75rem;
  background: #f9fbff;
}

.timeline-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-strong);
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  margin-bottom: 0.65rem;
  transition: background 0.15s;
}

.timeline-toggle-btn:hover {
  background: rgba(31, 78, 216, 0.07);
}

.timeline-toggle-btn .toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.8rem;
}

.timeline-collapsed .timeline-grid,
.timeline-collapsed .timeline-weekdays {
  display: none;
}

.timeline-collapsed .timeline-toggle-btn .toggle-icon {
  transform: rotate(-90deg);
}

.future-status {
  margin-top: 0.8rem;
  display: none;
  border: 1px solid #d6dfef;
  border-radius: 10px;
  padding: 0.75rem;
  background: #ffffff;
}

.future-status h4 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}

.future-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.timeline-weekdays {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 0.25rem 0 0.55rem;
  font-size: 0.73rem;
  color: var(--muted);
}

.timeline-weekdays span {
  width: calc((100% - 24px) / 7);
  text-align: center;
  font-weight: 700;
}

.timeline-day {
  min-height: 34px;
  border-radius: 6px;
  background: #e5ebf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #2f3d63;
  border: 1px solid #d8e1f3;
}

.timeline-day span {
  opacity: 0.95;
}

.timeline-day.outside {
  background: #f3f5fb;
  border-color: #e4e9f5;
  color: #9aa6c4;
}

.timeline-day.month-start {
  position: relative;
  border-left: 2px solid #7f95c9;
}

.timeline-day.month-start::before {
  content: attr(data-month);
  position: absolute;
  top: -1.1rem;
  left: -2px;
  font-size: 0.62rem;
  line-height: 1;
  color: #56678f;
  background: #f9fbff;
  padding: 0 2px;
}

.timeline-day.used {
  background: #f39c8f;
}

.timeline-day.planned {
  background: #7ab1ff;
}

.timeline-day.entry {
  background: #f3b63f;
}

.timeline-day.future {
  background: #86d7a4;
}

.result {
  background: #eef3ff;
}

.result.error,
.notice.error {
  background: #fff3ed;
  border-color: #f2c2ad;
  color: var(--warn);
}

.notice {
  background: #eefaf3;
  border-color: #bde4cd;
  color: var(--ok);
}

.plain-list {
  /* margin: 0;
  padding-left: 1.2rem; */
  color: var(--muted);
}

.plain-list li + li {
  /* margin-top: 0.4rem; */
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.faq-item.open {
  box-shadow: 0 4px 18px rgba(27, 61, 145, 0.1);
  border-color: rgba(31, 78, 216, 0.3);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  gap: 0.75rem;
  transition: background 0.15s;
}

.faq-question:hover {
  background: rgba(31, 78, 216, 0.04);
}

.faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(31, 78, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.2s ease;
  color: var(--brand);
  font-size: 0.75rem;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--brand);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.1rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.1rem 0.9rem;
}

.faq-answer p, .faq-answer a {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.faq-answer a {
  color: var(--brand);
  font-weight: 600;
}

/* Legacy details fallback */
details + details {
  margin-top: 0.5rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

/* FAQ card — fixed height to prevent layout shift when accordion opens */
.faq.card {
  min-height: 260px;
}

/* How it works — half width layout on main page */
.two-col-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.how-it-works-card {
  background: linear-gradient(135deg, var(--eu-blue) 0%, #1a3fa0 100%);
  color: #fff;
  border: none;
}

.how-it-works-card h2 {
  color: var(--eu-gold);
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.how-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.how-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--eu-gold);
  color: var(--eu-blue);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}

.how-step-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
}

/* Article Carousel */
.carousel-section {
  overflow: hidden;
}

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

.carousel-track-wrapper {
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(50% - 0.5rem);
  min-width: 0;
}

.article-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  cursor: pointer;
  text-decoration: none;
  display: block;
  background: var(--eu-blue);
}

.carousel-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  border-radius: 14px;
  background: #f5f8ff;
  border: 1px solid var(--line);
}

.article-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.article-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 60, 0.88) 0%, rgba(10, 20, 60, 0.1) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card:hover .article-card-overlay {
  opacity: 1;
}

.article-card:hover .article-card-img {
  transform: scale(1.04);
}

.article-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.article-card:hover .article-card-title {
  opacity: 1;
  transform: translateY(0);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--brand-strong);
  font-size: 1rem;
  transition: background 0.15s, border-color 0.15s;
}

.carousel-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--brand);
  transform: scale(1.3);
}

/* Pre-footer disclaimer band — full width, above footer */
.pre-footer-disclaimer {
  background: #fff8e6;
  border-top: 2px solid #f3b63f;
  border-bottom: 2px solid #f3b63f;
  padding: 0.85rem 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.pre-footer-disclaimer p {
  margin: 0;
  font-size: 0.82rem;
  color: #5a3c00;
  line-height: 1.55;
  max-width: var(--page-width);
  margin: 0 auto;
}

.pre-footer-disclaimer strong {
  color: #3d2800;
}

/* Improved footer */
.site-footer {
  background: linear-gradient(135deg, var(--eu-blue) 0%, #0d2d8a 100%);
  color: rgba(255,255,255,0.7);
  margin: 0;
  padding: 0;
}

.site-footer-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.5rem;
}

.site-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-eu-emblem {
  display: block;
  width: 36px;
  height: 24px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.footer-eu-emblem svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-brand-text {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
}

.footer-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  margin: 0.15rem 0 0;
  line-height: 1;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.15s;
}

.site-footer a:hover {
  color: var(--eu-gold);
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 0 0 0.9rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-copyright {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  margin: 0;
  text-align: center;
}

.disclaimer {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* site-footer now handled by the new rules above */

.page {
  max-width: var(--page-width);
  width: 100%;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem 2rem;
}

.page .card h1 {
  margin-top: 0;
}

.page article.card {
  overflow: hidden;
}

.hero-image,
.inline-banner {
  margin: 0.8rem 0 1rem;
}

.hero-image img,
.inline-banner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

.article-meta {
  margin: 0.3rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-lead {
  margin: 0 0 1.2rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #1e3060;
  font-weight: 600;
}

.article-section {
  margin-top: 1.4rem;
}

.article-section h2,
.article-callout h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
}

.article-section p,
.article-callout p {
  margin: 0.65rem 0 0;
  line-height: 1.75;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.article-panel,
.article-callout {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid #d6dff1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.95));
}

.article-callout {
  margin-top: 1.4rem;
  box-shadow: 0 18px 40px rgba(27, 61, 145, 0.08);
}

.article-link-callout a,
.article-cta a {
  font-weight: 700;
}

.article-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.article-list li + li {
  margin-top: 0.55rem;
}

.ees-highlight {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.8rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(120deg, #b27df6 0%, #8c58e0 45%, #5a35c9 100%);
  color: #f7f3ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(71, 33, 153, 0.35);
  overflow: hidden;
}

.etias-highlight {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.8rem 1.5rem;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(11, 57, 162, 0.98) 35.31%, rgba(255, 255, 255, 0.4) 95.82%),
    linear-gradient(130deg, #082b7a 0%, #0b39a2 38%, #0e47cb 100%);
  color: #f3f6fc;
  border: 1px solid rgba(231, 237, 250, 0.26);
  box-shadow: 0 30px 70px rgba(8, 43, 122, 0.3);
  overflow: hidden;
}

.ees-highlight::before,
.ees-highlight::after,
.etias-highlight::before,
.etias-highlight::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ees-highlight::before,
.etias-highlight::before {
  top: -45%;
  left: -15%;
  width: 65%;
  height: 120%;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 65%);
}

.etias-highlight::before {
  background: radial-gradient(circle at top left, rgba(243, 246, 252, 0.28) 0%, rgba(243, 246, 252, 0) 65%);
}

.ees-highlight::after,
.etias-highlight::after {
  inset: -40% -25%;
  background-image:
    repeating-linear-gradient(65deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18) 1.2px, transparent 1.2px, transparent 22px),
    repeating-linear-gradient(-65deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px, transparent 26px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.etias-highlight::after {
  background-image:
    repeating-linear-gradient(65deg, rgba(231, 237, 250, 0.12), rgba(231, 237, 250, 0.12) 1.2px, transparent 1.2px, transparent 24px),
    repeating-linear-gradient(-65deg, rgba(159, 181, 234, 0.12), rgba(159, 181, 234, 0.12) 1.2px, transparent 1.2px, transparent 30px);
  opacity: 0.22;
}

.ees-highlight > *,
.etias-highlight > * {
  position: relative;
  z-index: 1;
}

.section-title {
  margin: 0 0 1rem;
  padding-left: 1rem;
  color: #fff;
  position: relative;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0;
  width: 4px;
  height: calc(100% - 0.4rem);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd76b 0%, #ffe06f 60%, #ffeaa5 100%);
}

.ees-highlight .section-title,
.etias-highlight .section-title {
  /* padding-top: 0.35rem;
  padding-right: 11rem; */
  /* min-height: 4.2rem; */
  /* margin-bottom: 1.25rem; */
  padding: 2rem 1rem;
}

.etias-highlight .section-title::before {
  background: linear-gradient(180deg, #e7edfa 0%, #9fb5ea 60%, #ffffff 100%);
}

.key-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.key-list li {
  margin-top: 0.8rem;
  padding: 0.95rem 1rem;
  border-left: 4px solid rgba(255, 235, 173, 0.8);
  border-radius: 14px;
  background: rgba(18, 12, 60, 0.35);
  color: inherit;
  box-shadow: 0 14px 40px rgba(16, 11, 58, 0.32);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.key-list li strong {
  color: #fff;
}

.key-list li:hover {
  background: rgba(22, 16, 70, 0.55);
  border-left-color: var(--accent);
  transform: translateX(12px);
}

.info-box {
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(12, 9, 46, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 55px rgba(8, 6, 38, 0.45);
  backdrop-filter: blur(10px);
  color: #f7f3ff;
}

.etias-highlight .info-box {
  background: rgba(8, 43, 122, 0.68);
  border-color: rgba(231, 237, 250, 0.2);
  box-shadow: 0 24px 55px rgba(8, 43, 122, 0.34);
  color: #f3f6fc;
}

.info-box::before {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -30px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.info-box strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  color: #ffe27a;
}

.etias-highlight .info-box strong {
  color: #e7edfa;
}

.etias-highlight .key-list li {
  background: rgba(8, 43, 122, 0.42);
  border-left-color: rgba(231, 237, 250, 0.78);
  box-shadow: 0 14px 40px rgba(8, 43, 122, 0.26);
}

.etias-highlight .key-list li strong {
  color: #ffffff;
}

.etias-highlight .key-list li:hover {
  background: rgba(10, 50, 142, 0.62);
  border-left-color: #e7edfa;
}

.info-box ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.info-box li + li {
  margin-top: 0.45rem;
}

.ees-badge,
.etias-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 1.25rem 1.55rem;
  box-shadow: 4px 10px 5px rgba(9, 5, 45, 0.6);
  /* transform: skewY(-6deg); */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.ees-badge {
  background: linear-gradient(150deg, #2d1b7e 0%, #12104b 100%);
}

.etias-badge {
  min-width: 278px;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(150deg, #082b7a 0%, #0b39a2 100%);
  box-shadow: 0 16px 28px rgba(8, 43, 122, 0.4);
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 0.85rem;
  top:2rem;
}

.etias-badge-flag {
  position: relative;
  width: 102px;
  height: 78px;
  /* border: 2px solid rgba(207, 218, 245, 0.4); */
  /* background: #ffffff; */
  overflow: hidden;
}

.etias-eu-emblem {
  display: block;
  width: 100%;
  height: 100%;
}

.etias-badge-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.etias-badge-wordmark {
  font-size: 3rem;
  line-height: 0.92;
  letter-spacing: 0.08rem;
  font-weight: 800;
  color: #e7edfa;
}

.etias-badge-subtitle {
  font-size: 0.78rem;
  line-height: 1.05;
  max-width: 150px;
  color: #cfdaf5;
}

.ees-badge::before,
.etias-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.ees-badge::after,
.etias-badge::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -30%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 65%);
  mix-blend-mode: screen;
}

.ees-badge-text {
  position: relative;
  z-index: 1;
  display: block;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-align: left;
  color: #fff;
}

.ees-badge-text span {
  color: #ffd76b;
}

.ees-badge-text .exit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ees-badge-text .exit::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url('data:image/svg+xml,%3Csvg%20width%3D%2284%22%20height%3D%2284%22%20viewBox%3D%220%200%2084%2084%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M39.4282%206.72544L35.9152%204.16006H40.2602L41.6006%200L42.9411%204.16006H47.2861L43.7731%206.72544L45.1136%2010.9086L41.6006%208.32012L38.0877%2010.9086L39.4282%206.72544ZM43.7731%2079.0413L45.1136%2083.2013L41.6006%2080.6359L38.0877%2083.2013L39.4282%2079.0413L35.9152%2076.4759H40.2602L41.6006%2072.2927L42.9411%2076.4759H47.2861L43.7731%2079.0413ZM5.68542%2044.374L2.17248%2046.9625L3.51294%2042.8024L0%2040.3064H4.34495L5.68542%2036.1463L7.02589%2040.3064H11.394L7.8579%2042.8949L9.19836%2047.0549L5.68542%2044.4665V44.374ZM25.8155%2011.5557L27.156%2015.7158L23.643%2013.1735L20.1301%2015.7389L21.4706%2011.5788L17.9576%209.01347H22.3026L23.643%204.8534L24.9835%209.01347H29.3285L25.8155%2011.5557ZM9.24459%2022.2332L10.5851%2018.0732L11.9486%2022.2332H16.178L12.6651%2024.8217L14.0055%2028.9818L10.4695%2026.3933L6.93344%2028.9818L8.27391%2024.8217L4.76096%2022.2332H9.24459ZM9.24459%2058.3796L10.5851%2054.2195L11.9486%2058.3796H16.178L12.6651%2060.9681L14.0055%2065.1281L10.4695%2062.5628L6.93344%2065.1281L8.27391%2060.9681L4.76096%2058.3796H9.24459ZM21.4706%2074.1878L17.9576%2071.6456H22.3026L23.643%2067.4855L24.9835%2071.6456H29.3285L25.8155%2074.1878L27.156%2078.3479L23.643%2075.7825L20.1301%2078.3479L21.4706%2074.1878ZM79.6883%2042.8949L81.0288%2047.0549L77.5159%2044.4665L73.9567%2047.0549L75.2972%2042.8949L71.7611%2040.3064H76.2679L77.6083%2036.1463L78.9488%2040.3064H83.2013L79.6883%2042.8949ZM57.3858%2011.5557L53.8728%209.01347H58.2178L59.5583%204.8534L60.8987%209.01347H65.2437L61.7307%2011.5557L63.0712%2015.7158L59.5583%2013.1735L56.0453%2015.7389L57.3858%2011.5788V11.5557ZM71.2527%2022.2101L72.6162%2018.0501L73.9567%2022.2101H78.3017L74.8812%2024.8217L76.2216%2028.9818L72.7087%2026.3933L69.1726%2028.9818L70.5131%2024.8217L67.0233%2022.2332L71.2527%2022.2101ZM73.9567%2058.3796H78.3017L74.8812%2060.9681L76.2216%2065.1281L72.7087%2062.5628L69.1726%2065.1281L70.5131%2060.9681L67.0233%2058.3796H71.3682L72.7318%2054.2195L74.0723%2058.3796H73.9567ZM65.2437%2071.6456L61.7307%2074.1878L63.0712%2078.3479L59.5583%2075.7825L56.0453%2078.3479L57.3858%2074.1878L53.8728%2071.6456H58.2178L59.5583%2067.4855L60.8987%2071.6456H65.2437Z%22%20fill%3D%22%23FFCC00%22%2F%3E%3C%2Fsvg%3E') center/cover no-repeat;
}

.article-cta {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid #cdd7ee;
  background: #f6f9ff;
}

.mobile-sticky-actions {
  display: none;
}

.future-section {
  display: none;
}

@media (max-width: 860px) {
  .two-col-row {
    grid-template-columns: 1fr;
  }
  .carousel-slide {
    flex: 0 0 calc(100% - 0.5rem);
  }
}

@media (max-width: 700px) {
  .site-header-inner {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .brand-text .brand-zone {
    display: none;
  }

  .site-nav {
    gap: 0.4rem;
  }

  .site-nav a {
    font-size: 0.85rem;
    padding: 0.25rem 0.45rem;
  }

  .site-footer-top {
    flex-direction: column;
    gap: 1rem;
  }

  .hero {
    padding: 2.2rem 0.75rem 1.5rem;
  }

  .container,
  .page {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 0.95rem;
    border-radius: 14px;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .lang-switch button {
    flex: 1;
    text-align: center;
  }

  .trips-head {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-collapse-head {
    gap: 0.45rem;
  }

  .mobile-toggle {
    order: 2;
  }

  #add-trip,
  #add-future-trip {
    order: 3;
  }

  #add-trip svg{
    max-height: 20px;

  }

  .trips-head .btn,
  .actions .btn {
    width: 100%;
  }

  .actions {
    gap: 0.5rem;
    flex-direction: column;
  }

  .mobile-sticky-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.65rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    z-index: 30;
  }

  .mobile-sticky-actions .btn {
    width: 100%;
  }

  body {
    padding-bottom: 5.2rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .timeline-day {
    min-height: 28px;
    font-size: 0.72rem;
  }

  .timeline-day.month-start::before {
    top: -0.95rem;
    font-size: 0.56rem;
  }

  .trip-row {
    grid-template-columns: 1fr 1fr;
  }

  .trip-row .btn-remove-trip {
    grid-column: span 2;
    width: 100%;
    height: 30px;
    border-radius: 6px;
    font-size: 0.82rem;
  }

  .trip-row .btn-remove-trip::after {
    content: " Remove";
    font-weight: 600;
  }

  .ees-highlight {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .etias-highlight {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .ees-badge,
  .etias-badge {
    position: relative;
    top: 0;
    right: 0;
    margin: 0 auto 1rem;
    transform: none;
    max-width: 100%;
  }

  .ees-highlight .section-title,
  .etias-highlight .section-title {
    padding-right: 1rem;
    min-height: 0;
  }

  .etias-badge {
    min-width: 0;
    grid-template-columns: 72px 1fr;
    gap: 0.7rem;
  }

  .etias-badge-flag {
    width: 72px;
    height: 54px;
  }

  .etias-badge-wordmark {
    font-size: 2rem;
  }

  .etias-badge-subtitle {
    font-size: 0.62rem;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 1.35rem;
    padding-left: 0.8rem;
  }

  .ees-badge,
  .etias-badge {
    max-width: 100%;
  }
}

.g-1{
  gap: 1rem;
}

@media (max-width: 1200px) {
  div[data-placement="homepage-rail-left-skyscraper"]{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
  }
  div[data-placement="homepage-rail-right-halfpage"]{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
  }
}
