/* Homepage final polish — preserves the existing visual system. */
.home-final-page .hero-final{padding:54px 0 44px}
.home-final-page .hero-grid-final{align-items:center;gap:34px}
.home-final-page .hero-copy{max-width:720px}
.home-final-page .hero-lead{font-size:clamp(17px,2vw,20px);line-height:1.58;margin:0 0 17px}
.home-final-page .messenger-prompt{margin-top:18px;max-width:650px}
.home-final-page .master-hero-card{padding:16px}
.home-final-page .master-hero-photo{max-height:310px;object-position:42% center}
.home-final-page .master-hero-title{margin-top:13px!important}
.home-final-page .home-primary-contact-row{margin-top:12px!important}
.home-final-page [data-work-status].is-offline{background:rgba(255,247,237,.15)!important;border-color:rgba(254,215,170,.55)!important;color:#ffedd5!important}
.home-final-page [data-work-status].is-offline .hero-online-dot,
.home-final-page [data-work-status].is-offline .callback-live-dot{background:#f59e0b!important;animation:none!important;box-shadow:none!important}

.home-proof-strip{padding:24px 0 30px;background:#fff}
.home-proof-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.home-proof-head .eyebrow{margin:0}
.home-proof-head h2{font-size:clamp(22px,2.5vw,30px)!important;margin:0!important}
.home-proof-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home-proof-item{display:flex;gap:13px;align-items:flex-start;padding:17px;border:1px solid #dbeafe;border-radius:20px;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:0 12px 30px rgba(15,23,42,.06)}
.home-proof-item>span{display:grid;place-items:center;width:42px;height:42px;min-width:42px;border-radius:15px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;font-size:20px;font-weight:1000;box-shadow:0 10px 24px rgba(37,99,235,.22)}
.home-proof-item strong{display:block;margin-bottom:4px;color:#0f172a}
.home-proof-item p{margin:0;color:#526177;font-size:14px;line-height:1.5}

.home-surface-blue{background:linear-gradient(180deg,#f2f8ff 0%,#ffffff 100%)}
.home-surface-soft{background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}
.home-problem-section .problem-grid-final{grid-template-columns:repeat(4,minmax(0,1fr))}
.home-problem-section .problem-card-final{min-height:118px}
.home-problem-section .problem-card-final small{line-height:1.35}

.home-services-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.home-service-final-card{display:flex;flex-direction:column;min-height:100%;padding:22px!important}
.home-service-final-card .service-title{margin-bottom:8px}
.home-service-final-card .muted{margin:0 0 13px}
.home-service-points{display:grid;gap:7px;margin:0 0 16px;padding:0;list-style:none;color:#475569;font-size:14px}
.home-service-points li{position:relative;padding-left:21px}
.home-service-points li::before{content:"✓";position:absolute;left:0;color:#16a34a;font-weight:1000}
.home-service-final-card .service-actions{margin-top:auto}
.home-service-final-card .service-actions a{width:100%;justify-content:center}
.home-section-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:22px}
.home-action-primary,.home-action-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 20px;border-radius:999px;font-weight:950;text-decoration:none!important;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.home-action-primary{background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff!important;box-shadow:0 14px 32px rgba(37,99,235,.24)}
.home-action-secondary{background:#fff;color:#1d4ed8!important;border:1px solid rgba(37,99,235,.22);box-shadow:0 10px 26px rgba(15,23,42,.07)}
.home-action-primary:hover,.home-action-secondary:hover{transform:translateY(-2px)}

.home-prices-section .price-grid-final{grid-template-columns:repeat(3,minmax(0,1fr))}
.home-process-section{background:linear-gradient(135deg,#eff6ff,#fff 55%,#f0fdf4)}
.home-process-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.home-process-step{display:flex;gap:13px;padding:18px;border:1px solid rgba(37,99,235,.14);border-radius:22px;background:rgba(255,255,255,.82);box-shadow:0 14px 34px rgba(15,23,42,.07)}
.home-process-step>span{display:grid;place-items:center;width:38px;height:38px;min-width:38px;border-radius:999px;background:#2563eb;color:#fff;font-weight:1000;box-shadow:0 10px 22px rgba(37,99,235,.25)}
.home-process-step h3{margin:2px 0 7px;font-size:17px;line-height:1.25}
.home-process-step p{margin:0;color:#526177;font-size:14px;line-height:1.5}

.home-photo-card figcaption{display:grid;gap:5px;padding-top:13px}
.home-photo-card figcaption span{color:#64748b;font-size:13px;line-height:1.45}

.home-surface-dark{position:relative;overflow:hidden;background:linear-gradient(135deg,#0f172a,#1e40af 58%,#0e7490);color:#fff}
.home-surface-dark::before{content:"";position:absolute;width:520px;height:520px;right:-160px;top:-250px;border-radius:50%;background:radial-gradient(circle,rgba(125,211,252,.24),transparent 68%)}
.home-assurance-head,.home-assurance-grid{position:relative;z-index:1}
.home-assurance-head{max-width:760px;margin-bottom:22px}
.home-assurance-head h2{color:#fff;margin-bottom:10px}
.home-assurance-head p{margin:0;color:#dbeafe;font-size:17px}
.home-assurance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.home-assurance-grid article{padding:19px;border-radius:22px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.1);backdrop-filter:blur(15px);box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
.home-assurance-grid strong{display:block;color:#fff;margin-bottom:7px}
.home-assurance-grid p{margin:0;color:#dbeafe;font-size:14px;line-height:1.5}

.home-cases-carousel{position:relative;overflow:hidden;margin-top:18px}
.home-cases-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:4px 3px 16px;scrollbar-width:none}
.home-cases-track::-webkit-scrollbar{display:none}
.home-case-card{flex:0 0 calc((100% - 32px)/3);scroll-snap-align:start;min-height:270px;border-radius:24px;padding:18px;background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(239,246,255,.72));border:1px solid rgba(147,197,253,.4);box-shadow:0 16px 38px rgba(15,23,42,.09)}
.home-cases-controls{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:4px}
.home-cases-arrow{display:grid;place-items:center;width:44px;height:44px;border:1px solid #bfdbfe;border-radius:999px;background:#fff;color:#1d4ed8;font-size:20px;font-weight:1000;cursor:pointer;box-shadow:0 10px 24px rgba(15,23,42,.08)}
.home-cases-arrow:disabled{opacity:.4;cursor:default}
.home-cases-dots{display:flex;gap:7px;align-items:center}
.home-cases-dot{width:9px;height:9px;padding:0;border:0;border-radius:999px;background:#cbd5e1;cursor:pointer;transition:width .18s ease,background .18s ease}
.home-cases-dot.is-active{width:25px;background:#2563eb}

.home-geo-section>.cards{max-width:1160px;margin:18px auto 0;padding:0 18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.home-geo-section>.tagcloud{max-width:1160px;margin:16px auto 0;padding:0 18px;justify-content:center}
.home-geo-section>h2,.home-geo-section>p{max-width:1124px;margin-left:auto;margin-right:auto;padding-left:18px;padding-right:18px}
.home-geo-section>p{color:#526177}
.home-faq-section .faq{max-width:900px;margin:0 auto}
.home-faq-section h2{text-align:center}
.home-final-page .home--block{max-width:900px;margin:0 auto;padding:24px!important}
.home-final-page .home--block h2{font-size:clamp(24px,3vw,34px)!important}

.home-final-page .callback-submit{border-radius:999px!important}
.home-final-page .callback-live-status.is-offline{background:#fff7ed!important;color:#9a3412!important;border-color:#fed7aa!important}

@media(max-width:980px){
  .home-proof-grid,.home-process-grid,.home-assurance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-problem-section .problem-grid-final{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-case-card{flex-basis:calc((100% - 16px)/2)}
  .home-geo-section>.cards{grid-template-columns:1fr}
}
@media(max-width:640px){
  .home-final-page .hero-final{padding:34px 0 28px}
  .home-final-page .hero-grid-final{gap:22px}
  .home-final-page .hero h1{font-size:clamp(30px,9vw,41px);margin-bottom:13px}
  .home-final-page .hero-lead{font-size:16px;line-height:1.52}
  .home-final-page .home-badges{gap:7px;margin-top:14px}
  .home-final-page .home-badges span{font-size:12px;padding:6px 9px}
  .home-final-page .messenger-prompt{font-size:14px;margin-top:14px}
  .home-final-page .home-primary-contact-row .messenger-button:nth-child(n+3){min-height:43px!important;height:43px!important;opacity:.92}
  .home-final-page .master-hero-card{display:grid;grid-template-columns:92px 1fr;column-gap:13px;align-items:center;padding:13px}
  .home-final-page .master-hero-photo{grid-row:1/5;width:92px;height:110px;min-height:110px;object-fit:cover;border-radius:18px}
  .home-final-page .master-hero-title,.home-final-page .master-hero-card p,.home-final-page .master-meta{grid-column:2;margin-top:0!important}
  .home-final-page .master-hero-card p{font-size:13px;line-height:1.4;margin:4px 0}
  .home-final-page .master-meta{gap:4px}
  .home-final-page .master-meta span{font-size:12px}
  .home-proof-head{display:block}
  .home-proof-head .eyebrow{margin-bottom:7px}
  .home-proof-grid,.home-services-grid,.home-prices-section .price-grid-final,.home-process-grid,.home-assurance-grid{grid-template-columns:1fr}
  .home-proof-item{padding:14px}
  .home-problem-section .problem-grid-final{grid-template-columns:1fr 1fr;gap:10px}
  .home-problem-section .problem-card-final{min-height:104px;padding:15px}
  .home-service-final-card{padding:18px!important}
  .home-process-step{padding:15px}
  .home-case-card{flex-basis:88%;min-height:260px}
  .home-section-actions{display:grid;grid-template-columns:1fr;width:100%}
  .home-action-primary,.home-action-secondary{width:100%}
  .brand-text small{font-size:0!important}
  .brand-text small::after{content:"Ремонт ПК · Раменское";font-size:11px}
  .mobile-sticky-cta{opacity:0;transform:translateY(22px);pointer-events:none;transition:opacity .22s ease,transform .22s ease}
  .mobile-sticky-cta.is-visible{opacity:1;transform:translateY(0);pointer-events:auto}
  body{padding-bottom:0!important}
  body.sticky-cta-visible{padding-bottom:86px!important}
}
@media(max-width:390px){
  .home-problem-section .problem-grid-final{grid-template-columns:1fr}
  .home-final-page .master-hero-card{grid-template-columns:82px 1fr}
  .home-final-page .master-hero-photo{width:82px;height:105px}
}
@media(prefers-reduced-motion:reduce){
  .home-cases-track{scroll-behavior:auto}
  .mobile-sticky-cta{transition:none}
}
/* Final conflict overrides for legacy global section backgrounds. */
.home-assurance-section.home-surface-dark{background:linear-gradient(135deg,#0f172a,#1e40af 58%,#0e7490)!important;color:#fff!important}
.home-assurance-section.home-surface-dark h2,.home-assurance-section.home-surface-dark strong{color:#fff!important}
.home-assurance-section.home-surface-dark p{color:#dbeafe!important}
.home-proof-head{display:block}
.home-proof-head .eyebrow{margin-bottom:7px}
.home-final-page .master-hero-title{font-size:18px!important;line-height:1.35!important;font-weight:1000!important;color:#fff!important}
@media(max-width:640px){
  .home-final-page .hero-online-status{width:100%;max-width:100%;font-size:12px;line-height:1.35;white-space:normal;padding:7px 10px}
  .home-final-page .master-hero-title{font-size:15px!important;line-height:1.28!important;margin-bottom:2px!important}
  .home-final-page .master-hero-card p:not(.master-hero-title){font-size:12px!important;line-height:1.38!important}
}
