/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #222222;
    --bg-card: #2a2a2a;
    --gold: #c9a84c;
    --gold-hover: #d4b75e;
    --gold-light: rgba(201, 168, 76, 0.15);
    --text-white: #ffffff;
    --text-gray: #999999;
    --text-muted: #666666;
    --border-color: #333333;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--gold);
}

.logo-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.3;
}

.header-nav {
    display: flex;
    gap: 30px;
    list-style: none;
}

.header-nav a {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition);
}

.header-nav a:hover {
    color: var(--text-white);
}

.header-phone {
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone svg {
    fill: var(--gold);
    width: 16px;
    height: 16px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 60px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

.hero-placeholder {
    width: 300px;
    height: 450px;
    background: linear-gradient(180deg, #333 0%, #222 100%);
    border-radius: 8px 8px 0 0;
    border: 1px solid #444;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.hero-placeholder::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -40px;
    right: -40px;
    height: 30px;
    background: #2a2a2a;
    border-radius: 4px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-subtitle {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-price {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-gold {
    background: var(--gold);
    color: var(--bg-primary);
}

.btn-gold:hover {
    background: var(--gold-hover);
    color: var(--bg-primary);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 12px;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* ===== FEATURES ===== */
.features {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
}

.feature-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 280px;
}

/* ===== CATALOG SECTION ===== */
.catalog {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 16px;
}

/* Category filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
}

.category-btn:hover,
.category-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-light);
}

/* Product grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.product-card-image {
    width: 100%;
    height: 280px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-image .placeholder-img {
    color: var(--text-muted);
    font-size: 60px;
}

.product-card-info {
    padding: 20px;
}

.product-card-category {
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-card-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
}

.product-card-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
}

/* ===== PRODUCT MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
}

.modal-close:hover {
    color: var(--text-white);
    background: var(--bg-card);
}

.modal-body {
    display: flex;
    gap: 40px;
    padding: 40px;
}

.modal-image {
    flex: 1;
    min-height: 300px;
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-category {
    font-size: 12px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-description {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    flex: 1;
}

.modal-price {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
}

.modal-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-gray);
}

/* ===== CONTACTS SECTION ===== */
.contacts {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: border-color var(--transition);
}

.contact-card:hover {
    border-color: var(--gold);
}

.contact-icon {
    width: 40px;
    height: 40px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 20px;
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
}

.contact-value a {
    color: var(--text-white);
}

.contact-value a:hover {
    color: var(--gold);
}

/* ===== FOOTER ===== */
.footer {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== ADMIN PANEL ===== */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    width: 400px;
    max-width: 90vw;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-white);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 30px 0;
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}

.admin-sidebar-logo {
    padding: 0 25px;
    margin-bottom: 30px;
}

.admin-sidebar-logo .logo-text {
    font-size: 12px;
    letter-spacing: 1.5px;
}

.admin-nav {
    list-style: none;
}

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: var(--text-gray);
    font-size: 14px;
    transition: all var(--transition);
}

.admin-nav li a:hover,
.admin-nav li a.active {
    color: var(--gold);
    background: var(--gold-light);
    border-right: 3px solid var(--gold);
}

.admin-nav li a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    background: var(--bg-primary);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th {
    background: var(--bg-secondary);
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table .product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background: #222;
}

.admin-table .status-active {
    color: #2ecc71;
}

.admin-table .status-inactive {
    color: #e74c3c;
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

/* Admin modal */
.admin-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal-overlay.active {
    display: flex;
}

.admin-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 600px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.admin-modal-header h3 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-modal-body {
    padding: 25px;
}

.admin-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Image upload preview */
.image-preview {
    width: 100%;
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 4px;
    margin-top: 10px;
    background: #222;
    display: none;
}

.image-preview.visible {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .modal-body {
        flex-direction: column;
        padding: 25px;
    }

    .header-nav {
        display: none;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== LOADING ===== */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
    font-size: 14px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #2ecc71;
}

.toast.error {
    background: #e74c3c;
}

/* ===== DROPDOWN MENU ===== */
.dropdown-wrapper {
    position: relative;
}

.dropdown-trigger {
    position: relative;
    padding-bottom: 28px; /* Место для dropdown */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: -100px;
    width: 650px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 10px;
}

.dropdown-wrapper:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Треугольник-указатель */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 140px;
    width: 16px;
    height: 16px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.dropdown-content {
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
}

.dropdown-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dropdown-section h4 {
    font-size: 14px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.dropdown-section p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

.dropdown-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.dropdown-section ul li {
    font-size: 13px;
    color: var(--text-gray);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.dropdown-section ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--gold);
    font-weight: bold;
}

.dropdown-section ul li strong {
    color: var(--text-white);
}

.dropdown-cta {
    margin-top: 15px;
    text-align: center;
}

.dropdown-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--gold);
    color: var(--bg-primary);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

/* Скроллбар для dropdown */
.dropdown-content::-webkit-scrollbar {
    width: 4px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 2px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* Адаптивность dropdown */
@media (max-width: 1100px) {
    .dropdown-menu {
        position: fixed;
        top: 80px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: 70vh;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-section ul {
        grid-template-columns: 1fr;
    }
}

/* ===== MONUMENT BUILDER ===== */
.monument-builder {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-primary) 0%, #111 100%);
}

.builder-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.builder-canvas-area {
    flex: 0 0 auto;
    position: sticky;
    top: 100px;
}

.canvas-wrapper {
    position: relative;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

#monumentCanvas {
    display: block;
    border-radius: 8px;
    cursor: crosshair;
}

.canvas-info {
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.8;
}

/* Controls */
.builder-controls {
    flex: 1;
    max-width: 500px;
}

.control-group {
    margin-bottom: 20px;
}

.control-label {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.control-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-white);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.control-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.control-input::placeholder {
    color: var(--text-muted);
}

.control-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    margin-top: 8px;
}

.control-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.control-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.control-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Font selector */
.font-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.font-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-gray);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.font-btn:hover {
    border-color: var(--gold);
    color: var(--text-white);
}

.font-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-primary);
    font-weight: 600;
}

/* Photo upload */
.photo-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.photo-upload-area:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.photo-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-gray);
}

