/* ADANews — based on polites.news design system */

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/FiraSans-Regular.woff2') format('woff2'),
       url('fonts/FiraSans-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/FiraSans-Bold.woff2') format('woff2'),
       url('fonts/FiraSans-Bold.ttf') format('truetype');
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-top: 10px
}
.footer-links li {
  display: inline-block;
  margin-right: 20px
}

html {
  margin: 0;
  overflow-y: scroll;
  overflow-x: hidden
}
body, h1, html { padding: 0; word-wrap: break-word }
body {
  box-sizing: border-box;
  margin: 0;
  font-size: 1rem;
  font-family: 'Fira Sans', sans-serif;
  line-height: 1.5;
  background: #f6f3ed
}
*, *:after, *:before { box-sizing: inherit }
* { -webkit-tap-highlight-color: transparent }

br { content:  ; margin: 10px 0 }
figure { padding: 0; margin: 0 }

h1 { font-size: 1.2rem; margin: 0 }
h2 { font-size: 1.2rem; padding: 0; margin: 0; text-transform: uppercase }
h3 { font-size: 1.2rem; padding: 0; margin: 0; text-transform: uppercase }
h4 { font-size: 1rem; padding: 0; margin: 20px 0 0 0; text-transform: uppercase }

a { color: #000; text-decoration: none; outline: none; overflow-wrap: anywhere; word-break: break-word }
a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px }

p { margin: 10px 0 0; padding: 0 }
ul { list-style-type: square; margin-top: 10px }
li { margin-top: 10px }
address { font-style: normal; margin: 10px 0 0; padding: 0 }

/* SKIP LINK */
.skip-link {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px;
  overflow: hidden; background: #000; color: #fff; padding: 5px 10px;
  z-index: 9999;
}
.skip-link:focus { position: fixed; top: 50px; left: 20px; width: auto; height: auto; overflow: visible }

