/* Theme: "Справедливое общество" */
:root{
  --red:#EA5F5E;
  --yellow:#F2B441;

  --text:#222222;
  --text-dark:#2C3E50;
  --muted:#6b7280;

  --bg:#F4F6F8;
  --bg-light:#F8F9FA;
  --white:#FFFFFF;

  --line:#e9edf2;
  --radius:18px;

  --shadow-sm:0 2px 10px rgba(0,0,0,.08);
  --shadow-md:0 4px 15px rgba(0,0,0,.05);
  --shadow-lg:0 10px 26px rgba(16,24,40,.06);
}

/* ===== Base / reset-ish ===== */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:'Montserrat', sans-serif;
  color:var(--text);
  font-size:18px;
  line-height:1.4;
}
main{
    min-height: 74vh;
}
h1{
    text-transform: uppercase;
}
h2 {
    font-size: 30px;
  }
h5{font-weight:600;}

img{ 
    width:100%; 
    max-width:100%; 
    height:auto; 
    display:block; 
}
.single-image img{
    width: 100%;
    height: 400px;
    /*object-fit: cover;*/
    /*object-position: 0 50%;*/
	object-fit: contain;
    object-position: 50% 50%;
}
.single-content img{
    width: 100%;
    height: 400px;
     /*object-fit: cover;*/
    /*object-position: 0 50%;*/
	object-fit: contain;
    object-position: 50% 50%;
    padding: 20px 0px 20px 0px;
}
.qo{
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 30px;
    max-width: 97%;
}

a{
  color:inherit;
  text-decoration:none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease, filter .2s ease;
  cursor: pointer;
}
a:hover{ color:var(--red); }

/*.wpcf7-list-item-label::before{
    content: "Я соглашаюсь с <a href='/privacy-policy'>политикой конфиденциальности сайта</a> и соглашаюсь на обработку персональных данных";
}*/

a:not([href]):hover{
    color: var(--red) !important;
}
.wpcf7 input[type="text"],.wpcf7 input[type="email"],.wpcf7 input[type="tel"], .wpcf7 textarea { 
    width: 100%; 
    border: none;
    background:#F5F5F5;
    border-radius: 10px;
    min-height: 42px;
    padding:10px
}

.wpcf7 input[type="checkbox"]{
    width: 33px;
    height: 33px;
    border: none;
    border-radius: 10px;
    background: #F5F5F5;
    float: left;
    margin-right: 20px;
}

.wpcf7 label { 
    display: block; 
    font-size:14px;
    font-weight:500;
    color:#000000;
}
.wpcf7-list-item {
  margin: auto;
}

.donate-breadcrumbs, .donate-page {
    background: #f6f6f6;
}

.donate-page .text-qr{
    font-weight: 600;
    font-size:20px;
    background: #FFF;
    width: 60%;
}

/* container 1400px (Bootstrap override) */
@media (min-width: 1400px){
  .container{ max-width:1400px; }
}

/* ===== Header / navbar (legacy) ===== */
header{
  background:#F0F4F7;
}

.main-header{
  background:var(--white);
  box-shadow:var(--shadow-sm);
  position:sticky;
  top:0;
  z-index:1000;
}
.navbar{ padding:15px 0; }

.logo-box{
  width:50px;
  height:50px;
  background:var(--red);
  display:flex;
  align-items:center;
  justify-content:center;
}
.logo-icon{
  width:30px;
  height:30px;
  background:var(--white);
}
.logo-text{ line-height:1.2; }
.logo-title{
  font-size:14px;
  font-weight:700;
  color:var(--text-dark);
}
.logo-subtitle{
  font-size:10px;
  color:var(--muted);
}

.navbar-nav .nav-link{
  font-size:16px;
  font-weight:600;
  color:var(--text-dark);
  padding:10px 15px !important;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}
.navbar-nav .nav-link:hover{ color:var(--red); }

.bg-danger{
  width:43px;
  height:43px;
  margin-top:-6px;
}

footer .bg-danger {
  background-color: #FFF !important;
}

.telegram-icon{
  width:40px;
  height:40px;
  background:var(--red);
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--white);
}

/* donate/support button in header (legacy) */
.support-btn{
  background:#F9B240;
  padding:20px;
  color:var(--bs-heading-color);
  font-weight:700;
  display:block;
  text-align:left;
  font-size:16px;
}
.support-btn:hover{ color:var(--bs-heading-color); filter:brightness(.98); }

