/*
Theme Name: Рабочий дом Возрождение
Theme URI: https://тула.возрождение.com
Author: Рабочий дом Возрождение
Description: Тема для сайта Рабочего дома Возрождение — помощь людям в трудной жизненной ситуации
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: vozrozhdenie
*/

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --green:      #2d7a3a;
  --green-dark: #1e5a28;
  --green-lt:   #3a9e4a;
  --text:       #1a1a1a;
  --muted:      #555555;
  --white:      #ffffff;
  --bg:         #ffffff;
  --bg-dark:    #1a2e1a;
  --font:       'PT Sans', Arial, sans-serif;
  --cont:       1160px;
  --hh:         80px; /* header height */
}

/* ============================================================
   Reset
   ============================================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);color:var(--text);background:var(--bg);line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
p{margin-bottom:1em}
p:last-child{margin-bottom:0}

/* ============================================================
   Container
   ============================================================ */
.container{max-width:var(--cont);margin:0 auto;padding:0 40px}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar{background:var(--white);}
.top-bar-inner{
  display:flex;align-items:center;justify-content:flex-end;gap:24px;
  max-width:var(--cont);margin:0 auto;padding:7px 40px;
  font-size:.82rem;color:var(--muted);
}
.top-bar-address{display:flex;align-items:center;gap:4px}
.top-bar-phones{display:flex;align-items:center;gap:5px}
.top-bar-phones a{color:var(--green);font-weight:700;transition:color .2s}
.top-bar-phones a:hover{color:var(--green)}
.top-bar-phones a.green{color:var(--green);font-weight:700}
.top-bar-phones a{color:var(--green);font-weight:700}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  background:var(--white);
  border-bottom:none;
  position:sticky;top:0;z-index:100;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:var(--hh);max-width:var(--cont);margin:0 auto;padding:0 40px;
}

/* Logo */
.site-logo{display:flex;align-items:center;gap:12px;text-decoration:none}
.logo-img{width:48px;height:48px;object-fit:contain;flex-shrink:0}
.logo-title{display:block;font-size:1.45rem;font-weight:900;letter-spacing:.03em;text-transform:uppercase;color:var(--text)}
.logo-sub{display:block;font-size:.72rem;color:var(--muted);margin-top:1px}

/* Nav */
.main-nav ul{display:flex;align-items:center;gap:2px}
.main-nav a{
  display:block;padding:8px 16px;font-size:.82rem;font-weight:700;
  letter-spacing:.07em;text-transform:uppercase;color:var(--text);
  position:relative;transition:color .2s;
}
.main-nav a::after{
  content:'';position:absolute;bottom:0;left:16px;right:16px;
  height:2px;background:var(--green);
  transform:scaleX(0);transform-origin:left;transition:transform .25s;
}
.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--green)}
.main-nav a:hover::after,.main-nav .current-menu-item>a::after{transform:scaleX(1)}

/* Burger */
.burger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:4px}
.burger span{display:block;width:24px;height:2px;background:var(--text);border-radius:2px}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav-overlay{
  display:none;position:fixed;inset:0;z-index:200;
  background:#0f1f0f;flex-direction:column;align-items:center;justify-content:center;gap:6px;
}
.mobile-nav-overlay.open{display:flex}
.mobile-nav-overlay a{font-size:1.6rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--white);padding:10px 20px;transition:color .2s}
.mobile-nav-overlay a:hover{color:var(--green-lt)}
.mobile-nav-close{position:absolute;top:20px;right:24px;background:none;border:none;color:var(--white);font-size:2rem;cursor:pointer;line-height:1}

/* ============================================================
   HERO — полный экран, текст слева поверх фото
   ============================================================ */
.hero{
  position:relative;
  min-height:580px;
  background:#222 center/cover no-repeat;
  display:flex;
  align-items:center;
}
/* Градиент слева — текст читается, правая часть открыта */
.hero::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,.45) 55%,rgba(0,0,0,.1) 100%);
  pointer-events:none;
}
.hero-content{
  position:relative;z-index:1;
  max-width:600px;
  padding:60px 0 60px 40px;
}
.hero-content h1{
  font-family:var(--font);font-size:clamp(1.8rem,3.5vw,2.8rem);
  font-weight:700;color:var(--white);margin-bottom:18px;line-height:1.2;
}
.hero-intro{
  font-size:1rem;color:rgba(255,255,255,.88);line-height:1.75;margin-bottom:20px;
}
.hero-brand-line{font-size:.95rem;color:rgba(255,255,255,.85);margin-bottom:8px}
.hero-brand-line strong{font-weight:700}
.hero-features{margin-bottom:20px}
.hero-features li{
  font-size:1rem;font-style:italic;font-weight:700;
  color:var(--white);padding:3px 0;
}
.hero-footer-text{font-size:.9rem;color:rgba(255,255,255,.82);line-height:1.7}

