/*
Theme Name: Макси-Мастер
Version: 1.3.3
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: maxi-master
*/

.variant .header {
  position: sticky;
  top: 0;
  z-index: 4;
}

html { scroll-padding-top: 5.5rem; }

@media (min-width: 601px) {
  body.admin-bar.variant .header { top: var(--wp-admin--admin-bar--height, 32px); }
  html:has(body.admin-bar) { scroll-padding-top: calc(5.5rem + var(--wp-admin--admin-bar--height, 32px)); }
}

.maxi-back-to-top {
  position: fixed;
  z-index: 3;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1px solid #ffad73;
  border-radius: 9px;
  background: #ed8a40;
  color: #21180f;
  font-weight: 700;
  box-shadow: 0 4px 16px #231c1740;
}

.maxi-back-to-top:hover { background: #ffad73; }

.v8-design-bar, .v8-design-navigation, .v8-design-contact { display: flex; align-items: center; }
.v8-design-bar { min-height: 76px; gap: clamp(.65rem, 2vw, 2.25rem); position: relative; }
.v8-design-navigation { gap: clamp(.6rem, 1.8vw, 1.5rem); }
.v8-design-contact { margin-left: auto; gap: clamp(.65rem, 1.6vw, 1.35rem); }
.v8-design-contact :is(a, button) { white-space: nowrap; }
.v8-design-phone { font-size: .9rem; font-weight: 750; }
span.v8-design-phone { color: var(--muted); }
.v8-design-nav-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.v8-design-nav-link:hover { color: var(--blue); text-decoration: underline; }
.v8-design-services { position: relative; }
.v8-design-services > summary { display: flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .7rem; border-radius: 8px; cursor: pointer; font-weight: 750; list-style: none; }
.v8-design-services > summary::-webkit-details-marker { display: none; }
.v8-design-services[open] > summary, .v8-design-services > summary:hover { background: var(--pale); }
.v8-design-dropdown { position: absolute; z-index: 5; inset: 100% auto auto 0; width: 18rem; padding: .55rem 0 0; }
.v8-design-dropdown nav { display: grid; padding: .4rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px #35261a2b; }
.v8-design-dropdown a { padding: .6rem .75rem; border-radius: 7px; text-decoration: none; }
.v8-design-dropdown a:is(:hover, :focus-visible) { background: var(--pale); color: var(--blue); }
.v8-mobile-services { display: none; }

.variant.maxi-design-classic { --paper: #fff9f2; --white: #fff; --pale: #fff0df; --line: #ead8c5; }
.maxi-design-classic .header { background: #fff; border-bottom: 2px solid #ef8745; }
.maxi-design-classic .v8-layout .call-hero { background: #ffeedc; color: #242422; border: 1px solid #ebceae; border-radius: 20px; }
.maxi-design-classic .v8-layout .call-intro :is(.kicker, .lead) { color: #653c24; }
.maxi-design-classic .call-hero .outline { color: #603317; border-color: #a96a41; }
.maxi-design-classic .call-hero .outline:hover { background: #fff6ec; }
.maxi-design-classic .call-hero .lead-form { box-shadow: 0 18px 35px #6946251a; }
.maxi-design-classic .v8-categories > a { border-top: 0; border-radius: 14px; }

.variant.maxi-design-compact { --paper: #f5f2ee; --white: #fffdfa; --line: #e4dcd1; }
.maxi-design-compact .header { background: #242422; color: #fffaf2; }
.maxi-design-compact .header .brand small, .maxi-design-compact .header span.v8-design-phone { color: #e7d8ca; }
.maxi-design-compact .v8-design-services[open] > summary, .maxi-design-compact .v8-design-services > summary:hover { background: #44352b; }
.maxi-design-compact .v8-design-dropdown { color: #242422; }
.maxi-design-compact .v8-design-nav-link:hover { color: #ffad73; }
.maxi-design-compact .v8-layout .call-hero { background: #282522; border-top: 0; border-inline-start: 5px solid #ed8a40; border-radius: 6px; }
.maxi-design-compact .v8-layout .call-hero h1 { font-size: clamp(2rem, 4vw, 3.85rem); }
.maxi-design-compact .v8-categories > a { border-top: 1px solid var(--line); border-radius: 4px; }
.maxi-design-compact .overview-links { border-inline-start: 3px solid #ed8a40; border-radius: 3px; }

@media (max-width: 830px) {
  .v8-design-bar { gap: .45rem; min-height: 64px; }
  .v8-design-navigation { order: 3; }
  .v8-design-services { position: static; }
  .v8-design-dropdown { inset: 100% 0 auto; width: auto; }
  .v8-design-dropdown nav { max-height: 65dvh; overflow: auto; }
  .v8-design-nav-link, .v8-desktop-services, .v8-design-phone { display: none; }
  .v8-mobile-services { display: inline; }
  .v8-design-contact .button { font-size: .8rem; padding-inline: .65rem; }
}
@media (max-width: 410px) { .design-home > span { display: none; } }

.variant.maxi-design-wide {
  --paper: #fffaf4;
  --white: #fff;
  --line: #e7d8c8;
  --pale: #faeddf;
  --wide-content: 1360px;
  --wide-gutter: clamp(16px, 4vw, 56px);
  --wide-inset: max(var(--wide-gutter), (100% - var(--wide-content)) / 2);
}
.maxi-design-wide .v8-design-bar { width: min(var(--wide-content), 100% - 2 * var(--wide-gutter)); }
.maxi-design-wide .header { background: #fff; border-top: 4px solid #ba5a26; }
.maxi-design-wide .v8-layout {
  width: 100%; padding-top: 0; display: grid;
  grid-template-columns: [full-start] minmax(var(--wide-gutter), 1fr) [content-start] minmax(0, var(--wide-content)) [content-end] minmax(var(--wide-gutter), 1fr) [full-end];
}
.maxi-design-wide .v8-layout > * { grid-column: content; min-width: 0; }
.maxi-design-wide .v8-layout > :is(.call-hero, .v8-wide-benefits, .home-service-intro, .trust-panel, .custom-request, .coverage) {
  grid-column: full; padding-inline: var(--wide-inset); border-radius: 0;
}
.maxi-design-wide .v8-layout .call-hero {
  background: linear-gradient(120deg, #ffd1a5, #f9ad72); color: #28201a;
  border: 0; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  padding-block: clamp(26px, 4.2vw, 64px); gap: clamp(22px, 6vw, 96px);
}
.maxi-design-wide .call-hero :is(.lead, .kicker) { color: #573522; }
.maxi-design-wide .call-hero .outline { color: #4b291a; border-color: #895434; }
.maxi-design-wide .call-hero .outline:hover { background: #fff1db; }
.maxi-design-wide .call-hero .primary { background: #28201a; color: #fff9f1; }
.maxi-design-wide .call-hero .primary:hover { background: #473025; }
.maxi-design-wide .call-hero .lead-form { border-radius: 12px; box-shadow: 0 18px 35px #7d3e1733; }
.maxi-design-wide .v8-preview-switch { margin-block: .85rem; }
.maxi-design-wide .v8-wide-benefits {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 30px); padding-block: clamp(18px, 3vw, 38px);
  background: #fff; border-bottom: 1px solid var(--line);
}
.v8-wide-benefits article { display: flex; align-items: flex-start; gap: .75rem; }
.v8-wide-benefits h2 { font-size: 1rem; line-height: 1.28; letter-spacing: 0; margin: 0 0 .25rem; }
.v8-wide-benefits p { font-size: .9rem; }
.maxi-design-wide .home-service-intro { padding-block: clamp(22px, 3vw, 42px); border-block: 1px solid var(--line); background: #fff3e7; }
.maxi-design-wide .v8-categories > a { border: 1px solid var(--line); border-radius: 10px; }
.maxi-design-wide .v8-categories > a:hover { border-color: #b96029; }
.maxi-design-wide .coverage { background: #fff1e4; padding-block: clamp(22px, 3vw, 42px); }
@media (max-width: 850px) {
  .maxi-design-wide .v8-wide-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
  .maxi-design-wide .v8-layout .call-hero { grid-template-columns: minmax(0, 1fr); }
  .v8-wide-benefits article { flex-wrap: wrap; gap: .5rem; }
}

@font-face {
  font-family: Manrope;
  src: url('assets/manrope-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:is(.maxi-design-editorial, .maxi-design-studio) { font-family: Manrope, 'Segoe UI', sans-serif; }
:is(.maxi-design-editorial, .maxi-design-studio) .v8-layout h1 { font-weight: 800; letter-spacing: -.042em; }
:is(.maxi-design-editorial, .maxi-design-studio) .v8-layout h2 { font-weight: 800; letter-spacing: -.035em; }
:is(.maxi-design-editorial, .maxi-design-studio) .section-head { align-items: center; }

.variant.maxi-design-editorial { --paper: #faf6ef; --wide-content: 1280px; }
.maxi-design-editorial .header { border-top: 0; border-bottom: 1px solid var(--line); }
.maxi-design-editorial.maxi-design-wide .v8-layout .call-hero { background: linear-gradient(110deg, #fff4e6 55%, #f8ddbe); border-block: 1px solid var(--line); padding-block: clamp(26px, 5vw, 70px); }
.maxi-design-editorial .v8-layout .call-hero h1 { font-size: clamp(2.1rem, 4.15vw, 3.9rem); }
.maxi-design-editorial .v8-layout .call-hero .lead-form { border-inline-start: 4px solid #b85b24; border-radius: 6px 16px 16px 6px; }
.maxi-design-editorial .v8-wide-benefits { background: #faf6ef; border-bottom: 0; }
.maxi-design-editorial .v8-wide-benefits article { background: #fff; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.maxi-design-editorial .home-service-intro { background: #fff; }
.maxi-design-editorial .v8-categories a { background: #fffaf2; padding: clamp(12px, 2vw, 24px); }
.maxi-design-editorial .v8-layout .trust-panel { background: #342a24; }

.variant.maxi-design-studio {
  --paper: #fffdf8; --pale: #fff0dc; --line: #e7dbc8;
  --wide-content: 1200px; --wide-gutter: clamp(14px, 3vw, 42px);
}
.maxi-design-studio .header { border-top: 0; }
.v8-studio-city { background: #382a24; color: #fff6ea; font-size: .8rem; }
.v8-studio-city .wrap { min-height: 30px; display: flex; align-items: center; justify-content: space-between; }
.v8-studio-city a { text-underline-offset: .2em; }
.maxi-design-studio .v8-design-bar { min-height: 66px; }
.maxi-design-studio .v8-layout > .call-hero {
  background: #fac78b; grid-template-columns: minmax(0, 43rem); justify-content: center;
  text-align: center; gap: 1.25rem; min-height: 0; padding-block: clamp(24px, 4.4vw, 60px);
}
.maxi-design-studio .v8-layout .call-hero h1 { max-width: 20ch; margin-inline: auto; font-size: clamp(2.15rem, 4vw, 3.6rem); }
.maxi-design-studio .call-intro :is(.kicker, .hero-actions) { justify-content: center; }
.maxi-design-studio .call-intro .lead { margin: 1rem auto; }
.maxi-design-studio .v8-wide-benefits article { padding-inline-end: .8rem; border-inline-end: 1px solid var(--line); }
.maxi-design-studio .v8-wide-benefits article:last-child { border: 0; }
.maxi-design-studio .home-service-intro { background: #fff9ee; }
.maxi-design-studio .v8-categories { gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 6px; overflow: hidden; }
.maxi-design-studio .v8-categories > a { min-height: 122px; border: 0; border-radius: 0; }
.maxi-design-studio .v8-categories > a:focus-visible { outline-offset: -4px; }
.maxi-design-studio .v8-layout .trust-panel { background: #402e26; }
.maxi-design-studio .visit-grid article { border-radius: 3px; }
.maxi-design-studio .section-head .kicker { margin-bottom: .5rem; }
@media (max-width: 850px) {
  .maxi-design-studio .v8-wide-benefits article { border: 0; }
}
@media (max-width: 480px) {
  .v8-studio-city { display: none; }
}

.variant.maxi-design-business {
  --paper: #f7f8f9; --ink: #1b2730; --muted: #46515a; --blue: #98400e;
  --line: #dce1e5; --pale: #f8eee5; --navy: #202c35; --wide-content: 1260px;
  font-family: Manrope, 'Segoe UI', sans-serif;
}
.maxi-design-business .header { border-bottom-color: #cfd6dc; }
.maxi-design-business .v8-studio-city { background: #24313b; color: #f3f5f6; }
.maxi-design-business .v8-design-bar { min-height: 70px; }
.maxi-design-business .v8-design-services > summary, .maxi-design-business .button { border-radius: 5px; }
.maxi-design-business .primary { background: #a64412; color: #fff; }
.maxi-design-business .primary:hover { background: #82360f; }
.maxi-design-business.maxi-design-studio .v8-layout > .call-hero {
  background: linear-gradient(110deg, #fff2dc, #f5dbc1); border-bottom: 1px solid #ead0b4;
  color: var(--ink); grid-template-columns: minmax(0, 46rem); padding-block: clamp(24px, 3.6vw, 52px);
}
.maxi-design-business .v8-layout .call-hero h1 { max-width: 23ch; font-size: clamp(1.9rem, 3.5vw, 3.35rem); line-height: 1.1; letter-spacing: -.035em; }
.maxi-design-business .call-hero .lead { font-size: clamp(.98rem, 1.45vw, 1.12rem); line-height: 1.65; }
.maxi-design-business .call-hero .primary { background: #24313b; color: #fff; }
.maxi-design-business .call-hero .primary:hover { background: #394c59; }
.maxi-design-business .v8-layout h2 { font-size: clamp(1.55rem, 2.8vw, 2.4rem); line-height: 1.15; }
.maxi-design-business .v8-wide-benefits h2 { font-size: 1rem; line-height: 1.3; letter-spacing: -.01em; }
.maxi-design-business .v8-wide-benefits article { padding: .3rem .85rem .3rem 0; }
.maxi-design-business .block-icon {
  width: 42px; height: 42px; border: 1px solid #e5d0bd; border-radius: 6px; background: #f8efe6; color: #914416;
}
.maxi-design-business .block-icon svg { width: 23px; height: 23px; }
.maxi-design-business .home-service-intro, .maxi-design-business .coverage { background: #edf1f3; }
.maxi-design-business .v8-categories { gap: 10px; border: 0; background: transparent; overflow: visible; }
.maxi-design-business .v8-categories > a { padding: 1rem; min-height: 132px; border: 1px solid var(--line); border-radius: 6px; }
.maxi-design-business .v8-categories > a:hover { background: #fffcf9; border-color: #bf815d; }
.maxi-design-business .v8-layout :is(.trust-panel, .custom-request) { background: #25313b; }
.maxi-design-business .trust-grid article { background: #303e48; border-color: #53616a; border-radius: 6px; }
.maxi-design-business .trust-grid article:first-child { background: #393e41; border-color: #9e795d; }
.maxi-design-business .visit-steps li { border-bottom-color: #b76438; }
.maxi-design-business .v8-business-advice .advice-grid article { border-top-color: #b76438; border-radius: 6px; }
.maxi-design-business .v8-business-advice .kicker { margin-bottom: 0; }
.maxi-design-business .v8-business-advice summary { cursor: pointer; font-weight: 750; }
.maxi-design-business .v8-business-advice details p { margin-top: .55rem; }
.maxi-design-business .v8-business-advice a { color: var(--blue); text-underline-offset: .2em; }

.variant.maxi-design-amber {
  --paper: #f7fafc; --white: #fff; --ink: #172b3b; --muted: #465b69;
  --line: #d5e2ea; --pale: #eaf4fa; --blue: #0d5c85; --navy: #163c55;
  --sky: #f5d16d;
}
.maxi-design-amber .header { background: #fff; border-bottom-color: #c1d6e3; }
.maxi-design-amber .v8-studio-city { background: #153952; color: #edf7fc; }
.maxi-design-amber :is(.primary, .call-hero .primary) { background: #086793; color: #fff; }
.maxi-design-amber :is(.primary, .call-hero .primary):hover { background: #074d71; }
.maxi-design-amber.maxi-design-business .v8-layout > .call-hero {
  background: linear-gradient(106deg, #f9ca57, #fbe29a); border-bottom-color: #d7b356;
}
.maxi-design-amber .call-hero :is(.kicker, .lead) { color: #293c45; }
.maxi-design-amber .call-hero .outline { color: #163952; border-color: #43586a; }
.maxi-design-amber .call-hero .outline:hover { background: #fff1c4; }
.maxi-design-amber .v8-layout .block-icon {
  background: #edf6fb; color: #154b6c; border: 1px solid #ccdfe9; border-radius: 5px;
}
.maxi-design-amber .v8-layout .block-icon svg { stroke-width: 1.5; }
.maxi-design-amber .v8-wide-benefits .block-icon { background: #fff7dc; border-color: #ecdaa4; }
.maxi-design-amber .home-service-intro, .maxi-design-amber .coverage { background: #eaf4f9; }
.maxi-design-amber .v8-categories > a:hover { background: #f8fcff; border-color: #6797b2; }
.maxi-design-amber .v8-layout :is(.trust-panel, .custom-request) { background: #183e56; }
.maxi-design-amber .trust-grid article { background: #224c66; border-color: #50748a; }
.maxi-design-amber .trust-grid article:first-child { background: #2a536b; border-color: #9ebdce; }
.maxi-design-amber :is(.visit-section, .limits-panel, .visit-steps li, .v8-business-advice .advice-grid article) { border-color: #79a5bb; }
.maxi-design-amber .maxi-back-to-top { background: #f5d16d; border-color: #e5bd59; }
.maxi-design-amber .maxi-back-to-top:hover { background: #f8de94; }

.v8-layout .call-hero.call-hero--single { display: block; min-height: 0; }
.call-hero--single .call-intro { max-width: 50rem; }
.maxi-design-studio .call-hero--single .call-intro { margin-inline: auto; }
.v8-design-dropdown .v8-design-mobile-menu { display: none; }
@media (max-width: 830px) {
  .v8-design-dropdown .v8-design-desktop-menu { display: none; }
  .v8-design-dropdown .v8-design-mobile-menu { display: grid; gap: .15rem; padding: .6rem; }
  .v8-design-mobile-menu summary { min-height: 44px; padding: .65rem .75rem; font-weight: 750; cursor: pointer; }
  .v8-design-mobile-menu details[open] > summary { background: var(--pale); border-radius: 5px; }
  .v8-design-mobile-menu details > div { display: grid; padding-inline-start: .85rem; }
  .v8-design-mobile-menu a { min-height: 44px; }
}
.v8-catalog-related { display: grid; gap: .5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); padding-inline-start: 1.1rem; }

.variant.maxi-design-amber { --wide-content: 1120px; }
.maxi-design-amber .footer .wrap, .maxi-design-amber .v8-studio-city .wrap { width: min(var(--wide-content), 100% - 2 * var(--wide-gutter)); }
.v8-layout .crumbs { padding-block: .8rem; margin: 0; }
.v8-price-actions { margin-top: .4rem; flex-wrap: wrap; }
.v8-price-actions + .section { margin-top: 1.6rem; }
.v8-mobile-toggle.button { display: none; }
.v8-compact-nav { display: flex; align-items: center; gap: clamp(.3rem, 1.1vw, .85rem); font-size: .9rem; font-weight: 720; }
.v8-compact-nav > a, .v8-compact-nav summary { min-height: 44px; display: flex; align-items: center; gap: .3rem; padding: .3rem; white-space: nowrap; }
.v8-compact-nav :is(a, summary) { text-decoration: none; }
.v8-compact-nav summary { list-style: none; cursor: pointer; }
.v8-compact-nav summary::-webkit-details-marker { display: none; }
.v8-compact-nav details { position: relative; }
.v8-compact-submenu { position: absolute; inset: 100% auto auto 0; min-width: 16.5rem; padding: .4rem; background: var(--white); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 12px 24px #142d5526; }
.v8-compact-submenu a { display: flex; align-items: center; padding: .45rem .65rem; min-height: 40px; border-radius: 4px; }
.v8-compact-nav :is(a, summary):hover { color: var(--blue); }
.v8-compact-submenu a:is(:hover, :focus-visible) { background: var(--pale); }
#maxi-order-choice .hero-actions { flex-wrap: wrap; margin-top: .7rem; }
@media (max-width: 1080px) {
  .v8-mobile-toggle.button { display: inline-flex; order: 3; }
  .v8-compact-nav { display: none; position: absolute; inset: 100% 0 auto; max-height: 68dvh; overflow: auto; align-items: stretch; background: var(--white); border: 1px solid var(--line); padding: .6rem; border-radius: 6px; box-shadow: 0 12px 24px #142d5526; }
  .v8-mobile-toggle[aria-expanded="true"] + .v8-compact-nav { display: grid; }
  .v8-compact-nav :is(a, summary) { white-space: normal; padding-inline: .6rem; }
  .v8-compact-nav summary { justify-content: space-between; }
  .v8-compact-submenu { position: static; min-width: 0; border: 0; border-left: 1px solid var(--line); box-shadow: none; margin-inline-start: .65rem; }
  .v8-design-header .v8-design-phone { display: none; }
}

[data-maxi-callback] .v8-consent { display: flex; align-items: start; gap: .5rem; font-size: .9rem; }
[data-maxi-callback] .v8-consent input { width: auto; margin-top: .25rem; }
[data-maxi-callback] .form-message:empty { display: none; }