/* ===== Breadcrumbs (legacy) ===== */
.breadcrumbs{
  /*background:var(--bg-light);*/
  font-size:14px;
  color:var(--muted);
}
.breadcrumbs a{ color:var(--muted); }
.breadcrumbs span{ color:var(--text-dark); }

/* ===== Generic titles (legacy) ===== */
.section-title{
  font-size:32px;
  font-weight:700;
  color:var(--text-dark);
  margin-bottom:30px;
}
.page-title{
  font-size:30px;
  font-weight:700;
  color:var(--red);
}

/* ==========================================================================
   Front page blocks (your BEM classes: .section, .hero, .how, etc.)
   ========================================================================== */

.home{ font-family:'Montserrat', sans-serif; color:var(--text); }

/* Generic section helpers */
.section{ padding:56px 0; }
.section__head{
  display:flex;
  align-items:baseline;
  gap:16px;
  margin-bottom:18px;
}
.section__title{
  font-weight:700;
  letter-spacing:.02em;
  color:var(--red);
  text-transform: uppercase;
}
.section__title--left{ margin:0 0 14px; }
.section__more{
  color:var(--red);
  font-weight:600;
}
.section-desc{
  color:var(--bs-heading-color);
  font-weight:600;
  font-size: 20px;
}
.section__more:hover{ text-decoration:underline; }

