:root{
  --red:#e30613;
  --red-dark:#b9040e;
  --ink:#101114;
  --muted:#5f646d;
  --line:#e7e8eb;
  --paper:#ffffff;
  --soft:#f5f6f8;
  --steel:#264653;
  --shadow:0 18px 42px rgba(16,17,20,.12);
  --wrap:min(1180px,calc(100% - 40px));
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:var(--paper);
  text-rendering:optimizeLegibility;
}
body.menu-open{overflow:hidden}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}

.topbar{
  position:relative;
  background:var(--ink);
  color:#fff;
  border-bottom:3px solid var(--red);
  font-size:14px;
}
.topbar__inner{
  width:var(--wrap);
  min-height:38px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:28px;
}
.topbar__inner a,.topbar__inner span{color:#f3f4f6}
.header{
  height:94px;
  background:#fff;
  display:flex;
  align-items:center;
  gap:30px;
  padding:0 max(20px,calc((100vw - 1180px)/2));
  box-shadow:0 10px 30px rgba(16,17,20,.08);
  position:sticky;
  top:0;
  z-index:30;
}
.logo img{width:168px}
.header nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:4px;
  text-transform:uppercase;
  font-weight:900;
  font-size:12px;
  letter-spacing:0;
}
.header nav a{
  min-height:44px;
  display:flex;
  align-items:center;
  padding:0 13px;
  border-radius:6px;
  color:#30343a;
}
.header nav a:hover,.header nav a.active{
  color:var(--red);
  background:#fff1f2;
}
.header-btn{
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--red);
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
  padding:0 20px;
  border-radius:6px;
  font-size:12px;
  white-space:nowrap;
  box-shadow:0 12px 22px rgba(227,6,19,.25);
}
.hamburger{
  display:none;
  width:44px;
  height:44px;
  border:0;
  border-radius:6px;
  background:var(--red);
  padding:11px;
}
.hamburger span{
  display:block;
  height:2px;
  background:#fff;
  margin:5px 0;
}

