:root {
  --page-bg: #f8f2e7;
  --text-main: #1d2a30;
  --text-muted: #5c6a70;
  --surface: rgba(255, 250, 243, 0.88);
  --surface-strong: #fffaf2;
  --line: rgba(29, 42, 48, 0.08);
  --shadow: 0 28px 70px rgba(41, 55, 64, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(234, 168, 89, 0.35), transparent 24%),
    radial-gradient(circle at top right, rgba(71, 137, 132, 0.28), transparent 26%),
    linear-gradient(180deg, #f4ecde 0%, #f8f2e7 45%, #efe5d4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 82%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  margin: 0 auto 34px;
  max-width: 760px;
  padding: 10px 10px 4px;
  text-align: center;
}

.hero::after {
  display: none;
}

.hero-kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: #8b5d2c;
}

.hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.92;
  font-weight: 800;
}

.card-gallery {
  display: grid;
  width: min(100%, 1180px);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "featured side-top"
    "side-bottom side-bottom";
  gap: 22px;
  align-items: stretch;
}

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  isolation: isolate;
  height: 100%;
}

#kaart-1 {
  grid-area: featured;
  width: 100%;
  justify-self: stretch;
}

#kaart-2 {
  grid-area: side-top;
  width: 100%;
  justify-self: stretch;
}

#kaart-3 {
  grid-area: side-bottom;
  width: 100%;
  justify-self: stretch;
}

#kaart-1 .program-logo,
#kaart-2 .program-logo {
  min-height: 220px;
}

#kaart-1 .screenshot-slot,
#kaart-2 .screenshot-slot {
  min-height: 152px;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 38%);
  pointer-events: none;
  z-index: -1;
}

.program-card::after {
  content: attr(data-card);
  position: absolute;
  inset: 12px 12px auto auto;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(29, 42, 48, 0.08);
  color: var(--accent);
  font-family: "Poppins", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 28px rgba(41, 55, 64, 0.12);
  pointer-events: none;
  z-index: 0;
}

.amber-card {
  --accent: #d88d3b;
  --accent-soft: rgba(216, 141, 59, 0.15);
}

.teal-card {
  --accent: #347f7a;
  --accent-soft: rgba(52, 127, 122, 0.16);
}

.coral-card {
  --accent: #c96254;
  --accent-soft: rgba(201, 98, 84, 0.15);
}

.card-header {
  display: grid;
  gap: 8px;
}

.card-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.card-header h2 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.05;
}

.card-header h2 span {
  color: var(--text-muted);
  font-weight: 600;
}

.card-subtitle {
  margin: 0;
  min-height: 2.8em;
  color: var(--text-muted);
  line-height: 1.55;
}

.program-logo {
  display: grid;
  place-items: center;
  min-height: 164px;
  padding: 22px;
  border: 1px dashed rgba(29, 42, 48, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(255, 250, 243, 0.6)),
    var(--accent-soft);
  text-align: center;
}

.program-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  min-height: 110px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-weight: 700;
  line-height: 1.35;
}

.drawio-logo-wrap {
  border-style: solid;
  border-color: rgba(216, 141, 59, 0.18);
  background: #ffffff;
}

.drawio-logo-wrap img {
  width: min(100%, 4000px);
  height: auto;
  display: block;
  padding: 12px;
  background: #ffffff;
  border-radius: 22px;
}

.zoomable-image {
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.zoomable-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(41, 55, 64, 0.16);
}

.card-section {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(29, 42, 48, 0.06);
}

.card-section h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.detail-list li+li {
  margin-top: 8px;
}

.detail-list strong {
  color: var(--text-main);
}

.section-text {
  margin: 0 0 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.feature-pills li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(216, 141, 59, 0.12);
  border: 1px solid rgba(216, 141, 59, 0.14);
  color: #9a5c18;
  font-size: 0.94rem;
  font-weight: 700;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.screenshot-slot {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 118px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(29, 42, 48, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(242, 234, 221, 0.85));
  color: var(--accent);
  font-weight: 700;
  text-align: center;
}

.screenshot-card {
  align-content: start;
  gap: 12px;
  padding: 12px;
  place-items: stretch;
}

.screenshot-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 14px;
  box-shadow: 0 16px 28px rgba(41, 55, 64, 0.14);
}

.screenshot-card figcaption {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(19, 28, 34, 0.78);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.image-lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  display: block;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #1d2a30;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 980px) {
  .card-gallery {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "featured side-top"
      "side-bottom side-bottom";
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 680px);
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .hero {
    padding: 8px 4px 0;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .card-gallery {
    grid-template-columns: 1fr;
    grid-template-areas:
      "featured"
      "side-top"
      "side-bottom";
  }

  #kaart-1 {
    width: 100%;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}

/*Mariia Posvystak*/
#mariia-section {
  --mg:   #d4a843;
  --mg2:  #f0c968;
  --mg3:  #8a6820;
  --mb:   #000000;
  --mb2:  #0a0a0a;
  --mb3:  #0f0f0f;
  --mb4:  #181818;
  --mt:   #f5f0e8;
  --muted:#7a7060;
  --bdr:  rgba(212,168,67,0.18);
  --bdr2: rgba(212,168,67,0.38);

  font-family: 'Montserrat', sans-serif;
  background: var(--mb);
  color: var(--mt);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

/* Grid texture */
#mariia-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
          repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(212,168,67,0.035) 79px, rgba(212,168,67,0.035) 80px),
          repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(212,168,67,0.035) 79px, rgba(212,168,67,0.035) 80px);
  pointer-events: none;
}

