*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dutch-blue: #AE1C28;
  --dutch-white: #FFFFFF;
  --dutch-red: #21468B;
  --ukraine-blue: #005BBB;
  --ukraine-yellow: #FFD500;
  --bg: #F5F0E8;
  --ink: #1A1A1A;
  --muted: #6B6259;
  --card-bg: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-half {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  position: relative;
  z-index: 1;
}

.hero-dutch {
  background: #21468B;
  color: white;
}

.hero-ukraine {
  background: #005BBB;
  color: white;
}

.hero-dutch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.03) 40px,
    rgba(255,255,255,0.03) 80px
  );
}

.hero-ukraine::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.03) 40px,
    rgba(255,255,255,0.03) 80px
  );
}

.flag-stripe-dutch {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #AE1C28 33%, #fff 33%, #fff 66%, #21468B 66%);
}

.flag-stripe-ukraine {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #005BBB 50%, #FFD500 50%);
}

.hero-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-word {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-translation {
  font-size: 18px;
  font-style: italic;
  opacity: 0.75;
  margin-bottom: 32px;
  font-family: 'Playfair Display', serif;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 340px;
  font-weight: 300;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.center-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 90px;
  height: 90px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  animation: spin 20s linear infinite;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.center-badge span { animation: counterSpin 20s linear infinite; display: block; }

@keyframes counterSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* ── DIVIDER ── */
.divider {
  text-align: center;
  padding: 70px 20px 20px;
  position: relative;
}

.divider h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
}

.divider h2 em {
  font-style: italic;
  color: var(--ukraine-blue);
}

.divider p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
  font-weight: 300;
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 60px 0;
  background: #DDD8CC;
}

.step {
  background: var(--bg);
  padding: 50px 40px;
  position: relative;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px #DDD8CC;
  margin-bottom: 20px;
  display: block;
}

.step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 12px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── WHY SECTION ── */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 2px 0;
  background: #DDD8CC;
}

