/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #e9e5da;
    --primary-color: #4a6fa5;
    --primary-dark: #3a5a8a;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.2s ease;
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ===== PACK PAGE ===== */
.pack-header {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.agency-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.agency-logo {
    height: 40px;
    width: auto;
}

.agency-text h2 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.project-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.client-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

.project-description {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    margin-top: 1rem;
}

/* Основной контент */
.pack-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .pack-content {
        grid-template-columns: 1fr;
    }
}

/* Левая колонка - список блогеров */
.bloggers-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
    max-height: 80vh;
}

.bloggers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.bloggers-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selection-counter {
    font-size: 0.9rem;
    color: var(--text-light);
}

.selection-counter strong {
    color: var(--primary-color);
}

/* Список блогеров - КОМПАКТНЫЙ */
.bloggers-list {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.bloggers-list::-webkit-scrollbar {
    width: 6px;
}

.bloggers-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.bloggers-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.blogger-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 15px; /* Добавляем отступ снизу */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blogger-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Чекбокс */
.blogger-select {
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.blogger-select input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.blogger-info {
    flex: 1;
}

.blogger-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-all;
    display: block;
    margin-bottom: 0.5rem;
}

.blogger-link:hover {
    text-decoration: underline;
}

.blogger-details {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.blogger-details span:contains("Гарант:") {
    color: #28a745;
    font-weight: 600;
}

.blogger-price {
    font-weight: 700;
    color: var(--text-dark);
}

.agency-notes {
    background: #fff9db;
    border-left: 3px solid #ffc107;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #856404;
}

/* Пометки клиента */
.client-notes-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.add-note-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.add-note-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.note-editor {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.note-input {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.note-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.note-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.note-save-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-save-btn:hover {
    background: var(--primary-dark);
}

.note-status {
    font-size: 0.85rem;
    font-weight: 500;
}

.current-note {
    background: #e9ecef;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* Правая колонка - выбранные блогеры */
.selection-panel {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.panel-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Список выбранных */
.selected-list {
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.selected-list::-webkit-scrollbar {
    width: 6px;
}

.selected-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.selected-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.selected-items {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.empty-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: var(--text-light);
    text-align: center;
}

.empty-selection i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.empty-selection p {
    margin: 0;
    font-size: 0.9rem;
}

/* Выбранный блогер */
.selected-item {
    background: white;
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.selected-info {
    flex: 1;
    min-width: 0;
}

.selected-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-all;
    display: block;
    margin-bottom: 0.25rem;
}

.selected-link:hover {
    text-decoration: underline;
}

.selected-details {
    font-size: 0.85rem;
    color: var(--text-light);
}

.selected-price {
    font-weight: 600;
    color: var(--text-dark);
}

.remove-selected {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remove-selected:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Управление */
.panel-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.control-btn {
    padding: 0.75rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.control-btn.select-all {
    background: var(--success-color);
    color: white;
}

.control-btn.select-all:hover {
    background: #218838;
}

.control-btn.clear {
    background: #f8f9fa;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.control-btn.clear:hover {
    background: #e9ecef;
}

.control-btn.copy {
    background: var(--primary-color);
    color: white;
}

.control-btn.copy:hover {
    background: var(--primary-dark);
}

/* Помощь */
.panel-help {
    background: #e7f3ff;
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
}

.panel-help h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-help ol {
    padding-left: 1.25rem;
    margin: 0;
}

.panel-help li {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* Пустое состояние */
.empty-bloggers {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.empty-bloggers i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-bloggers h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--danger-color);
}

.notification.info {
    border-left-color: var(--primary-color);
}

.notification i {
    font-size: 1.25rem;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i {
    color: var(--danger-color);
}

.notification.info i {
    color: var(--primary-color);
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .pack-header {
        padding: 1rem;
    }
    
    .agency-info {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .bloggers-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .selection-counter {
        text-align: center;
    }
    
    .blogger-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .panel-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .panel-controls {
        grid-template-columns: 1fr;
    }
    
    .selected-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .notification {
        left: 10px;
        right: 10px;
        top: 10px;
    }
}
/* Шапка пакета */
.pack-header {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.agency-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.agency-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agency-text h2 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.tagline {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.project-info {
    text-align: right;
}

.project-title {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.client-info {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.agency-message {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    line-height: 1.6;
}

.agency-message p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.agency-message p:last-child {
    margin-bottom: 0;
}

.agency-message strong {
    color: var(--primary-color);
}

.project-description {
    background: #e7f3ff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--primary-color);
}

.project-description h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.project-description p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.5;
}

.add-note-btn.active {
    background: #f0f4ff !important;
    color: #4a6fa5 !important;
    border-color: #4a6fa5 !important;
}
/* ===== ADMIN PAGES (edit.html, create.html) ===== */

/* Логотип на странице */
.page-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.page-logo img {
    height: 40px;
    width: auto;
    max-width: 150px;
}

/* Заголовок страницы */
.page-header {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subtitle {
    color: var(--text-light);
    margin: 0;
}

/* Карточка блогера для админа */
.blogger-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.blogger-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.blogger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.blogger-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.remove-blogger {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 1.1rem;
}

.remove-blogger:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Информация о блогере в карточке */
.blogger-info {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
}

.info-row {
    display: flex;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-row .label {
    font-weight: 600;
    min-width: 120px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-row .value {
    flex: 1;
    word-break: break-all;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.info-row .value a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-row .value a:hover {
    text-decoration: underline;
}

/* Счетчик блогеров */
.counter {
    text-align: center;
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.counter span {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    background: #f8f9fa;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Заголовок секции */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

/* Формы для админа */
.edit-page, .create-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.form-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .info-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .info-row .label {
        min-width: auto;
    }
}

/* Кнопки действий формы */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Модальное окно для добавления блогера */
.blogger-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
}

.close-modal:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Улучшенные поля формы */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Состояние загрузки */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Адаптивность для админ-страниц */
@media (max-width: 768px) {
    .edit-page, .create-page {
        padding: 10px;
    }
    
    .page-header {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Стиль для номеров блогеров */
.blogger-number {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-right: 8px;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}
/* Category Card */
.detail-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: var(--fokinsky-cream-light);
    border-radius: 8px;
    border: 1px solid var(--fokinsky-cream-dark);
}

.category-card .card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fokinsky-cream);
    color: var(--fokinsky-brick);
    border-radius: 6px;
    font-size: 14px;
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.card-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Для гарантии с таким же форматом */
.detail-chip.guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    color: #10b981;
    font-size: 13px;
}

.detail-chip.guarantee i {
    color: #10b981;
    font-size: 14px;
}
@media (max-width: 480px) {
    /* Специфичные стили для телефонов */
    .blogger-link {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .link-text {
        font-size: 14px;
        word-break: break-all;
    }
    
    .blogger-price-tag {
        margin-top: 8px;
        align-self: flex-start;
    }

     .content-sidebar {
        order: -1; /* Панель будет сверху */
        margin-bottom: 20px;
    }
    
    .selection-panel {
        position: static; /* Убрать sticky */
    }

     .project-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .meta-item {
        font-size: 13px;
    }

    .btn-control, .btn-note-toggle, .btn {
        min-height: 44px; /* Минимальный размер для касания */
        padding: 12px 16px;
    }
    
    .checkbox-custom {
        width: 32px;
        height: 32px; /* Больше для пальцев */
    }

     .message-content p, .description-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .project-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
}
