:root{
  --mgc-red:#dc1f2d;
  --mgc-red-dark:#b81825;
  --mgc-ink:#1e2022;
  --mgc-text:#474b4f;
  --mgc-muted:#767a7d;
  --mgc-line:#e3dfd8;
  --mgc-warm:#f5f2ec;
  --mgc-warm-2:#eee9e1;
  --mgc-paper:#ffffff;
  --mgc-shadow:0 24px 70px rgba(24,22,18,.18);
  --mgc-serif:Georgia,"Times New Roman",serif;
  --mgc-sans:Arial,Helvetica,sans-serif;
}

.mg-company-page{
  width:calc(100% - 88px);
  max-width:1740px;
  margin:0 auto 44px;
  background:#fff;
  color:var(--mgc-ink);
  font-family:var(--mgc-sans);
  line-height:1.4;
  overflow:visible;
}
.mg-company-page *{box-sizing:border-box}
.mg-company-page img{display:block;max-width:100%}
.mg-company-page h1,.mg-company-page h2,.mg-company-page h3,.mg-company-page p{margin:0}
.mg-company-page a{text-decoration:none}
.mg-company-page svg,.mgc-modal svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mg-company-page button,.mg-company-page input,.mg-company-page select,.mg-company-page textarea,.mgc-modal button,.mgc-modal input,.mgc-modal select,.mgc-modal textarea{font:inherit}

