.experiment-detail-container {
    max-width: 1450px;
    margin: 0 auto 48px auto;
    padding: 0 24px;
    font-family: 'Inter', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.laboratory-hero-card {
    background: #074d78;
    color: #ffffff;
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.laboratory-hero-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.laboratory-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 2.5rem;
    margin: 0;
    color: #ffffff;
    font-family: system-ui, sans-serif;
}

.laboratory-hero-icon img {
    width: 140px;
    height: auto;
    opacity: 0.4;
}

.btn-yellow {
    /*margin-top: 8px;*/
    background: #facc14;
    color: #1a2746;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    max-width: fit-content;
    font-family: system-ui,sans-serif;
}

.btn-yellow:hover {
    background: #fff700;
}

.laboratory-tabs-card {
    background: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.laboratory-tabs {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.laboratory-tabs .tab-btn {
    background: none;
    border: none;
    padding: 16px 24px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: system-ui, sans-serif;
    font-weight: 600;
    color: #737b8c;
    border-radius: 0;
    transition: color 0.2s ease;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    outline: none;
}

.laboratory-tabs .tab-btn.active {
    color: #2b303b;
    border-bottom-color: #074d78;
}

.laboratory-content-card {
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    padding: 32px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 1.1rem;
    color: #1f2937;
    margin-top: 8px;
}

.tab-content {
    min-height: 280px;
}

.laboratory-description {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 20px;
    font-family: system-ui, sans-serif;
}

.laboratory-description b {
    color: #2b303b;
    font-weight: 600;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
}

.laboratory-description span {
    color: #737b8c;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    text-transform: none;
}

.device-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

@media (max-width: 1100px) {
    .device-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .device-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .device-cards {
        grid-template-columns: 1fr;
    }
}

.device-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 12px 10px 12px;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    color: #1a2746;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s;
    gap: 5px;
}

.device-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
}

.device-card:hover {
    box-shadow: 0 4px 16px rgba(37,99,235,0.08);
}

.device-card-link {
    text-decoration: none;
    color: inherit;
}

.device-info-row {
    display: flex;
    gap: 6px;
    line-height: 1.3;
    font-family: system-ui, sans-serif;
}

.device-info-row b {
    color: #2b303b;
    font-weight: 600;
    font-size: 1rem;
}

.device-info-row span {
    color: #737b8c;
    text-transform: none;
}

.device-info-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.laboratory-link {
    color: #074d78;
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
}

.laboratory-link:hover,
.laboratory-link:focus,
.laboratory-link:active,
.laboratory-link:visited {
    text-decoration: underline;
    color: #074d78;
}

.back-link-wrapper {
    display: flex;
    justify-content: flex-start;
}

.back-link {
    color: #074d78;
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 8px 10px;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.back-link-icon {
    width: 18px;
    height: 18px;
}

.back-link:hover {
    background: #facc14;
    color: #074d78;
}

.device-rich-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: system-ui, sans-serif;
    margin-top: 20px;
}

.device-rich-text b {
    font-weight: 600;
    color: #2b303b;
    font-size: 1rem;
}

.device-rich-text-body {
    color: #737b8c;
    font-size: 1rem;
    line-height: 1.6;
}

.device-rich-text-body p {
    margin: 0 0 12px 0;
}

.device-rich-text-body p:last-child {
    margin-bottom: 0;
}

.device-rich-text-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.5rem 0;
}

.device-rich-text-body ul,
.device-rich-text-body ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.device-rich-text-body li {
    margin-bottom: 0.5rem;
}

.device-rich-text-body h1,
.device-rich-text-body h2,
.device-rich-text-body h3,
.device-rich-text-body h4,
.device-rich-text-body h5,
.device-rich-text-body h6 {
    margin: 1rem 0 0.5rem 0;
    color: #2b303b;
    font-weight: 600;
}

.device-rich-text-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.device-rich-text-body table th,
.device-rich-text-body table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.device-rich-text-body table th {
    background: #f8fafc;
    font-weight: 600;
    color: #2b303b;
}

.experiment-lab {
    display: flex;
    flex-direction: column;
    /*gap: 24px;*/
}

.experiment-lab .lab-info {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.experiment-lab .lab-info > div:first-child {
    min-width: 220px;
}

.lab-map-container {
    width: 100%;
    margin-top: 16px;
}

.lab-map-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.lab-map-iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

.lab-map-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
}

.lab-map-address {
    font-size: 1rem;
    color: #2b303b;
    line-height: 1.6;
    font-family: system-ui, sans-serif;
}

.lab-map-address strong {
    font-weight: 600;
    color: #1a2746;
    display: block;
    margin-bottom: 4px;
}

.lab-map-link {
    padding: 8px 16px;
    background: #074d78;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.lab-map-link:hover {
    background: #063d60;
    color: #ffffff;
}

@media (max-width: 900px) {
    .experiment-detail-container {
        padding: 12px 2vw;
    }

    .laboratory-hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .experiment-lab .lab-info {
        flex-direction: column;
        gap: 18px;
    }

    .lab-map-iframe {
        height: 350px;
    }

    .lab-map-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .device-cards {
        gap: 12px;
    }
}

@media (max-width: 700px) {
    .laboratory-content-card,
    .tab-content {
        min-height: 220px;
    }

    .lab-map-iframe {
        height: 300px;
    }

    .lab-map-info {
        flex-direction: column;
        gap: 12px;
    }

    .lab-map-link {
        width: 100%;
        text-align: center;
    }
}