.photo-upload-btn span {
    font-size: 13px;
}

.photo-remove-btn {
    margin-top: 10px;
    padding: 6px 14px;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    border-radius: 4px;
    color: #e74c3c;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.photo-remove-btn:hover {
    background: #e74c3c;
    color: white;
}

/* Photo style selector */
.photo-style-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.style-btn {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-gray);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.style-btn:hover {
    border-color: var(--gold);
}

.style-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-primary);
    font-weight: 600;
}

/* Photo position selector */
.photo-position-selector {
    display: flex;
    gap: 8px;
}

.pos-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-gray);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.pos-btn:hover {
    border-color: var(--gold);
}

.pos-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-primary);
    font-weight: 600;
}

/* Builder buttons */
.builder-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 14px;
    flex: 1;
}

.builder-notice {
    font-size: 12px;
    color: var(--text-muted);
    padding: 12px;
    background: rgba(201, 168, 76, 0.08);
    border-radius: 6px;
    border-left: 3px solid var(--gold);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1000px) {
    .builder-layout {
        flex-direction: column;
    }
    
    .builder-canvas-area {
        position: static;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .canvas-wrapper {
        max-width: 400px;
        width: 100%;
    }
    
    #monumentCanvas {
        width: 100%;
        height: auto;
    }
    
    .builder-controls {
        max-width: 100%;
    }
    
    .builder-buttons {
        flex-direction: column;
    }
}

/* ===== YANDEX MAP ===== */
.map-container {
    margin-top: 50px;
}

#yandexMap {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.map-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.map-info-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.map-info-item strong {
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .map-info {
        grid-template-columns: 1fr;
    }
    
    #yandexMap {
        height: 350px;
    }
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-img:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .logo-img {
        height: 45px;
    }
}


/* ===== HERO LOGO OVERLAY ===== */
.hero-placeholder {
    width: 300px;
    height: 450px;
    background: linear-gradient(180deg, #333 0%, #222 100%);
    border-radius: 8px 8px 0 0;
    border: 1px solid #444;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-placeholder::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -40px;
    right: -40px;
    height: 30px;
    background: #2a2a2a;
    border-radius: 4px;
}

.hero-logo-overlay {
    width: 180px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.hero-logo-overlay:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-placeholder {
        width: 250px;
        height: 380px;
    }
    
    .hero-logo-overlay {
        width: 140px;
    }
}

/* Скрываем конструктор на мобильных */
@media (max-width: 999px) {
    .monument-builder {
        display: none !important;
    }
}

/* ===== CEMETERIES SECTION ===== */
.cemeteries-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cemetery-selector {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.cemetery-selector select {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    background: var(--bg-card);
    color: var(--text-white);
    border: 1px solid var(--gold);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23c9a84c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px top 50%;
    background-size: 12px auto;
}

.cemetery-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cemetery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.cemetery-info h3 {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cemetery-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-gray);
}

.cemetery-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-white);
    margin-bottom: 25px;
}

.cemetery-services h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-white);
}

.cemetery-services ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.cemetery-services li {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.cemetery-services li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.all-cemeteries-list h3 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.cemeteries-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cemetery-tag {
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.cemetery-tag:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-light);
}

@media (max-width: 900px) {
    .cemetery-grid {
        grid-template-columns: 1fr;
    }
    
    .cemetery-content {
        padding: 20px;
    }
}

/* ===== BLOG SECTION ===== */
.blog-section {
    padding: 80px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.blog-card-image {
    height: 200px;
    background: #333;
    background-size: cover;
    background-position: center;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-white);
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Резервируем место для каталога, чтобы он не сдвигал футер при загрузке */
#productsGrid {
    min-height: 400px; /* Примерная высота 2-3 рядов товаров */
}

/* Резервируем место для блога */
#blogGrid {
    min-height: 300px;
}

/* Резервируем место для списка кладбищ */
#cemeteryContent {
    min-height: 350px;
}