/* Shared buttons: same red/outline language as the reference homepage */
.mgc-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.mgc-btn{
  min-height:48px;
  padding:0 22px;
  border:1px solid var(--mgc-red);
  border-radius:1px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  font:700 14px/1 var(--mgc-sans);
  transition:.18s ease;
  cursor:pointer;
  text-decoration:none!important;
}
.mgc-btn:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(220,31,45,.12)}
.mgc-btn--dark{background:var(--mgc-red);border-color:var(--mgc-red);color:#fff}
.mgc-btn--dark:hover{background:var(--mgc-red-dark);border-color:var(--mgc-red-dark);color:#fff}
.mgc-btn--light{background:#fff;border-color:#bbb6af;color:#252729}
.mgc-btn--light:hover{border-color:var(--mgc-red);color:var(--mgc-red)}

/* HERO */
.mgc-hero{
  display:grid;
  grid-template-columns:minmax(690px,48%) minmax(0,52%);
  min-height:548px;
  background:var(--mgc-warm);
  border-bottom:1px solid var(--mgc-line);
}
.mgc-hero__copy{
  min-width:0;
  padding:20px 48px 30px 44px;
  display:flex;
  flex-direction:column;
}
.mgc-kicker{display:flex;align-items:center;gap:9px;min-height:16px;margin-bottom:24px;color:#8b8c8b;font-size:12px}
.mgc-kicker__sep{color:#aaa59e}
.mgc-hero__title{margin-bottom:14px}
.mgc-hero__title h1{font:400 61px/.98 var(--mgc-serif);letter-spacing:-1.9px;color:#242526}
.mgc-hero__subtitle{margin-bottom:18px}
.mgc-hero__subtitle h2{font:400 34px/1.05 var(--mgc-serif);letter-spacing:-.7px;color:#252627}
.mgc-hero__lead{max-width:760px;margin-bottom:26px}
.mgc-hero__lead p{font-size:17px;line-height:1.58;color:#4e5255}
.mgc-hero__lead strong{color:#202224;font-weight:700}
.mgc-hero__actions{margin-bottom:22px}
.mgc-hero__facts{
  margin-top:auto;
  padding-top:18px;
  border-top:1px solid #ddd8cf;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  background:#ddd8cf;
}
.mgc-mini{
  min-width:0;
  min-height:104px;
  padding:16px 14px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}
.mgc-mini__icon{font-size:27px;color:var(--mgc-red);display:flex}
.mgc-mini__text{font-size:13px;line-height:1.28;font-weight:700;color:#2b2d2f}
.mgc-hero__visual{position:relative;min-height:548px;background-size:cover;background-position:center center;overflow:hidden}
.mgc-hero__visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(33,29,24,.05),transparent 18%);pointer-events:none}
.mgc-logo-card{
  position:absolute;
  z-index:2;
  top:8%;
  right:5.5%;
  width:min(35%,288px);
  min-width:210px;
  padding:20px 18px 18px;
  text-align:center;
  background:rgba(255,255,255,.93);
  border:1px solid rgba(50,45,39,.08);
  box-shadow:0 16px 32px rgba(28,25,21,.09);
}
.mgc-logo-card__logo img{width:100%;height:auto;margin:0 auto}
.mgc-logo-card__rule{width:34px;height:1px;background:#8f8981;margin:12px auto 10px}
.mgc-logo-card__tagline{font-size:11px;letter-spacing:3.7px;line-height:1.55;color:#292b2d}

/* Sections */
.mgc-section{padding:30px 44px}
.mgc-section__title h2,.mgc-service__reasons-title h2,.mgc-stats__title h2,.mgc-audiences__title h2,.mgc-cta__title h2{
  font:400 34px/1.08 var(--mgc-serif);
  letter-spacing:-.7px;
  color:#222426;
}
.mgc-section__subtitle{margin-top:4px;margin-bottom:20px}
.mgc-section__subtitle p{font-size:15px;color:#777a7c}

/* Timeline */
.mgc-history{background:#fff}
.mgc-timeline{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.mgc-year{min-width:0}
.mgc-year__date{font-size:16px;font-weight:700;margin:0 0 8px 4px;color:#242628}
.mgc-year__line{height:1px;background:#5f6264;position:relative;margin-bottom:12px}
.mgc-year__line i{position:absolute;left:1px;top:-4px;width:9px;height:9px;border:2px solid #242628;border-radius:50%;background:#fff}
.mgc-year__image{margin-bottom:9px;overflow:hidden}
.mgc-year__image img{width:100%;aspect-ratio:1.55/1;object-fit:cover;transition:.25s ease}
.mgc-year:hover .mgc-year__image img{transform:scale(1.018)}
.mgc-year__text p{font-size:12.5px;line-height:1.36;color:#45494c}

/* Service / move store home */
.mgc-service{display:grid;grid-template-columns:41% 59%;min-height:410px;border-top:1px solid var(--mgc-line);border-bottom:1px solid var(--mgc-line)}
.mgc-service__image{position:relative;min-height:410px;background-size:cover;background-position:center center;overflow:hidden}
.mgc-service__panel{
  position:absolute;
  left:32px;
  top:34px;
  bottom:34px;
  width:min(78%,470px);
  padding:30px 30px 28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:rgba(250,247,241,.94);
  border:1px solid rgba(92,80,67,.12);
  box-shadow:0 18px 40px rgba(39,32,25,.12);
}
.mgc-service__panel:before{content:"СЕРВИС МГ ПЛИТКА";font-size:10px;letter-spacing:2.4px;color:var(--mgc-red);font-weight:700;margin-bottom:13px}
.mgc-service__panel-title{margin-bottom:13px}
.mgc-service__panel-title h2{font:400 38px/1.03 var(--mgc-serif);letter-spacing:-.9px;color:#242526}
.mgc-service__panel-text p{font-size:16px;line-height:1.56;color:#55595b}
.mgc-service__reasons{padding:30px 38px 26px 40px;background:#fff}
.mgc-reasons-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 30px;margin-top:22px}
.mgc-reason{display:grid;grid-template-columns:46px 1fr;gap:13px;align-items:flex-start}
.mgc-reason__icon{width:46px;height:46px;border:1px solid #e0ddd8;background:#fff;display:grid;place-items:center;font-size:24px;color:var(--mgc-red)}
.mgc-reason__copy{min-width:0}
.mgc-reason__title{margin:2px 0 4px}
.mgc-reason__title h3{font-size:14px;line-height:1.25;color:#292b2d}
.mgc-reason__text p{font-size:12.5px;line-height:1.45;color:#676b6e}

/* Stats + certificate */
.mgc-stats{display:grid;grid-template-columns:65% 35%;background:#f7f5f1;border-bottom:1px solid var(--mgc-line)}
.mgc-stats__main{padding:27px 44px 28px;background:linear-gradient(120deg,#fbfaf7,#f0ece5)}
.mgc-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:20px}
.mgc-stat{min-width:0;padding:0 18px;border-right:1px solid #d7d1c7}
.mgc-stat:first-child{padding-left:0}.mgc-stat:last-child{border-right:0;padding-right:0}
.mgc-stat__icon{font-size:30px;line-height:1;color:var(--mgc-red);margin-bottom:9px}
.mgc-stat__value strong{font-size:22px;line-height:1.05;white-space:nowrap;color:#292b2d}
.mgc-stat__text{margin-top:6px}
.mgc-stat__text small{font-size:11.5px;line-height:1.35;color:#606467}
.mgc-certificate-card{display:grid;grid-template-columns:58% 42%;min-height:205px;background:#242627;color:#fff}
.mgc-certificate-card__copy{padding:24px 20px;display:flex;flex-direction:column;justify-content:center;gap:10px}
.mgc-certificate-card__brand{font-size:18px;font-weight:700;line-height:1.15;color:#fff}
.mgc-certificate-card__status{font-size:11px;letter-spacing:3px;line-height:1.5;color:#f0f0ef}
.mgc-certificate-card__action{margin-top:2px}
.mgc-cert-button{width:100%;min-height:42px;padding:0 13px;border:1px solid var(--mgc-red);background:var(--mgc-red);color:#fff;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700}
.mgc-cert-button:hover{background:var(--mgc-red-dark);border-color:var(--mgc-red-dark);color:#fff}
.mgc-certificate-card__preview{background:#ece8e1;padding:8px;overflow:hidden}
.mgc-certificate-card__preview img{width:100%;height:100%;object-fit:contain;object-position:center;background:#fff}

/* Audiences */
.mgc-audiences{padding-top:26px;padding-bottom:26px;background:#fff}
.mgc-audience-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:18px}
.mgc-audience-grid article{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:start;padding:0 22px;border-right:1px solid #e1ded9}
.mgc-audience-grid article:first-child{padding-left:0}.mgc-audience-grid article:last-child{border-right:0;padding-right:0}
.mgc-audience__icon{font-size:33px;color:var(--mgc-red)}
.mgc-audience__title{margin:1px 0 5px}.mgc-audience__title h3{font-size:13.5px;line-height:1.25;color:#292b2d}
.mgc-audience__text p{font-size:12px;line-height:1.4;color:#686c6f}

/* CTA */
.mgc-cta{display:grid;grid-template-columns:40% 60%;min-height:295px;background:var(--mgc-warm);border-top:1px solid var(--mgc-line)}
.mgc-cta__copy{padding:34px 44px;display:flex;flex-direction:column;justify-content:center}
.mgc-cta__title{margin-bottom:11px}
.mgc-cta__text{max-width:460px;margin-bottom:22px}.mgc-cta__text p{font-size:15px;line-height:1.5;color:#55595c}
.mgc-cta__visual{position:relative;min-height:295px;background-size:cover;background-position:center center;overflow:hidden}
.mgc-cta__visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(22,19,16,.04),rgba(22,19,16,.01));pointer-events:none}
.mgc-cta__logo{position:absolute;right:30px;top:38px;z-index:2;width:200px;text-align:center;color:#fff}
.mgc-cta__logo-image{padding:9px 12px;background:rgba(255,255,255,.88)}
.mgc-cta__logo-image img{width:100%;filter:none;opacity:.98}
.mgc-cta__logo-text{font-size:9px;letter-spacing:2.3px;line-height:1.45;margin-top:8px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.38)}
.mgc-contact-bar{position:absolute;left:0;bottom:18px;z-index:3;display:flex;gap:2px;flex-wrap:wrap}
.mgc-contact-bar__item{height:43px;padding:0 15px;border:0;background:rgba(34,36,37,.94);color:#fff;display:flex;align-items:center;gap:8px;font-size:11.5px}
.mgc-contact-bar__item svg{font-size:18px}.mgc-contact-bar__item:hover{background:var(--mgc-red);color:#fff}

/* Modal system: moved to document.body by script so it cannot be clipped by page/footer wrappers */
.mgc-modal{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:24px 16px;overflow:auto;font-family:var(--mgc-sans)}
.mgc-modal.is-open,.mgc-modal:target{display:flex}
.mgc-modal__backdrop{position:fixed;inset:0;z-index:0;background:rgba(15,16,16,.66);backdrop-filter:blur(3px)}
.mgc-modal__dialog{position:relative;z-index:1;width:min(820px,calc(100vw - 32px));max-height:calc(100vh - 48px);margin:auto;background:#fff;box-shadow:var(--mgc-shadow);overflow:auto;border-radius:2px}
.mgc-modal__close{position:absolute!important;left:auto!important;right:16px!important;top:16px!important;z-index:20!important;width:36px!important;height:36px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:50%!important;background:transparent!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;font:400 25px/1 var(--mgc-sans)!important;text-decoration:none!important;transform:none!important}
.mgc-modal__close:hover{background:rgba(255,255,255,.11)!important}
.mgc-modal__dialog--certificate{width:min(720px,calc(100vw - 32px));padding:12px;background:#eeeae3}
.mgc-modal__dialog--certificate .mgc-modal__close{background:#242627!important;border-color:#242627!important}
.mgc-certificate-popup__image{background:#fff;padding:6px}.mgc-certificate-popup__image img{margin:0 auto;max-height:calc(100vh - 90px);width:auto;max-width:100%}
.mgc-modal__dialog--form{width:min(820px,calc(100vw - 32px));max-width:820px;padding:0!important;overflow:auto}
.mgc-form__intro{margin:0!important;padding:25px 32px 22px;background:#252728;color:#fff;border-bottom:3px solid var(--mgc-red)}
.mgc-form__brand{font-size:10px;letter-spacing:2.8px;margin-bottom:9px;color:#d8d7d5}
.mgc-form__title{margin-bottom:9px}.mgc-form__title h2{margin:0!important;font:400 32px/1.08 var(--mgc-serif)!important;color:#fff!important;letter-spacing:-.4px}
.mgc-form__description{max-width:600px}.mgc-form__description p{margin:0;font-size:14px;line-height:1.48;color:#e5e4e2}
.mgc-form{padding:24px 32px 28px;background:#fff}
.mgc-form__grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 16px}
.mgc-field{display:flex;flex-direction:column;gap:6px}.mgc-field--wide{grid-column:1/-1}
.mgc-field__label{font-size:12px;font-weight:700;color:#3f4346}.mgc-field__label b{color:var(--mgc-red)}.mgc-field__label small{color:#999;margin-left:6px}
.mgc-field input,.mgc-field select,.mgc-field textarea{width:100%;border:1px solid #d6d8d9;border-radius:1px;background:#fff;color:#202326;padding:11px 12px;outline:none;transition:.15s}
.mgc-field input,.mgc-field select{height:43px}.mgc-field textarea{min-height:116px;resize:vertical}
.mgc-field input:focus,.mgc-field select:focus,.mgc-field textarea:focus{border-color:var(--mgc-red);box-shadow:0 0 0 2px rgba(220,31,45,.06)}
.mgc-project-file input{height:auto;background:#fafafa;padding:8px 10px}
.mgc-project-file input::file-selector-button{margin-right:12px;border:1px solid #d0d2d3;background:#f0f1f1;color:#222;padding:8px 13px;border-radius:2px;cursor:pointer}
.mgc-consent{display:grid;grid-template-columns:18px 1fr;gap:9px;align-items:start;margin:16px 0 13px;font-size:11.5px;line-height:1.4;color:#606467}
.mgc-consent input{margin-top:2px}.mgc-consent a{color:var(--mgc-red);text-decoration:underline}
.mgc-form__status{min-height:18px;font-size:12.5px;margin-bottom:9px}.mgc-form__status.is-error{color:#b00020}.mgc-form__status.is-success{color:#17813a}
.mgc-form__submit{min-width:250px}
.mgc-form__warning{font-size:12px;color:#b00020;margin:12px 0 0}.mgc-hp{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
body.mgc-modal-open{overflow:hidden!important}

/* Aspro Next page integration */
body:has(#mgCompanyPage) .page-top,
body:has(#mgCompanyPage) .page-top-wrapper,
body:has(#mgCompanyPage) .breadcrumbs,
body:has(#mgCompanyPage) #pagetitle,
body:has(#mgCompanyPage) .page_heading{display:none!important}
body:has(#mgCompanyPage) .middle .left_block{display:none!important}
body:has(#mgCompanyPage) .middle .right_block{width:100%!important;max-width:none!important;float:none!important;padding-left:0!important;margin-left:0!important}
body:has(#mgCompanyPage) .middle,
body:has(#mgCompanyPage) .wrapper_inner,
body:has(#mgCompanyPage) .content,
body:has(#mgCompanyPage) .content_wrapper,
body:has(#mgCompanyPage) .content_wrapper_block,
body:has(#mgCompanyPage) .middle > .container,
body:has(#mgCompanyPage) .wrapper_inner > .container,
body:has(#mgCompanyPage) .maxwidth-theme,
body:has(#mgCompanyPage) .right_block{padding-top:0!important;margin-top:0!important;overflow:visible!important}
body:has(#mgCompanyPage) #mgCompanyPage{width:calc(100% - 88px)!important;max-width:1740px!important;margin-top:-74px!important;margin-left:auto!important;margin-right:auto!important;position:relative;z-index:1}

@media(max-width:1450px){
  .mgc-hero{grid-template-columns:46% 54%}
  .mgc-hero__copy{padding-left:34px;padding-right:34px}
  .mgc-hero__title h1{font-size:56px}
  .mgc-hero__subtitle h2{font-size:31px}
  .mgc-hero__lead p{font-size:16px}
  .mgc-hero__facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mgc-mini{min-height:90px}
}
@media(max-width:1180px){
  .mgc-hero{grid-template-columns:1fr 1fr;min-height:0}
  .mgc-hero__copy{padding:22px 28px 28px}
  .mgc-hero__visual{min-height:520px}
  .mgc-timeline{overflow-x:auto;grid-template-columns:repeat(6,190px);padding-bottom:8px}
  .mgc-service{grid-template-columns:1fr}
  .mgc-service__image{min-height:360px}
  .mgc-service__panel{left:24px;top:24px;bottom:24px;width:min(70%,430px)}
  .mgc-stats{grid-template-columns:1fr}
  .mgc-certificate-card{min-height:230px}
  .mgc-audience-grid{grid-template-columns:1fr 1fr;row-gap:22px}
  .mgc-audience-grid article:nth-child(2){border-right:0}.mgc-audience-grid article:nth-child(3){padding-left:0}
}
@media(max-width:820px){
  .mg-company-page{width:100%}
  body:has(#mgCompanyPage) #mgCompanyPage{width:100%!important;max-width:none!important;margin-top:-18px!important}
  .mg-company-page{margin-bottom:26px}
  .mgc-hero{grid-template-columns:1fr}
  .mgc-hero__visual{order:-1;min-height:350px}
  .mgc-logo-card{top:8%;right:5%;width:min(44%,235px);min-width:160px;padding:15px 13px 13px}
  .mgc-hero__copy{padding:22px}
  .mgc-hero__title h1{font-size:46px}.mgc-hero__subtitle h2{font-size:27px}.mgc-hero__lead p{font-size:15px}
  .mgc-hero__facts{grid-template-columns:1fr 1fr}.mgc-mini{min-height:0;padding:14px 12px}
  .mgc-section{padding:24px 22px}
  .mgc-section__title h2,.mgc-service__reasons-title h2,.mgc-stats__title h2,.mgc-audiences__title h2,.mgc-cta__title h2{font-size:29px}
  .mgc-service__image{min-height:330px}
  .mgc-service__panel{left:22px;right:22px;top:22px;bottom:22px;width:auto;padding:23px 22px}
  .mgc-service__panel-title h2{font-size:30px}.mgc-service__panel-text p{font-size:14.5px}
  .mgc-service__reasons,.mgc-stats__main,.mgc-cta__copy{padding-left:22px;padding-right:22px}
  .mgc-stats-grid{grid-template-columns:1fr 1fr}.mgc-stat:nth-child(2){border-right:0}.mgc-stat{padding:12px;border-bottom:1px solid #ded9d0}.mgc-stat:nth-child(3),.mgc-stat:nth-child(4){border-bottom:0}
  .mgc-cta{grid-template-columns:1fr}.mgc-cta__visual{min-height:310px}
  .mgc-modal{align-items:flex-start;padding:10px}
  .mgc-modal__dialog,.mgc-modal__dialog--form{width:min(100%,calc(100vw - 20px));max-height:none}
  .mgc-form__intro{padding:20px 22px 18px}.mgc-form__title h2{font-size:28px!important}.mgc-form{padding:20px 22px 23px}
}
@media(max-width:560px){
  .mgc-hero__facts{grid-template-columns:1fr}.mgc-hero__title h1{font-size:40px}.mgc-hero__subtitle h2{font-size:24px}.mgc-hero__visual{min-height:300px}
  .mgc-btn{width:100%;min-height:48px}.mgc-actions{gap:9px}
  .mgc-logo-card{width:min(52%,195px)}.mgc-logo-card__tagline{font-size:8.5px;letter-spacing:2.2px}
  .mgc-reasons-grid{grid-template-columns:1fr}
  .mgc-certificate-card{grid-template-columns:58% 42%}.mgc-certificate-card__copy{padding:18px 13px}.mgc-certificate-card__brand{font-size:15px}.mgc-certificate-card__status{font-size:9px;letter-spacing:2px}
  .mgc-audience-grid{grid-template-columns:1fr}.mgc-audience-grid article,.mgc-audience-grid article:nth-child(3){padding:0 0 16px;border-right:0;border-bottom:1px solid #e2ded7}.mgc-audience-grid article:last-child{border-bottom:0;padding-bottom:0}
  .mgc-contact-bar{left:12px;right:12px;bottom:12px;display:grid;grid-template-columns:1fr}.mgc-contact-bar__item{justify-content:center}
  .mgc-form__grid{grid-template-columns:1fr}.mgc-field--wide{grid-column:auto}.mgc-form{padding:18px}.mgc-form__intro{padding:18px}.mgc-form__submit{width:100%;min-width:0}
}

/* =========================================================
   MGPLITKA COMPANY v1.6.1 — final grid / rhythm corrections
   ========================================================= */

/* Match the real Aspro header/footer inner grid seen on the site. */
.mg-company-page{
  width:calc(100% - 32px)!important;
  max-width:1240px!important;
  margin:0 auto!important;
  padding:0!important;
  overflow:visible!important;
}
body:has(#mgCompanyPage) #mgCompanyPage{
  width:calc(100% - 32px)!important;
  max-width:1240px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  margin-top:-74px!important;
  margin-bottom:0!important;
}

/* Hero: same overall rhythm, but no oversized left side. */
.mgc-hero{
  grid-template-columns:47% 53%!important;
  min-height:500px!important;
}
.mgc-hero__copy{
  padding:20px 34px 26px 32px!important;
}
.mgc-kicker{margin-bottom:20px!important}
.mgc-hero__title{margin-bottom:12px!important}
.mgc-hero__title h1{font-size:54px!important;line-height:.98!important}
.mgc-hero__subtitle{margin-bottom:16px!important}
.mgc-hero__subtitle h2{font-size:30px!important;line-height:1.06!important}
.mgc-hero__lead{max-width:620px!important;margin-bottom:22px!important}
.mgc-hero__lead p{font-size:15.5px!important;line-height:1.56!important}
.mgc-hero__actions{margin-bottom:18px!important}
.mgc-hero__facts{
  margin-top:auto!important;
  padding-top:0!important;
  border-top:0!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.mgc-mini{
  min-height:82px!important;
  padding:13px 11px!important;
  gap:9px!important;
}
.mgc-mini__icon{font-size:23px!important}
.mgc-mini__text{font-size:11.5px!important;line-height:1.24!important}
.mgc-hero__visual{min-height:500px!important}
.mgc-logo-card{
  top:8%!important;
  right:5%!important;
  width:min(34%,238px)!important;
  min-width:184px!important;
  max-width:238px!important;
  padding:15px 14px 13px!important;
}
.mgc-logo-card__rule{margin:9px auto 8px!important}
.mgc-logo-card__tagline{font-size:9.5px!important;letter-spacing:3.1px!important}

/* Consistent inner paddings across all sections. */
.mgc-section{padding-left:32px!important;padding-right:32px!important}
.mgc-service__reasons,.mgc-stats__main,.mgc-cta__copy{padding-left:32px!important;padding-right:32px!important}

/* Timeline: enough width so 2026 remains readable and clear of Jivo. */
.mgc-history{padding-top:24px!important;padding-bottom:26px!important}
.mgc-section__title h2,.mgc-service__reasons-title h2,.mgc-stats__title h2,.mgc-audiences__title h2,.mgc-cta__title h2{
  font-size:30px!important;
}
.mgc-timeline{gap:13px!important}
.mgc-year__text p{font-size:11.5px!important;line-height:1.34!important}

/* Store-at-home block: slightly lighter and more image visible. */
.mgc-service{grid-template-columns:41% 59%!important;min-height:355px!important}
.mgc-service__image{min-height:355px!important}
.mgc-service__panel{
  left:24px!important;
  top:26px!important;
  bottom:26px!important;
  width:min(72%,360px)!important;
  padding:24px 24px 22px!important;
  background:rgba(250,247,241,.93)!important;
}
.mgc-service__panel:before{font-size:9px!important;margin-bottom:10px!important}
.mgc-service__panel-title{margin-bottom:10px!important}
.mgc-service__panel-title h2{font-size:31px!important;line-height:1.04!important}
.mgc-service__panel-text p{font-size:14px!important;line-height:1.5!important}
.mgc-service__reasons{padding-top:24px!important;padding-bottom:22px!important}
.mgc-reasons-grid{gap:17px 24px!important;margin-top:18px!important}
.mgc-reason{grid-template-columns:40px 1fr!important;gap:10px!important}
.mgc-reason__icon{width:40px!important;height:40px!important;font-size:20px!important}
.mgc-reason__title h3{font-size:12.5px!important}
.mgc-reason__text p{font-size:11px!important;line-height:1.4!important}

/* Stats + certificate: remove the large dead area. */
.mgc-stats{
  grid-template-columns:68% 32%!important;
  align-items:stretch!important;
}
.mgc-stats__main{
  padding-top:20px!important;
  padding-bottom:18px!important;
  min-height:178px!important;
}
.mgc-stats-grid{margin-top:15px!important}
.mgc-stat{padding-left:14px!important;padding-right:14px!important}
.mgc-stat:first-child{padding-left:0!important}
.mgc-stat__icon{font-size:26px!important;margin-bottom:7px!important}
.mgc-stat__value strong{font-size:20px!important}
.mgc-stat__text small{font-size:10.5px!important}
.mgc-certificate-card{
  grid-template-columns:62% 38%!important;
  min-height:178px!important;
  max-height:178px!important;
}
.mgc-certificate-card__copy{padding:18px 16px!important;gap:7px!important}
.mgc-certificate-card__brand{font-size:15px!important}
.mgc-certificate-card__status{font-size:9.5px!important;letter-spacing:2.4px!important}
.mgc-cert-button{min-height:36px!important;font-size:10.5px!important}
.mgc-certificate-card__preview{padding:6px!important}
.mgc-certificate-card__preview img{height:166px!important;max-height:166px!important}

/* Audience strip: make it a deliberate section, not a technical row. */
.mgc-audiences{padding-top:24px!important;padding-bottom:25px!important}
.mgc-audience-grid{margin-top:16px!important}
.mgc-audience-grid article{grid-template-columns:38px 1fr!important;gap:10px!important;padding-left:18px!important;padding-right:18px!important}
.mgc-audience-grid article:first-child{padding-left:0!important}
.mgc-audience__icon{font-size:29px!important}
.mgc-audience__title h3{font-size:12px!important}
.mgc-audience__text p{font-size:10.5px!important}

/* CTA: compact and transition directly into footer. */
.mgc-cta{grid-template-columns:40% 60%!important;min-height:245px!important}
.mgc-cta__copy{padding-top:28px!important;padding-bottom:28px!important}
.mgc-cta__title h2{font-size:31px!important}
.mgc-cta__text{margin-bottom:18px!important}
.mgc-cta__text p{font-size:13.5px!important}
.mgc-cta__visual{min-height:245px!important}
.mgc-cta__logo{right:22px!important;top:26px!important;width:165px!important}
.mgc-contact-bar{bottom:14px!important}
.mgc-contact-bar__item{height:38px!important;font-size:10.5px!important}

/* Popup: compact, always centered, always above footer and widgets. */
.mgc-modal{
  z-index:2147483640!important;
  align-items:center!important;
  justify-content:center!important;
  padding:16px!important;
}
.mgc-modal__dialog,
.mgc-modal__dialog--form{
  width:min(720px,calc(100vw - 32px))!important;
  max-width:720px!important;
  max-height:calc(100vh - 32px)!important;
  margin:auto!important;
  overflow:auto!important;
}
.mgc-modal__close{
  position:absolute!important;
  left:auto!important;
  right:14px!important;
  top:14px!important;
  width:34px!important;
  height:34px!important;
  z-index:999!important;
}
.mgc-form__intro{padding:21px 27px 19px!important}
.mgc-form__title h2{font-size:29px!important;color:#fff!important}
.mgc-form__description p{font-size:13px!important}
.mgc-form{padding:21px 27px 24px!important}
.mgc-form__grid{gap:12px 14px!important}
.mgc-field input,.mgc-field select{height:40px!important}
.mgc-field textarea{min-height:96px!important}
.mgc-consent{margin:13px 0 11px!important}
.mgc-form__submit{min-width:225px!important;min-height:44px!important}

/* Remove residual space between company content and the standard footer. */
body:has(#mgCompanyPage) .middle,
body:has(#mgCompanyPage) .wrapper_inner,
body:has(#mgCompanyPage) .content,
body:has(#mgCompanyPage) .content_wrapper,
body:has(#mgCompanyPage) .content_wrapper_block,
body:has(#mgCompanyPage) .right_block{
  padding-bottom:0!important;
  margin-bottom:0!important;
}

@media(max-width:1280px){
  .mg-company-page,
  body:has(#mgCompanyPage) #mgCompanyPage{width:calc(100% - 32px)!important;max-width:1240px!important}
  .mgc-hero__copy{padding-left:28px!important;padding-right:28px!important}
}
@media(max-width:980px){
  body:has(#mgCompanyPage) #mgCompanyPage{width:100%!important;max-width:none!important;margin-top:-18px!important}
  .mg-company-page{width:100%!important;max-width:none!important}
  .mgc-hero{grid-template-columns:1fr!important}
  .mgc-hero__visual{order:-1!important;min-height:350px!important}
  .mgc-hero__copy{padding:22px!important}
  .mgc-hero__facts{grid-template-columns:1fr 1fr!important}
  .mgc-service{grid-template-columns:1fr!important}
  .mgc-stats{grid-template-columns:1fr!important}
  .mgc-certificate-card{max-height:none!important;min-height:190px!important}
  .mgc-certificate-card__preview img{height:auto!important;max-height:220px!important}
  .mgc-audience-grid{grid-template-columns:1fr 1fr!important;row-gap:20px!important}
  .mgc-cta{grid-template-columns:1fr!important}
  .mgc-cta__visual{min-height:290px!important}
}
@media(max-width:560px){
  .mgc-hero__facts{grid-template-columns:1fr!important}
  .mgc-audience-grid{grid-template-columns:1fr!important}
  .mgc-modal{align-items:flex-start!important;padding:8px!important}
  .mgc-modal__dialog,.mgc-modal__dialog--form{width:calc(100vw - 16px)!important;max-height:none!important}
  .mgc-form__grid{grid-template-columns:1fr!important}
  .mgc-field--wide{grid-column:auto!important}
}


/* =========================================================
   MGPLITKA COMPANY v1.6.3 — proven Aspro alignment method
   ========================================================= */
body:has(#mgCompanyPage) .middle .left_block{
  display:none!important;
}
body:has(#mgCompanyPage) .middle .right_block{
  width:100%!important;
  max-width:none!important;
  float:none!important;
  padding-left:0!important;
  margin-left:0!important;
}
body:has(#mgCompanyPage) .middle,
body:has(#mgCompanyPage) .middle > .container,
body:has(#mgCompanyPage) .wrapper_inner,
body:has(#mgCompanyPage) .wrapper_inner > .container,
body:has(#mgCompanyPage) .content,
body:has(#mgCompanyPage) .content_wrapper,
body:has(#mgCompanyPage) .content_wrapper_block,
body:has(#mgCompanyPage) .right_block{
  overflow:visible!important;
  padding-top:0!important;
  margin-top:0!important;
}

@media (min-width:1281px){
  .mg-company-page,
  body:has(#mgCompanyPage) #mgCompanyPage{
    width:1240px!important;
    max-width:1240px!important;
    left:auto!important;
    transform:none!important;
    margin-left:calc((100% - 1240px) / 2)!important;
    margin-right:0!important;
  }
}
@media (min-width:981px) and (max-width:1280px){
  .mg-company-page,
  body:has(#mgCompanyPage) #mgCompanyPage{
    width:calc(100vw - 32px)!important;
    max-width:none!important;
    left:auto!important;
    transform:none!important;
    margin-left:calc((100% - (100vw - 32px)) / 2)!important;
    margin-right:0!important;
  }
}
@media (max-width:980px){
  .mg-company-page,
  body:has(#mgCompanyPage) #mgCompanyPage{
    width:100%!important;
    max-width:none!important;
    left:auto!important;
    transform:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

/* =========================================================
   MGPLITKA COMPANY v1.6.4 — direct left-grid alignment
   No JS geometry, no centering: keep current width and anchor
   the component to the left edge of the native Aspro content grid.
   ========================================================= */
@media (min-width:981px){
  .mg-company-page,
  body:has(#mgCompanyPage) #mgCompanyPage{
    margin-left:0!important;
    margin-right:auto!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
  }
}

/* =========================================================
   MGPLITKA COMPANY v1.6.5 — align under the header logo
   Keep the current 1240px content width; only move its left
   edge onto the same 1536px site grid used by the header/footer.
   ========================================================= */
@media (min-width:981px){
  .mg-company-page,
  body:has(#mgCompanyPage) #mgCompanyPage{
    width:1240px!important;
    max-width:1240px!important;
    margin-left:max(16px, calc((100vw - 1536px) / 2))!important;
    margin-right:auto!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
  }
}
@media (max-width:980px){
  .mg-company-page,
  body:has(#mgCompanyPage) #mgCompanyPage{
    width:100%!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

/* =========================================================
   MGPLITKA COMPANY v1.6.6 — keep the left edge exactly where
   v1.6.5 put it, extend only the right edge to the full site grid.
   Site grid: 1536px centered. On smaller desktops keep 16px gutters.
   ========================================================= */
@media (min-width:981px){
  .mg-company-page,
  body:has(#mgCompanyPage) #mgCompanyPage{
    width:min(1536px, calc(100vw - 32px))!important;
    max-width:1536px!important;
    margin-left:max(16px, calc((100vw - 1536px) / 2))!important;
    margin-right:0!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
  }
}
@media (max-width:980px){
  .mg-company-page,
  body:has(#mgCompanyPage) #mgCompanyPage{
    width:100%!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}
