/*
Theme Name: Помогу в ДТП — современная адаптивная тема с исходной фирменной палитрой
Theme URI: https://pomoguvdtp.ru/
Author: Помогу в ДТП
Description: Адаптивная классическая тема для экспертного сайта о ДТП. Сохраняет существующий контент и WPBakery-разметку, единый шаблон страниц, мобильную адаптацию и блок Яндекс.
Version: 2.9.19
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: pomogu-vdtp
*/

 :root{
  /* Фирменная палитра исходной версии pomoguvdtp.ru */
  --pdtp-red:#ff0000;
  --pdtp-red-dark:#cc0000;
  --pdtp-red-soft:#fff5f5;
  --pdtp-brand:#dd3333;
  --pdtp-brand-dark:#c40000;
  --pdtp-dark:#333333;
  --pdtp-dark-2:#333333;
  --pdtp-text:#666666;
  --pdtp-muted:#888888;
  --pdtp-bg:#ffffff;
  --pdtp-white:#fff;
  --pdtp-border:#e5e5e5;
  --pdtp-radius:4px;
  --pdtp-container:1180px;
  --pdtp-content:900px;
  --pdtp-shadow:0 3px 14px rgba(0,0,0,.08);
}


*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--pdtp-text);
  background:#fff;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px;
  line-height:1.68;
  -webkit-text-size-adjust:100%;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto}
