/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Стили для логотипа */
.logo h1 {
    margin: 0;
}

.logo-link {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

.logo-link:hover {
    color: var(--primary-dark);
}

:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent-color: #f97316;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка сайта */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.phone-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.phone-btn:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
}

/* Приветственный блок */
.hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 24px;
    max-width: 800px;
    margin: 0 auto;
}

/* Вкладки */
.tabs-section {
    padding: 60px 0;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 40px;
    gap: 20px;
    padding-bottom: 15px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content-inner {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.tab-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
}

.tab-text {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Карточки услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.service-card:hover {
    background-color: #f0f4ff;
    border-color: #d1d9ff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.service-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.service-desc {
    color: var(--text-light);
    font-size: 15px;
}

/* Список проектов */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-item {
    background-color: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.project-item:hover {
    background-color: #f0f4ff;
    border-color: #d1d9ff;
    transform: translateX(10px);
}

.project-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
}

.project-location {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text-light);
    font-size: 15px;
}

/* Сертификаты */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.certificate-item {
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s;
    background-color: #e5e7eb;
}

.certificate-item:hover {
    opacity: 0.8;
}

.certificate-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Услуги лаборатории */
.laboratory-services {
    margin-top: 30px;
}

.lab-service-item {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    padding: 20px;
    background-color: #f9fafb;
    margin-bottom: 15px;
    border-radius: 8px;
}

.lab-service-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
}

.lab-service-desc {
    color: var(--text-light);
}

/* Контактная информация */
.contacts-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    line-height: 1.8;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.map-placeholder {
    height: 400px;
    background-color: #e5e7eb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

.map-note {
    font-size: 14px;
    margin-top: 10px;
    color: var(--text-light);
}

/* Футер */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-subtitle {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-text {
    color: #9ca3af;
    line-height: 1.8;
}

.footer-contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    color: #9ca3af;
}

/* Заголовок страницы */
.page-header {
    padding: 80px 0;
    text-align: center;
    color: white;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

/* Основное содержимое страниц */
.main-content {
    padding: 60px 0;
}

/* Страница услуг */
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-section {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.service-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon-large {
    font-size: 64px;
    margin-bottom: 20px;
}

.service-section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.service-section-text {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features li::before {
    content: '✓ ';
    color: var(--primary-color);
    font-weight: bold;
}

/* Страница проектов */
.projects-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.project-detail {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.project-detail-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.project-detail-location {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 15px;
}

.project-detail-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.project-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Страница сертификатов */
.certificates-page {
    margin-bottom: 40px;
}

.certificates-info {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    line-height: 1.8;
}

.certificates-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.certificate-item-page {
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s;
    background-color: #e5e7eb;
}

.certificate-item-page:hover {
    opacity: 0.8;
}

.certificate-item-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Страница лаборатории */
.laboratory-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.laboratory-about,
.laboratory-services-page {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.laboratory-section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
}

.laboratory-text {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.laboratory-subtitle {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin: 25px 0 15px;
}

.advantages-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-light);
}

.lab-service-page {
    background-color: #f9fafb;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.lab-service-page-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.lab-service-page-desc {
    color: var(--text-light);
    line-height: 1.8;
}

/* Кнопка возврата */
.back-to-home {
    margin-top: auto;
    text-align: center;
    margin-top: 40px;
}

.back-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    box-shadow: var(--shadow);
}

.back-btn:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
     box-shadow: var(--shadow-hover);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 90%;
    animation: modalopen 0.3s;
}

@keyframes modalopen {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent-color);
}

.modal-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Список проектов в вкладке */
.projects-list-container {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background-color: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 2px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.project-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e5e7eb;
}

.project-card-content {
    padding: 25px;
}

.project-card-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
}

.project-card-location {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.project-card-desc {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-card-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.project-card-btn:hover {
    background-color: var(--primary-dark);
}

/* Детальная информация об объекте */
.project-detail-container {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
}

.back-to-list-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-list-btn:hover {
    background-color: var(--primary-dark);
}

.project-detail-content {
    max-width: 1000px;
    margin: 0 auto;
}

.project-detail-header {
    margin-bottom: 30px;
}

.project-detail-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.project-detail-location {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 20px;
}

.project-detail-desc {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 30px;
}

.project-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.project-detail-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.project-detail-image:hover {
    opacity: 0.9;
}

.project-detail-info {
    background-color: #f9fafb;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.project-detail-info h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
}

.project-detail-info p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Контейнер для списка проектов на странице */
.projects-page-container {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* Стили для карты */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-container::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Адаптивность для карты */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 250px;
    }
}

/* Обертка для страницы виды работ */
.services-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 500px; /* Минимальная высота для контента */
}

