
/* Земельный капитал — UI pass 7.78
   Полноэкранная главная, карточки каталога, Акцио, подробная карточка и компактный dashboard. */

:root{
  --zk778-screen:calc(100svh - var(--zk-header-h635,88px));
  --zk778-green:#174f3c;
  --zk778-green-2:#245f49;
  --zk778-mint:#eef6f0;
  --zk778-gold:#d9a83e;
  --zk778-line:#cfe0d4;
  --zk778-ink:#173e31;
}

/* ---------------- Главная: полноэкранные смысловые экраны ---------------- */
html.zk-home778{scroll-behavior:smooth;scroll-snap-type:y proximity}
@media (min-width:900px){
  body.home58 .zk-snap635{
    scroll-snap-align:start;
    scroll-snap-stop:normal;
    box-sizing:border-box;
  }
  body.home58 .zk-opps-screen635,
  body.home58 .zk-purpose-screen635,
  body.home58 .zk-how-screen635,
  body.home58 .zk-twain-screen635{
    min-height:var(--zk778-screen)!important;
    display:flex!important;
    align-items:center!important;
    position:relative;
  }
  body.home58 .zk-opps-screen635>.container,
  body.home58 .zk-purpose-screen635>.container,
  body.home58 .zk-how-screen635>.container{
    width:100%;
  }
  body.home58 .zk-snap635.zk-reveal778{
    opacity:.54;
    transform:translateY(18px);
    transition:opacity .55s ease,transform .55s ease;
  }
  body.home58 .zk-snap635.zk-reveal778.zk-visible778{
    opacity:1;
    transform:none;
  }

  /* Первый экран: крупнее счётчики, но hero + счётчики остаются одним экраном */
  body.home58 .home-stats58 .container>div{padding-block:16px!important}
  body.home58 .home-stats58 .stat-line528{
    display:flex!important;align-items:center!important;justify-content:center!important;gap:16px!important;
  }
  body.home58 .home-stats58 .stat-line528 b{
    font-size:clamp(34px,3.1vw,54px)!important;
    line-height:1!important;letter-spacing:-.035em!important;
  }
  body.home58 .home-stats58 .stat-icon528,
  body.home58 .home-stats58 .zk-counter-icon629{
    flex:0 0 auto!important;width:46px!important;height:46px!important;
  }
  body.home58 .home-stats58 .container>div>span:last-child{
    font-size:15px!important;margin-top:8px!important;
  }

  /* Второй экран: число всегда сбоку от иконки, не за ней */
  body.home58 .opportunities-grid526>div{
    display:grid!important;
    grid-template-columns:68px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    column-gap:16px!important;
    row-gap:4px!important;
    align-items:center!important;
    min-height:116px!important;
    padding:18px 20px!important;
    overflow:hidden!important;
  }
  body.home58 .opportunities-grid526 .opp-icon534{
    grid-column:1!important;grid-row:1/3!important;
    width:58px!important;height:58px!important;
    align-self:center!important;justify-self:center!important;
    margin:0!important;position:static!important;transform:none!important;
  }
  body.home58 .opportunities-grid526>div>b{
    grid-column:2!important;grid-row:1!important;
    display:flex!important;align-items:baseline!important;gap:7px!important;
    margin:0!important;position:static!important;
    font-size:clamp(27px,2vw,38px)!important;line-height:1!important;
    white-space:nowrap!important;
  }
  body.home58 .opportunities-grid526>div>b em{
    font-size:13px!important;line-height:1.2!important;font-style:normal!important;
    font-weight:650!important;white-space:normal!important;
  }
  body.home58 .opportunities-grid526>div>span:last-child{
    grid-column:2!important;grid-row:2!important;
    font-size:13px!important;line-height:1.35!important;
    margin:0!important;align-self:start!important;
  }

  /* Третий экран: картинка заполняет высоту блока */
  body.home58 .purpose564{padding:0!important}
  body.home58 .purpose564 .container.purpose-grid564{
    width:min(94vw,1760px)!important;
    height:calc(var(--zk778-screen) - 44px)!important;
    min-height:620px!important;
    margin:auto!important;
    grid-template-columns:minmax(340px,.68fr) minmax(0,1.72fr)!important;
    border-radius:26px!important;
  }
  body.home58 .purpose564 .purpose-grid564>div{
    min-height:100%!important;height:100%!important;
  }
  body.home58 .purpose564 .purpose-copy564{
    padding:clamp(34px,4vw,76px)!important;
  }
  body.home58 .purpose564 .purpose-copy564 h2{
    font-size:clamp(34px,3.4vw,60px)!important;
    line-height:1.08!important;
  }
  body.home58 .purpose564 .purpose-hero564{
    height:100%!important;min-height:100%!important;
  }
  body.home58 .purpose564 .purpose-hero564 img{
    width:100%!important;height:100%!important;object-fit:cover!important;
  }

  /* Четвёртый экран: весь заголовок + схема помещаются в один viewport */
  body.home58 .zk-how-screen635{padding:18px 0!important}
  body.home58 .zk-how-screen635>.container{
    min-height:calc(var(--zk778-screen) - 36px)!important;
    display:grid!important;
    grid-template-rows:auto 1fr!important;
    align-content:center!important;
    gap:14px!important;
  }
  body.home58 .zk-how-screen635 .explainer-head59{
    margin-bottom:0!important;
  }
  body.home58 .zk-how-screen635 .explainer-head59 h2{
    font-size:clamp(30px,2.5vw,46px)!important;
    line-height:1.06!important;margin-bottom:12px!important;
  }
  body.home58 .zk-how-screen635 .explainer-head59 p{
    font-size:clamp(13px,.95vw,16px)!important;
    line-height:1.44!important;margin:6px 0!important;
  }
  body.home58 .zk-how-screen635 .process-flow563{
    align-self:end!important;
    gap:10px!important;
    margin-top:4px!important;
  }
  body.home58 .zk-how-screen635 .process-card563{
    padding:14px!important;min-height:245px!important;
  }
  body.home58 .zk-how-screen635 .process-picture563{height:78px!important}
  body.home58 .zk-how-screen635 .process-picture563 svg{max-height:78px!important}
  body.home58 .zk-how-screen635 .process-card563 h3{
    font-size:14px!important;line-height:1.2!important;margin:5px 0!important;
  }
  body.home58 .zk-how-screen635 .process-card563 p{
    font-size:11.5px!important;line-height:1.35!important;
  }
  body.home58 .zk-how-screen635 .flow-arrow563{font-size:26px!important}

  /* Марк Твен: экран той же высоты и более крупный портрет */
  body.home58 .twain760{
    min-height:var(--zk778-screen)!important;
    box-sizing:border-box!important;
    width:min(94vw,1760px)!important;
    margin:0 auto!important;
    padding:clamp(48px,6vw,100px)!important;
    gap:clamp(50px,6vw,110px)!important;
    justify-content:center!important;
  }
  body.home58 .twain760 img{
    width:clamp(300px,22vw,420px)!important;
    height:clamp(390px,31vw,540px)!important;
    object-fit:cover!important;
  }
  body.home58 .twain760 blockquote{
    font-size:clamp(42px,4.2vw,76px)!important;
    line-height:1.08!important;
  }
}

