/* Стили для компонента записи в очередь */

.zapis-form {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.zapis-form__field {
  display: flex;
  flex-direction: column;
}

.zapis-form__label {
  font-weight: 600;
  margin-bottom: 5px;
}

.zapis-form__input,
.zapis-form__select,
.zapis-form__textarea {
  display: block;
  width: 100%;
  max-width: 500px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  box-sizing: border-box;
}

/* Стили календаря */
.zapis-calendar {
  margin: 20px 20px 0px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: white;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.zapis-calendar__navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
}

.zapis-calendar__nav-btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #e0e0e0;
  color: #333;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.zapis-calendar__nav-btn:hover:not(:disabled) {
  background: #d0d0d0;
}

.zapis-calendar__nav-btn--disabled {
  background: #888;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.zapis-calendar__month-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.zapis-calendar__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 100%;
}

.zapis-calendar__table thead th {
  padding: 10px;
  text-align: center;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid #ddd;
}

.zapis-calendar__table tbody tr {
  background: white;
}

.zapis-calendar__day {
  padding: 12px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #eee;
  transition: all 0.2s;
  min-width: 40px;
}

.zapis-calendar__day--active-week {
  border: 2px solid #000 !important;
}

.zapis-calendar__day--empty {
  background: #f9f9f9;
  cursor: default;
}

.zapis-calendar__day--green {
  background: #d4edda;
  color: #155724;
}

.zapis-calendar__day--other-month {
  opacity: 0.65;
}

.zapis-calendar__day--orange {
  background: #ffe0b2;
  color: #8a4b12;
}

.zapis-calendar__day--yellow {
  background: #fff3cd;
  color: #856404;
}

.zapis-calendar__day--red {
  background: #f8d7da;
  color: #721c24;
}

.zapis-calendar__day:hover:not(.zapis-calendar__day--empty) {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Стили таблицы временных слотов */
.zapis-time-table {
  margin: -16px 20px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: white;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.zapis-time-table__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 100%;
}

/* Уникальный класс для строки заголовков таблицы времени */
.zapis-time-table__header-row {
  /* Класс для будущих стилей строки заголовков */
  display: table-row;
}

.zapis-time-table__header-cell {
  padding: 2px;
  text-align: center;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid #ddd;
  background: #f8f9fa;
}

.zapis-time-table__slot {
  padding: 8px;
  text-align: center;
  border: 1px solid #eee;
  min-width: 60px;
  min-height: 40px;
}

.zapis-time-table__slot--empty {
  background: #f9f9f9;
}

.zapis-time-table__slot--green {
  background: #d4edda;
  color: #155724;
  cursor: pointer;
}

.zapis-time-table__slot--orange {
  background: #ffe0b2;
  color: #8a4b12;
  cursor: pointer;
}

.zapis-time-table__slot--yellow {
  background: #fff3cd;
  color: #856404;
  cursor: pointer;
}

.zapis-time-table__slot--red {
  background: #f8d7da;
  color: #721c24;
  cursor: not-allowed;
}

.zapis-time-table__slot--green:hover,
.zapis-time-table__slot--yellow:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Адаптивные стили для узких экранов */
@media (max-width: 768px) {
  .zapis-calendar {
    max-width: calc(100% + 70px);
    margin: 20px -35px 0px;
    padding: 0px;
  }

  .zapis-time-table {
    max-width: calc(100% + 70px);
    margin: -16px -35px 20px;
    padding: 0px;
  }

  .zapis-time-table__slot {
    font-size: 10px;
  }

  .zapis-time-table__slot span {
    font-size: 10px;
  }
}




/* стили для основнйо страницы */



.head_1_line
{
  height: 38px;
  display: flex;
  justify-content: space-between;
}
.head_1_line_left_lincks
{
  display: flex;
  width: min-content;
}
.head_1_link
{
  display: block;
  width: 26px;
  height: 26px;
  margin: 6px;
  background-size: cover;
  background-repeat: no-repeat;
}

.head_2_line
{
  height: 150px;
  display: flex;
  justify-content: space-between;
  margin: 0px -50px;
}
.head_2_line_left_lincks
{
}
.head_2_link_main
{
  top: 0;
  position: relative;
  display: block;
  width: max-content;
  height: max-content;
  margin: 0;
  padding: 0;
}

.head_2_line_2_blocks
{
  display: flex;
  width: max-content;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center; 
  padding: 0px 10px;
}
.head_2_line_2_line
{
  width: 100%;
  min-height: 20px;
  height: auto;
  line-height: 1.3;
  color: #27714B;
  cursor: pointer;
  font-weight: 500 !important;
  font-size: 16px !important;
  text-decoration: none;
  padding: 0px 0px;
  margin: 1.5px 0;
}
.head_2_line_2_line_icon
{
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: -2.5px;
  position: relative;
  top: 5px;
}
.head_2_line_2_line_link
{
  color: #27714B;
  font-weight: 700;
  position: relative;
  top: 2px;
}

.head_2_line_3_blocks
{
  display: flex;
  width: max-content;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.head_2_link_3
{
  width: 100%;
  min-height: 20px;
  height: auto;
  line-height: 1.3;
  border: 2px solid #27714B;
  color: #27714B;
  cursor: pointer;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-align: center;
  text-decoration: none;
  padding: 0px 0px;
}
.head_2_link_3:hover 
{
  color: white;
  background-color: #27714B;
}
.my-link {
  transition: all 0.3s;
}
.head_line_3_main_menu {
  display: flex;
  list-style: none;
  flex-wrap: nowrap;
  justify-content: space-between;
  height: 100%;
}
.head_line_3_main_menu-item {
  max-width: min-content;
  position: relative;
  height: 100%;
  text-align: center;
  flex: 1 1;
  display: flex
;
  align-content: center;
  flex-wrap: wrap;
  justify-content: center;
  color: #fff;
}
.head_line_3_main_menu_sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background: #006e4c;  /* фон */
  padding: 0;
  margin: 0;
  min-width: 200px;
  z-index: 1000;  /* чтобы было поверх */
}
.head_line_3_main_menu-item:hover > .head_line_3_main_menu_sub-menu {
  display: block;
}
.head_line_3_main_menu_sub-menu .head_line_3_main_menu_sub-menu {
  top: 0;
  left: 100%;
}
.head_line_3_main_menu-item a {
  display: block;
  width: 100%;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  padding: 10px 5px !important;
  font-family: Verdana !important;
  text-decoration: none;
}
.head_line_3_main_menu-item:hover > .head_line_3_main_menu_sub-menu {
  display: block;
}
.head_line_3_main_menu_sub-menu li {
  position: relative;
}
.head_line_3_main_menu_sub-menu li:hover > .head_line_3_main_menu_sub-menu {
  display: block;
}
#head_line_3_main_block 
{
  overflow: visible;
}
.container.head_line_3_main_menu 
{
  overflow: visible;
}
.head_line_3_main_menu_sub-menu li:hover 
{
  background: rgba(0, 0, 0, 0.2);   
}
.head_line_3_main_menu_sub-menu li a 
{
  font-size: 14px !important;
  text-transform: none !important;
}

/* Инфоблок успешной записи */
.zapis-success {
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  background: #d4edda;
  color: #155724;
}

.zapis-success__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.zapis-success__text {
  margin: 0;
  font-size: 16px;
}

.zapis-success__link {
  color: #155724;
  text-decoration: underline;
}