/* events.vminvest.bg — публичен стил */
:root {
  --ink: #2a2c3a;
  --slate: #5e6078;
  --mist: #8a8ca3;
  --silver: #c9ccdc;
  --pale: #eef0f5;
  --line: rgba(94, 96, 120, .16);
  --white: #fff;
  --grad: linear-gradient(135deg, #c9ccdc 0%, #9a9cb4 50%, #6b6d85 100%);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(50, 52, 80, .12);
  --font: "Unbounded", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-weight: 300; color: var(--ink);
  background: #f7f8fb; line-height: 1.65; font-size: 15px; min-height: 100vh;
  position: relative; overflow-x: hidden;
}
/* Фон — сградата на 20% */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: url("../img/bg-building.jpg") center 30% / cover no-repeat;
  opacity: .2;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 248, 251, .35) 0%, rgba(247, 248, 251, .75) 45%, rgba(247, 248, 251, .92) 100%);
}
h1, h2, h3, h4 { font-weight: 300; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 200; }
h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: var(--slate); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--mist); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-size: 13px; letter-spacing: .04em; cursor: pointer; transition: .2s; }
.btn:hover { background: #3f4158; border-color: #3f4158; color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(42, 44, 58, .06); }
.btn.sm { padding: 10px 18px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(247, 248, 251, .78); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.hdr .logo img { height: 42px; width: auto; }
.hdr nav { display: flex; gap: 28px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.hdr nav a { color: var(--slate); position: relative; padding: 4px 0; }
.hdr nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ink); transition: right .25s; }
.hdr nav a:hover::after { right: 0; }
.hdr nav a.ext { color: var(--mist); }

/* Hero */
.hero { padding: 92px 0 60px; }
.hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; }
.hero p.lead { font-size: 16px; color: var(--slate); max-width: 520px; }
.hero .next { background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.hero .next .lbl { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); margin-bottom: 8px; }
.hero .next h3 { font-size: 19px; margin-bottom: 6px; }
.hero .next .meta { color: var(--slate); font-size: 13px; margin-bottom: 16px; }
.hero .next .meta span { display: block; }

/* Section titles */
.sec { padding: 40px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec-head .count { color: var(--mist); font-size: 13px; }

/* Event card */
.ev { background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 40px; scroll-margin-top: 90px; }
.ev-cover { position: relative; aspect-ratio: 21 / 9; background: var(--pale); overflow: hidden; }
.ev-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ev-cover:hover img { transform: scale(1.02); }
.ev-cover .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 22, 40, 0) 30%, rgba(20, 22, 40, .72) 100%); }
.ev-cover .title { position: absolute; left: 36px; right: 36px; bottom: 30px; color: #fff; }
.ev-cover .title h2 { color: #fff; margin: 0 0 6px; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.ev-cover .title .sub { font-size: 14px; opacity: .9; }
.ev-cover .datebox { position: absolute; top: 24px; left: 36px; background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: 14px; padding: 10px 14px; text-align: center; line-height: 1.05; min-width: 74px; }
.ev-cover .datebox b { display: block; font-size: 30px; font-weight: 300; }
.ev-cover .datebox small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-top: 4px; }
.ev-cover .badge { position: absolute; top: 24px; right: 36px; background: rgba(42, 44, 58, .85); color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.ev-body { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; padding: 36px; }
.ev-main { min-width: 0; }
.ev-desc { color: var(--slate); font-size: 15px; }
.ev-desc h2, .ev-desc h3, .ev-desc h4 { color: var(--ink); margin-top: 1.4em; }
.ev-desc img { border-radius: 12px; }
.ev-desc a { text-decoration: underline; }
.ev-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 0 0 28px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.ev-facts div { font-size: 13px; }
.ev-facts .k { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); margin-bottom: 4px; }
.ev-facts .v a { text-decoration: underline; }
.ev-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 28px 0; }
.ev-gallery a { aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--pale); }
.ev-gallery img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.ev-gallery a:hover img { transform: scale(1.05); }
.ev-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin: 24px 0; }
.ev-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ev-video { width: 100%; border-radius: 12px; margin: 24px 0; background: #000; }
.ev-map { width: 100%; height: 300px; border: 0; border-radius: 12px; margin-top: 12px; filter: saturate(.85); }
.ev-block-title { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); margin: 28px 0 10px; }