/* ---------------- Каталог: расчётная цена, коэффициент, сценарий ---------------- */
body.catalog688 #cards .zk-final-price778{
  position:relative!important;
  padding-top:31px!important;
  overflow:visible!important;
}
body.catalog688 #cards .zk-growth778{
  position:absolute;top:7px;right:8px;
  display:inline-flex;align-items:center;justify-content:center;
  min-height:22px;padding:3px 8px;border-radius:999px;
  background:#e6f3e9;color:#15583d;border:1px solid #b7d6c2;
  font-size:11px;font-weight:800;line-height:1;letter-spacing:.01em;
  white-space:nowrap;z-index:2;
}
body.catalog688 #cards .zk-growth778.is-neutral778{
  background:#f2f0ea;color:#6b634f;border-color:#ded8ca;
}
body.catalog688 #cards .zk-growth-note778{
  display:block;margin-top:4px;font-size:9.5px!important;line-height:1.25!important;
  color:#7b7465!important;font-weight:600!important;
}
body.catalog688 #cards .zk-price-grid778{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  align-items:stretch!important;
}
body.catalog688 #cards .zk-price-grid778>.zk-price-cell778{
  width:auto!important;min-width:0!important;max-width:none!important;
  box-sizing:border-box!important;
}
body.catalog688 #cards .zk-scenario778{
  border:1px solid #d6b968!important;
  background:linear-gradient(135deg,#fff8dc 0%,#f7ecd0 100%)!important;
  color:#5d4a18!important;border-radius:12px!important;
  box-shadow:inset 4px 0 0 #d9a83e!important;
  padding:9px 11px!important;font-weight:700!important;
}
body.catalog688 #cards .zk-scenario778::before{
  content:"Сценарий";display:block;font-size:9px;line-height:1;
  text-transform:uppercase;letter-spacing:.08em;color:#93701c;margin-bottom:4px;
}

