:root{
    --bg:#f6f7fb;
    --card:#fff;
    --text:#0f172a;
    --muted:#475569;
    --line: rgba(15,23,42,.10);
  
    --primary:#2563eb;
    --primary2:#0ea5e9;
    --danger:#ef4444;
  
    --radius:14px;
    --shadow: 0 10px 30px rgba(2,6,23,.08);
  }
  
  *{ box-sizing:border-box; }
  body{
    margin:0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
  }
  a{ color: inherit; text-decoration:none; }
  .container{ width:min(1180px, calc(100% - 32px)); margin:0 auto; }
  
  .sr-only{
    position:absolute; width:1px; height:1px; margin:-1px; padding:0;
    overflow:hidden; clip:rect(0,0,0,0); border:0;
  }
  .skip-link{
    position:absolute; left:-999px; top:12px;
    background: var(--card); border: 1px solid var(--line);
    padding: 10px 12px; border-radius: 12px; box-shadow: var(--shadow);
  }
  .skip-link:focus{ left:16px; }
  
  /* HEADER TOP */
  .site-header{
    position: relative; 
    z-index: 2000;
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.75));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .header-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 16px;
    padding: 16px 0 12px;
  }
  .brand-title{
    font-weight: 900;
    font-size: 2em;
    letter-spacing: .2px;
  }
  .brand-title2{
    font-weight: 900;
    font-size: 1.2em;
    letter-spacing: .2px;
    color:#A3232A;
  }
  .brand-sub{
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
  }
  .city-flag{
    width: 114px;
    height: 74px;
    border-radius: 12px;
    overflow:hidden;
    border: 1px solid var(--line);
    background: rgba(2,6,23,.03);
    box-shadow: var(--shadow);
  }
  .city-flag img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display:block;
  }
  
  /* NAV BAR */
  .nav-bar{
    position: relative; 
    z-index: 2100;
    border-top: none;
    border-bottom: none;
    background:#0053BB;

  }
  .nav-inner{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
  }
  .main-nav{ 
    flex: 1;
    display: flex;
    justify-content: center;
 }
  .nav-list{
    list-style:none;
    display:flex;
    justify-content: center;
    gap: 18px;
    padding:0; margin:0;
    align-items:center;
    flex-wrap: wrap;
  }
  .nav-link{
    display:inline-flex;
    align-items:center;
    padding: 10px 20px;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
  }
  .nav-link:hover{ background: rgba(255,255,255,.14); }
  
  .nav-actions{ display:flex; gap: 10px; align-items:center; }
  
  /* HOME ICON (SVG) */
  .nav-home .nav-link{
    padding: 10px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .home-icon{
    width: 20px;
    height: 20px;
    color:#fff;
  }
  .nav-home .nav-link:hover .home-icon{ color: #fff; opacity: .9; }
  
  .nav-home.is-active .nav-link{
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
  }
  .nav-home.is-active .home-icon{ color: #fff; }
  
  /* SUBMENU */
  .has-submenu{ position: relative; }
  .nav-arrow{ 
    display:inline-block;
    margin-left: 6px;
    font-size: 12px;
    opacity: .8;
    transition: transform .18s ease, opacity .18s ease;
    transform-origin: 50% 50%;
  }
  
 /* .submenu{
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    list-style: none;
    margin: 0;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 3000;
  }
  .has-submenu:hover .submenu{ display: block; }*/


 /* ================= SUBMENU (STABLE) ================= */

/* parent */
.has-submenu{
    position: relative;
  }
  
  /* dropdown */
  .submenu{
    position: absolute;
    top: 100%;                 /* БЕЗ зазора */
    left: 0;       
    width: max-content;        /* может расширяться под текст */
    min-width: 100%;           /* но не уже пункта меню */
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    z-index: 3000;
    margin-top: 8px;           /* визуальный отступ */
    list-style: none;
    
    /* анимация */
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
  }
  
  /* hover-bridge — НЕВИДИМЫЙ МОСТИК */
  .has-submenu::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:100%;
    height:12px;               /* держит hover */
  }
  
  /* show on hover (desktop) */
  @media (hover: hover){
    .has-submenu:hover .submenu{
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
      transition: opacity .16s ease, transform .16s ease, visibility 0s;
    }
    .has-submenu:hover > .nav-link .nav-arrow{
      transform: rotate(180deg);
    }
  }
  
  /* show when opened by click */
  .has-submenu.is-open .submenu{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .16s ease, transform .16s ease, visibility 0s;
  }
  .has-submenu.is-open > .nav-link .nav-arrow{
    transform: rotate(180deg);
  }
  
  /* submenu links */
  .submenu a{
    display:block;
    padding: 10px 16px;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }
  
  .submenu a:hover{
    background: rgba(37,99,235,.10);
  }
  
 
  
  
  .submenu li a{
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
    color: rgba(15,23,42,.92);
  }
  .submenu li a:hover{ background: rgba(37,99,235,.08); }
  
  /* BUTTONS */
  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    border: 1px solid rgba(37,99,235,.35);
    box-shadow: 0 8px 18px rgba(37,99,235,.18);
  }
  .btn:hover{ filter: brightness(.98); }
  .btn-ghost{
    background: transparent;
    color: rgba(15,23,42,.9);
    border: 1px solid var(--line);
    box-shadow: none;
  }
  .btn-danger{
    background: var(--danger);
    border-color: rgba(239,68,68,.4);
    box-shadow: 0 8px 18px rgba(239,68,68,.18);
  }
  /* right actions buttons on blue */
.nav-actions .btn-ghost{
    color:#fff;
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.10);
  }
  .nav-actions .btn-ghost:hover{ background: rgba(255,255,255,.16); }
  
  /* BURGER */
  .burger{
    display:none;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.85);
    cursor:pointer;
  }
  .burger-lines{
    display:block;
    width: 20px; height: 2px;
    background: #fff;
    margin: 0 auto;
    position: relative;
  }
  .burger-lines::before, .burger-lines::after{
    content:"";
    position:absolute; left:0;
    width: 20px; height: 2px;
    background: #fff;
  }
  .burger-lines::before{ top:-6px; }
  .burger-lines::after{ top:6px; }
  
  /* HERO / SLIDER PLACEHOLDER */
  .hero{ 
    
      height: 450px;
      background-image: url("../images/hero-briceni.jpg");
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    
      position: relative;
  
}
  .hero-slide{
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow:hidden;
    background:
      radial-gradient(700px 280px at 15% 0%, rgba(14,165,233,.18), transparent 55%),
      radial-gradient(700px 280px at 100% 25%, rgba(37,99,235,.16), transparent 55%),
      var(--card);
    min-height: 260px;
    display:grid;
    grid-template-columns: 1.2fr .8fr;
  }
  .hero-overlay{
    padding: 18px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap: 8px;
  }
  .hero-kicker{
    width: fit-content;
    font-size: 12px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(2,6,23,.03);
    color: rgba(15,23,42,.75);
  }
  .hero-title{
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
  }
  .hero-text{
    margin: 0;
    color: rgba(15,23,42,.78);
    max-width: 52ch;
  }
  .hero-actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
  .hero-image{
    background:
      linear-gradient(180deg, rgba(2,6,23,.04), rgba(2,6,23,.01)),
      repeating-linear-gradient(45deg, rgba(2,6,23,.04) 0 12px, rgba(2,6,23,.02) 12px 24px);
  }
  .hero-dots{
    position:absolute;
    left: 18px;
    bottom: 14px;
    display:flex;
    gap: 8px;
  }
  .dot{
    width: 10px; height: 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.7);
  }
  .dot.is-active{
    background: rgba(37,99,235,.75);
    border-color: rgba(37,99,235,.35);
  }
  
  /* 3 COL LAYOUT */
  .site-main{ padding: 12px 0 26px; }
  .layout-3col{
    display:grid;
    grid-template-columns: 280px 1.8fr 300px;
    gap: 16px;
    align-items:start;
  }
  .sidebar{ display:flex; flex-direction:column; gap: 14px; }
  .content{ display:flex; flex-direction:column; gap: 14px; }
  
  /* CARDS */
  .card{
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
  }
  .card-title{
    margin: 0 0 10px;
    font-size: 15px;
    letter-spacing: .2px;
  }
  .muted{ color: var(--muted); }
  .stack{ display:flex; flex-direction:column; gap: 10px; }
  .alert{
    border-color: rgba(239,68,68,.25);
    background: linear-gradient(180deg, rgba(239,68,68,.06), rgba(255,255,255,1));
  }
  
  /* center helpers */
  .grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .badge{
    display:inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12px;
    color: rgba(15,23,42,.75);
    background: rgba(2,6,23,.03);
    width: fit-content;
    margin-bottom: 8px;
  }
  .badge-warn{
    border-color: rgba(245,158,11,.35);
    background: rgba(245,158,11,.12);
  }
  .link{ color: var(--primary); font-weight: 800; }
  .link:hover{ text-decoration: underline; }
  
  /* side nav */
  .side-nav{ display:flex; flex-direction:column; gap: 6px; }
  .side-link{
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(2,6,23,.02);
    border: 1px solid transparent;
    color: rgba(15,23,42,.88);
    font-weight: 700;
  }
  .side-link:hover{ background: rgba(37,99,235,.08); }
  .side-link.active{
    background: rgba(37,99,235,.12);
    border-color: rgba(37,99,235,.30);
    font-weight: 900;
  }
  
  /* right widgets (calendar/weather) */
  .calendar{
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
  }
  .cal-head{
    display:flex; align-items:center; justify-content:space-between;
    gap: 8px; margin-bottom: 10px;
  }
  .cal-title{ font-weight: 900; }
  .icon-btn{
    width: 34px; height: 34px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(2,6,23,.03);
    cursor:pointer;
  }
  .icon-btn:hover{ background: rgba(37,99,235,.08); }
  .cal-grid{ display:grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .cal-dow{ font-size: 11px; color: rgba(71,85,105,.9); text-align:center; }
  .cal-day{
    text-align:center;
    padding: 8px 0;
    border-radius: 12px;
    background: rgba(2,6,23,.02);
    border: 1px solid transparent;
    font-size: 13px;
  }
  .cal-day.is-muted{ opacity:.45; }
  .cal-day.is-today{
    border-color: rgba(37,99,235,.35);
    background: rgba(37,99,235,.10);
    font-weight: 900;
  }
  .weather-row{ display:flex; align-items:baseline; justify-content:space-between; gap: 10px; }
  .weather-big{ font-size: 34px; font-weight: 900; }
  .hint{ margin: 10px 0 0; font-size: 12px; color: rgba(71,85,105,.8); }
  
  /* PAGE HEAD */
  .page-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: 14px;
    flex-wrap: wrap;
  }
  .page-title{
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
  }
  .page-subtitle{ margin: 8px 0 0; }
  
  /* BANK DETAILS */
  .bank-card{ max-width: 720px; }
  .bank-details{
    display:grid;
    gap: 12px;
    margin: 0;
  }
  .bank-details div{
    display:grid;
    grid-template-columns: 200px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .bank-details div:last-child{ border-bottom: none; }
  .bank-details dt{
    font-weight: 900;
    color: rgba(15,23,42,.85);
  }
  .bank-details dd{
    margin: 0;
    color: rgba(15,23,42,.95);
    word-break: break-word;
  }
  .bank-details .iban{
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 900;
    letter-spacing: .5px;
  }
  
  /* FOOTER */
  .site-footer{
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.75);
  }
  .footer-inner{
    padding: 18px 0;
    display:flex;
    justify-content:left;
    gap: 16px;
    flex-wrap: wrap;
  }
  .footer-title{ font-weight: 900; }
  .footer-links{ display:flex; gap: 14px; flex-wrap: wrap; }
  .footer-links a{ color: rgba(15,23,42,.75); }
  .footer-links a:hover{ color: var(--primary); }
  
