@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;500;600;700&family=Barlow:wght@400;500;600&display=swap');

:root {
  --primary:  #1780AE;
  --dark:     #0c3d52;
  --steel:    #7fa8bc;
  --ground:   #f4f7f9;
  --text:     #1e2f38;
  --muted:    #5d7a88;
  --white:    #ffffff;
  --border:   #dce8ef;
  --max:      1100px;
  --radius:   6px;
  --font-display: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Barlow', Arial, sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
.site-header.scrolled {
  box-shadow: 0 2px 18px rgba(12,61,82,.12);
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo { flex-shrink: 0; }
.logo img { height: 50px; }

/* Main nav */
.main-nav { flex: 1; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav ul li a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 6px 10px;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: color .2s;
}
.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 10px; right: 10px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}
.main-nav ul li a:hover { color: var(--primary); text-decoration: none; }
.main-nav ul li a:hover::after { transform: scaleX(1); }
.main-nav ul li a.active { color: var(--primary); }
.main-nav ul li a.active::after { transform: scaleX(1); }

/* Header right */
.header-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lang-switcher a { color: var(--muted); transition: color .2s; }
.lang-switcher a:hover { color: var(--primary); text-decoration: none; }
.lang-switcher a.active { color: var(--primary); }
.lang-switcher .sep { color: var(--border); }

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  padding: 6px 9px;
  font-size: 18px;
  line-height: 1;
  align-items: center;
  transition: border-color .2s, color .2s;
}
.hamburger:hover { border-color: var(--primary); color: var(--primary); }

/* ── Hero slider ── */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--dark);
  line-height: 0;
}
.hero-slides {
  display: flex;
  transition: transform .75s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.hero-slides img {
  min-width: 100%;
  width: 100%;
  height: 440px;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--white);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .2s;
}
.hero-btn:hover { background: rgba(255,255,255,.32); }
.hero-btn.prev { left: 20px; }
.hero-btn.next { right: 20px; }
.hero-dots {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dots span.on {
  background: var(--white);
  transform: scale(1.35);
}

/* ── Rail divider ── two parallel lines, like track ── */
.rail-divider {
  height: 4px;
  background: var(--primary);
}
.rail-divider::after {
  content: '';
  display: block;
  height: 2px;
  background: rgba(12,61,82,.2);
  margin-top: 3px;
}

/* ── Homepage teasers ── */
.teasers-section {
  background: var(--ground);
  padding: 52px 0 60px;
}
.teasers-section .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.teaser {
  background: var(--white);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 28px 28px 24px;
  box-shadow: 0 2px 14px rgba(23,128,174,.07);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.teaser:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(23,128,174,.15);
}
.teaser h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  text-wrap: balance;
}
.teaser h2 a { color: var(--dark); }
.teaser h2 a:hover { color: var(--primary); text-decoration: none; }
.teaser p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  align-self: flex-start;
  transition: gap .2s;
}
.btn-link:hover { text-decoration: none; gap: 10px; }
.btn-link .arrow { font-size: 14px; }

/* ── Inner page content ── */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 28px 72px;
}
.page-content h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--primary);
  text-wrap: balance;
  line-height: 1.15;
}
.page-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}
.page-content ul {
  list-style: none;
  margin-bottom: 20px;
}
.page-content ul li {
  padding: 12px 0 12px 22px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.5;
}
.page-content ul li:first-child { border-top: 1px solid var(--border); }
.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 28px 44px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
}
.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: .85;
  margin-bottom: 8px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
}
.footer-contact h3 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}
.footer-contact p { font-size: 14px; line-height: 2.1; }
.footer-contact p + p { margin-top: 12px; }
.footer-contact a { color: rgba(255,255,255,.75); }
.footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 14px 28px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.38);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: rgba(255,255,255,.85); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 820px) {
  .teasers { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
}

@media (max-width: 768px) {
  .site-header .inner {
    height: auto;
    flex-wrap: wrap;
    padding: 14px 20px;
    gap: 0;
  }
  .logo { order: 1; }
  .header-end { order: 2; margin-left: auto; }
  .main-nav {
    order: 3;
    flex: none;
    width: 100%;
    display: none;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    padding: 6px 0 2px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li a { display: block; padding: 10px 0; font-size: 15px; }
  .main-nav ul li a::after { bottom: 4px; left: 0; right: 0; }
  .hamburger { display: flex; }

  .hero-slides img { height: 280px; }
  .teasers-section .inner { padding: 0 20px; }
  .page-content { padding: 40px 20px 52px; }
  .page-content h1 { font-size: 1.85rem; }
  .footer-inner { padding: 40px 20px 32px; }
  .footer-bottom { padding: 14px 20px; }
}

@media (max-width: 480px) {
  .hero-slides img { height: 220px; }
  .logo img { height: 40px; }
  .page-content h1 { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides,
  .teaser,
  .main-nav ul li a,
  .main-nav ul li a::after,
  .btn-link { transition: none; }
}