/* Signup */
.signup { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.signup h3 { font-size: 17px; margin-bottom: 4px; }
.signup .hint { color: var(--mist); font-size: 12px; margin-bottom: 18px; }
.slots { display: grid; gap: 8px; margin-bottom: 18px; }
.slot { position: relative; display: block; cursor: pointer; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot .box { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: .15s; }
.slot .box .t { font-size: 13px; }
.slot .box .t small { display: block; color: var(--mist); font-size: 11px; margin-top: 2px; }
.slot .box .n { font-size: 11px; color: var(--slate); white-space: nowrap; letter-spacing: .04em; }
.slot .box .n.low { color: #b25b2f; }
.slot .box .n.full { color: var(--mist); }
.slot input:checked + .box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fafbfd; }
.slot.full { cursor: not-allowed; opacity: .55; }
.slot .bar { height: 3px; background: var(--pale); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.slot .bar i { display: block; height: 100%; background: var(--grad); }
.f { margin-bottom: 12px; }
.f label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.f label .req { color: #b25b2f; }
.f input[type=text], .f input[type=email], .f input[type=tel], .f input[type=number], .f textarea, .f select {
  width: 100%; font: inherit; font-size: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: .15s;
}
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(94, 96, 120, .12); }
.f textarea { min-height: 84px; resize: vertical; }
.f.chk { display: flex; align-items: flex-start; gap: 10px; }
.f.chk label { text-transform: none; letter-spacing: 0; font-size: 13px; margin: 0; color: var(--slate); }
.f.chk input { margin-top: 3px; }
.consent { font-size: 11px; color: var(--mist); margin-top: 10px; line-height: 1.5; }
.signup .btn { width: 100%; justify-content: center; margin-top: 8px; }
.msg { border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 12px; display: none; }
.msg.err { display: block; background: #fbeee8; color: #8a3f1e; }
.done { text-align: center; padding: 10px 0; }
.done .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); margin: 0 auto 16px; display: grid; place-items: center; color: #fff; font-size: 26px; }
.done h3 { font-size: 18px; }
.done p { color: var(--slate); font-size: 13px; }
.done .btn { margin-top: 6px; }
.done .alt { margin-top: 10px; font-size: 12px; }
.done .alt a { text-decoration: underline; }
.closed { background: var(--pale); border-radius: 12px; padding: 18px; font-size: 13px; color: var(--slate); text-align: center; }
.hp { position: absolute; left: -9999px; }

/* Past events */
.past-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.past { background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(50, 52, 80, .08); transition: .25s; display: flex; flex-direction: column; }
.past:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.past .img { aspect-ratio: 3 / 2; background: var(--pale); position: relative; filter: saturate(.5); transition: .3s; }
.past:hover .img { filter: saturate(1); }
.past .img img { width: 100%; height: 100%; object-fit: cover; }
.past .img .tag { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 5px 10px; color: var(--slate); }
.past .txt { padding: 18px 20px 22px; }
.past .date { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); margin-bottom: 6px; }
.past h3 { font-size: 16px; margin-bottom: 4px; }
.past .loc { font-size: 12px; color: var(--slate); }
.past-detail { display: none; }
.past-detail.open { display: block; }
.empty { text-align: center; padding: 60px 20px; color: var(--mist); background: rgba(255, 255, 255, .6); border-radius: var(--radius); border: 1px dashed var(--line); }

/* Footer */
.ftr { margin-top: 60px; background: #2f3143; color: #b8bacb; padding: 56px 0 30px; font-size: 13px; }
.ftr .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.ftr img { height: 44px; width: auto; margin-bottom: 18px; }
.ftr a { color: #dfe1ec; }
.ftr a:hover { color: #fff; }
.ftr h4 { color: #fff; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.ftr p { margin: 0 0 6px; }
.ftr .bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: #8a8ca3; }
.ftr .social { display: flex; gap: 14px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(20, 22, 35, .92); display: none; align-items: center; justify-content: center; padding: 30px; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; font-family: inherit; }
.lb .nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb .nav.prev { left: 22px; } .lb .nav.next { right: 22px; }

/* Cancel / simple pages */
.simple { max-width: 560px; margin: 90px auto; background: rgba(255, 255, 255, .9); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 40px; text-align: center; }
.simple img { height: 40px; width: auto; margin: 0 auto 26px; }

@media (max-width: 960px) {
  .hero .grid, .ev-body, .ftr .cols { grid-template-columns: 1fr; }
  .signup { position: static; }
  .hero { padding: 56px 0 30px; }
}
@media (max-width: 640px) {
  .hdr nav { gap: 16px; font-size: 11px; }
  .hdr nav a.ext { display: none; }
  .hdr .logo img { height: 34px; }
  .ev-cover { aspect-ratio: 4 / 3; }
  .ev-cover .title { left: 20px; right: 20px; bottom: 18px; }
  .ev-cover .datebox { left: 20px; top: 16px; }
  .ev-cover .badge { right: 20px; top: 16px; }
  .ev-body { padding: 22px 18px; gap: 26px; }
  .simple { margin: 30px 16px; padding: 30px 22px; }
}
