body {
    background: #f4f4f7;
    margin: 0;
    padding: 20px;
    font-family: sans-serif;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
/*header*/

/* РћР±РЅРѕРІР»РµРЅРЅР°СЏ РєРѕРјРїР°РєС‚РЅР°СЏ С€Р°РїРєР° */
.app-header {
    padding: 10px 20px;
    margin-bottom: 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}


.version-badge {
    font-size: 0.7rem;
    background: #e8e8ed;
    color: #888;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* РЎР±СЂР°СЃС‹РІР°РµРј Р¶РёСЂРЅС‹Рµ РѕС‚СЃС‚СѓРїС‹ h1, СЃРѕС…СЂР°РЅСЏСЏ РєРѕРјРїР°РєС‚РЅРѕСЃС‚СЊ */
h1.brand-name {
    display: inline; /* Р§С‚РѕР±С‹ Р±С‹С‚СЊ РІ РѕРґРЅСѓ СЃС‚СЂРѕРєСѓ СЃ Р±РµР№РґР¶РµРј */
    margin: 0;
    padding: 0;
    font-size: 1.1rem; /* РўРѕС‚ Р¶Рµ СЂР°Р·РјРµСЂ, С‡С‚Рѕ Р±С‹Р» Сѓ span */
    font-weight: 800;
    color: #222;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-sub {
    font-weight: 400;
    color: #666;
    font-size: 0.9rem;
}

.seo-keywords {
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
    margin-left: 5px;
}
/* РџСЂСЏС‡РµРј РЅР° СЃРѕРІСЃРµРј РјР°Р»РµРЅСЊРєРёС… СЌРєСЂР°РЅР°С…, С‡С‚РѕР±С‹ РЅРµ Р»РѕРјР°С‚СЊ РІРµСЂСЃС‚РєСѓ */
@media (max-width: 600px) {
    .seo-keywords { display: none !important; }
}

/* РџРµСЂРµРєР»СЋС‡Р°С‚РµР»СЊ СЏР·С‹РєРѕРІ */
.lang-switch {
    font-size: 0.8rem;
    font-weight: bold;
}

.lang-switch a {
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
}

.lang-switch a:hover, .lang-switch a.active {
    color: #007bff;
}

.lang-switch .sep {
    color: #eee;
    margin: 0 4px;
}

/* РљРѕРјРїР°РєС‚РЅР°СЏ РєРЅРѕРїРєР° РґРѕРЅР°С‚Р° */
.donate-mini-btn {
    font-size: 0.8rem;
    font-weight: bold;
    color: #d32f2f;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #f8d7da;
    border-radius: 20px;
    transition: 0.2s;
}

.donate-mini-btn:hover {
    background: #fff5f5;
    border-color: #d32f2f;
}


.tg-icon-link {
    display: flex;
    align-items: center;
    color: #0088cc; /* Р¤РёСЂРјРµРЅРЅС‹Р№ С†РІРµС‚ РўР“ */
    text-decoration: none;
    transition: opacity 0.2s;
 /*   margin: 0 15px;*/ /* РћС‚СЃС‚СѓРїС‹ РїРѕ Р±РѕРєР°Рј */
}

.tg-icon-link:hover {
    opacity: 0.7;
}

/* РќР° РјРѕР±РёР»РєР°С… РјРѕР¶РЅРѕ С‡СѓС‚СЊ СѓРјРµРЅСЊС€РёС‚СЊ РѕС‚СЃС‚СѓРїС‹ */
@media (max-width: 600px) {
    .tg-icon-link { margin: 0 8px; }
}



/* РўР Р Р РђР’РќР«Р• РљРћР›РћРќРљР */
/* РЎРµС‚РєР° РѕСЃРЅРѕРІРЅРѕРіРѕ РєРѕРЅС‚РµР№РЅРµСЂР° */
.three-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* РўСЂРё СЂР°РІРЅС‹Рµ РєРѕР»РѕРЅРєРё */
    gap: 20px;
    margin-top: 20px;
}

/* РљРѕРЅС‚РµР№РЅРµСЂ РІРєР»Р°РґРѕРє */
.tabs {
    display: flex;
    background: #eee;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* РљРЅРѕРїРєРё-РІРєР»Р°РґРєРё */
.tab-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    color: #666;
    transition: 0.3s;
}

/* РђРєС‚РёРІРЅР°СЏ РІРєР»Р°РґРєР° */
.tab-btn.active {
    background: white;
    color: #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hidden { display: none !important; }

/* Р РµРґР°РєС‚РѕСЂ */
.column-editor { display: flex; flex-direction: column; }
#textInput { flex-grow: 1; min-height: 400px; width: 100%; border: 1px solid #ddd; padding: 10px; box-sizing: border-box; }

/* РџСЂРµРІСЊСЋ */
.block-header {
    display: flex;
    justify-content: space-between; /* РўРµРєСЃС‚ СЃР»РµРІР°, РєРЅРѕРїРєР° СЃРїСЂР°РІР° */
    align-items: center;
  /*  margin-bottom: 10px;*/
    font-weight: bold;
    font-size: 0.9rem;
    color: #444;
}

/* РЎС‚РёР»Рё РєРЅРѕРїРєРё В«РљР°Рє РЅР° Р±СѓРјР°РіРµ?В» */
.view-real-btn {
    width:initial;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 8px;
    color: #666;
    transition: all 0.2s;
    font-weight: normal; /* Р§С‚РѕР±С‹ РЅРµ СЃР»РёРІР°Р»Р°СЃСЊ СЃ Р·Р°РіРѕР»РѕРІРєРѕРј */
}

.view-real-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


/* РћР±РµСЂС‚РєР° С‚РµРїРµСЂСЊ РєРѕРЅС‚СЂРѕР»РёСЂСѓРµС‚ СЂР°Р·РјРµСЂС‹ */
.canvas-wrapper {
    position: relative; /* Р‘Р°Р·Р° РґР»СЏ РїРѕР·РёС†РёРѕРЅРёСЂРѕРІР°РЅРёСЏ */
}

.real-photo-overlay {
    position: absolute;
    z-index: 10;
    pointer-events: none; /* Р§С‚РѕР±С‹ РЅРµ РјРµС€Р°Р»Рѕ РєР»РёРєР°Рј, РµСЃР»Рё РЅСѓР¶РЅРѕ */
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}

.real-photo-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Р Р°СЃС‚СЏРіРёРІР°РµРј С„РѕС‚Рѕ РЅР° РІСЃСЋ РїР»РѕС‰Р°РґСЊ */
}




.canvas-wrapper { 
    background: #eee; border: 1px dashed #ccc; padding: 10px; 
    margin-bottom: 15px; display: flex; justify-content: center;
}
#mainCanvas { background: white; max-width: 100%; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }

/* РљРЅРѕРїРєРё */
button { width: 100%; padding: 12px; margin-bottom: 10px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; }
.btn-connect { background: #007bff; color: white; }
.btn-print { background: #28a745; color: white; font-size: 1.2em; height: 60px; }
.btn-print:disabled { background: #ccc; }

/* РќР°СЃС‚СЂРѕР№РєРё */
.settings-group { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.settings-group:last-child { border: none; }
.param { margin-bottom: 15px; }
.param label { display: block; font-size: 12px; color: #666; margin-bottom: 5px; }

select#driverSelect {
    padding:10px 0;
  max-width:200px  
}