/* ===== Метстроймонтаж — общие стили ===== */
:root{
  --accent:#17daa3;
  --accent-dark:#12bd8c;
  --muted:#87949e;
  --dark-text:#576671;
  --heading:#3a454d;
  --light-bg:#f3f5f6;
  --tile:#eef1f2;
  --dark:#23282c;
  --white:#fff;
  --container:1200px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:"Roboto","Segoe UI",Arial,sans-serif;
  color:var(--dark-text);
  font-weight:400;
  line-height:1.6;
  background:#fff;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}

.container{max-width:var(--container);margin:0 auto;padding:0 24px}

/* кнопка */
.btn{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  font-size:13px;
  letter-spacing:.5px;
  padding:13px 30px;
  border-radius:24px;
  transition:background .2s;
  border:none;cursor:pointer;
}
.btn:hover{background:var(--accent-dark)}
.btn-ghost{
  background:transparent;border:1px solid rgba(255,255,255,.6);color:#fff;
}
.btn-ghost:hover{background:rgba(255,255,255,.12)}

/* заголовки секций */
.section{padding:80px 0}
.section-title{
  text-align:center;
  font-weight:300;
  font-size:40px;
  color:var(--muted);
  margin-bottom:14px;
  letter-spacing:.5px;
}
.section-title.dark{color:#fff}
.title-rule{
  width:60px;height:2px;background:var(--accent);
  margin:0 auto 40px;border:none;
}

/* ===== Шапка ===== */
.header{
  position:absolute;top:0;left:0;width:100%;z-index:50;
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:96px;
}
.logo{display:flex;align-items:center;gap:12px}
.logo img{height:46px;width:auto}
.logo span{
  color:#fff;font-weight:500;font-size:15px;letter-spacing:1px;
  text-transform:uppercase;
}
.nav{display:flex;align-items:center;gap:34px}
.nav a{
  color:#fff;font-size:13px;letter-spacing:1.5px;text-transform:uppercase;
  position:relative;transition:color .2s;
}
.nav a:hover{color:var(--accent)}
.nav .has-sub{position:relative}
.nav .submenu{
  position:absolute;top:100%;left:50%;transform:translateX(-50%);
  background:#fff;min-width:260px;padding:10px 0;border-radius:4px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  opacity:0;visibility:hidden;transform:translate(-50%,10px);
  transition:.2s;margin-top:14px;
}
.nav .has-sub:hover .submenu{opacity:1;visibility:visible;transform:translate(-50%,0)}
.nav .submenu a{
  display:block;color:var(--dark-text);text-transform:none;letter-spacing:0;
  font-size:14px;padding:9px 22px;
}
.nav .submenu a:hover{background:var(--light-bg);color:var(--accent)}
.nav-search{color:#fff;font-size:15px}
.burger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer}
.burger span{width:26px;height:2px;background:#fff;display:block}

/* ===== Hero ===== */
.hero{
  position:relative;min-height:660px;
  display:flex;align-items:center;justify-content:center;
  text-align:center;color:#fff;
  background-size:cover;background-position:center;
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.35));
}
.hero-content{position:relative;z-index:2;max-width:900px;padding:0 24px}
.hero h1{
  font-weight:400;font-size:54px;line-height:1.15;text-transform:uppercase;
  letter-spacing:1px;margin-bottom:18px;
}
.hero p{font-size:19px;font-weight:300;margin-bottom:30px;opacity:.95}
.hero-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:2;
  color:rgba(255,255,255,.7);font-size:34px;font-weight:300;cursor:pointer;
}
.hero-arrow.left{left:40px}
.hero-arrow.right{right:40px}
.hero-dots{
  position:absolute;bottom:46px;left:50%;transform:translateX(-50%);
  z-index:2;display:flex;gap:12px;
}
.hero-dots i{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.5);display:block}
.hero-dots i.active{background:var(--accent)}

/* ===== О компании / текстовый блок ===== */
.about{text-align:center}
.about p{
  max-width:1000px;margin:0 auto 16px;color:var(--muted);font-size:15px;
}
.about .btn{margin-top:24px}

