:root{
  --button-color: rgb(0, 251, 0);
  --buttonclick-color:rgb(0, 136, 16);  
     /*не используется*/
}
/* для мониторов */ 
@media only screen and (min-device-width : 800px) { 
  .notel{ display: inline;  }             
  .nopc{display: none}
  .pc { display: inline;} 
  .pad { display: none; }
  .tel { display: none;}
  
}



/* для планшетов */
@media only screen and (min-device-width : 500px) and (max-device-width : 799px)   { 
  .notel{display: inline;}
  .nopc{display: inline;}
  .pc  { display: none; }
  .pad { display: inline; }
  .tel { display: none; }
      }





/* для телефонов */
@media only screen and  (max-device-width : 499px)   { 
  .notel{display:none;}
  .nopc{display:inline ;}
  .pc { display: none; }
  .pad { display: none; }
  .tel {display: inline;}
              }                                                                          



/* Основные стили */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #a7a7a7;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}



.container {
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}




.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination a {
  padding: 8px 12px;
  margin: 0 5px;
  background-color: #eee;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
}

.current-page {
  margin: 0 5px;
  color: #333;
}

/* Заголовок */
.main_name {
  margin-top: 50px;
  color: var(--buttonclick-color);
  font-size: 3rem;
  text-align: center;
}

/* Форма поиска */
.main_div {
  background-color: #f0f0f0; /* Светлый фон */
  border: 3px solid #ccc; /* Светлая граница */
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative; 
}
.search-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 25px; /* Более выраженное скругление */
  overflow: hidden;
   max-width: 800px; /* Увеличиваем макс. ширину */
     margin: 10px auto; /* Центрируем контейнер */
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Тень для глубины */
  transition: box-shadow 0.3s ease; /* Плавное изменение тени */
  position: relative;

}
.search-wrapper:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Усиливаем тень при наведении */
}

.search-input {
  flex-grow: 1;
  border: none;
  padding: 14px 20px; /* Увеличиваем отступы */
  font-size: 1.1rem; /* Увеличиваем шрифт */
  color: #333;
  border-radius: 25px 0 0 25px; /* Скругление слева */
  outline: none;
      transition: background-color 0.3s ease, color 0.3s ease; /* плавное изменение фона и цвета*/
    background-color: #fff; /* белыый фон */
}
  .search-input::placeholder { /* Стилизация placeholder*/
        color: #999; /* серый placeholder*/
      font-style: italic; /* курсив для placeholder*/
  }
  .search-input:hover {
      background-color: #f0f0f0; /* меняем фон при наведении */
      color: #222; /* меняем цвет шрифта при наведении */
  }
.search-input:focus {
  background-color: #f0f0f0; /* меняем фон при фокусе */
   color: #222; /* меняем цвет шрифта при фокусе */
}


.search-button {
  border: none;
  background-color: var(--buttonclick-color);
  color: #fff;
  padding: 14px 20px;
  cursor: pointer;
  border-radius: 0 25px 25px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
font-size: 1.1rem;
   white-space: nowrap;
}
.search-button:hover {
  background-color: var(--button-color);
}

.search-button i {
  font-size: 1.3rem;
}

/* Медиа-запрос */
@media (max-width: 768px) {

   .search-wrapper {
       flex-direction: row; /* Оставляем в строку */
        border-radius: 25px; /*  закругление для контейнера*/
   }
   .search-input {
        border-radius: 25px 0 0 25px; /* скругление только слева */

  }
    .search-button {
     border-radius: 0 25px 25px 0; /* скругление только справа */
  }
}
 .span1 {
     display: block;
     margin-bottom: 10px;
    font-size: 1.5rem;
      font-weight: bold;
      text-align: center;
   }
   form {
     display: flex;
      flex-direction: column;
     align-items: flex-start;
    }
