body {
  height: 100%;
  margin: 0;
  transition: background-color 0.8s ease;
}

.block {
  min-height: 90vh;
  height: auto;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-family: sans-serif;
  transition: color 0.8s ease;
  position: relative;
  overflow: hidden;
  /* важно для затемнения */
  /* border: #fffffff4 solid 5px; */
  /* color: rgb(255, 255, 255); */

}

/* чтобы текст блоков подчинялся цвету body */
.block {
  /* color: inherit; */
  /* transition: color 0.8s ease; */
}

/* 
.block {
  min-height: calc(var(--vh) * 100);
} */

/* .block {
    min-height: 100vh; /* было height: 100vh *
    height: auto; /* позволяет блоку расти *
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* по желанию *
    padding: 80px 20px; /* чтобы контент не прилипал к краям *
    box-sizing: border-box;
} */

body {
  margin: 0;
  color: var(--text-main);
}

/* Цвета для активных блоков */
body.active-1 {
  background-color: #0b1424;
    

  color: #FFFFFF;
}

body.active-2 {
  background-color: #1b2434;
  color: #FFFFFF;
}

body.active-3 {
  background-color: #ffffff;
  color: #111
    /* background-color: #004577;
  color: #FFFFFF; */
}

body.active-4 {
  background-color: #EEE;
  color: #333;
}

body.active-5 {
  background-color: #ffffff;
  color: #111;

}

body .faq details {
	border: 1px solid #333;
	  color: #111;
}
body.active-3 .faq details {
	border: 1px solid #AAA;
	color: #AAA;
}
body.active-5 .faq details {
	border: 1px solid #AAA;
	color: #AAA;
}






/* --- 🎥 Первый блок: фоновая картинка + эффект зума + затемнение --- */
.hero {
  color: #fff;
  /* белый текст поверх картинки */

}


.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./top-img.jpg");
  background-size: cover;
  /* ключ! */
  background-position: center center;
  /* фокус на центре */
  background-repeat: no-repeat;
  z-index: -2;

  /* Анимация приближения */
  transform-origin: center;
  animation: zoomInOut 12s ease-in-out infinite alternate;
}

/* плавный zoom */
@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}

/* затемнение краёв (виньетка) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  /* Полное затемнение + виньетка */
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.6) 100%);
}

/* плавный бесконечный zoom effect */
@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}




/* Гарантия корректного размера блока на мобильных без прыжков
(100vh ведёт себя криво на iOS из-за UI браузера) */
:root {
  --vh: 1vh;


}



.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}





/* карточки внутри левой части */



.tco-param-card {
  padding: 0px;
  border-radius: 6px;
 
  cursor: pointer;
}

.tco-param-title {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 6px;
}

.tco-param-value {
  font-size: 1.1rem;
  font-weight: 700;
}


/* КОЛЬЦЕВЫЕ ДИАГРАММЫ ПРОЦЕНТОВ */
.ring-item {
  display: flex;
  align-items: center;
  margin: 1px 0;
  gap: 1px;
  font-family: Arial, sans-serif;

}

.ring {
  position: relative;
  width: 85px;
  height: 75px;
  padding: 0px;
}

.ring svg {
  width: 85px;
  height: 85px;
  transform: rotate(-90deg);
  /* верхняя точка */
}

.bg {
  fill: none;
  /* stroke: #CCEBFB; */
  stroke-width: 8;
}

.fg {
  fill: none;
  stroke-width: 10;
  stroke-linecap: butt;
  transform-origin: center;
  transition: stroke-dashoffset 1s ease;
}

.ring-center {
  position: absolute;
  left: 0;
  top: 0;
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
}

.ring-info {
  display: flex;
  flex-direction: column;
}

.ring-info .value {
  font-weight: bold;
  font-size: 28px;
}

.ring-info .label {
  color: #888;
  font-size: 12px;
  margin-top: 2px;
}




.comparisonTable {
  box-shadow: 0px 4px 10px rgba(12, 18, 30, 0.1);
  margin: 30px 0;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #FFF;
  background-color: #FFF;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  max-width:1000px;
  
}

.comparisonTable:active {
  cursor: grabbing;
}

/* Скроллбар (опционально) */
.comparisonTable::-webkit-scrollbar {
  height: 6px;
}

.comparisonTable::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 3px;
}

/*#comparisonTable=== {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
      }*/
#comparisonTable .text-left {
  text-align: left;
}

#comparisonTable .text-right {
  text-align: right;
}

table tr:hover {
  background-color: #009cec11;
}

.tco-all-container{
	
	 display: flex;
  justify-content: center;
  align-items: center;
}

/*
      #comparisonTable==== th, #comparisonTable==== td {
        
        text-align: right;
      }
      #comparisonTable=== th {
        background-color: #f3f4f6;
      }
        */
#comparisonTable td.highlight {
  background-color: #009cec12;
}


.comparisonTable table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
  width: 100%;
  color: #004577
}


td,
th {
  padding: 0
}


table th,
table td {
  padding: 1px;
  text-align: start
}

@media all and (min-width: 465px) {

  table th,
  table td {
    padding: 11px 20px
  }
}
table th {
  font-weight: 700;
  color: #009cec;
  line-height: 120%;
  letter-spacing: .03em;
  border-bottom: 2px solid #009cec
}

@media all and (min-width: 1200px) {
  table th {
    padding: 12.5px 20px
  }
}

table tr:not(:last-child) td {
  border-bottom: 1px solid #DDD
}






.pieChartBoble {
	max-width: 14em;
	max-height: 7em;

  /* border: 1px solid #8c1616 */
}




.sidebar {
  /* width: 400px; */
  margin: 10px auto;
  position: relative;
}