/* ============================================================
   SECTIONS
   ============================================================ */
.section{padding:72px 0}
.section--white{background:var(--white)}
.section--grey{background:#f7f5f0}
.section--dark{background:var(--bg-dark)}

.section-title{text-align:center;margin-bottom:52px}
.section-title h2{
  font-family:'Georgia',serif;font-weight:400;font-size:clamp(1.5rem,2.8vw,2.2rem);
  color:var(--green);letter-spacing:.01em;margin-bottom:10px;
}
.section--dark .section-title h2{color:var(--white)}
.section-title h2::after{
  content:'';display:block;width:48px;height:3px;
  background:#c8a84b;margin:12px auto 0;border-radius:2px;
}
.section--dark .section-title h2::after{background:rgba(255,255,255,.35)}
.section-title p{font-size:.97rem;color:var(--muted);margin-top:14px}
.section--dark .section-title p{color:rgba(255,255,255,.65)}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 28px;font-family:var(--font);font-size:.85rem;
  font-weight:700;letter-spacing:.07em;text-transform:uppercase;
  border:2px solid transparent;cursor:pointer;transition:all .22s;text-decoration:none;
}
.btn-green{background:var(--green);color:var(--white)}
.btn-green:hover{background:var(--green-dark);color:var(--white)}
.btn-outline-white{background:transparent;border-color:var(--white);color:var(--white)}
.btn-outline-white:hover{background:var(--white);color:var(--green)}

/* ============================================================
   ДЕЯТЕЛЬНОСТЬ — 3 колонки с фото
   ============================================================ */
.activity-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
}
.activity-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}
.activity-img{width:100%;aspect-ratio:4/3;overflow:hidden;background:#ddd}
.activity-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.activity-card:hover .activity-img img{transform:scale(1.04)}
.activity-card h3{
  font-size:.95rem;font-weight:900;letter-spacing:.1em;
  text-transform:uppercase;color:var(--text);margin:0;
}
.activity-card p{font-size:.88rem;color:var(--muted);line-height:1.65;margin:0;flex:1}

/* ============================================================
   УСЛУГИ — тёмный фон, 2×2 сетка
   ============================================================ */
.services-dark-grid{
  display:flex;flex-direction:column;
  max-width:860px;margin:0 auto;
}
.service-dark-card{
  padding:20px 0 28px;
  border-bottom:1px solid rgba(255,255,255,.1);
  display:flex;flex-direction:column;align-items:flex-start;gap:8px;
}
.service-dark-card:last-child{border-bottom:none}
.service-dark-card h3{
  font-family:'Georgia',serif;
  font-size:1.3rem;font-weight:700;letter-spacing:0;
  text-transform:none;color:var(--white);margin:0;
}
.service-dark-card p{
  font-size:.92rem;color:rgba(255,255,255,.75);line-height:1.6;margin:0;
}

/* ============================================================
   FAQ — аккордеон
   ============================================================ */
.faq-title{
  font-family:'Georgia',serif !important;font-weight:400 !important;
  text-transform:none !important;letter-spacing:0 !important;
  font-size:clamp(1.8rem,3vw,2.6rem) !important;color:var(--white) !important;
}
.faq-title::after{
  background:#c8a84b !important;
  display:block !important;
  content:'' !important;
}

.faq-list{max-width:900px;margin:0 auto}
.faq-item{border-bottom:1px solid rgba(255,255,255,.12)}
.faq-question{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:20px 0;
  background:none !important;border:none !important;outline:none !important;
  -webkit-appearance:none;appearance:none;
  box-shadow:none !important;border-radius:0 !important;
  cursor:pointer;text-align:left;
  font-family:var(--font);font-size:.95rem;font-weight:700;
  color:var(--white);transition:color .2s;
}
.faq-question:hover{color:var(--green-lt)}
.faq-icon{font-size:1.3rem;color:var(--green-lt);flex-shrink:0;font-weight:300;line-height:1;width:20px;text-align:center}
.faq-answer{display:none;padding:0 0 20px}
.faq-answer p{color:rgba(255,255,255,.72);font-size:.9rem;line-height:1.7;margin:0}
.faq-answer p strong{color:var(--white)}
.faq-item.open .faq-answer{display:block}

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner{
  position:relative;height:240px;background:#222 center/cover no-repeat;
  display:flex;align-items:center;justify-content:center;
}
.page-banner-overlay{position:absolute;inset:0;background:rgba(0,0,0,.52)}
.page-banner-content{position:relative;z-index:1;text-align:center}
.page-banner-content h1{
  font-size:clamp(1.8rem,4vw,3rem);font-weight:900;letter-spacing:.18em;
  text-transform:uppercase;color:var(--white);margin:0 0 14px;
}
.page-banner-line{width:60px;height:3px;background:var(--white);margin:0 auto}

/* ============================================================
   CONTACTS PAGE
   ============================================================ */
.contacts-section{padding:64px 0 80px}
.contacts-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:80px;align-items:start}

