/* =========================
   ОСНОВНЫЕ НАСТРОЙКИ
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f8fa;
    color: #1f2933;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 25px;
    padding-right: 25px;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}


/* =========================
   HEADER
   ========================= */

.header {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    color: #12304a;
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #0f766e;
    color: #ffffff;
    border-radius: 10px;
    font-size: 24px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 18px;
    letter-spacing: 1.5px;
}

.logo-text small {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.nav a {
    position: relative;
    color: #334155;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #0f766e;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #0f766e;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}


/* =========================
   HERO
   ========================= */

.hero {
    position: relative;
    height: 560px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(5, 25, 40, 0.72),
        rgba(5, 25, 40, 0.35),
        rgba(5, 25, 40, 0.10)
    );
}

.hero img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 8%;
    z-index: 2;
    max-width: 650px;
    transform: translateY(-50%);
    color: #ffffff;
}

.hero-text h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 58px;
    line-height: 1.1;
}

.hero-text p {
    margin: 0;
    max-width: 600px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.6;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-button {
    display: inline-block;
    padding: 14px 28px;
    background: #0f766e;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #0f766e;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background: #115e59;
    border-color: #115e59;
    transform: translateY(-2px);
}

.hero-button-outline {
    background: transparent;
    border-color: #ffffff;
}

.hero-button-outline:hover {
    background: #ffffff;
    color: #12304a;
    border-color: #ffffff;
}


/* =========================
   ОБЩИЕ ЗАГОЛОВКИ
   ========================= */

.section-label {
    display: inline-block;
    margin-bottom: 15px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 50px;
}

.section-heading h2 {
    margin: 0 0 18px;
    color: #12304a;
    font-size: 40px;
    line-height: 1.2;
}

.section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 17px;
    line-height: 1.6;
}


/* =========================
   О ЛАБОРАТОРИИ
   ========================= */

.about {
    padding: 90px 0;
    background: #f8fafc;
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-text h2 {
    margin: 0 0 25px;
    color: #12304a;
    font-size: 40px;
    line-height: 1.2;
}

.about-text p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
}

.about-button {
    display: inline-block;
    margin-top: 15px;
    padding: 13px 26px;
    background: #0f766e;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.about-button:hover {
    background: #115e59;
    transform: translateY(-2px);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    padding: 25px;
    background: #ffffff;
    border-left: 4px solid #0f766e;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.06);
}

.feature-number {
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
}

.feature h3 {
    margin: 8px 0;
    color: #12304a;
    font-size: 21px;
}

.feature p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.5;
}


/* =========================
   УСЛУГИ
   ========================= */

.services {
    padding: 90px 0;
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.service-card {
    position: relative;
    padding: 35px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #0f766e;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-bottom: 25px;
    background: #0f766e;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.service-card h3 {
    margin: 0 0 20px;
    color: #12304a;
    font-size: 21px;
    line-height: 1.4;
}

.service-card a {
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-card a:hover {
    color: #115e59;
}


/* =========================
   ПРАЙС
   ========================= */

.price-list {
    margin-top: 80px;
    padding: 60px 0 20px;
    border-top: 1px solid #e2e8f0;
}

.price-heading {
    margin-bottom: 45px;
}

.price-category {
    max-width: 1000px;
    margin: 0 auto 45px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.price-category h3 {
    margin: 0;
    padding: 22px 28px;
    background: #f1f5f9;
    color: #12304a;
    font-size: 21px;
}

.price-category h4 {
    margin: 0;
    padding: 18px 28px 10px;
    color: #0f766e;
    font-size: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 18px 28px;
    border-top: 1px solid #e2e8f0;
    color: #475569;
    line-height: 1.5;
}

.price-row strong {
    flex-shrink: 0;
    color: #12304a;
    font-size: 17px;
    white-space: nowrap;
}


/* =========================
   ОБОРУДОВАНИЕ
   ========================= */

.equipment {
    padding: 90px 0;
    background: #f8fafc;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.equipment-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.equipment-card img {
    width: 100%;
    height: 260px;
    display: block;
    padding: 15px;
    background: #ffffff;
    object-fit: contain;
}

.equipment-info {
    padding: 25px;
}

.equipment-info > span {
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
}

.equipment-info h3 {
    margin: 10px 0 12px;
    color: #12304a;
    font-size: 21px;
}

.equipment-info p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}


/* =========================
   КАК ПРОХОДЯТ ИССЛЕДОВАНИЯ
   ========================= */

.research-process {
    padding: 90px 0;
    background: #ffffff;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.process-card {
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: #0f766e;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.process-photo {
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #e2e8f0;
}

.process-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.process-info {
    padding: 22px 25px 25px;
}

.process-info span {
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.process-info h3 {
    margin: 9px 0 12px;
    color: #12304a;
    font-size: 20px;
}

.process-info p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}


/* =========================
   КОМАНДА
   ========================= */

.team {
    padding: 90px 0;
    background: #ffffff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.team-card {
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.team-photo {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #e2e8f0;
}

.team-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.team-card:nth-child(1) .team-photo img,
.team-card:nth-child(2) .team-photo img,
.team-card img[src*="doctor.jpeg"] {
    object-position: center top;
}

.team-info {
    padding: 22px 25px;
}

.team-info span {
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.team-info h3 {
    margin: 9px 0 0;
    color: #12304a;
    font-size: 20px;
}


/* =========================
   КОНТАКТЫ
   ========================= */

.contacts {
    padding: 75px 0;
    background: #12304a;
}

.contacts-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.contacts-text h2 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 40px;
}

.contacts-text p {
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.7;
}

.contacts .section-label {
    color: #5eead4;
}

.contacts-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    min-width: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.contact-number {
    color: #5eead4;
    font-size: 13px;
    font-weight: 700;
}

.contact-item h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 17px;
}

.contact-item p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.5;
}

.contact-item a {
    color: #cbd5e1;
    text-decoration: none;
}

.contact-item a:hover {
    color: #5eead4;
}

.contact-phone {
    margin-bottom: 12px !important;
}

.contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-actions a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s;
}

