/* static calc + layout + interactive overlays */
.home-v2,.home-v2 a,.home-v2 button{-webkit-tap-highlight-color:transparent}
.home-v2 a:focus-visible,.home-v2 button:focus-visible,.home-v2 input:focus-visible,.home-v2 select:focus-visible{outline:2px solid #005AA5;outline-offset:2px}
.ab-calculator a:focus,.ab-calculator a:focus-visible,.ab-calculator button:focus,.ab-calculator button:focus-visible,.ab-calculator input:focus,.ab-calculator input:focus-visible,.ab-calculator select:focus,.ab-calculator select:focus-visible,.ab-calculator textarea:focus,.ab-calculator textarea:focus-visible,.ab-calculator .ab-stepper:focus-within{outline:none!important;box-shadow:none!important}
.ab-calculator{overflow:clip;min-height:0}
/* Кнопка заявки — как «Перезвоните мне» и быстрый заказ (в т.ч. disabled без бледности) */
.ab-calculator .ab-red-button,
.ab-calculator__fields>.ab-red-button,
.ab-calculator .ab-red-button:disabled,
.ab-calculator .ab-red-button[disabled],
.ab-calculator__fields>.ab-red-button:disabled,
.ab-calculator__fields>.ab-red-button[disabled]{background:#b52b2b!important;background-image:none!important;color:#fff!important;border:0!important;box-shadow:none!important;opacity:1!important;-webkit-text-fill-color:#fff!important}
.ab-calculator .ab-red-button:hover:not(:disabled),
.ab-calculator .ab-red-button:focus-visible:not(:disabled),
.ab-calculator__fields>.ab-red-button:hover:not(:disabled),
.ab-calculator__fields>.ab-red-button:focus-visible:not(:disabled){background:#9a2424!important;color:#fff!important}
.info-shell #calculator,.home-v2 #calculator{scroll-margin-top:96px}
.ab-calculator__grid{display:grid;grid-template-columns:minmax(0,min(474px,100%)) minmax(0,1fr);gap:clamp(20px,3vw,48px);align-items:start;isolation:isolate;position:relative}
.ab-calculator__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px clamp(16px,3vw,48px);align-content:start;width:min(474px,100%);min-width:0;position:relative;z-index:1}
.ab-delivery-map{display:grid;gap:10px;min-width:0;position:relative;z-index:0;overflow:hidden}
.ab-delivery-map img{display:none!important}
.ab-delivery-map img[src*="delivery-map"],.ab-delivery-map img[src*="map-moscow"]{display:none!important}
.ab-field{display:grid!important;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:5px;min-width:0}
.ab-field>span{display:block;font-size:11px}
.ab-quick-form .ab-field>span{text-align:center}
label.ab-field.flex{flex-direction:column;align-items:stretch}
.ab-field input,.ab-field select{min-width:0;max-width:100%;box-sizing:border-box}
.ab-field--strength input{padding:0 10px}
/* Калькулятор: заголовки и значения по центру поля */
.ab-calculator .ab-field>span,
.ab-calculator .ab-stepper-field>span{text-align:center!important;width:100%!important}
.ab-calculator .ab-field input,
.ab-calculator .ab-field select,
.ab-calculator .ab-field textarea,
.ab-calculator .ab-stepper input,
.ab-calculator .ab-filler-skin,
.ab-calculator .ab-filler-skin__top{text-align:center!important}
.ab-calculator .ab-field select{text-align-last:center!important;padding-left:28px!important;padding-right:28px!important}
.ab-calculator .ab-stepper input{text-align:center!important}
/* Стрелка списков — как у «Наполнителя» */
.ab-calculator .ab-field:not(.ab-field--filler) select{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6'%3E%3Cpath d='M0 0h9L4.5 6z' fill='%236b8ba7'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:9px 6px!important}
/* Наполнитель: скин на flex — центрируем содержимое */
.ab-calculator .ab-filler-box .ab-filler-skin,
.ab-calculator .ab-field--filler .ab-filler-skin{justify-content:center!important;padding-left:28px!important;padding-right:28px!important}
.ab-calculator .ab-filler-skin__top{width:100%!important;text-align:center!important}
/* Дата: центрирование значения в type=date */
.ab-calculator input[type=date],
.ab-calculator input[name=date]{text-align:center!important;text-align-last:center!important}
.ab-calculator input[type=date]::-webkit-datetime-edit,
.ab-calculator input[type=date]::-webkit-datetime-edit-fields-wrapper,
.ab-calculator input[type=date]::-webkit-date-and-time-value{width:100%!important;text-align:center!important}
/* Быстрый заказ: все контролы одной высоты и ширины ячейки */
.ab-quick-form{--ab-quick-control-h:40px}
.ab-quick-form .ab-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.ab-quick-form .ab-quick-grid>.ab-field,
.ab-quick-form .ab-quick-grid>.ab-stepper-field{width:100%!important;min-width:0!important}
.ab-quick-form .ab-quick-grid>.ab-field>input,
.ab-quick-form .ab-quick-grid>.ab-field>select,
.ab-quick-form .ab-quick-grid>.ab-field--filler .ab-filler-box,
.ab-quick-form .ab-quick-grid>.ab-field--filler .ab-filler-skin,
.ab-quick-form .ab-quick-grid>.ab-stepper-field .ab-stepper{width:100%!important;height:var(--ab-quick-control-h)!important;min-height:var(--ab-quick-control-h)!important;max-height:var(--ab-quick-control-h)!important;box-sizing:border-box!important}
.ab-quick-form .ab-field--filler .ab-filler-box{display:block!important;position:relative!important}
.ab-quick-form .ab-filler-skin{padding:0 30px 0 10px!important;font-size:14px!important;font-weight:500!important;line-height:var(--ab-quick-control-h)!important}
.ab-quick-form .ab-filler-skin__top{font-size:14px!important;font-weight:500!important;line-height:1!important}
.ab-quick-form .ab-filler-skin__sub{display:none!important}
.ab-quick-form .ab-stepper input{height:100%!important;min-height:0!important}
.ab-quick-form .ab-stepper button{height:100%!important;min-height:0!important}
.ab-static-overlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px;background:rgb(10 55 95 / 55%)}
.ab-static-overlay[hidden]{display:none!important}
.ab-static-overlay__panel{position:relative;width:min(520px,100%);max-height:min(90vh,820px);overflow:auto;padding:20px 18px 18px;border-radius:6px;background:#fff;color:#0A375F}
.ab-static-overlay__close{position:absolute;top:8px;right:10px;border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer}
.ab-static-overlay__body{display:grid;gap:12px}
@media (min-width:901px){.ab-hero{min-height:min(670px,92vh)}.ab-documents{min-height:0}.ab-calculator{min-height:0}.ab-price{min-height:0}.ab-plants{min-height:0}.ab-partners{min-height:0}.ab-projects{min-height:0}.ab-videos{min-height:0}.ab-reviews{min-height:0}.ab-footer,footer.ab-footer{min-height:0}}
@media (max-width:1100px){.ab-calculator__grid{grid-template-columns:1fr;gap:24px}.ab-calculator__fields{width:100%}}
@media (max-width:900px){.ab-calculator{min-height:auto}.ab-calculator__grid{grid-template-columns:1fr;gap:24px}.ab-calculator__fields{width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.ab-calculator__fields .ab-field--filler,.ab-calculator__fields .ab-field--strength{grid-column:1/-1}}

/* Шапка: резиновые колонки вместо жёстких 243/172 */
.ab-header{grid-template-columns:minmax(140px,min(243px,22vw)) minmax(120px,min(200px,18vw)) minmax(0,1fr) auto!important}
.ab-header__lead{display:contents!important}
.ab-menu-button,.ab-header__search-mobile{display:none!important}
.ab-header>.ab-nav{grid-column:1!important;grid-row:1 / span 3!important}
.ab-header>.ab-header__contacts{grid-column:2!important;grid-row:1!important}
.ab-header>.ab-header__logo{grid-column:3!important;grid-row:1!important;justify-self:center!important}
.ab-header>.ab-socials{grid-column:4!important;grid-row:1!important;justify-self:end!important;align-self:start!important;z-index:6}

/* Меню: единая колонка стрелок (Продукция + остальные) */
.ab-nav>a{display:grid!important;grid-template-columns:minmax(0,1fr) 40px!important;align-items:center!important;padding:0 0 0 13px!important}
.ab-nav>a.ab-nav-link--plain{grid-template-columns:minmax(0,1fr)!important;padding-right:13px!important}
.ab-nav>a span{display:grid!important;place-items:center!important;width:40px!important;height:100%!important;min-height:41px!important;font-size:22px!important;line-height:1!important}
.ab-nav-item{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 40px!important;align-items:stretch!important;padding-right:0!important;border:1px solid rgb(10 55 95 / 45%)!important;border-radius:8px!important;background:#fff!important;box-shadow:0 3px 10px rgb(0 0 0 / 12%)!important;overflow:visible!important}
.ab-nav-item>a,.ab-nav-item__toggle{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.ab-nav-item>a{width:auto!important;min-width:0!important;min-height:41px!important;padding:0 8px 0 13px!important}
.ab-nav-item__toggle{position:static!important;inset:auto!important;width:40px!important;height:auto!important;min-height:41px!important;padding:0!important;display:grid!important;place-items:center!important;justify-content:center!important;justify-items:center!important;text-align:center!important;font-size:22px!important;line-height:1!important}
.ab-nav-item:hover,.ab-nav-item.is-open{border-color:#005AA5!important;background:transparent!important}
.ab-nav-item:hover>a,.ab-nav-item:hover .ab-nav-item__toggle,.ab-nav-item.is-open>a,.ab-nav-item.is-open .ab-nav-item__toggle{color:#fff!important;background:transparent!important}
.ab-nav-item:hover>a span,.ab-nav-item.is-open>a span,.ab-nav-item:hover .ab-nav-item__toggle,.ab-nav-item.is-open .ab-nav-item__toggle{color:#fff!important}
.ab-nav-item>.ab-submenu{grid-column:1 / -1!important}

/* Пиктограммы: колонка 2 grid-сцены, без margin под aside */
.ab-socials{gap:10px!important;margin-right:0!important}
.ab-header>.ab-socials{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  margin-left:0!important;
  margin-right:0!important;
  justify-self:end!important;
  align-self:start!important;
  z-index:2!important;
}
.ab-socials a,.ab-socials button{width:36px!important;height:36px!important;border:1.5px solid rgb(255 255 255 / 88%)!important;border-radius:4px!important;color:#fff!important;background:transparent!important}
.ab-socials svg{width:18px!important;height:18px!important}
.ab-quick-form .ab-red-button{width:100%!important;max-width:none!important;min-height:42px!important}
.ab-hero__panel{
  left:var(--ab-hero-pad, clamp(12px,1.5vw,28px))!important;
  right:0!important;
  width:auto!important;
}
.ab-hero__aside{
  right:var(--ab-hero-pad, clamp(12px,1.5vw,28px))!important;
  width:var(--ab-aside-w, clamp(280px,24vw,320px))!important;
  max-width:var(--ab-aside-w, clamp(280px,24vw,320px))!important;
  justify-items:stretch!important;
  padding-inline:clamp(8px,1vw,16px) clamp(10px,1.2vw,20px)!important;
  box-sizing:border-box!important;
}
.ab-quick-form{width:100%!important;max-width:320px!important;margin-inline:auto!important}
.ab-hero__aside>.ab-quick-form{width:100%!important;max-width:100%!important;margin-inline:0!important}
.ab-logo img{width:min(245px,100%)!important}

/* Шапка поверх aside/формы; пустые ячейки кликабельны насквозь */
.ab-header{z-index:6!important;pointer-events:none!important}
.ab-header>*{pointer-events:auto!important}
.ab-header>.ab-header__logo{position:relative;z-index:1}

@media (max-width:1050px){
  .ab-header--inner{grid-template-columns:auto minmax(0,1fr) auto!important}
}
@media (min-width: 1920px) {
  .ab-socials a, .ab-socials button {
    width: 44px;
    height: 44px;
  }
  .ab-socials svg { width: 22px; height: 22px; }
  .ab-logo img { width: min(260px, 100%); }
}
@media (max-width:900px){
  .ab-header{grid-template-columns:auto minmax(0,1fr) auto!important}
  .ab-header>.ab-nav,.ab-header>.ab-header__contacts,.ab-header>.ab-header__logo,.ab-header>.ab-socials,.ab-header>.ab-search{grid-column:auto!important;grid-row:auto!important}
  .ab-header__lead{display:flex!important;align-items:center;gap:2px;justify-self:start;grid-column:1!important}
  .ab-menu-button{display:grid!important;place-items:center;width:40px;height:40px;border:0;color:#E31E24;background:transparent}
  .ab-header__search-mobile{display:grid!important;place-items:center;width:40px;height:40px;border:0;color:#0A375F;background:transparent}
  /* AB-100: prevent mobile logo shrink-wrap (~4px) */
  .ab-header>.ab-header__logo{grid-column:2!important;justify-self:stretch!important;display:flex!important;justify-content:center;align-items:center;min-width:0}
  .ab-header>.ab-socials{position:relative!important;top:auto!important;right:auto!important;grid-column:3!important;margin-right:0!important;z-index:auto}
  .ab-header .ab-logo img{max-width:none!important}
  .ab-socials{gap:4px!important;margin-right:0!important}
  .ab-socials a,.ab-socials button{width:36px!important;height:36px!important;border:1.5px solid #0A375F!important;border-radius:50%!important;color:#0A375F!important}
  .ab-socials button.ab-socials__search{display:none!important}
}
@media (max-width:360px){
  .ab-header .ab-logo img{width:min(100px,32vw)!important;max-width:none!important}
  .ab-socials{gap:3px!important}
  .ab-socials a[href*="wa.me"],.ab-socials a[href*="t.me"]{display:none!important}
  .ab-socials a,.ab-socials button{width:36px!important;height:36px!important}
}

/* Внутренняя шапка: меню на всю ширину, без наложений */
.ab-header--inner{
  grid-template-columns:auto minmax(0,1fr) auto!important;
  grid-template-areas:"logo contacts socials" "nav nav nav"!important;
  column-gap:18px!important;
  row-gap:10px!important;
  align-items:center!important;
}
.ab-header--inner>.ab-header__logo{grid-area:logo!important;grid-column:auto!important;grid-row:auto!important;justify-self:start!important}
.ab-header--inner>.ab-header__contacts{grid-area:contacts!important;grid-column:auto!important;grid-row:auto!important;justify-self:end!important;margin-left:20px!important}
.ab-header--inner>.ab-socials{grid-area:socials!important;grid-column:auto!important;grid-row:auto!important;justify-self:end!important;position:relative!important;top:auto!important;right:auto!important;margin-left:12px!important;margin-right:0!important;z-index:auto!important}
.ab-header--inner>.ab-nav{
  grid-area:nav!important;
  grid-column:1 / -1!important;
  grid-row:2!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:stretch!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
}
.ab-header--inner>.ab-nav>a,
.ab-header--inner>.ab-nav>.ab-nav-item{
  flex:0 0 auto!important;
  width:max-content!important;
  max-width:100%!important;
  white-space:nowrap!important;
}
.ab-header--inner .ab-socials{margin-right:0!important}
@media (max-width:1050px){
  .ab-header--inner{grid-template-columns:auto minmax(0,1fr) auto!important}
}
@media (max-width:900px){
  .ab-header--inner{grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-areas:none!important}
  .ab-header--inner>.ab-nav{display:none!important}
}

.ab-header--inner .ab-header__lead{display:none!important}
.ab-header--inner .ab-menu-button,.ab-header--inner .ab-header__search-mobile{display:none!important}
/* Карта доставки: слот CMS */
.ab-delivery-map__slot,.ab-delivery-map__widget,.ab-delivery-map__frame{display:block;width:100%;min-height:420px;max-width:100%;border:0;border-radius:8px;background:#f4f6f8}
.ab-delivery-map__hint{margin:0;color:#61717e;font-size:12px;text-align:center}

/* Кабинет: статусы доставки и оплаты */
.ab-order-card__badges{display:flex;flex-wrap:wrap;gap:6px}
.ab-cabinet__hint{margin:0;color:#61717e;font-size:13px}
.ab-order-status--preparing{color:#7a4d00;background:#fff1d6}
.ab-order-status--delivering{color:#005aa5;background:#e3f0fb}
.ab-order-status--delivered{color:#0b5a2a;background:#d9f5e3}
.ab-payment-status{display:inline-flex;min-height:28px;padding:0 10px;border-radius:99px;font-size:12px;font-weight:800;align-items:center}
.ab-payment-status--unpaid{color:#7a1f1c;background:#fbe7e6}
.ab-payment-status--partial{color:#7a4d00;background:#fff1d6}
.ab-payment-status--paid{color:#0b5a2a;background:#e5f6ea}
.ab-order-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:4px 0 8px;padding:0;list-style:none}
.ab-order-track li{display:grid;gap:4px;justify-items:center;text-align:center;font-size:10px;font-weight:700;color:#8a97a3}
.ab-order-track li::before{content:'';width:100%;height:4px;border-radius:99px;background:#d7e0e8}
.ab-order-track .is-done{color:#0b5a2a}.ab-order-track .is-done::before{background:#2f9e5d}
.ab-order-track .is-current{color:#005aa5}.ab-order-track .is-current::before{background:#005aa5}
.ab-order-track--cancelled{margin:4px 0 8px;color:#7a1f1c;font-size:12px;font-weight:700}
@media (max-width:900px){.ab-order-track{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Кабинет: формы входа, заказов и профиля */
.ab-auth-form,.ab-cabinet-order,.ab-cabinet-contact{display:grid;gap:12px;max-width:560px;margin-top:12px}
.ab-cabinet-order{grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:640px}
.ab-cabinet-order .ab-field--wide,.ab-cabinet-order .ab-estimate-line,.ab-cabinet-order>.ab-red-button,.ab-cabinet-order>output,.ab-cabinet-order>.ab-cabinet-whatsapp{grid-column:1/-1}
.ab-auth-switch{margin:12px 0 0}
.ab-auth-switch a,.ab-consent-line a{color:#005aa5;font-weight:700;text-decoration:underline}
.ab-consent-line{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45;color:#2c4e68}
.ab-consent-line input{margin-top:3px;width:18px;height:18px;flex:0 0 auto}
.ab-cabinet{display:grid;gap:28px}
.ab-cabinet__profile{display:flex;flex-wrap:wrap;gap:12px 20px;justify-content:space-between;align-items:center;padding:16px 18px;border:1px solid #d6dfe5;border-radius:10px;background:#fff}
.ab-cabinet__profile p{margin:0}
.ab-cabinet__section{display:grid;gap:12px}
.ab-cabinet__section h2{margin:0;color:#062f50;font-size:24px}
.ab-cabinet-guest__actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.ab-cabinet-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:41px;padding:0 16px;border:1px solid #6b8ba7;border-radius:3px;color:#0a375f;background:#fff;font-size:13px;font-weight:800}
.ab-cabinet-secondary:hover{background:#eef3f7}
.ab-order-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.ab-order-card{display:grid;gap:6px;padding:16px 18px;border:1px solid #d6dfe5;border-radius:10px;background:#fff}
.ab-order-card p,.ab-order-card small{margin:0}
.ab-order-card__top{display:flex;flex-wrap:wrap;gap:8px 12px;justify-content:space-between;align-items:center}
.ab-cabinet-whatsapp{display:inline-flex;gap:6px;align-items:center;color:#005aa5;font-weight:700}
.ab-cabinet-contact-grid{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:16px;align-items:start}
.ab-order-status{display:inline-flex;min-height:28px;padding:0 10px;border-radius:99px;font-size:12px;font-weight:800;align-items:center}
.ab-order-status--new{color:#0a375f;background:#e7eef5}
.ab-order-status--accepted{color:#0b5a2a;background:#e5f6ea}
.ab-order-status--cancelled{color:#7a1f1c;background:#fbe7e6}
@media (max-width:900px){.ab-cabinet-contact-grid,.ab-cabinet-order{grid-template-columns:1fr}}
/* P0 polyfills: empty weather, partners contain, plants fallback hints */
/* Погода: не скрываем empty/loading — иначе мигание слота в шапке */
.ab-weather[data-wp-mode="empty"],.ab-weather[data-wp-mode="loading"]{display:block!important;width:auto!important;height:auto!important;min-height:0!important;overflow:visible!important;background:transparent!important}
.ab-partner-slide{flex:0 0 20%!important;max-width:20%;min-width:0}
.ab-partner-card{display:flex!important;align-items:center;justify-content:center;height:72px;overflow:hidden;padding:8px 12px}
.ab-partner-logo,.ab-partner-card img{width:auto!important;height:auto!important;max-width:100%!important;max-height:56px!important;object-fit:contain!important;object-position:center!important}
.ab-plants-map__fallback{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,.7fr);gap:16px 20px}
.ab-plants-map__scheme{position:relative;width:100%;aspect-ratio:905/472;overflow:hidden;border:1px solid #c5d3de;background:#eef2f5}
.ab-plants-map__scheme-img{display:block;width:100%;height:100%;object-fit:contain}
.ab-plants-map__pin{position:absolute;z-index:2;width:18px;height:18px;margin:0;padding:0;border:2px solid #fff;border-radius:50%;background:#9e2a2b;box-shadow:0 1px 4px rgb(0 0 0 / 35%);transform:translate(-50%,-50%);cursor:pointer}
.ab-plants-map__pin.is-active{background:#005AA5;width:22px;height:22px}
.ab-plants-map__details{display:grid;gap:8px;padding:14px 16px;border:1px solid #c5d3de;border-radius:4px;background:#fff}
.ab-plants-map__list{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin:0;padding:0;list-style:none}
.ab-plants-map__list button{display:grid;gap:4px;width:100%;min-height:64px;padding:10px 12px;border:1px solid #c5d3de;border-radius:4px;background:#fff;text-align:left;cursor:pointer}
.ab-plants-map__list button.is-active,.ab-plants-map__list button[aria-current="true"]{border-color:#005AA5;box-shadow:inset 0 0 0 1px #005AA5}
.ab-delivery-map__hint{margin:0;color:#61717e;font-size:12px;text-align:center}
@media (max-width:900px){
  .ab-partner-slide{flex:0 0 50%!important;max-width:50%}
  .ab-partner-logo,.ab-partner-card img{max-height:48px!important}
  .ab-plants-map__fallback{grid-template-columns:1fr}
  .ab-plants-map__list{grid-template-columns:1fr}
}
