
:root{
  --red:#d45361;
  --dark:#2c313e;
  --dark-2:#161822;
  --text:#2c313e;
  --muted:#687083;
  --bg:#f4f5f8;
  --white:#fff;
  --shadow:0 22px 60px rgba(19,24,34,.14);
  --radius:22px;
  --container:1200px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Gotham Pro",Montserrat,Arial,sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.55;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
.container{width:min(var(--container),calc(100% - 48px));margin:0 auto}
.site-header{
  position:absolute;
  z-index:50;
  top:0;left:0;width:100%;
  color:#fff;
  transition:.25s ease;
}
.site-header.is-fixed{
  position:fixed;
  background:rgba(22,24,34,.96);
  backdrop-filter:blur(14px);
  box-shadow:0 14px 35px rgba(0,0,0,.18);
}
.header__inner{
  width:min(1200px,calc(100% - 48px));
  margin:0 auto;
  min-height:116px;
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  gap:18px;
  padding:18px 0;
  border-bottom:1px solid rgba(255,255,255,.22);
}
.logo{display:flex;align-items:center;flex-shrink:0}
.logo__badge{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.98);
  box-shadow:0 16px 40px rgba(8,13,22,.16);
}
.logo__full{display:block;width:220px;max-width:100%;height:auto}
.logo--footer .logo__badge{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:none;
}
.logo--footer .logo__full{filter:brightness(0) invert(1)}
.nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:8px 18px;
  font-size:14px;
}
.nav a{opacity:.92;transition:.2s;white-space:nowrap}
.nav a:hover{color:var(--red);opacity:1}
.header__contacts{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
.phone{font-weight:700;white-space:nowrap}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 28px;
  border:none;
  border-radius:54px;
  background:var(--red);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  transition:.22s ease;
  box-shadow:0 14px 30px rgba(212,83,97,.25);
}
.btn:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(212,83,97,.32)}
.btn--small{min-height:45px;padding:0 24px;font-size:14px}
.btn--ghost{background:transparent;border:1px solid rgba(255,255,255,.55);box-shadow:none}
.btn--ghost:hover{background:#fff;color:var(--dark)}
.btn--dark{background:var(--dark);box-shadow:0 14px 30px rgba(44,49,62,.18)}
.burger{display:none;background:none;border:0;width:42px;height:42px;padding:7px;cursor:pointer}
.burger span{display:block;height:2px;background:#fff;margin:7px 0;border-radius:2px;transition:.2s}
.hero{
  min-height:760px;
  position:relative;
  color:#fff;
  background-image:var(--hero-bg);
  background-size:cover;
  background-position:center;
  overflow:hidden;
}
.hero__overlay{
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(16,24,38,.88) 0%,rgba(16,24,38,.72) 42%,rgba(16,24,38,.24) 100%);
}
.hero__content{
  position:relative;
  z-index:1;
  padding-top:265px;
}
.hero h1{
  max-width:850px;
  margin:0 0 28px;
  font-size:clamp(38px,4vw,58px);
  line-height:1.13;
  letter-spacing:-.02em;
}
.hero p{
  max-width:610px;
  margin:0 0 34px;
  font-size:18px;
  color:rgba(255,255,255,.86);
}
.eyebrow{
  display:inline-flex;
  margin-bottom:18px!important;
  color:#fff!important;
  padding:8px 16px;
  border-radius:30px;
  background:rgba(212,83,97,.85);
  font-size:14px!important;
  font-weight:700;
}
.hero__actions{display:flex;gap:14px;flex-wrap:wrap}
.hero__dots{
  position:absolute;z-index:2;left:50%;bottom:40px;transform:translateX(-50%);
  display:flex;gap:8px;
}
.hero__dots span{width:34px;height:4px;border-radius:4px;background:rgba(255,255,255,.45)}
.hero__dots span:first-child{background:var(--red)}
.section{padding:92px 0}
.section-title{
  text-align:center;
  margin:0 0 52px;
  font-size:clamp(30px,3vw,42px);
  line-height:1.15;
}
.section-title--left{text-align:left;margin-bottom:18px}
.services{background:#fff}
.services__grid{
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr;
  gap:22px;
}
.service-card{
  min-height:226px;
  padding:36px 34px;
  background:#fff;
  border-radius:0;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
  transition:.25s ease;
}
.service-card--large{grid-row:span 2;min-height:474px}
.service-card:before{
  content:"";
  position:absolute;inset:auto -35% -60% auto;
  width:180px;height:180px;border-radius:50%;
  background:rgba(212,83,97,.08);
  transition:.25s ease;
}
.service-card:hover{transform:translateY(-6px)}
.service-card:hover:before{background:rgba(212,83,97,.16);transform:scale(1.2)}
.service-card__icon{
  width:72px;height:72px;
  display:grid;place-items:center;
  margin-bottom:34px;
  border-radius:20px;
  background:rgba(212,83,97,.1);
  color:var(--red);
  font-size:34px;
}
.service-card h3{font-size:22px;margin:0 0 14px}
.service-card p{margin:0;color:var(--muted)}
.offer{
  min-height:580px;
  position:relative;
  padding:0;
  display:flex;
  align-items:center;
  overflow:hidden;
  color:#fff;
}
.offer__image{
  position:absolute;inset:0;
  background-size:cover;
  background-position:center;
}
.offer__image:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(17,22,34,.3),rgba(17,22,34,.82) 52%,rgba(17,22,34,.92))}
.offer__inner{position:relative;z-index:1;display:flex;justify-content:flex-end}
.offer__content{max-width:650px;padding:90px 0}
.offer h2{font-size:clamp(34px,3.6vw,54px);line-height:1.14;margin:0 0 22px}
.offer p{font-size:18px;color:rgba(255,255,255,.82);margin:0 0 32px}
.news{background:#fff}
.news__track{
  display:grid;
  grid-template-columns:repeat(6,328px);
  gap:26px;
  overflow-x:auto;
  padding:8px 8px 34px;
  margin:0 -8px;
  scroll-snap-type:x mandatory;
}
.news-card{
  background:#fff;
  box-shadow:var(--shadow);
  scroll-snap-align:start;
  overflow:hidden;
}
.news-card img{height:230px;width:100%;object-fit:cover}
.news-card__body{padding:22px}
.news-card time{display:block;color:var(--red);font-weight:700;margin-bottom:12px}
.news-card h3{margin:0;font-size:18px;line-height:1.35}
.about-preview{background:#fff}
.about-preview__grid,.about-page__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.about-preview__media img,.about-page img{
  width:100%;
  min-height:450px;
  object-fit:cover;
  border-radius:0;
  box-shadow:var(--shadow);
}
.about-preview h2,.about-page h2{font-size:42px;margin:0 0 24px}
.about-preview p,.about-page p{color:var(--muted);font-size:17px}
.partners{background:#fff;padding-top:40px}
.partners__image{
  width:100%;
  max-width:1062px;
  margin:0 auto;
  filter:grayscale(.1);
}
.partners__list{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.partners__list span{padding:28px;text-align:center;background:#f7f7f8;border-radius:18px;font-weight:700}
.reviews{
  position:relative;
  background-image:linear-gradient(rgba(22,24,34,.82),rgba(22,24,34,.82)),var(--reviews-bg);
  background-size:cover;
  background-position:center;
}
.reviews__grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.review{
  background:#fff;
  padding:42px 34px 34px;
  text-align:center;
  box-shadow:var(--shadow);
}
.review__avatar{
  width:120px;height:120px;border-radius:50%;
  margin:0 auto 22px;
  background:linear-gradient(135deg,#d7d9df,#fff);
  border:8px solid #f3f3f5;
}
.review h3{font-size:24px;margin:0 0 12px}
.review p{color:var(--muted);margin:0 0 22px}
.calc{background:var(--bg);position:relative;overflow:hidden}
.calc:after{
  content:"";
  position:absolute;right:-120px;bottom:-80px;width:520px;height:320px;
  background:rgba(212,83,97,.08);border-radius:50%;
}
.calc__grid{
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:.8fr 1.4fr;
  gap:60px;
  align-items:center;
}
.calc__lead{color:var(--muted);font-size:17px;max-width:420px}
.calc__form,.contacts-form,.form{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}
.form{grid-template-columns:1fr}
.calc__form label,.contacts-form label,.form label{display:block}
.calc__form span,.contacts-form span,.form span{display:none}
input,textarea{
  width:100%;
  border:0;
  border-radius:12px;
  background:#fff;
  padding:20px 24px;
  color:var(--text);
  outline:none;
  box-shadow:0 10px 25px rgba(30,36,48,.08);
}
textarea{resize:vertical}
.calc__form .btn{grid-column:1 / -1;justify-self:center;min-width:325px}
.footer{
  background:var(--dark);
  color:#fff;
}
.footer__grid{
  display:grid;
  grid-template-columns:1.3fr .8fr 1fr;
  gap:40px;
  padding:58px 0 46px;
}
.footer__copy{margin:26px 0 0;color:rgba(255,255,255,.65)}
.footer__menu,.footer__contacts{display:flex;flex-direction:column;gap:12px;color:rgba(255,255,255,.75)}
.footer__menu a:hover{color:#fff}
.footer__phone{font-size:22px;font-weight:800;color:#fff}
.footer__bottom{border-top:1px solid rgba(255,255,255,.1);padding:18px 0;color:rgba(255,255,255,.55);font-size:14px}
.footer__bottom .container{display:flex;gap:28px;flex-wrap:wrap}
.service-detail{background:#fff}
.service-detail__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.service-detail__image{
  min-height:468px;
  background:center/cover no-repeat;
  box-shadow:var(--shadow);
}
.service-detail__content h2,.service-columns h2,.terminal-page h2,.contacts-card h2,.contacts-form h2{font-size:32px;margin:0 0 24px}
.check-list{list-style:none;margin:0;padding:0;display:grid;gap:16px;color:var(--muted)}
.check-list li{position:relative;padding-left:32px}
.check-list li:before{content:"";position:absolute;left:0;top:.45em;width:12px;height:12px;border-radius:50%;background:var(--red)}
.service-columns{background:var(--bg)}
.service-columns__grid,.terminal-page__grid,.contacts-page__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
}
.service-columns article,.terminal-page article,.terminal-card,.contacts-card,.contacts-form{
  background:#fff;
  padding:42px;
  box-shadow:var(--shadow);
}
.section-card__image{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
  margin:0 0 26px;
  box-shadow:var(--shadow);
}
.contacts-card__media{height:280px;margin-top:26px}
.image-showcase{padding-top:0}
.image-showcase--dark{background:var(--bg)}
.image-showcase__grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.image-showcase__grid img{
  width:100%;
  height:280px;
  object-fit:cover;
  display:block;
  box-shadow:var(--shadow);
}
.terminal-card{
  background:var(--dark);
  color:#fff;
  align-self:start;
}
.terminal-card p{color:rgba(255,255,255,.75)}
.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:34px;
}
.stats div{background:#fff;padding:24px;box-shadow:var(--shadow)}
.stats b{display:block;font-size:28px;color:var(--red)}
.stats span{color:var(--muted);font-size:14px}
.contacts-card p{color:var(--muted)}
.contacts-form{display:grid;grid-template-columns:1fr}
.contacts-form h2{margin-bottom:0}
.modal{position:fixed;inset:0;z-index:200;display:none}
.modal.is-open{display:block}
.modal__overlay{position:absolute;inset:0;background:rgba(22,24,34,.72)}
.modal__body{
  position:relative;
  width:min(560px,calc(100% - 32px));
  margin:10vh auto;
  padding:44px;
  background:#fff;
  border-radius:24px;
  box-shadow:0 40px 100px rgba(0,0,0,.3);
}
.modal__body h2{margin:0 0 10px;font-size:34px}
.modal__body p{color:var(--muted)}
.modal__close{
  position:absolute;right:18px;top:14px;
  border:0;background:none;font-size:36px;line-height:1;cursor:pointer;color:var(--muted)
}
.form small{color:var(--muted)}
.form .btn{width:100%}
@media (max-width:1180px){
  .header__inner{grid-template-columns:auto 1fr auto auto;gap:14px}
  .logo__badge{padding:10px 14px}
  .logo__full{width:190px}
  .nav{gap:8px 12px;font-size:13px}
  .header__contacts .phone{display:none}
  .services__grid{grid-template-columns:1fr 1fr}
  .service-card--large{grid-row:auto}
  .reviews__grid{grid-template-columns:1fr}
}
@media (max-width:920px){
  .container,.header__inner{width:min(100% - 32px, var(--container))}
  .header__inner{min-height:84px;grid-template-columns:auto 1fr auto;padding:14px 0}
  .logo__badge{padding:10px 14px;border-radius:14px}
  .logo__full{width:170px}
  .burger{display:block;margin-left:auto}
  .header__contacts{display:none}
  .nav{
    position:fixed;
    top:84px;left:16px;right:16px;
    display:none;
    flex-direction:column;
    background:rgba(22,24,34,.98);
    padding:22px;
    border-radius:18px;
    box-shadow:0 22px 60px rgba(0,0,0,.25);
  }
  .nav.is-open{display:flex}
  .site-header.is-menu .burger span:nth-child(1){transform:translateY(9px) rotate(45deg)}
  .site-header.is-menu .burger span:nth-child(2){opacity:0}
  .site-header.is-menu .burger span:nth-child(3){transform:translateY(-9px) rotate(-45deg)}
  .hero{min-height:650px}
  .hero__content{padding-top:190px}
  .services__grid,.about-preview__grid,.about-page__grid,.calc__grid,.service-detail__grid,.service-columns__grid,.terminal-page__grid,.contacts-page__grid,.footer__grid,.image-showcase__grid{grid-template-columns:1fr}
  .calc__form,.contacts-form{grid-template-columns:1fr}
  .calc__form .btn{min-width:0;width:100%}
  .service-detail__image{min-height:320px}
  .footer__bottom .container{gap:14px;flex-direction:column}
}
@media (max-width:620px){
  .section{padding:64px 0}
  .logo__full{width:150px}
  .hero{min-height:610px}
  .hero h1{font-size:34px}
  .hero p{font-size:16px}
  .hero__actions{flex-direction:column;align-items:flex-start}
  .btn{width:100%;padding:0 20px}
  .hero__actions .btn{width:auto}
  .service-card{padding:28px;min-height:auto}
  .news__track{grid-template-columns:repeat(6,285px)}
  .modal__body{padding:32px 22px}
  .stats{grid-template-columns:1fr}
}

/* === Fixes: original logo, stable desktop header, no menu overflow === */
.header__inner{
  width:min(1320px,calc(100% - 48px));
  min-height:104px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:14px 0;
}
.logo{
  flex:0 0 166px;
  min-width:166px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.logo__img{
  display:block;
  width:148px;
  height:auto;
  max-height:92px;
  object-fit:contain;
}
.logo__badge,
.logo__full,
.logo__mark,
.logo__text{display:none!important;}
.nav{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-wrap:nowrap;
  justify-content:center;
  align-items:center;
  gap:14px;
  font-size:13px;
  line-height:1.2;
  white-space:nowrap;
}
.nav a{display:inline-flex;align-items:center;min-height:38px;white-space:nowrap;}
.header__contacts{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:8px;}
.header__contacts .btn{min-height:40px;padding:0 17px;font-size:13px;}
.phone{font-size:15px;}
.logo--footer{min-width:160px;flex-basis:160px;}
.logo--footer .logo__img{width:146px;}
.footer .logo__img{filter:none;}
@media (max-width:1280px){
  .header__inner{width:min(100% - 36px, 1200px);gap:13px;}
  .logo{flex-basis:150px;min-width:150px;}
  .logo__img{width:132px;}
  .nav{gap:9px;font-size:12px;}
  .header__contacts .btn{padding:0 13px;font-size:12px;}
  .phone{font-size:14px;}
}
@media (max-width:1120px){
  .burger{display:block;margin-left:auto;}
  .header__contacts{display:none;}
  .nav{
    position:fixed;
    top:84px;left:16px;right:16px;
    display:none;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    background:rgba(22,24,34,.98);
    padding:22px;
    border-radius:18px;
    box-shadow:0 22px 60px rgba(0,0,0,.25);
    white-space:normal;
    gap:12px;
    font-size:15px;
  }
  .nav.is-open{display:flex;}
  .header__inner{min-height:84px;padding:10px 0;}
  .logo{flex-basis:132px;min-width:132px;}
  .logo__img{width:118px;max-height:70px;}
}
@media (max-width:620px){
  .header__inner{width:calc(100% - 28px);}
  .logo{flex-basis:122px;min-width:122px;}
  .logo__img{width:110px;}
}


/* ===== Fix v3: header/logo/menu ===== */
.header__inner{
  min-height:104px;
  grid-template-columns:132px minmax(0,1fr) auto;
  gap:24px;
  padding:14px 0;
}
.logo{
  width:132px;
  min-width:132px;
  max-width:132px;
}
.logo__img{
  display:block;
  width:132px;
  max-width:132px;
  height:auto;
  object-fit:contain;
}
.logo--footer{
  width:150px;
  min-width:150px;
  max-width:150px;
}
.logo--footer .logo__img{
  width:150px;
  max-width:150px;
}
.nav{
  min-width:0;
  flex-wrap:nowrap;
  justify-content:flex-start;
  gap:18px;
  font-size:15px;
  line-height:1.2;
}
.nav a{
  white-space:nowrap;
  word-break:normal;
  flex:0 0 auto;
}
.header__contacts{
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  white-space:nowrap;
}
.header__contacts .btn{
  white-space:normal;
  width:auto;
  min-width:118px;
  padding-left:20px;
  padding-right:20px;
  line-height:1.15;
}
.phone{
  font-size:16px;
  line-height:1;
}

@media (max-width:1240px){
  .header__inner{
    grid-template-columns:124px minmax(0,1fr) auto;
    gap:18px;
  }
  .logo,.logo__img{
    width:124px;
    min-width:124px;
    max-width:124px;
  }
  .nav{
    gap:14px;
    font-size:14px;
  }
  .header__contacts .btn{
    min-width:108px;
    padding-left:18px;
    padding-right:18px;
    font-size:13px;
  }
}

@media (max-width:1080px){
  .header__inner{
    min-height:88px;
    display:flex;
  }
  .logo,.logo__img{
    width:112px;
    min-width:112px;
    max-width:112px;
  }
  .burger{
    display:block;
    margin-left:auto;
  }
  .header__contacts{
    display:none;
  }
  .nav{
    position:fixed;
    top:88px;
    left:16px;
    right:16px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:rgba(22,24,34,.98);
    padding:18px;
    border-radius:18px;
    box-shadow:0 22px 60px rgba(0,0,0,.25);
    font-size:16px;
  }
  .nav a{
    padding:12px 4px;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .nav a:last-child{
    border-bottom:0;
  }
  .nav.is-open{
    display:flex;
  }
  .site-header.is-menu .burger span:nth-child(1){transform:translateY(9px) rotate(45deg)}
  .site-header.is-menu .burger span:nth-child(2){opacity:0}
  .site-header.is-menu .burger span:nth-child(3){transform:translateY(-9px) rotate(-45deg)}
}

@media (max-width:620px){
  .header__inner{
    min-height:76px;
  }
  .logo,.logo__img{
    width:96px;
    min-width:96px;
    max-width:96px;
  }
  .nav{
    top:76px;
  }
}