.contact-call {
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1 !important;
}

.contact-whatsapp {
    background: rgba(94, 234, 212, 0.15);
    color: #5eead4 !important;
}

.contact-actions a:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}


/* =========================
   FOOTER
   ========================= */

.footer {
    background: #0b1f33;
    color: #cbd5e1;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
}

.footer-brand {
    margin-left: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo > span:last-child {
    display: flex;
    flex-direction: column;
}

.footer-logo strong {
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 1.5px;
}

.footer-logo small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
}

.footer-brand > p {
    max-width: 350px;
    color: #94a3b8;
    line-height: 1.6;
}

.footer h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 17px;
}

.footer p {
    margin: 0 0 9px;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}


/* =========================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================= */

@media (max-width: 768px) {

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* HEADER */

    .header-container {
        min-height: 120px;
        padding-top: 18px;
        padding-bottom: 18px;
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        max-width: 100%;
    }

    .logo-text strong {
        font-size: 16px;
    }

    .logo-text small {
        font-size: 10px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 16px;
        margin-left: 0;
        padding: 5px 0;
    }

    .nav a {
        font-size: 14px;
        white-space: nowrap;
    }

    .nav a::after {
        bottom: -4px;
    }


    /* HERO */

    .hero {
        height: 470px;
    }

    .hero img {
        height: 470px;
    }

    .hero::before {
        background: rgba(5, 25, 40, 0.55);
    }

    .hero-text {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .hero-text h1 {
        font-size: 38px;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-buttons {
        gap: 10px;
        margin-top: 25px;
    }

    .hero-button {
        padding: 12px 20px;
        font-size: 14px;
    }


    /* ОБЩИЕ ЗАГОЛОВКИ */

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2,
    .about-text h2,
    .contacts-text h2 {
        font-size: 32px;
    }


    /* ABOUT */

    .about {
        padding: 65px 0;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }


    /* SERVICES */

    .services {
        padding: 65px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 28px;
    }

    .service-card h3 {
        font-size: 19px;
    }


    /* PRICE */

    .price-list {
        margin-top: 55px;
        padding-top: 45px;
    }

    .price-category {
        margin-bottom: 30px;
    }

    .price-category h3 {
        padding: 18px 20px;
        font-size: 19px;
    }

    .price-category h4 {
        padding-left: 20px;
    }

    .price-row {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 16px 20px;
        gap: 8px 15px;
        font-size: 14px;
    }

    .price-row span {
        flex: 1 1 100%;
    }

    .price-row strong {
        margin-left: auto;
        font-size: 15px;
    }


    /* EQUIPMENT */

    .equipment {
        padding: 65px 0;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .equipment-card img {
        height: 250px;
    }


    /* RESEARCH */

    .research-process {
        padding: 65px 0;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-photo {
        height: 250px;
    }


    /* TEAM */

    .team {
        padding: 65px 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-photo {
        height: 360px;
    }


    /* CONTACTS */

    .contacts {
        padding: 65px 0;
    }

    .contacts-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts-info {
        grid-template-columns: 1fr;
    }

    .contact-item {
        min-width: 0;
    }

    .contact-item p {
        overflow-wrap: anywhere;
        word-break: break-word;
    }


    /* FOOTER */

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 45px 20px;
    }

    .footer-brand {
        margin-left: 0;
    }

    .footer p {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}