/* СТРОЙГОСТ — страница проекта. Стили в скоупе .sg-p-page, без ресетов и правил на голые теги.
   Шрифты берутся из main.css (@font-face "SG Montserrat" / "SG Caveat"). */
.sg-p-page{margin:0;font-family:"SG Montserrat",Arial,sans-serif;color:#2b2b29;background:#f3f2ee;-webkit-font-smoothing:antialiased;line-height:1.5;}
.sg-p-page :where(*){box-sizing:border-box}
.sg-p-page :where(img){display:block;max-width:100%}
.sg-p-page :where(a){text-decoration:none;color:#2f7d3e}
.sg-p-page :where(a:hover){color:#22602f}
.sg-p-page :where(h1,h2,h3,p){margin:0}
/* Шаблон сайта задаёт color и font-family для h1..h6 голым тегом и перебивает
   наследование — возвращаем наследование от родителя. Из-за font-family
   заголовки уезжали на шрифт шаблона, а текст оставался на нашем.
   Инлайновые стили по-прежнему главнее.
   :not(.sg-page *) — важно: блоки, перенесённые с главной, лежат внутри
   .sg-page и уже защищены main.css. Без исключения эта броня перебивала
   бы их собственные цвета (заголовки теряли зелёный, надписи на белой
   карточке формы становились белыми на белом). */
.sg-p-page h1:not(.sg-page *),.sg-p-page h2:not(.sg-page *),.sg-p-page h3:not(.sg-page *),
.sg-p-page h4:not(.sg-page *),.sg-p-page h5:not(.sg-page *),.sg-p-page h6:not(.sg-page *){color:inherit;font-family:inherit}
.sg-p-page p:not(.sg-page *),.sg-p-page li:not(.sg-page *),.sg-p-page b:not(.sg-page *),
.sg-p-page strong:not(.sg-page *),.sg-p-page span:not(.sg-page *){color:inherit}
.sg-p-page :where(button,input,textarea){font-family:inherit}

  .sg-p-wrap{max-width:1200px;margin:0 auto;padding-left:24px;padding-right:24px;}
  .sg-p-script{font-family:"SG Caveat",cursive;font-weight:700;}
  .sg-p-btn{display:inline-block;background:#2f7d3e;color:#fff;font-weight:800;border:none;border-radius:12px;cursor:pointer;box-shadow:0 10px 22px rgba(47,125,62,.32);}

  /* HERO */
  .sg-p-hero{position:relative;min-height:660px;display:flex;align-items:flex-end;background:#c9d3da center 42%/cover no-repeat;background-image:url('../project/hero.webp');}
  .sg-p-hero-veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,28,18,.5) 0%,rgba(15,28,18,.05) 30%,rgba(15,28,18,.12) 60%,rgba(15,28,18,.72) 100%);}
  .sg-p-hero-inner{position:relative;max-width:1200px;margin:0 auto;padding:64px 24px 56px;width:100%;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:32px;}
  .sg-p-hero-txt{max-width:640px;color:#fff;}
  .sg-p-hero-card{background:#fff;border-radius:20px;padding:26px 28px;min-width:280px;box-shadow:0 24px 60px rgba(10,20,12,.35);}

  /* COMPARE */

  /* CALCULATOR */
  .sg-p-opt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;}
  .sg-p-opt{cursor:pointer;width:100%;background:#fff;border:2px solid #e4e4de;border-radius:14px;padding:16px 18px;transition:border-color .15s,box-shadow .15s;text-align:left;}
  .sg-p-opt:hover{border-color:#bcd0b3;}
  .sg-p-opt.sg-p-on{border-color:#2f7d3e;box-shadow:0 8px 20px rgba(47,125,62,.14);}
  .sg-p-opt-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
  .sg-p-opt-name{font-size:14px;font-weight:700;line-height:1.3;}
  .sg-p-opt-box{flex:none;width:22px;height:22px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:900;color:#fff;background:transparent;border:2px solid #cfcfc8;}
  .sg-p-opt.sg-p-on .sg-p-opt-box{background:#2f7d3e;border-color:#2f7d3e;}
  .sg-p-opt-price{font-size:14px;font-weight:800;color:#2f7d3e;margin-top:10px;}
  .sg-p-calc-bar{position:sticky;bottom:16px;z-index:5;background:#22602f;color:#fff;border-radius:20px;padding:clamp(18px,2.2vw,24px) clamp(22px,3vw,32px);box-shadow:0 18px 44px rgba(34,96,47,.28);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px 32px;}
  .sg-p-calc-sums{display:flex;flex-wrap:wrap;gap:14px 28px;align-items:flex-end;}
  .sg-p-calc-op{font-size:22px;font-weight:700;color:#9bc47e;line-height:1;align-self:center;}
  .sg-p-calc-cta{display:flex;flex-direction:column;align-items:stretch;gap:6px;flex:0 0 auto;}

  /* GALLERY */
  .sg-p-gal{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:clamp(28px,4vw,56px);align-items:start;}
  .sg-p-gal-list{display:flex;flex-direction:column;gap:14px;}
  .sg-p-gal-li{position:relative;padding-left:22px;font-size:15px;line-height:1.55;color:#52524c;}
  .sg-p-gal-li::before{content:"";position:absolute;left:0;top:7px;width:9px;height:9px;border-radius:50%;background:#7cba3f;}
  .sg-p-gal-li b{color:#22602f;font-weight:800;}
  .sg-p-gal-media{display:flex;flex-direction:column;gap:12px;}
  .sg-p-gal-main{position:relative;aspect-ratio:4/3;border-radius:18px;overflow:hidden;background:#dfe2dc;box-shadow:0 18px 44px rgba(20,30,22,.18);}
  .sg-p-gal-main img{width:100%;height:100%;object-fit:cover;}
  .sg-p-gal-cap{position:absolute;left:0;right:0;bottom:0;padding:34px 20px 16px;background:linear-gradient(to top,rgba(12,24,14,.82),transparent);color:#fff;font-size:14px;font-weight:600;line-height:1.4;}
  .sg-p-gal-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
  .sg-p-gal-t{position:relative;padding:0;border:none;border-radius:12px;overflow:hidden;aspect-ratio:4/3;cursor:pointer;background:#dfe2dc;box-shadow:0 6px 16px rgba(0,0,0,.09);outline:3px solid transparent;outline-offset:0;transition:outline-color .18s;}
  .sg-p-gal-t img{width:100%;height:100%;object-fit:cover;transition:transform .35s;}
  .sg-p-gal-t:hover img{transform:scale(1.07);}
  .sg-p-gal-t.sg-p-on{outline-color:#2f7d3e;}
  .sg-p-gal-t:focus-visible{outline-color:#7cba3f;}
  .sg-p-gal-plus{position:absolute;right:7px;bottom:6px;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.92);color:#22602f;font-size:15px;font-weight:800;line-height:21px;text-align:center;box-shadow:0 3px 8px rgba(0,0,0,.2);}
  .sg-p-gal-t.sg-p-on .sg-p-gal-plus{background:#2f7d3e;color:#fff;}
  @media (max-width:900px){
    .sg-p-gal{grid-template-columns:minmax(0,1fr);}
    .sg-p-gal-media{grid-row:1;}
  }

  /* ARTICLES */
  .sg-p-art-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:18px;}
  .sg-p-art{display:flex;flex-direction:column;background:#f7f6f2;border:1px solid #ececea;border-radius:18px;padding:26px 26px 24px;transition:box-shadow .18s,transform .18s;}
  .sg-p-art:hover{box-shadow:0 16px 36px rgba(34,96,47,.12);transform:translateY(-3px);}

  /* FAQ */
  .sg-p-faq{background:#fff;border:1px solid #ececea;border-radius:14px;overflow:hidden;}
  .sg-p-faq summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;cursor:pointer;font-size:16px;font-weight:700;color:#2b2b29;}
  .sg-p-faq summary::-webkit-details-marker{display:none;}
  .sg-p-faq summary::after{content:"+";font-size:24px;font-weight:400;color:#2f7d3e;flex:none;}
  .sg-p-faq[open] summary::after{content:"–";}
  .sg-p-faq-a{padding:0 22px 22px;font-size:15px;line-height:1.6;color:#52524c;}

  /* FORM */
  .sg-p-field{width:100%;padding:14px 16px;border:1.5px solid #dcdcd6;border-radius:12px;font-size:15px;margin-bottom:16px;outline:none;}
  .sg-p-field:focus{border-color:#2f7d3e;}
  .sg-p-form-label{display:block;font-size:13px;font-weight:700;color:#52524c;margin-bottom:6px;}

  @media (max-width:720px){
    .sg-p-hero{min-height:0;}
    .sg-p-hero-inner{padding:44px 20px 40px;}
    .sg-p-hero-card{width:100%;min-width:0;}
    .sg-p-calc-bar{gap:16px;}
    .sg-p-calc-cta{flex:1 1 100%;}
    .sg-p-calc-cta .sg-p-btn{width:100%;}
  }
  @media (max-width:560px){
    .sg-p-wrap{padding-left:16px;padding-right:16px;}
    .sg-p-promo{font-size:12px!important;padding:8px 14px!important;}
  }
  @media (max-width:430px){
  }


  .sg-p-kit-item{display:grid;grid-template-columns:18px 190px minmax(0,1fr);column-gap:14px;row-gap:2px;align-items:baseline;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.1);}
  .sg-p-kit-item::before{content:"";grid-column:1;width:18px;height:18px;align-self:start;margin-top:1px;border-radius:50%;background:#7cba3f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.4l3.2 3.1L17 8.6' fill='none' stroke='%2311340f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;}
  .sg-p-kit-t{grid-column:2;font-size:14px;font-weight:700;line-height:1.35;}
  .sg-p-kit-d{grid-column:3;font-size:13px;line-height:1.35;color:#bcd6ac;}
  @media (max-width:1040px){
    .sg-p-kit-item{grid-template-columns:18px minmax(0,1fr);}
    .sg-p-kit-t,.sg-p-kit-d{grid-column:2;}
  }

/* ==========================================================
   АКЦЕНТНЫЕ БЛОКИ ПРОЕКТА
   1. sg-p-wl — пирог стены: фото-разрез с метками на слоях
   2. sg-p-xl — перелинковка на другие проекты
   ========================================================== */

/* --- 1. Пирог стены -------------------------------------- */
.sg-p-wl{background:#fff;padding:clamp(56px,7vw,90px) 24px;}
.sg-p-wl-wrap{max-width:1200px;margin:0 auto;}
.sg-p-wl-head{max-width:720px;}
.sg-p-wl-eyebrow{font-size:26px;color:#2f7d3e;}
.sg-p-wl-h{font-size:clamp(28px,3.8vw,44px);font-weight:900;line-height:1.06;margin:4px 0 0;
  letter-spacing:-.8px;color:#22602f;}
.sg-p-wl-lead{font-size:16px;line-height:1.6;color:#52524c;margin:14px 0 0;}
.sg-p-wl-body{margin-top:28px;}

/* Схема с выносками. Три колонки в процентах от блока:
   подписи 0–25 %, картинка 30–70 %, подписи 75–100 %.
   Высоту блоку задаёт картинка, поэтому top у подписей
   и у точек считается от одной и той же величины. */
.sg-p-wl-diagram{position:relative;max-width:1000px;margin:0 auto;}
.sg-p-wl-shot{position:relative;width:40%;margin-left:30%;line-height:0;}
.sg-p-wl-shot img{display:block;width:100%;height:auto;}

.sg-p-wl-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1;}
.sg-p-wl-lines path{fill:none;stroke:#bcc6b4;stroke-width:1.5;vector-effect:non-scaling-stroke;
  transition:stroke .2s;}
.sg-p-wl-lines path.sg-p-on{stroke:#2f7d3e;stroke-width:2.5;}

.sg-p-wl-dot{position:absolute;z-index:2;width:13px;height:13px;border-radius:50%;
  background:#2f7d3e;border:2.5px solid #fff;transform:translate(-50%,-50%);
  box-shadow:0 2px 7px rgba(20,30,22,.4);transition:transform .2s,background .2s;}
.sg-p-wl-dot.sg-p-on{background:#7cba3f;transform:translate(-50%,-50%) scale(1.5);}

.sg-p-wl-cap{position:absolute;z-index:3;display:block;width:25%;padding:0;margin:0;border:0;
  background:none;font:inherit;color:inherit;cursor:pointer;transform:translateY(-50%);
  line-height:1.3;}
.sg-p-wl-cap--l{left:0;text-align:right;}
.sg-p-wl-cap--r{right:0;text-align:left;}
.sg-p-wl-cap b{display:block;font-size:15.5px;font-weight:800;color:#22602f;letter-spacing:-.2px;
  transition:color .2s;}
.sg-p-wl-cap i{display:block;font-style:normal;font-size:13px;font-weight:600;color:#8a9a82;
  margin-top:2px;}
.sg-p-wl-cap:hover b,.sg-p-wl-cap.sg-p-on b{color:#2f7d3e;text-decoration:underline;
  text-decoration-color:#7cba3f;text-underline-offset:3px;}

.sg-p-wl-note{max-width:760px;margin:26px auto 0;text-align:center;font-size:15px;line-height:1.55;
  color:#52524c;min-height:48px;}
.sg-p-wl-diagram.sg-p-dim ~ .sg-p-wl-note{color:#22602f;}

@media (max-width:900px){
  /* Выноски по бокам не помещаются: картинка во всю ширину,
     подписи под ней в две колонки, точки остаются на своих местах. */
  .sg-p-wl-lines{display:none;}
  .sg-p-wl-diagram{display:flex;flex-direction:column;align-items:stretch;}
  .sg-p-wl-shot{width:100%;margin-left:0;max-width:440px;align-self:center;}
  .sg-p-wl-cap{position:static;width:auto;transform:none;text-align:left;
    display:grid;grid-template-columns:16px 1fr;gap:4px 10px;align-items:start;
    padding:11px 12px;border-radius:12px;}
  .sg-p-wl-cap::before{content:"";grid-row:1 / span 2;width:12px;height:12px;margin-top:4px;
    border-radius:50%;background:#2f7d3e;}
  .sg-p-wl-cap.sg-p-on{background:#f3f7ed;}
  .sg-p-wl-cap.sg-p-on::before{background:#7cba3f;}
  /* В DOM подписи идут слева направо (2,3,1,5 и 4,6,7) —
     на мобильном выстраиваем их по порядку слоёв через order. */
  .sg-p-wl-shot{order:0;margin-bottom:16px;}
  .sg-p-wl-cap[data-l="1"]{order:1;}
  .sg-p-wl-cap[data-l="2"]{order:2;}
  .sg-p-wl-cap[data-l="3"]{order:3;}
  .sg-p-wl-cap[data-l="4"]{order:4;}
  .sg-p-wl-cap[data-l="5"]{order:5;}
  .sg-p-wl-cap[data-l="6"]{order:6;}
  .sg-p-wl-cap[data-l="7"]{order:7;}
  .sg-p-wl-note{text-align:left;margin-top:16px;min-height:0;}
}

/* --- 2. Перелинковка ------------------------------------- */
.sg-p-xl{background:#f3f2ee;padding:clamp(56px,7vw,90px) 24px;}
.sg-p-xl-wrap{max-width:1200px;margin:0 auto;}
.sg-p-xl-head{display:flex;flex-wrap:wrap;gap:20px 40px;align-items:flex-end;justify-content:space-between;}
.sg-p-xl-eyebrow{font-size:26px;color:#2f7d3e;}
.sg-p-xl-h{font-size:clamp(28px,3.8vw,44px);font-weight:900;line-height:1.06;margin:4px 0 0;
  letter-spacing:-.8px;color:#22602f;}
.sg-p-xl-side{flex:0 1 380px;font-size:15px;line-height:1.55;color:#6c6c66;margin:0;}
.sg-p-xl-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:28px;}
.sg-p-xl-card{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #e6e4dd;
  border-radius:18px;padding:20px;text-decoration:none;color:inherit;
  transition:border-color .2s,box-shadow .2s,transform .2s;}
a.sg-p-xl-card:hover{border-color:#7cba3f;box-shadow:0 14px 32px rgba(47,125,62,.18);transform:translateY(-3px);}
.sg-p-xl-card--now{background:#eef6e3;border-color:#cfe2b6;cursor:default;}
.sg-p-xl-card--all{background:#22602f;border-color:#22602f;color:#fff;}
.sg-p-xl-tag{align-self:flex-start;background:#eaf3e0;color:#2f7d3e;font-size:11px;font-weight:800;
  letter-spacing:1px;text-transform:uppercase;padding:5px 11px;border-radius:7px;}
.sg-p-xl-tag--now{background:#7cba3f;color:#11340f;}
.sg-p-xl-card--all .sg-p-xl-tag{background:rgba(255,255,255,.16);color:#d6e8a6;}
.sg-p-xl-name{font-size:21px;font-weight:900;color:#22602f;letter-spacing:-.4px;margin-top:4px;}
.sg-p-xl-card--all .sg-p-xl-name{color:#fff;}
.sg-p-xl-meta{font-size:13px;font-weight:700;color:#6c6c66;}
.sg-p-xl-card--all .sg-p-xl-meta{color:#cfe3c2;}
.sg-p-xl-diff{font-size:14px;line-height:1.5;color:#52524c;}
.sg-p-xl-card--all .sg-p-xl-diff{color:#cfe3c2;}
.sg-p-xl-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;
  padding-top:14px;}
.sg-p-xl-price{font-size:19px;font-weight:900;color:#2b2b29;white-space:nowrap;letter-spacing:-.4px;}
.sg-p-xl-go{font-size:13.5px;font-weight:800;color:#2f7d3e;white-space:nowrap;}
.sg-p-xl-card--all .sg-p-xl-go{color:#7cba3f;}

@media (max-width:1100px){
  .sg-p-xl-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:720px){
  /* В колоночном флексе flex-basis задаёт ВЫСОТУ: без сброса
     карточка со схемой растягивалась на 560 px пустоты. */
  /* В колоночном флексе flex-basis задаёт ВЫСОТУ: без сброса
     колонки растягивались бы на свою flex-basis пустотой. */
  .sg-p-xl-grid{grid-template-columns:1fr;}
}