/* Glow TR */
#mariia-section::after {
  content: '';
  position: absolute;
  top: -300px; right: -300px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(212,168,67,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.m-glow-bl {
  position: absolute;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,168,67,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.m-wrap {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── ORNAMENT ── */
.m-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}
.m-ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mg), transparent);
}
.m-ornament-diamond {
  width: 9px; height: 9px;
  background: var(--mg);
  transform: rotate(45deg);
}
.m-ornament-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mg);
}

/* ── HERO ── */
.m-hero {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.m-overline {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mg);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.m-overline::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--mg);
}

.m-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.m-h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--mg3) 0%, var(--mg) 40%, var(--mg2) 70%, var(--mg) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.m-subtitle {
  font-size: 0.87rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  max-width: 480px;
}

/* Logo box */
.m-logo-box {
  width: 160px; height: 160px;
  background: var(--mb3);
  border: 1px solid var(--bdr2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  clip-path: polygon(14px 0%, 100% 0%, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0% 100%, 0% 14px);
}
.m-logo-box::before,
.m-logo-box::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
}
.m-logo-box::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--mg);
  border-left: 2px solid var(--mg);
}
.m-logo-box::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--mg);
  border-right: 2px solid var(--mg);
}

/* ── DIVIDER ── */
.m-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}
.m-divider-line { flex:1; height:1px; background: var(--bdr); }
.m-divider-dots { display:flex; gap:5px; }
.m-divider-dots span {
  display:block; width:5px; height:5px;
  background: var(--mg3);
  transform: rotate(45deg);
}
.m-divider-dots span:nth-child(2) { background: var(--mg); }

/* ── CARDS ── */
.m-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 2px;
}
.m-card {
  background: var(--mb3);
  border: 1px solid var(--bdr);
  padding: 36px;
  position: relative;
  transition: border-color 0.4s;
}
.m-card.full { grid-column: 1 / -1; }
.m-card:hover { border-color: var(--bdr2); }
.m-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mg), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.m-card:hover::before { opacity: 1; }

.m-card-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mg);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.m-card-tag::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--bdr);
}

.m-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--mt);
}
.m-card p {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

/* ── TIMELINE ── */
.m-tl { list-style:none; padding:0; margin:0; }
.m-tl li {
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid var(--bdr);
}
.m-tl li:last-child { border-bottom: none; }
.m-yr {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--mg);
  padding-top: 2px;
}
.m-ev {
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.72;
  padding-left: 16px;
  border-left: 1px solid var(--bdr2);
}
.m-ev strong {
  display: block;
  color: var(--mt);
  font-weight: 500;
  font-size: 0.87rem;
  margin-bottom: 3px;
}

/* ── FEATURES ── */
.m-feats { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:0; }
.m-feats li {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--bdr);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.m-feats li::before {
  content: '◆';
  font-size: 0.42rem;
  color: var(--mg);
  flex-shrink: 0;
  margin-top: 5px;
}

/* ── SCREENSHOTS ── */
.m-shots { display:grid; grid-template-columns:1fr 1fr; gap:2px; }
.m-shot {
  background: var(--mb2);
  border: 1px solid var(--bdr);
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.m-shot:hover { border-color: var(--bdr2); }
.m-shot-inner {
  width:100%; height:100%;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.m-shot-bar {
  height: 7px;
  background: linear-gradient(90deg, var(--mg3), var(--mg), var(--mg2), var(--mg));
  opacity: 0.65;
  margin-bottom: 7px;
}
.m-shot-toolbar {
  height: 5px;
  background: rgba(212,168,67,0.07);
  margin-bottom: 9px;
  width: 70%;
}
.m-shot-cap {
  position: absolute;
  bottom:0; left:0; right:0;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  padding: 20px 12px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mg);
}

/* ── FOOTER ── */
.m-footer {
  margin-top: 60px;
  text-align: center;
}
.m-drow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.m-drow span {
  display: block;
  width: 5px; height: 5px;
  background: var(--mg3);
  transform: rotate(45deg);
}
.m-drow span:nth-child(3) {
  width: 10px; height: 10px;
  background: var(--mg);
}
.m-footer p {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 680px) {
  .m-hero { grid-template-columns: 1fr; }
  .m-logo-box { width:100px; height:100px; }
  .m-grid, .m-feats, .m-shots { grid-template-columns: 1fr; }
  .m-card.full { grid-column: 1; }
}
