:root {
  --navy: #5057A1;
  --navy-d: #3d4380;
  --pink: #D71F63;
  --orange: #F8AC35;
  --teal: #12AC9D;
  --blue: #1483BE;
  --ink: #2c2f48;
  --muted: #5c6080;
  --line: #ececf5;
  --bg: #fbfbfe;
  --soft: #f4f5fb;
  --white: #fff;
  --shadow: 0 12px 40px rgba(80, 87, 161, .08);
  --radius: 22px;
  --header: 78px;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--pink); }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; background: #fff; padding: 8px 12px; z-index: 80; }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(780px, 100%); }
.center { text-align: center; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(80,87,161,.08);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header); }
.brand img { height: 58px; width: auto; }
.nav { display: flex; gap: 8px 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 700; font-size: 15px; padding: 6px 0; }
.nav a[aria-current="page"], .nav a:hover { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.lang a { color: var(--muted); }
.lang a.is-active { color: var(--navy); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 800;
  border: 0; cursor: pointer; font-family: inherit; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 8px 20px rgba(215,31,99,.22); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid rgba(80,87,161,.25); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.header-cta { color: #fff; }

.kicker {
  color: var(--pink); font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  font-size: 12px; margin: 0 0 8px;
}
h1,h2,h3 { font-weight: 800; line-height: 1.2; color: var(--navy-d); }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0 0 12px; }
h3 { font-size: 1.12rem; margin: 0 0 8px; }
.lead { font-size: 1.08rem; color: var(--muted); }
.section { padding: 72px 0; position: relative; }
.section-soft { background: var(--soft); }
.section-head { margin-bottom: 32px; }
.split-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.media-card {
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.media-card img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.hero { padding: 36px 0 64px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-frame {
  position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow);
}
.hero-frame img { width: 100%; height: 460px; object-fit: cover; }
.petal {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.p1 { width: 84px; height: 84px; background: var(--orange); top: -18px; right: 40px; opacity: .9; }
.p2 { width: 42px; height: 42px; background: var(--teal); bottom: 28px; left: -14px; }
.p3 { width: 22px; height: 22px; background: var(--pink); top: 36px; left: 18px; }
.blob { position: absolute; border-radius: 50%; filter: blur(8px); z-index: -1; }
.blob-a { width: 280px; height: 280px; background: rgba(18,172,157,.12); top: -40px; left: -60px; }
.blob-b { width: 220px; height: 220px; background: rgba(248,172,53,.16); right: -40px; top: 80px; }

.card-grid { display: grid; gap: 22px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.info-card, .blog-card, .program-card, .dev-card, .form-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.info-card, .dev-card, .form-card { padding: 22px; }
.icon-wrap {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); margin-bottom: 12px;
}
.ico { width: 22px; height: 22px; }
.info-card p, .dev-card p, .blog-card p { color: var(--muted); margin: 0; font-size: 15px; }
.program-card img, .blog-card .thumb img, .photo-card img { width: 100%; height: 200px; object-fit: cover; }
.program-card .pad, .blog-card .pad { padding: 18px; }
.program-card:hover, .blog-card:hover, .photo-card:hover { transform: translateY(-3px); transition: transform .2s; color: inherit; }
.photo-card { position: relative; border-radius: 20px; overflow: hidden; display: block; min-height: 220px; }
.photo-card .overlay {
  position: absolute; inset: auto 0 0 0; padding: 16px;
  background: linear-gradient(transparent, rgba(44,47,72,.78)); color: #fff;
}
.photo-card h3 { color: #fff; margin: 6px 0 0; font-size: 1rem; }
.tag {
  display: inline-block; background: var(--orange); color: #3a2a08; font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
}
.dev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.meta { color: var(--muted); font-size: 13px; font-weight: 700; }
.text-link { font-weight: 800; color: var(--pink); display: inline-block; margin-top: 10px; }
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.masonry-item { border: 0; padding: 0; background: none; border-radius: 16px; overflow: hidden; cursor: pointer; }
.masonry-item img { width: 100%; height: 160px; object-fit: cover; }
.page-hero { padding: 48px 0 10px; }
.prose :where(p,ul,ol) { color: var(--muted); }
.prose h2, .prose h3 { margin-top: 1.2em; }
.program-row {
  display: grid; grid-template-columns: 240px 1fr; gap: 18px; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.program-row img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.program-row > div { padding: 20px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px;
  font-weight: 800; font-size: 14px; color: var(--navy); cursor: pointer; font-family: inherit;
}
.chip.is-active, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager { display: flex; gap: 8px; margin-top: 28px; }
.pager a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: #fff; font-weight: 800; box-shadow: var(--shadow);
}
.pager a.is-active { background: var(--navy); color: #fff; }
.article-cover img { width: 100%; border-radius: 24px; max-height: 460px; object-fit: cover; margin: 10px 0 24px; }
.share { display: flex; gap: 12px; align-items: center; font-weight: 800; font-size: 14px; margin-bottom: 18px; }
.contact-layout { display: grid; grid-template-columns: 1fr .9fr; gap: 36px; }
.contact-cards { display: grid; gap: 12px; }
.contact-cards article {
  display: flex; gap: 12px; background: #fff; padding: 16px; border-radius: 16px; box-shadow: var(--shadow);
}
.map { margin-top: 18px; border-radius: 20px; overflow: hidden; min-height: 240px; background: var(--soft); }
.map iframe { width: 100%; height: 280px; border: 0; }
.contact-form, .cta-inner .contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  background: #fff; padding: 22px; border-radius: 22px; box-shadow: var(--shadow);
  color: var(--ink);
}
.contact-form label,
.contact-form label span {
  color: var(--navy-d);
}
.contact-form .full, .contact-form button { grid-column: 1 / -1; }
.contact-form label span { display: block; font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px;
  font: inherit; background: #fff;
}
.hp { position: absolute; left: -9999px; }
.cta-band { background: linear-gradient(135deg, #5057A1 0%, #3d4380 100%); color: #fff; }
.cta-band h2, .cta-mini h2 { color: #fff; }
.cta-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.cta-mini { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cta-band.compact { padding: 40px 0; }
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 32px; padding-bottom: 28px; }
.footer-brand p { color: var(--muted); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin: 8px 0; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); color: var(--navy);
}
.social.lg a { width: 44px; height: 44px; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.legal-links { display: flex; gap: 16px; }
.flash { width: min(1140px, calc(100% - 32px)); margin: 16px auto 0; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.flash-success { background: #e7f8f5; color: #0b6f64; }
.flash-error { background: #fde8ef; color: #9d1744; }
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px 16px; max-width: 720px; margin: 0 auto;
}
.lightbox {
  position: fixed; inset: 0; background: rgba(20,24,50,.88); z-index: 70;
  display: grid; place-items: center; padding: 24px;
}
.lightbox[hidden],
.cookie[hidden] {
  display: none !important;
}
.lightbox img { max-width: min(1100px, 100%); max-height: 90vh; border-radius: 12px; }
.lb-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0;
  border-radius: 50%; font-size: 28px; background: #fff; cursor: pointer; z-index: 2;
}
.album { margin-bottom: 40px; }
.nav.is-open { display: flex; }

@media (max-width: 980px) {
  .hero-grid, .split, .cta-inner, .contact-layout, .footer-grid, .card-grid.four, .dev-grid { grid-template-columns: 1fr; }
  .card-grid.three, .card-grid.two { grid-template-columns: 1fr 1fr; }
  .masonry { grid-template-columns: 1fr 1fr; }
  .program-row { grid-template-columns: 1fr; }
  .hero-frame img { height: 320px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header);
    background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; min-height: 44px; }
  .header-cta { display: none; }
  .split-head, .cta-mini, .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .card-grid.three, .card-grid.two, .contact-form, .cta-inner .contact-form { grid-template-columns: 1fr; }
  .brand img { height: 48px; }
  .section { padding: 48px 0; }
  .hero { padding-top: 20px; }
}