/* ===== Преимущества (4 колонки) ===== */
.features{
  display:grid;grid-template-columns:repeat(4,1fr);gap:30px;margin-top:30px;
}
.feature{text-align:center;padding:10px}
.feature .ic{
  width:120px;height:120px;border-radius:50%;background:var(--light-bg);
  display:flex;align-items:center;justify-content:center;margin:0 auto 26px;
  color:var(--muted);transition:.25s;
}
.feature .ic svg{width:46px;height:46px}
.feature .ic img{width:46px;height:auto}
.feature.is-accent .ic{background:var(--accent);color:#fff}
.feature:hover .ic{background:var(--accent);color:#fff}
.feature.is-accent .ic img,
.feature:hover .ic img{filter:brightness(0) invert(1)}
.feature h3{font-size:21px;font-weight:400;color:#2b2b2b;margin-bottom:12px}
.feature p{font-size:13px;color:var(--muted)}

/* ===== Плитка категорий ===== */
.tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;background:#e3e8ea}
.tile{
  background:var(--tile);aspect-ratio:1/1;
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  padding:24px 18px;color:var(--muted);font-size:15px;line-height:1.4;
  transition:.2s;cursor:pointer;
}
.tile:hover,.tile.is-accent{background:var(--accent);color:#fff}
.tile.empty{cursor:default}
.tile.empty:hover{background:var(--tile)}
.tile small{display:block;font-size:12px;opacity:.85;margin-top:6px;font-weight:300}

/* ===== Тёмная фото-секция (спорт/вода/этапы) ===== */
.dark-section{
  position:relative;color:#fff;padding:90px 0;
  background-size:cover;background-position:center;
}
.dark-section::after{content:"";position:absolute;inset:0;background:rgba(15,18,20,.72)}
.dark-section > .container{position:relative;z-index:2}

/* колонки иконок с текстом */
.icon-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-top:30px}
.icon-cols.cols-4{grid-template-columns:repeat(4,1fr)}
.icon-col{text-align:center}
.icon-col .circle{
  width:120px;height:120px;border-radius:50%;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
  display:flex;align-items:center;justify-content:center;margin:0 auto 22px;
}
.icon-col .circle img{width:50px;height:auto;filter:none}
.icon-col h4{font-size:16px;font-weight:500;text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}
.icon-col p{font-size:13px;color:rgba(255,255,255,.7);font-weight:300}

/* светлый вариант колонок */
.light-cols .circle{background:var(--light-bg);border:none}
.light-cols h4{color:#2b2b2b}
.light-cols p{color:var(--muted)}

/* ===== Этапы работ ===== */
.stages{display:flex;justify-content:center;gap:0;flex-wrap:wrap;margin-top:40px}
.stage{flex:1;min-width:160px;text-align:center;position:relative;padding:0 10px}
.stage:not(:last-child)::after{
  content:"";position:absolute;top:55px;right:-50%;width:100%;height:1px;
  border-top:1px dashed rgba(255,255,255,.25);z-index:0;
}
.stage .circle{
  width:110px;height:110px;border-radius:50%;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.15);
  display:flex;align-items:center;justify-content:center;margin:0 auto 20px;
  position:relative;z-index:1;
}
.stage .circle img{width:46px}
.stage h4{font-size:14px;text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px}
.stage p{font-size:12px;color:rgba(255,255,255,.65);font-weight:300}

/* ===== Прайс ===== */
.price-cols{display:grid;grid-template-columns:1fr 1fr;gap:60px;margin-top:30px}
.price-list li{
  padding:14px 22px;color:var(--muted);font-size:14px;border-radius:24px;
}
.price-list li:nth-child(odd){background:var(--light-bg)}
.price-list li.is-accent{background:var(--accent);color:#fff}

/* ===== Галерея ===== */
.gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:0}
.gallery img{width:100%;height:100%;object-fit:cover;aspect-ratio:1/1}

/* ===== Портфолио ===== */
.portfolio{
  position:relative;color:#fff;
  background-size:cover;background-position:center;padding:120px 0;
}
.portfolio::after{content:"";position:absolute;inset:0;background:rgba(15,18,20,.55)}
.portfolio .container{position:relative;z-index:2}
.portfolio-text{max-width:560px;margin-left:auto;text-align:left}
.portfolio-text h2{font-size:46px;font-weight:300;margin-bottom:18px}
.portfolio-text p{font-size:15px;font-weight:300;margin-bottom:26px;opacity:.9}

/* карусель портфолио */
.pf-slider{position:relative;margin-top:70px;padding:0 56px}
.pf-viewport{overflow:hidden}
.pf-track{display:flex;transition:transform .45s ease}
.pf-slide{flex:0 0 33.333%;padding:0 15px;box-sizing:border-box}
.thumb{text-align:center}
.thumb img{width:100%;height:230px;object-fit:cover;border-radius:2px}
.thumb span{display:block;margin-top:16px;color:var(--accent);font-size:17px;font-weight:300}
.pf-arrow{
  position:absolute;top:calc(50% - 30px);transform:translateY(-50%);
  width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.4);
  color:#fff;font-size:24px;line-height:1;cursor:pointer;z-index:3;
  display:flex;align-items:center;justify-content:center;transition:.2s;
}
.pf-arrow:hover{background:var(--accent);border-color:var(--accent)}
.pf-arrow.prev{left:0}
.pf-arrow.next{right:0}
.pf-dots{display:flex;justify-content:center;gap:12px;margin-top:34px}
.pf-dots button{
  width:10px;height:10px;border-radius:50%;border:none;padding:0;cursor:pointer;
  background:rgba(255,255,255,.4);transition:.2s;
}
.pf-dots button.active{background:var(--accent)}

/* ===== Сертификаты ===== */
.certs{display:flex;justify-content:center;gap:40px;flex-wrap:wrap;margin-top:20px}
.certs img{width:230px;height:auto;box-shadow:0 6px 22px rgba(0,0,0,.12)}

/* ===== Контакты ===== */
.contacts{
  position:relative;color:#fff;
  background-size:cover;background-position:center;padding:100px 0 110px;
}
.contacts::after{content:"";position:absolute;inset:0;background:rgba(15,18,20,.74)}
.contacts .container{position:relative;z-index:2}
.contact-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:50px}
.contact-col{text-align:center}
.contact-col .circle{
  width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.05);
  display:flex;align-items:center;justify-content:center;margin:0 auto 26px;
}
.contact-col .circle img{width:46px}
.contact-col a,.contact-col p{color:rgba(255,255,255,.85);font-size:15px;font-weight:300}
.contact-col a:hover{color:var(--accent)}

