.collapse-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
}

.collapse-btn:hover h2 {
    opacity: 0.8;
}

.collapse-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.section-content {
    max-height: 10000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.collapse-btn .collapse-icon.rotated {
    transform: rotate(-90deg);
}

/* Профессии стили */
.profession-item {
    margin-bottom: 1rem;
}

.profession-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 105, 180, 0.05);
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: left;
    color: inherit;
    font-family: inherit;
    box-sizing: border-box;
}

.profession-header:hover {
    background: rgba(255, 105, 180, 0.1);
    border-color: rgba(255, 105, 180, 0.4);
}

.profession-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    background: linear-gradient(135deg, #ff69b4, #d12eb0);
    border-radius: 0.375rem;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
}

.profession-header-content {
    flex: 1;
    min-width: 0;
}

.profession-title {
    font-weight: 600;
    font-size: 1rem;
    color: #ff69b4;
    margin-bottom: 0.25rem;
}

.profession-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.profession-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    color: #ff69b4;
    transition: transform 0.3s ease;
    font-size: 0.8em;
    flex-shrink: 0;
}

.profession-header.open .profession-toggle {
    transform: rotate(-90deg);
}

.profession-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0;
}

.profession-header.open ~ .profession-details {
    max-height: 4000px;
    opacity: 1;
    padding: 1.5rem;
    background: rgba(255, 105, 180, 0.02);
    border: 1px solid rgba(255, 105, 180, 0.15);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    margin-top: -1px;
    box-sizing: border-box;
}

.profession-section {
    margin-bottom: 1.5rem;
}

.profession-section:last-child {
    margin-bottom: 0;
}

.profession-subtitle {
    font-weight: 600;
    color: #ff69b4;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.profession-list {
    list-style-position: inside;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    padding-left: 0;
    margin: 0;
}

.profession-list li {
    margin-bottom: 0.75rem;
}

.profession-list li:last-child {
    margin-bottom: 0;
}

/* Стили для регулярных пунктов правил (4.5 ЛИСА) */
.rule-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    background: linear-gradient(135deg, #ff69b4, #d12eb0);
    border-radius: 0.375rem;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
}

/* Дополнительные стили из styles.css */
.rules-container {
    background: linear-gradient(135deg, rgba(209, 46, 176, 0.05) 0%, rgba(209, 46, 176, 0.02) 100%);
    will-change: transform;
}

.rule-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(209, 46, 176, 0.2);
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
    will-change: background, border-color, transform;
}

.rule-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(209, 46, 176, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .rule-section {
        transition: background 0.25s ease, border-color 0.25s ease;
    }
    
    .rule-section:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 480px) {
    .rule-section:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.04);
    }
}

.rule-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(209, 46, 176, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
    will-change: background, border-color;
}

.rule-item:hover {
    background: rgba(209, 46, 176, 0.08);
    border-color: rgba(209, 46, 176, 0.25);
}

@media (max-width: 768px) {
    .rule-item:hover {
        background: rgba(209, 46, 176, 0.06);
        border-color: rgba(209, 46, 176, 0.2);
    }
}

@media (max-width: 480px) {
    .rule-item:hover {
        background: rgba(209, 46, 176, 0.04);
        border-color: rgba(209, 46, 176, 0.1);
    }
}

.rule-title {
    font-weight: 700;
    color: #d12eb0;
    margin-bottom: 4px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rule-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.warning-banner {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.15) 0%, rgba(255, 140, 0, 0.1) 100%);
    border-left: 4px solid #ff6b35;
    border-radius: 8px;
    will-change: opacity, transform;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
    .warning-banner {
        transition: opacity 0.25s ease;
    }
}

.section-title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(209, 46, 176, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #d12eb0, #ff69b4, transparent);
    width: 60px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d12eb0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.25s ease, color 0.25s ease;
    margin-bottom: 32px;
    will-change: transform, color;
}

.back-link:hover {
    transform: translateX(-4px);
    color: #ff69b4;
}

@media (max-width: 480px) {
    .back-link {
        font-size: 12px;
        margin-bottom: 24px;
    }
    
    .back-link:hover {
        transform: translateX(-2px);
    }
}

/* Стили для раскрываемых элементов в правилах */
.rule-details-collapsible {
    width: 100%;
}

.rule-details-collapsible summary {
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    color: #d12eb0;
    margin-bottom: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.rule-details-collapsible summary:hover {
    color: #ff69b4;
}

.rule-details-collapsible summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 8px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.rule-details-collapsible[open] summary::before {
    transform: rotate(90deg);
}

.rule-details-collapsible .rule-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.rule-details-collapsible .rule-description p {
    margin-bottom: 10px;
}

.rule-details-collapsible .rule-description p:last-child {
    margin-bottom: 0;
}

.rule-details-collapsible .rule-description ul {
    list-style-type: disc;
}

.rule-details-collapsible .rule-description li {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.75);
}

.rule-details-collapsible .rule-description strong {
    color: #ff69b4;
}
