/* Общие стили сайта: шапка, меню, форма заявки, отзывы, баннер услуги */

/* ---- ms-bar ---- */
/* ============ ЛИПКАЯ ПАНЕЛЬ НА МОБИЛЬНОМ ============ */
.ms-bar{display:none}
@media(max-width:1024px){
  .ms-bar{position:fixed;left:0;right:0;bottom:0;z-index:400;display:grid;grid-template-columns:1fr 1fr;gap:8px;
    padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px));
    background:rgba(255,255,255,.96);backdrop-filter:blur(16px) saturate(1.3);-webkit-backdrop-filter:blur(16px) saturate(1.3);
    border-top:1px solid #e2e8f2;box-shadow:0 -6px 22px rgba(23,35,60,.10);
    transform:translateY(110%);transition:transform .32s cubic-bezier(.22,1,.36,1);will-change:transform}
  .ms-bar.is-on{transform:translateY(0)}
  .ms-bar a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:50px;border-radius:12px;
    font-size:16px;font-weight:800;text-decoration:none;line-height:1;letter-spacing:-.01em;
    transition:transform .15s cubic-bezier(.22,1,.36,1),filter .15s}
  .ms-bar a:active{transform:scale(.975)}
  .ms-bar svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
  .ms-bar-call{background:linear-gradient(180deg,#f0643a,#e2552b);color:#fff;box-shadow:0 6px 16px rgba(226,85,43,.30)}
  .ms-bar-call:active{filter:brightness(.96)}
  .ms-bar-ask{background:#fff;color:#1f3767;border:2px solid #cfdbef}
  .ms-bar-ask:active{background:#f2f6fd}
  body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .ms-bar-call,.ms-bar-ask{min-height:52px!important;font-size:16.5px!important}
}
@media(prefers-reduced-motion:reduce){.ms-bar{transition:none}}

/* ---- rv-reviews ---- */
/* ============ ОТЗЫВЫ КАК С ПЛОЩАДОК ============ */
html body main #reviews{display:block;padding:44px 0;border-top:1px solid #dfe4ee;background:#fff}
html body main #reviews .rv-wrap{width:min(1220px,calc(100% - 56px));margin-inline:auto}
html body main #reviews .rv-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin:0 0 22px;flex-wrap:wrap}
html body main #reviews .rv-title h2{margin:0 0 6px;color:#1f3767;font-size:clamp(27px,3.2vw,40px);line-height:1.14;letter-spacing:-.03em}
html body main #reviews .rv-title p{margin:0;color:#5d6880;font-size:17.5px;line-height:1.5;font-weight:400}

html body main #reviews .rv-badges{display:flex;flex-wrap:wrap;gap:10px}
html body main #reviews .rv-badge{display:flex;align-items:center;gap:11px;padding:10px 16px 10px 12px;border:1px solid #dfe6f2;border-radius:13px;background:#fff;box-shadow:0 2px 8px rgba(31,55,103,.05);text-decoration:none;transition:border-color .18s,box-shadow .18s,transform .18s}
html body main #reviews .rv-badge:hover{border-color:#cfd9ea;box-shadow:0 5px 16px rgba(31,55,103,.09);transform:translateY(-1px)}
html body main #reviews .rv-badge-logo{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:9px;background:#fff;border:1px solid #e8edf6;overflow:hidden}
html body main #reviews .rv-badge-logo svg{width:24px;height:24px}
html body main #reviews .rv-badge-txt{display:flex;flex-direction:column;line-height:1.15}
html body main #reviews .rv-badge-txt b{color:#1f3767;font-size:15px;font-weight:800;letter-spacing:-.01em}
html body main #reviews .rv-badge-txt i{display:flex;align-items:center;gap:5px;margin-top:4px;color:#6b778e;font-size:13.5px;font-weight:600;font-style:normal}
html body main #reviews .rv-badge-txt i em{display:inline-flex;align-items:center;gap:2px;color:#f0a000;font-size:13px;font-style:normal;letter-spacing:.5px}
html body main #reviews .rv-badge-score{color:#1f3767;font-size:16px;font-weight:900}

html body main #reviews .rv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
html body main #reviews .rv-card{display:flex;flex-direction:column;padding:18px;border:1px solid #e3e9f3;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(31,55,103,.045);transition:box-shadow .2s,border-color .2s,transform .2s;min-height:0}
html body main #reviews .rv-card:hover{box-shadow:0 10px 26px rgba(31,55,103,.09);border-color:#cfdbef;transform:translateY(-2px)}

html body main #reviews .rv-top{display:flex;align-items:center;gap:10px;margin:0 0 11px}
html body main #reviews .rv-ava{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:50%;background:#e8edfc;color:#4265a4;font-size:17px;font-weight:800;line-height:1}
html body main #reviews .rv-card:nth-child(3n+2) .rv-ava{background:#fde5d6;color:#b56a40}
html body main #reviews .rv-card:nth-child(3n) .rv-ava{background:#dff0e7;color:#3c8262}
html body main #reviews .rv-who{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
html body main #reviews .rv-who b{color:#17233c;font-size:15.5px;font-weight:750;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body main #reviews .rv-who span{color:#7f8ca4;font-size:14px;line-height:1.3}
html body main #reviews .rv-src{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:7px;border:1px solid #e8edf6;background:#fff}

html body main #reviews .rv-stars{margin:0 0 9px;color:#f0a000;font-size:15px;letter-spacing:1.5px;line-height:1}
html body main #reviews .rv-text{flex:1;margin:0 0 12px;color:#33415a;font-size:16px;font-weight:450;line-height:1.5}
html body main #reviews .rv-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:11px;border-top:1px solid #eef1f7;margin:0}
html body main #reviews .rv-helpful{display:flex;align-items:center;gap:6px;color:#8a95a8;font-size:13px;font-weight:600}
html body main #reviews .rv-helpful svg{width:14px;height:14px;fill:none;stroke:#8a95a8;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html body main #reviews .rv-date{color:#7f8ca4;font-size:14px;font-weight:500}

html body main #reviews .rv-more{display:flex;justify-content:center;margin:20px 0 0}
html body main #reviews .rv-more a{display:inline-flex;align-items:center;gap:7px;padding:11px 22px;border:1.5px solid #d6e0f2;border-radius:10px;background:#fff;color:#1f3767;font-size:16px;font-weight:750;text-decoration:none;transition:border-color .18s,background .18s}
html body main #reviews .rv-more a:hover{border-color:#1f3767;background:#f5f8ff}

@media(max-width:1023px){html body main #reviews .rv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  html body main #reviews{padding:30px 0}
  html body main #reviews .rv-wrap{width:calc(100% - 36px)}
  html body main #reviews .rv-grid{grid-template-columns:1fr;gap:12px}
  html body main #reviews .rv-head{gap:16px}
  html body main #reviews .rv-badges{gap:8px}
  html body main #reviews .rv-badge{padding:8px 11px;gap:8px}
  html body main #reviews .rv-title p{font-size:16px}
  html body main #reviews .rv-text{font-size:15.5px}
}

html body main #reviews .rv-grid{align-items:stretch!important;grid-auto-rows:1fr!important}
html body main #reviews .rv-card{height:100%!important}

/* По умолчанию видно 3 отзыва */
html body main #reviews .rv-card:nth-child(n+4){display:none}
html body main #reviews.rv-expanded .rv-card:nth-child(n+4){display:flex}
html body main #reviews .rv-helpful--empty{visibility:hidden}
html body main #reviews .rv-more a{cursor:pointer}
html body main #reviews .rv-more{align-items:center;gap:12px;flex-wrap:wrap}
html body main #reviews .rv-count{color:#8a95a8;font-size:14.5px;font-weight:600}

/* ---- masthead-common ---- */
/* ===== ШАПКА: одна строка, одинаково везде ===== */
.masthead{background:#fff;border-bottom:1px solid #e8edf5}
.masthead .masthead-inner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;min-height:76px;padding-block:0}
.masthead .brand{display:flex;align-items:center;gap:12px;flex:none}
.masthead .brand-mark{width:44px;height:41px}
.masthead .brand-name{font-size:22px;line-height:1.05;letter-spacing:-.04em}
.masthead .brand-note{font-size:11px;letter-spacing:.1em;margin-top:3px}
.masthead .open-note{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:10px;margin:0 auto;padding:9px 20px;border:1px solid #dce6f7;border-radius:100px;background:#f6f9ff;color:#3f526e;font-size:15px;font-weight:600;white-space:nowrap;line-height:1.2}
.masthead .open-note strong{display:inline;margin:0;font-size:15px;font-weight:800;color:#1f7a4d;letter-spacing:-.005em}
.masthead .open-note br{display:none}
.masthead .open-note::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#2ecc71;box-shadow:0 0 0 3px rgba(46,204,113,.2)}
.masthead .phone{display:inline-flex;align-items:center;justify-content:center;justify-self:end;min-height:52px;padding:0 26px;border-radius:100px;background:linear-gradient(180deg,#f0643a,#e2552b);color:#fff;font-size:19px;font-weight:800;text-decoration:none;letter-spacing:-.01em;box-shadow:0 6px 16px rgba(226,85,43,.26);white-space:nowrap}
.masthead .phone:hover{filter:brightness(1.05)}

/* Понижение шрифтов — единое для всех страниц */
@media(max-width:1180px){
  .masthead .open-note{font-size:14px;padding:8px 16px}
  .masthead .open-note strong{font-size:14px}
  .masthead .phone{font-size:18px;padding:0 22px;min-height:50px}
  .masthead .masthead-inner{min-height:70px;gap:16px}
  .masthead .brand-name{font-size:21px}
}

/* ===== Телефоны и планшеты: две строки, телефон крупный ===== */
@media(max-width:900px){
  .masthead .masthead-inner{
    grid-template-columns:auto 1fr!important;
    grid-template-areas:"brand phone" "note note";
    align-items:center!important;
    gap:8px 12px!important;
    padding-block:12px!important;
    min-height:0!important
  }
  .masthead .brand{grid-area:brand!important;min-width:0}
  .masthead .open-note{grid-area:note!important;justify-self:start!important;margin:0!important}
  .masthead .phone{grid-area:phone!important;justify-self:end!important;width:auto!important;min-height:46px!important;padding:0 16px!important}
  .masthead .phone::before{content:none!important}
  .masthead .phone::after{content:none!important}
}
@media(max-width:640px){
  .masthead .masthead-inner{grid-template-columns:1fr!important;grid-template-areas:"brand" "phone" "note"!important;gap:10px!important}
  .masthead .brand-name{font-size:19px}
  .masthead .brand-note{font-size:11px}
  .masthead .phone{justify-self:stretch!important;width:100%!important;min-height:52px!important;font-size:19px!important;padding:0 14px!important;border-radius:14px!important}
  .masthead .open-note{justify-self:stretch!important;justify-content:flex-start!important;font-size:14px!important;padding:8px 13px!important}
  .masthead .open-note strong{font-size:14px!important}
}

/* ---- mobile-menu-btn ---- */
/* MOBILNAYA KNOBKA_MENU_MARK */
/* ===== МОБИЛЬНАЯ КНОПКА «МЕНЮ»: крупная и заметная ===== */
@media(max-width:900px){
  html body .menu:has(.menu-inner){padding:10px 0!important}
  html body .menu:has(.menu-inner) .mobile-menu-toggle{
    display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;
    width:100%!important;min-height:52px!important;padding:0 18px!important;
    border:2px solid #cfdbef!important;border-radius:13px!important;
    background:#fff!important;color:#1f3767!important;
    font-size:17px!important;font-weight:800!important;letter-spacing:-.01em!important;cursor:pointer!important
  }
  html body .menu:has(.menu-inner) .mobile-menu-toggle>span:first-child{font-size:22px!important;line-height:1!important;font-weight:400!important}
  html body .menu:has(.menu-inner) .mobile-menu-toggle>span:last-child{font-size:17px!important;font-weight:800!important}
  html body .menu:has(.menu-inner) .mobile-menu-toggle[aria-expanded=true]{background:#1f3767!important;border-color:#1f3767!important;color:#fff!important}
  html body .menu:has(.menu-inner) .menu-inner{gap:0!important}
}

/* ---- mobile-menu-overlay ---- */
@media(max-width:900px){
  /* Меню — выпадающая панель под кнопкой, поверх баннера */
  html body nav.menu:has(.menu-inner){position:relative!important}
  html body nav.menu:has(.menu-inner) .menu-links{
    position:absolute!important;top:calc(100% + 6px)!important;left:12px!important;right:12px!important;
    width:auto!important;max-height:calc(100vh - 140px)!important;overflow-y:auto!important;
    z-index:900!important;margin:0!important;padding:8px!important;
    background:#fff!important;border:1px solid #dbe4f2!important;border-radius:14px!important;
    box-shadow:0 22px 50px rgba(15,32,64,.26)!important
  }
  html body nav.menu:has(.menu-inner) .menu-links>a,
  html body nav.menu:has(.menu-inner) .menu-links>.menu-services>.menu-trigger{min-height:46px!important;padding:11px 12px!important;font-size:15.5px!important;border-bottom:1px solid #eef2f8!important}
  html body nav.menu:has(.menu-inner) .menu-links>a:last-child{border-bottom:0!important}
  html body nav.menu:has(.menu-inner) .menu-links .service-menu{max-height:none!important;overflow:visible!important}
}

/* ---- lead-form-css ---- */
html body #lead-form .lead-panel{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:36px;align-items:center;padding:34px;border:1px solid #dbe3f0;border-radius:20px;background:#fff;box-shadow:0 18px 42px rgba(31,55,103,.08)}
html body #lead-form .lead-panel h2{margin:0 0 12px;color:#1f3767;font-size:clamp(28px,3.2vw,38px);line-height:1.15;letter-spacing:-.02em}
html body #lead-form .lead-panel p{color:#5d6880;font-size:17px;line-height:1.6}
html body #lead-form .lead-panel .button{min-height:56px;padding:0 26px;font-size:17px}
html body #lead-form .form-grid{gap:16px;max-width:none}
html body #lead-form .field label{color:#1f3767;font-weight:750;letter-spacing:0}
html body #lead-form .field input{min-height:56px;padding:12px 15px;border:1.5px solid #c3cedf;border-radius:11px;font-size:18px}
html body #lead-form .consent{color:#5d6880;font-size:15.5px;line-height:1.45}
html body #lead-form .form-grid .button{min-height:58px;font-size:17.5px}
html body #lead-form .form-status{min-height:26px;margin:0;color:#176b5d;font-size:16px;line-height:1.4;font-weight:600}
html body #lead-form .form-traps{display:none;margin-top:14px;font-size:16px;color:#8a2a24}
html body #lead-form .form-traps a{color:#1f3767;font-weight:800}
@media(max-width:900px){
  html body #lead-form .lead-panel{grid-template-columns:minmax(0,1fr);gap:22px}
}
@media(max-width:620px){
  html body #lead-form .lead-panel{padding:20px;border-radius:16px}
  html body #lead-form .field input{font-size:17px}
  html body #lead-form .form-grid .button{min-height:56px;font-size:16.5px;justify-self:stretch}
}

/* ---- service-hero-unified ---- */
/* Refined alcohol treatment banner, scoped to this page. */
body.page-service .service-hero{background:radial-gradient(ellipse at 90% 15%,rgba(79,130,161,.3),transparent 55%),linear-gradient(120deg,#172f50,#24466c)!important;border:0!important;overflow:hidden}
body.page-service .service-hero .service-hero-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:54px;align-items:center;padding-top:58px;padding-bottom:58px;min-height:0}
body.page-service .service-hero h1{font-size:clamp(36px,4.1vw,54px)!important;line-height:1.13!important;letter-spacing:-.035em!important;max-width:600px;margin:19px 0 25px!important}
body.page-service .service-hero .eyebrow{font-size:12px!important;letter-spacing:.12em!important;color:#a9d9dd!important;line-height:1.6}
body.page-service .service-hero .hero-benefits{gap:0!important;margin:24px 0 32px!important;grid-template-columns:repeat(3,max-content)!important}
body.page-service .service-hero .hero-benefits li{min-height:0!important;background:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:2px 16px!important;color:#d8efef!important;font-size:15px!important;font-weight:650!important;line-height:1.5!important}
body.page-service .service-hero .hero-benefits li:first-child{padding-left:0!important}body.page-service .service-hero .hero-benefits li+li{border-left:1px solid #ffffff30!important}
body.page-service .service-hero .actions{gap:12px;max-width:540px}
body.page-service .service-hero .actions .button{min-height:60px!important;border-radius:12px!important;font-size:17px!important;padding:16px!important;box-shadow:none!important}
body.page-service .service-hero .actions .button:first-child{background:#ef554e!important;border-color:#ef554e!important}
body.page-service .service-hero .actions .button:nth-child(2){background:#ffffff0d!important;border:1px solid #ffffff70!important;color:#fff!important}
body.page-service .service-hero .service-hero-photo{padding:0!important;border:0!important;border-radius:26px!important;background:none!important;box-shadow:0 24px 60px #071c3438!important;overflow:hidden;min-height:0!important;transform:none!important}
body.page-service .service-hero .service-hero-photo:before,body.page-service .service-hero .service-hero-photo:after{display:none!important}
body.page-service .service-hero .service-hero-photo img{display:block;width:100%;height:auto!important;aspect-ratio:1.18;object-fit:cover;border-radius:26px!important;opacity:1}
@media(max-width:900px){body.page-service .service-hero .service-hero-grid{grid-template-columns:1fr;gap:30px;padding-block:38px}body.page-service .service-hero h1{max-width:650px}body.page-service .service-hero .service-hero-photo img{aspect-ratio:16/10}}
@media(max-width:600px){body.page-service .service-hero h1{font-size:36px!important}body.page-service .service-hero .hero-benefits{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.page-service .service-hero .hero-benefits li{font-size:12px!important;padding:2px 7px!important}body.page-service .service-hero .actions .button{font-size:15px!important;min-height:56px!important}}


body.page-service .service-hero{padding:0!important}
body.page-service .service-hero .service-hero-grid{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)!important;gap:46px!important;padding-block:46px!important;align-items:center!important;min-height:0!important}
body.page-service .service-hero .service-hero-photo{height:340px!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important}
body.page-service .service-hero .service-hero-photo img{height:100%!important;width:100%!important;aspect-ratio:auto!important;object-fit:cover!important;object-position:center!important}
body.page-service .service-hero h1{font-size:clamp(36px,3.7vw,48px)!important;line-height:1.16!important;margin:15px 0 22px!important}
body.page-service .service-hero .hero-benefits{margin:22px 0 28px!important}
@media(max-width:900px){body.page-service .service-hero .service-hero-grid{grid-template-columns:minmax(0,1fr)!important;padding-block:32px!important;gap:28px!important}body.page-service .service-hero .service-hero-photo{height:auto!important;aspect-ratio:16/9!important}}

/* ---- service-hero-benefits-fix ---- */
@media(max-width:900px){html body.page-service .service-hero .hero-benefits li{font-size:13.5px!important;line-height:1.3!important;min-height:56px!important;padding:11px 6px!important}}