/* ===== Футер ===== */
.footer{background:#1b1f22;color:rgba(255,255,255,.55);padding:26px 0;font-size:13px}
.footer .container{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}
.footer a:hover{color:var(--accent)}

/* ===== Адаптив ===== */
@media (max-width:992px){
  .features{grid-template-columns:repeat(2,1fr)}
  .tiles{grid-template-columns:repeat(3,1fr)}
  .gallery{grid-template-columns:repeat(3,1fr)}
  .icon-cols,.icon-cols.cols-4{grid-template-columns:1fr;gap:34px}
  .price-cols{grid-template-columns:1fr;gap:24px}
  .stage{flex:0 0 50%;margin-bottom:34px}
  .stage::after{display:none}
  .hero h1{font-size:40px}
  .section-title{font-size:32px}
  .portfolio-text{margin:0 auto;text-align:center}
  .pf-slide{flex:0 0 50%}
}
@media (max-width:680px){
  .nav{
    position:absolute;top:96px;right:24px;left:24px;flex-direction:column;
    align-items:flex-start;gap:0;background:#23282c;border-radius:6px;padding:10px 0;
    display:none;
  }
  .nav.open{display:flex}
  .nav a{padding:12px 22px;width:100%}
  .nav .submenu{position:static;transform:none;opacity:1;visibility:visible;
    box-shadow:none;background:#2c3338;margin:0;padding:0;min-width:auto}
  .nav .submenu a{color:rgba(255,255,255,.8)}
  .nav .has-sub:hover .submenu{transform:none}
  .nav-search{display:none}
  .burger{display:flex}
  .features,.gallery,.contact-cols{grid-template-columns:1fr}
  .tiles{grid-template-columns:repeat(2,1fr);gap:6px}
  .pf-slide{flex:0 0 100%}
  .pf-slider{padding:0 44px}
  .certs img{width:46%}
  .hero h1{font-size:30px}
  .hero p{font-size:16px}
  .section{padding:54px 0}
  .portfolio-text h2{font-size:34px}
}
