/* ==========================================================================
   STABIL ENGINEERING — Conference landing page
   Bootstrap 5 override / custom theme
   Palette taken from the StabilENG brand (indigo + orange/red diamond mark)
   ========================================================================== */
:root{
  --ink:#141235;
  --indigo:#2b2870;
  --indigo-2:#37327f;
  --indigo-3:#211d55;
  --violet:#4b3fae;
  --orange:#f7941e;
  --red:#ed1c24;
  --blue:#2e6fdb;
  --paper:#f4f4f7;
  --muted:#6a6a86;
  --line:rgba(20,18,53,.10);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Mulish',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  color:var(--ink);
  background:var(--paper);
  margin:0;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,.display-title{font-weight:800;letter-spacing:-.01em;line-height:1.08}
.section{padding:96px 0}
.section-tight{padding:64px 0}
.section-tight .about-title
{
  color:#241866;
}
.eyebrow{
  display:inline-block;font-weight:800;font-size:.82rem;;
  text-transform:uppercase;color:var(--orange);margin-bottom:14px;
}
.eyebrow--light{color:var(--orange)}
.lead-muted{color:#0C043A;font-size:1.1rem;line-height:1.2}
.about-img { position:relative;z-index: 1}
.about-img:before{
  background:#241866;
  width:93px;
  height:93px;
  content:"";
  bottom:-46px;
  left:-46px;
  position:absolute;
  display: inline-block;
  z-index: 2;
}
.about-img:after{
  background:#F68F1E;
  width:56px;
  height:56px;
  content:"";
  bottom:28px;
  left:28px;
  position:absolute;
  display: inline-block;
  z-index: 2;
}
/* ---- links ---- */
a{color:var(--blue);text-decoration:none}
a:hover{color:var(--indigo)}

/* ---- buttons ---- */
.btn{border-radius:0;font-weight:800;padding:.8rem 1.6rem;letter-spacing:.01em;border:0}
.btn-accent{background:var(--orange);color:#fff; text-transform: uppercase}
.btn-accent:hover{background:#e07f05;color:#fff}
.btn-outline-light{border:2px solid rgba(255,255,255,.55);color:#fff;background:transparent}
.btn-outline-light:hover{background:#fff;color:var(--indigo)}
.btn-lg{padding:1rem 2.2rem;font-size:1.05rem}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.site-nav{
  background:var(--indigo-3);
  border-bottom:1px solid rgba(255,255,255,.08);
  transition:box-shadow .25s ease;
}
.site-nav.scrolled{box-shadow:0 8px 30px rgba(20,18,53,.28)}
.site-nav .nav-link{
  color:rgba(255,255,255,.88);font-weight:700;font-size:.96rem;margin:0 .35rem;
}
.site-nav .nav-link:hover,.site-nav .nav-link.active{color:var(--orange)}
.site-nav .navbar-toggler{border-color:rgba(255,255,255,.3)}
.site-nav .navbar-toggler-icon{filter:invert(1) grayscale(1) brightness(2)}

/* text brand logo */
.brand-text{display:inline-flex;flex-direction:column;line-height:1;padding:2px 0; min-width: 130px;}
.brand-text .brand-top{font-size:.6rem;font-weight:800;letter-spacing:.2em;color:#fff}
.brand-text .brand-main{font-size:1.35rem;font-weight:900;letter-spacing:.03em;color:#fff;margin:2px 0 3px}
.brand-text .brand-tag{
  align-self:flex-start;background:var(--orange);color:#fff;font-size:.58rem;
  font-weight:800;letter-spacing:.24em;padding:2px 8px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position:relative;color:#fff;overflow:hidden;
  background:
    linear-gradient(115deg,rgba(19,17,52,.94) 0%,rgba(40,35,110,.86) 48%,rgba(33,29,85,.9) 100%),
    url('../img/hero-barcode.png') right center/cover no-repeat,
    var(--indigo-3);
  padding:130px 0 120px;
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:url('../img/bg-pattern.png') center/cover no-repeat;
  opacity:.22;mix-blend-mode:screen;pointer-events:none;
}
.hero .container{position:relative;z-index:2}
.hero .hero-eyebrow{font-size:2.4rem;margin-bottom:16px;color:var(--orange); line-height: 1.1}
.hero h1{font-size:2.4rem;margin:0 0 32px;text-transform:uppercase;line-height:1.1;font-weight:400;}
.hero .hero-sub{font-size:1.2rem;color:rgba(255,255,255,.82);max-width:560px;line-height:1.6}
.hero-meta{display:flex;flex-wrap:wrap;gap:14px 34px;margin:34px 0 36px}
.hero-meta .item{display:flex;align-items:center;gap:10px;font-weight:700}
.hero-meta .item .dot{width:10px;height:10px;border-radius:0;background:var(--orange);transform:rotate(45deg)}
.hero-badge{
  display:inline-flex;align-items:center;gap:10px;background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:8px 18px;
  font-weight:800;font-size:.82rem;letter-spacing:.12em;text-transform:uppercase;margin-bottom:26px;
}
.hero-badge .sq{width:9px;height:9px;background:var(--orange);transform:rotate(45deg)}

/* ==========================================================================
   STAT / INTRO STRIP
   ========================================================================== */
.stat-strip{background:transparent;position:relative;z-index:3}
.stat-card{
  background:#fff;border-radius:0;box-shadow:0 30px 60px rgba(20,18,53,.16);
  margin-top:-58px;padding:18px 12px;display:flex;flex-wrap:wrap;
}
.stat-card .stat{
  flex:1 1 50%;display:flex;align-items:center;gap:16px;padding:20px 25px;text-align:left;
}
@media(min-width:768px){
  .stat-card .stat{flex:1 1 20%}
  /*.stat-card .stat:not(:last-child){border-right:1px solid var(--line)}*/
}
.stat-ic{flex:0 0 auto;color:var(--orange);display:flex}
/*.stat-ic svg{width:42px;height:42px}*/
.stat-txt{display:flex;flex-direction:column;line-height:1.02}
.stat-card .num{font-size:2.3rem;font-weight:900;color:var(--orange);text-transform:uppercase;line-height:1}
.stat-card .lbl{color:var(--indigo);font-weight:800;font-size:1.1rem;text-transform:uppercase;margin-top:5px}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-img{
  border-radius:0;box-shadow:0 30px 60px rgba(20,18,53,.18);
}
.about-img img{width:100%;display:block}
.ghost-title{
  font-weight:900;font-size:clamp(2.6rem,6vw,5rem);line-height:.9;
  text-transform:uppercase;color:#e2e3ec;letter-spacing:-.02em;margin-bottom:.08em;
}
.about-title{
  text-transform:uppercase;color:var(--orange);
  font-size:2.6rem;    font-weight:900;margin-top:0;
}
.feature{display:flex;gap:16px;margin-top:26px}
.feature .ic{
  flex:0 0 46px;height:46px;border-radius:0;background:rgba(247,148,30,.14);
  display:flex;align-items:center;justify-content:center;color:var(--orange);font-weight:900;font-size:1.1rem;
}
.feature h4{font-size:1.08rem;margin:0 0 4px}
.feature p{color:var(--muted);margin:0;line-height:1.55}

/* ==========================================================================
   WHY JOIN
   ========================================================================== */
.why-media{position:relative;padding-right:40px;z-index:3}
.why-media>img{
  width:100%;display:block;border-radius:0;
  box-shadow:0 30px 60px rgba(20,18,53,.18);
}
.why-media:before
{
  background:#2418662B;
  width:136px;
  height:136px;
  content:"";
  top:-68px;
  left:-68px;
  position:absolute;
  display: inline-block;
  z-index: 2;
}
.why-media:after
{
  background:#24186614;
  width:83px;
  height:83px;
  content:"";
  top: -99px;
  left: -106px;
  position:absolute;
  display: inline-block;
  z-index: 2;
}
.organizers{
  position:relative;z-index:2;margin:-52px -40px 0 0;background:#fff;
  border-radius:0;box-shadow:0 24px 46px rgba(20,18,53,.16);padding:22px 28px;
}
.organizers-label{
  display:block;font-weight:400;color:var(--ink);;
  font-size:2em;margin-bottom:16px;text-transform:uppercase;
}

.organizers-logos{display:flex;align-items:center;gap:30px;flex-wrap:wrap}
.organizers-logos img{height:70px;width:auto}

.arrow-list{list-style:none;padding:0;margin:0}
.arrow-list li{display:flex;gap:15px;align-items:flex-start;padding-bottom:16px}
.arrow-list li:last-child{padding-bottom:0}
.arrow-list .mk{flex:0 0 20px;width:20px;height:20px;margin-top:2px;color:var(--orange)}
.arrow-list li span{color:#0C043A;font-size:1.1rem;line-height:1.1}
.arrow-list li svg { width: 17px;height:17px;min-width: 17px;margin-top:5px;}
/* ==========================================================================
   AUDIENCE
   ========================================================================== */
.audience{background:#fff}
.audience-grid{margin-top:26px}
.audience-item{text-align:center}
.audience-ic{color:var(--orange);display:flex;justify-content:center;margin-bottom:14px}
/*.audience-ic svg{width:78px;height:78px}*/
.audience-ic svg:first-child{margin-top: 20px}
.audience-lbl{
  color:var(--orange);font-weight:400;text-transform:uppercase;
font-size:1.8rem;
}

/* ==========================================================================
   PROGRAM
   ========================================================================== */
.program{background:var(--paper)}
.program-card{
  background:var(--indigo-3);border-radius:0;padding:8px 34px;
  box-shadow:0 30px 60px rgba(20,18,53,.20);
}
.prog-item{
  display:flex;gap:20px;align-items:flex-start;
  padding:22px 0;border-bottom:1px solid rgba(255,255,255,.10);
}
.prog-item:last-child{border-bottom:0}
.prog-body{flex:1 1 auto;min-width:0}
.prog-time{
  color:var(--orange);font-weight:800;text-transform:uppercase;
  font-size:1.02rem;letter-spacing:.01em;margin-bottom:8px;
}
.prog-item svg
{
  min-width:41px;
}
.prog-desc{color:#fff;margin:0;line-height:1.5;font-weight:600}
.prog-meta{color:rgba(255,255,255,.60);margin:8px 0 0;line-height:1.45;font-size:.95rem}
.prog-note{color:rgba(255,255,255,.42);margin:3px 0 0;font-size:.82rem}
.prog-ic{flex:0 0 30px;color:var(--orange);opacity:.9;display:flex;justify-content:flex-end}
.prog-ic svg{width:30px;height:30px}
@media(max-width:575px){.prog-ic{display:none}}

/* ==========================================================================
   SPEAKERS / TEAM
   ========================================================================== */
.speaker-card{border:0;background:transparent;cursor:pointer}
.speaker-photo{
  position:relative;border-radius:0;overflow:hidden;
  background:linear-gradient(160deg,var(--indigo-2),var(--indigo-3));
  aspect-ratio:3/3.7;
}
.speaker-photo img{
  width:100%;height:100%;object-fit:cover;object-position:top center;display:block;
  transition:transform .4s ease;
}
.speaker-card:hover .speaker-photo img{transform:scale(1.05)}
.speaker-photo::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top,rgba(20,18,53,.94) 0%,rgba(20,18,53,.45) 40%,rgba(20,18,53,0) 68%);
}
.speaker-photo .arrow{
  position:absolute;top:14px;right:14px;z-index:2;color:var(--orange);
  width:22px;height:22px;display:flex;transition:transform .2s ease;
}
.speaker-photo .arrow svg{width:22px;height:22px}
.speaker-card:hover .speaker-photo .arrow{transform:translate(3px,-3px)}
.speaker-info{position:absolute;left:18px;right:16px;bottom:16px;z-index:2}
.speaker-name{
  font-weight:800;font-size:1.02rem;color:#fff;text-transform:uppercase;
  letter-spacing:.02em;line-height:1.15;margin:0;
}
.speaker-role{
  color:rgba(255,255,255,.72);font-size:.72rem;text-transform:uppercase;
  letter-spacing:.04em;line-height:1.35;margin-top:5px;
}
.speaker-org{
  color:rgba(255,255,255,.72);font-size:.72rem;text-transform:uppercase;
  letter-spacing:.04em;line-height:1.35;
}

/* modal */
.modal-content{border:0;border-radius:0;overflow:hidden}
.speaker-modal .modal-body{padding:0}
.speaker-modal .sm-photo{
  background:linear-gradient(160deg,var(--indigo-2),var(--indigo-3));
}
.speaker-modal .sm-photo img{width:100%;height:100%;object-fit:cover;object-position:top center;min-height:320px}
.speaker-modal .sm-body{padding:38px 34px}
.speaker-modal .sm-body h3{font-size:1.5rem;margin:0 0 4px}
.speaker-modal .sm-role{color:var(--orange);font-weight:800;margin-bottom:2px}
.speaker-modal .sm-org{color:var(--muted);font-weight:700;margin-bottom:18px}
.speaker-modal .sm-body p{color:#3a3a52;line-height:1.7}

/* ==========================================================================
   PARTNERS
   ========================================================================== */
.partners{background:transparent}
.partner-card{
  background:#fff;border-radius:0;box-shadow:0 30px 60px rgba(20,18,53,.12);
  padding:40px 36px;
}
.partner-logos{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:24px 34px;
}
.partner-logo{
  flex:0 0 auto;height:80px;display:flex;align-items:center;justify-content:center;
}
.partner-logo img{max-height:74px;max-width:160px;width:auto;object-fit:contain}
.partner-ph{
  width:150px;height:66px;
  /*background:#e9e9ef;color:#b5b5c3;border-radius:0;*/
  font-style:italic;font-weight:600;letter-spacing:.02em;
}
#partners .about-title
{
  color:#F68F1E;
}
/* ==========================================================================
   REGISTRATION FORM
   ========================================================================== */
.register-intro{background:var(--paper);padding:72px 0 40px}
.register{
  background:linear-gradient(120deg,var(--indigo) 0%,var(--indigo-3) 100%);
  color:#fff;position:relative;overflow:hidden;
}
.register::before{
  content:"";position:absolute;inset:0;background:url('../img/bg-pattern.png') center/cover;
  opacity:.2;pointer-events:none;
}
.register .container{position:relative;z-index:2}
.reg-card{
  background:#fff;color:var(--ink);border-radius:0;padding:48px 46px;
  box-shadow:0 40px 80px rgba(0,0,0,.3);
}
.reg-title{
  color:var(--orange);text-transform:uppercase;
  font-size:clamp(1.3rem,2.4vw,1.8rem);line-height:1.2;margin:0 0 14px;
}
.reg-sub{color:var(--muted);line-height:1.6;font-size:.98rem;margin:0 0 26px;max-width:640px}
.bitrix-placeholder{min-height:80px}
.form-label{font-weight:700;font-size:.9rem;margin-bottom:6px}
.form-label .req{color:var(--red)}
.form-control{
  border-radius:0;border:1.5px solid var(--line);padding:.75rem .9rem;font-size:1rem;
}
.form-control:focus{border-color:var(--orange);box-shadow:0 0 0 .2rem rgba(247,148,30,.18)}
.form-control.is-invalid{border-color:var(--red)}
.form-note{font-size:.85rem;color:var(--muted)}
#formAlert{display:none;border-radius:0;font-weight:700}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{background:var(--indigo-3);color:rgba(255,255,255,.72);padding:48px 0}
.footer-brand{display:inline-flex;margin-bottom:18px}
.footer-desc{max-width:340px;font-size:.9rem;line-height:1.6;color:rgba(255,255,255,.58);margin:0}
.footer-nav{display:flex;gap:56px;flex-wrap:wrap}
.footer-nav ul{margin:0}
.footer-nav a{color:#fff;font-weight:700;display:inline-block;padding:7px 0}
.footer-nav a:hover{color:var(--orange)}
.footer-contacts{margin:0 0 20px}
.footer-contacts li{display:flex;align-items:center;gap:11px;margin-bottom:12px}
.footer-contacts a{color:rgba(255,255,255,.85)}
.footer-contacts a:hover{color:var(--orange)}
.footer-contacts .ic{color:var(--orange);flex:0 0 auto;display:flex}
.footer-contacts .ic svg{width:18px;height:18px}
.footer-social{display:flex;gap:12px}
.footer-social a{
  width:34px;height:34px;border-radius:0;background:var(--orange);color:#fff;
  display:flex;align-items:center;justify-content:center;transition:.2s;
}
.footer-social a.fb{border-radius:0}
.footer-social a:hover{background:#e07f05;transform:translateY(-2px);color:#fff}
.footer-social svg{width:17px;height:17px}
@media(min-width:992px){.footer-social{justify-content:flex-end}}
.footer-legal{
  border-top:1px solid rgba(255,255,255,.12);margin-top:34px;padding-top:20px;
  display:flex;flex-wrap:wrap;gap:8px 22px;justify-content:space-between;
  font-size:.86rem;color:rgba(255,255,255,.6);
}
.footer-legal-links{display:flex;flex-wrap:wrap;gap:8px 22px}
.footer-legal a{color:rgba(255,255,255,.66)}
.footer-legal a:hover{color:var(--orange)}

/* ==========================================================================
   LEGAL PAGES (Общи условия / Политика за поверителност)
   ========================================================================== */
.legal-hero{
  background:linear-gradient(115deg,var(--indigo-3) 0%,var(--indigo) 60%,var(--indigo-3) 100%);
  color:#fff;padding:78px 0 60px;position:relative;overflow:hidden;
}
.legal-hero::after{
  content:"";position:absolute;inset:0;background:url('../img/bg-pattern.png') center/cover no-repeat;
  opacity:.18;mix-blend-mode:screen;pointer-events:none;
}
.legal-hero .container{position:relative;z-index:2}
.legal-hero h1{font-size:clamp(2rem,4vw,3rem);margin:10px 0 0;text-transform:uppercase}
.legal{background:var(--paper)}
.legal-body{
  margin:0 auto;background:#fff;
  padding:48px 46px;box-shadow:0 26px 60px rgba(20,18,53,.10);
}
.legal-meta{color:var(--muted);font-size:.9rem;margin-bottom:26px}
.legal-lead{font-size:1.1rem;font-weight:700;color:var(--ink);margin-bottom:22px}
.legal-body h2{font-size:1.25rem;margin:34px 0 12px;color:var(--ink)}
.legal-body h2:first-of-type{margin-top:0}
.legal-body h3{font-size:1.05rem;margin:22px 0 8px;color:var(--indigo)}
.legal-body p,.legal-body li{color:#3a3a52;line-height:1.75}
.legal-body ul{padding-left:20px;margin-bottom:14px}
.legal-body ul ul{margin-top:6px;margin-bottom:0}
.legal-body li{margin-bottom:6px}
.legal-body a{color:var(--blue);word-break:break-word}
@media(max-width:575px){.legal-body{padding:30px 24px}}

/* reveal-on-scroll */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}

@media (max-width:767px){
  .section{padding:64px 0}
  .hero{padding:100px 0 80px}
  .reg-card{padding:28px}


  .hero .hero-eyebrow, .hero h1, .stat-card .num, .about-title
  {
    font-size:2em
  }
  .audience-grid
  {
    flex-direction: column;
    align-items: center;
  }
  .section-tight .reveal.in
  {
    width:100%;
  }
}
