:root {
    --bg-color: #0B0B0E;
    --card-bg: #15151A;
    --accent: #7B4DFF;
    --accent-hover: #9670FF;
    --text-main: #FFFFFF;
    --text-muted: #8E8E93;
    --border-color: #26262D;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg-color); color: var(--text-main); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Anchor offset под фиксированную шапку */
#portfolio, #about, #contacts { scroll-margin-top: 100px; }

/* ============ ШАПКА (фиксированная) ============ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 11, 14, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 50px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}
.logo {
    font-size: 28px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -1px;
    flex-shrink: 0;
}
.logo span { color: var(--accent); }
.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}
.nav-links a {
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
    white-space: nowrap;
    font-weight: 400;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-main); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
}
.social-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}
.social-icons a:hover { color: var(--text-main); }
.social-icons a i {
    font-size: 18px;
    line-height: 1;
    display: block;
}
.max-icon {
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M3 2h18a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zM6.5 17V7h3l2.5 3 2.5-3h3v10h-3v-5.5L12 14l-2.5-2.5V17h-3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M3 2h18a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zM6.5 17V7h3l2.5 3 2.5-3h3v10h-3v-5.5L12 14l-2.5-2.5V17h-3z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
    line-height: 0;
    font-size: 0;
}

/* ============ HERO ГЛАВНОЙ ============ */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}
.hero-content { max-width: 600px; z-index: 2; }
.hero-subtitle {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
}
.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}
.hero-title span { color: #C8A2FF; }
.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 450px;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}
.cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(123, 77, 255, 0.3);
}
.hero-image-container { width: 750px; flex-shrink: 0; }
.hero-image-container img { width: 100%; height: auto; object-fit: contain; }

/* ============ HERO СТРАНИЦЫ УСЛУГИ ============ */
.service-hero {
    position: relative;
    max-width: 1400px;
    margin: 40px auto;
    min-height: 440px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.service-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.service-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(11, 11, 14, 0.95) 0%,
        rgba(11, 11, 14, 0.75) 50%,
        rgba(11, 11, 14, 0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
}
.service-hero-content {
    position: relative;
    z-index: 2;
    padding: 50px;
    max-width: 680px;
    flex: 1;
}
.service-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
}
.service-back:hover { color: var(--accent); }
.service-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}
.service-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #C0C0C8;
    margin-bottom: 30px;
    max-width: 600px;
}

/* ============ КАТЕГОРИИ ============ */
.categories {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
}
.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.category-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #222;
}
.category-info { padding: 12px; }
.category-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.category-title-row i {
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
}
.category-title-row h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}
.category-info p {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* ============ ПАКЕТЫ УСЛУГ ============ */
.packages-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 50px;
}
.packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.package-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 35px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.package-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.package-card.premium {
    background: linear-gradient(160deg, #1a1530 0%, var(--card-bg) 60%);
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(123, 77, 255, 0.15);
}
.package-card.premium::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.package-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    background: rgba(123, 77, 255, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    align-self: flex-start;
}
.package-card.premium .package-badge {
    background: var(--accent);
    color: white;
}
.package-title { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.package-price {
    font-size: 40px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 25px;
    line-height: 1;
}
.package-price small {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 5px;
}
.package-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    flex-grow: 1;
}
.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}
.package-features li i {
    color: var(--accent);
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}
.package-card .cta-btn {
    width: 100%;
    justify-content: center;
}

/* ============ МОДАЛКА ПРОСМОТРА РАБОТЫ ============ */
.work-modal {
    max-width: 1100px;
    padding: 0;
    background: #0F0F13;
}
.work-modal-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    background: #000;
    border-radius: 20px 20px 0 0;
}
.work-modal-info { padding: 25px 35px 30px; }
.work-modal-info h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.work-modal-info p { color: var(--text-muted); font-size: 14px; }

/* ============ ПОРТФОЛИО ============ */
.portfolio-section {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 50px;
    display: flex;
    gap: 40px;
}
.sidebar { width: 220px; flex-shrink: 0; }
.sidebar ul { display: flex; flex-direction: column; gap: 15px; }
.sidebar li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px 0;
    transition: var(--transition);
}
.sidebar li i { font-size: 12px; }
.sidebar li:hover, .sidebar li.active { color: var(--text-main); }
.sidebar li.active {
    border-left: 2px solid var(--accent);
    padding-left: 10px;
    margin-left: -12px;
}
.sidebar li.reviews-trigger {
    color: var(--accent);
    font-weight: 600;
    margin-top: 5px;
}
.sidebar li.reviews-trigger:hover {
    color: var(--accent-hover);
    transform: translateX(3px);
}
.portfolio-content { flex-grow: 1; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.section-header h2 { font-size: 24px; font-weight: 700; }
.view-all {
    font-size: 14px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 5px;
}
.view-all:hover { color: var(--accent-hover); gap: 10px; }
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.portfolio-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    background: #1A1A20;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-item:hover img { transform: scale(1.08); }
.play-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 9px;
}
.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 12px;
}
.portfolio-item:hover .item-overlay { opacity: 1; }
.item-overlay-text { font-size: 12px; font-weight: 600; color: white; }

