/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f8d;
    --primary-dark: #1e4261;
    --primary-light: #3d7bb3;
    --secondary-color: #4a6fa5;
    --accent-color: #5b8fc7;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

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

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Первый экран */
.hero {
    position: relative;
    color: var(--bg-white);
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 95, 141, 0.85) 0%, rgba(74, 111, 165, 0.85) 100%),
                url('images/Hero-bg.jpg');
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Секции */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* Услуги */
.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image-dual {
    display: flex;
    gap: 0;
    height: 250px;
}

.service-image-dual img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card .service-title {
    padding: 30px 40px 20px 40px;
    margin-bottom: 0;
}

.service-card .service-list {
    padding: 0 40px 40px 40px;
}

.service-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-dark);
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* О лаборатории */
.laboratory {
    background-color: var(--bg-white);
}

.laboratory-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
    align-items: start;
}

.laboratory-images {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
}

.laboratory-image {
    width: 100%;
    height: 170px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.laboratory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.laboratory-image:hover img {
    transform: scale(1.1);
}

.laboratory-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.laboratory-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-light);
}

.laboratory-text p {
    margin-bottom: 12px;
}

.laboratory-text p:last-child {
    margin-bottom: 0;
}

.laboratory-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.feature-item {
    padding: 18px;
    background-color: var(--bg-light);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.feature-item h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 18px;
    margin: 0;
}

/* Преимущества */
.advantages {
    background-color: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-item {
    background-color: var(--bg-white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.advantage-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.advantage-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Благодарственные письма */
.testimonials {
    background-color: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-item {
    display: block;
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-item:hover img {
    transform: scale(1.02);
}

/* FAQ */
.faq {
    background-color: var(--bg-white);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.faq-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Breadcrumbs */
nav[aria-label="Хлебные крошки"] {
    padding: 20px 0;
    background-color: var(--bg-light);
}

nav[aria-label="Хлебные крошки"] ol {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
}

nav[aria-label="Хлебные крошки"] a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav[aria-label="Хлебные крошки"] a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Контакты */
.contacts {
    background-color: var(--bg-light);
}

.contacts-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.contact-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item .contact-link {
    display: inline-block;
    white-space: nowrap;
}

.contact-text {
    color: var(--text-light);
    font-size: 16px;
}

/* Футер */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .logo h1 {
        font-size: 16px;
        white-space: nowrap;
        margin-bottom: 0;
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        font-size: 13px;
        width: 100%;
        max-width: 400px;
    }

    .nav-link {
        padding: 6px 8px;
        text-align: center;
        white-space: nowrap;
    }

    .header-contacts {
        display: none;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .container {
        padding: 0 10px;
    }

    .service-card .service-title {
        padding: 30px 30px 20px 30px;
        margin-bottom: 0;
    }    

    .section-title {
        font-size: 28px;
        padding: 0 5px;
        word-wrap: break-word;
        hyphens: auto;
    }

    .laboratory-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .laboratory-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .laboratory-image {
        height: 140px;
    }

    .laboratory-info {
        gap: 20px;
    }

    .service-image {
        height: 200px;
    }

    .service-image-dual {
        height: 200px;
        gap: 2px;
    }

    .services-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contacts-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 16px;
    }


    .service-card .service-title {
        padding: 30px 5px 20px 5px;
        margin-bottom: 0;
    }    
    .section-title {
        font-size: 24px;
        padding: 0 3px;
    }

    .service-card,
    .advantage-item {
        padding: 25px;
    }

    .nav {
        flex-direction: column;
        gap: 10px;
    }
}

