/* Concursul T.E.A.M. — culorile vin de la trofeele printate 3D: albastru, galben și verde. */
:root {
  --night: #0B1B36;
  --night-2: #12284D;
  --blue: #1E56C8;
  --blue-2: #1745A3;
  --sky: #E9F0FD;
  --yellow: #F5C518;
  --yellow-2: #D9A900;
  --yellow-soft: #FFF6D4;
  --green: #1F9952;
  --green-soft: #E2F5E9;
  --ink: #14213D;
  --muted: #5A6478;
  --line: #E1E7F0;
  --soft: #F4F7FB;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(11, 27, 54, .08);
  --shadow-lg: 0 24px 60px rgba(11, 27, 54, .18);
  --head: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", "SF Mono", Menlo, monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-2); }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--night); }
h3 { font-size: 1.28rem; font-weight: 600; color: var(--night); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.soft { background: var(--soft); }
.center { text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1em;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--yellow); }
.center .kicker::after { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--yellow); }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.head { max-width: 760px; margin-bottom: 44px; }
.head.center { margin-left: auto; margin-right: auto; }
.small { font-size: .9rem; color: var(--muted); }
.pending { color: var(--muted); font-style: italic; }

/* ── butoane ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.45em;
  border: 2px solid transparent; border-radius: 10px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .15s;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--night); box-shadow: 0 8px 20px rgba(245, 197, 24, .35); }
.btn-yellow:hover { background: #FFD43B; color: var(--night); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); color: #fff; }
.btn-line { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-ghost { border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn.is-off, .btn.is-off:hover { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── logo ─────────────────────────────────────────────────── */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--night); flex-shrink: 0; }
.chip-logo { width: 46px; height: 46px; flex: 0 0 46px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.mark { display: inline-flex; align-items: baseline; font-family: var(--head); font-weight: 700; font-size: 1.75rem; letter-spacing: .04em; }
.mark i { display: inline-block; width: .2em; height: .2em; margin: 0 .07em 0 .05em; border-radius: 50%; }
.mark .d1 { background: var(--blue); } .mark .d2 { background: var(--yellow-2); } .mark .d3 { background: var(--green); }
.logo-text small { margin-top: 4px; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.logo-light { color: #fff; }
.logo-light .logo-text small { color: #9DB0CC; }
.logo-light .mark .d1 { background: #5B8DF0; } .logo-light .mark .d2 { background: var(--yellow); } .logo-light .mark .d3 { background: #3CC47A; }
@media (max-width: 420px) { .logo-text small { display: none; } .chip-logo { width: 40px; height: 40px; flex-basis: 40px; } }

/* ── antet ────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: .5em .7em; border-radius: 8px; font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); background: var(--sky); }
.nav .btn { margin-left: 8px; padding: .62em 1.1em; color: var(--night); }
.nav .btn:hover { background: #FFD43B; color: var(--night); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--night); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: .85em .6em; }
  .nav .btn { margin: 10px 0 0; }
}

/* ── prima pagină: poza mare ──────────────────────────────── */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(760px, 88vh); padding: 140px 0 72px; color: #fff; background: var(--night); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 54, .25) 0%, rgba(11, 27, 54, .55) 45%, rgba(11, 27, 54, .94) 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero .kicker { color: var(--yellow); }
.hero h1 { max-width: 900px; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero h1 em { font-style: normal; color: var(--yellow); white-space: nowrap; }
.hero .lead { color: #DCE5F3; max-width: 640px; }
.hero .lead b { color: #fff; }
.hero .credit { position: absolute; right: 20px; bottom: 14px; z-index: 1; font-size: .78rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 700px) { .hero { min-height: 0; padding: 220px 0 48px; } .hero .credit { display: none; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: var(--night-2); }
.stats div { display: flex; flex-direction: column; gap: 2px; padding: 24px 16px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .08); }
.stats div:first-child { border-left: 0; }
.stats dd { order: -1; margin: 0; font-family: var(--head); font-size: 2.6rem; font-weight: 700; line-height: 1.1; color: var(--yellow); }
.stats dt { font-size: .88rem; color: #A9BBD6; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); } }

/* ── despre ───────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; color: var(--green); }
.panel { padding: 30px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.acronym { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0 0; }
.acronym div { padding: 14px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-align: center; }
.acronym b { display: block; font-family: var(--head); font-size: 2rem; line-height: 1; color: var(--blue); }
.acronym div:nth-child(2) b { color: var(--yellow-2); } .acronym div:nth-child(3) b { color: var(--green); }
.acronym span { font-size: .85rem; color: var(--muted); }
@media (max-width: 420px) { .acronym { grid-template-columns: 1fr 1fr; } }

/* ── probe ────────────────────────────────────────────────── */
.probes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1100px) { .probes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .probes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .probes { grid-template-columns: 1fr; } }
.probe { overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.probe img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.probe div { padding: 18px 20px 22px; }
.probe .num { display: inline-block; margin-bottom: 6px; font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--blue); }
.probe h3 { margin-bottom: .35em; font-size: 1.15rem; }
.probe p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ── ediția următoare ─────────────────────────────────────── */
.next-card { display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border-radius: 22px; background: var(--night); color: #CFDAEA; box-shadow: var(--shadow-lg); }
.next-card > div { padding: 44px 44px 40px; }
.next-card h2 { color: #fff; }
.next-card .kicker { color: var(--yellow); }
.next-card img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.facts { display: grid; gap: 12px; margin: 22px 0 0; }
.facts div { display: flex; gap: 12px; align-items: center; }
.facts svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--yellow); }
.facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.facts dd { margin: 0; font-weight: 600; color: #fff; }
.facts dd.pending { color: #A9BBD6; }
.next-card .btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.next-card .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 880px) { .next-card { grid-template-columns: 1fr; } .next-card img { min-height: 0; aspect-ratio: 16 / 9; order: -1; } }
@media (max-width: 600px) { .next-card > div { padding: 30px 22px; } }

/* ── galerii ──────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gallery li { margin: 0; }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--soft); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
.gallery .wide a { height: 100%; }
.gallery .wide img { height: 100%; aspect-ratio: auto; }
.gallery .poster img { object-fit: contain; background: #fff; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; gap: 8px; } }

.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 13, 28, .94); color: #fff; }
.lb::backdrop { background: rgba(6, 13, 28, .7); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: calc(100vw - 140px); }
.lb img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 6px; }
.lb figcaption { display: flex; justify-content: space-between; gap: 20px; width: 100%; margin-top: 12px; font-size: .95rem; color: #D5DEEC; }
.lb-count { font-family: var(--mono); color: #9DB0CC; white-space: nowrap; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lb figure { max-width: 100vw; padding: 0 8px; }
  .lb figcaption { padding: 0 6px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

/* ── organizatori și sponsori ─────────────────────────────── */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .partners { grid-template-columns: 1fr; } }
.partners > div { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.partners h3 { font-size: 1rem; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.partners ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.partners li { padding-left: 16px; position: relative; }
.partners li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow-2); }
.partners li span { display: block; font-size: .88rem; color: var(--muted); }

/* ── susține ──────────────────────────────────────────────── */
.support { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%); color: #DCE6FA; }
.support h2 { color: #fff; }
.support .kicker { color: var(--yellow); }
.support .lead { color: #DCE6FA; }
.support .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
@media (max-width: 760px) { .support .grid2 { grid-template-columns: 1fr; } }
.support .box { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.support .box h3 { color: #fff; }
.support .box p { color: #DCE6FA; }

/* ── contact ──────────────────────────────────────────────── */
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list div { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.contact-list svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--blue); }
.contact-list dt { min-width: 92px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ── pagina edițiilor ─────────────────────────────────────── */
.page-hero { padding: 72px 0 56px; background: var(--night); color: #CFDAEA; }
.page-hero h1 { color: #fff; }
.page-hero .kicker { color: var(--yellow); }
.page-hero .lead { color: #C3D0E4; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.jump a { padding: .45em 1em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-family: var(--mono); font-weight: 700; text-decoration: none; }
.jump a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.edition { padding: 72px 0; border-bottom: 1px solid var(--line); }
.edition:nth-of-type(even) { background: var(--soft); }
.ed-head { display: grid; grid-template-columns: 150px 1fr; gap: 36px; margin-bottom: 30px; }
.ed-year { font-family: var(--head); font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--blue); }
.ed-year small { display: block; margin-top: 8px; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ed-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.ed-head p:last-child { margin-bottom: 0; }
.result { padding: 12px 16px; border-radius: 10px; background: var(--green-soft); color: #1C5B36; }
.result b { color: #154829; }
.towns { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1em; padding: 0; list-style: none; }
.towns li { padding: .2em .7em; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 700px) { .ed-head { grid-template-columns: 1fr; gap: 10px; } .ed-year { font-size: 2.6rem; } }
.older { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .older { grid-template-columns: 1fr; } }
.older article { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.older .ed-year { font-size: 2.4rem; }
.older h3 { margin-top: 10px; }
.older p { color: var(--muted); font-size: .96rem; }

/* ── subsol ───────────────────────────────────────────────── */
.foot { padding: 60px 0 26px; background: var(--night); color: #A9BBD6; font-size: .95rem; }
.foot h4 { margin: 0 0 14px; font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot a { color: #DCE5F3; text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.foot p { margin-top: 18px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; gap: 36px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #8396B3; }
.foot-bottom a { color: #C9D5E8; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