a{color:var(--pdtp-red);text-decoration:none}
a:hover{text-decoration:underline}
button,input,textarea,select{font:inherit}
.container{width:calc(100% - 40px);max-width:var(--pdtp-container);margin-left:auto;margin-right:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.screen-reader-text:focus{position:fixed!important;z-index:100000;top:10px;left:10px;width:auto;height:auto;padding:12px 16px;margin:0;clip:auto;background:#fff;color:#000}

/* HEADER — одинаковый на главной, страницах, записях и архивах */
.site-header{position:relative;z-index:100;background:#fff;border-bottom:1px solid var(--pdtp-border)}
.header-top{background:#dd3333;color:#fff;font-size:14px;border-top:1px solid #ff0000}
.header-top .container{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.header-top a{color:#fff}
.header-main{min-height:76px;display:flex;align-items:center;gap:24px}
.brand{display:flex;align-items:center;gap:12px;min-width:235px;flex:0 0 auto}
.custom-logo{display:block;max-height:58px;width:auto}
.site-title{display:block;color:var(--pdtp-dark);font-size:21px;font-weight:750;line-height:1.15;letter-spacing:-.2px}
.site-description{display:block;color:var(--pdtp-muted);font-size:12px;line-height:1.35;margin-top:4px}
.main-nav{margin-left:auto;min-width:0}
.main-nav ul{display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0}
.main-nav li{position:relative}
.main-nav a{display:block;padding:10px 9px;color:#ff0000;font-size:15px;font-weight:650;line-height:1.25;border-radius:6px}
.main-nav a:hover,.main-nav .current-menu-item>a,.main-nav .current_page_item>a{background:#fff5f5;color:#ff0000;text-decoration:none}
.header-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.phone-button,.cta-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 16px;border-radius:6px;background:#dd3333;color:#fff;font-weight:750;line-height:1.25;border:0;white-space:nowrap}
.phone-button:hover,.cta-button:hover{background:var(--pdtp-red-dark);color:#fff;text-decoration:none}
.menu-toggle{display:none;border:1px solid var(--pdtp-border);background:#fff;color:var(--pdtp-dark);border-radius:6px;padding:9px 12px;cursor:pointer}

/* BREADCRUMBS */
.breadcrumbs{padding:14px 0 8px;font-size:14px;color:var(--pdtp-muted)}
.breadcrumbs a{color:var(--pdtp-muted)}

/* COMMON CONTENT */
.site-main{min-width:0}
.content-wrap{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:34px;align-items:start;padding:16px 0 60px}
.content-area{min-width:0;max-width:100%;overflow-wrap:anywhere}
.content-area>header{margin-bottom:20px}
.entry-title{font-size:clamp(30px,4vw,44px);line-height:1.16;letter-spacing:-.55px;margin:0 0 14px;color:var(--pdtp-dark)}
.entry-content{font-size:17px;line-height:1.72;max-width:100%}
.entry-content>p:first-child{margin-top:0}
.entry-content h2,.entry-content h3,.entry-content h4{color:var(--pdtp-dark);line-height:1.25;scroll-margin-top:20px}
.entry-content h2{font-size:30px;margin:40px 0 16px}
.entry-content h3{font-size:24px;margin:30px 0 13px}
.entry-content h4{font-size:20px;margin:24px 0 10px}
.entry-content p{margin:0 0 1.15em}
.entry-content ul,.entry-content ol{padding-left:26px;margin-top:0;margin-bottom:1.2em}
.entry-content li{margin:.35em 0}
.entry-content blockquote{margin:24px 0;padding:16px 20px;border-left:4px solid var(--pdtp-brand);background:var(--pdtp-red-soft);border-radius:0 6px 6px 0}
.entry-content img{display:block;max-width:100%;height:auto}
.entry-content figure{margin:24px 0}
.entry-content table{width:100%;max-width:100%;border-collapse:collapse;margin:22px 0;font-size:15px}
.entry-content th,.entry-content td{border:1px solid var(--pdtp-border);padding:10px 12px;text-align:left;vertical-align:top}
.entry-content th{background:var(--pdtp-bg);font-weight:700}
.entry-content iframe{max-width:100%}
.entry-content pre,.entry-content code{max-width:100%;overflow:auto}
.entry-content .wp-caption{max-width:100%}
.post-meta{font-size:13px;color:var(--pdtp-muted);margin-bottom:8px}

/* WPBakery: сохраняем его разметку, но убираем типичные overflow/desktop-width проблемы темы */
.content-area .vc_row{width:auto;max-width:none;margin-left:0;margin-right:0}
.content-area .vc_row:after,.content-area .vc_row:before{display:table;content:""}
.content-area .vc_column_container>.vc_column-inner{padding-left:15px;padding-right:15px}
.content-area .wpb_content_element{margin-bottom:20px}
.content-area .wpb_single_image img{max-width:100%;height:auto}
.content-area .vc_video-bg-container,.content-area .vc_parallax{max-width:100%;overflow:hidden}
.content-area .vc_row[data-vc-full-width]{position:relative;left:auto!important;width:auto!important;margin-left:0!important;margin-right:0!important}
.content-area .vc_row[data-vc-full-width-init]{left:auto!important}

/* SIDEBAR */
.sidebar{min-width:0;position:sticky;top:20px}
.widget{background:#fff;border:1px solid var(--pdtp-border);border-radius:var(--pdtp-radius);padding:18px;margin-bottom:18px;overflow:hidden}
.widget-title{font-size:19px;line-height:1.3;color:var(--pdtp-dark);margin:0 0 12px}
.widget ul{margin:0;padding-left:18px}
.widget img{max-width:100%;height:auto}
.yandex-rating-widget{border-top:3px solid var(--pdtp-brand)}
.yandex-rating-widget .rating-link{display:inline-flex;align-items:center;gap:7px;margin-top:7px;font-weight:700}

/* HOME */
.hero{background:#fff;color:#666;background-image:radial-gradient(circle at 10% 20%, rgba(221,51,51,.035) 0 44px, transparent 45px),radial-gradient(circle at 90% 70%, rgba(64,170,220,.025) 0 44px, transparent 45px);background-size:180px 180px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:40px;align-items:start;padding:58px 0}
.hero h1{font-size:clamp(34px,4.8vw,56px);line-height:1.1;letter-spacing:-1px;margin:0 0 18px;color:#ff0000;font-weight:500}
.hero p{font-size:18px;line-height:1.65;color:#777;max-width:820px;margin:0 0 24px}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px}
.hero .secondary{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border:1px solid #dd3333;border-radius:4px;color:#dd3333;font-weight:700;background:#fff}
.hero .secondary:hover{background:#fff5f5;text-decoration:none}
.hero-card{background:rgba(255,255,255,.96);color:#666;padding:22px;border:1px solid #e5e5e5;border-radius:4px;box-shadow:0 4px 18px rgba(0,0,0,.06)}
.hero-card strong{display:block;font-size:20px;line-height:1.3;margin-bottom:8px;color:var(--pdtp-dark)}
.hero-card ul{margin:12px 0 0;padding-left:21px}
.hero-card li{margin:7px 0}
.section{padding:56px 0}
.section.alt{background:var(--pdtp-bg)}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}
.section h2{font-size:clamp(27px,3.5vw,37px);line-height:1.2;letter-spacing:-.4px;color:var(--pdtp-dark);margin:0}
.section-lead{color:var(--pdtp-muted);max-width:760px;margin:8px 0 0}
.cards,.article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.card{background:#fff;border:1px solid var(--pdtp-border);border-radius:var(--pdtp-radius);overflow:hidden;box-shadow:0 2px 10px rgba(37,52,66,.045);min-width:0;min-height:0;align-self:stretch}
.card img{display:block;width:100%;height:auto}
.card-body{padding:19px}
.card h3,.card h2{margin:0 0 9px;font-size:20px;line-height:1.3;color:var(--pdtp-dark)}
.card p{color:var(--pdtp-muted);margin:0 0 13px}
.card-link{font-weight:750}
.service-icon{font-size:26px;margin-bottom:8px}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.stat{padding:19px;background:#fff;border:1px solid var(--pdtp-border);border-radius:var(--pdtp-radius);text-align:center}
.stat strong{display:block;font-size:28px;line-height:1.15;color:var(--pdtp-red)}
.stat span{display:block;color:var(--pdtp-muted);font-size:14px;margin-top:5px}
.post-card-image{display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#eef1f3}
.post-card-image img,.post-card>img{display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:cover;object-position:center}

/* ARCHIVES / SEARCH */
.archive-head{padding:36px 0 18px;background:var(--pdtp-bg);border-bottom:1px solid var(--pdtp-border)}
.archive-head h1{margin:0;color:var(--pdtp-dark);font-size:clamp(30px,4vw,42px);line-height:1.2}
.pagination{display:flex;flex-wrap:wrap;gap:7px;margin-top:28px}
.pagination a,.pagination span{padding:8px 12px;border:1px solid var(--pdtp-border);border-radius:6px;background:#fff}

/* CTA / FOOTER */
.cta{background:var(--pdtp-brand);color:#fff}
.cta-grid{display:flex;justify-content:space-between;align-items:center;gap:25px}
.cta h2{margin:0 0 6px;color:#fff;font-size:28px}
.cta p{margin:0;color:#fff8ef}
.cta .phone-button{background:#fff;color:var(--pdtp-red);box-shadow:none}
.site-footer{background:#333333;color:#dbe2e7;padding:42px 0 20px}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:30px}
.site-footer h3{color:#fff;margin:0 0 12px;font-size:18px}
.site-footer a{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:28px;padding-top:15px;font-size:13px;color:#aeb8c0}
.float-call{position:fixed;right:18px;bottom:18px;z-index:120;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--pdtp-brand);color:#fff;font-size:23px;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.float-call:hover{color:#fff;text-decoration:none;background:var(--pdtp-red-dark)}

/* WOOCOMMERCE */
.woocommerce .content-area{width:100%}

/* MOBILE */
@media(max-width:1080px){
  .header-main{gap:14px}
  .brand{min-width:0}
  .main-nav{margin-left:auto}
  .main-nav a{padding-left:7px;padding-right:7px;font-size:14px}
}
@media(max-width:900px){
  .header-top{display:none}
  .header-main{min-height:68px}
  .menu-toggle{display:block;margin-left:auto}
  .main-nav{display:none;position:absolute;left:0;right:0;top:68px;background:#fff;border-bottom:1px solid var(--pdtp-border);box-shadow:var(--pdtp-shadow);padding:8px 20px}
  .main-nav.is-open{display:block}
  .main-nav ul{display:block}
  .main-nav li{width:100%}
  .main-nav a{padding:12px 10px;font-size:16px}
  .header-actions .phone-button{display:none}
  .hero-grid{grid-template-columns:1fr;padding:48px 0}
  .hero-card{max-width:680px}
  .content-wrap{grid-template-columns:1fr;gap:20px}
  .sidebar{position:static}
  .cards,.article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .container{width:calc(100% - 24px)}
  .site-title{font-size:18px}
  .custom-logo{max-height:48px}
  .hero-grid{padding:38px 0}
  .hero h1{font-size:34px}
  .hero p{font-size:16px}
  .section{padding:42px 0}
  .section-head{display:block}
  .section-head>.card-link{display:inline-block;margin-top:12px}
  .cards,.article-grid,.stats,.footer-grid{grid-template-columns:1fr}
  .content-wrap{padding-bottom:45px}
  .entry-content{font-size:16px}
  .entry-content h2{font-size:27px}
  .entry-content h3{font-size:22px}
  .cta-grid{display:block}
  .cta .phone-button{margin-top:16px}
  .footer-grid{gap:20px}
  .float-call{right:14px;bottom:14px;width:54px;height:54px}

  /* WPBakery: не допускаем горизонтального скролла на телефоне */
  .content-area .vc_row,
  .content-area .vc_row[data-vc-full-width]{max-width:100%!important;overflow:visible!important}
  .content-area .vc_column_container{width:100%!important;float:none!important}
  .content-area .vc_column_container>.vc_column-inner{padding-left:0;padding-right:0}
  .content-area .vc_row[data-vc-full-width]{left:auto!important;width:100%!important;margin-left:0!important;margin-right:0!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Original palette compatibility: source screenshot uses #DD3333 for the top bar and #FF0000 for primary links/headings. */
.site-header .main-nav a,.entry-title,.archive-head h1,.section h2,.entry-content h2,.entry-content h3,.entry-content h4{color:#ff0000}
.site-header .site-title{color:#333333}
.header-top{background:var(--pdtp-brand)}

/* v2.3 — exact source-site visual palette: red #DD3333 / #FF0000 + white. */
.hero .hero-kicker{color:#ff0000!important;font-size:18px;font-weight:500;margin-bottom:26px}
.header-main{background:#fff}
.site-header{background:#fff;border-bottom:1px solid #e5e5e5}
.main-nav a{color:#ff0000!important}
.main-nav a:hover,.main-nav .current-menu-item>a,.main-nav .current_page_item>a{color:#ff0000!important;background:#fff5f5!important}
.entry-title,.archive-head h1,.section h2,.entry-content h2,.entry-content h3,.entry-content h4{color:#ff0000}
.cta{background:#dd3333}
.float-call{background:#dd3333}
@media(max-width:900px){
  .main-nav{top:68px}
  .hero{background:#fff}
}


/* v2.4 — WPBakery compatibility and lightweight attention UI */
.cta h2,
.cta h2 a,
.cta h2 span,
.cta .wpb_heading { color:#fff !important; }
.cta p,
.cta p a,
.cta .wpb_text_column p { color:#fff !important; }

/* WPBakery content can contain inline heading colors. Keep the site's red/white identity in the CTA. */
.cta .wpb_wrapper h2,
.cta .wpb_wrapper h3 { color:#fff !important; }

/* Small CSS-only attention strip: no image, library or extra JavaScript. */
.pdtp-attention {
  display:flex; align-items:center; justify-content:center; gap:9px;
  min-height:42px; padding:8px 16px;
  background:#fff5f5; border-bottom:1px solid #ffd6d6;
  color:#333; font-size:14px; line-height:1.35; text-align:center;
}
.pdtp-attention strong { color:#ff0000; }
.pdtp-attention a {
  display:inline-flex; align-items:center; min-height:30px; padding:4px 12px;
  border-radius:4px; background:#dd3333; color:#fff; font-weight:700;
}
.pdtp-attention a:hover { background:#cc0000; color:#fff; text-decoration:none; }
.pdtp-attention-dot {
  width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:#dd3333;
  box-shadow:0 0 0 0 rgba(221,51,51,.35); animation:pdtp-pulse 2.2s infinite;
}
@keyframes pdtp-pulse {
  0%,70%,100% { box-shadow:0 0 0 0 rgba(221,51,51,0); }
  35% { box-shadow:0 0 0 7px rgba(221,51,51,.12); }
}
@media(prefers-reduced-motion:reduce){ .pdtp-attention-dot{animation:none;} }
@media(max-width:640px){
  .pdtp-attention { justify-content:flex-start; text-align:left; gap:7px; font-size:13px; padding:8px 12px; }
  .pdtp-attention .pdtp-attention-text { flex:1; }
  .pdtp-attention a { padding:5px 9px; font-size:13px; }
}

/* v2.5 — homepage service cards: dedicated ДТП/service cluster, independent from the main menu */
.services-section{background:#fff}
.services-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.service-card{border-top:3px solid #dd3333;transition:transform .16s ease,box-shadow .16s ease}
.service-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08)}
.service-card-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;margin:20px 20px 0;border:1px solid #f0caca;border-radius:50%;background:#fff5f5;text-decoration:none;font-size:28px}
.service-card .card-body{padding-top:14px}
.service-card h3{margin-bottom:9px}
.service-card h3 a{color:#ff0000}
.service-card p{min-height:58px}
@media(max-width:900px){.services-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.services-cards{grid-template-columns:1fr}.service-card p{min-height:0}}


/* v2.6 — editable media, process block and lightweight lead form */
.hero-side{min-width:0}
.hero-media{margin:0 0 16px;border:1px solid #e5e5e5;border-radius:4px;overflow:hidden;background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.06)}
.hero-media img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.service-card-image{display:block;overflow:hidden;background:#f8f8f8}
.service-card-image img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;transition:transform .2s ease}
.service-card:hover .service-card-image img{transform:scale(1.015)}
.service-card-icon{color:#ff0000}
.service-card-icon:hover{color:#ff0000;text-decoration:none}
.pdtp-admin-note{padding:18px;border:1px dashed #dd3333;background:#fff5f5;color:#333;border-radius:4px}
.home-process{background:#fff5f5;border-top:1px solid #ffe2e2;border-bottom:1px solid #ffe2e2}
.process-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.process-step{background:#fff;border:1px solid #e8e8e8;border-radius:4px;padding:20px;box-shadow:0 2px 10px rgba(37,52,66,.035)}
.process-step>span{display:flex;align-items:center;justify-content:center;width:34px;height:34px;margin-bottom:12px;border-radius:50%;background:#dd3333;color:#fff;font-weight:800}
.process-step h3{margin:0 0 8px;color:#333;font-size:19px;line-height:1.3}
.process-step p{margin:0;color:#777;font-size:15px;line-height:1.55}
.pdtp-form-section{background:#fff}
.pdtp-form-box{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:34px;padding:30px;background:#fff5f5;border:1px solid #ffdcdc;border-top:4px solid #dd3333;border-radius:4px}
.pdtp-form-copy h2{margin:0 0 10px;color:#ff0000;font-size:clamp(27px,3.5vw,36px);line-height:1.2}
.pdtp-form-copy>p:not(.post-meta){margin:0 0 20px;color:#666}
.pdtp-form-copy .phone-button{margin-top:6px}
.pdtp-lead-form{background:#fff;padding:22px;border:1px solid #e5e5e5;border-radius:4px}
.pdtp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.pdtp-lead-form label{display:block;color:#333;font-size:14px;font-weight:650}
.pdtp-lead-form label>span:not(.optional){color:#ff0000}
.pdtp-lead-form .optional{float:right;color:#999;font-size:12px;font-weight:400}
.pdtp-lead-form input,.pdtp-lead-form select,.pdtp-lead-form textarea{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #d8d8d8;border-radius:4px;background:#fff;color:#333;line-height:1.35;outline:none}
.pdtp-lead-form input:focus,.pdtp-lead-form select:focus,.pdtp-lead-form textarea:focus{border-color:#dd3333;box-shadow:0 0 0 2px rgba(221,51,51,.08)}
.pdtp-lead-form textarea{resize:vertical;min-height:105px}
.pdtp-form-full{grid-column:1/-1}
.pdtp-submit{margin-top:15px;cursor:pointer;width:100%;min-height:46px}
.pdtp-form-privacy{margin:10px 0 0;color:#888;font-size:12px;line-height:1.45}
.pdtp-form-message{margin-bottom:14px;padding:12px 14px;border-radius:4px;font-size:14px;line-height:1.45}
.pdtp-form-success{background:#eff9ef;border:1px solid #bfe3bf;color:#276327}
.pdtp-form-error{background:#fff0f0;border:1px solid #efbcbc;color:#8a1f1f}
.pdtp-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.widget-services li{margin:7px 0}
.widget-services ul{padding-left:18px}

@media(max-width:900px){
  .process-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pdtp-form-box{grid-template-columns:1fr;gap:22px}
}
@media(max-width:640px){
  .process-grid{grid-template-columns:1fr}
  .pdtp-form-box{padding:18px 14px}
  .pdtp-lead-form{padding:16px 13px}
  .pdtp-form-grid{grid-template-columns:1fr}
  .pdtp-form-full{grid-column:auto}
}

/* v2.6.3 — unified content architecture */
.entry-header-modern{margin-bottom:18px}
.entry-header-modern .entry-title{margin-bottom:0}
.entry-featured-image{margin:0 0 26px;border:1px solid #e8e8e8;border-radius:6px;overflow:hidden;background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.045)}
.entry-featured-image img{display:block;width:100%;height:450px;max-height:none;aspect-ratio:16/9;object-fit:cover;object-position:center}
.pdtp-related-services{margin-top:38px;padding:25px;background:#fff5f5;border:1px solid #ffdcdc;border-top:3px solid #dd3333;border-radius:5px}
.pdtp-related-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:18px}
.pdtp-related-head h2{margin:0 0 7px;color:#ff0000;font-size:25px;line-height:1.25}
.pdtp-related-head p:not(.post-meta){margin:0;color:#666;max-width:760px}
.pdtp-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pdtp-related-card{display:flex;flex-direction:column;justify-content:space-between;min-height:82px;padding:15px;background:#fff;border:1px solid #e7d5d5;border-radius:4px;color:#333;text-decoration:none}
.pdtp-related-card strong{color:#ff0000;line-height:1.3}
.pdtp-related-card span{margin-top:10px;font-size:13px;font-weight:700;color:#666}
.pdtp-related-card:hover{border-color:#dd3333;box-shadow:0 4px 14px rgba(0,0,0,.07);text-decoration:none;transform:translateY(-1px)}

/* Documents: turn existing real URLs into lightweight download cards. */
.pdtp-download-card{display:block;margin:10px 0;padding:0;background:#fff;border:1px solid #dedede;border-left:4px solid #dd3333;border-radius:5px;box-shadow:0 2px 8px rgba(0,0,0,.035);overflow:hidden}
.pdtp-download-card-link{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;color:#333!important;text-decoration:none!important}
.pdtp-download-card-link:hover{background:#fff7f7}
.pdtp-file-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;height:40px;border-radius:4px;background:#fff0f0;color:#dd3333;font-size:11px;font-weight:800;letter-spacing:.3px}
.pdtp-download-label{flex:1;font-weight:700;line-height:1.35}
.pdtp-download-action{display:inline-flex;align-items:center;justify-content:center;min-width:104px;padding:9px 13px;background:#dd3333;color:#fff;border-radius:4px;font-weight:700;font-size:14px}
.pdtp-download-card-link:hover .pdtp-download-action{background:#cc0000}

.documents-promo{background:#fff5f5;border-top:1px solid #ffe0e0;border-bottom:1px solid #ffe0e0}
.documents-promo-grid{display:flex;align-items:center;justify-content:space-between;gap:25px}
.documents-promo h2{margin:0 0 8px;color:#ff0000;font-size:29px}
.documents-promo p:not(.post-meta){margin:0;max-width:780px;color:#666}
.local-pages{background:#fff}
.district-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.district-card{display:flex;flex-direction:column;gap:8px;padding:17px;background:#fff;border:1px solid #e2e2e2;border-top:3px solid #dd3333;border-radius:4px;text-decoration:none;color:#333}
.district-card strong{color:#ff0000}.district-card span{font-size:13px;font-weight:700;color:#666}
.district-card:hover{box-shadow:0 5px 15px rgba(0,0,0,.07);text-decoration:none;transform:translateY(-1px)}

@media(max-width:900px){
 .pdtp-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .district-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .documents-promo-grid{display:block}
 .documents-promo-grid .cta-button{display:inline-flex;margin-top:17px}
}
@media(max-width:640px){
 .pdtp-related-head{display:block}.pdtp-related-head>.card-link{display:inline-block;margin-top:12px}
 .pdtp-related-grid,.district-grid{grid-template-columns:1fr}
 .pdtp-related-services{padding:18px 14px}
 .pdtp-download-card-link{gap:9px;padding:11px 10px}
 .pdtp-file-badge{flex-basis:42px;height:36px}
 .pdtp-download-action{min-width:86px;padding:8px 9px;font-size:13px}
 .documents-promo h2{font-size:25px}
}


/* v2.6.4 — the WordPress homepage editor is now rendered on the public homepage. */
.home-editor-content{padding-top:18px;padding-bottom:34px}
.home-page-editor-content{max-width:980px;background:#fff;border:1px solid var(--pdtp-border);border-radius:var(--pdtp-radius);padding:26px 30px;box-shadow:var(--pdtp-shadow)}
.home-page-editor-content>h1:first-child{display:none}
.home-page-editor-content .wpb_content_element:last-child{margin-bottom:0}
.home-page-editor-content img{max-width:100%;height:auto}

/* v2.7.0 responsive editor compatibility */
.entry-content{line-height:1.65}.wp-block-image img{max-width:100%;height:auto}@media(max-width:767px){.entry-content{font-size:16px;line-height:1.6}.entry-content img{max-width:100%;height:auto}}


/* v2.7.2 — document links + separate download button directly underneath */
.pdtp-documents-page .entry-content .pdtp-download-button-wrap{
  display:block;
  margin:7px 0 20px;
}
.pdtp-documents-page .entry-content a.pdtp-download-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  min-height:44px;
  padding:10px 18px;
  border:0;
  border-radius:6px;
  background:#ff0000;
  color:#fff!important;
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none!important;
  box-shadow:0 2px 6px rgba(0,0,0,.14);
  transition:background .15s ease,transform .15s ease,box-shadow .15s ease;
}
.pdtp-documents-page .entry-content a.pdtp-download-button:before{
  content:"↓";
  margin-right:8px;
  font-size:18px;
  font-weight:800;
}
.pdtp-documents-page .entry-content a.pdtp-download-button:hover{
  background:#d90000;
  color:#fff!important;
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,0,0,.18);
}
.pdtp-documents-page .entry-content a.pdtp-download-button:focus-visible{
  outline:3px solid rgba(255,0,0,.25);
  outline-offset:3px;
}
.pdtp-documents-page .entry-content p:has(> a.pdtp-download-button-wrap){margin-bottom:0}

@media(max-width:700px){
  .pdtp-documents-page .entry-content a.pdtp-download-button{
    width:100%;
    min-height:46px;
  }
}



/* v2.8.0 — stable article cards: long legacy WPBakery fragments must never overflow. */
/* v2.8.1 — equal-height service/news cards and aligned bottom actions */
.service-card,.post-card{display:flex;flex-direction:column;min-height:100%}
.service-card .card-body,.post-card .card-body{display:flex;flex-direction:column;flex:1;min-width:0;overflow:hidden}
.service-card .card-body p,.post-card .card-body p{overflow-wrap:anywhere;word-break:normal}
.service-card .card-link,.post-card .card-link{display:inline-flex;align-items:center;gap:5px;margin-top:auto;align-self:flex-start}



/* v2.8.5 — unified equal-height cards for theme and legacy WPBakery content. */
.article-grid,.cards{align-items:stretch}
.article-grid>.post-card,.cards>.service-card{height:auto;min-height:0;align-self:stretch}
.service-card .card-body,.post-card .card-body{min-height:0}

/* Legacy WPBakery card rows can exist both on the homepage and on old pages
   such as /blog-avtolyubitelya/. JS adds .pdtp-card-row only when every
   column contains a heading and an action link. */
.home-page-editor-content .pdtp-card-row,
.content-area .entry-content .pdtp-card-row{
  display:grid!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  column-gap:20px!important;
  row-gap:20px!important;
  box-sizing:border-box!important;
}
.home-page-editor-content .pdtp-card-row.pdtp-cols-2,
.content-area .entry-content .pdtp-card-row.pdtp-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.home-page-editor-content .pdtp-card-row.pdtp-cols-3,
.content-area .entry-content .pdtp-card-row.pdtp-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.home-page-editor-content .pdtp-card-row.pdtp-cols-4,
.content-area .entry-content .pdtp-card-row.pdtp-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}

.home-page-editor-content .pdtp-card-row>.wpb_column,
.content-area .entry-content .pdtp-card-row>.wpb_column{
  width:auto!important;
  float:none!important;
  display:flex!important;
  align-self:stretch!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.home-page-editor-content .pdtp-card-row>.wpb_column>.vc_column-inner,
.home-page-editor-content .pdtp-card-row>.wpb_column>.vc_column-inner>.wpb_wrapper,
.content-area .entry-content .pdtp-card-row>.wpb_column>.vc_column-inner,
.content-area .entry-content .pdtp-card-row>.wpb_column>.vc_column-inner>.wpb_wrapper{
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.home-page-editor-content .pdtp-card-row .pdtp-card-action,
.content-area .entry-content .pdtp-card-row .pdtp-card-action{
  margin-top:auto!important;
}
.home-page-editor-content .pdtp-card-row .vc_btn3-container,
.home-page-editor-content .pdtp-card-row .pdtp-legacy-vc-btn,
.content-area .entry-content .pdtp-card-row .vc_btn3-container,
.content-area .entry-content .pdtp-card-row .pdtp-legacy-vc-btn{
  margin-bottom:0!important;
}

/* The legacy blog uses three columns per row. */
.pdtp-blog-page .content-area .entry-content .pdtp-card-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}

.pdtp-legacy-vc-btn{display:block;margin:12px 0 16px;text-align:center}
.pdtp-legacy-vc-btn-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 18px;background:#dd3333;color:#fff!important;border-radius:4px;font-weight:700;text-decoration:none!important}
.pdtp-legacy-vc-btn-link:hover{background:#cc0000;color:#fff!important}

@media(max-width:900px){
  .home-page-editor-content .pdtp-card-row.pdtp-cols-4,
  .content-area .entry-content .pdtp-card-row.pdtp-cols-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .pdtp-blog-page .content-area .entry-content .pdtp-card-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:767px){
  .home-page-editor-content .pdtp-card-row,
  .content-area .entry-content .pdtp-card-row{
    display:block!important;
  }
  .home-page-editor-content .pdtp-card-row>.wpb_column,
  .content-area .entry-content .pdtp-card-row>.wpb_column{
    display:block!important;
    width:100%!important;
    margin-bottom:20px!important;
  }
  .home-page-editor-content .pdtp-card-row>.wpb_column:last-child,
  .content-area .entry-content .pdtp-card-row>.wpb_column:last-child{margin-bottom:0!important}
  .home-page-editor-content .pdtp-card-row>.wpb_column>.vc_column-inner,
  .home-page-editor-content .pdtp-card-row>.wpb_column>.vc_column-inner>.wpb_wrapper,
  .content-area .entry-content .pdtp-card-row>.wpb_column>.vc_column-inner,
  .content-area .entry-content .pdtp-card-row>.wpb_column>.vc_column-inner>.wpb_wrapper{
    display:block!important;
    height:auto!important;
  }
  .home-page-editor-content .pdtp-card-row .pdtp-card-action,
  .content-area .entry-content .pdtp-card-row .pdtp-card-action{margin-top:12px!important}
  .pdtp-legacy-vc-btn{margin:10px 0 14px}
}

/* v2.8.5 — stable header at desktop widths. Never allow the menu to be clipped. */
.header-main{min-width:0}
.brand{min-width:0}
.brand>div{min-width:0}
.main-nav{min-width:0;overflow:hidden}
.main-nav ul{flex-wrap:nowrap}
.main-nav li{flex:0 0 auto}
.main-nav a{white-space:nowrap}
@media(max-width:1080px){
  .main-nav a{padding-left:6px;padding-right:6px;font-size:14px}
}

/* Keep the header clean: the hero already contains the urgent call-to-action. */
.pdtp-attention{display:none!important}


/* v2.8.7 — FINAL legacy WPBakery card layout.
   CSS-only grid: no JavaScript marker classes, no float equalization, no :has().
   The row itself determines the number of columns from the available width. */
@media (min-width: 768px){
  .home-page-editor-content > .vc_row,
  .pdtp-blog-page .entry-content > .vc_row{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
    gap:20px!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }

  .home-page-editor-content > .vc_row::before,
  .home-page-editor-content > .vc_row::after,
  .pdtp-blog-page .entry-content > .vc_row::before,
  .pdtp-blog-page .entry-content > .vc_row::after{
    display:none!important;
    content:none!important;
  }

  .home-page-editor-content > .vc_row > .wpb_column,
  .pdtp-blog-page .entry-content > .vc_row > .wpb_column{
    float:none!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    display:flex!important;
    align-items:stretch!important;
    box-sizing:border-box!important;
  }

  .home-page-editor-content > .vc_row > .wpb_column > .vc_column-inner,
  .pdtp-blog-page .entry-content > .vc_row > .wpb_column > .vc_column-inner,
  .home-page-editor-content > .vc_row > .wpb_column > .vc_column-inner > .wpb_wrapper,
  .pdtp-blog-page .entry-content > .vc_row > .wpb_column > .vc_column-inner > .wpb_wrapper{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:100%!important;
    height:auto!important;
    display:flex!important;
    flex-direction:column!important;
    box-sizing:border-box!important;
  }

  /* Old WPBakery cards put the Подробнее link in the last paragraph. */
  .home-page-editor-content > .vc_row > .wpb_column > .vc_column-inner > .wpb_wrapper > p:last-child:has(> a),
  .pdtp-blog-page .entry-content > .vc_row > .wpb_column > .vc_column-inner > .wpb_wrapper > p:last-child:has(> a){
    margin-top:auto!important;
    margin-bottom:0!important;
  }

  .home-page-editor-content > .vc_row > .wpb_column .vc_btn3-container:last-child,
  .home-page-editor-content > .vc_row > .wpb_column .pdtp-legacy-vc-btn:last-child,
  .pdtp-blog-page .entry-content > .vc_row > .wpb_column .vc_btn3-container:last-child,
  .pdtp-blog-page .entry-content > .vc_row > .wpb_column .pdtp-legacy-vc-btn:last-child{
    margin-top:auto!important;
    margin-bottom:0!important;
  }
}

@media (max-width: 767px){
  .home-page-editor-content > .vc_row,
  .pdtp-blog-page .entry-content > .vc_row{
    display:block!important;
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .home-page-editor-content > .vc_row::before,
  .home-page-editor-content > .vc_row::after,
  .pdtp-blog-page .entry-content > .vc_row::before,
  .pdtp-blog-page .entry-content > .vc_row::after{display:none!important;content:none!important}
  .home-page-editor-content > .vc_row > .wpb_column,
  .pdtp-blog-page .entry-content > .vc_row > .wpb_column{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 0 20px!important;
  }
  .home-page-editor-content > .vc_row > .wpb_column:last-child,
  .pdtp-blog-page .entry-content > .vc_row > .wpb_column:last-child{margin-bottom:0!important}
  .home-page-editor-content > .vc_row > .wpb_column > .vc_column-inner,
  .home-page-editor-content > .vc_row > .wpb_column > .vc_column-inner > .wpb_wrapper,
  .pdtp-blog-page .entry-content > .vc_row > .wpb_column > .vc_column-inner,
  .pdtp-blog-page .entry-content > .vc_row > .wpb_column > .vc_column-inner > .wpb_wrapper{
    display:block!important;
    height:auto!important;
    min-height:0!important;
  }
}

/* Make legacy blog cards visually consistent with the theme cards. */
.pdtp-blog-page .entry-content > .vc_row > .wpb_column > .vc_column-inner{
  background:#fff;
  border:1px solid var(--pdtp-border);
  border-radius:var(--pdtp-radius);
  box-shadow:0 2px 10px rgba(37,52,66,.045);
  overflow:hidden;
  margin-bottom:0!important;
}
.pdtp-blog-page .entry-content > .vc_row > .wpb_column > .vc_column-inner > .wpb_wrapper{
  padding:19px;
}
.pdtp-blog-page .entry-content > .vc_row > .wpb_column img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
}
.pdtp-blog-page .entry-content > .vc_row > .wpb_column h2,
.pdtp-blog-page .entry-content > .vc_row > .wpb_column h3,
.pdtp-blog-page .entry-content > .vc_row > .wpb_column h4{
  color:var(--pdtp-red)!important;
  margin-top:0;
}
.pdtp-blog-page .entry-content > .vc_row > .wpb_column > .vc_column-inner > .wpb_wrapper > p:last-child:has(> a) a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:9px 18px;
  background:#f45151;
  color:#fff!important;
  border-radius:5px;
  font-weight:700;
  text-decoration:none!important;
}
.pdtp-blog-page .entry-content > .vc_row > .wpb_column > .vc_column-inner > .wpb_wrapper > p:last-child:has(> a) a:hover{background:#dd3333}



/* v2.9.4 — WPBakery Grid: preserve the original link, align buttons. */
@media (min-width:768px){
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c{
    height:390px!important;
    min-height:390px!important;
    max-height:390px!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-zone-mini,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-zone-mini{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    box-sizing:border-box!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-col,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-col{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    position:relative!important;
    box-sizing:border-box!important;
    padding-bottom:58px!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data-source-post_excerpt,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data-source-post_excerpt{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:6!important;
    overflow:hidden!important;
    max-height:10.2em!important;
  }

  /* Keep the original WPBakery button and its href; only pin its container. */
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container{
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:auto!important;
    margin:0!important;
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:20!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container a,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container a{
    position:relative!important;
    z-index:21!important;
    pointer-events:auto!important;
    visibility:visible!important;
    opacity:1!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }
}

@media (max-width:767px){
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
}

/* v2.9.5 — service cards: no long descriptions; keep only title + full-width action. */
@media (min-width:768px){
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c{
    height:220px!important;
    min-height:220px!important;
    max-height:220px!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-zone-mini,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-zone-mini,
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-col,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-col{
    height:100%!important;
    min-height:0!important;
    box-sizing:border-box!important;
  }

  /* The long service description is deliberately removed. */
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data-source-post_excerpt,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data-source-post_excerpt{
    display:none!important;
  }

  /* Some WPBakery templates put the excerpt in a plain paragraph. Hide only
     paragraphs that contain the long descriptive text, never the button container. */
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data > p:not(.vc_btn3-container),
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data > p:not(.vc_btn3-container){
    display:none!important;
  }

  /* One consistent, full-width action at the bottom of every service card. */
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container{
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:20!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container a,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container a{
    display:flex!important;
    width:100%!important;
    min-height:44px!important;
    margin:0!important;
    padding:10px 14px!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    position:relative!important;
    z-index:21!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
}

@media (max-width:767px){
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data-source-post_excerpt,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data-source-post_excerpt{
    display:none!important;
  }
}


/* v2.9.6 — WPBakery service cards: force one identical bottom line for all actions. */
@media (min-width:768px){
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c{
    position:relative!important;
    height:220px!important;
    min-height:220px!important;
    max-height:220px!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-zone-mini,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-zone-mini{
    position:relative!important;
    width:100%!important;
    height:220px!important;
    min-height:220px!important;
    box-sizing:border-box!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-col,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-col{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:220px!important;
    min-height:220px!important;
    padding:18px 18px 54px!important;
    margin:0!important;
    box-sizing:border-box!important;
  }

  /* Keep only the service title in the content area. */
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data-source-post_excerpt,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data-source-post_excerpt,
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data > p:not(.vc_btn3-container),
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data > p:not(.vc_btn3-container){
    display:none!important;
  }

  /* The original WPBakery link is always anchored to exactly the same bottom edge. */
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container{
    position:absolute!important;
    left:18px!important;
    right:18px!important;
    bottom:0!important;
    width:auto!important;
    height:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:30!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container a,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container a{
    position:relative!important;
    display:flex!important;
    width:100%!important;
    height:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:10px 14px!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
}


/* v2.9.8 — unified article imagery: 16:9 everywhere, including missing-image fallback. */
.post-card-image{display:block;width:100%;height:auto;aspect-ratio:16/9;overflow:hidden;background:#eef1f3}
.post-card-image img{display:block!important;width:100%!important;height:100%!important;aspect-ratio:16/9;object-fit:cover!important;object-position:center!important}
.entry-featured-image{aspect-ratio:16/9;overflow:hidden}
.entry-featured-image img{display:block!important;width:100%!important;height:100%!important;max-height:none!important;aspect-ratio:16/9;object-fit:cover!important;object-position:center!important}
.pdtp-blog-page .entry-content > .vc_row > .wpb_column img{display:block!important;width:100%!important;height:100%!important;aspect-ratio:16/9!important;object-fit:cover!important;object-position:center!important}
@media (max-width:767px){
  .entry-featured-image{aspect-ratio:16/9}
  .entry-featured-image img{height:100%!important}
  .pdtp-blog-page .entry-content > .vc_row > .wpb_column img{height:auto!important;aspect-ratio:16/9!important}
}


/* v2.9.8 — final WPBakery article/service grid image normalization.
   WPBakery uses a pseudo-element on the image zone that can force a square/tall image.
   Override that mechanism so every grid image is a real 16:9 box and cannot cover the button. */
@media (min-width:768px){
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-a,
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-b,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-a,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-b{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:16/9!important;
    box-sizing:border-box!important;
    background-size:cover!important;
    background-position:center!important;
    overflow:hidden!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-a:before,
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-b:before,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-a:before,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-b:before{
    content:""!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    padding-top:56.25%!important;
    margin:0!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c{
    position:relative!important;
    height:155px!important;
    min-height:155px!important;
    max-height:155px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-zone-mini,
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-col,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-zone-mini,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-col{
    box-sizing:border-box!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-col,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-col{
    height:100%!important;
    min-height:0!important;
    padding:14px 12px 48px!important;
  }

  /* No description: title + button only. */
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data-source-post_excerpt,
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data > p:not(.vc_btn3-container),
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data-source-post_excerpt,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_gitem-post-data > p:not(.vc_btn3-container){
    display:none!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container{
    position:absolute!important;
    left:12px!important;
    right:12px!important;
    bottom:10px!important;
    width:auto!important;
    height:36px!important;
    min-height:36px!important;
    margin:0!important;
    padding:0!important;
    z-index:30!important;
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
  }

  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container a,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-c .vc_btn3-container a{
    display:flex!important;
    width:100%!important;
    height:36px!important;
    min-height:36px!important;
    margin:0!important;
    padding:7px 10px!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    position:relative!important;
    z-index:31!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
}

@media (max-width:767px){
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-a,
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-b,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-a,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-b{
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/9!important;
    background-size:cover!important;
    background-position:center!important;
  }
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-a:before,
  .home-page-editor-content .vc_grid .vc_grid-item .vc_gitem-zone-b:before,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-a:before,
  .pdtp-blog-page .vc_grid .vc_grid-item .vc_gitem-zone-b:before{
    padding-top:56.25%!important;
  }
}

/* v2.9.12: the homepage article grid is filled to a complete three-column row by existing posts. */
.home-page-editor-content .pdtp-priority-articles-grid .pdtp-added-article-card,
.home-editor-content .pdtp-priority-articles-grid .pdtp-added-article-card{
  box-sizing:border-box!important;
}

/* v2.9.15 emergency notice */
.pdtp-emergency-note{margin:18px 0 0;font-size:15px;line-height:1.5}.pdtp-emergency-note a{font-weight:700}


/* v2.9.18 — homepage service row: exactly three established services */
.services-section .services-cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;align-items:stretch!important;width:100%!important}
.services-section .service-card{width:auto!important;max-width:none!important;min-width:0!important;margin:0!important}
.services-section .service-card-image{display:block!important;width:100%!important;aspect-ratio:16/9!important;overflow:hidden!important}
.services-section .service-card-image img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
.services-section .service-card .card-body{min-height:220px!important}
@media(max-width:767px){.services-section .services-cards{grid-template-columns:1fr!important;gap:16px!important}.services-section .service-card .card-body{min-height:0!important}}


.services-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.service-card{display:flex!important;flex-direction:column!important;height:100%;min-width:0}
.service-card-image{display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#f4f4f4}
.service-card-image img{display:block;width:100%;height:100%;object-fit:cover}
.service-card .card-body{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:235px;padding:20px!important}
.service-card .card-body p{flex:1 1 auto;min-height:0}
.service-card .card-link{margin-top:auto;align-self:flex-start}

.service-card{overflow:hidden;border:1px solid #e8e8e8;border-top:4px solid #e40000;border-radius:10px;background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.06);transition:transform .18s ease,box-shadow .18s ease}
.service-card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(0,0,0,.10)}
.service-card-image{background:#f5f5f5}
.service-card .card-body{padding:18px 20px 20px!important;min-height:220px!important}
.service-card h3{font-size:21px;line-height:1.2;margin:0 0 10px!important}
.service-card h3 a{color:#e40000;text-decoration:none}
.service-card p{font-size:15px;line-height:1.5;color:#555;margin:0 0 16px}
.service-card .card-link{padding:10px 15px;border-radius:5px;background:#e40000;color:#fff!important;font-weight:700;text-decoration:none}
.service-card .card-link:hover{background:#c90000;color:#fff!important}
@media(max-width:1100px){.services-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  .container{width:calc(100% - 28px)}
  .hero-grid{grid-template-columns:1fr!important;gap:22px!important;padding:28px 0 34px!important}
  .hero h1{font-size:30px!important;line-height:1.08!important;letter-spacing:-.3px!important;margin-bottom:14px!important}
  .hero p{font-size:15px!important;line-height:1.48!important;margin-bottom:17px!important}
  .hero-actions{gap:8px}
  .hero-actions .cta-button,.hero-actions .secondary{width:100%;justify-content:center;box-sizing:border-box}
  .hero-side{width:100%;max-width:none}
  .hero-card{padding:16px!important;font-size:14px}
  .hero-card strong{font-size:18px!important}
  .hero-card li{margin:5px 0}
  .pdtp-form-box{grid-template-columns:1fr!important;gap:18px!important;padding:16px 13px!important}
  .pdtp-form-copy h2{font-size:27px!important}
  .pdtp-form-grid{grid-template-columns:1fr!important}
  .pdtp-form-full{grid-column:auto!important}
  .services-section{padding-top:34px!important}
  .section{padding:34px 0}
  .section h2{font-size:27px!important}
  .services-cards{grid-template-columns:1fr!important;gap:16px!important}
  .service-card .card-body{min-height:0!important;padding:17px!important}
  .service-card h3{font-size:21px!important}
}
@media(max-width:380px){
  .hero h1{font-size:27px!important}
  .hero-kicker{font-size:12px!important}
  .pdtp-form-copy h2{font-size:25px!important}
}
