/* ============================================================
   Veteran · Афіша — shared public site styles
   "Still water" calm palette: navy + sage lead (one cool temperature),
   muted clay reserved for support/donation moments as a grace note.
   Type: Onest (body/UI) + Unbounded (display headings, Ukrainian-designed).
   Mobile-first; scales up to a 1280px content container.
   ============================================================ */
:root{
  --bg:#F3F5F3;
  --surface:#FFFFFF;
  --surface-alt:#E9EEEB;
  --border:#DCE3DF;
  --border-strong:#C5CEC9;

  --ink:#1C2530;
  --ink-muted:#4E5C68;
  --ink-subtle:#606E78;

  --primary:#2D3A4A;
  --primary-hover:#3A4A5E;
  --primary-soft:#E5EAEE;

  --sage:#9FB1AB;
  --sage-deep:#5A6F68;
  --sage-soft:#EAF0ED;

  --warm:#A0735C;
  --warm-hover:#8E6450;
  --warm-soft:#F1E8E2;

  --success:#4A7B60;
  --danger:#A85151;

  --font-display:'Unbounded','Onest',-apple-system,system-ui,sans-serif;

  --maxw:1280px;
  --readw:760px;     /* narrow single-column reading/form width (article, add-event, about hero) */
  --card-px:24px;    /* interior left/right padding for large content cards */
  --radius:16px;
  --shadow-sm:0 1px 2px rgba(15,20,25,.04);
  --shadow-md:0 8px 24px rgba(15,20,25,.08);
  --shadow-lg:0 16px 40px -16px rgba(15,20,25,.22);
}
*{box-sizing:border-box}
html,body{margin:0; background:var(--bg); color:var(--ink);
  font-family:'Onest',-apple-system,system-ui,sans-serif}
body{font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased; overflow-x:hidden}
a{color:inherit; text-decoration:none}
button{font:inherit; cursor:pointer}
img{max-width:100%; display:block}
h1,h2,h3,h4,h5{margin:0}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0}
/* comfortable side gutter on phones + tablets (where the mobile menu shows); flush on wide desktop */
@media(max-width:979px){ .wrap{padding:0 20px} }