/* TOP BAR */
.top {
  text-transform: uppercase;
  color: #cbcbcb;
  background: #000;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 999999
}
.topmenu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  line-height: 20px;
  font-weight: 700
}
.topmenu a { color: #cbcbcb }

/* LOGO */
.logo {
  background: #202020;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px);
  padding: 20px 10px 10px 10px;
  text-align: center;
  text-shadow: 0 0 20px #000
}
.logo a {
  font-size: 2.5rem;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase
}
.logo a:hover { text-underline-offset: 10px; text-decoration-thickness: 4px }
.logo h1, .logo p {
  text-align: center;
  font-weight: 400;
  color: #cbcbcb;
  margin-bottom: 10px;
  font-size: 1rem;
  text-transform: none
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  padding-top: 0
}
.container2 {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  padding-top: 0
}

/* CATEGORY NAV */
.category {
  padding: 10px 0;
  border-bottom: 3px solid #000;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-weight: 700;
  flex-wrap: wrap;
  gap: 10px 20px
}
.category a { color: #000 }
.category .open-popup { cursor: pointer }
.category .open-popup:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px }

/* SEARCH POPUP */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999999
}
.popup { background: #fff; padding: 20px; min-width: 350px }
.inputpoisk {
  border: 1px solid #666;
  padding: 5px 10px;
  font-family: 'Fira Sans', sans-serif;
  font-size: 1rem;
  background: #f6f3ed;
  outline: none;
  width: 100%;
  margin-bottom: 10px
}
.open-popup { cursor: pointer }

/* BUTTON */
.button {
  border: 1px solid #000;
  padding: 5px 10px;
  color: #000;
  cursor: pointer;
  font-family: 'Fira Sans', sans-serif;
  font-size: 1rem;
  background: #f6f3ed;
  outline: none;
  display: inline-block
}
.button:hover { text-decoration: none; background: #e3e0d8 }

/* MAIN FLEX LAYOUT */
.glav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 -20px 0 -20px
}
.column {
  position: relative;
  margin: 20px;
  flex: 1;
  min-width: 280px
}
/* On article pages the outer sidebar is hidden — column goes full width with no side margins */
.column:only-child {
  margin: 0;
  overflow: hidden
}
.widthfull {
  flex: 0 0 320px;
  max-width: 320px;
  overflow-wrap: break-word;
  word-break: break-word
}

/* NEWS CARDS — listing page */
.newsblock {
  border-bottom: 1px solid #999;
  overflow-wrap: break-word;
  word-break: break-word
}
.newsblock h3 {
  font-size: 1rem;
  padding: 0;
  margin: 20px 0 0 0;
  text-transform: uppercase
}
.newsblock p { margin: 5px 0 0 }

/* FEATURED NEWS */
.glavnews {
  margin-bottom: 40px;
  border-top: 1px solid #999;
  padding-top: 20px
}
.glavnews h2 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 5px }
.glavh2 { color: #000 }
.glavh3 { margin-top: 0 }

/* SECTION HEADER */
.blackh3 {
  background: #202020;
  border: 1px solid #202020;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  margin-bottom: 20px
}

/* SPACING UTILS */
.bottom20 { margin-bottom: 20px }
.top20 { margin-top: 20px }
.top30 { margin-top: 20px }
.top40 { margin-top: 40px }
.top60 { margin-top: 40px }

/* CATEGORY MENU (DLE catmenu in sidebar) */
.catmenu ul, ul.catmenu { list-style: none; margin: 0; padding: 0 }
.catmenu li, ul.catmenu li { margin: 0 }
.catmenu a, ul.catmenu a {
  display: block;
  padding: 5px 0;
  border-bottom: 1px solid #e0dbd2;
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem
}
.catmenu a:hover { text-decoration: underline }

/* PAGINATION */
.navi {
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  border-top: 3px solid #999;
  padding: 20px
}
.navi span { margin: 0 10px }
.navi a { margin: 0 10px }

/* SPEEDBAR (breadcrumb) */
.speedbars {
  font-size: 1rem;
  padding: 0;
  margin: 20px 0 0 0;
  font-weight: 700;
  text-transform: uppercase
}

/* ===== FULL ARTICLE PAGE ===== */
.fullcontainer {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  padding-top: 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px
}

/* Title block for article */
.titlefull {
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  background: #202020;
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end
}
.titlefull a { color: #fff }
.titlefull figure {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 0
}
.news-main-image {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%,-50%);
  object-fit: cover;
  z-index: 0
}
.newsoverlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1
}
/* Share buttons */
.share {
  margin: 0;
  padding: 20px 0 10px;
  text-align: center
}
.share span { margin: 0 10px }
.share a { padding: 0; margin: 0; text-decoration: none; opacity: .85 }
.share a:hover { opacity: 1 }
.fullcontent {
  position: relative;
  text-shadow: 0 0 20px #000;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px 20px
}
.titlenews {
  margin: 0 auto;
  padding: 0;
  font-size: 2.2rem;
  text-transform: uppercase;
  color: #fff;
  max-width: 900px
}
.short {
  font-size: 1.2rem;
  text-transform: none;
  max-width: 1200px;
  margin: 20px auto 0;
  color: #cbcbcb
}
.short a { color: #cbcbcb }
.short p { padding: 0 !important; margin: 0 !important }

/* Article category/date tag */
.tagstitle {
  padding: 40px 0 20px 0;
  text-align: center;
  color: #cbcbcb;
  font-size: 1.2rem;
  text-decoration: none
}
.tagstitle a { color: #cbcbcb }
/* tagstitle inside article header — no extra top padding needed */
.titlefull .tagstitle { padding: 0 0 20px }

/* Article body */
.columnfull {
  font-size: 1.2rem;
  border-top: 1px solid #999;
  padding-top: 20px
}
.columnfull h2, .columnfull h3 {
  font-size: 1.2rem;
  display: block;
  color: #000;
  margin: 40px 0 10px 0;
  text-transform: uppercase
}
.columnfull a {
  text-decoration: underline dashed;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-color: #666
}
.columnfull a:hover { text-decoration: none }

/* Article sidebar */
.fullright {
  border-left: 1px solid #999;
  padding-left: 40px;
  overflow-wrap: break-word;
  word-break: break-word
}

/* Tags */
.tags {
  border: 1px solid #000;
  padding: 5px 10px;
  text-align: center;
  color: #000;
  margin-bottom: 20px
}

/* Case details table */
.currency {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed
}
.currency td, .currency th {
  border: 1px solid #000;
  text-align: left
}
.cur { padding: 5px 20px; white-space: nowrap }

/* LEAD GEN CTA BOXES */
.cta-box {
  border: 1px solid #000;
  padding: 20px;
  margin-bottom: 20px;
  background: #f6f3ed;
  overflow-wrap: break-word;
  word-break: break-word
}
.cta-box--green { border-color: #126b26 }
.cta-title {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  margin-top: 0 !important
}
.cta-box p { margin: 5px 0 0 }

/* RELATED ARTICLES */
.related-section { margin-top: 40px }
.related-section h3 { margin-bottom: 20px }
.related-item {
  border-bottom: 1px solid #999;
  padding-bottom: 10px;
  margin-bottom: 10px
}
.related-item a { font-weight: 700; text-transform: uppercase; font-size: 0.9rem }
.related-item p { font-size: 0.85rem; color: #555 }

/* COLORS */
.green { color: #126b26 }
.red { color: #990000 }
.gray { color: #555 }

/* FOOTER */
.footer {
  border-top: 1px solid #999;
  padding: 40px 0;
  margin-top: 40px
}
.linkfooter {
  text-decoration: underline dashed;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-color: #666
}
.linkfooter:hover { text-decoration: none }

/* DLE specific overrides */
.dle_info, #dle_info {
  padding: 10px 20px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  margin-bottom: 20px;
  font-size: 0.9rem
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .glav {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -20px 0 -20px
  }
  .widthfull {
    flex: 1 1 100%;
    max-width: 100%
  }
  .logo a { font-size: 2rem }
  .titlenews { font-size: 1.6rem }
  .fullcontainer {
    grid-template-columns: 1fr;
    margin-top: 0
  }
  .fullright {
    border-left: none;
    padding-left: 0;
    margin-top: 40px
  }
  .glavnews { border-top: 0 }
  .columnfull { border-top: 0; margin-top: 20px }
}

/* First letter drop-cap */
.firstletter::first-letter {
  initial-letter: 2;
  -webkit-initial-letter: 2;
  margin-right: 10px;
  font-weight: 700
}

/* Sidebar latest news list */
.listnone {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
  word-break: break-word
}
.newsblock.listnone-item { border-bottom: 1px solid #999 }
.listnone .newsblock h3 {
  font-size: 0.95rem;
  padding: 0;
  margin: 20px 0 5px;
  text-transform: uppercase
}
.listnone .newsblock p { margin: 5px 0; font-size: 0.9rem }
.listnone .newsblock p.bottom20 { font-size: 0.9rem; color: #444; margin-bottom: 20px }

/* Sticky sidebar widget */
.stick {
  position: sticky;
  top: 40px
}

/* Channel / license footer of article */
.telega {
  border-top: 1px solid #999;
  padding-top: 40px;
  margin-top: 40px;
  font-size: 1rem;
  color: #555
}
.telega a { color: #555 }

/* Article disclaimer */
.disclaimer {
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  padding-top: 20px;
  margin-top: 40px
}

@media print {
  aside, nav, .topmenu, .fullright, .cta-box, .share, .news-main-image, .newsoverlay { display: none !important }
  body { background: #fff; font-size: 1rem; color: #000 }
  a { color: #000; text-decoration: none }
  .titlefull, .logo { background: none; text-shadow: none; min-height: auto }
  .titlefull a, .logo a, .titlenews, .short, .tagstitle { color: #000 }
}
