* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; font-size: 18px; }
body { font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif; background: linear-gradient(145deg, #ffffff 0%, #f1f4f8 100%); display: block; min-height: 100vh; margin: 0; padding: 40px 20px 80px 20px; position: relative; overflow-x: hidden; max-width: 100%; font-size: 18px; color: #333; }

.bg-blur-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.9) 0%, transparent 70%); pointer-events: none; z-index: 1; }

/* Резиновая верстка */
.layout-wrapper { display: flex; justify-content: center; align-items: flex-start; gap: 25px; width: 95%; max-width: 1920px; position: relative; z-index: 10; margin: 0 auto; }
aside.sidebar-ad { width: 200px; min-width: 200px; min-height: 600px; background: rgba(255, 255, 255, 0.9); border: 1px dashed #ccc; border-radius: 8px; display: flex; justify-content: center; align-items: center; padding: 15px; color: #999; font-size: 16px; text-align: center; position: sticky; top: 40px; }
main.container { background: rgba(255, 255, 255, 0.95); padding: 40px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); text-align: center; width: 100%; margin: 0 auto; backdrop-filter: blur(5px); overflow: hidden; flex-grow: 1; max-width: none; }

h1 { color: #333; margin-top: 0; margin-bottom: 15px; font-size: clamp(28px, 4vw, 36px); text-align: center; }
h2 { font-size: 28px; color: #1a1a1a; margin-bottom: 15px; }
h3 { font-size: 24px; color: #222; margin-bottom: 15px; }
p { color: #666; margin-bottom: 30px; font-size: 18px; }

.header-top-right { width: 100%; text-align: right; margin-bottom: 10px; }
.logo-wrapper { text-decoration: none; display: block; width: 100%; text-align: center; margin-bottom: 10px; position: relative; padding: 20px 0 10px 0; }
.logo-bg-icon { position: absolute; top: 50%; left: 40%; transform: translate(-50%, -50%); max-width: 100px; width: 15%; opacity: 0.1; z-index: 1; pointer-events: none; }
.logo-text { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: clamp(22px, 8vw, 60px); font-weight: 800; letter-spacing: 1px; line-height: 1.1; background: linear-gradient(90deg, #007bff, #0056b3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; position: relative; z-index: 2; }
.logo-text-https { font-weight: 400; color: #6c757d; -webkit-text-fill-color: #6c757d; }

/* Звездный рейтинг */
.rating-block { text-align: center; margin-bottom: 25px; color: #555; font-size: 18px; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.rating-block .stars { font-size: 26px; color: #ccc; letter-spacing: 2px; line-height: 1; }
.rating-block .star { cursor: pointer; transition: color 0.2s, transform 0.1s; }
.rating-block .star:hover { transform: scale(1.1); }
.rating-block .star.active, .rating-block .star.hover { color: #ffc107; }
.rating-block .stars.locked .star { cursor: default; }
.rating-block .stars.locked .star:hover { transform: none; }
.rating-block .rating-count { color: #6c757d; font-size: 18px; }
.rating-msg { font-size: 18px; font-weight: 600; display: none; margin-left: 5px; animation: fadeIn 0.5s; }
.rating-msg.show { display: inline-block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.privacy-note { margin-bottom: 25px; padding: 20px; background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; font-size: 18px; color: #495057; text-align: center; }
.privacy-note p { margin: 0 0 8px 0; font-size: 18px; }
.privacy-note p:last-child { margin-bottom: 0; font-size: 18px; color: #6c757d; }

form { display: flex; flex-direction: column; align-items: center; width: 100%; }
.format-group { margin-bottom: 20px; font-size: 18px; width: 100%; text-align: left; }
.format-group select { padding: 12px; border-radius: 5px; border: 1px solid #ccc; margin-top: 5px; width: 100%; font-size: 18px; max-width: 100%; }
.extra-options { margin-bottom: 20px; width: 100%; display: none; }
.extra-options input, .extra-options select { width: 100%; padding: 12px; border-radius: 5px; border: 1px solid #ccc; margin-top: 5px; font-size: 18px; max-width: 100%; }

.drop-zone { display: block; width: 100%; border: 2px dashed #007bff; padding: 25px; border-radius: 10px; cursor: pointer; transition: 0.3s; word-break: break-all; background-color: rgba(255,255,255,0.8); font-size: 18px; }
.drop-zone:hover { background-color: #f8faff; }
.drop-zone.dragover { background-color: #e6f2ff; border-color: #0056b3; transform: scale(1.01); }
input[type="file"] { display: none; }
.btn { background-color: #007bff; color: white; padding: 14px 20px; border: none; border-radius: 6px; font-size: 20px; cursor: pointer; margin-top: 20px; width: 100%; font-weight: 600; }
.btn:hover { background-color: #0056b3; }
.status { margin-top: 20px; font-weight: bold; font-size: 18px; }
.hint { font-size: 16px; color: #999; margin-top: 10px; }
.file-list { margin-top: 15px; font-size: 18px; color: #333; text-align: left; }
.file-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.file-item.dragging { opacity: 0.4; border: 2px dashed #007bff; border-radius: 5px; padding: 10px; background: #f8faff; }
.file-name { word-break: break-all; padding-right: 15px; cursor: grab; font-size: 18px; }
.file-name:active { cursor: grabbing; }
.remove-btn { cursor: pointer; color: #dc3545; font-weight: bold; font-size: 18px; user-select: none; }

.terms-block { margin-top: 20px; text-align: left; }
.terms-checkbox-line { display: flex; align-items: flex-start; gap: 10px; font-size: 18px; color: #444; padding: 5px; border-radius: 4px; }
.terms-checkbox-line input { margin-top: 3px; cursor: pointer; transform: scale(1.2); }
.terms-link { color: #007bff; text-decoration: underline; cursor: pointer; }

.warning-message { display: none; text-align: left; color: #333; font-weight: normal; font-size: 18px; margin-top: 15px; margin-left: 5px; }
.warning-message.show { display: block; }
.warning-message .arrow { display: inline-block; animation: bounceArrow 1s infinite; }
.highlight-error { background-color: #ffcccc !important; animation: shake 0.5s ease-in-out; }

.cookie-banner { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background-color: #333; color: white; text-align: center; padding: 15px; z-index: 1000; font-size: 16px; }
.cookie-banner button { background-color: #007bff; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; margin-left: 15px; font-weight: bold; font-size: 16px; }
.cookie-banner a { color: #87ceeb; }
.ad-block { width: 90%; max-width: 1400px; min-height: 100px; margin: 25px auto 0 auto; display: flex; justify-content: center; align-items: center; overflow: hidden; background-color: rgba(255, 255, 255, 0.9); border-radius: 8px; border: 1px dashed #ccc; color: #999; font-size: 16px; text-align: center; position: relative; z-index: 10; }

.progress-container { display: none; margin-top: 20px; width: 100%; }
.progress-bar-bg { width: 100%; height: 25px; background-color: #e0e0e0; border-radius: 10px; overflow: hidden; }
.progress-bar-fill { width: 0%; height: 100%; background-color: #007bff; transition: width 0.3s; }
.progress-text { margin-top: 10px; font-weight: bold; color: #007bff; font-size: 18px; }

article.seo-text-block { margin-top: 40px; text-align: left; font-size: 18px; line-height: 1.7; color: #444; }
article.seo-text-block h2 { color: #0056b3; margin-top: 25px; margin-bottom: 10px; font-size: 28px; }
article.seo-text-block h3 { color: #0056b3; margin-top: 25px; margin-bottom: 10px; font-size: 24px; }
article.seo-text-block p { margin-bottom: 15px; color: #444; font-size: 18px; }
article.seo-text-block ul, article.seo-text-block ol { padding-left: 20px; margin-bottom: 15px; }
article.seo-text-block li { margin-bottom: 8px; font-size: 18px; }

nav.internal-links { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; text-align: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
nav.internal-links a { font-size: 18px; color: #007bff; text-decoration: none; background: #f1f4f8; padding: 8px 12px; border-radius: 4px; }

/* Подвал сайта и кнопка поделиться */
.share-link-block { margin-top: 30px; margin-bottom: 10px; text-align: center; }
.copy-link-btn { background: #007bff; border: 1px solid #0056b3; color: #ffffff; padding: 12px 24px; border-radius: 6px; cursor: pointer; font-weight: 600; transition: 0.3s; font-size: 18px; }
.copy-link-btn:hover { background: #0056b3; color: white; }

.site-footer { margin-top: 40px; padding: 20px 0; border-top: 1px solid #eee; text-align: center; color: #6c757d; font-size: 18px; }
.site-footer a { color: #007bff; font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, label:focus-within { outline: 2px solid #0056b3; outline-offset: 2px; border-radius: 4px; }

body.editor-active { padding: 0; overflow: hidden; background: #525659; margin: 0; height: 100vh; overscroll-behavior: none; }
body.editor-active .bg-blur-overlay, body.editor-active .sidebar-ad, body.editor-active .ad-block, body.editor-active .cookie-banner, body.editor-active .share-link-block, body.editor-active .site-footer { display: none !important; }
body.editor-active main.container > *:not(#visualEditorContainer) { display: none !important; }
body.editor-active .layout-wrapper { width: 100%; max-width: 100%; height: 100vh; margin: 0; gap: 0; border-radius: 0; box-shadow: none; overflow: hidden; background: #525659; }
body.editor-active main.container { width: 100%; max-width: 100%; padding: 0; margin: 0; border-radius: 0; box-shadow: none; background: #525659; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
#visualEditorContainer { display: none; text-align: center; flex-direction: column; height: 100%; width: 100%; }
body.editor-active #visualEditorContainer { display: flex; }

.editor-logo-bar { background: #f1f4f8; padding: 8px 20px; border-bottom: 1px solid #ccc; text-align: left; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; }
.editor-logo-link { text-decoration: none; display: inline-flex; align-items: center; padding: 5px 15px; }
.editor-logo-text-wrapper { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: 1px; line-height: 1.1; background: linear-gradient(90deg, #007bff, #0056b3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; position: relative; z-index: 2; display: inline-flex; align-items: center; }
.editor-logo-text-https { font-weight: 400; color: #6c757d; -webkit-text-fill-color: #6c757d; }
.editor-logo-text-domain { position: relative; display: inline-block; }
.editor-logo-img { position: absolute; top: 50%; left: -33px; transform: translateY(-50%); max-width: 38px; width: 38px; opacity: 0.3; z-index: 1; pointer-events: none; }
.editor-file-name { flex-grow: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #495057; font-weight: 600; font-size: 16px; padding: 0 15px; }

.editor-toolbar { display: flex; justify-content: center; gap: 5px; padding: 10px; background: #f1f4f8; border-bottom: 1px solid #ccc; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.2); flex-wrap: wrap; flex-shrink: 0; }
.editor-btn { background: white; border: 1px solid #ccc; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 16px; display: flex; align-items: center; gap: 5px; }
.editor-btn:hover { background: #e6f2ff; border-color: #007bff; }
.editor-btn.active { background: #007bff; color: white; border-color: #0056b3; }
.editor-btn-change-file { background:#6c757d; color:white; }
.editor-btn-save { background: #28a745; color: white; }
.hidden-input { display:none; }
.editor-toolbar-divider { width: 100%; border-top: 1px solid #ccc; margin: 5px 0; }
#finishPolyBtn { display:none; background:#28a745; color:white; }

.editor-controls { display: flex; justify-content: center; gap: 15px; padding: 10px; background: #fff; border-bottom: 1px solid #ccc; flex-wrap: wrap; align-items: center; font-size: 16px; z-index: 99; flex-shrink: 0; }
.editor-controls label { display: flex; align-items: center; gap: 5px; }

.editor-canvas-wrapper { overflow: hidden; background: #525659; position: relative; flex-grow: 1; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
#canvasWrapper { position: absolute; top: 0; left: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.5); transform-origin: top left; -webkit-user-drag: none; user-select: none; }
#editorPdfCanvas { position: absolute; left: 0; top: 0; z-index: 1; -webkit-user-drag: none; user-select: none; pointer-events: none !important; }
#editorFabricCanvas { position: relative; z-index: 2; }
.canvas-container { position: absolute !important; top: 0; left: 0; z-index: 2; }
.upper-canvas { z-index: 3 !important; pointer-events: auto !important; }

.editor-hint-bar { width: 100%; text-align: center; color: #004085; font-weight: 700; font-size: 18px; padding: 12px 15px; background-color: #e6f2ff; border-bottom: 2px solid #007bff; display: none; flex-shrink: 0; }
.editor-hint-bar.animate { animation: pulseBorder 0.5s ease-in-out 3; }
@keyframes pulseBorder { 0% { border-color: #007bff; background-color: #e6f2ff; box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); } 50% { border-color: #dc3545; background-color: #cce5ff; box-shadow: 0 0 10px 2px rgba(0, 123, 255, 0.5); } 100% { border-color: #007bff; background-color: #e6f2ff; box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); } }

#editorStatus { padding: 10px 15px; text-align: center; font-size: 16px; color: #ffffff; background: rgba(0,0,0,0.2); flex-shrink: 0; }
.page-info-editor { background: #ffffff; color: #333333; padding: 5px 15px; text-align: center; border-bottom: 1px solid #ccc; font-size: 16px; font-weight: 500; flex-shrink: 0; }

@keyframes bounceArrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes pulseAttention { 0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); border-color: #28a745; } 70% { box-shadow: 0 0 0 15px rgba(40, 167, 69, 0); border-color: #28a745; } 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); border-color: #28a745; } }
.drop-zone-attention { animation: pulseAttention 1.5s infinite; background-color: #f0fff4 !important; }
@keyframes btnPulseAttention { 0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.8); } 70% { box-shadow: 0 0 0 15px rgba(0, 123, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); } }
.btn-attention { animation: btnPulseAttention 1.5s infinite; background-color: #007bff !important; border-color: #007bff !important; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

#signModal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); z-index:1000; justify-content:center; align-items:center; }
.modal-content { background:white; padding:25px; border-radius:10px; text-align:center; width:90%; max-width:450px; }
.modal-content h3 { margin-bottom:15px; font-size: 22px; }
.modal-input { width:100%; padding:12px; margin-bottom:10px; border:1px solid #ccc; border-radius:5px; box-sizing:border-box; font-size: 16px; }
.modal-flex-row { display:flex; gap:10px; margin-bottom:15px; }
.modal-select { flex:1; padding:12px; border:1px solid #ccc; border-radius:5px; box-sizing:border-box; font-size: 16px; }
.modal-input-number { width:80px; padding:12px; border:1px solid #ccc; border-radius:5px; box-sizing:border-box; font-size: 16px; }
.modal-bottom-margin { margin-bottom:15px; }
.modal-flex-row-center { display:flex; gap:20px; margin-bottom:15px; justify-content:center; font-size: 16px; }
#signCanvas { border:1px solid #ccc; background:white; touch-action:none; cursor:crosshair; width:100%; max-width:400px; }
.modal-clear-btn { margin-top:10px; padding:8px 15px; background:#dc3545; color:white; border:none; border-radius:5px; cursor:pointer; font-size: 16px; }
#uploadArea { display:none; }
.modal-file-input { display: block !important; width:100%; margin-top:10px; font-size: 16px; }
.modal-left-block { margin-top:15px; text-align:left; }
.modal-label { font-weight:bold; display:block; margin-bottom:5px; font-size: 16px; }
.modal-button-row { display:flex; gap:10px; justify-content:center; }
#applySignBtn { padding:12px 15px; background:#28a745; color:white; border:none; border-radius:5px; cursor:pointer; font-size: 16px; }
#cancelSignBtn { padding:12px 15px; background:#6c757d; color:white; border:none; border-radius:5px; cursor:pointer; font-size: 16px; }
#stampInput { margin-bottom:20px; }

.terms-page { font-family: 'Segoe UI', Roboto, sans-serif; background: #f1f4f8; color: #333; margin: 0; padding: 40px 20px; }
.terms-page .terms-container { max-width: 800px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.terms-page h1 { color: #0056b3; font-size: 26px; text-align: center; margin-bottom: 20px; }
.terms-page h2 { color: #0056b3; font-size: 22px; margin-top: 30px; margin-bottom: 15px; border-bottom: 2px solid #e9ecef; padding-bottom: 5px; }
.terms-page p { line-height: 1.7; margin-bottom: 15px; font-size: 18px; }
.terms-page .btn-back { display: inline-block; background: #007bff; color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 5px; margin-bottom: 30px; font-weight: bold; transition: 0.3s; font-size: 16px; }
.terms-page .btn-back:hover { background: #0056b3; }

@media (max-width: 1024px) { .layout-wrapper { flex-direction: column; width: 95%; max-width: 1000px; } .sidebar-ad { width: 100%; min-width: 100%; min-height: 120px; position: static; } .ad-block { width: 95%; max-width: 1000px; } }

/* === АДАПТАЦИЯ МОБИЛЬНОЙ ВЕРСИИ === */
@media (max-width: 768px) {
    body { padding: 10px 0 60px 0; font-size: 16px; }
    aside.sidebar-ad { display: none !important; }
    .layout-wrapper { width: 100%; gap: 0; }
    main.container { padding: 20px 15px; border-radius: 0; max-width: 100%; box-shadow: none; }
    .ad-block { width: 100%; min-height: 50px; margin: 15px auto 0 auto; padding: 10px; border-radius: 0; }
    
    /* ФИКС КЛАВИАТУРЫ: используем dvh (динамическую высоту), чтобы при выезде клавиатуры холст сжимался */
    body.editor-active { height: 100dvh; }
    body.editor-active .layout-wrapper { height: 100dvh; }
    body.editor-active main.container { height: 100dvh; }

    /* Убрали предупреждение */
    .mobile-editor-notice { display: none !important; }
    
    /* Уменьшили шапку */
    .editor-logo-bar { padding: 2px 5px; }
    .editor-logo-text-wrapper { font-size: 16px; }
    .editor-logo-text-https { font-size: 12px; }
    .editor-logo-img { display: none; } /* Спрятали фоновое лого */
    .editor-btn-change-file { padding: 3px 6px; font-size: 12px; }
    .editor-file-name { font-size: 12px; padding: 0 5px; }

    /* Еще сильнее сжали панель кнопок */
    .editor-toolbar { 
        gap: 2px; 
        padding: 3px; 
        flex-wrap: wrap; 
        justify-content: center; 
        max-height: 18vh; /* Уменьшили лимит высоты панели */
        overflow-y: auto; 
    }
    .editor-toolbar::-webkit-scrollbar { height: 3px; width: 3px; }
    .editor-toolbar::-webkit-scrollbar-thumb { background: #007bff; border-radius: 2px; }
    .editor-btn { padding: 3px 5px; font-size: 11px; } /* Меньше текст на кнопках */
    .editor-toolbar-divider { display: none !important; }
    
    /* Сжали панель настроек (цвет, шрифт) */
    .editor-controls { 
        gap: 4px; 
        padding: 2px 5px; 
        overflow-x: auto; 
        flex-wrap: nowrap; 
        justify-content: flex-start; 
        max-height: 8vh;
    }
    .editor-controls label { font-size: 11px; flex-shrink: 0; }
    .editor-controls input, .editor-controls select { padding: 2px; font-size: 11px; }

    /* Скрываем сложные инструменты на мобильном */
    .editor-btn[data-tool="eyedropper"],
    .editor-btn[data-tool="polygon"],
    #finishPolyBtn,
    .editor-btn[onclick="addShape('dashed')"],
    .editor-btn[onclick="addShape('arrow')"],
    .editor-btn[onclick="addShape('triangle')"],
    .editor-btn[onclick="addShape('circle')"],
    .editor-btn[onclick="resetCanvas()"],
    #zoomInBtn,
    #zoomOutBtn {
        display: none !important;
    }
}

/* Каталог карточек инструментов */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; text-align: left; }
.catalog-card { display: flex; flex-direction: column; padding: 15px; border-radius: 10px; background: #f8f9fa; border: 1px solid #e9ecef; text-decoration: none; color: #333; transition: all 0.3s ease; position: relative; }
.catalog-card:hover { background: #ffffff; border-color: #007bff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transform: translateY(-2px); }
.catalog-card-icon { margin-bottom: 10px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.tool-icon { width: 32px; height: 32px; }
.catalog-card strong { font-size: 20px; margin-bottom: 5px; font-weight: 600; }
.catalog-card-description { font-size: 18px; color: #6c757d; line-height: 1.4; flex-grow: 1; }
.catalog-card-action { display: none; }
.tool-icon-paper { fill: #e9ecef; }
.tool-icon-lines { fill: none; stroke: #495057; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tone-red .tool-icon-paper { fill: #fee2e2; } .tone-red .tool-icon-lines { stroke: #dc3545; }
.tone-blue .tool-icon-paper { fill: #dbeafe; } .tone-blue .tool-icon-lines { stroke: #007bff; }
.tone-green .tool-icon-paper { fill: #d1fae5; } .tone-green .tool-icon-lines { stroke: #28a745; }
.tone-amber .tool-icon-paper { fill: #fef3c7; } .tone-amber .tool-icon-lines { stroke: #ffc107; }
@media (max-width: 768px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .catalog-card { padding: 12px; }
    .catalog-card-icon { width: 24px; height: 24px; margin-bottom: 8px; }
    .tool-icon { width: 24px; height: 24px; }
    .catalog-card strong { font-size: 18px; }
    .catalog-card-description { font-size: 16px; }
}

/* === СТИЛИ АДМИН-ПАНЕЛИ (/sv) === */
body.admin-panel { background-color: #1e1e2f; color: #ffffff; padding: 30px; line-height: 1.5; font-size: 16px; }
body.admin-panel .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
body.admin-panel .card { background-color: #27293d; border-radius: 12px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); border: 1px solid #2c2f44; display: flex; flex-direction: column; }
body.admin-panel .card.wide { grid-column: 1 / -1; }
body.admin-panel .card h2 { color: #9a9cab; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; font-weight: 600; }
body.admin-panel .stat { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 18px; }
body.admin-panel .stat span:last-child { font-weight: bold; color: #00d3ee; }
body.admin-panel .progress-bar { background-color: #1e1e2f; height: 10px; border-radius: 5px; overflow: hidden; margin-top: 5px; }
body.admin-panel .progress-fill { height: 100%; background: linear-gradient(90deg, #00d3ee, #0056b3); transition: width 0.5s ease; }
body.admin-panel .alert { color: #ff4d4d; font-weight: bold; margin-top: 10px; font-size: 14px; }
body.admin-panel .ref-list { list-style: none; padding: 0; margin: 0; }
body.admin-panel .ref-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #2c2f44; font-size: 15px; gap: 10px; }
body.admin-panel .ref-list li:last-child { border-bottom: none; }
body.admin-panel .ref-list li span:first-child { word-break: break-all; }
body.admin-panel .ref-list li span:last-child { color: #00d3ee; font-weight: bold; white-space: nowrap; }
body.admin-panel pre.logs { background-color: #1a1a2e; padding: 15px; border-radius: 8px; white-space: pre-wrap; word-wrap: break-word; color: #a9b7c6; font-size: 13px; max-height: 300px; overflow-y: auto; border: 1px solid #32374e; font-family: monospace; }
body.admin-panel .btn { color: white; padding: 10px 15px; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: bold; width: 100%; margin-top: auto; transition: background-color 0.2s; }
body.admin-panel .btn-danger { background-color: #dc3545; margin-top: 20px; }
body.admin-panel .btn-danger:hover { background-color: #c82333; }
body.admin-panel .btn-warning { background-color: #ffc107; color: #1e1e2f; margin-top: 15px; }
body.admin-panel .btn-warning:hover { background-color: #e0a800; }
body.admin-panel .btn-success { background-color: #28a745; margin-top: 20px; }
body.admin-panel .btn-success:hover { background-color: #218838; }
body.admin-panel .links a { color: #00d3ee; text-decoration: none; display: block; margin-bottom: 10px; font-size: 16px; }
body.admin-panel .links a:hover { text-decoration: underline; }
body.admin-panel .back-link { text-align: center; margin-top: 40px; }
body.admin-panel .back-link a { color: #9a9cab; text-decoration: none; }
body.admin-panel .success-msg { color: #28a745; text-align: center; font-weight: bold; margin-bottom: 15px; font-size: 18px; }

/* === СТИЛИ ДЛЯ FAQ И ПОХОЖИЕ ИНСТРУМЕНТЫ === */
.faq {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}
.faq h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
}
.faq h3 {
    font-size: 18px;
    color: #0056b3;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: 600;
}
.faq p {
    font-size: 18px;
    color: #495057;
    margin-bottom: 15px;
    line-height: 1.6;
}

.related-tools {
    margin-top: 40px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-align: left;
}
.related-tools h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
}
.related-tools ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.related-tools li {
    margin-bottom: 0;
}
.related-tools a {
    display: block;
    padding: 12px 15px;
    background: #f1f4f8;
    border-radius: 6px;
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.2s;
}
.related-tools a:hover {
    background: #e6f2ff;
    transform: translateY(-2px);
}