/* ---------------- Акцио ---------------- */
#accioDeck545 .accio-close545{
  width:38px!important;height:38px!important;min-width:38px!important;
  display:inline-grid!important;place-items:center!important;
  border-radius:50%!important;border:1px solid #b8c9bf!important;
  background:#fff!important;color:#254c3c!important;
  font-size:24px!important;line-height:1!important;
  box-shadow:0 3px 12px rgba(24,71,54,.10)!important;
}
#accioDeck545 .accio-close545:hover{background:#eef6f0!important;transform:scale(1.03)}
#accioDeck545 .accio-copy778{padding-top:10px!important}
#accioDeck545 .accio-meta778{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;margin:10px 0 12px!important;
}
#accioDeck545 .accio-meta778 .accio-chip778{
  display:flex;flex-direction:column;gap:4px;
  padding:10px 12px;border:1px solid #d7e3da;border-radius:12px;
  background:#f5f8f5;min-width:0;
}
#accioDeck545 .accio-meta778 .accio-chip778 small{
  font-size:10px;color:#718178;text-transform:uppercase;letter-spacing:.04em;
}
#accioDeck545 .accio-meta778 .accio-chip778 b{
  font-size:13px;color:#173e31;line-height:1.25;overflow-wrap:anywhere;
}
#accioDeck545 .accio-lower778{
  display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(330px,.9fr)!important;
  gap:14px!important;align-items:stretch!important;margin-top:4px!important;
}
#accioDeck545 .accio-metrics545{
  align-content:start!important;margin:0!important;
}
#accioDeck545 .accio-metrics545>div{
  min-height:82px!important;padding:12px 14px!important;
}
#accioDeck545 .accio-metrics545 small{font-size:12px!important}
#accioDeck545 .accio-metrics545 b{font-size:21px!important}
#accioDeck545 .accio-decision778{
  display:grid;grid-template-rows:auto auto auto;gap:9px;
  border:1px solid #d2dfd6;border-radius:16px;padding:12px;background:#fbfdfb;
}
#accioDeck545 .accio-income545{margin:0!important;padding:14px!important}
#accioDeck545 .accio-income545 strong{font-size:clamp(27px,2.4vw,40px)!important}
#accioDeck545 .accio-scenario778{
  padding:10px 12px;border-radius:12px;background:#fff4cf;border:1px solid #e8cd7e;
  color:#604d1a;
}
#accioDeck545 .accio-scenario778>small{
  display:block;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:#94701a;margin-bottom:5px;
}
#accioDeck545 .accio-decision778>.btn{
  justify-self:stretch!important;text-align:center!important;margin:0!important;min-height:46px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
#accioDeck545 .accio-carousel766{min-height:330px!important}
#accioDeck545 .accio-visual545{min-height:330px!important}
#accioDeck545 .accio-visual545>img{width:100%!important;height:100%!important;object-fit:cover!important}

/* ---------------- Подробная карточка: левое меню + логотипы источников ---------------- */
body.lot690 #lotRoot .section-nav690 button{
  font-size:17px!important;line-height:1.25!important;
  padding:18px 14px!important;gap:12px!important;
}
body.lot690 #lotRoot .section-nav690 .nav-number774{
  font-size:13px!important;min-width:18px!important;
}
body.lot690 #lotRoot .section-nav690 button>svg{
  width:28px!important;height:28px!important;flex:0 0 28px!important;
}
body.lot690 #lotRoot .section-nav690 .source-logo778{
  width:72px!important;height:34px!important;object-fit:contain!important;flex:0 0 72px!important;
}
body.lot690 #lotRoot .section-nav690 .source-wordmark778{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:72px;height:32px;padding:0 6px;border-radius:6px;
  font-size:9px;font-weight:800;line-height:1;text-align:center;
}
body.lot690 #lotRoot .section-nav690 .source-wordmark778.gis{background:#1768d7;color:#fff}
body.lot690 #lotRoot .section-nav690 .source-wordmark778.ros{background:#fff;color:#154d3a;border:1px solid #b8d0c2}
body.lot690 #lotRoot .section-nav690 .source-wordmark778.nspd{background:#e9f4ef;color:#15543e;border:1px solid #b9d5c5}

/* История торгов — меньше пустоты, крупнее круг и подписи */
@media (min-width:1100px){
  body.lot690:not(.dashboard759) #lotRoot .section-shell764{
    min-height:min(720px,calc(100svh - 92px))!important;
  }
  body.lot690:not(.dashboard759) #lotRoot .selected764.torgi-panel542{
    min-height:100%!important;
  }
  body.lot690:not(.dashboard759) #lotRoot .history-body575{
    grid-template-columns:minmax(300px,.88fr) minmax(0,1.12fr)!important;
    align-items:center!important;gap:38px!important;
  }
  body.lot690:not(.dashboard759) #lotRoot .history-donut575,
  body.lot690:not(.dashboard759) #lotRoot .history-donut575 svg{
    width:310px!important;max-width:310px!important;height:310px!important;
  }
  body.lot690:not(.dashboard759) #lotRoot .history-body575 :is(p,li,span,td,th){
    font-size:16px!important;line-height:1.42!important;
  }
}