/* Страница шкафов автоматизации */
.cabinets-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.cabinets-about,
.cabinets-services-page {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.cabinets-section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
}

.cabinets-text {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.cabinets-subtitle {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin: 25px 0 15px;
}

.cabinets-advantages {
    margin-top: 25px;
}

.cabinets-services-page {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cabinet-service-page {
    background-color: #f9fafb;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.cabinet-service-page-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.cabinet-service-page-desc {
    color: var(--text-light);
    line-height: 1.8;
}
/* Стили для вкладки "Шкафы автоматизации" */
.cabinets-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.cabinets-info-card-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s;
}

.cabinets-info-card-link:hover {
    transform: translateY(-5px);
}

.cabinets-info-card {
    background-color: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    height: 100%;
}

.cabinets-info-card:hover {
    background-color: #f0f4ff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.cabinets-info-card:hover .cabinets-info-title {
    color: var(--primary-dark);
}

.cabinets-info-title {
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.cabinets-info-desc {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

.cabinets-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background-color: #f0f4ff;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 20px;
}

.feature-text {
    color: var(--text-color);
    font-weight: 500;
}

/* Стили для вкладки "Лаборатория" */
.laboratory-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.lab-service-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s;
}

.lab-service-link:hover {
    transform: translateX(10px);
}

.lab-service-item {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    padding: 20px;
    background-color: #f9fafb;
    margin-bottom: 0;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    height: 100%;
}

.lab-service-item:hover {
    background-color: #f0f4ff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.lab-service-item:hover .lab-service-title {
    color: var(--primary-dark);
}

.lab-service-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.lab-service-desc {
    color: var(--text-light);
}


.laboratory-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.lab-service-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s;
}

.lab-service-link:hover {
    transform: translateX(10px);
}

.lab-service-item {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    padding: 20px;
    background-color: #f9fafb;
    margin-bottom: 0;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    height: 100%;
}

.lab-service-item:hover {
    background-color: #f0f4ff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.lab-service-item:hover .lab-service-title {
    color: var(--primary-dark);
}

.lab-service-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.lab-service-desc {
    color: var(--text-light);
}

/* Стили для вкладки "Виды работ" */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s;
}

.service-link:hover {
    transform: translateY(-5px);
}

.service-card {
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    height: 100%;
}

.service-card:hover {
    background-color: #f0f4ff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.service-card:hover .service-title {
    color: var(--primary-dark);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.service-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.service-desc {
    color: var(--text-light);
    font-size: 15px;
}

/* Стили для страницы проектов */
.projects-page-container {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.project-card-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s;
}

.project-card-link:hover {
    transform: translateY(-5px);
}

.project-card {
    background-color: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid var(--border-color);
    height: 100%;
}

.project-card:hover {
    background-color: #f0f4ff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.project-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e5e7eb;
}

.project-card-content {
    padding: 25px;
}

.project-card-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.project-card-link:hover .project-card-title {
    color: var(--primary-dark);
}


/* Стили для страницы деталей проекта */
.project-detail-page {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.project-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.project-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.3s;
    background-color: #e5e7eb;
}

.project-image:hover {
    opacity: 0.9;
}

.project-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 16px;
}

.project-info-block {
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
}

.project-info-block h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
}

.project-info-block p {
    color: var(--text-light);
    line-height: 1.8;
}

.back-to-projects {
    text-align: center;
    margin-top: 20px;
}

/* Адаптивность для изображений */
@media (max-width: 768px) {
    .project-images-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .project-detail-page {
        padding: 25px;
    }
    
    .project-image {
        height: 250px;
    }
    
    .project-info-block {
        padding: 20px;
    }
}

/* Стили для бургер-меню */
.burger-menu-btn {
    display: none; /* Скрыто на десктопе */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Стили для бургер-меню */
.burger-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.burger-line {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Стили для мобильного меню */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.7s ease;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    display: block;
    right: 0;
}

.mobile-nav-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.mobile-nav-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-nav-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu-item {
    margin-bottom: 15px;
}

.mobile-nav-menu-link {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.mobile-nav-menu-link:hover {
    background-color: #f0f4ff;
    color: var(--primary-color);
    padding-left: 20px;
}

.mobile-nav-menu-link.active {
    color: var(--primary-color);
    background-color: #f0f4ff;
}

.mobile-nav-menu-link.active::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.mobile-nav-contacts {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-nav-phone {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.mobile-nav-phone:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
}

.mobile-nav-info {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}