/* Page: Тахографы (template-tachographs.php) — scoped styles */

/* Header active menu item (site-wide, currently unused on other pages) */
.market-header .primary-nav .current-menu-item > a{color:var(--market-red)}

.tach-page{background:#fff}
.tach-page h1,.tach-page h2,.tach-page h3{color:var(--market-text)}
.tach-page p{margin:0}
.tach-page ul{margin:0;padding:0;list-style:none}
.tach-section{padding:34px 0}
.tach-section--tight{padding:20px 0}
.tach-h2{font-size:clamp(26px,2.6vw,34px);line-height:1.12;letter-spacing:-0.01em;margin:0 0 20px}
.tach-h3{font-size:20px;line-height:1.25;margin:0 0 12px}

/* Breadcrumbs */
.tach-crumbs{margin:14px 0 18px}
.tach-crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;color:#7a828e}
.tach-crumbs li{display:inline-flex;align-items:center;gap:8px}
.tach-crumbs li + li::before{content:'→';color:#b6bcc6}
.tach-crumbs a:hover{color:var(--market-red)}
.tach-crumbs [aria-current="page"]{color:var(--market-text);font-weight:600}

/* Hero */
.tach-hero__grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:28px;align-items:center;padding-bottom:8px}
.tach-hero__copy h1{font-size:clamp(34px,3.4vw,46px);line-height:1.06;letter-spacing:-0.015em;margin:0 0 12px}
.tach-hero__subtitle{font-size:19px;font-weight:600;color:#3d4450;margin:0 0 10px}
.tach-hero__desc{font-size:15px;line-height:1.55;color:#6b7280;max-width:560px;margin:0 0 20px}
.tach-hero__perks{display:flex;flex-wrap:wrap;gap:20px}
.tach-hero__perks li{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:700;color:#2c313a}
.tach-hero__perks .ui-icon{color:var(--market-red);width:18px;height:18px}
.tach-hero__media{position:relative}
.tach-hero__media picture,.tach-hero__media img{display:block;width:100%;max-width:100%}
.tach-hero__media img{height:clamp(240px,26vw,350px);width:100%;object-fit:cover;object-position:70% center;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 26%,#000 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 26%,#000 100%)}

/* Services */
.tach-services{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:16px;align-items:stretch}
.tach-service-hero{position:relative;display:block;overflow:hidden;border-radius:12px;background:linear-gradient(135deg,#0f1114 0%,#1a1d22 62%,#22262e 100%);color:#fff;text-decoration:none;min-height:340px}
.tach-service-hero__body{position:relative;z-index:2;padding:26px 28px;display:flex;flex-direction:column;height:100%}
.tach-service-hero__icon{display:inline-grid;place-items:center;color:var(--market-red);margin-bottom:14px}
.tach-service-hero__icon .ui-icon{width:28px;height:28px}
.tach-service-hero h3{color:#fff;font-size:24px;line-height:1.15;margin:0 0 10px}
.tach-service-hero p{color:rgba(255,255,255,.76);font-size:14.5px;line-height:1.5;max-width:380px;margin:0 0 16px}
.tach-service-hero__list{display:grid;gap:8px;margin:0 0 22px}
.tach-service-hero__list li{position:relative;padding-left:24px;font-size:13.5px;font-weight:600;color:#eef0f3}
.tach-service-hero__list li::before{content:'✓';position:absolute;left:0;top:0;color:var(--market-red);font-weight:900}
.tach-btn-red{display:inline-flex;align-items:center;gap:8px;justify-content:center;background:var(--market-red);color:#fff;border-radius:6px;font-weight:800;text-decoration:none;border:0;transition:background .16s ease}
.tach-btn-red i{font-style:normal;transition:transform .16s ease}
.tach-btn-red:hover{background:var(--market-red-dark)}
.tach-btn-red:hover i{transform:translateX(3px)}
.tach-btn-red--lg{min-height:44px;padding:0 22px;font-size:14px;margin-top:auto;align-self:flex-start}
.tach-service-hero__media{position:absolute;inset:0 0 0 auto;width:52%;z-index:1;pointer-events:none}
.tach-service-hero__media picture,.tach-service-hero__media img{display:block;width:100%;height:100%}
.tach-service-hero__media img{object-fit:cover;object-position:78% center;filter:brightness(1.22) contrast(1.06) saturate(1.05);
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 46%,#000 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 46%,#000 100%)}
.tach-service-hero:hover h3{color:#fff}

.tach-services__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tach-service{display:flex;flex-direction:column;background:#fff;border:1px solid #e4e7ec;border-radius:10px;padding:18px 16px 14px;box-shadow:0 4px 14px rgba(17,24,39,.03);transition:border-color .16s ease,box-shadow .16s ease}
.tach-service:hover{border-color:#f3b9bd;box-shadow:0 8px 20px rgba(17,24,39,.06)}
.tach-service__icon{display:inline-grid;place-items:center;color:var(--market-red);margin-bottom:12px}
.tach-service__icon .ui-icon{width:22px;height:22px}
.tach-service h3{font-size:15.5px;line-height:1.25;margin:0 0 8px}
.tach-service p{font-size:13px;line-height:1.45;color:#6b7280;margin:0 0 14px}
.tach-service__link{margin-top:auto;display:inline-flex;align-items:center;gap:6px;color:var(--market-red);font-size:13px;font-weight:800;text-decoration:none}
.tach-service__link i{font-style:normal;transition:transform .16s ease}
.tach-service__link:hover i{transform:translateX(3px)}

/* Help band */
.tach-helpband{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;background:#f2f3f5;border-radius:12px;padding:20px 24px}
.tach-helpband__text{display:flex;align-items:center;gap:16px;min-width:0}
.tach-helpband__icon{flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:var(--market-red);color:#fff;display:grid;place-items:center}
.tach-helpband__icon .ui-icon{width:22px;height:22px}
.tach-helpband h2{font-size:18px;margin:0 0 3px}
.tach-helpband p{font-size:13.5px;color:#6b7280;max-width:560px}
.tach-helpband__actions{display:flex;gap:12px;flex-wrap:wrap}
.tach-helpband__actions .btn{min-height:42px;border-radius:6px;font-size:13.5px}
.tach-btn-red-outline{border:1px solid var(--market-red);color:var(--market-red);background:#fff}
.tach-btn-red-outline:hover{background:var(--market-red);color:#fff}

/* SEO blocks */
.tach-seo-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:36px}
.tach-seo-col p{font-size:14.5px;line-height:1.6;color:#5b6472;margin-bottom:10px}
.tach-transport{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:4px}
.tach-transport li{display:grid;justify-items:center;gap:8px;text-align:center}
.tach-transport__icon{color:#24272d}
.tach-transport__icon .ui-icon{width:34px;height:34px}
.tach-transport small{font-size:12px;line-height:1.3;color:#6b7280}

.tach-when{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:16px}
.tach-when li{display:grid;gap:6px;border:1px solid #eceef2;border-radius:10px;padding:14px;background:#fff}
.tach-when__icon{color:var(--market-red)}
.tach-when__icon .ui-icon{width:20px;height:20px}
.tach-when b{font-size:13.5px;line-height:1.3}
.tach-when small{font-size:12px;line-height:1.4;color:#6b7280}

/* FAQ accordion (details/summary — no extra JS) */
.tach-faq{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.tach-faq details{background:#fff;border:1px solid #e4e7ec;border-radius:10px}
.tach-faq summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;list-style:none;padding:14px 16px;font-size:14.5px;font-weight:800;color:var(--market-text)}
.tach-faq summary::-webkit-details-marker{display:none}
.tach-faq summary::after{content:'';flex:0 0 10px;width:10px;height:10px;border-right:2px solid #9aa2ae;border-bottom:2px solid #9aa2ae;transform:rotate(45deg);transition:transform .16s ease}
.tach-faq details[open] summary::after{transform:rotate(-135deg)}
.tach-faq summary:hover{color:var(--market-red)}
.tach-faq details p{padding:0 16px 14px;font-size:13.5px;line-height:1.55;color:#6b7280}

/* Final CTA banner */
.tach-final{position:relative;overflow:hidden;border-radius:12px;background:linear-gradient(90deg,#101216 0%,#161a20 55%,#1d222a 100%);color:#fff}
.tach-final__media{position:absolute;inset:0 0 0 auto;width:58%;z-index:0;pointer-events:none}
.tach-final__media picture,.tach-final__media img{display:block;width:100%;height:100%}
.tach-final__media img{object-fit:cover;object-position:62% center;filter:brightness(1.25) saturate(1.06);
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 60%,#000 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 60%,#000 100%)}
.tach-final__body{position:relative;z-index:1;padding:46px 44px;max-width:640px}
.tach-final__body h2{color:#fff;font-size:clamp(24px,2.4vw,32px);line-height:1.15;margin:0 0 10px}
.tach-final__body p{color:rgba(255,255,255,.82);font-size:15px;line-height:1.5;margin:0 0 22px}
.tach-final__actions{display:flex;gap:12px;flex-wrap:wrap}
.tach-final__actions .btn{min-height:46px;border-radius:6px;font-size:14px}

/* Responsive */
@media (max-width:1100px){
  .tach-services{grid-template-columns:1fr}
  .tach-service-hero{min-height:300px}
  .tach-services__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tach-when{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  .tach-seo-grid{grid-template-columns:1fr;gap:24px}
}
@media (max-width:768px){
  .tach-hero__grid{grid-template-columns:1fr;gap:18px;padding-bottom:0}
  .tach-hero__media img{height:240px}
  .tach-crumbs{margin:10px 0 14px}
  .tach-helpband{flex-direction:column;align-items:stretch}
  .tach-helpband__actions .btn{flex:1;justify-content:center}
  .tach-faq{grid-template-columns:1fr}
  .tach-final__body{padding:34px 26px}
  .tach-final__media{width:100%;opacity:.5}
}
@media (max-width:620px){
  .tach-services__grid{grid-template-columns:1fr}
  .tach-service-hero__body{padding:22px}
  .tach-service-hero__media{width:100%;
    -webkit-mask-image:linear-gradient(180deg,#000 0,transparent 85%);
    mask-image:linear-gradient(180deg,#000 0,transparent 85%);opacity:.35}
  .tach-when{grid-template-columns:1fr}
  .tach-when li{grid-template-columns:24px 1fr;column-gap:10px}
  .tach-when__icon{grid-row:1/3}
  .tach-helpband__actions{flex-direction:column}
  .tach-transport{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px}
  .tach-transport__icon .ui-icon{width:30px;height:30px}
  .tach-final__actions{flex-direction:column}
  .tach-final__actions .btn{width:100%}
  .tach-hero__perks{gap:12px}
}
