@font-face {
    font-family: 'Muller';
    src: url('../fonts/2i4PDvaQZ8aX.woff2') format('woff2'),
        url('../fonts/Fzz36MqEj3Ls.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muller';
    src: url('../fonts/EFwscLGVvb2B.woff2') format('woff2'),
        url('../fonts/cq3eShfpDZiY.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muller';
    src: url('../fonts/LEzi79KxTZsA.woff2') format('woff2'),
        url('../fonts/B1mqnjqgs9WU.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muller';
    src: url('../fonts/eC1oaik5iVDA.woff2') format('woff2'),
        url('../fonts/0F2AfTHpY90g.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muller';
    src: url('../fonts/K5hYDtDEIdcx.woff2') format('woff2'),
        url('../fonts/SLrhS4FdTDJW.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muller';
    src: url('../fonts/9wncfzmPm1Qs.woff2') format('woff2'),
        url('../fonts/IZfhp3dAEd7j.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Стили для редактируемых контентных блоков */
[id^="main-content-"] {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
}

[id^="main-content-"]:hover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

[id^="main-content-"]:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    background-color: rgba(0, 123, 255, 0.1);
}

/* Индикатор редактирования */
.editing-mode [id^="main-content-"] {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.editing-mode [id^="main-content-"]:hover {
    border-color: #218838;
    background-color: rgba(40, 167, 69, 0.1);
}

/* Стили для админки */
.admin-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.admin-panel.collapsed {
    height: 50px;
    overflow: hidden;
}

.admin-panel.collapsed .admin-content {
    display: none;
}

.admin-header {
    background: #007bff;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.admin-header h3 {
    margin: 0;
    font-size: 18px;
}

.toggle-admin-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.toggle-admin-btn:hover {
    background: rgba(255,255,255,0.3);
}

.admin-content {
    padding: 20px;
}

.admin-section {
    margin-bottom: 20px;
}

.admin-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.admin-input, .admin-textarea, .admin-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.admin-input:focus, .admin-textarea:focus, .admin-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.admin-textarea {
    min-height: 80px;
    resize: vertical;
}

.admin-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.save-btn, .reset-btn, .edit-mode-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.save-btn {
    background: #28a745;
    color: white;
}

.save-btn:hover {
    background: #218838;
}

.reset-btn {
    background: #dc3545;
    color: white;
}

.reset-btn:hover {
    background: #c82333;
}

.edit-mode-btn {
    background: #ffc107;
    color: #212529;
}

.edit-mode-btn:hover {
    background: #e0a800;
}

.edit-mode-btn.active {
    background: #dc3545;
    color: white;
}

.edit-mode-btn.active:hover {
    background: #c82333;
}

/* Кнопка для открытия админки */
.admin-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    z-index: 1001;
    transition: all 0.3s ease;
}

.admin-toggle-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.admin-toggle-btn.hidden {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .admin-panel {
        width: 90%;
        right: 5%;
        left: 5%;
    }
    
    .admin-toggle-btn {
        right: 10px;
        top: 10px;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .text-content-area {
        margin: 10px;
        padding: 15px;
    }
}

