:root {
  --mainColor: #08A9E6;
  --redColor: #EC272F;
  --titleColor: #21225F;
  --bodyColor: #555555;
  --whiteColor: #ffffff;
  --bg: #f5f8fc;
  --line: #e4ebf2;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Jost", ui-sans-serif, system-ui, sans-serif;
  color: var(--bodyColor);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--mainColor); text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-header {
  background: var(--whiteColor);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--titleColor);
  font-weight: 700;
}
.brand small { display: block; font-weight: 500; color: #7a8596; font-size: 12px; }
.brand-logos { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo-ifi { height: 48px; width: auto; }
.brand-logo-event { height: 44px; width: auto; max-width: 120px; object-fit: contain; }
nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--titleColor);
  font-weight: 600;
}
nav a.active, nav a:hover { background: #e8f7fd; color: var(--mainColor); }
.hero {
  background: linear-gradient(120deg, #e8f7fd 0%, #fff 48%, #ffecee 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hero-inner.has-thumb {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: stretch;
}
.hero-inner.has-thumb .lead { max-width: none; }
.hero h1 { margin: 0 0 8px; font-size: 40px; color: var(--titleColor); line-height: 1.15; }
.hero-inner.has-thumb .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kicker { color: var(--redColor); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.lead { max-width: 720px; font-size: 18px; }
.lead p { margin: 0 0 8px; }
.lead p:last-child { margin-bottom: 0; }
.hero-thumb {
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(33, 34, 95, .1);
}
.hero-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.hero-slide {
  display: none;
  height: 100%;
}
.hero-slide.is-active { display: block; }
.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}
.hero-slider-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 8px;
}
.hero-slider-prev,
.hero-slider-next {
  pointer-events: auto;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--titleColor);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(33, 34, 95, .12);
}
.hero-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.hero-slider-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  padding: 0;
}
.hero-slider-dot.is-active { background: var(--mainColor); }
.btn {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--mainColor); color: #fff; }
.btn-primary:hover { background: #0693c9; color: #fff; }
.btn-outline { background: #fff; color: var(--titleColor); border: 1px solid var(--line); }
.btn-danger { background: var(--redColor); color: #fff; }
.section { padding: 48px 0; }
.section h2 { margin: 0 0 8px; color: var(--titleColor); font-size: 28px; }
.muted { color: #7a8596; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(33, 34, 95, .04);
}
.card h3 { margin: 0 0 8px; color: var(--titleColor); font-size: 18px; }
.card p { margin: 0; }
.card-link {
  display: block;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(33, 34, 95, .08);
  border-color: rgba(8, 169, 230, .35);
}
.card-link-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--mainColor);
  font-weight: 600;
  font-size: 14px;
}
.event-breadcrumb {
  padding: 14px 20px 0;
  font-size: 14px;
  color: #7a8596;
}
.event-breadcrumb a { color: var(--mainColor); font-weight: 600; }
.notice {
  background: #f4f8fb;
  border-left: 4px solid var(--mainColor);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.toolkit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.btn-toolkit {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--titleColor);
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  transition: background .15s ease;
}
.btn-toolkit:hover,
.btn-toolkit:focus {
  background: var(--mainColor);
  color: #fff;
}
body.toolkit-modal-open { overflow: hidden; }
.toolkit-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.toolkit-modal.is-open { display: flex; }
.toolkit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 45, 0.55);
}
.toolkit-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 22px 20px 18px;
  box-shadow: 0 18px 50px rgba(15, 30, 50, 0.22);
}
.toolkit-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #667085;
}
.toolkit-modal-dialog h3 {
  margin: 0 28px 14px 0;
  color: var(--titleColor);
}
.toolkit-modal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolkit-tab {
  border: 1px solid #d5dee8;
  background: #f7fafc;
  color: var(--titleColor);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.toolkit-tab.is-active {
  background: var(--mainColor);
  border-color: var(--mainColor);
  color: #fff;
}
.toolkit-modal-preview {
  min-height: 280px;
  border: 1px solid #e4ebf2;
  border-radius: 10px;
  background: #f8fbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.toolkit-modal-preview img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}
.toolkit-modal-preview iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  background: #fff;
}
.toolkit-preview-fallback {
  padding: 24px;
  text-align: center;
  color: #526070;
}
.toolkit-modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.ifi-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: var(--titleColor);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(33, 34, 95, .18);
  transition: opacity .2s ease, transform .2s ease;
}
.ifi-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hashtags { font-weight: 700; color: var(--mainColor); }
.ig-block {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.ig-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ig-block-head h3 {
  margin: 0;
  color: var(--titleColor);
  font-size: 22px;
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  justify-items: center;
}
.ig-embed {
  min-width: 0;
  max-width: var(--ig-width, 163px);
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.ig-embed-inner {
  width: 326px;
  transform: scale(var(--ig-scale, 0.5));
  transform-origin: top center;
  margin-bottom: var(--ig-shrink, -260px);
}
.ig-embed blockquote.instagram-media {
  margin: 0 auto !important;
  max-width: 326px !important;
  width: 100% !important;
}
.ig-embed iframe {
  max-width: 100% !important;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
  color: #7a8596;
  background: #fff;
}
.footer-pic { margin-top: 8px; }
.footer-pic a { color: var(--titleColor); font-weight: 600; }
.faq-list { display: grid; gap: 10px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 48px 16px 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--titleColor);
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mainColor);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.faq-item.is-open .faq-q::after { content: "–"; }
.faq-a {
  display: none;
  padding: 0 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--bodyColor);
}
.faq-item.is-open .faq-a { display: block; padding-top: 12px; }
.faq-a p { margin: 0 0 8px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul, .faq-a ol { margin: 0 0 8px 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--titleColor); }
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d5dee8;
  border-radius: 8px;
  font: inherit;
}
textarea { min-height: 90px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; }
.alert-ok { background: #e8f8ef; color: #17613c; }
.alert-err { background: #ffecee; color: #9d1722; }
.tablewrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
th { color: #7a8596; font-size: 12px; text-transform: uppercase; }
.result-box { font-size: 28px; font-weight: 800; color: var(--titleColor); }
@media (max-width: 960px) {
  .grid-4, .grid-3, .toolkit { grid-template-columns: 1fr 1fr; }
  .hero-inner.has-thumb {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-thumb { aspect-ratio: 16 / 10; max-height: 420px; }
  .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .grid-4, .grid-3, .grid-2, .toolkit, .form-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: 1fr; }
  .site-header .inner { flex-wrap: wrap; padding: 10px 0; }
}
