/* =====================================================
   Factory Pro Service — общие стили (site-wide)
   Дизайн-система из утверждённого макета главной.
   ===================================================== */

:root{
  --fps-navy:#182335;
  --fps-navy-2:#233149;
  --fps-blue:#2569c4;
  --fps-blue-deep:#1c4f96;
  --fps-blue-bright:#3f8fe0;
  --fps-white:#ffffff;
  --fps-bg:#f4f6f9;
  --fps-bg-2:#eef1f6;
  --fps-border:#e1e6ed;
  --fps-text:#1a2433;
  --fps-muted:#5c6779;
  --fps-radius:6px;
  --fps-maxw:1320px;
}

body{
  margin:0;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--fps-text);
  background:var(--fps-white);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
  font-size:16px;
}
html{scroll-behavior:smooth;}
h1,h2,h3,h4{font-family:'Archivo',sans-serif;margin:0;color:var(--fps-navy);letter-spacing:-0.01em;}
p{margin:0;}
a{color:inherit;text-decoration:none;}
img{max-width:100%;height:auto;display:block;}

/* GeneratePress рисует свою обёртку — на наших страницах она не нужна. */
.site-content,.site-main,.inside-article{padding:0;margin:0;max-width:none;}
.fps-skip{position:absolute;left:-9999px;}
.fps-skip:focus{left:12px;top:12px;z-index:200;background:#fff;padding:10px 14px;border-radius:6px;}

.fps-wrap{max-width:var(--fps-maxw);margin:0 auto;padding:0 24px;}
.fps-section{padding:88px 0;}
.fps-section--tight{padding:64px 0;}
.fps-section--light{background:var(--fps-bg);}
.fps-section__cta{display:flex;justify-content:center;margin-top:40px;}

.fps-headrow{
  display:flex;justify-content:space-between;align-items:flex-end;
  gap:40px;margin-bottom:44px;flex-wrap:wrap;
}
.fps-headrow h2{font-size:36px;font-weight:700;max-width:520px;line-height:1.2;}
.fps-headrow__desc{max-width:380px;color:var(--fps-muted);font-size:17px;padding-bottom:4px;}
.fps-headrow--center{justify-content:center;text-align:center;}
.fps-headrow--center h2{max-width:none;}

/* ---------- Кнопки ---------- */
.fps-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 26px;border-radius:var(--fps-radius);
  font-weight:600;font-size:17px;border:1.5px solid transparent;cursor:pointer;white-space:nowrap;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.fps-btn--primary{background:var(--fps-blue);color:var(--fps-white);}
.fps-btn--primary:hover{background:var(--fps-blue-deep);color:var(--fps-white);}
.fps-btn--header{padding:9px 16px;font-size:13.5px;}
.fps-btn--outline{border-color:var(--fps-navy);color:var(--fps-navy);background:transparent;}
.fps-btn--outline:hover{background:var(--fps-navy);color:var(--fps-white);}
.fps-btn--outline-light{border-color:rgba(255,255,255,.55);color:var(--fps-white);background:transparent;}
.fps-btn--outline-light:hover{background:rgba(255,255,255,.12);}
.fps-btn--white{background:var(--fps-white);color:var(--fps-blue-deep);}
.fps-btn--white:hover{background:#eaf1fb;}

/* ---------- Плейсхолдеры фото ---------- */
.fps-frame{
  border:2px dashed var(--fps-border);border-radius:14px;background:var(--fps-bg);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  color:var(--fps-muted);text-align:center;padding:24px;
}
.fps-frame i{font-size:28px;}
.fps-frame span{font-size:13px;font-weight:500;max-width:260px;line-height:1.5;}
.fps-frame--large{width:100%;height:100%;}
.fps-frame--large i{font-size:38px;}
.fps-frame--large span{font-size:14px;max-width:300px;}
.fps-frame--square{aspect-ratio:1/1;}

/* ---------- Шапка ---------- */
.fps-header{position:sticky;top:0;z-index:100;background:var(--fps-white);border-bottom:1px solid var(--fps-border);}
.fps-header__inner{
  max-width:var(--fps-maxw);margin:0 auto;padding:0 24px;
  display:flex;align-items:center;justify-content:space-between;height:78px;
}
.fps-logo__img{height:46px;width:auto;}
.fps-nav{display:flex;align-items:center;gap:30px;}
.fps-nav__link{display:inline-flex;align-items:center;gap:6px;font-size:16px;font-weight:500;color:var(--fps-navy);}
.fps-nav__link:hover{color:var(--fps-blue);}
.fps-nav__item{position:relative;}
.fps-nav__chev{transition:transform .15s ease;}

/* Выпадающий список: услуги, бренды, города — прямо из записей сайта. */
.fps-nav__drop{
  position:absolute;top:100%;left:-18px;z-index:110;
  padding-top:14px;
  opacity:0;visibility:hidden;transform:translateY(-4px);
  transition:opacity .15s ease,transform .15s ease,visibility .15s;
}
.fps-nav__item:hover .fps-nav__drop,
.fps-nav__item:focus-within .fps-nav__drop{opacity:1;visibility:visible;transform:none;}
.fps-nav__item:hover .fps-nav__chev,
.fps-nav__item:focus-within .fps-nav__chev{transform:rotate(180deg);}

.fps-nav__drop-inner{
  display:flex;gap:34px;
  background:var(--fps-white);
  border:1px solid var(--fps-border);
  border-radius:var(--fps-radius);
  box-shadow:0 18px 40px -18px rgba(24,35,53,.35);
  padding:20px 22px;
}
.fps-nav__group{min-width:210px;}
.fps-nav__group-title{
  font-family:'Archivo',sans-serif;font-weight:700;font-size:12px;
  text-transform:uppercase;letter-spacing:.06em;color:var(--fps-muted);
  padding:0 10px 8px;margin-bottom:6px;border-bottom:1px solid var(--fps-border);
}
.fps-nav__sub{list-style:none;margin:0;padding:0;display:grid;gap:1px;}
.fps-nav__sub a{
  display:block;padding:8px 10px;border-radius:5px;
  font-size:15px;font-weight:500;color:var(--fps-navy);white-space:nowrap;
}
.fps-nav__sub a:hover{background:var(--fps-bg);color:var(--fps-blue);}
.fps-nav__sub--cols{grid-template-columns:1fr 1fr;column-gap:14px;}
.fps-header__right{display:flex;align-items:center;gap:22px;}
.fps-header__phone{display:flex;align-items:center;gap:9px;font-weight:700;font-size:17.5px;color:var(--fps-navy);}
.fps-header__phone svg{flex-shrink:0;}
.fps-burger{display:none;background:none;border:none;padding:8px;cursor:pointer;}
.fps-burger:hover,.fps-burger:focus,.fps-burger:active{background:none;box-shadow:none;color:inherit;}
.fps-burger:focus{outline:none;}
.fps-burger:focus-visible{outline:2px solid var(--fps-blue);outline-offset:2px;border-radius:6px;}
.fps-mobile-nav{display:none;}

/* ---------- FAQ ---------- */
.fps-faq{max-width:760px;margin:0 auto;}
.fps-faq__item{border-bottom:1px solid var(--fps-border);}
.fps-faq__q{
  width:100%;text-align:left;background:none;border:none;padding:22px 4px;
  display:flex;justify-content:space-between;align-items:center;cursor:pointer;
  font-family:'Archivo',sans-serif;font-weight:600;font-size:18px;color:var(--fps-navy);
}
.fps-faq__q:hover,.fps-faq__q:focus,.fps-faq__q:active{
  /* GeneratePress на hover/focus заливает button тёмным и красит текст в белый —
     держим кнопку прозрачной, а текст тёмным. */
  background:none;box-shadow:none;color:var(--fps-navy);
}
.fps-faq__q:hover{color:var(--fps-blue);}
.fps-faq__q:focus{outline:none;}
.fps-faq__q:focus-visible{outline:2px solid var(--fps-blue);outline-offset:-2px;border-radius:var(--fps-radius);}
.fps-faq__plus{font-size:24.5px;color:var(--fps-blue);flex-shrink:0;margin-left:20px;transition:transform .2s ease;font-weight:400;}
.fps-faq__item.is-open .fps-faq__plus{transform:rotate(45deg);}
.fps-faq__a{max-height:0;overflow:hidden;transition:max-height .25s ease;}
.fps-faq__a-inner{padding:0 4px 22px;font-size:16px;color:var(--fps-muted);max-width:640px;}

/* ---------- Чипсы городов ---------- */
.fps-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px;}
.fps-chip{
  border:1px solid var(--fps-border);border-radius:20px;padding:8px 16px;
  font-size:15px;font-weight:500;color:var(--fps-navy);
  transition:border-color .15s ease,background .15s ease;
}
a.fps-chip:hover{border-color:var(--fps-blue);background:var(--fps-bg);}

/* ---------- Финальный CTA ---------- */
.fps-cta{background:var(--fps-blue);padding:70px 0;}
.fps-cta__inner{display:flex;justify-content:space-between;align-items:center;gap:30px;flex-wrap:wrap;}
.fps-cta h2{color:var(--fps-white);font-size:33.5px;font-weight:700;margin-bottom:8px;}
.fps-cta p{color:rgba(255,255,255,.85);font-size:17.5px;}
.fps-cta__btns{display:flex;gap:14px;flex-wrap:wrap;}

/* ---------- Подвал ---------- */
.fps-footer{background:var(--fps-navy);color:rgba(255,255,255,.7);padding:64px 0 28px;}
.fps-footer__top{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:40px;margin-bottom:48px;}
.fps-footer__logo{display:inline-block;margin-bottom:18px;}
/* Логотип прозрачный и тёмный — на navy-подложке выводим его белым силуэтом. */
.fps-footer__logo img{height:40px;width:auto;filter:brightness(0) invert(1);}
.fps-footer__top p{font-size:15px;line-height:1.6;color:rgba(255,255,255,.55);}
.fps-footer__col h4{color:var(--fps-white);font-size:15px;font-weight:700;margin-bottom:16px;letter-spacing:.02em;}
.fps-footer__col ul{list-style:none;margin:0;padding:0;}
.fps-footer__col li{margin-bottom:10px;}
.fps-footer__col li a{font-size:15px;color:rgba(255,255,255,.65);}
.fps-footer__col li a:hover{color:var(--fps-white);}
.fps-footer__phone{color:var(--fps-white);font-weight:700;font-size:17px;margin-bottom:14px;display:block;}
.fps-footer__bottom{
  border-top:1px solid rgba(255,255,255,.12);padding-top:22px;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;
  font-size:14px;color:rgba(255,255,255,.45);
}
.fps-footer__legal{display:flex;gap:20px;}
.fps-footer__legal a:hover{color:rgba(255,255,255,.8);}

/* ---------- Липкая мобильная кнопка ---------- */
.fps-sticky-cta{display:none;}

@media (max-width:1024px){
  .fps-header__inner{gap:16px;}
  .fps-nav{gap:20px;}
}

@media (max-width:760px){
  .fps-section{padding:56px 0;}
  .fps-wrap{padding:0 18px;}

  .fps-nav,.fps-header__phone{display:none;}
  .fps-burger{display:flex;}
  .fps-header__right .fps-btn{display:none;}
  .fps-logo__img{height:34px;}
  .fps-header__inner{height:64px;}

  .fps-mobile-nav{
    display:none;position:fixed;top:64px;left:0;right:0;bottom:0;
    background:var(--fps-white);z-index:99;padding:22px;overflow-y:auto;
  }
  .fps-mobile-nav.is-open{display:block;}
  .fps-mobile-nav__link{
    display:block;padding:15px 4px;border-bottom:1px solid var(--fps-border);
    font-size:18px;font-weight:600;color:var(--fps-navy);
  }
  .fps-mobile-nav__group{position:relative;border-bottom:1px solid var(--fps-border);}
  .fps-mobile-nav__group .fps-mobile-nav__link{border-bottom:none;padding-right:56px;}
  .fps-mobile-nav__toggle{
    position:absolute;top:0;right:0;width:52px;height:54px;
    display:flex;align-items:center;justify-content:center;
    background:none;border:none;border-left:1px solid var(--fps-border);
    color:var(--fps-navy);cursor:pointer;
  }
  .fps-mobile-nav__toggle:hover,.fps-mobile-nav__toggle:focus,.fps-mobile-nav__toggle:active{
    background:none;box-shadow:none;color:var(--fps-navy);
  }
  .fps-mobile-nav__toggle .fps-nav__chev{width:14px;height:9px;}
  .fps-mobile-nav__toggle[aria-expanded="true"] .fps-nav__chev{transform:rotate(180deg);}
  .fps-mobile-nav__sub{display:none;padding:2px 0 12px;}
  .fps-mobile-nav__sub.is-open{display:block;}
  .fps-mobile-nav__sub a{
    display:block;padding:11px 4px 11px 18px;
    font-size:16px;font-weight:500;color:var(--fps-muted);border-bottom:none;
  }
  .fps-mobile-nav__sub a:hover{color:var(--fps-blue);}
  .fps-mobile-nav__sub-title{
    padding:14px 4px 6px 18px;font-family:'Archivo',sans-serif;font-weight:700;
    font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--fps-navy);
  }
  .fps-mobile-nav__phone{
    margin-top:20px;display:flex;align-items:center;gap:10px;
    font-weight:700;font-size:19px;color:var(--fps-blue);border-bottom:none;
  }
  /* Кнопка внутри меню — это тоже <a>, и правила пунктов меню перебивали
     ей цвет и выравнивание. Возвращаем вид обычной кнопки. */
  .fps-mobile-nav .fps-btn{
    display:flex;justify-content:center;align-items:center;
    width:100%;margin-top:20px;padding:14px 24px;
    border-bottom:none;color:var(--fps-white);font-size:17px;
  }
  .fps-mobile-nav .fps-btn--primary:hover{color:var(--fps-white);}

  .fps-headrow{flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:30px;}
  .fps-headrow h2{font-size:28px;}
  .fps-headrow--center{align-items:center;}

  .fps-cta__inner{flex-direction:column;align-items:flex-start;text-align:left;}
  .fps-cta__btns{width:100%;}
  .fps-cta__btns .fps-btn{flex:1;}

  .fps-footer__top{grid-template-columns:1fr 1fr;gap:30px;}
  .fps-footer__bottom{flex-direction:column;align-items:flex-start;}

  /* Место под липкую кнопку добирает подвал, а не body: иначе снизу
     просвечивала белая полоса фона страницы. */
  .fps-footer{padding-bottom:96px;}
  .fps-sticky-cta{
    display:flex;position:fixed;bottom:0;left:0;right:0;z-index:98;
    box-shadow:0 -3px 14px rgba(0,0,0,.12);
  }
  .fps-sticky-cta a{
    flex:1;display:flex;align-items:center;justify-content:center;gap:8px;
    padding:16px 10px;font-weight:700;font-size:16px;
  }
  .fps-sticky-cta__call{background:var(--fps-navy);color:var(--fps-white);}
  .fps-sticky-cta__book{background:var(--fps-blue);color:var(--fps-white);}
}