#tooltip-bottom {
  position: absolute;
  left: 50%;
  bottom: -20px;
  /* поднимаем tooltip вверх — перекрывает диаграмму */
  transform: translateX(-50%) translateY(110px);
  padding: 8px 14px;
  /* background: rgba(0, 0, 0, 0.85); */
  color: #f8f8f8;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  pointer-events: none;
  margin-top: -56px;
  opacity: 1;
  transition:
    opacity 1.2s ease,
    transform 0.5s ease;
}

#tooltip-bottom.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  background: rgba(0, 0, 0, 0.85);
}






/* side squares (правый столбик) */
.side-buttons {
  border: rgba(0, 0, 0, 0.04) solid 2px;
  display: flex;
  gap: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.side-square {
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  cursor: pointer;
}

.side-square .sq-icon {
  font-size: 20px;
  line-height: 1;
}

.side-square .sq-label {
  font-size: 11px;
  opacity: 0.9;
}

@media (max-width:1900px) {
  .side-buttons {
    border: rgba(0, 0, 0, 0.04) solid 2px;
    display: flex;
    gap: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 6px;
    width: 100%;
  }

  .side-square {
    width: 56px;
    height: 56px;
    font-size: 12px;
  }
}






/*МОДАЛЬНОЕ ОКНО*/
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;

}

.modal-overlay.active {
  display: flex;

}

.modal {
  background: #fff;
  padding: 20px 24px;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  font-family: Roboto Flex, Arial, Helvetica, sans-serif;
  /* 🔑 ограничение высоты */
  max-height: 80vh;

  /* вертикальная компоновка */
  display: flex;
  flex-direction: column;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-title {
  font-weight: bold;
  margin-bottom: 10px;
  flex-shrink: 0;

}

.modal-text {
  /* font-size: 22px; */
  color: #333;

  /* 🔑 прокрутка контента */
  overflow-y: auto;
  padding-right: 6px;

  /* занимает всё доступное место */
  flex: 1 1 auto;
}

.modal-close {
  margin-top: 15px;
  align-self: flex-end;
  flex-shrink: 0;
  padding: 6px 12px;
  cursor: pointer;
}

.modal-text {
  scroll-behavior: smooth;
}















/* входные параметры */
.form-container {
  margin: 0 auto;
  width: 100%;
  /* border: 1px solid #8c1616; */
}

.row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  /* border: 1px solid #8c1616; */
}

.col-label,
.col-input {
  flex-basis: 47%;
  /* border: 1px solid #8c1616; */
}

.col-label {
  text-align: left;
  padding-right: 10px;
}

.col-input label {
  display: inline-block;
}

.col-input {
  text-align: left;
}

.col-input span {
  display: block;
}

#yearsRange {
  width: 100%;
}

#yearsValue {
  width: 100%;
  text-align: center;
}

#loadfactorRange {
  width: 100%;
}

#loadfactorValue {
  width: 100%;
  text-align: center;
}

#servicefactorRange {
  width: 100%;
}

#servicefactorValue {
  width: 100%;
  text-align: center;
}











/* колонки параметров */
  

.row-equal {
  display: flex;
  gap: 2px;
  padding: 0px;
  align-items: stretch;
  /* ключевая строчка */
  border: 11px solid rgba(0, 0, 0, 222.023);
}

.col-equal {
  flex: 1 1 0;
  background: linear-gradient(180deg, #1f3457, #06142d);
  color: #FFF;
  padding: 20px 0 20px 0;
  gap: 0px;
  border-radius: 0px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  /* чтобы внутренности не ломались */
}

.col-equal-light {
  flex: 1 1 0;
  background: linear-gradient(180deg, #8fA4E7, #4654Ad);
  color: #FFF;
  padding: 22px;
  gap: 0px;
  border-radius: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0px 0px 20px rgba(200, 200, 255, 1);
  /* чтобы внутренности не ломались */
}

@media (max-width: 900px) {
  .row-equal {
    flex-direction: column;
  }
}




/* колонки сравнений */
  

.row-equal-compar {
	
  display: flex;
  gap: 52px;
  padding: 0px;
  align-items: stretch;
  /* ключевая строчка */
  border: 0px solid rgba(0, 0, 0, 0.023);
}

.col-equal-compar {
  flex: 1 1 0;
  background: linear-gradient(180deg, #1f3457, #06142d);
  color: #FFF;
  padding: 22px;
  gap: 0px;
  border-radius: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0px 0px 20px rgba(200, 200, 255, 0.3);
  
  
  /* чтобы внутренности не ломались */
}

.col-equal-compar-light {
  flex: 1 1 0;
  background: linear-gradient(180deg, #8fA4E7, #4654Ad);
  color: #FFF;
  padding: 22px;
  gap: 0px;
  border-radius: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0px 0px 20px rgba(200, 200, 255, 1);
  /* чтобы внутренности не ломались */
}

@media (max-width: 900px) {
  .row-equal-compar {
    flex-direction: column;
  }
}


.col-equal-compar ul {
  list-style-type: none;
  padding: 0;
  text-align: center; /* Optional, Just for demo */
}

.col-equal-compar ul li {
  background: url("point.png") center top no-repeat;
  display: inline-block; /* <-- display list items in one line */
  padding-top: 25px;     /* <-- Change this according to the image size */
  /* Or: */
  /* padding: 10px 5px 0;     */
  /*          top  r&l bottom */
}






/* FAQ */
.faq {
  margin-top: 40px;
 /* color: #111111;*/
}

.faq h2 {
  font-size: 20px;
  margin-bottom: 20px;
  /*color: #FFFFFF;*/
}

.faq details {
 /* background: linear-gradient(180deg, #FFFFFF, #EEEEFF);*/
  /*border: 1px solid #444;*/
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding-right: 30px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  /*color: #111111;*/
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #111111;
}