.hero{
  position:relative;
  min-height:660px;
  overflow:hidden;
  background:var(--ink);
}
.hero__media{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(16,17,20,.94) 0%,rgba(16,17,20,.76) 43%,rgba(16,17,20,.24) 100%),
    url("assets/images/hero-house.jpg") center right/cover no-repeat;
  transform:scale(1.01);
}
.hero__media::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:12px;
  background:linear-gradient(90deg,var(--red),#fff0);
}
.hero__content{
  position:relative;
  z-index:1;
  width:var(--wrap);
  min-height:660px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.24fr) minmax(330px,.76fr);
  gap:48px;
  align-items:center;
  padding:48px 0;
}
.hero__copy{max-width:760px}
.eyebrow,.lead__tag,.bottom small{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  color:var(--red);
  font-weight:900;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:0;
}
.hero .eyebrow{
  color:#fff;
  background:var(--red);
  padding:0 12px;
  border-radius:4px;
}
.hero h1{
  color:#fff;
  font-size:68px;
  line-height:1.03;
  margin:22px 0 20px;
  letter-spacing:0;
  max-width:820px;
}
.hero p{
  color:#eef0f3;
  font-size:20px;
  line-height:1.55;
  max-width:720px;
  margin:0;
}
.hero__actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:32px;
}
.btn{
  min-height:50px;
  border:0;
  border-radius:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 22px;
  font-weight:900;
  text-transform:uppercase;
  font-size:13px;
  cursor:pointer;
  transition:transform .2s ease,background .2s ease,color .2s ease,border-color .2s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn--primary{
  background:var(--red);
  color:#fff;
  box-shadow:0 14px 26px rgba(227,6,19,.24);
}
.btn--primary:hover{background:var(--red-dark)}
.btn--ghost{
  color:#fff;
  border:1px solid rgba(255,255,255,.42);
  background:rgba(255,255,255,.08);
}
.btn--ghost:hover{background:#fff;color:var(--ink)}
.lead{
  background:rgba(255,255,255,.96);
  color:var(--ink);
  padding:30px;
  border-radius:8px;
  box-shadow:var(--shadow);
  border-top:5px solid var(--red);
}
.lead h2{
  margin:8px 0 22px;
  font-size:28px;
  line-height:1.15;
}
.lead label{
  display:block;
  margin-bottom:12px;
}
.lead label span,.search span{
  display:block;
  margin-bottom:7px;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  color:#343941;
}
.lead input,.lead textarea,.search input{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  border-radius:6px;
  padding:0 14px;
  outline:none;
}
.lead input,.search input{height:46px}
.lead textarea{
  min-height:98px;
  padding-top:12px;
  resize:vertical;
}
.lead input:focus,.lead textarea:focus,.search input:focus{
  border-color:var(--red);
  box-shadow:0 0 0 3px rgba(227,6,19,.12);
}
.lead .btn{width:100%;margin-top:4px}
.form-status{
  min-height:22px;
  margin:12px 0 0;
  color:var(--steel);
  font-size:14px;
  font-weight:700;
}

.benefits{
  width:var(--wrap);
  margin:-42px auto 0;
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.benefits article{
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:22px;
  box-shadow:0 12px 28px rgba(16,17,20,.1);
}
.benefits span{
  color:var(--red);
  font-weight:900;
  font-size:13px;
}
.benefits h2{
  margin:10px 0 8px;
  font-size:18px;
}
.benefits p{
  margin:0;
  color:var(--muted);
  line-height:1.45;
  font-size:14px;
}

.section{
  padding:82px 0;
}
.section__head{
  width:var(--wrap);
  margin:0 auto 36px;
  text-align:center;
}
.section__head h2{
  margin:10px auto 12px;
  max-width:760px;
  font-size:42px;
  line-height:1.1;
}
.section__head p{
  margin:0 auto;
  max-width:830px;
  color:var(--muted);
  font-size:17px;
  line-height:1.65;
}
.section__head::after{
  content:"";
  display:block;
  width:64px;
  height:4px;
  background:var(--red);
  margin:24px auto 0;
  border-radius:999px;
}

.service-grid,.producer-grid,.catalog-grid{
  width:var(--wrap);
  margin:0 auto;
  display:grid;
  gap:18px;
}
.service-grid{
  grid-template-columns:repeat(3,1fr);
}
.service-grid article,.producer-grid article,.catalog-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(16,17,20,.07);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.service-grid article:hover,.producer-grid article:hover,.catalog-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
  border-color:#f2b5ba;
}
.service-grid img{
  width:100%;
  height:132px;
  object-fit:cover;
  background:var(--soft);
}
.service-grid h3,.producer-grid h3{
  margin:20px 20px 8px;
  font-size:18px;
  line-height:1.25;
}
.service-grid p,.producer-grid p{
  margin:0 20px 22px;
  color:var(--muted);
  line-height:1.55;
}

.guttering{
  background:
    linear-gradient(115deg,rgba(16,17,20,.96),rgba(16,17,20,.92)),
    url("assets/images/orynnowanie.svg") right center/520px no-repeat;
  color:#fff;
  padding:82px max(20px,calc((100vw - 1180px)/2));
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);
  gap:48px;
  align-items:center;
}
.guttering h2{
  margin:12px 0 18px;
  font-size:46px;
  line-height:1.08;
  max-width:780px;
}
.guttering p{
  margin:0;
  color:#e8eaee;
  line-height:1.65;
  font-size:17px;
  max-width:760px;
}
.guttering ul{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  padding:0;
  margin:28px 0;
}
.guttering li{
  position:relative;
  padding-left:28px;
  color:#f5f6f8;
  line-height:1.45;
}
.guttering li::before{
  content:"";
  position:absolute;
  left:0;
  top:.32em;
  width:16px;
  height:16px;
  background:var(--red);
  border-radius:50%;
  box-shadow:inset 0 0 0 5px #fff;
}
.guttering__steps{
  background:#fff;
  color:var(--ink);
  border-radius:8px;
  padding:30px;
  border-left:6px solid var(--red);
  box-shadow:var(--shadow);
}
.guttering__steps h3{
  margin:0 0 20px;
  font-size:26px;
}
.guttering__steps ol{
  list-style:none;
  counter-reset:steps;
  padding:0;
  margin:0;
  display:grid;
  gap:14px;
}
.guttering__steps li{
  counter-increment:steps;
  display:grid;
  grid-template-columns:44px 1fr;
  column-gap:14px;
  align-items:start;
}
.guttering__steps li::before{
  content:counter(steps);
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#fff1f2;
  color:var(--red);
  font-weight:900;
}
.guttering__steps b{
  display:block;
  margin-bottom:3px;
}
.guttering__steps span{
  color:var(--muted);
  line-height:1.45;
}

.producers{background:#fff}
.producer-grid{
  grid-template-columns:repeat(4,1fr);
}
.producer-grid article{
  min-height:250px;
  display:flex;
  flex-direction:column;
}
.producer-grid img{
  width:100%;
  height:94px;
  object-fit:contain;
  padding:18px 24px;
  background:var(--soft);
}
.producer-grid h3{
  margin-top:18px;
  font-size:16px;
}
.producer-grid article > a{
  min-height:40px;
  margin:auto 20px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:6px;
  background:var(--ink);
  color:#fff;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.producer-grid article > a:hover{
  background:var(--red);
}

.catalog{
  background:var(--soft);
}
.filters{
  width:var(--wrap);
  margin:0 auto 28px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}
.filters button{
  height:44px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:#262a30;
  padding:0 16px;
  font-weight:900;
  cursor:pointer;
}
.filters button.active,.filters button:hover{
  background:var(--red);
  color:#fff;
  border-color:var(--red);
}
.search{
  min-width:min(330px,100%);
}
.catalog-grid{
  grid-template-columns:repeat(3,1fr);
}
.catalog-card{
  display:grid;
  grid-template-columns:116px minmax(0,1fr);
  min-height:212px;
}
.catalog-card img{
  width:116px;
  height:100%;
  min-height:212px;
  object-fit:contain;
  padding:18px;
  background:#fff;
  border-right:1px solid var(--line);
}
.catalog-card div{
  padding:22px;
  display:flex;
  flex-direction:column;
}
.catalog-card small{
  color:var(--red);
  font-weight:900;
  text-transform:uppercase;
  font-size:12px;
}
.catalog-card h3{
  margin:8px 0 10px;
  font-size:21px;
  line-height:1.2;
}
.catalog-card p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.5;
}
.catalog-card a{
  margin-top:auto;
  align-self:flex-start;
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--ink);
  color:#fff;
  border-radius:6px;
  padding:0 14px;
  font-weight:900;
  text-transform:uppercase;
  font-size:12px;
}
.catalog-card a:hover{background:var(--red)}
.hidden{display:none!important}
.empty-state{
  width:var(--wrap);
  margin:22px auto 0;
  padding:20px;
  text-align:center;
  border:1px dashed #c9ccd1;
  border-radius:8px;
  color:var(--muted);
  background:#fff;
}

