/* Calculator */
.calculator {
  padding: 10rem 0;
  background: white;
}

.calculator h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.calculator p {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.3rem;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group select {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #e74c3c;
}

.btn-primary {
  display: block;
  margin: 2rem auto 0; /* Отступ сверху, центрирование */
  padding: 12px 30px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btns {width:200px; padding: 10px 20px;}

.btn-primary:hover {
  background: #c0392b;
}





/*popover*/
.popover {
  position: absolute;
  z-index: 1000;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 14px;
  max-width: 250px;
  color: #333;
  display: none;
  top: calc(100% + 8px);
  left: 0;
}

.popover.show {
  display: block;
}

.form-group {
  position: relative;
}
/* Кнопка подсказки внутри label */
.popover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #f0f0f0;
  color: #666;
  font-size: 10px;
  cursor: pointer;
    cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* убирает серый отклик на iOS */
  touch-action: manipulation; /* ускоряет отклик на тач */
  line-height: 1;
  text-decoration: none;
  appearance: none;
  transition: all 0.2s;
}

.popover-btn:hover,
.popover-btn:focus,
.popover-btn.active {

  background: #023363;
  color: white;
  border-color: #023363;
  outline: none;
}

.popover .popover-header {
  /*background: #f8f9fa;*/
  background: #023363;
  border-bottom: 1px solid #dee2e6;
  padding: 8px 12px;
  font-weight: bold;
  color: #fff;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.popover .popover-body {
  padding: 10px 12px;
  font-size: 14px;
  color: #555;
}



/* Стиль для переключателя (обработчик) */
.material-switch {
  display: inline-block;
  position: relative;
  width: 48px;
  height: 24px;
  cursor: pointer;
}
.material-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.material-switch label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -3px;
  background-color: #ddd;
  transition: .4s;
  border-radius: 24px;
  cursor: pointer;
}
.material-switch input:checked + label {
  background-color: #28a745;
}
.material-switch label:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 0px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* Правильное смещение для состояния "включено" */
.material-switch input:checked + label:before {
  /* Рассчитываем правильное смещение: общая ширина минус отступы и размер кружка */
  transform: translateX(24px); /* 48px - 18px - 3px*2 = 24px */
}
/* Для мобильных устройств - более компактный переключатель */
@media (max-width: 768px) {
  .material-switch {
    width: 44px; /* Немного уменьшаем ширину для мобильных */
    height: 22px;
  }
  
  .material-switch label:before {
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
  }
  
  .material-switch input:checked + label:before {
    transform: translateX(22px); /* 44px - 16px - 3px*2 = 22px */
  }
}
.material-switch label:after {
  content: '';
  position: absolute;
  top: 50%;
  right: -3px;
  transform: translateY(-50%);
  font-size: 12px;
  color: #fff;
  pointer-events: none;
}


