/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark: #28282a;
    --color-gray: #8f8f8f;
    --color-light-gray: #f5f5f5;
    --color-white: #ffffff;
    --color-green: #62c584;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

.text-gray {
    color: var(--color-gray);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--color-dark);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    white-space: nowrap;
}


.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-dark);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.header-btn {
    white-space: nowrap;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-size: 14px;
    color: var(--color-dark);
    position: relative;
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    color: var(--color-white);
}

.hero-label {
    font-size: 14px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.hero-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--color-white);
}

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

.hero-description {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--color-white);
    font-size: 16px;
    text-decoration: underline;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-label {
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    display: inline-block;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--color-dark);
}

.section-title {
    font-size: 38px;
    line-height: 1.3;
    font-weight: 400;
}

.section-link {
    margin-top: 20px;
    display: inline-block;
    color: var(--color-dark);
    font-size: 16px;
    text-decoration: underline;
}

/* Stats Section */
.stats {
    background-color: var(--color-light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    padding: 20px 0;
    border-top: 1px solid rgba(40, 40, 42, 0.1);
}

.stat-number {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 14px;
    color: var(--color-gray);
}

.stats-footer {
    font-size: 20px;
    text-align: center;
    margin-top: 40px;
}

/* Products & Services */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--color-white);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

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

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--color-dark);
}

.product-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 400;
}

.product-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-gray);
    margin-bottom: 15px;
}

.product-link {
    font-size: 14px;
    color: var(--color-dark);
    text-decoration: underline;
}

/* Prices Section */
.prices {
    padding: 80px 0;
    background-color: var(--color-white);
}


.prices-table {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.price-row:last-of-type {
    border-bottom: none;
}

.price-name {
    font-size: 16px;
    color: var(--color-dark);
    flex: 1;
}

.price-value {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-dark);
    white-space: nowrap;
    margin-left: 20px;
}


.prices-footer {
    background-color: var(--color-dark);
    border-radius: 8px;
    padding: 40px;
    margin-top: 0;
}

.prices-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.prices-footer-text {
    flex: 1;
}

.prices-footer-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 10px;
}

.prices-footer-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.prices-footer-description a {
    color: var(--color-white);
    text-decoration: underline;
}

.prices-footer-btn {
    white-space: nowrap;
}

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

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Projects Section */
.projects {
    background-color: var(--color-light-gray);
}

.projects-slider {
    position: relative;
}

.project-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.project-image {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title {
    font-size: 29px;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 400;
}

.project-description {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-gray);
}

.project-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.project-stat {
    font-size: 14px;
}

.stat-value {
    font-weight: 500;
}

.project-more {
    background: none;
    border: none;
    color: var(--color-dark);
    font-size: 17px;
    text-decoration: underline;
    cursor: pointer;
    font-family: var(--font-primary);
}

/* Approach Section */
.approach-intro {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 60px;
    max-width: 600px;
}

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

.approach-card {
    padding: 30px;
    background-color: var(--color-light-gray);
    border-radius: 8px;
}

.approach-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.approach-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.approach-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 400;
}

.approach-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-gray);
}

/* Process Section */
.process {
    position: relative;
    padding: 100px 0;
    color: var(--color-white);
}

.process-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.process-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.process .section-header {
    color: var(--color-white);
}

.process .section-label::before {
    background-color: var(--color-white);
}

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

.process-step {
    position: relative;
}

.step-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 15px;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.step-text {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Laboratory Section */
.laboratory {
    background-color: var(--color-light-gray);
}

.laboratory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.laboratory-card {
    padding: 40px;
    background-color: var(--color-white);
    border-radius: 8px;
}

.laboratory-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.laboratory-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.laboratory-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 400;
}

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

/* Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--color-light-gray);
    border-radius: 8px;
    height: 180px;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* CTA Section */
.cta {
    position: relative;
    padding: 100px 0;
    color: var(--color-white);
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.cta-title {
    font-size: 38px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 400;
}

.cta-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
}

.cta-btn {
    margin-top: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label .link {
    color: var(--color-dark);
    text-decoration: underline;
}

.cta .link {
    color: var(--color-white);
}

/* Contacts Header Section */
.contacts-header {
    padding: 60px 0 30px;
    background-color: var(--color-white);
}

/* Contacts Section */
.contacts {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
    padding-top: 0;
}

.contacts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.contacts-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacts-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contacts-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contacts-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(40, 40, 42, 0.85) 0%, rgba(40, 40, 42, 0.6) 100%);
    z-index: 1;
}

.contacts-info {
    position: relative;
    z-index: 2;
    padding: 60px;
    color: var(--color-white);
}

.contacts-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--color-white);
}

.contacts-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}

.contact-item-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.contact-item a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-item a:hover {
    opacity: 0.8;
}

.contacts-right {
    position: relative;
    min-height: 600px;
}

.yandex-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

/* Footer */
.footer {
    background-color: var(--color-white);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-top: 0;
}

.footer .header-top {
    padding: 0;
}

.footer .mobile-menu-toggle {
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--color-dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 400;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form input {
    padding: 12px 16px;
    font-size: 12px;
    font-family: var(--font-primary);
    border: none;
    border-radius: 4px;
    background-color: var(--color-light-gray);
    color: var(--color-dark);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-left {
        flex: 1;
        min-width: 0;
    }

    .header-right {
        gap: 10px;
    }

    .header-contact span {
        display: none;
    }

    .header-btn {
        font-size: 12px;
        padding: 10px 16px;
    }

    .nav {
        display: none;
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        border-top: none;
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }

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

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

    .section-title {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .project-slide {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-image {
        height: 300px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .laboratory-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .footer .header-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer .header-contact span {
        display: inline;
    }

    .footer .header-btn {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-text {
        font-size: 16px;
    }

    .prices {
        padding: 60px 0;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 0;
    }

    .price-value {
        margin-left: 0;
        font-size: 20px;
    }

    .prices-footer {
        padding: 30px 20px;
    }

    .prices-footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .prices-footer-title {
        font-size: 20px;
    }

    .prices-footer-description {
        font-size: 14px;
    }

    .prices-footer-btn {
        width: 100%;
    }
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-dark);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .header-top {
        gap: 20px;
    }

    .header-right {
        gap: 15px;
    }

    .nav {
        gap: 15px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .contacts-header {
        padding: 40px 0 20px;
    }

    .contacts-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .contacts-left {
        min-height: 350px;
    }

    .contacts-info {
        padding: 30px 20px;
    }

    .contacts-title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .contacts-details {
        gap: 20px;
    }

    .contact-item {
        font-size: 16px;
        gap: 12px;
    }

    .contact-item-icon {
        width: 20px;
        height: 20px;
    }

    .contacts-right {
        min-height: 350px;
    }

    .yandex-map {
        min-height: 350px;
    }
}