/* ============ МОДАЛЬНЫЕ ОКНА ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.85) translateY(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-content { padding: 35px 40px 40px; }
.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(123, 77, 255, 0.15);
    border-radius: 12px;
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 20px;
}
.modal-title { font-size: 32px; font-weight: 800; margin-bottom: 15px; }
.modal-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}
.modal-close:hover { background: var(--accent); transform: rotate(90deg); }
body.modal-open { overflow: hidden; }

/* ============ МОДАЛКА ЗАКАЗА ============ */
.order-modal { max-width: 500px; }
.order-modal .modal-content { text-align: center; }
.order-modal .modal-icon { margin: 0 auto 20px; }
.order-contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.order-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #0F0F13;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
    text-align: left;
}
.order-contact:hover {
    border-color: var(--accent);
    background: rgba(123, 77, 255, 0.08);
    transform: translateX(5px);
}
.order-contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
    color: white;
}
.order-contact-icon.tg { background: #229ED9; }
.order-contact-icon.wa { background: #25D366; }
.order-contact-icon.vk { background: #0077FF; }
.order-contact-icon.max { background: linear-gradient(135deg, #7B4DFF, #C8A2FF); }
.order-contact-icon.phone { background: #34C759; }
.order-contact-info { display: flex; flex-direction: column; gap: 2px; }
.order-contact-info strong { font-size: 14px; }
.order-contact-info span { font-size: 13px; color: var(--text-muted); }

/* ============ ОТЗЫВЫ ============ */
.reviews-modal { max-width: 1100px; padding: 0; }
.reviews-modal-header {
    padding: 35px 40px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.reviews-modal-header .modal-icon { margin-bottom: 0; }
.reviews-modal-header h2 { font-size: 28px; font-weight: 800; }
.reviews-modal-header h2 span { color: #C8A2FF; }
.reviews-modal-body {
    padding: 0 40px 40px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
}
.review-form-wrapper {
    background: #0F0F13;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    height: fit-content;
}
.review-form-wrapper h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.review-form-wrapper h3 i { color: var(--accent); }
.review-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-group input,
.form-group textarea,
.form-group select {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 13px 15px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    resize: vertical;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(123, 77, 255, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #5A5A63; }
.form-group textarea { min-height: 100px; }
.rating-stars {
    display: flex;
    gap: 6px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.rating-stars input { display: none; }
.rating-stars label {
    font-size: 26px;
    color: #3A3A42;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}
.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label {
    color: #FFB800;
    transform: scale(1.1);
}
.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(123, 77, 255, 0.3);
}
.reviews-list-wrapper {
    max-height: 550px;
    overflow-y: auto;
    padding-right: 10px;
}
.reviews-list-wrapper::-webkit-scrollbar { width: 6px; }
.reviews-list-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
.reviews-list { display: flex; flex-direction: column; gap: 15px; }
.review-card {
    background: #0F0F13;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    animation: fadeIn 0.5s ease forwards;
}
.review-card:hover { border-color: var(--accent); }
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #C8A2FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}
.review-author-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.review-date { font-size: 11px; color: var(--text-muted); }
.review-rating { color: #FFB800; font-size: 13px; letter-spacing: 1px; }
.review-text { font-size: 13px; line-height: 1.7; color: var(--text-muted); }
.review-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 3px;
    transition: var(--transition);
    opacity: 0.5;
}
.review-delete:hover { color: #FF4D4D; opacity: 1; }
.reviews-empty {
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: 14px;
    padding: 50px 25px;
    text-align: center;
    color: var(--text-muted);
}
.reviews-empty i {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ============ АДМИНКА ============ */
.admin-login {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.login-card .modal-icon { margin: 0 auto 25px; }
.login-card h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.login-card p { color: var(--text-muted); margin-bottom: 30px; font-size: 14px; }
.admin-panel { max-width: 1400px; margin: 40px auto; padding: 0 50px; }
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.admin-header h1 { font-size: 32px; font-weight: 800; }
.admin-header h1 span { color: var(--accent); }
.admin-logout {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.admin-logout:hover { color: #FF4D4D; border-color: #FF4D4D; }
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.admin-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-tab:hover { color: var(--text-main); border-color: var(--accent); }
.admin-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.admin-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    align-items: flex-start;
}
.admin-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    position: sticky;
    top: 90px;
}
.admin-form-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-form-card h2 i { color: var(--accent); }
.admin-works-list { display: flex; flex-direction: column; gap: 15px; }
.admin-work-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: var(--transition);
}
.admin-work-card:hover { border-color: var(--accent); }
.admin-work-thumb {
    width: 120px;
    height: 75px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.admin-work-info { flex-grow: 1; }
.admin-work-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.admin-work-info .cat-badge {
    background: rgba(123, 77, 255, 0.15);
    color: var(--accent);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.admin-work-delete {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.admin-work-delete:hover {
    color: #FF4D4D;
    border-color: #FF4D4D;
    background: rgba(255, 77, 77, 0.1);
}
.admin-empty {
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: 14px;
    padding: 60px 30px;
    text-align: center;
    color: var(--text-muted);
}
.admin-empty i {
    font-size: 40px;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 15px;
}
.admin-packages-wrap { display: flex; flex-direction: column; gap: 25px; }
.admin-package-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
}
.admin-package-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-package-card h3 i { color: var(--accent); }
.admin-package-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.admin-package-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.admin-package-actions .submit-btn { padding: 14px 28px; width: auto; }

/* ============ ПОДВАЛ ============ */
footer {
    background: #08080A;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
    padding: 60px 50px 40px;
}
.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.footer-col p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}
.footer-logo {
    font-size: 32px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -1px;
    margin-bottom: 20px;
    display: inline-block;
}
.footer-logo span { color: var(--accent); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
    font-size: 14px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul li a:hover { color: var(--accent); transform: translateX(5px); }
.footer-col ul li a i { font-size: 10px; }
.footer-contacts { display: flex; flex-direction: column; gap: 15px; }
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}
.footer-contact-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
    transition: var(--transition);
}
.footer-contact-item:hover { color: var(--text-main); }
.footer-contact-item:hover i {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.footer-contact-item .max-icon { width: 18px; height: 18px; font-size: 10px; }
.footer-contact-item .max-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ============ АНИМАЦИИ ============ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ АДАПТИВ ============ */
@media (max-width: 1100px) {
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 12px; }
    .header-inner { padding: 16px 30px; gap: 20px; }
}

@media (max-width: 1200px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-form-card { position: static; }
    .hero-image-container { width: 400px; }
    .hero-title { font-size: 48px; }
    .service-hero-title { font-size: 42px; }
    .categories { grid-template-columns: repeat(3, 1fr); }
    .packages-grid { gap: 20px; }
    .package-card { padding: 30px 25px; }
    .package-title { font-size: 22px; }
    .package-price { font-size: 32px; }
}

@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-image-container { width: 100%; }
    .hero-desc { margin: 0 auto 30px; }
    .portfolio-section { flex-direction: column; }
    .sidebar ul { flex-direction: row; flex-wrap: wrap; }
    .sidebar li.active {
        border-left: none;
        border-bottom: 2px solid var(--accent);
        padding-left: 0;
        margin-left: 0;
        padding-bottom: 5px;
    }
    .reviews-modal-body { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
    .categories { grid-template-columns: repeat(2, 1fr); }
    .packages-grid { grid-template-columns: 1fr; }
    .admin-package-grid { grid-template-columns: 1fr; }
    .service-hero { min-height: 400px; }
    .service-hero-content { padding: 35px 30px; max-width: 100%; }
    .service-hero::after {
        background: linear-gradient(to right, rgba(11,11,14,0.95) 0%, rgba(11,11,14,0.8) 100%);
    }
}

@media (max-width: 600px) {
    .nav-links, .social-icons { display: none; }
    .hero-title { font-size: 36px; }
    .service-hero-title { font-size: 30px; }
    .service-hero-desc { font-size: 14px; }
    .service-hero-content { padding: 30px 20px; }
    .service-hero { min-height: 380px; border-radius: 14px; margin: 20px 15px; }
    .modal-content { padding: 25px; }
    .modal-title { font-size: 22px; }
    .reviews-modal-header { padding: 25px 20px 0; }
    .reviews-modal-body { padding: 0 20px 25px; }
    .reviews-modal-header h2 { font-size: 22px; }
    footer { padding: 40px 25px 30px; }
    .footer-top { grid-template-columns: 1fr; }
    .admin-panel { padding: 0 25px; }
    .admin-work-thumb { width: 80px; height: 50px; }
    .work-modal-image { max-height: 50vh; }
    .work-modal-info { padding: 20px; }
    .header-inner { padding: 14px 20px; }
}