/* По умолчанию — обычный размер шрифта */
.result {
  font-size: 12pt; /* или любой другой */
}
.result tr {padding:5px; border-top: 1px solid #ddd;}
.result td {
  padding: 5px !important;
}

/* На мобильных (ширина экрана до 768px) */
@media (max-width: 768px) {
  .result {
    font-size: 11pt;
  }
.result td {padding-left:2px;}
.material-switch {
    width: 80px;
}
}
/* лого типы (типа?) */
/* Усиленный селектор для логотипа */
.price-section .logo-text {
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 2.5rem !important;
  color: #0047AB !important;
  letter-spacing: -1px;
  text-align: center;
  margin: 0 !important;
  padding: 0 !important;
  display: block;

  /* Очень тонкая серая обводка через text-shadow */
  text-shadow: 
    -0.6px -0.6px 0 #888,
     0.6px -0.6px 0 #888,
    -0.6px  0.6px 0 #888,
     0.6px  0.6px 0 #888;
}

/* Акцентная буква "Т" — крупнее и с градиентом */
.price-section .logo-text .accent {
  background: linear-gradient(to bottom, #FF8C00, #FF4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text !important;
  color: transparent;
  position: relative;
  font-size: 3.5rem !important;
  /* Убираем обводку с "Т", чтобы градиент был чистым */
  text-shadow: none; /* Отключаем тень для "Т" */

font-weight:700;

}

/* Fallback для старых браузеров */
.price-section .logo-text .accent::before {
  content: 'Т';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #FF8C00, #FF4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  z-index: -1;
  /* Если нужна обводка на "Т" — можно добавить */
  text-shadow: -0.7px -0.7px 0 #888; 
}




/* Центрируем содержимое секции */
.price-section .price-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрируем по горизонтали */
  gap: 2rem; /* Отступ между логотипом и сеткой */
  width: 100%;
}

/* Если нужно — центрировать текст внутри h3 */
.price-section .logo-text {
  text-align: center;
  
}

/* Для EXTRUFLEX — если используется logo-header */
.logo-header {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.logo-header .logo-img {

  height: auto;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}

.logo-header .logo-text {
  font-family: inherit;
  font-size: inherit;
  font-weight: bold;
  color: #000;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  display: inline-block;
  
}



/* Центрируем всю секцию */
.price-section {
  text-align: center; /* Центрирует inline-элементы */
}

/* Обёртка для логотипа + h3 */
.logo-header {
  display: inline-flex;
  align-items: center;
  gap: 0; /* Нет отступа между картинкой и текстом */
  margin: 0 auto; /* Центрирует блок по горизонтали */
  padding: 0;
}

/* Стили для картинки */
.logo-img {
  width: 60px; /* Подберите под ваш логотип */
  height: auto;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}

/* Стили для h3 внутри логотипа */
.logo-header h3 {
  margin: 0;
  padding: 0;
  padding-left:5px;
  font-size: inherit;
  font-weight: bold;
  color: #000; /* Чёрный текст */
  line-height: 3;
  vertical-align: middle;
  font-size: 2.5rem !important;
}

.contacttext {padding-bottom:10rem;}

.calcprew {
	padding-top:3rem;
    text-align: center;
    font-size: 1.5rem;
	font-weight:700;
    color: #000;
    margin-bottom: 1rem;
}

.arrow-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.calcarrow {
  max-width: 100%;
  height: auto;
  max-height: 60px; /* Ограничьте высоту, если нужно */
  animation: bounce 2s infinite;
}

.text-shadow-9 {

text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);}

.agreement-error {
  color: #e74c3c;
  font-size: 0.9em;
  margin-top: 8px;
  font-weight:bold;
  display: none;
}

/* лого типы (типа?) на шапка */
/* Усиленный селектор для логотипа */
.logo .logo-text {
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 2.5rem !important;
  color: #0047AB !important;
  letter-spacing: -1px;
  text-align: center;
  margin: 0 !important;
  padding: 0 !important;
  display: block;

  /* Очень тонкая серая обводка через text-shadow */
  text-shadow: 
    -0.6px -0.6px 0 #888,
     0.6px -0.6px 0 #888,
    -0.6px  0.6px 0 #888,
     0.6px  0.6px 0 #888;
}

/* Акцентная буква "Т" — крупнее и с градиентом */
.logo .logo-text .accent {
  background: linear-gradient(to bottom, #FF8C00, #FF4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text !important;
  color: transparent;
  position: relative;
  font-size: 3.5rem !important;
  /* Убираем обводку с "Т", чтобы градиент был чистым */
  text-shadow: none; /* Отключаем тень для "Т" */

font-weight:700;

}

/* Пирайс эта */
.allprice {
  background: #FFF;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #eee;
  margin-top: 30px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.price-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

/* Заголовки групп */
.price-table .group-header td {
  background: #023363;
  color: #fff;
  font-weight: bold;
  padding: 10px;
  border-bottom: 2px solid #023363;
}

/* Зебр */
.price-group tr:not(.group-header):nth-child(even) {
  background-color: #f5f5f5;
}

.price-group tr:not(.group-header):nth-child(odd) {
  background-color: #ffffff;
}
.price-group tr:last-child td {
  border-bottom: none;
}
.headt {
    background: #023363;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}
.price-group tr:not(.group-header):hover td {
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  font-weight:bold;
  /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); */
}
.price-table td:first-child {
  width: 80%;
  word-wrap: break-word;
  word-break: break-word;
}

.price-table td:last-child {
  width: 20%;
  text-align: right; 
  white-space: nowrap;
}

.btn-disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background: #6c757d !important;
}

.agreement-error {
  color: #e74c3c;
  margin-top: 10px;
  display: none;
}

.privacy-section {
    padding: 10rem 0;
    background: white;
}

.material-switch input:checked + label:before {
    left: 0 !important;
}



/* Header */
@media (max-width: 768px) {
    .header {
        background: transparent;
    }
}