.result-item {
    background-color: #d9d9d9;
    border-radius: 10px;
    padding: 2rem;
    margin: 0 auto; /* Центрирование по горизонтали */
    transition: transform 0.2s ease;
    display: block;
    text-decoration: none;
    color: #000;
    box-sizing: border-box;
    
    /* Фиксированная ширина 1200px, но с отступами на узких экранах */
    width: 1200px; /* Жестко заданная ширина */
    max-width: 100%; /* Не превышает ширину родителя */
    padding-left: 20px; /* Отступы внутри блока */
    padding-right: 20px; /* Отступы внутри блока */
}

/* Адаптация для экранов уже 1200px */
@media (max-width: 1240px) { /* 1200px + 20px слева + 20px справа */
    .result-item {
        width: 100%; /* Растягивается на всю ширину с отступами */
        box-sizing: border-box; /* Учитываем padding в ширине */
    }
}
.result-item:hover {
    transform: scale(1.05); /* Увеличиваем размер при наведении */
}

.result-item-content {
    display: block; /* Делаем .result-item-content блочным элементом */
    pointer-events: none; /* Делаем содержимое некликабельным */
}

.result-title, .result-href, .input_p {
    display: inline; /* Делаем span и p инлайновыми */
      font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}


.result-title {
    color: #9e00c6; /* Синий цвет для заголовка */
    font-size: large;
}

.result-href {
    color: #009900; /* Зеленый цвет для ссылки */
}


.result-item a { /* Стили для ссылки внутри result-item */
    text-decoration: none;  /* Убираем подчеркивание */
    color: inherit;   /* Наследуем цвет от .result-item */
}

.result-item-content a { /* Стили для ссылки внутри result-item-content */
    text-decoration: none; 
    color: inherit;
}

.red_button:hover {
  background-color: #0056b3; /* Темнее синий при наведении */
}

.results-list {
  list-style: none;
  padding: 0;
}

.results-list li {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;  /* Добавлена рамка */
  border-radius: 5px;   /* Закругленные углы */
  background-color: #f9f9f9;
  transition: transform 0.2s ease-in-out; /* Добавлена анимация */
}

.results-list li .result-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f9f9f9;
  color: #333;
  font-size: 1.2rem;
}

.results-list li:hover {
  transform: scale(1.05); /* Увеличение при наведении */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Добавлена тень */
}

.input_a {
  text-decoration: none;
  font-weight: 900;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  color: #453eac;
  font-size: 1.2rem;
}

.input_p {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 1.3rem;
      display: inline; /* Делаем span и p инлайновыми */
        color: #666; /* Серый цвет для описания */
}


.output_tel {
  text-decoration: none;
  color: green;
  font-weight: 300;
  font-size: 1rem;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.vault {
  border: 3px solid black;
  position: absolute;
  padding: 20px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .search-bar {
      height: 42px;
  }
}








.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Чёрный с прозрачностью */
  z-index: 1000;
  opacity: 0; /* Изначально невидимо */
  transition: opacity 0.3s ease; /* Плавное появление */
  pointer-events: none; /* Чтобы клики проходили сквозь него */
}

.overlay.active {
  opacity: 1; /* Показываем */
}


.btn-mob{

width: 200px;
height: 60px;
background-color: #00ff08;
border-radius: 10px;
text-align: center;
line-height:60px;
font-size: 1.5rem;
cursor: pointer;
user-select: none;
float: left;
margin: 10px;
}

.btn {
width: 60px;
height: 60px;
background-color: var(--button-color);
border-radius: 50%;
text-align: center;
line-height:60px;
font-size: 1.5rem;
cursor: pointer;
user-select: none;
float: left;
margin: 10px;
}


.num1{
  background-color: var(--buttonclick-color);

}


.btn:hover{
 filter: brightness(120%);   
}
.btn:active{
    filter: brightness(90%);
}
  img {
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            outline: none;
        }
        .i1 {
            position: fixed;
            left: 30%;
            top: 60%;
            transform: translate(-50%, -50%);
        }
        .i2 {
            position: fixed;
            right: 30%;
            top: 60%;
            transform: translate(50%, -50%) scaleX(-1);
        }
        