/* Общие стили */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4a4a4a;
    overflow-x: hidden;
}

/* Контейнеры для Астольфо (фон) */
.bg-astolfo-left, .bg-astolfo-right {
    position: fixed;
    bottom: 0;
    z-index: -1;
    width: 300px;
    height: 500px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
    opacity: 0.6;
    pointer-events: none;
}

.bg-astolfo-left { 
    left: 0; 
    background-image: url("img/Без названия.jpg"); 
    background-size: cover;
    width: 30%;
    height: 100vh;
    opacity: 0.8;
}
.bg-astolfo-right { 
    right: 0; 
    background-image: url("img/пopнyшкa с фембоями 02.jpg"); 
    background-size: cover;
    width: 35%;
    height: 100vh;
    opacity: 0.8;
}

/* Стеклянный блок */
.glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(244, 143, 177, 0.3);
    text-align: center;
    max-width: 800px;
    width: 90%;
    margin: 20px;
}

h1, h2 {
    color: #d81b60;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

/* Кнопки и сетка */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.btn {
    display: block;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(216, 27, 96, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: #ad1457;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #f06292;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(240, 98, 146, 0.4);
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #d81b60;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.6);
}

.nav-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

body.lab-page {
    display: block;
    padding: 40px 20px;
    min-height: 100vh;
}

.lab-panel {
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

.lab-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(216, 27, 96, 0.2);
}

.lab-tag {
    display: inline-block;
    background: rgba(216, 27, 96, 0.12);
    color: #ad1457;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.lab-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 30px;
}

.lab-nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lab-section {
    margin-top: 25px;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
}

.lab-section h3 {
    margin-top: 0;
    color: #d81b60;
    font-size: 1.25rem;
}

.lab-section p,
.lab-section li {
    color: #4a4a4a;
    line-height: 1.7;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.lab-card {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(216, 27, 96, 0.15);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(244, 143, 177, 0.12);
}

.lab-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #ad1457;
}

.lab-card ul {
    padding-left: 20px;
    margin: 0;
}

.lab-footer {
    margin-top: 30px;
    text-align: center;
}