/* Сервисы анализа и данные ГИС Торги — одна верхняя и нижняя граница */
body.lot690 #lotRoot .aligned-sources699,
body.lot690 #lotRoot .gis709{
  height:178px!important;min-height:178px!important;max-height:178px!important;
  box-sizing:border-box!important;
}
body.lot690 #lotRoot .aligned-sources699{
  grid-template-rows:28px 58px 58px!important;
  gap:7px!important;
}
body.lot690 #lotRoot .aligned-sources699>a{height:58px!important}
body.lot690 #lotRoot .gis709 .event-grid54,
body.lot690 #lotRoot .gis709 .event-grid54>div{
  min-height:125px!important;height:125px!important;
}

/* ---------------- Краткий dashboard в стиле одной композиции ---------------- */
#zkDashboard778{display:none}
body.lot690.dashboard759 #zkDashboard778{
  display:grid!important;
  height:calc(100svh - 100px)!important;
  min-height:650px!important;
  box-sizing:border-box!important;
  padding:14px!important;
  border:1px solid #cfe0d4;border-radius:26px;background:#eef3ed;
  grid-template-columns:minmax(240px,.72fr) minmax(420px,1.45fr) minmax(240px,.72fr)!important;
  grid-template-rows:auto 1fr auto!important;
  gap:12px!important;overflow:hidden!important;
  margin:10px 0 18px!important;
}
#zkDashboard778 .zk-dash-head778{
  grid-column:1/-1;display:flex;align-items:end;justify-content:space-between;gap:20px;
  padding:2px 4px 4px;
}
#zkDashboard778 .zk-dash-head778 small{
  display:block;color:#77847b;font-size:10px;text-transform:uppercase;letter-spacing:.08em;
}
#zkDashboard778 .zk-dash-head778 h2{
  margin:4px 0 0;font-size:clamp(22px,2vw,34px);line-height:1.08;color:#173e31;
}
#zkDashboard778 .zk-dash-col778{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:10px;min-height:0}
#zkDashboard778 .zk-dash-card778{
  border:1px solid #d5dfd7;border-radius:16px;background:rgba(255,255,255,.72);
  padding:12px 14px;display:flex;flex-direction:column;justify-content:center;min-height:0;
}
#zkDashboard778 .zk-dash-card778 small{font-size:10px;color:#758279;text-transform:uppercase;letter-spacing:.05em}
#zkDashboard778 .zk-dash-card778 strong{font-size:clamp(17px,1.5vw,26px);color:#173e31;margin-top:6px;line-height:1.12}
#zkDashboard778 .zk-dash-media778{
  grid-column:2;grid-row:2;min-height:0;border-radius:20px;overflow:hidden;position:relative;
  background:#d9e2da;border:1px solid #c5d4ca;
}
#zkDashboard778 .zk-dash-media778 img{width:100%;height:100%;object-fit:cover;display:block}
#zkDashboard778 .zk-dash-media778 .zk-dash-fallback778{
  position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#66766d;padding:20px;
}
#zkDashboard778 .zk-dash-bottom778{
  grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;
}
#zkDashboard778 .zk-dash-bottom778 .zk-dash-card778{padding:10px 12px}
#zkDashboard778 .zk-dash-income778{background:#e8f3ea;border-color:#b8d5c1}
#zkDashboard778 .zk-dash-income778 strong{color:#0d6b45}

/* responsive */
@media(max-width:1050px){
  html.zk-home778{scroll-snap-type:none}
  body.home58 .zk-snap635{min-height:auto!important}
  #accioDeck545 .accio-meta778{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #accioDeck545 .accio-lower778{grid-template-columns:1fr!important}
  body.lot690 #lotRoot .aligned-sources699,
  body.lot690 #lotRoot .gis709{height:auto!important;min-height:0!important;max-height:none!important}
  body.lot690.dashboard759 #zkDashboard778{
    height:auto!important;min-height:0!important;
    grid-template-columns:1fr!important;grid-template-rows:auto!important;overflow:visible!important;
  }
  #zkDashboard778 .zk-dash-head778,#zkDashboard778 .zk-dash-media778,#zkDashboard778 .zk-dash-bottom778{
    grid-column:1!important;grid-row:auto!important;
  }
  #zkDashboard778 .zk-dash-media778{min-height:360px}
  #zkDashboard778 .zk-dash-bottom778{grid-template-columns:repeat(2,minmax(0,1fr))}
}
