.header-container { margin-bottom: 25px; padding: 10px 0 ; }

/* header */ 
        .header-grid { 
            display: grid; 
            grid-template-areas: "left center" "secondline secondline"; 
            grid-template-columns: 220px 1fr;
            grid-template-rows: repeat(1, 1fr); 
			gap: 0 20px;
            align-items: center;
        }
		
		.mobile-menu-close-wrap { display: none; }
        
		.mobile-menu-open { display: none; border: none; background: url(../icons/menu.svg) no-repeat; cursor: pointer; width: 40px; height: 40px;  background-size: cover;  } 
		
		.button-menu-block {     display: flex;     justify-content: end;     align-items: center; }
		
        .mobile-menu-close, .header-icons { display: none; }

        .header-contacts { display: flex; justify-content: space-between;  align-items: center;  }
		
		.header-phones p { line-height: 24px;  }
		.header-phones p a { color: inherit; text-decoration: none;  }
		.header-phones p a:hover { text-decoration: underline; }
		
		.header-phones-inner {    display: flex;  flex-direction: column; align-items: flex-start; }
		
		.header-time p {  line-height: 24px;   } 
		.header-time p a { color: inherit; text-decoration: none;  } 
		
		.header-time-inner { margin-bottom: 0;  } 

		.header-address { line-height: 24px;   }
		.header-address p { margin-bottom: 0;  } 
		
		.header-phones-inner p { margin: 0; align-items: center; display: flex;	gap: 10px;	} 
		
		.header-content { display: flex; flex-direction: row; justify-content: space-around; }
		
		.header-content-inner {     display: flex;  flex-direction: column;  justify-content: space-between; height: 100%; margin: 0 auto; }
		
		.header-right-inner {  display: flex;  flex-direction: column; justify-content: space-between; gap: 12px; height: 100%; }
		
		.header-menu { display: flex; gap: 20px; align-items: center;  justify-content: space-between;  } 
		
		
		.header-logo {
			display: flex;
			align-items: center;
			height: 100%;
		}

		.header-logo a {
			display: flex;
			align-items: center;
		}

		.header-logo img {
			max-width: 210px;
			width: 100%;
			height: auto;
			display: block;
		} 
		
		.mobile-order {
			width: 100%; gap: 5px; display: flex;
		}
		
		.mobile-order a {
			display: inline-block; text-decoration: none;     padding: 5px 10px 5px 32px; border-radius: 5px; font-size: 11px; line-height: 16px;
			    height: auto;
		}
		
		.callback-button { 
    display: inline-block;
    padding: 10px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
    border: none;
    cursor: pointer;
	font-weight: 600; 
		} 
		.whatsapp-button {   color: #FFF;  color: #FFF; background: url(../icons/whatsapp.svg) no-repeat #2BB741 5px center; background-size: 22px;  } 
		.telegram-button {    color: #FFF; background: url(../icons/telegram.svg) no-repeat #229ED9 5px center; background-size: 20px; }
		.max-button {       color: #FFF; background: url(../icons/max.svg) no-repeat #6C4FF6 5px center; background-size: 20px; } 		

		/* Время работы одной строкой + отступ от контактов до меню */
		.header-time-inner { white-space: nowrap; }
		.header-contacts { margin-bottom: 16px; }
		.nav ul li a { white-space: nowrap; }

        @media (max-width: 992px) {

			.mobile-menu-close { width: 40px;  height: 40px;  background: url(../icons/close.svg) no-repeat; cursor: pointer; border: none;  background-size: cover; }
			.mobile-menu-close-wrap { display: flex; justify-content: end;}

            .mobile-menu-close, .header-icons { display: block; }

            .mobile-menu-close { order: 1;  }

            .header-menu { order: 2; position: static; display: flex; }

            .header-contacts { order: 3; }

            .header-content { display: flex; flex-direction: column; z-index: 1000; 
                top: 0; left: 0; position: fixed; background: #EFEFEF; 
                border: 0px solid #2C344D; width: calc(100%); height: calc(100vh);
            }

            .header-contacts { flex-direction: column; }

            .mobile-menu-overlay { display: none }

            .mobile-menu-overlay.active { display: flex; }
			
			.nav ul li { height: auto !important; } 

			.header-content-inner { order: 3; justify-content: start;  height: auto; margin: 0; }
			
			.header-right-inner {
				order: 2; height: auto; 
			}

        }





.logo img { height: 80px; display: block; }

.menu-toggle { display: none; }

.menu-icon { min-height: 60px;   }
.menu-icon span { margin-left: 75px; }
.menu-icon:before { content: ''; width: 60px; height: 60px; margin-right: 15px; display: block;position: absolute; }

.icon01:before { background: url(https:/placehold.in/60x60) no-repeat; background-size: cover; }
.icon02:before { background: url(https://placehold.in/60x60) no-repeat; background-size: cover; }
.icon03:before { background: url(https://placehold.in/60x60) no-repeat; background-size: cover; }
.icon04:before { background: url(https://placehold.in/60x60) no-repeat; background-size: cover; }
.icon05:before { background: url(https://placehold.in/60x60) no-repeat; background-size: cover; }
.icon06:before { background: url(https://placehold.in/60x60) no-repeat; background-size: cover; }
.icon07:before { background: url(https://placehold.in/60x60) no-repeat; background-size: cover; }
.icon08:before { background: url(https://placehold.in/60x60) no-repeat; background-size: cover; }
.icon09:before { background: url(https://placehold.in/60x60) no-repeat; background-size: cover; }
.icon10:before { background: url(https://placehold.in/60x60) no-repeat; background-size: cover; }

.nav { height: 100%;   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);}
.nav ul { list-style: none; display: flex; gap: 20px; height: 100%; padding: 0; margin: 0;   justify-content: space-between;  width: 100%; }
.nav ul li { display: flex; align-items: center; height: 100%;  margin: 0; }
.nav ul li a {text-decoration: none; color: #212529; font-weight: 500; font-size: 14px; display: block; height: 100%; display: flex; align-items: center;}
.nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}
.nav > ul > li > a:hover {
  text-decoration: underline;
}
.header-right { flex-grow: 1; display: flex; justify-content: space-between; align-items: center;  gap: 30px; height: 100%; }

.whatsapp-icon { width: 24px; height: 24px; background: url(../icons/whatsapp.svg); background-size: cover; display: inline-block;  }  
.telegram-icon { 
	width: 24px;
    height: 24px;
    background: url(../icons/telegram.svg) no-repeat center;
    display: inline-block;
    background-size: 84%; 
}  
.contacts { text-align: right; }

        /* Стили формы обратного звонка */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: #333;
        }

        .form-label.required::after {
            content: " *";
            color: #dc3545;
        }

        .form-input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s ease;
        }

        .form-input:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
        }

        .form-input.error {
            border-color: #dc3545;
            box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
        }

        .error-message {
            color: #dc3545;
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }

        .form-input.error + .error-message {
            display: block;
        }

        .submit-button {
			border: 1px solid red;
			color: red;
			text-decoration: none;
			white-space: nowrap;
			padding: 5px 10px 5px 10px;
			border-radius: 5px;
			display: flex;
			align-items: center;
			text-align: center;
			justify-content: center;
			width: 100%;
        }


        .submit-button:disabled {
            background-color: #6c757d;
            cursor: not-allowed;
        }

        /* Состояния загрузки и пустого списка */
        .loading, .no-results, .error {
            text-align: center;
            padding: 30px 20px;
            color: #666;
        }

        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #0d6efd;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 0 auto 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .error {
            color: #dc3545;
            background-color: #f8d7da;
            border-radius: 6px;
            margin: 0;
        }

        .success {
            color: #155724;
            background-color: #d4edda;
            border-radius: 6px;
            margin: 0;
            padding: 20px;
            text-align: center;
        }

        /* Адаптивность */
        @media (max-width: 480px) {
            .modal-content {
                width: 95%;
                margin: 10px;
            }
            
            .modal-header, .modal-body {
                padding: 15px;
            }
        }






















@media (max-width: 992px) {
	
	
	.header-logo img { max-width: 120px;  } 
	
	.header-grid { grid-template-columns: auto minmax(0, 1fr); }
	
	.mobile-menu-open { display: block;  } 

    .menu-toggle { display: block; font-size: 40px; cursor: pointer; }

    .header-right {display: none;}
    .header-right.open { display: block; position: absolute; top: 0; left: 0; width: 100%; padding: 10px; overflow: auto;  }

    .menu-toggle-open { z-index: 1000; }


    .nav { height: auto; box-shadow: none; padding: 20px;  }
    .nav ul { height: auto; flex-direction: column; display: block; width: 100%; }
    .nav ul li { display: block; border: none;  }
    .nav ul li.hovered .submenu { display: block; padding-bottom: 0; }
    .nav ul li a { padding: 0; display: block; padding: 10px 0; text-decoration: none; color: #000000; }

    .submenu { 
        display: none; position: static; top: auto; left: auto; width: 100%; background: none; color: white;
        padding: 0; z-index: 0; height: auto; padding-bottom: 15px; padding-left: 15px; box-shadow: none;
    }

    .header-container { padding: 10px 20px; margin-bottom: 0;  }

    .submenu-container { padding-top: 0; flex-direction: column; gap: 0; padding-bottom: 0; }
	
	.header-contacts { margin-bottom: 20px; padding: 0 20px; align-items: start;  }

	.header-address { margin-bottom: 20px;  }

	.header-time { margin-bottom: 20px;  }
	
	.mobile-order { margin-bottom: 20px;  } 
	
	.header-right-inner {  padding: 0 20px; max-width: 300px; }

	.mobile-menu-close-wrap { justify-content: end;   }

}

/* Неширокие десктопы: подписи на кнопках прячем, остаются иконки,
   иначе шапка не помещается в строку до мобильного меню (992px). */
@media (min-width: 993px) and (max-width: 1280px) {

	.header-grid { grid-template-columns: 170px minmax(0, 1fr); }

	.header-right { gap: 20px; }

	.nav ul { gap: 10px; }
	.nav > ul > li > a { padding: 10px 8px; }

	/* подписи убираем размером шрифта, а не лишней обёрткой:
	   обработчик модалки читает e.target, вложенный span его ломает */
	.mobile-order a, .callback-button { font-size: 0; }

	.mobile-order { width: auto; gap: 8px; }

	.mobile-order a {
		flex: 0 0 38px;
		width: 38px;
		height: 38px;
		padding: 0;
		background-position: center;
	}

	.header-right-inner { align-items: flex-end; }

	.callback-button {
		width: 38px;
		height: 38px;
		padding: 0;
		border-radius: 5px;
		background: url(../icons/phone.svg) no-repeat center / 20px, linear-gradient(135deg, #007bff, #0056b3);
	}

}
/* header */