.contacts-label{font-size:.8rem;font-weight:700;letter-spacing:.1em;color:var(--green);text-transform:uppercase;margin-bottom:12px}
.contacts-desc{font-size:.93rem;color:var(--text);line-height:1.75;margin-bottom:0}
.contacts-divider{border:none;border-top:1px solid var(--green);margin:22px 0}
.contacts-hours{font-size:.93rem;color:var(--text);margin-bottom:28px}
.contacts-details{display:flex;flex-direction:column;gap:12px}
.contacts-detail-row{display:flex;align-items:flex-start;gap:10px;font-size:.9rem}
.cd-icon{font-size:.95rem;flex-shrink:0;margin-top:2px}
.cd-text{color:var(--text);line-height:1.6}
.cd-text a{color:var(--green);font-weight:700;transition:color .2s}
.cd-text a:hover{color:var(--green-dark)}

.contacts-form-title{font-family:var(--font);font-size:1.2rem;font-weight:400;color:var(--text);margin-bottom:24px;line-height:1.4}
.contacts-form{display:flex;flex-direction:column;gap:10px}
.cf-group input,.cf-group textarea{
  width:100%;padding:12px 14px;border:1px solid #d0d0d0;background:var(--white);
  font-family:var(--font);font-size:.92rem;color:var(--text);
  outline:none;border-radius:0;transition:border-color .2s;-webkit-appearance:none;
}
.cf-group input::placeholder,.cf-group textarea::placeholder{color:#bbb}
.cf-group input:focus,.cf-group textarea:focus{border-color:var(--green)}
.cf-group textarea{min-height:110px;resize:vertical}
.cf-submit{align-self:flex-start;padding:12px 32px;font-size:.85rem;letter-spacing:.1em;margin-top:4px}
.cf-privacy{font-size:.75rem;color:#bbb;margin:5px 0 0}
.cf-privacy a{color:var(--green)}
.contact-success-msg{
  background:#e8f5e9;border-left:4px solid var(--green);
  padding:12px 16px;color:#1e5a28;font-size:.9rem;font-weight:600;margin-bottom:16px;
}

/* ============================================================
   LOGO IMAGE
   ============================================================ */
.logo-img{width:48px;height:48px;object-fit:contain}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-simple{
  background:var(--white);border-top:1px solid #e5e5e5;
  padding:16px 0;text-align:center;font-size:.82rem;color:var(--muted);
}

/* ============================================================
   WordPress core
   ============================================================ */
.aligncenter{display:block;margin:0 auto 20px}
.alignright{float:right;margin:0 0 20px 20px}
.alignleft{float:left;margin:0 20px 20px 0}
.wp-caption{max-width:100%}
.wp-caption-text{text-align:center;font-size:.8rem;color:var(--muted)}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px){
  .activity-grid{grid-template-columns:repeat(2,1fr)}
  .services-dark-grid{grid-template-columns:1fr;max-width:560px}
  .service-dark-card:nth-child(odd){border-right:none}
  .service-dark-card{padding:36px 32px}
  .contacts-layout{grid-template-columns:1fr;gap:48px}
}
@media(max-width:768px){
  .top-bar{}
  .main-nav{display:none}
  .burger{display:flex}
  .hero{min-height:460px}
  .hero-content{padding:40px 24px}
  .page-banner{height:160px}
  .container{padding:0 20px}
  .header-inner{padding:0 20px}
}
@media(max-width:540px){
  .activity-grid{grid-template-columns:1fr}
  .services-dark-grid{grid-template-columns:1fr}
}

/* FAQ внутри единого dark-блока с услугами */
#faq { padding: 0 0 72px; }
#faq .section-title { padding-top: 20px; }

/* Услуги — section-title отступы */
#uslugi { padding-bottom: 0; }

/* Кнопка "Связаться с нами" в услугах чуть меньше */
.service-dark-card .btn { padding: 10px 24px; font-size: .82rem; }

/* FAQ list left-align */
.faq-list { padding: 0 0 16px; }

/* ============================================================
   TOP BAR — правое выравнивание
   ============================================================ */
.top-bar-inner {
  justify-content: flex-end !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 24px !important;
  padding: 7px 40px !important;
}

/* ============================================================
   PHONE REVEAL — скрытый конец номера, reveal при наведении
   ============================================================ */
.phone-reveal {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  font-size: .82rem;
}
.phone-reveal:hover { color: var(--green); }

.phone-visible { color: inherit; }

.phone-hidden {
  display: inline-block;
  /* Маскируем последние цифры точками */
  color: transparent;
  position: relative;
  letter-spacing: .05em;
  transition: color .25s, letter-spacing .25s;
  min-width: 2.4em;
  text-align: left;
}
/* Показываем «••••» вместо цифр */
.phone-hidden::before {
  content: '••••';
  position: absolute;
  left: 0;
  color: var(--muted);
  transition: opacity .25s;
  letter-spacing: .1em;
  font-size: .9em;
}
/* При наведении на всю ссылку — показываем цифры */
.phone-reveal:hover .phone-hidden {
  color: var(--green);
}
.phone-reveal:hover .phone-hidden::before {
  opacity: 0;
}

/* Второй телефон зелёным */
.top-bar-phones a.phone-reveal:last-of-type .phone-visible,
.top-bar-phones a.phone-reveal:last-of-type .phone-hidden::before { color: var(--green); }
.top-bar-phones a.phone-reveal:last-of-type { color: var(--green); font-weight: 700; }

/* ============================================================
   НАША ЖИЗНЬ — фото галерея
   ============================================================ */
.life-intro {
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  text-align: center;
}
.life-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 0;
}
.life-photo-item {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #ddd;
}
.life-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.life-photo-item:hover img { transform: scale(1.04); }