.bottom{
  background:
    linear-gradient(105deg,var(--ink) 0%,var(--ink) 72%,var(--red) 72%,var(--red) 100%);
  color:#fff;
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(210px,.58fr) minmax(230px,.7fr) minmax(140px,.42fr);
  gap:18px;
  align-items:center;
  padding:34px max(20px,calc((100vw - 1180px)/2));
}
.bottom small{color:#ffadb4}
.bottom h2{
  margin:8px 0 8px;
  font-size:30px;
  line-height:1.12;
}
.bottom p{
  margin:0;
  color:#e4e7ec;
  line-height:1.55;
}
.contact-box{
  min-height:98px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:8px;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.contact-box span{
  color:#ffadb4;
  font-weight:900;
  text-transform:uppercase;
  font-size:12px;
  margin-bottom:7px;
}
.contact-box b{
  font-size:20px;
  line-height:1.25;
}
.bottom img{
  width:144px;
  background:#fff;
  border-radius:8px;
  padding:8px;
  justify-self:end;
}

footer{
  background:#060607;
  color:#b8bcc4;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  text-align:center;
  padding:16px 20px;
  font-size:13px;
}

@media(max-width:1120px){
  .topbar{display:none}
  .header{
    height:82px;
    padding:0 20px;
  }
  .logo img{width:142px}
  .hamburger{display:block;margin-left:auto}
  .header nav{
    position:fixed;
    top:82px;
    left:20px;
    right:20px;
    display:none;
    margin:0;
    padding:14px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:8px;
    box-shadow:var(--shadow);
    flex-direction:column;
    align-items:stretch;
    gap:4px;
  }
  .header nav.open{display:flex}
  .header nav a{justify-content:center}
  .header-btn{display:none}
  .hero,.hero__content{min-height:auto}
  .hero__content{
    grid-template-columns:1fr;
    padding:52px 0 70px;
  }
  .hero h1{
    font-size:54px;
  }
  .section__head h2{
    font-size:38px;
  }
  .guttering h2{
    font-size:40px;
  }
  .hero__media{
    background:
      linear-gradient(90deg,rgba(16,17,20,.96),rgba(16,17,20,.72)),
      url("assets/images/hero-house.jpg") center/cover no-repeat;
  }
  .benefits{
    margin-top:-34px;
    grid-template-columns:repeat(2,1fr);
  }
  .service-grid,.catalog-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .producer-grid{
    grid-template-columns:repeat(3,1fr);
  }
  .guttering{
    grid-template-columns:1fr;
  }
  .bottom{
    grid-template-columns:1fr 1fr;
    background:var(--ink);
  }
  .bottom img{
    justify-self:start;
  }
}

@media(max-width:720px){
  :root{--wrap:calc(100% - 32px)}
  .header{
    height:76px;
    padding:0 16px;
  }
  .logo img{width:128px}
  .header nav{
    top:76px;
    left:16px;
    right:16px;
  }
  .hero__content{
    padding:40px 0 58px;
    gap:28px;
  }
  .hero h1{
    font-size:40px;
  }
  .hero p{
    font-size:17px;
  }
  .hero__actions .btn{
    width:100%;
  }
  .benefits,.service-grid,.producer-grid,.catalog-grid{
    grid-template-columns:1fr;
  }
  .lead{
    padding:22px;
  }
  .section{
    padding:60px 0;
  }
  .section__head h2{
    font-size:32px;
  }
  .guttering{
    padding:60px 16px;
  }
  .guttering h2{
    font-size:34px;
  }
  .guttering ul{
    grid-template-columns:1fr;
  }
  .filters{
    justify-content:flex-start;
  }
  .filters button{
    flex:1 1 calc(50% - 10px);
  }
  .search{
    width:100%;
  }
  .catalog-card{
    grid-template-columns:92px minmax(0,1fr);
    min-height:0;
  }
  .catalog-card img{
    width:92px;
    min-height:190px;
    padding:12px;
  }
  .catalog-card div{
    padding:18px;
  }
  .catalog-card h3{
    font-size:19px;
  }
  .catalog-card a{
    width:100%;
  }
  .bottom{
    grid-template-columns:1fr;
    padding:32px 16px;
  }
  .bottom h2{
    font-size:26px;
  }
  .bottom img{
    display:none;
  }
  footer{
    align-items:flex-start;
    flex-direction:column;
    text-align:left;
  }
}

@media(max-width:420px){
  .hero h1{font-size:34px}
  .filters button{flex-basis:100%}
  .catalog-card{
    grid-template-columns:1fr;
  }
  .catalog-card img{
    width:100%;
    height:110px;
    min-height:110px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
}