/* ============ TOP BAR ============ */
.topbar{
  background:rgba(255,255,255,.9); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:1002;
}
.topbar .wrap{display:flex; align-items:center; gap:16px; height:64px}
.brand{display:flex; align-items:center; gap:11px; flex:none}
.logo{
  width:38px; height:38px; border-radius:11px;
  background:linear-gradient(180deg,#3D4F62,#1B2330); color:#fff;
  display:grid; place-items:center; font-weight:800; font-size:19px; letter-spacing:-.2px;
}
.brand .name{font-size:19px; font-weight:800; letter-spacing:-.3px; display:flex; align-items:center; gap:8px}
.brand .name .tag{
  font-size:11px; font-weight:700; letter-spacing:.4px; text-transform:uppercase;
  color:var(--sage-deep); background:var(--sage-soft); padding:3px 8px; border-radius:7px;
}
.nav{display:flex; flex-wrap:wrap; gap:2px; margin-left:6px}
@media(max-width:979px){ .nav{display:none} }  /* below 980 the nav lives in the .mnav drawer */
.nav a{
  padding:9px 14px; min-height:44px; border-radius:9px; font-size:14.5px; font-weight:600; color:var(--ink-muted);
  display:flex; align-items:center; gap:6px; white-space:nowrap; transition:background .12s,color .12s;
}
.nav a:hover{background:var(--surface-alt); color:var(--ink)}
.nav a.on{color:var(--primary); background:var(--primary-soft); font-weight:700}
.top-actions{margin-left:auto; display:flex; align-items:center; gap:10px}
.ghost-btn{
  height:44px; padding:0 16px; border-radius:11px;
  background:transparent; border:1px solid var(--border-strong); color:var(--ink);
  font-size:14px; font-weight:700; white-space:nowrap;
  display:none; align-items:center; gap:7px; transition:background .12s,border-color .12s;
}
@media(min-width:600px){ .ghost-btn{display:flex} }
.ghost-btn:hover{background:var(--surface-alt)}
.login-btn{
  height:42px; padding:0 20px; border-radius:11px;
  background:var(--primary); border:0; color:#fff; font-size:14px; font-weight:700;
  display:flex; align-items:center; gap:7px; transition:background .12s;
}
.login-btn:hover{background:var(--primary-hover)}
.menu-btn{
  width:44px; height:44px; border-radius:11px; border:1px solid var(--border-strong);
  background:transparent; display:grid; place-items:center; color:var(--ink);
}
@media(min-width:980px){ .menu-btn{display:none} }
/* mobile drawer (rendered below the bar inside .topbar; sticky-friendly accordion) */
.mnav{
  display:none; flex-direction:column; gap:2px;
  border-top:1px solid var(--border); padding:8px 20px 14px;
  animation:mnav-in .2s cubic-bezier(.2,.7,.3,1);
}
.mnav.open{display:flex}
.mnav a{
  padding:12px 8px; min-height:48px; display:flex; align-items:center;
  font-size:16px; font-weight:700; color:var(--ink-muted); border-radius:10px;
}
.mnav a:hover{background:var(--surface-alt); color:var(--ink)}
.mnav a.on{color:var(--primary); background:var(--primary-soft)}
.mnav .mnav-cta{margin-top:8px; justify-content:center; gap:8px; min-height:48px; background:var(--primary); color:#fff}
.mnav .mnav-cta:hover{background:var(--primary-hover); color:#fff}
@keyframes mnav-in{from{opacity:0; transform:translateY(-6px)} to{opacity:1; transform:none}}
@media(min-width:980px){ .mnav{display:none !important} }

/* ============ BUTTONS ============ */
.btn{
  background:var(--primary); color:#fff; border:0;
  padding:10px 16px; border-radius:10px; font-size:14px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  letter-spacing:-.1px; transition:background .12s; white-space:nowrap;
}
.btn:hover{background:var(--primary-hover)}
.btn.warm{background:var(--warm)}
.btn.warm:hover{background:var(--warm-hover)}
.btn.soft{background:var(--primary-soft); color:var(--primary)}
.btn.soft:hover{background:#D7DEE5}
.btn.lg{padding:13px 22px; font-size:15.5px; border-radius:12px}
.btn.block{width:100%}
.btn.ghost{background:transparent; border:1px solid var(--border-strong); color:var(--ink)}
.btn.ghost:hover{background:var(--surface-alt)}

/* ============ SECTION HEADERS ============ */
.section{padding-block:44px}
@media(min-width:768px){ .section{padding-block:56px} }
.section-h{display:flex; align-items:flex-end; gap:14px; margin-bottom:22px}
.section-h .tt{display:flex; flex-direction:column; gap:5px}
.section-h .kicker{
  font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:var(--sage-deep);
}
.section-h h2{font-family:var(--font-display); font-size:24px; font-weight:800; letter-spacing:-.01em; color:var(--ink)}
@media(min-width:768px){ .section-h h2{font-size:28px} }
.section-h .grow{flex:1}
.section-h .more{
  font-size:14px; font-weight:700; color:var(--ink-muted);
  display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:9px; white-space:nowrap;
}
.section-h .more:hover{background:var(--surface-alt); color:var(--ink)}

/* ============ EVENT CARD ============ */
.grid{display:grid; gap:18px; grid-template-columns:1fr}
@media(min-width:640px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media(min-width:980px){ .grid{grid-template-columns:repeat(3,1fr); gap:20px} }
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .15s,box-shadow .15s; box-shadow:var(--shadow-sm);
}
.card:hover{transform:translateY(-2px); box-shadow:var(--shadow-md)}
.card .cover{position:relative; aspect-ratio:5/3; overflow:hidden; background:var(--surface-alt)}
.card .cover img{width:100%; height:100%; object-fit:cover; transition:transform .4s}
.card:hover .cover img{transform:scale(1.04)}
.pill-cover{
  position:absolute; top:12px; left:12px;
  background:rgba(255,255,255,.95); backdrop-filter:blur(8px);
  padding:5px 10px; border-radius:999px; font-size:11.5px; font-weight:700;
  display:flex; align-items:center; gap:5px; color:var(--ink);
}
.pill-cover .sw{width:6px; height:6px; border-radius:50%}
.src-tag{
  position:absolute; bottom:12px; right:12px;
  background:rgba(27,35,48,.85); color:#fff; backdrop-filter:blur(8px); padding:4px 9px; border-radius:999px;
  font-size:10.5px; font-weight:800; letter-spacing:.4px; text-transform:uppercase;
  display:flex; align-items:center; gap:5px;
}
.card .datechip{
  position:absolute; bottom:12px; left:12px;
  background:rgba(27,35,48,.85); color:#fff; backdrop-filter:blur(8px);
  border-radius:10px; padding:6px 10px; display:flex; gap:10px; align-items:center;
}
.datechip .d{font-size:20px; font-weight:800; line-height:1; letter-spacing:-.3px}
.datechip .m{font-size:10px; text-transform:uppercase; letter-spacing:.4px; opacity:.9; font-weight:700}
.datechip .wk{font-size:10px; opacity:.7; font-weight:600}
.card .body{padding:16px 18px; display:flex; flex-direction:column; gap:8px; flex:1}
.card .title{
  font-size:16.5px; font-weight:700; letter-spacing:-.2px; line-height:1.3; color:var(--ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.card .desc{
  font-size:13.5px; color:var(--ink-muted); line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.card .meta{display:flex; flex-direction:column; gap:4px; font-size:12.5px; color:var(--ink-muted)}
.card .meta span{display:flex; align-items:center; gap:6px; min-width:0}
.card .meta span .t{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.card .foot{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:12px; margin-top:auto; border-top:1px solid var(--border);
}
.card .foot .foot-left{display:flex; align-items:center; gap:11px; min-width:0}
.src-foot{display:inline-flex; align-items:center; gap:6px; flex:none;
  font-size:10.5px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; color:var(--sage-deep)}
.src-foot .v{width:6px; height:6px; border-radius:50%; background:var(--sage); flex:none}
.avatars{display:flex; align-items:center}
.avatars .av{width:24px; height:24px; border-radius:50%; border:2px solid var(--surface);
  background-size:cover; background-position:center; margin-left:-7px}
.avatars .av:first-child{margin-left:0}
.going{font-size:12px; color:var(--ink-muted); margin-left:6px}
.going b{color:var(--ink); font-weight:700}

/* ============ FOUNDATION BANNER (reusable) ============ */
.fbanner{
  background:linear-gradient(165deg,#3D4F62 0%,#1B2330 100%);
  border-radius:22px; overflow:hidden; color:#fff; position:relative;
  display:grid; grid-template-columns:1fr; align-items:stretch;
}
@media(min-width:860px){ .fbanner{grid-template-columns:1.3fr 1fr} }
.fbanner::before{
  content:''; position:absolute; top:-90px; left:-40px; width:320px; height:320px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%,rgba(156,174,169,.26),transparent 62%);
}
.fbanner .txt{position:relative; padding:36px 28px}
@media(min-width:768px){ .fbanner .txt{padding:44px 48px} }
.fbanner .k{
  display:inline-flex; align-items:center; gap:7px;
  font-size:12px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--sage); margin-bottom:14px;
}
.fbanner h3{font-family:var(--font-display); font-size:26px; font-weight:800; letter-spacing:-.01em; line-height:1.15; margin-bottom:12px; text-wrap:balance}
@media(min-width:768px){ .fbanner h3{font-size:30px} }
.fbanner p{font-size:15.5px; opacity:.82; line-height:1.55; margin-bottom:24px; max-width:480px}
.fbanner .b1{
  height:50px; padding:0 26px; border-radius:13px; border:0;
  background:var(--sage); color:var(--primary); font-size:15px; font-weight:800;
  display:inline-flex; align-items:center; gap:8px; transition:background .12s;
}
.fbanner .b1:hover{background:#B5C5C0}
.fbanner .ph{position:relative; min-height:200px; background:rgba(255,255,255,.04)}
.fbanner .ph img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.fbanner .ph .ill{
  position:absolute; inset:0; display:grid; place-items:center; color:rgba(255,255,255,.5);
  font-family:ui-monospace,monospace; font-size:12px; letter-spacing:.3px;
  background:repeating-linear-gradient(135deg,rgba(255,255,255,.04) 0 10px,transparent 10px 20px);
}

/* ============ FOOTER ============ */
footer{background:var(--surface); border-top:1px solid var(--border); margin-top:20px}
.footer-in{
  display:grid; grid-template-columns:1fr; gap:32px; padding:48px 0 36px;
}
@media(min-width:640px){ .footer-in{grid-template-columns:repeat(2,1fr)} }
@media(min-width:980px){ .footer-in{grid-template-columns:1.7fr 1fr 1fr 1fr} }
.footer-in .col-brand .brand{margin-bottom:14px}
.footer-in .col-brand .dh-logo{display:inline-block; margin-bottom:16px}
.footer-in .col-brand .dh-logo img{display:block; height:32px; width:auto}
.footer-in .col-brand .dh-logo:hover{opacity:.82; transition:opacity .12s}
.footer-in .col-brand p{font-size:14px; color:var(--ink-muted); line-height:1.6; max-width:320px; margin-bottom:16px}
.footer-social{display:flex; gap:8px}
/* scoped under .footer-in so this wins over the later, equal-specificity .footer-col a rule */
.footer-in .footer-social a{
  width:44px; height:44px; border-radius:11px; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; gap:0; padding:0;
  color:var(--ink-muted); transition:background .12s,color .12s;
}
.footer-in .footer-social a:hover{background:var(--surface-alt); color:var(--ink)}
.footer-col h5{font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--ink-muted); margin-bottom:14px}
.footer-col a{display:flex; align-items:center; gap:7px; font-size:14px; font-weight:600; color:var(--ink-muted); padding:5px 0}
.footer-col a:hover{color:var(--ink)}
.footer-col a .dh{
  font-size:9.5px; font-weight:800; letter-spacing:.3px; text-transform:uppercase;
  color:var(--warm); background:var(--warm-soft); padding:2px 6px; border-radius:6px;
}
.footer-bottom{
  border-top:1px solid var(--border); padding:18px 0;
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px;
  font-size:13px; color:var(--ink-muted); font-weight:600;
}
.footer-bottom .grow{flex:1}

/* ============ CAROUSEL (horizontal scroll) ============ */
.carousel{
  display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding:4px 20px 14px; margin:0 -20px; -webkit-overflow-scrolling:touch;
}
@media(min-width:768px){ .carousel{padding:4px 32px 14px; margin:0 -32px} }
.carousel::-webkit-scrollbar{height:8px}
.carousel::-webkit-scrollbar-thumb{background:var(--border-strong); border-radius:8px}
.carousel > *{scroll-snap-align:start; flex:none}

/* ============ CATEGORY TILE ============ */
.cat-tile{
  width:200px; border-radius:16px; padding:20px; border:1px solid var(--border);
  display:flex; flex-direction:column; gap:12px; position:relative; overflow:hidden;
  transition:transform .15s,box-shadow .15s; min-height:148px;
}
.cat-tile:hover{transform:translateY(-2px); box-shadow:var(--shadow-md)}
.cat-tile .ic{width:46px; height:46px; border-radius:13px; display:grid; place-items:center; color:#fff}
.cat-tile .nm{font-size:18px; font-weight:800; letter-spacing:-.3px; color:var(--ink)}
.cat-tile .ct{font-size:13px; font-weight:600; color:var(--ink-muted); margin-top:auto}
.cat-tile .arrow{position:absolute; top:20px; right:20px; color:var(--ink-subtle); transition:transform .15s,color .15s}
.cat-tile:hover .arrow{transform:translate(2px,-2px); color:var(--ink)}

/* ============ ARTICLE CARD ============ */
.acard{
  width:320px; max-width:80vw;
  background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden;
  display:flex; flex-direction:column; box-shadow:var(--shadow-sm); transition:transform .15s,box-shadow .15s;
}
.acard.full{width:auto; max-width:none}
.acard:hover{transform:translateY(-2px); box-shadow:var(--shadow-md)}
.acard .cover{position:relative; aspect-ratio:16/9; overflow:hidden; background:var(--surface-alt)}
.acard .cover img{width:100%; height:100%; object-fit:cover; transition:transform .4s}
.acard:hover .cover img{transform:scale(1.04)}
.acard .cat{
  position:absolute; top:12px; left:12px; background:rgba(255,255,255,.95); backdrop-filter:blur(8px);
  padding:5px 10px; border-radius:999px; font-size:11px; font-weight:700; color:var(--ink);
  display:flex; align-items:center; gap:5px;
}
.acard .body{padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1}
.acard .body .t{font-size:17px; font-weight:800; letter-spacing:-.2px; line-height:1.3; color:var(--ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.acard .body .d{font-size:13.5px; color:var(--ink-muted); line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.acard .body .foot{display:flex; align-items:center; justify-content:flex-end; margin-top:auto; padding-top:10px}
.acard .body .read{font-size:13px; font-weight:700; color:var(--primary); display:inline-flex; align-items:center; gap:6px}
.acard .body .src{font-size:11px; font-weight:800; letter-spacing:.3px; text-transform:uppercase; color:var(--sage-deep)}

/* ============ PARTNERS ============ */
.partners{display:flex; flex-wrap:wrap; gap:12px}
.partner{
  display:flex; align-items:center; gap:12px; padding:14px 16px;
  border:1px solid var(--border); border-radius:14px; background:var(--surface); min-width:200px; flex:1;
}
.partner .icon{
  width:42px; height:42px; border-radius:11px; background:var(--bg); border:1px solid var(--border);
  display:grid; place-items:center; color:var(--ink); font-weight:800; font-size:15px; letter-spacing:-.5px; flex:none;
}
.partner .nm{font-size:14px; font-weight:700; color:var(--ink); line-height:1.3}
.partner .role{font-size:11.5px; color:var(--ink-muted); margin-top:2px; font-weight:600}

/* ============ FORM ============ */
.field{display:flex; flex-direction:column; gap:7px}
.field label{font-size:12.5px; font-weight:700; color:var(--ink); letter-spacing:.1px}
.field label .opt{color:var(--ink-muted); font-weight:600}
.input, .textarea, .select{
  width:100%; border:1px solid var(--border); background:var(--surface); border-radius:11px;
  padding:12px 14px; font:inherit; font-size:14.5px; color:var(--ink); outline:0; transition:border-color .12s,box-shadow .12s;
}
.input:focus, .textarea:focus, .select:focus{border-color:var(--sage-deep); box-shadow:0 0 0 3px rgba(110,131,125,.16)}
.input::placeholder, .textarea::placeholder{color:var(--ink-muted)}
.textarea{resize:vertical; min-height:96px; line-height:1.5}
.select{appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237B8794' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; padding-right:38px}
.dropzone{
  border:1.5px dashed var(--border-strong); border-radius:12px; background:var(--bg);
  padding:22px; text-align:center; color:var(--ink-subtle); display:flex; flex-direction:column; align-items:center; gap:8px;
}
.dropzone .ic{width:40px; height:40px; border-radius:11px; background:var(--surface); border:1px solid var(--border); display:grid; place-items:center; color:var(--ink-muted)}
.dropzone .mn{font-size:12px; color:var(--ink-muted)}
.dropzone b{color:var(--ink); font-weight:700; font-size:13.5px}

/* ============ TAGS / PILLS ============ */
.pill{
  display:inline-flex; align-items:center; gap:5px; padding:4px 11px; border-radius:999px;
  font-size:12.5px; font-weight:700;
}
.chip{
  display:inline-flex; align-items:center; gap:6px; min-height:38px;
  background:var(--surface); border:1px solid var(--border); padding:8px 14px; border-radius:999px;
  font-size:13.5px; font-weight:700; color:var(--ink-muted); transition:background .12s,color .12s,border-color .12s; cursor:pointer;
}
.chip:hover{background:var(--surface-alt); color:var(--ink)}
.chip.on{background:var(--primary-soft); color:var(--primary); border-color:var(--border-strong)}

/* ============ BREADCRUMB ============ */
.crumb{
  color:var(--ink-muted); font-size:12.5px; display:flex; align-items:center; gap:7px; flex-wrap:wrap;
  text-transform:uppercase; letter-spacing:.4px; font-weight:700; padding:18px 0 0;
}
.crumb a:hover{color:var(--ink)}
.crumb .here{color:var(--ink); text-transform:none; letter-spacing:0;
  max-width:60vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

/* leaflet tweaks */
.leaflet-control-attribution{font-size:10px !important; background:rgba(255,255,255,.7) !important}
.leaflet-bar a{background:var(--surface) !important; color:var(--ink) !important; border-color:var(--border) !important}
.vmarker{width:34px; height:42px; filter:drop-shadow(0 4px 8px rgba(0,0,0,.25)); position:relative}
.vmarker svg{position:absolute; inset:0}
.vmarker .num{position:absolute; top:9px; left:0; right:0; text-align:center; font-size:12px; font-weight:800}
.ulocation{width:16px; height:16px; border-radius:50%; background:var(--primary); border:3px solid #fff; box-shadow:0 0 0 8px rgba(45,58,74,.18)}
.ulocation-label{background:var(--primary); color:#fff; padding:4px 10px; border-radius:8px; font-size:11px; font-weight:700; white-space:nowrap}

/* ============ CALM PALETTE: ACTION/ACCENT ROLES ============
   Primary, attend and submit actions lead with navy so the page reads as one
   cool temperature. Clay (--warm) is held back for support/donation context
   and quiet info accents (prices, stats), where warmth means humanity. */
.btn.warm{background:var(--primary)}
.btn.warm:hover{background:var(--primary-hover)}

/* ============ REDUCED MOTION (site-wide) ============
   Honour prefers-reduced-motion everywhere: neutralise hover transitions,
   transforms, and smooth-scroll for users who ask for less movement. */
@media (prefers-reduced-motion: reduce){
  *, ::before, ::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}