/* ---------- Услуги ---------- */
.fps-services{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.fps-card{
  display:block;border:1px solid var(--fps-border);border-radius:var(--fps-radius);
  padding:24px 22px;background:var(--fps-white);
  transition:border-color .15s ease,transform .15s ease;
}
a.fps-card:hover{border-color:var(--fps-blue);transform:translateY(-2px);}
.fps-card__icon{
  width:56px;height:56px;border-radius:14px;background:linear-gradient(135deg,#eaf2fc,#dbe9fa);
  display:flex;align-items:center;justify-content:center;margin-bottom:18px;
  color:var(--fps-blue-deep);font-size:22px;
}
.fps-card h3{font-size:18px;font-weight:600;margin-bottom:6px;}
.fps-card p{font-size:15px;color:var(--fps-muted);margin-bottom:12px;}
.fps-card__learn{font-size:14.5px;font-weight:600;color:var(--fps-blue);}

/* Карточка с фото услуги: фон — снимок техники, текст поверх затемнения.
   Иконка уходит в угол, чтобы не спорить с заголовком. */
.fps-card--photo{
  position:relative;overflow:hidden;
  min-height:260px;padding:22px;
  border-color:transparent;
  display:flex;flex-direction:column;justify-content:flex-end;
  background-size:cover;background-position:center;
}
.fps-card--photo::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(24,35,53,.10) 35%,rgba(24,35,53,.86) 100%);
  transition:background .15s ease;
}
.fps-card--photo > *{position:relative;z-index:1;}
.fps-card--photo:hover::after{background:linear-gradient(180deg,rgba(24,35,53,.20) 25%,rgba(24,35,53,.90) 100%);}
.fps-card--photo .fps-card__icon{
  position:absolute;top:22px;left:22px;margin:0;
  width:44px;height:44px;border-radius:12px;font-size:18px;
  background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);color:#fff;
}
.fps-card--photo h3{color:#fff;font-size:19px;}
.fps-card--photo p{color:rgba(255,255,255,.82);}
.fps-card--photo .fps-card__learn{color:#fff;}


/* ---------- Бренды ---------- */
.fps-brands{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;}
.fps-brand{
  border:1px solid var(--fps-border);border-radius:10px;min-height:164px;padding:24px 18px;
  /* Сетка из двух рядов: логотип центрируется в верхнем, название всегда
     прижато к низу — иначе подписи прыгают из-за разной высоты логотипов. */
  display:grid;grid-template-rows:1fr auto;align-items:center;justify-items:center;gap:14px;
  background:var(--fps-white);filter:grayscale(1);opacity:.85;
  transition:opacity .15s ease,transform .15s ease,border-color .15s ease;
}
.fps-brand:hover{opacity:1;transform:translateY(-2px);border-color:var(--fps-blue);}
.fps-brand__mark{
  width:48px;height:48px;border-radius:12px;background:var(--fps-navy);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-family:'Archivo',sans-serif;font-weight:700;font-size:18px;
}
/* Логотипы приходят и широкими вордмарками, и квадратами 512×512 с полями —
   вписываем все в одну коробку, чтобы в ряду они смотрелись одинаково. */
.fps-brand__logo{max-height:84px;max-width:100%;width:auto;object-fit:contain;}
/* Квадратный холст с полями внутри — растягиваем сильнее, иначе логотип
   теряется рядом с широкими вордмарками. */
.fps-brand__logo--square{max-height:118px;}
.fps-brand__name{font-family:'Archivo',sans-serif;font-weight:600;font-size:16px;color:var(--fps-navy);letter-spacing:.01em;text-align:center;}
.fps-brands__note{font-size:13px;color:var(--fps-muted);margin-top:18px;text-align:center;}

/* ---------- Отзывы ---------- */
.fps-reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.fps-review{border:1px solid var(--fps-border);border-radius:var(--fps-radius);padding:26px 24px;background:var(--fps-white);}
.fps-review__stars{color:var(--fps-blue);font-size:17px;letter-spacing:2px;margin-bottom:14px;}
.fps-review__body{font-size:16px;color:var(--fps-text);margin-bottom:18px;}
.fps-review__who{display:flex;align-items:center;gap:12px;}
.fps-review__avatar{
  width:40px;height:40px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,var(--fps-blue),var(--fps-blue-deep));color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-family:'Archivo',sans-serif;font-weight:700;font-size:13px;
}
.fps-review__name{font-size:15px;font-weight:700;color:var(--fps-navy);}
.fps-review__note{font-size:13px;color:var(--fps-muted);margin-top:2px;}

@media (max-width:1024px){
  .fps-services{grid-template-columns:repeat(3,1fr);}
  .fps-brands{grid-template-columns:repeat(4,1fr);}
}
@media (max-width:760px){
  .fps-services{grid-template-columns:repeat(2,1fr);gap:12px;}
  .fps-card{padding:18px 16px;}
  .fps-card--photo{min-height:200px;padding:16px;}
  .fps-card--photo .fps-card__icon{top:16px;left:16px;width:38px;height:38px;font-size:16px;}
  .fps-card--photo h3{font-size:16px;}
  .fps-brands{grid-template-columns:repeat(2,1fr);gap:12px;}
  .fps-brand{min-height:140px;padding:18px 14px;gap:10px;}
  .fps-brand__logo{max-height:64px;}
  .fps-brand__logo--square{max-height:92px;}
  .fps-reviews{grid-template-columns:1fr;gap:14px;}
}

/* ---------- Почему мы ---------- */
.fps-why{display:grid;grid-template-columns:repeat(4,1fr);gap:36px;}
.fps-why__icon{
  width:60px;height:60px;border-radius:16px;
  background:linear-gradient(135deg,var(--fps-blue),var(--fps-blue-deep));
  display:flex;align-items:center;justify-content:center;color:var(--fps-white);
  margin-bottom:20px;font-size:24px;box-shadow:0 8px 18px -8px rgba(37,105,196,.55);
}
.fps-why__item h3{font-size:19px;font-weight:700;margin-bottom:8px;}
.fps-why__item p{font-size:15.5px;color:var(--fps-muted);}

@media (max-width:1024px){ .fps-why{grid-template-columns:repeat(2,1fr);gap:30px;} }
@media (max-width:760px){ .fps-why{grid-template-columns:1fr;gap:28px;} }

/* ---------- Юридические / текстовые страницы ---------- */
.fps-legal{padding:52px 0 80px;}
.fps-legal__wrap{max-width:860px;margin:0 auto;padding:0 24px;}
.fps-legal h1{font-size:38px;font-weight:700;margin-bottom:8px;}
.fps-legal__updated{color:var(--fps-muted);font-size:15px;margin-bottom:32px;}
.fps-crumbs{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--fps-muted);margin-bottom:18px;}
.fps-crumbs a:hover{color:var(--fps-blue);}

.fps-prose{font-size:16.5px;color:var(--fps-text);}
.fps-prose h2{font-size:23px;font-weight:700;margin:36px 0 12px;}
.fps-prose p{margin:0 0 14px;line-height:1.7;}
.fps-prose ul,.fps-prose ol{margin:0 0 16px 20px;}
.fps-prose li{margin-bottom:8px;}
.fps-prose a{color:var(--fps-blue);text-decoration:underline;}

@media (max-width:760px){
  .fps-legal{padding:32px 0 56px;}
  .fps-legal__wrap{padding:0 18px;}
  .fps-legal h1{font-size:29px;}
  .fps-prose h2{font-size:20px;}
}
