/* ========================================
   АНО «Содействие» — Design System
   Light but colorful medical NGO aesthetic
   ======================================== */

:root {
  /* Brand palette — vivid yet soft */
  --teal: #00BFA5;
  --teal-soft: #A7F0E5;
  --coral: #FF6B8B;
  --coral-soft: #FFD4DE;
  --violet: #7C5CFF;
  --violet-soft: #E0D6FF;
  --sunny: #FFC857;
  --sunny-soft: #FFEFC2;
  --sky: #4AA8FF;
  --sky-soft: #D0E8FF;
  --mint: #52D6A8;
  --peach: #FFB787;

  /* Neutrals */
  --ink: #1D2340;
  --ink-soft: #4D5378;
  --muted: #8B90AE;
  --line: #E9EAF5;
  --bg: #FBFAFF;
  --bg-card: #FFFFFF;
  --bg-soft: #F4F1FF;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(29, 35, 64, 0.04);
  --shadow: 0 8px 30px rgba(29, 35, 64, 0.07);
  --shadow-lg: 0 24px 60px rgba(29, 35, 64, 0.10);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  /* Fonts */
  --font-body: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--violet);
  padding: 6px 14px;
  background: var(--violet-soft);
  border-radius: 999px;
  margin-bottom: 16px;
}