.lead{ margin:0 0 22px; color:#111; line-height:1.45; font-weight: 600; font-size: 20px;}
.muted{ color:var(--muted); font-weight:600; margin:6px 0 14px; }
.mt-16{ margin-top:16px; }

/* Custom buttons used on front-page (keep to avoid colliding with Bootstrap .btn) */
.btn--primary, .wpcf7-submit{
  background:var(--red);
  color:#fff;
  border:1px solid transparent;
  border-radius:10px;
  padding:14px 20px;
  font-weight:800;
  letter-spacing:.02em;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.wpcf7-submit{
  display: block;
  margin: auto;
  width: 90%;
  font-weight:600;
  font-size: 17px;
  text-transform: uppercase;
}

.btn--primary:hover{ filter:brightness(.96); color:#fff; background: #B76464;}
.wpcf7-submit:hover{ filter:brightness(.96); color:#fff; background: #B76464;}

.btn--ghost{
  background:#F9B240;
  color:#111;
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  padding:14px 20px;
  font-weight:600;
  letter-spacing:.02em;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 20px;
  width: fit-content;
}
.btn--ghost:hover{ background:#FFE2B4; color:#111; }

.btn--yellow{
  background:var(--yellow);
  color:#111;
  border:1px solid transparent;
  border-radius:12px;
  padding:14px 20px;
  font-weight:800;
  letter-spacing:.02em;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn--yellow:hover{ filter:brightness(.97); color:#111; }

/* HERO (front-page new) */
.hero{
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  padding:24px 0 28px;
}
.hero__right{
  background:
    radial-gradient(80% 80% at 60% 45%, rgba(227,93,91,.22), transparent 60%),
    url("../img/hero.jpg") center/cover no-repeat;
  min-height:713px;
  background-position:top;
  filter:saturate(1.05);
}
.hero__title{
  margin:0 0 14px;
  font-size:48px;
  line-height:1.05;
  font-weight:900;
  color:#111;
  text-transform:uppercase;
}
.hero__title-accent{ color:var(--red); }
.hero__subtitle{
  margin:0 0 14px;
  font-size:30px;
  font-weight:700;
}
.hero__desc{
  margin:0px 30px 0px 0px;
  color:#111;
  border-bottom:2px solid #F9B240;
  max-width:60%;
  font-weight:700;
  font-size:20px;
  line-height:1.2;
}
.hero__actions{
  display:block;
  width: fit-content;
}

/* STATS */
.stats{
  margin-top:-145px;
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:14px;
}
.stat{
  background:rgba(255,255,255,.7);
  border:1px solid rgba(0,0,0,.06);
  padding: 54px;
  text-align:center;
}
.stat__num{ font-size:20px; font-weight:900; color:var(--red); }
.stat__text{ margin-top:6px; font-size:12px; color:#111; line-height:1.25; }

/* STAT card variant (if used) */
.stat-card{
  position:relative;
  background:#fff;
  border:1px solid #e7e7e7;
  box-shadow:0 8px 18px rgba(0,0,0,.06);
}
.stat-card::before{
  content:"";
  position:absolute;
  inset:10px;
  border:1px solid #efefef;
  pointer-events:none;
}
.stat-number{ color:var(--red); font-size:2rem; font-weight:900; }
.stat-text{ 
    font-size:16px; 
    color:#000; 
    font-weight:400;
}

/* NEWS (front-page grid cards) */
.section--news{ background:#fff; }
.news-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
.news-card{  
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:var(--shadow-lg);
}
.news-content{
    background:#fff;
    min-height: 100%;
}


.news-card__img{ display:block; aspect-ratio:16/9; background:#eef2f6; }
.news-card__img img{ width:100%; height:100%; object-fit:cover; }
.news-card__placeholder{
  display:block;
  width:100%;
  height:100%;
  background:linear-gradient(135deg,#eef2f6,#f8fafc);
}
.news-card__body{ padding:14px 16px 18px; }
.news-card__date{ color:#BFBFBF; font-size:12px; font-weight:400; margin-bottom:8px; }
.news-card__title{ margin:0; font-size:14px; line-height:1.35; font-weight:600; max-width:83%; }
.news-card__title a{ color:#111; }
.news-card__title a:hover{ text-decoration:underline; }

.news-link-icon{
  max-width:45px;
  height:auto;
  float:right;
}

/* Two-col section (if still used) */
.section--two-col{ background:#fff; }
.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}
.card--plain{ background:transparent; border:none; }
.note{
  margin-top:18px;
  background:#eef2f6;
  padding:14px 16px;
  font-weight:700;
}

/* Lists with red triangle */
.list-tri, .faq-page ul{ list-style:none; padding:0; margin:12px 0 0; }
.list-tri li, .faq-page ul li{
  position:relative;
  padding-left:18px;
  margin:8px 0;
  line-height:1.35;
}
.list-tri li::before, .faq-page ul li::before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width:0;
  height:0;
  border-left:7px solid var(--red);
  border-top:4px solid transparent;
  border-bottom:4px solid transparent;
}

/* HOW (timeline like mockups) */
.how{
  background:var(--red);
  color:#fff;
  padding:42px 0 52px;
}
.how__head{ margin-bottom:18px; }
.how__title{
  margin:0;
  font-size:28px;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.how__subtitle{ margin-top:8px; font-weight:600; opacity:.95; font-size: 20px;}
.how__steps{ position:relative; }
.step{ text-align:center; }
.step__icon{
  width:96px;
  height:96px;
  margin:0 auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.step__icon img{
  width:170px;
  height: auto;
  max-width: fit-content;
  /*
  width:96px;
  height:96px;
  */
  object-fit:contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
.step__text{
  font-size:18px;
  line-height:1.3;
  opacity:.95;
  max-width:220px;
  margin:auto;
  margin-top:50px;
  font-weight:400;
}
.how__line{ display:none; }

  .help-card{
        background-size: 160px !important;
  }
  
  .help-inner{
      margin-left: 130px !important;
  }

/* Desktop: horizontal timeline */
@media (min-width: 901px){
  .how__steps{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:22px;
    padding-bottom:46px;
  }
  .how__steps::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:12px;
    height:2px;
    background:rgba(255,255,255,.75);
    border-radius:2px;
  }
  .step{ position:relative; }
  .step:not(:last-child)::after{
    content:"";
    position:absolute;
    left: calc(100% + 11px);
    bottom:-38px;
    transform: translateX(-50%);
    width:0;
    height:0;
    border-left:10px solid rgba(255,255,255,.85);
    border-top:6px solid transparent;
    border-bottom:6px solid transparent;
  }
  .section--banner {
    background: url(https://probation-center.ru/wp-content/themes/fsin/assets/img/hr_m.png) no-repeat right top/230px, var(--red);
  }

}

/* Mobile: vertical timeline */
@media (max-width: 900px){
  .donate-page .text-qr{    width: 100%;   }
  .how__steps{
    display:block;
    padding-left:36px;
  }
  .how__steps::after{
    content:"";
    position:absolute;
    left:14px;
    top:6px;
    bottom:6px;
    width:2px;
    background:rgba(255,255,255,.75);
    border-radius:2px;
  }
  .step{
    position:relative;
    padding:14px 0 18px;
  }
  .step::before{
    content:"";
    position:absolute;
    left:-21px;
    top:0;
    transform: translateX(-50%);
    width:0;
    height:0;
    border-top:10px solid rgba(255,255,255,.85);
    border-left:6px solid transparent;
    border-right:6px solid transparent;
  }
  .step__icon{ width:98px; height:98px; margin:0 auto 10px; }
  .step__icon img{ width:98px; height:98px; }
  .step__text{ font-size:13px; max-width:280px; }
}

/* HELP cards (front-page) */
.section--help{ background:#fff; }
.help-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
}
.help-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  padding: 30px 50px 60px;
  box-shadow:var(--shadow-lg);
  min-height:220px;
  height:100%;
}
.help-card__top{
  display:block;
  margin-bottom:10px;
}
.help-card__media{
  max-width:200px;
  max-height:200px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.help-card__media img{ max-width:123px; height:auto; object-fit:contain; }
.help-card__title{ margin:0; font-size:25px; font-weight:700; }
.help-card__foot{
  margin-top:60px;
  background:#eef2f6;
  padding:10px 12px;
  font-weight: 600;
  font-size: 18px;
  margin-left: 130px;
}

.program-card{
    padding:80px;
}
.program-card p{
    border-left: 5px solid var(--red);
    padding-left: 15px;
    font-weight: 500;
    font-size: 20px;
}

.info-footer{
    margin-top: 50px;
    background: #eef2f6;
    padding: 10px 12px;
    font-weight: 400;
    font-size: 20px;
    width: fit-content;
}

/* Banner */
.section--banner{
  background:
    url(https://probation-center.ru/wp-content/themes/fsin/assets/img/hr.png) no-repeat bottom center/contain,
    var(--red);
  padding:26px 0 10px;
}
.banner{
  padding:22px 0;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.banner__title{
  font-weight:900;
  font-size:54px;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.banner__text{
  opacity:.95;
  font-weight:600;
  font-size:35px;
  margin-top:6px;
  color:#212529;
}
.banner__right{ text-align:right; font-weight:600; font-size:18px; }
.banner__right .btn{ font-weight:600; font-size:40px; }
.banner__right .btn:hover{ color:var(--bs-heading-color); background:#FFE2B4; }
.banner__small{ font-weight:400; opacity:.9; margin-top:8px; color:#212529; }

/* About */
.section--about{ background:var(--bg); }
.quote{
  background:#fff;
  border-radius:16px;
  padding:16px;
  border:1px solid rgba(0,0,0,.06);
  display:grid;
  grid-template-columns:34px 1fr;
  gap:10px;
  margin-bottom:16px;
}
.quote__mark{ font-size:54px; line-height:1; color:var(--red); font-weight:900; }
.quote__text{ font-weight:400; color:#111; font-size:20px;font-style: italic;}

.person{ position:relative; }
.person__img{
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
}
.person__img img{ width:100%; height:auto; }
.person__tag{
  position:absolute;
  left:14px;
  right:14px;
  background:rgba(255,255,255,.92);
  width: fit-content;
  padding:10px 12px;
  
  box-shadow:0 10px 26px rgba(16,24,40,.10);
}
.person__tag--name{ bottom: 141px; font-weight:600; font-size:20px;}
.person__tag--role{ bottom:78px; font-weight:300; font-size:14px;}
.person__tag--org{ bottom:34px; font-weight:300; font-size:14px;}

.support-note{
  margin-top:18px;
  background:#fff;
  border-radius:14px;
  padding:14px 16px;
  border:1px solid rgba(0,0,0,.06);
}
.support-note__title{ font-weight:900; margin-bottom:8px; }
.support-note__items{ display:grid; gap:6px; color:#111; }

/* Contacts */
.section--contacts{ background:#fff; }
.contact-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:20px 0;
  font-weight:600;
}
.contact-row a{ color:#111; }
.contact-row a:hover{ text-decoration:underline; color:#111; }
.contact-row__icon{
  color:var(--red);
  font-weight:900;
  width:18px;
  flex:0 0 18px;
}
.contact-pill{
  margin-top:12px;
  background:var(--red);
  color:#fff;
  font-size:20px;
  padding:12px 14px;
  font-weight:500;
}
.contact-row-tel{
    font-weight:500;
    font-size:30px;
}
.map{
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
  background:#eef2f6;
}
.map iframe{ display:block; }

/* Front-page responsive helpers */
@media (max-width: 1100px){
  .stats{ grid-template-columns:repeat(2, 1fr); }
  .news-grid{ grid-template-columns:1fr; }
  .two-col{ grid-template-columns:1fr; }
  .how__steps{ grid-template-columns:1fr 1fr; }
  .help-grid{ grid-template-columns:1fr; }
  .banner{ flex-direction:column; align-items:flex-start; }
  .banner__right{ text-align:left; }
  .section--banner {
    background: url(https://probation-center.ru/wp-content/themes/fsin/assets/img/hr_m.png) no-repeat right top/230px, var(--red);
  }
}

@media (min-width: 1100px){
  .help-card:hover{
        transform: scale(1.2);
        box-shadow: 0 10px 26px rgba(55, 55, 55, 0.6);
  }
  .news-card:hover{
        transform: scale(1.2);
        box-shadow: 0 10px 26px rgba(55, 55, 55, 0.6);
    }  
}

@media (max-width: 1518px){
  .navbar-nav .nav-link {
    font-size: 14px;
  }
}

@media (max-width: 1398px){
  .navbar-nav .nav-link {
    font-size: 12px;
  }
}

@media (min-width: 901px) and (max-width: 1100px){
  .how__steps{
    display:grid;
    grid-template-columns:repeat(5, 1fr); /* или repeat(3, 1fr) */
    gap:16px;
    padding-left:0;
    padding-bottom:46px;
  }
  .step__icon img {
    width: 100px;
   }
  .step__text {
    font-size: 14px;
  }
  .navbar-nav .nav-link {
    /*font-size: 14px;*/
    padding: 5px !important;
  }
  .support-btn{
      font-size: 13px;
  }
  .program-card {
      padding: 50px;
  }
  .program-card p {
      font-size: 18px;
  }
  
}
/* ==========================================================================
   Mobile menu / burger (used site-wide)
   ========================================================================== */
.burger-btn{
  width:44px;
  height:44px;
  border:none;
  background:none;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0;
}
.burger-btn span{
  width:22px;
  height:2px;
  background:#111;
  border-radius:2px;
  display:block;
}

.mobile-menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(17,24,39,.55);
  opacity:0;
  transition: opacity .2s ease;
  z-index:1050;
}
.mobile-menu-overlay.is-active{ opacity:1; }

.mobile-menu{
  position:fixed;
  top:0;
  right:0;
  height:100vh;
  background:#fff;
  transform: translateX(102%);
  transition: transform .22s ease;
  z-index:1060;
  padding-top:12px;
}
.mobile-menu.is-open{ transform: translateX(0); }

.mobile-menu-content{ padding:12px 8px; }

.mobile-menu-close{
  width:44px;
  height:44px;
  border:1px solid rgba(0,0,0,.15);
  background:#fff;
  border-radius:10px;
  position:relative;
  margin-left:auto;
  display:block;
}
.mobile-menu-close span{
  position:absolute;
  top:50%;
  left:50%;
  width:22px;
  height:2px;
  background:#111;
  border-radius:2px;
  transform-origin:center;
}
.mobile-menu-close span:first-child{ transform: translate(-50%,-50%) rotate(45deg); }
.mobile-menu-close span:last-child{ transform: translate(-50%,-50%) rotate(-45deg); }

.mobile-menu-list .nav-link{
  font-weight:700;
  padding:12px 6px;
}

html.menu-open,
body.menu-open{ overflow:hidden; }

/* ==========================================================================
   Bootstrap modal theming (now using Bootstrap structure)
   ========================================================================== */
.modal-header{
  border-radius: 10px 10px 0px 0px;  
  background:var(--red);
  color:var(--white);
  padding:20px 30px;
}
.modal-content, .modal-dialog{
    border-radius: 10px;
}
.modal-title{
  font-size:18px;
  font-weight:700;
  text-transform: uppercase;
}
.modal-header .btn-close{ filter: invert(1); }
.modal-body{ padding:30px; }

/* Optional styling for CF7 inside modal */
.modal-form .form-label{
  font-weight:600;
  color:var(--text-dark);
  margin-bottom:8px;
}
.modal-form .form-control{
  border:1px solid #E0E0E0;
  padding:12px 15px;
  font-size:14px;
}
.modal-form .form-control::placeholder{ color:#CCCCCC; }
.modal-form .form-control:focus{
  border-color:var(--red);
  box-shadow: 0 0 0 .2rem rgba(227,93,91,.25);
}
.modal-form .form-check-label{
  font-size:13px;
  color:var(--muted);
}
.modal-form .form-check-label a{
  color:var(--red);
  text-decoration:underline;
}

/* ==========================================================================
   Footer (Bootstrap row/col version)
   ========================================================================== */
.site-footer{ color:#fff; }

.site-footer__wrap{
  display:flex;
  width:100%;
}

/* red strip */
.site-footer__main{
  flex:1 1 auto;
  background:var(--red);
}

/* yellow block */
.site-footer__donate-link{
  color:#111;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.02em;
  text-decoration:none;
  font-size:16px;
  background:#F9B240;
  display:flex;
  width: 100%;     /* растянуть на всю ширину колонки */
  height: 100%;
}
.site-footer__donate{
  /*flex:0 0 280px;*/
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  width: 100%;
  height: 100%;
}
.site-footer__donate-link:hover{ color:#111; filter:brightness(.99); width:100%}

.site-footer__row{ padding:18px 0; }

.site-footer__logo img{
  width:210px;
  height:auto;
}

.site-footer__legal{
  margin-top:14px;
  font-size:14px;
  line-height:1.4;
  opacity:.9;
}
.site-footer__legal a{
  color:#fff;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.site-footer__legal a:hover{ color:#fff; border-bottom-color: rgba(255,255,255,.55); }

.site-footer__nav{
  gap:22px;
  justify-content:left;
  font-size:20px;
  font-weight:700;
  opacity:.95;
  margin-top:4px;
}
.site-footer__nav a{
  color:#fff;
  border-bottom:1px solid transparent;
}
.site-footer__nav a:hover{
  color:#fff;
  border-bottom-color: rgba(255,255,255,.45);
}

.site-footer__links{
  gap:22px;
  justify-content:left;
  margin-top:10px;
  font-size:18px;
  opacity:.95;
}
.site-footer__link{
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.35);
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.site-footer__link:hover{ color:#fff; border-bottom-color: rgba(255,255,255,.55); }

.site-footer__actions{
  gap:22px;
  justify-content:center;
  margin-top:14px;
}

.site-footer__btn{
  background: #FFF;
  color:var(--red);
  font-weight:700;
  border-radius:12px;
  padding:10px 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  white-space:nowrap;
  border:0;
}
.site-footer__btn:hover{ color:#7a3a38; text-decoration:none; filter:brightness(.98); }
.site-footer__social{
    display: inline-flex !important;
}
.site-footer__social img{
  width:44px;
  height:44px;
  object-fit:contain;
}

/* Mobile footer */
@media (max-width: 900px){
  .site-footer__wrap{ display:block; }

  .site-footer__donate{
    flex:none;
    width:100%;
    padding:18px 16px;
    justify-content:center;
  }
  .site-footer__donate-link{
    display:block;
    text-align:center;
  }

  .site-footer__mobile-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  .site-footer__mobile-icons{
    display:flex;
    align-items:center;
    gap:12px;
  }

  .site-footer__burger{
    width:44px;
    height:44px;
    border:none;
    background:transparent;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:0;
  }
  .site-footer__burger span{
    width:22px;
    height:2px;
    background:#fff;
    border-radius:2px;
    display:block;
  }

  .site-footer__mobile-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:18px;
  }
  .site-footer__btn{
    white-space:normal;
    text-align:center;
    padding:10px 12px;
  }

  .site-footer__mobile-links{
    display:grid;
    gap:14px;
    margin-top:18px;
  }
  .site-footer__mobile-links .site-footer__link{
    justify-content:flex-start;
    width:fit-content;
  }
}

/* ==========================================================================
   Legacy inner pages components (kept; simplified to use tokens)
   ========================================================================== */

/* News (legacy cards) */
.news-image{
  width:100%;
  height:200px;
  overflow:hidden;
}
.news-image img{
  width:100%;
  height:100%;
  /*object-fit:cover;*/
  object-fit:contain;
}
.news-placeholder{ background:#ddd; height:200px; }
.news-content{ padding:20px; }
.news-date{ font-size:14px; color:var(--muted); margin-bottom:10px; }
.news-title{ font-size:18px; font-weight:600; color:var(--text-dark); margin-bottom:15px; }
.news-title a{ color:inherit; }
.news-link-icon{
  width:40px;
  height:40px;
  background:var(--red);
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--white);
}

/* FAQ */
.faq-accordion .accordion-item{
  border:1px solid #E0E0E0;
  border-radius:10px;
  overflow:hidden;
}
.faq-accordion .accordion-button{
  background:#F5F5F5;
  color:var(--text-dark);
  font-weight:600;
  font-size:16px;
  padding:20px 25px;
}
.faq-accordion .accordion-button:not(.collapsed){
  background:var(--red);
  color:var(--white);
}
.faq-accordion .accordion-button:focus{
  box-shadow:none;
  border-color:var(--red);
}
.faq-accordion .accordion-body{
  padding:25px;
  font-size:15px;
  line-height:1.7;
}

/* Documents */
/*.document-tabs{ border-bottom:2px solid #E0E0E0; }*/
.document-tabs .nav-link{
  color:var(--text-dark);
  font-weight:400;
  padding:12px 20px;
  font-size:20px;
  border:none;
  background: #F0F4F7;
  border-radius: 20px 20px 0 0;
  /*border-bottom:3px solid transparent;*/
  max-width: 210px;
  min-height: 101%;
}
.document-tabs .nav-link:hover{
    background: var(--red);
    color:#FFF;
}
.nav-tabs{
    border:none;
}
.document-tabs{
    display: inline-flex;
}
.document-tabs .nav-link:hover{ border-color:var(--red); }
.document-tabs .nav-link.active{
  background:var(--red);
  color:var(--white);
  border-radius:20px 20px 0 0;
}
.document-card{
  /*background:var(--white);
  border:2px solid #E0E0E0;
  border-radius:10px;*/
  padding:20px;
  transition: transform .2s ease, border-color .2s ease;
}
/*.document-card:hover{
  border-color:var(--red);
  transform: translateY(-3px);
}*/
.document-icon img{ max-width:80px; }
.document-title{
  font-size:14px;
  font-weight:600;
  color:var(--text-dark);
}
.docs-nav__mobile { display: none; }

/* Experts */
.expert-card{ padding:20px; }
.expert-photo img{
  width:200px;
  height:200px;
  object-fit:cover;
}
.expert-placeholder{
  width:200px;
  height:200px;
  background:#ddd;
}
.expert-name{
  font-size:18px;
  font-weight:600;
  color:var(--text-dark);
}
.expert-position{ font-size:14px; color:var(--muted); }

/* Single news (legacy) */
.single-news{ padding:50px 0; }
.single-title{ font-size:32px; font-weight:700; color:var(--text-dark); }
.single-date{ color:var(--muted); font-size:14px; }
.single-content{ font-size:16px; line-height:1.8; }
.single-content p{ margin-bottom:20px; }
.single-content h2,
.single-content h3{
  margin-top:30px;
  margin-bottom:15px;
  font-weight:600;
}

/* Responsive (legacy sizing) */
@media (max-width: 991px){
  .support-btn-wrapper{ margin-top:15px; }
  .hero__title{ font-size:32px; }
  .hero__subtitle{ font-size:18px; }
  .section-title{ font-size:28px; }
  .page-title{ font-size:30px; }
}
@media (max-width: 767px){
   .hero__right{
        background:  #F4F6F8,url("../img/hero_m.png") top/100% no-repeat;
        /*min-height:713px;
        background-position:top;
        filter:saturate(1.05);*/
   }
  .hero__section{ padding:50px 0; }
  .hero__right{
      min-height: 524px;
  }
  .hero__title{ 
        font-size: 25px;
        line-height: 1.3; 
  }
  .support-btn{font-size:14px;}
  .hero__desc{float: unset;max-width: 100%; margin-right:0px;font-weight: 600; font-size: 17px;}
  .hero__subtitle{ font-size:17px; }
  .section__title{ font-size:24px; }
  .page-title{ font-size:26px; }
  .document-tabs .nav-link{ font-size:13px; padding:10px 12px; }
  .expert-photo img,
  .expert-placeholder{ width:150px; height:150px; }
  .btn--ghost, .btn--primary{
      font-size: 14px;
      padding: 10px;
  }
  .hero__actions{width: fit-content;display: contents;}
  .stats{
        position: relative;
        background: #fff;
        border: 1px solid #e7e7e7;
        box-shadow: 0 8px 18px rgba(0,0,0,.06);
        padding: 24px;
        max-width: 93%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
  }
  .stats:before{
        content: "";
        position: absolute;
        inset: 10px;
        border: 1px solid #efefef;
        pointer-events: none;
  }
  .stat-card::before{
      border:none;
  }
  .stat-card{
      border:none;
      box-shadow:none;
  }
  .stat{
      padding: 5px;
  }
  .stat-number{
      font-size: 22px;
  }
  .stat-text{
      font-size: 14px;
  }
  .news-link-icon {
    width: 24px;
    height: 24px;
  }
  .step__text {
      margin-top: 10px;
      font-size: 18px;
  }
  .help-card {
      padding: 10px;
  }
  .help-card{
      background-size: 100px !important;;
  }
  .help-inner{
      margin-left: 95px !important;
  }
  .help-card__foot{
    margin-top:30px;
    margin-left: unset;
    max-width: fit-content;
  }
  .banner__title{
      font-size: 36px;
  }
  .banner__text{
      font-size: 26px;
  }
  .banner__right .btn {
    font-size: 26px;
  }
  .banner__small{
      font-size: 16px;
  }
  .section--banner{
  background:
        url(https://probation-center.ru/wp-content/themes/fsin/assets/img/hr_m.png) no-repeat right top/230px,
        var(--red);
      padding:26px 0 10px;
  }
  .program-card{
      display:flex;
  } 
  .prison-card{
      padding: 30px;
      min-height: auto;
  }
  .qo {
    padding: 10px;
    max-width: 100%;
    margin:auto;
  }
  .person__tag {
      padding: 7px;
  }
  .person__tag--role, .person__tag--org{
      font-size: 13px;
  }
  .person__tag--name{bottom: 100px;}
  .person__tag--role{bottom: 60px;}
  .person__tag--org{bottom: 5px;}
  .support-note{margin: 10px;}
  
  .contact-pill {
    font-size: 16px;
  }
  .contact-row img {
    width: auto;
    max-width: none;
  }
  .site-footer__btn{
    font-size: 12px;
    padding: 7px;
    font-size: 12px;
  }
  .site-footer__mobile-links {
    display: block;
  }
  .site-footer__link{
    font-size: 13px;
  }
  .privacy-policy, .personal-data{
      font-size: 12px;
  }
  
  /*Для мобильного меню страницы документов*/
  .document-tabs{
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .document-tabs li{
    width: 100%;
  }
  .document-tabs li button{
    display: block;
    min-width: 100%;
    border-radius: unset !important;
  }
  .docs-nav__desktop { display: none; }
  .docs-nav__mobile  { display: block; }

  #documentTabsSelect{
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
  }
  .site-footer__donate-link {
    font-size: 14px;
  }
  .single-image img{
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: unset;
        padding: 0px;
    }
    .single-content img{
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: unset;
        padding: 0px;
    }
  
}
@media (max-width: 575px){
  .navbar-brand .logo-box{ width:40px; height:40px; }
  .navbar-brand .logo-title{ font-size:12px; }
  .navbar-brand .logo-subtitle{ font-size:9px; }
  .hero-buttons .btn{ width:100%; margin-bottom:10px; }
  .modal-body{ padding:20px; }  
}

@media (max-width: 400px){
  .donate-page .text-qr{    width: 100%;   }
}

/* Animation helper */
.fade-in{ animation: fadeIn .5s ease-in; }
@keyframes fadeIn{
  from{ opacity:0; transform: translateY(20px); }
  to{ opacity:1; transform: translateY(0); }
}

/* Bootstrap button color alignment (optional; keep if you rely on .btn-primary/.btn-warning) */
.btn-primary{
  background:var(--red);
  border:none;
}
.btn-primary:hover{ filter:brightness(.95); background:var(--red); }

.btn-outline-primary{
  border-color:var(--red);
  color:var(--red);
}
.btn-outline-primary:hover{
  background:var(--red);
  color:var(--white);
  border-color: unset;
}

.btn-warning{
  background:var(--yellow);
  border:none;
  color:#111;
}
.btn-warning:hover{ filter:brightness(.97); background:var(--yellow); color:#111; }

/* Pagination (legacy) */
.pagination-wrapper .pagination{ justify-content:center; }
.pagination .page-link{
  color:var(--red);
  border:1px solid #E0E0E0;
}
.pagination .page-item.active .page-link{
  background:var(--red);
  border-color:var(--red);
}