/* ============================================================
   НАША ЖИЗНЬ — посты
   ============================================================ */
.life-posts {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.life-post-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
}
.life-post-card:first-child { padding-top: 0; }
.life-post-card:last-child { border-bottom: none; }

.life-post-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #ddd;
}
.life-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.life-post-img:hover img { transform: scale(1.04); }

.life-post-body { display: flex; flex-direction: column; gap: 12px; }
.life-post-date { font-size: .8rem; color: var(--muted); letter-spacing: .05em; }
.life-post-title { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.life-post-title a { color: var(--text); transition: color .2s; }
.life-post-title a:hover { color: var(--green); }
.life-post-excerpt { font-size: .9rem; color: var(--muted); line-height: 1.65; }
.life-post-btn { align-self: flex-start; padding: 10px 24px; font-size: .82rem; }

.life-pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.life-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid #ddd; color: var(--text);
  font-size: .85rem; transition: all .2s;
}
.life-pagination .page-numbers:hover,
.life-pagination .page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); }
.life-pagination .prev, .life-pagination .next { width: auto; padding: 0 16px; }

.life-no-posts { padding: 40px; text-align: center; color: var(--muted); }
.life-no-posts a { color: var(--green); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.back-link {
  display: inline-block;
  color: var(--green);
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 28px;
  transition: color .2s;
}
.back-link:hover { color: var(--green-dark); }

.single-post-meta { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.single-post-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700; color: var(--text);
  margin-bottom: 28px; line-height: 1.25;
}
.single-post-thumb {
  margin-bottom: 32px;
  border-radius: 4px;
  overflow: hidden;
}
.single-post-thumb img { width: 100%; height: auto; display: block; }
.single-post-content { font-size: 1rem; line-height: 1.8; color: var(--text); }
.single-post-content p { margin-bottom: 1.2em; }
.single-post-content img { max-width: 100%; border-radius: 4px; margin: 20px 0; }
.single-post-content h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.single-post-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }

/* ============================================================
   DOCS PAGE
   ============================================================ */
.docs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.doc-item {
  background: var(--white);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 14px;
  border-left: 4px solid var(--green);
  transition: box-shadow .25s;
}
.doc-item:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.doc-icon { font-size: 1.6rem; flex-shrink: 0; }
.doc-item span { font-size: .93rem; font-weight: 600; color: var(--text); }

/* PAGE content */
.page-content { font-size: 1rem; line-height: 1.8; color: var(--text); }
.page-content p { margin-bottom: 1.2em; }
.page-content h2 { font-size: 1.4rem; margin: 28px 0 12px; }
.page-content img { max-width: 100%; border-radius: 4px; margin: 16px 0; }

/* ============================================================
   RESPONSIVE additions
   ============================================================ */
@media (max-width: 768px) {
  .life-photos { grid-template-columns: 1fr; }
  .life-post-card { grid-template-columns: 1fr; gap: 16px; }
  .top-bar-inner { flex-direction: column !important; align-items: flex-start !important; }
}
@media (max-width: 540px) {
  .life-photos { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   СТРАНИЦА ДОКУМЕНТОВ
   ============================================================ */
.docs-page-header {
  background: var(--white);
  padding: 48px 0 0;
  text-align: center;
}
.docs-page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.docs-page-line {
  width: 100%;
  max-width: 680px;
  height: 2px;
  background: var(--green);
  margin: 0 auto;
}

.docs-page-section { padding-top: 48px; }

.docs-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.docs-card {
  border: 1px solid #e0e0e0;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: var(--white);
  transition: box-shadow .25s, border-color .25s;
}
.docs-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  border-color: #c8e6c9;
}

.docs-card-icon {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  transition: color .2s;
  line-height: 1.3;
}
.docs-card-title:hover { color: var(--green-dark); text-decoration: underline; }

.docs-card-size {
  font-size: .8rem;
  color: var(--muted);
}

.docs-card-subtitle {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.55;
  max-width: 500px;
}

.docs-card-btn {
  margin-top: 12px;
  padding: 11px 36px;
  font-size: .82rem;
  letter-spacing: .12em;
}

@media (max-width: 600px) {
  .docs-card { padding: 28px 20px; }
}

/* ============================================================
   ELEMENTOR — совместимость
   ============================================================ */

/* Убираем дефолтные отступы секций Elementor */
.elementor-section,
.elementor-container { max-width: 100% !important; }

/* Виджеты без отступов по бокам */
.elementor-widget-vozr_hero .hero,
.elementor-widget-vozr_page_banner .page-banner { margin-left: 0; margin-right: 0; }

/* Full-width секции в Elementor */
.elementor-section.elementor-section-stretched { width: 100% !important; }

/* Скрываем заголовок страницы если используем Elementor */
.elementor-page .entry-title,
.elementor-page .page-title { display: none; }

/* Карта в контактах */
.map-wrapper iframe { display: block; }

/* Elementor — убираем padding у виджетов hero/banner */
.elementor-widget-vozr_hero > .elementor-widget-container,
.elementor-widget-vozr_page_banner > .elementor-widget-container { padding: 0 !important; }

/* ============================================================
   НАША ЖИЗНЬ — исправление карточек постов
   ============================================================ */
.life-posts {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
}

.life-post-card {
  display: grid;
  grid-template-columns: 1fr;
  padding: 40px 48px;
  border-bottom: 1px solid #eee;
  background: var(--white);
  position: relative;
}
.life-post-card:last-child { border-bottom: none; }

/* Если есть миниатюра — двухколоночная раскладка */
.life-post-card:has(.life-post-img) {
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
}

.life-post-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #eee;
}
.life-post-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s;
}
.life-post-img:hover img { transform: scale(1.04); }

