:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-2: #f43f5e;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(17,24,39,0.10), 0 1px 2px rgba(17,24,39,0.06);
  --shadow-md: 0 4px 10px rgba(17,24,39,0.10), 0 2px 6px rgba(17,24,39,0.08);
  --shadow-lg: 0 12px 30px rgba(17,24,39,0.12), 0 6px 18px rgba(17,24,39,0.10);
  --glow-blue: 0 10px 26px rgba(37,99,235,0.20);
  --glow-pink: 0 10px 26px rgba(244,63,94,0.18);
}
* { box-sizing: border-box }
html, body { height: 100% }
html {
  background: linear-gradient(180deg, #ffffff 0%, #fdf2f8 38%, #eff6ff 100%);
  background-attachment: fixed;
  background-size: 200% 200%;
  animation: bg-pan 40s linear infinite;
}
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  line-height: 1.55;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  box-shadow: var(--shadow-md);
  transform: translateY(0);
  transition: transform .24s ease;
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: flex-start;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(244,63,94,0.18));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md), var(--glow-pink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.brand-logo:hover {
  transform: translateY(-1px) scale(1.04);
  color: var(--accent);
  border-color: rgba(37,99,235,0.35);
  box-shadow: var(--shadow-lg), var(--glow-blue), var(--glow-pink);
}
.brand-sub {
  color: var(--muted);
  font-size: 14px;
}
.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-self: center;
}
.menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease, transform .2s ease;
}
.menu a:hover { color: var(--accent); transform: translateY(-1px) }
.menu .btn {
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(244,63,94,0.12));
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.nav-right .lang {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0 6px 14px;
  border-left: 1px solid var(--border);
  justify-self: end;
}
.nav-right {
  justify-self: end;
  text-align: right;
}
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 40px 0 20px;
}
.hero-left { text-align: center }
.hero-title {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 24s ease-in-out infinite alternate;
}
.hero-sub {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37,99,235,0.35);
  box-shadow: var(--shadow-md), var(--glow-blue);
}
.btn-accent {
  background: linear-gradient(135deg, rgba(37,99,235,0.16), rgba(244,63,94,0.16));
}
.btn-ghost {
  background: transparent;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.info-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.info-label {
  color: var(--muted);
  font-size: 12px;
}
.info-value a { color: var(--text); text-decoration: none }
.info-value a:hover { color: var(--accent) }
.lang-list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center }
.chip {
  display: inline-block;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.section {
  padding: 24px 0;
}
.section-title {
  font-size: 24px;
  margin: 0 0 14px;
}
.section.accent-blue .section-title { color: var(--accent) }
.section.accent-pink .section-title { color: var(--accent-2) }
.section.accent-blue .chip { border-color: rgba(37,99,235,0.35) }
.section.accent-pink .chip { border-color: rgba(244,63,94,0.35) }
.section.accent-blue .card-title { color: var(--accent) }
.section.accent-pink .card-title { color: var(--accent-2) }
.section .section-title.cycle { animation: title-shift 18s ease-in-out infinite alternate }
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: var(--shadow-md);
}
.card:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(37,99,235,0.30);
  box-shadow: var(--shadow-lg), var(--glow-blue);
}
.card-hover { cursor: pointer }
.card-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.card-sub {
  color: var(--muted);
  margin-bottom: 4px;
}
.card-period {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.card-desc {
  color: var(--text);
}
.list {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
}
.list li {
  margin-bottom: 6px;
}
.timeline {
  display: grid;
  gap: 14px;
}
.timeline-item {
  position: relative;
  padding-left: 18px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12), 0 6px 16px rgba(37,99,235,0.18);
}
.timeline-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.timeline-title {
  font-weight: 600;
}
.timeline-period {
  color: var(--muted);
  font-size: 13px;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
  box-shadow: var(--shadow-sm);
}
.link:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: rgba(37,99,235,0.35);
  box-shadow: var(--shadow-md), var(--glow-blue);
}
.form {
  display: grid;
  gap: 12px;
  max-width: 680px;
}
.form-row {
  display: grid;
  gap: 8px;
}
.form-row label {
  color: var(--muted);
  font-size: 14px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-meta {
  color: var(--muted);
  font-size: 14px;
}
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.section-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}
.flash {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.flash-item {
  background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(244,63,94,0.10));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease, box-shadow .2s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm) inset;
}
.header.is-hidden { transform: translateY(-100%) }
.footer-inner {
  display: grid;
  gap: 6px;
  padding: 16px 0;
}
.footer-text {
  color: var(--muted);
}
.footer-meta {
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr }
  .info-grid { grid-template-columns: repeat(2, 1fr) }
  .cards { grid-template-columns: 1fr }
  .contact-info { grid-template-columns: 1fr }
}

@media (max-width: 768px) {
  .nav {
    height: auto;
    padding: 16px 0;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand lang"
      "menu menu";
    gap: 16px;
  }
  .nav-left { grid-area: brand; justify-self: start; }
  .nav-right { grid-area: lang; justify-self: end; }
  .menu {
    grid-area: menu;
    justify-self: center;
    width: 100%;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .menu a { font-size: 14px; padding: 6px 10px; }
  .footer-inner {
    text-align: center;
    padding: 24px 0;
    gap: 12px;
  }
  .info-grid { grid-template-columns: 1fr }
}
@keyframes bg-pan {
  0% { background-position: 0% 0% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 100% }
}
@keyframes gradient-shift {
  0% { background-position: 0% 50% }
  100% { background-position: 100% 50% }
}
@keyframes title-shift {
  0% { color: #2563eb }
  100% { color: #f43f5e }
}