/* Yandex map responsive */
.map-embed{
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(2,6,23,.02);
}

.map-embed iframe{
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}


/* LICENTA PREVIEW*/
.licenta-preview{
  display:block;
  margin-top:12px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(2,6,23,.02);
}

.licenta-preview img{
  width:100%;
  height:auto;
  display:block;
}

.licenta-hint{
  display:block;
  padding:10px 12px;
  font-weight:800;
  color: rgba(15,23,42,.78);
  background: rgba(2,6,23,.03);
}

.licenta-preview:hover{
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
/* PAGE SITUATIA FINACIARE*/

/* ===== PROSE (text content) ===== */
.prose{
  color: rgba(15,23,42,.92);
  line-height: 1.6;
}

.prose h3{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
}

.prose p{
  margin: 0 0 10px;
}

.prose p:last-child{
  margin-bottom: 0;
}
/*Situatia center*/
.sf-title{
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sf-title h3{
  margin-bottom: 4px;
  font-weight: 900;
}

.sf-title p{
  margin: 0;
  color: rgba(15,23,42,.75);
}



/* ===== KEY–VALUE LIST (kv) ===== */
.kv{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.kv dt{
  font-weight: 800;
  color: rgba(15,23,42,.8);
}

.kv dd{
  margin: 0;
  color: rgba(15,23,42,.95);
}




/* ===== FILE LINK (PDF) ===== */
.file-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);

  transition: background .15s ease, transform .15s ease;
}

.file-link:hover{
  background: rgba(37,99,235,.05);
  transform: translateY(-1px);
}

.file-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.file-ico{
  width: 42px;
  height: 42px;
  border-radius: 12px;

  display: grid;
  place-items: center;

  font-weight: 900;
  font-size: 12px;

  border: 1px solid var(--line);
  background: rgba(2,6,23,.03);
}

.file-meta{
  min-width: 0;
}

.file-title{
  margin: 0;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-sub{
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(71,85,105,.85);
}

.pill{
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;

  border: 1px solid var(--line);
  background: rgba(2,6,23,.03);
  color: rgba(15,23,42,.75);
}

/* TARIFE TABLE*/
.table-wrap{
  overflow:auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.tarife-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.tarife-table th,
.tarife-table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.tarife-table th{
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: rgba(71,85,105,.9);
  background: rgba(2,6,23,.02);
}

.tarife-table tr:hover td{
  background: rgba(37,99,235,.04);
}

.tarife-section td{
  font-weight: 900;
  background: rgba(37,99,235,.07);
}

.tarife-num{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
  white-space: nowrap;
}
.unit{
  font-size: 12px;
  font-weight: 700;
  color: rgba(71,85,105,.8);
  margin-left: 4px;
}



/* CONTRACTARE*/

.req-list{
  margin: 0;
  padding-left: 20px;
}

.req-list li{
  margin: 10px 0;
  padding-left: 6px;
}

.req-list li::marker{
  font-weight: 900;
  color: rgba(37,99,235,.9);
}


/* ===== Modal ===== */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 5000;
}
.modal.is-open{ display:block; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,.55);
  backdrop-filter: blur(2px);
}

.modal-dialog{
  position: relative;
  width: min(860px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  margin: 12px auto;
  overflow: auto;

  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.modal-title{
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.25;
}

.modal-body{
  padding: 14px;
}

.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* form fields */
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-full{ grid-column: 1 / -1; }

.field{ display:flex; flex-direction:column; gap: 6px; }
.field-label{ font-weight: 800; font-size: 13px; color: rgba(15,23,42,.85); }

.field-input{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  font: inherit;
  outline: none;
}
.field-input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.checks{ display:flex; flex-direction:column; gap: 8px; margin-top: 8px; }
.check{ display:flex; gap: 10px; align-items:flex-start; }
.check input{ margin-top: 3px; }

@media (max-width: 720px){
  .form-grid{ grid-template-columns: 1fr; }
}

/* wrapping already added earlier */
.file-title.wrap{
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* external link icon */
.ext{
  display:inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  vertical-align: text-top;
  opacity: .7;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ensure layout doesn't stretch */
.file-left{ min-width: 0; }
.pill{ flex: 0 0 auto; }



/* DISPECERAT*/

.disp-box{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.85);
}

.disp-row{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  padding: 6px 0;
}

.disp-row + .disp-row{
  border-top: 1px solid rgba(2,6,23,.08);
}

.disp-toggle{
  text-align: left;
}


/* RUBRICA CONTOARE*/

.notice{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 18px;
  background: rgba(2,6,23,.03);
}

.notice-legal{
  background: rgba(37,99,235,.05);
}

.notice-legal strong{
  display:block;
  margin-bottom:6px;
  font-weight:900;
}

.notice-legal ul{
  margin: 0;
  padding-left: 18px;
}

.notice-legal li{
  margin: 4px 0;
  font-size: 14px;
}

/* PROECTE DE STAT RUBRICA RIGHT*/

.state-project{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;

  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);

  text-align: center;
  font-weight: 800;

  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.state-project:hover{
  background: rgba(37,99,235,.05);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.state-project-logo{
  width: 56px;   /* ← тут регулируешь размер */
  height: auto;
}

.state-project-title{
  font-size: 13px;
  color: rgba(15,23,42,.85);
  line-height: 1.25;
}

/*METEO RIGHT MENU*/ 

/* Meteo2 widget wrapper */
.meteo-widget{
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}

/* Make widget fit sidebar width */
.meteo-widget .m2meteo2_informer{
  width: 100% !important;
  max-width: 100% !important;
  padding-top: 8px; /* <-- чтобы не было наложения сверху */
}

/* Title like our UI */
.meteo-widget .m2meteo_title{
  background: rgba(37,99,235,.06);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  font-weight: 900;
}

.meteo-widget .m2meteo_title a{
  color: rgba(15,23,42,.92) !important;
  text-decoration: none !important;
}

.meteo-widget .m2meteo_title a:hover{
  text-decoration: underline !important;
}

/* Footer credit smaller and calm */
.meteo-widget .m2tometeo2{
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: rgba(2,6,23,.02);
  font-size: 12px;
}

.meteo-widget .m2tometeo2 a{
  color: rgba(71,85,105,.9) !important;
  text-decoration: none !important;
}
.meteo-widget .m2tometeo2 a:hover{
  text-decoration: underline !important;
}

/* Safety: any inner images/tables should not overflow */
.meteo-widget img,
.meteo-widget table{
  max-width: 100% !important;
}




/*FORMA OTPRAVKI FACTURA PE EMAIL*/

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;
}

.toast[hidden]{ display:none; }

.toast-inner{
  display:flex;
  gap:10px;
  align-items:center;

  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);

  font-weight: 700;
}

.toast-inner strong{
  color: rgba(16,185,129,.95); /* зелёный успех */
}
/* JSON AVARII  */

.avarii-controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 12px 0 14px;
}

.chip{
  border:1px solid var(--line);
  background: var(--card);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor:pointer;
}

.chip.is-active{
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.35);
}

.avarii-list{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.avarii-item{
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 12px 14px;
}

.avarii-top{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.avarii-title{
  font-weight: 900;
  font-size: 16px;
  margin: 0;
}

.avarii-meta{
  margin-top: 6px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px 12px;
  color: rgba(71,85,105,.95);
  font-size: 13px;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.tag.status-planificat{ background: rgba(37,99,235,.08); }
.tag.status-in_desfasurare{ background: rgba(245,158,11,.12); }
.tag.status-finalizat{ background: rgba(16,185,129,.10); }
.tag.status-necunoscut{ background: rgba(2,6,23,.05); }

.avarii-body{
  margin-top: 10px;
  color: rgba(15,23,42,.92);
}

.avarii-empty{
  padding: 12px 0;
  color: rgba(71,85,105,.95);
}

  /* ADAPTIVE */
  @media (max-width: 720px){
    .kv{
      grid-template-columns: 1fr;
    }
  }


  @media (max-width: 520px){
    .map-embed iframe{
      height: 320px;
    }
  }

  @media (hover: hover){
    .has-submenu:hover .submenu{
      display: block;
    }
  }
  @media (max-width: 980px){
    .layout-3col{ grid-template-columns: 1fr; }
    .grid-2{ grid-template-columns: 1fr; }
    .hero-slide{ grid-template-columns: 1fr; }
  }
  
  @media (max-width: 920px){
    .burger{ display:inline-grid; place-items:center; }
    .main-nav{ display:none; }
    .main-nav.is-open{ display:block; width: 100%; }
    .nav-inner{ flex-wrap: wrap; }
    .nav-list{ width: 100%; }
  }
     /* mobile behavior */
  /* mobile: dropdown in flow (by click) */
  @media (max-width: 920px){
  .submenu{
    position: static;
    width: auto;
    min-width: 0;
    margin-top: 4px;
    padding: 6px 0 0 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: none;     /* скрыто, показываем через .is-open */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .has-submenu::after{ display:none; }
  .has-submenu.is-open .submenu{ display:block; }
}





    /* на мобильном подменю показываем в потоке 
    .submenu{
      position: static;
      display: none;  <-- важно 
      box-shadow: none;
      border: none;
      padding: 6px 0 0 12px;
      margin-top: 2px;
      
    }
    .nav-arrow{
        display:inline;
        opacity:.8;
      }
  }
  */
  @media (max-width: 520px){
    .bank-details div{ grid-template-columns: 1fr; }
  }