.why-card {
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.why-card.nl { background: #21468B; color: white; }
.why-card.ua { background: var(--ukraine-yellow); color: #1A1A1A; }

.why-card::after {
  content: attr(data-emoji);
  position: absolute;
  right: 30px;
  bottom: 20px;
  font-size: 120px;
  opacity: 0.12;
  pointer-events: none;
}

.why-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.why-list {
  list-style: none;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.why-list li::before {
  content: '→';
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 700;
}

.why-card.ua .why-list li::before { color: #005BBB; }
.why-card.nl .why-list li::before { color: var(--ukraine-yellow); }

/* ── PHRASES ── */
.phrases-section {
  padding: 80px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.phrases-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin-bottom: 8px;
}

.phrases-section .subtitle {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 15px;
}

.phrase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.phrase-card {
  background: white;
  border-radius: 4px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-left: 4px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.phrase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.phrase-card.nl-card { border-left-color: #21468B; }
.phrase-card.ua-card { border-left-color: #005BBB; }

.phrase-original {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
}

.phrase-translation {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  font-style: italic;
}

/* ── CTA ── */
.cta {
  background: var(--ink);
  color: white;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(33,70,139,0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,213,0,0.2) 0%, transparent 50%);
}

.cta-inner { position: relative; z-index: 1; }

.cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta p {
  font-size: 17px;
  opacity: 0.7;
  margin-bottom: 48px;
  font-weight: 300;
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.7;
}

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-dutch {
  background: #AE1C28;
  color: white;
}

.btn-dutch:hover { background: #8a1520; transform: translateY(-2px); }

.btn-ukraine {
  background: var(--ukraine-yellow);
  color: #1A1A1A;
}

.btn-ukraine:hover { background: #e6bf00; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: #111;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 30px 20px;
  font-size: 13px;
}

footer span { color: rgba(255,255,255,0.7); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-half { padding: 80px 32px 60px; }
  .center-badge { display: none; }
  .steps { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .phrase-grid { grid-template-columns: 1fr; }
}

/* ── BILINGUAL TEXT HELPERS ── */
.ua-sub {
  display: block;
  font-size: 0.6em;
  opacity: 0.65;
  font-style: normal;
  margin-top: 8px;
}

.ua-inline {
  font-size: 0.75em;
  opacity: 0.6;
  font-weight: 300;
}

.ua-text {
  display: block;
  font-size: 13px;
  opacity: 0.6;
  margin-top: 6px;
  font-style: italic;
  line-height: 1.5;
}

.feature-sub {
  display: block;
  font-size: 0.6em;
  font-weight: 300;
  opacity: 0.7;
  font-style: normal;
  margin-top: 4px;
}

/* ── SECTION WRAP ── */
.section-wrap {
  padding: 0 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── REGULARITY BANNER ── */
.regularity-banner {
  background: var(--ink);
  color: white;
  padding: 50px 40px;
  text-align: center;
  margin: 40px 0 0;
}

.reg-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reg-nl, .reg-ua {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-style: italic;
  line-height: 1.4;
}

.reg-ua { opacity: 0.65; }

/* ── UA CTA ── */
.ua-cta {
  display: block;
  font-size: 0.65em;
  opacity: 0.6;
  margin-top: 8px;
}

/* ── WHY-CARD list item ua-text spacing ── */
.why-list li { flex-direction: column; gap: 4px; }
.why-list li .ua-text { margin-top: 2px; }

@media (max-width: 768px) {
  .section-wrap { padding: 0 20px 20px; }
  .regularity-banner { padding: 40px 24px; }
}

/* ── HERO BUTTONS ── */
.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
  max-width: 280px;
}

.btn-hero {
  display: inline-block;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 3px;
  text-align: center;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.btn-hero-primary {
  /*background: #FFD500;*/
  background: #6f6d6a;
  color: white;
  /*color: #1A1A1A;*/
}

.btn-hero-primary:hover {
  background: #ffe033;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,213,0,0.35);
}

.btn-hero-primary.ua {
  /*background: #AE1C28;*/
  background: #6f6d6a;
  color: white;
}

.btn-hero-primary.ua:hover {
  background: #c9222f;
  box-shadow: 0 6px 20px rgba(174,28,40,0.35);
}

.btn-hero-ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.45);
  font-size: 14px;
}

.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}


/* ── SEARCH SECTION ── */
.search-section {
  background: var(--bg);
  padding: 52px 40px 40px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #DDD8CC;
}

.search-inner {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.search-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.search-bar-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  background: white;
  border: 2px solid #DDD8CC;
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar-wrap:focus-within {
  border-color: #21468B;
  box-shadow: 0 4px 24px rgba(33,70,139,0.12);
}

.search-lang-toggle {
  display: flex;
  border-right: 2px solid #DDD8CC;
  flex-shrink: 0;
}

.lang-btn {
  padding: 0 16px;
  height: 54px;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.5px;
}

.lang-btn:hover { background: #f0ece4; }

.lang-btn.active {
  background: #21468B;
  color: white;
}

.lang-btn[data-lang="ua"].active {
  background: #005BBB;
}

.search-input {
  flex: 1;
  height: 54px;
  padding: 0 20px;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
}

.search-input::placeholder { color: #bbb4aa; }

.search-btn {
  width: 54px;
  height: 54px;
  background: var(--ink);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.search-btn:hover { background: #21468B; }

.search-results {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.search-results.has-results {
  max-height: 500px;
}

.search-result-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: white;
  padding: 16px 24px;
  border-left: 3px solid #21468B;
  animation: fadeUp 0.25s ease forwards;
}

.search-result-row:nth-child(even) {
  border-left-color: #005BBB;
}

.res-nl {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: #21468B;
}

.res-arrow {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

.res-ua {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: #005BBB;
}

.res-en {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  text-align: right;
}

.search-empty {
  background: white;
  padding: 20px 24px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #DDD8CC;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .search-section { padding: 40px 20px 32px; }
  .search-result-row { grid-template-columns: 1fr auto 1fr; }
  .res-en { display: none; }
}