.life-post-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.life-post-date {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.life-post-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.life-post-title a { color: var(--text); transition: color .2s; }
.life-post-title a:hover { color: var(--green); }

.life-post-excerpt {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Кнопка справа снизу как на скриншоте */
.life-post-btn {
  align-self: flex-end;
  margin-top: auto;
  padding: 10px 28px;
  font-size: .82rem;
  letter-spacing: .1em;
}

/* Без миниатюры — кнопка всё равно справа */
.life-post-card:not(:has(.life-post-img)) .life-post-btn {
  align-self: flex-end;
}

.life-no-posts {
  padding: 60px 48px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
}
.life-no-posts a { color: var(--green); }

/* Пагинация */
.life-pagination {
  margin-top: 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 48px;
}
.life-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid #ddd; color: var(--text);
  font-size: .85rem; transition: all .2s;
  text-decoration: none;
}
.life-pagination .page-numbers:hover,
.life-pagination .page-numbers.current {
  background: var(--green); color: #fff; border-color: var(--green);
}

/* Single post fix */
.single-post-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 24px;
  line-height: 1.25;
}
.single-post-meta {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.single-post-content {
  font-size: .97rem;
  line-height: 1.8;
  color: var(--text);
}
.single-post-content p { margin-bottom: 1.1em; }
.single-post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 2px;
}
.single-post-content h2 { font-size: 1.25rem; margin: 28px 0 12px; }
.single-post-content h3 { font-size: 1.05rem; margin: 22px 0 10px; }

@media (max-width: 768px) {
  .life-post-card,
  .life-post-card:has(.life-post-img) {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .life-pagination { padding: 0 20px; }
  .life-post-btn { align-self: flex-start; }
}

/* ─── Elementor Integration ─────────────────────────────────── */

/* Убираем верхний отступ на Elementor-страницах */
.vozr-elementor-page main,
.elementor-page main {
  min-height: unset;
}

/* Full-width секции в Elementor */
.elementor-section-full_width .elementor-container {
  max-width: 100%;
}

/* Elementor canvas (без шапки/подвала темы) */
.elementor-template-canvas .site-header,
.elementor-template-canvas .top-bar,
.elementor-template-canvas footer {
  display: none;
}

/* Убираем padding у body когда Elementor рисует header сам */
body.elementor-page.elementor-template-canvas {
  padding-top: 0 !important;
}

/* Elementor-секции растягиваются на всю ширину */
.elementor-section.elementor-section-stretched {
  width: 100vw !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Заглушка в редакторе для виджета постов */
.life-no-posts [style*="background:#fff3cd"] {
  margin: 20px 0;
}

/* ─── Elementor Widget overrides ────────────────────────────── */

/* Виджеты растягиваются на всю ширину своей секции */
.vozr-services-wrap,
.vozr-faq-wrap,
.vozr-activity-wrap {
  width: 100%;
  box-sizing: border-box;
}

/* Сетка услуг — по умолчанию 2 колонки, управляется из Elementor */
.vozr-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 100%;
}

/* Сетка деятельности — по умолчанию 3 колонки */
.vozr-activity-grid.activity-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Баннер страницы */
.vozr-page-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  min-height: 260px;
}
.vozr-page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #1a3322;
  opacity: 0.55;
}
.vozr-page-banner .page-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
}
.vozr-page-banner h1 {
  color: #fff;
  font-family: 'Georgia', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  margin: 0 0 16px;
}
.vozr-page-banner-line {
  width: 60px;
  height: 3px;
  background: #c8a84b;
  margin: 0 auto;
}

/* Elementor — секции без обёрток темы растягиваются правильно */
.elementor-section .vozr-services-wrap,
.elementor-section .vozr-faq-wrap,
.elementor-section .vozr-activity-wrap {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Когда виджет в секции с full-width — убираем отступы контейнера */
.elementor-section-full_width .vozr-services-wrap,
.elementor-section-full_width .vozr-faq-wrap,
.elementor-section-full_width .vozr-activity-wrap {
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 900px) {
  .vozr-services-grid { grid-template-columns: 1fr !important; }
  .vozr-activity-grid.activity-grid { grid-template-columns: 1fr !important; }
}
/* Настройки футера*/
.footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 40px;
}
.footer-simple-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-simple-links a {
  font-size: .78rem;
  color: var(--muted);
  transition: color .2s;
}
.footer-simple-links a:hover { color: var(--green); }
.footer-divider {
  color: #ccc;
  font-size: .78rem;
}
@media (max-width: 600px) {
  .footer-simple { flex-direction: column; text-align: center; padding: 16px 20px; }
  .footer-simple-links { justify-content: center; }
}
/* FAQ — центрирование */
.vozr-faq-wrap .faq-question {
    justify-content: center;
}
.vozr-faq-wrap .faq-answer p {
    text-align: center;
}
.top-bar-address {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}
.vozr-activity-card img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.vozr-activity-card img {
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: bicubic;
}
