/* site.css – урезанная версия style.css редактора */
:root {
    --primary-color: #00c853;
    --primary-dark: #009624;
    --primary-light: #02c852;
    --bg-primary: #1e1e1e; /*#3a3a3a*/
    --bg-secondary: #2d2d2d;
    --bg-hover: #3d3d3d;
    --bg-tertiary: #1a1a1a;
    --text-primary: #fff;
    --text-secondary: #aaa;
    --border-primary: rgba(255, 255, 255, 0.1);
    --hover-overlay: rgb(54, 54, 54);
    --active-overlay: rgba(255, 255, 255, 0.15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --border-radius: 6px;
    --a-color: #02c852;
}

/* Прижимаем футер к низу */
html, body {
    height: 100%;
}

footer {
    margin-top: auto;
}
body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--a-color);
    text-decoration: none;
}

.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}


.text-success { color: var(--primary-color); }
.text-muted { color: var(--text-secondary); }
.alert-warning {
    background: rgba(255, 152, 0, 0.2);
    border-left: 4px solid #ff9800;
    color: var(--text-primary);
}
/* Навигация (аналог navbar редактора, но без тулбара) */
.navbar {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-light);
    text-decoration: none;
}
.logo i { margin-right: 12px; color: var(--primary-color); }
.nav-links a {
    color: #ddd;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links .btn-primary {
    padding: 5px 12px;
    background: var(--primary-color);
    border-radius: 4px;
    color: white;
}

.card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: transform 0.3s;
    border: 1px solid var(--border-primary);
}
.card:hover { transform: translateY(-5px); background: var(--bg-hover);}
.card i { color: var(--primary-color);  }
/* Формы */
.form-group {
    margin-bottom: 10px;
    margin-top: 10px;
    display: flex;
    gap: 20px;
    }


/* Кнопки */
.btn, .btn-primary, .btn-secondary, .btn-small, .btn-danger {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-small { padding: 6px 12px; font-size: 12px; }
.btn-primary {
    background: var(--primary-color);
    color: white;
}
.btn-primary:hover, .btn-small:hover { background: var(--primary-dark); }
.btn-secondary {
    background: var(--hover-overlay);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-danger {
    background: #dc3545;
    color: white;
}
.btn-danger i
{
    color: white;
}
.btn-danger:hover {
    background: #c82333;
}

/* Карточки и сетка */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.linear-list
{
    display: flex;
    gap: 20px;
    margin: 40px 0;
    overflow: auto;
}

form label { margin-bottom: 5px; font-weight: bold; }
form input, form textarea, .modal-input, .modal-select {
   /* width: 100%;*/
    padding: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 4px;
}


.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    margin: 30px 0;
}
.pagination .btn-small {
    padding: 5px 12px;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-primary);
}
th { background: var(--bg-tertiary); }
/* Уведомления */
.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.alert-success { background: #1e4620; color: #c8e6c9; border: 1px solid #2e7d32; }
.alert-error { background: #4a1c1c; color: #ffcdd2; border: 1px solid #c62828; }
.alert-info { background: #1c3a4a; color: #b3e5fc; border: 1px solid #0288d1; }
/* Hero-блок и призыв */
.hero {
    text-align: center;
    padding: 50px 20px;
}
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero-buttons { margin-top: 30px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cta {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-tertiary);
    margin-top: 40px;
}
/* Футер */
footer {
    background: var(--bg-tertiary);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    border-top: 1px solid var(--border-primary);
}
/* Адаптивность */
@media (max-width: 768px) {
    .navbar { flex-direction: column; height: auto; padding: 10px; }
    .nav-links { margin-top: 10px; }
    .hero h1 { font-size: 2rem; }
}


/* Карусель публичных проектов */
.public-projects-carousel {

}
.public-projects-carousel h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}
.public-projects-carousel > .container > p {
    text-align: center;
    color: var(--text-muted, #6c757d);
    margin-bottom: 2rem;
}
.carousel-wrapper {
    overflow-x: auto;
    padding: 1rem 0.5rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    margin: 0 auto;
}
.carousel-item {
    flex: 0 0 200px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.carousel-item .project-thumbnail {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #adb5bd;
}
.carousel-item .project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-item .project-info {
    padding: 0.75rem 1rem;
    text-align: center;
}
.carousel-item .project-info strong {
    display: block;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.carousel-item .project-info small {
    color: var(--text-muted, #6c757d);
    font-size: 0.75rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 160px;
    }
    .carousel-item .project-thumbnail {
        height: 120px;
    }
}


/* Страница тарифов */
.pricing-header {
    text-align: center;
    margin: 40px 0 20px;
}
.pricing-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.pricing-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.pricing-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-primary);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.pricing-card-header {
    background: var(--bg-tertiary);
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-primary);
}
.pricing-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-light);
}
.price {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
}
.period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.pricing-features {
    list-style: none;
    padding: 20px;
    flex: 1;
}
.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-features i {
    width: 20px;
    color: var(--primary-color);
}
.pricing-card-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-primary);
}

.pricing-note {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}




.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.admin-table {
    width: 100%;
    background: var(--bg-secondary);
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-primary);
    text-align: left;
}



.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}
.profile-avatar-placeholder {
    font-size: 100px;
    color: var(--text-secondary);
}
.current-avatar {
    margin-top: 10px;
}
.current-avatar img {
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}


/* Карточки проектов */
.projects-section {
    margin-top: 30px;
}
.project-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
    padding-bottom:25px;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.project-thumbnail {
    text-align: center;
}
.project-thumbnail img {
    max-width: 256px;
}
.project-thumbnail i {
    font-size: 64px;
    color: var(--primary-color);
}
.project-info {
    text-align: center;
}
.project-info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.project-info small {
    color: var(--text-secondary);
}
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}
.badge-public {
    background: #2e7d32;
    color: #c8e6c9;
}
.badge-private {
    background: #4a1c1c;
    color: #ffcdd2;
}
.card-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.card-menu-btn {
    background: var(--bg-primary);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.card-menu-btn:hover {
    background: var(--primary-color);
}

.card-menu-btn i
{
    font-size: 1.5rem;
}


.dropdown-menu {
    display: none;
    position: absolute;
    top: 35px;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    z-index: 3;
}
.dropdown-menu.show {
    display: block;
}
.card-menu-dropdown.dropdown-menu {
    position: absolute;
    top: 35px;
    right: 0;
}

.menu-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.menu-item i {
    width: 20px;
    margin-right: 8px;
    font-size: 1rem;
}
.menu-item:hover {
    background: var(--hover-overlay);
}
.menu-item-danger {
    color: #f44336;
}
.menu-form {
    margin: 0;
}