.eyebrow.teal { color: #008577; background: var(--teal-soft); }
.eyebrow.coral { color: #C9365B; background: var(--coral-soft); }
.eyebrow.sunny { color: #A87300; background: var(--sunny-soft); }
.eyebrow.sky { color: #1B6AB8; background: var(--sky-soft); }

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 720px;
}

/* ==================== LAYOUT ==================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; position: relative; }
section.tight { padding: 60px 0; }

/* ==================== NAV ==================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

.brand-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.4), transparent 60%);
}

.brand-mark svg { position: relative; z-index: 1; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-family: var(--font-body); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: all .2s ease;
}

.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { color: var(--violet); background: var(--violet-soft); }

.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .92rem;
  transition: transform .15s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(29,35,64,.2); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); color: var(--ink); align-items: center; justify-content: center; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: .98rem;
  transition: all .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--coral));
  color: #fff;
  box-shadow: 0 10px 30px rgba(124,92,255,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(124,92,255,.4); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,191,165,.3);
}
.btn-teal:hover { transform: translateY(-2px); background: #00A894; }

/* ==================== HERO ==================== */
.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--violet), var(--coral) 60%, var(--sunny));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead { margin-top: 28px; font-size: 1.2rem; }

.hero-ctas { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-pills { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.hero-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; }

/* Hero visual (SVG card collage) */
.hero-visual { position: relative; min-height: 540px; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  z-index: 0;
}
.blob-1 { width: 340px; height: 340px; background: var(--coral); top: -60px; right: -40px; }
.blob-2 { width: 280px; height: 280px; background: var(--teal); bottom: 0; left: -60px; }
.blob-3 { width: 220px; height: 220px; background: var(--sunny); top: 40%; left: 30%; opacity: .4; }

.hero-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.hero-card.c1 { top: 40px; right: 40px; width: 260px; transform: rotate(3deg); }
.hero-card.c2 { bottom: 60px; left: 0; width: 280px; transform: rotate(-4deg); }
.hero-card.c3 { top: 50%; right: -10px; width: 220px; transform: translateY(-50%) rotate(6deg); }

.hero-card h4 { margin-bottom: 6px; font-size: 1.05rem; }
.hero-card p { font-size: .85rem; color: var(--ink-soft); }
.hero-card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px;
}

/* ==================== SECTION HEAD ==================== */
.section-head {
  max-width: 780px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-head.left { text-align: left; margin: 0 0 60px; }

/* ==================== CARDS GRID ==================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.ic-teal { background: linear-gradient(135deg, var(--teal), #0093CC); }
.ic-coral { background: linear-gradient(135deg, var(--coral), #FF8867); }
.ic-violet { background: linear-gradient(135deg, var(--violet), #B57CFF); }
.ic-sunny { background: linear-gradient(135deg, var(--sunny), var(--peach)); }
.ic-sky { background: linear-gradient(135deg, var(--sky), var(--violet)); }
.ic-mint { background: linear-gradient(135deg, var(--mint), var(--teal)); }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

.card.tinted-teal { background: linear-gradient(160deg, #F0FDFA, #FFFFFF); border-color: var(--teal-soft); }
.card.tinted-coral { background: linear-gradient(160deg, #FFF5F7, #FFFFFF); border-color: var(--coral-soft); }
.card.tinted-violet { background: linear-gradient(160deg, #F6F2FF, #FFFFFF); border-color: var(--violet-soft); }
.card.tinted-sunny { background: linear-gradient(160deg, #FFFAEC, #FFFFFF); border-color: var(--sunny-soft); }

/* ==================== STATS ==================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 56px;
  background: linear-gradient(135deg, #fff, #F4F1FF);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.stat.teal .num { background-image: linear-gradient(135deg, var(--teal), var(--sky)); -webkit-background-clip: text; background-clip: text; }
.stat.sunny .num { background-image: linear-gradient(135deg, var(--sunny), var(--coral)); -webkit-background-clip: text; background-clip: text; }
.stat.mint .num { background-image: linear-gradient(135deg, var(--mint), var(--teal)); -webkit-background-clip: text; background-clip: text; }
.stat .label { color: var(--ink-soft); font-size: .95rem; }

/* ==================== VALUES ==================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  padding: 36px;
  border-radius: var(--radius);
  background: #fff;
  position: relative;
  border: 1px solid var(--line);
  transition: all .3s ease;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--bar, linear-gradient(to right, var(--violet), var(--coral)));
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.value-card .big-icon {
  width: 70px; height: 70px;
  border-radius: 20px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  background: var(--bg-soft);
  font-size: 2rem;
}

/* ==================== DIRECTIONS / OFFERS ==================== */
.direction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.direction:last-child { border-bottom: none; }
.direction.reverse .dir-text { order: 2; }

.dir-illu {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.dir-illu.teal { background: linear-gradient(135deg, #CDF4EB, #E9F9FF); }
.dir-illu.coral { background: linear-gradient(135deg, #FFE0EA, #FFEDDC); }
.dir-illu.violet { background: linear-gradient(135deg, #EADFFF, #D6E4FF); }
.dir-illu.sunny { background: linear-gradient(135deg, #FFF1C5, #FFDCBF); }

/* ==================== CTA BLOCK ==================== */
.cta-block {
  background: linear-gradient(135deg, var(--violet) 0%, var(--coral) 50%, var(--sunny) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before, .cta-block::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}
.cta-block::before { width: 400px; height: 400px; background: var(--teal); top: -200px; left: -100px; }
.cta-block::after { width: 300px; height: 300px; background: var(--sunny); bottom: -150px; right: -80px; }
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255,255,255,.9); font-size: 1.15rem; margin: 20px 0 36px; }
.cta-block .btn-ghost { color: var(--ink); border-color: #fff; background: #fff; }

/* ==================== TIMELINE ==================== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 10px; bottom: 10px;
  width: 3px;
  background: linear-gradient(to bottom, var(--violet), var(--coral), var(--sunny));
  border-radius: 3px;
}

.tl-item { position: relative; padding-bottom: 44px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--violet);
  box-shadow: 0 0 0 6px rgba(124,92,255,.1);
}

.tl-item h4 { margin-bottom: 8px; }
.tl-year { font-family: var(--font-display); color: var(--coral); font-size: .95rem; font-weight: 700; letter-spacing: .05em; }

/* ==================== PARTNER CARDS ==================== */
.partner-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  transition: all .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.partner-logo {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.partner-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.tag-pharma { background: var(--violet-soft); color: var(--violet); }
.tag-med { background: var(--teal-soft); color: #008577; }
.tag-prod { background: var(--coral-soft); color: #C9365B; }
.tag-edu { background: var(--sunny-soft); color: #A87300; }
.tag-bio { background: #E5FBEE; color: #1B8A4E; }
.tag-charity { background: #FFDEDE; color: #C93838; }
.tag-retail { background: var(--sky-soft); color: #1B6AB8; }

.partner-card h4 { font-size: 1.05rem; margin-bottom: 8px; font-family: var(--font-display); }
.partner-card p { color: var(--ink-soft); font-size: .88rem; line-height: 1.55; flex: 1; }

/* ==================== EVENTS ==================== */
.event-year-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.event-year-card:hover { transform: translateY(-6px) scale(1.01); }
.event-year-card.y2026 { background: linear-gradient(135deg, #7C5CFF, #FF6B8B); }
.event-year-card.y2025 { background: linear-gradient(135deg, #00BFA5, #4AA8FF); }
.event-year-card.y2024 { background: linear-gradient(135deg, #FFC857, #FF6B8B); }
.event-year-card.y2023 { background: linear-gradient(135deg, #4AA8FF, #7C5CFF); }
.event-year-card.y2022 { background: linear-gradient(135deg, #52D6A8, #FFC857); }

.event-year-card .year-big {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.event-year-card h3 { color: #fff; margin-bottom: 10px; }
.event-year-card p { color: rgba(255,255,255,.85); font-size: .95rem; }
.event-year-card::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  top: -60px; right: -60px;
}

/* ==================== FEATURES (Cancer registry) ==================== */
.feature-row {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  transition: all .2s ease;
}
.feature-row:hover { border-color: var(--teal); background: linear-gradient(135deg, #F0FDFA, #fff); transform: translateX(4px); }

.feature-row .check {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid; place-items: center;
}
.feature-row h4 { margin-bottom: 6px; }
.feature-row p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ==================== FORM ==================== */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
  transition: all .2s;
}
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(124,92,255,.1); }
.form-row textarea { min-height: 120px; resize: vertical; }

.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-bottom: 24px; }
.check-row input { margin-top: 4px; }

/* ==================== CONTACT CARDS ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.contact-card {
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--line);
  background: #fff;
  transition: all .3s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .cc-icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.6rem;
}
.contact-card h4 { margin-bottom: 6px; }
.contact-card a { color: var(--ink-soft); font-size: 1rem; font-weight: 500; }
.contact-card a:hover { color: var(--violet); }

/* ==================== FOOTER ==================== */
.footer {
  background: linear-gradient(135deg, #1D2340, #2B2E5A);
  color: #fff;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.25), transparent 70%);
  top: -300px; right: -200px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.footer h5 { font-family: var(--font-display); font-weight: 600; margin-bottom: 18px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; }

.footer p, .footer a { color: rgba(255,255,255,.7); font-size: .92rem; }
.footer a:hover { color: var(--sunny); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }

.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand .brand-text small { color: rgba(255,255,255,.5); }

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.5);
  font-size: .84rem;
  position: relative;
  z-index: 1;
}

/* ==================== PAGE HEADER ==================== */
.page-hero {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero .blob { position: absolute; z-index: 0; }
.page-hero-content { max-width: 800px; position: relative; z-index: 1; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--violet); }
.breadcrumbs span { color: var(--line); }

/* ==================== ANIMATIONS ==================== */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}

.hero-card.c1 { animation: float 6s ease-in-out infinite; --r: 3deg; }
.hero-card.c2 { animation: float 7s ease-in-out infinite 1s; --r: -4deg; }
.hero-card.c3 { animation: float 5s ease-in-out infinite .5s; --r: 6deg; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.shown { opacity: 1; transform: translateY(0); }

/* ==================== MARQUEE ==================== */
.marquee {
  overflow: hidden;
  padding: 30px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: scroll 30s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-item::after { content: '✦'; color: var(--coral); font-size: .9rem; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 460px; }
  .direction, .direction.reverse .dir-text { grid-template-columns: 1fr; order: 0; }
  .direction { gap: 32px; }
}

@media (max-width: 720px) {
  section { padding: 70px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; padding: 32px 24px; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; padding: 20px; flex-direction: column; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-toggle { display: grid; }
  .cta-block { padding: 50px 28px; }
  .form-card { padding: 28px; }
  .hero { padding: 40px 0 80px; }
}

/* ==================== EVENTS PAGE — calendar ==================== */
.nav-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-cta-group .nav-cta {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  line-height: 1;
  white-space: nowrap;
}
.nav-cta-birthday {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sunny), var(--coral) 60%, var(--violet));
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 107, 139, 0.28);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: middle;
  /* iOS Safari tap support */
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: rgba(255, 107, 139, .3);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  border: none;
  outline: none;
}
.nav-cta-birthday:active { transform: scale(0.97); }
.nav-cta-birthday:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 107, 139, 0.38);
}
.nav-cta-birthday::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--sx, 30%) var(--sy, 30%), rgba(255,255,255,.45), transparent 55%),
              radial-gradient(circle at var(--sx2, 70%) var(--sy2, 70%), rgba(255,255,255,.3), transparent 55%);
  animation: bday-shimmer 4s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.nav-cta-birthday > * {
  position: relative;
  z-index: 1;
  pointer-events: none; /* let clicks bubble to button on iOS */
}
@keyframes bday-shimmer {
  0%, 100% { opacity: 1; background-position: 0% 0%, 100% 100%; }
  50% { opacity: .7; background-position: 100% 100%, 0% 0%; }
}

/* Year filter */
.year-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.year-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  transition: all .2s ease;
  border: 2px solid transparent;
}
.year-filter-btn:hover {
  background: var(--violet-soft);
  transform: translateY(-1px);
}
.year-filter-btn.is-active {
  background: linear-gradient(135deg, var(--violet), var(--coral));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.3);
}
.year-filter-btn .yfc {
  background: rgba(29, 35, 64, 0.08);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}
.year-filter-btn.is-active .yfc {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Year blocks */
.year-block { padding: 60px 0; }
.year-block[hidden] { display: none; }

.year-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.year-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 10% 120%, rgba(255,255,255,.2), transparent 60%);
  pointer-events: none;
}
.year-head.y2026 { background: linear-gradient(135deg, #00BFA5, #4AA8FF); }
.year-head.y2025 { background: linear-gradient(135deg, #7C5CFF, #FF6B8B); }
.year-head.y2024 { background: linear-gradient(135deg, #FFC857, #FF6B8B); }
.year-head.y2023 { background: linear-gradient(135deg, #52D6A8, #4AA8FF); }
.year-head.y2022 { background: linear-gradient(135deg, #FFB787, #7C5CFF); }
.year-big-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 6px 28px rgba(0,0,0,.12);
}
.year-head-right h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.year-head-right p { color: rgba(255,255,255,.88); margin-top: 6px; }

/* Month groups */
.month-group { margin-bottom: 44px; }
.month-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 2px dashed var(--line);
}
.month-count {
  font-size: .85rem;
  background: var(--violet-soft);
  color: var(--violet);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* Events list */
.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.event-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  align-items: start;
}
.event-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.event-date {
  padding: 14px 10px;
  border-radius: 14px;
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  min-height: 86px;
}
.event-date-main { font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; }
.event-date-sub { font-size: .75rem; opacity: .82; }
.ed-teal   { background: linear-gradient(135deg, #00BFA5, #52D6A8); }
.ed-coral  { background: linear-gradient(135deg, #FF6B8B, #FFB787); }
.ed-violet { background: linear-gradient(135deg, #7C5CFF, #4AA8FF); }
.ed-sky    { background: linear-gradient(135deg, #4AA8FF, #7C5CFF); }
.ed-sunny  { background: linear-gradient(135deg, #FFC857, #FF6B8B); }
.ed-mint   { background: linear-gradient(135deg, #52D6A8, #00BFA5); }

.event-body { display: flex; flex-direction: column; gap: 8px; }
.event-type {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 2px;
}
.event-type-teal   { background: var(--teal-soft); color: #006B5C; }
.event-type-coral  { background: var(--coral-soft); color: #A82A46; }
.event-type-violet { background: var(--violet-soft); color: #4B36B5; }
.event-type-sky    { background: var(--sky-soft); color: #1B5FA5; }
.event-type-sunny  { background: var(--sunny-soft); color: #8B6200; }
.event-type-mint   { background: #C6F4E0; color: #1F7A5A; }

.event-title {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.event-when, .event-venue, .event-meta {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.45;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.event-when svg, .event-venue svg { flex-shrink: 0; margin-top: 3px; color: var(--violet); }
.event-meta strong { color: var(--ink); font-weight: 600; }
.event-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: .82rem;
  font-weight: 600;
  color: var(--violet);
  padding: 6px 0;
}
.event-link:hover { color: var(--coral); }

/* Birthday modal */
.bday-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.bday-modal.is-open { display: flex; animation: fade-in .25s ease; }
.bday-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 35, 64, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.bday-content {
  position: relative;
  background: linear-gradient(135deg, #fff, var(--bg-soft));
  border-radius: var(--radius-lg);
  padding: 40px 30px 30px;
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 30px 80px rgba(124, 92, 255, 0.35);
  text-align: center;
  animation: pop-in .4s cubic-bezier(.17, .84, .42, 1.24);
  border: 3px solid transparent;
  background-clip: padding-box;
}
.bday-content::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-lg);
  padding: 3px;
  background: linear-gradient(135deg, var(--sunny), var(--coral), var(--violet), var(--teal));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.bday-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(29, 35, 64, 0.08);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  transition: all .2s;
  z-index: 2;
}
.bday-close:hover {
  background: var(--coral);
  color: #fff;
  transform: rotate(90deg);
}
.bday-sparkle {
  font-size: 2rem;
  margin-bottom: 12px;
  animation: wobble 2s ease-in-out infinite;
}
.bday-content h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, var(--coral), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.bday-content p { color: var(--ink-soft); margin-bottom: 20px; }
.bday-content video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 20px 50px rgba(29, 35, 64, 0.2);
  object-fit: contain;
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg) scale(1.05); }
  75% { transform: rotate(5deg) scale(1.05); }
}

/* Events page responsive */
@media (max-width: 1024px) {
  .year-head { grid-template-columns: 1fr; gap: 14px; padding: 32px; }
  .year-big-label { font-size: 4.5rem; }
}
@media (max-width: 720px) {
  .events-list { grid-template-columns: 1fr; }
  .event-item { grid-template-columns: 74px 1fr; padding: 16px; gap: 14px; }
  .event-date { min-height: 74px; padding: 10px 8px; }
  .event-date-main { font-size: .82rem; }
  .year-big-label { font-size: 3.6rem; }
  .year-head { padding: 26px; }

  /* Mobile nav — compact birthday button */
  .nav-cta-group { gap: 6px; }
  .nav-cta-group .nav-cta { height: 38px; padding: 0 12px; font-size: .8rem; }
  .nav-cta-birthday {
    height: 38px;
    width: 38px;
    padding: 0;
    font-size: 1.2rem;
    justify-content: center;
    line-height: 1;
  }
  .nav-cta-birthday .bday-label { display: none; }

  /* Mobile modal — compact, full-width on phones */
  .bday-modal { padding: 12px; align-items: flex-start; padding-top: 8vh; }
  .bday-content {
    padding: 44px 16px 20px;
    max-height: 88vh;
    border-radius: 22px;
  }
  .bday-content::before { border-radius: 22px; }
  .bday-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
    background: rgba(29, 35, 64, 0.14);
    z-index: 10;
  }
  .bday-sparkle { font-size: 1.5rem; margin-bottom: 8px; }
  .bday-content h3 { font-size: 1.4rem; margin-bottom: 6px; }
  .bday-content p { font-size: .88rem; margin-bottom: 14px; }
  .bday-content video { max-height: 54vh; border-radius: 14px; }
}
@media (max-width: 380px) {
  .nav-cta-group .nav-cta { height: 36px; padding: 0 10px; font-size: .75rem; }
  .nav-cta-birthday { height: 36px; width: 36px; font-size: 1.1rem; }
}
