Jump to content
Toggle menu
  • 35 articles
  • 5 files
  • 1 users
  • 1.5K edits
Yrittäjä WIKI
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
Undid revision 1501 by D (talk)
Tag: Undo
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* =========================================================
/* =========================================================
 
  1. WIKI BASIC SETTINGS
БАЗОВЫЕ НАСТРОЙКИ ВИКИ
========================================================= */
========================================================= */
.clean-new-articles li { font-size: 0; }
.clean-new-articles li { font-size: 0; }
Line 8: Line 7:


/* =========================================================
/* =========================================================
2. ЕДИНЫЙ ФИНСКИЙ ДИЗАЙН (ГЛАВНАЯ СТРАНИЦА)
  2. UNIFIED FINNISH DESIGN (MAIN PAGE)
========================================================= */
========================================================= */
/* Hero Section & Search */
.fin-hero { text-align: center; padding: 40px 20px; background: #ffffff; margin-bottom: 30px; border-bottom: 1px solid #e2e8f0; }
.fin-hero { text-align: center; padding: 40px 20px; background: #ffffff; margin-bottom: 30px; border-bottom: 1px solid #e2e8f0; }
.fin-hero-title { font-size: 2.5em; font-weight: 700; color: #003b7e; margin-bottom: 10px; }
.fin-hero-title { font-size: 2.5em; font-weight: 700; color: #003b7e; margin-bottom: 10px; }
Line 15: Line 15:
.fin-searchbox { max-width: 600px; margin: 0 auto; }
.fin-searchbox { max-width: 600px; margin: 0 auto; }


/* Сетка для блоков
/* Hide burger button and empty panel for guests (Citizen) */
.fin-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 20px; margin-bottom: 40px; }
.fin-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; align-items: stretch; }
*/
/* Скрытие кнопки бургера и пустой панели для гостей (Citizen) */
body.user-logged-out label[for="mw-drawer-toggle"],
body.user-logged-out label[for="mw-drawer-toggle"],
body.user-logged-out #mw-drawer-toggle,
body.user-logged-out #mw-drawer-toggle,
Line 27: Line 21:
     display: none !important;
     display: none !important;
}
}
 
/* Block Grids (Translation-resistant) */
.fin-grid-2 {
/* Сетка для блоков (Устойчивая к переводам через Flexbox) */
    display: flex;
.fin-grid-2,
    flex-wrap: wrap;
.fin-grid-3 {
    gap: 20px;
display: flex;
    margin-bottom: 40px;
flex-wrap: wrap;
    align-items: stretch;
gap: 20px;
margin-bottom: 40px;
align-items: stretch; /* Заставляет карточки тянуться на одну высоту */
}
}
/* Заставляем детей сетки вести себя как колонки */
.fin-grid-2 > * {
.fin-grid-2 > * {
flex: 1 1 calc(50% - 10px);
    flex: 1 1 calc(50% - 10px);
min-width: 300px; /* Минимальная ширина на телефонах */
    min-width: 300px;
}
}


.fin-grid-3 > * {
.fin-grid-3 {  
flex: 1 1 calc(33.333% - 14px);
    display: grid;
min-width: 280px; /* Минимальная ширина на телефонах */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  
    gap: 20px;
    margin-bottom: 40px;
    align-items: stretch;  
}
}


/* Жестко игнорируем системный мусор от переводов MediaWiki */
/* Strictly ignore system garbage from MediaWiki translations */
.fin-grid-2 > br, .fin-grid-3 > br,
.fin-grid-2 > br, .fin-grid-3 > br,
.fin-grid-2 > p:empty, .fin-grid-3 > p:empty,
.fin-grid-2 > p:empty, .fin-grid-3 > p:empty,
.fin-grid-2 > .mw-empty-elt, .fin-grid-3 > .mw-empty-elt {
.fin-grid-2 > .mw-empty-elt, .fin-grid-3 > .mw-empty-elt {
display: none !important;
    display: none !important;
}
}


 
/* Strict categories (Dark blue) */
 
 
 
/* Запрещаем пустые теги ломать сетку после перевода */
.fin-grid-3 > br, .fin-grid-3 > p:empty { display: none !important; }
 
/* Строгие категории (Темно-синие) */
.fin-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 40px; }
.fin-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 40px; }
.fin-cat-btn { background: #003b7e; border-radius: 4px; padding: 16px 20px; text-align: center; transition: background 0.2s; }
.fin-cat-btn { background: #003b7e; border-radius: 4px; padding: 16px 20px; text-align: center; transition: background 0.2s; }
Line 71: Line 56:
.fin-cat-btn:hover { background: #002855; }
.fin-cat-btn:hover { background: #002855; }


/* Белые карточки (Стиль Vero) */
/* White cards (Vero style) */
.fin-card-vero { background: #ffffff; border: 1px solid #d1d5db; border-radius: 6px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.fin-card-vero { background: #ffffff; border: 1px solid #d1d5db; border-radius: 6px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.fin-card-vero h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; color: #111827; border: none; padding: 0; }
.fin-card-vero h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; color: #111827; border: none; padding: 0; }
.fin-card-vero p {  
.fin-card-vero p {  
     color: #374151;  
     color: #374151;  
Line 80: Line 64:
     line-height: 1.6;  
     line-height: 1.6;  
     margin-bottom: 25px;  
     margin-bottom: 25px;  
     /* Добавлен принудительный перенос длинных слов: */
     /* Force line breaks for long words */
     overflow-wrap: break-word;
     overflow-wrap: break-word;
     word-wrap: break-word;
     word-wrap: break-word;
Line 90: Line 74:
.fin-btn-green:hover { background: #005c26; text-decoration: none; }
.fin-btn-green:hover { background: #005c26; text-decoration: none; }


/* Темно-синие и розовые карточки (Стиль Suomi.fi) */
/* Dark blue and pink cards (Suomi.fi style) */
.fin-card-suomi-blue { background: #003b7e; color: #ffffff; border-radius: 6px; padding: 24px; }
.fin-card-suomi-blue { background: #003b7e; color: #ffffff; border-radius: 6px; padding: 24px; }
.fin-card-suomi-pink { background: #ffcce6; color: #111827; border-radius: 6px; padding: 24px; }
.fin-card-suomi-pink { background: #ffcce6; color: #111827; border-radius: 6px; padding: 24px; }
.fin-card-suomi-blue h3, .fin-card-suomi-pink h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; border: none; padding: 0; display: flex; justify-content: space-between; align-items: center; }
.fin-card-suomi-blue h3, .fin-card-suomi-pink h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; border: none; padding: 0; display: flex; justify-content: space-between; align-items: center; }
.fin-card-suomi-blue h3 { color: #ffffff; }
.fin-card-suomi-pink h3 { color: #111827; }
.fin-card-suomi-pink h3 { color: #111827; }
/* Merged overrides for Suomi blue cards */
.fin-card-suomi-blue h3 { color: #ffffff !important; text-align: left !important; }
.fin-card-suomi-blue p { text-align: left !important; color: #ffffff !important; }
/* Image cards (TE-Palvelut / Join the Crew style) */
.fin-card-img { background: #ffffff; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.fin-card-img-wrapper { height: 200px; width: 100%; background: #e5e7eb; overflow: hidden; }
.fin-card-img-content { padding: 30px; text-align: center; }
.fin-card-img-content h3 { margin: 0 0 15px 0; font-size: 1.6em; font-weight: 700; color: #111827; border: none; }
.fin-card-img-content p { color: #4b5563; font-size: 16px; line-height: 1.6; max-width: 600px; margin: 0 auto 25px auto; }
.fin-btn-blue { display: inline-block; background: #005eb8; color: #ffffff !important; padding: 12px 28px; border-radius: 4px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background 0.2s; }
.fin-btn-blue:hover { background: #004a94; text-decoration: none; }


/* =========================================================
/* =========================================================
3. ДОСКА ВОЛОНТЕРОВ (About Page)
  3. VOLUNTEER BOARD (About Page)
========================================================= */
========================================================= */
.volunteer-grid { display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; margin: 40px 0; }
.volunteer-grid {
    display: grid;
    /* Каждая карточка будет минимум 280px, а браузер сам заполнит весь ряд нужным количеством колонок */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
    width: 100%;
    margin-top: 20px;
}
 
/* Фикс для совсем маленьких экранов телефонов */
@media (max-width: 360px) {
    .volunteer-grid {
        grid-template-columns: 1fr;
    }
}
 
/* Делаем сетку адаптивной (чтобы на планшетах и телефонах всё не сплющило) */
@media (max-width: 1200px) {
    .volunteer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .volunteer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .volunteer-grid { grid-template-columns: 1fr; }
}
@keyframes goldPulse { 0%, 100% { box-shadow: 0 4px 15px rgba(218, 165, 32, 0.15), 0 0 10px rgba(255, 215, 0, 0.1); border-color: rgba(212, 175, 55, 0.3); } 50% { box-shadow: 0 12px 25px rgba(218, 165, 32, 0.4), 0 0 25px rgba(255, 215, 0, 0.3); border-color: rgba(212, 175, 55, 0.8); } }
@keyframes goldPulse { 0%, 100% { box-shadow: 0 4px 15px rgba(218, 165, 32, 0.15), 0 0 10px rgba(255, 215, 0, 0.1); border-color: rgba(212, 175, 55, 0.3); } 50% { box-shadow: 0 12px 25px rgba(218, 165, 32, 0.4), 0 0 25px rgba(255, 215, 0, 0.3); border-color: rgba(212, 175, 55, 0.8); } }
@keyframes shimmerMove { 0% { left: -150%; } 100%, 200% { left: 200%; } }
@keyframes shimmerMove { 0% { left: -150%; } 100%, 200% { left: 200%; } }
Line 113: Line 135:


/* =========================================================
/* =========================================================
4. БЛОК JOIN THE CREW (HOVER BLUR)
  4. JOIN THE CREW BLOCKS (UPDATED)
========================================================= */
========================================================= */
.crew-banner-wrapper { position: relative; border-radius: 12px; margin: 40px auto; max-width: 100%; min-height: 380px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); background: #0f172a; }
/* Option B: Wiki image integration */
.crew-bg-layer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
.crew-banner-wrapper {  
.crew-bg-layer .mw-halign-center, .crew-bg-layer a, .crew-bg-layer img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; transition: filter 0.5s ease, transform 0.5s ease; }
    position: relative;  
    border-radius: 12px;  
    margin: 40px auto;  
    max-width: 100%;  
    min-height: 380px;  
    overflow: hidden;  
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);  
    background: #0f172a;  
}
 
.crew-bg-layer {  
    position: absolute;  
    top: 0; left: 0; right: 0; bottom: 0;  
    z-index: 1;  
}
 
/* 1. MAKE IMAGE INITIALLY BLURRED */
.crew-bg-layer .mw-halign-center,  
.crew-bg-layer a,  
.crew-bg-layer img {  
    width: 100% !important;  
    height: 100% !important;  
    object-fit: cover !important;  
    display: block !important;  
    transition: filter 0.5s ease, transform 0.5s ease;
    filter: blur(6px); /* Initially blurred */
    transform: scale(1.05); /* Scaled slightly to hide blurred edges */
}


.crew-content-layer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; background: rgba(15, 23, 42, 0.4); display: flex; align-items: center; justify-content: center; padding: 20px; transition: background 0.5s ease; }
/* 2. MAKE OVERLAY INITIALLY DARKENED */
.crew-content-layer {  
    position: absolute;  
    top: 0; left: 0; right: 0; bottom: 0;  
    z-index: 2;  
    background: rgba(15, 23, 42, 0.65); /* Initially darkened (was 0.4) */
    display: flex;  
    align-items: center;  
    justify-content: center;  
    padding: 20px;  
    transition: background 0.5s ease;  
}


.crew-text-box { max-width: 650px; text-align: center; }
.crew-text-box { max-width: 650px; text-align: center; }
Line 125: Line 185:
.crew-text-box p { font-size: 16px; color: #f8fafc !important; margin: 0 auto; line-height: 1.6; }
.crew-text-box p { font-size: 16px; color: #f8fafc !important; margin: 0 auto; line-height: 1.6; }


/* Кнопка внутри баннера */
/* 3. HOVER EFFECTS */
/* You can unblur it on hover, or keep it blurred. Here it unblurs slightly and darkens further */
.crew-banner-wrapper:hover .crew-bg-layer img {
    filter: blur(2px); /* Unblurs slightly on hover */
    transform: scale(1.1);
}
.crew-banner-wrapper:hover .crew-content-layer {
    background: rgba(4, 11, 16, 0.85); /* Gets even darker on hover */
}
 
/* 4. BUTTON FIX (Removing the conflicting 'transparent' rule) */
.crew-btn-container { margin-top: 25px; }
.crew-btn-container { margin-top: 25px; }
.crew-btn-container a.external { display: inline-block !important; background: #005eb8 !important; color: #ffffff !important; font-size: 16px !important; font-weight: bold !important; padding: 12px 30px !important; border-radius: 8px !important; text-decoration: none !important; border: none !important; transition: background 0.2s !important; box-shadow: none !important; }
.crew-btn-container a.external:hover { background: #004a94 !important; }
.crew-btn-container a.external::after { display: none !important; }


/* Анимация при наведении */
/* Strip basic wiki styles safely without breaking our own button background */
.crew-banner-wrapper:hover .crew-bg-layer img { filter: blur(6px); transform: scale(1.05); }
.mw-parser-output .crew-btn-container a {  
.crew-banner-wrapper:hover .crew-content-layer { background: rgba(4, 11, 16, 0.8); }
    box-shadow: none !important;  
    text-decoration: none !important;  
}


/* Style the button properly */
.mw-parser-output .crew-btn-container a.external,
.crew-btn-container a.external {
    display: inline-block !important;
    background: #005eb8 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: bold !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    border: none !important;
    transition: background 0.2s !important;
}


.mw-parser-output .crew-btn-container a.external:hover,
.crew-btn-container a.external:hover {
    background: #004a94 !important;
}


/* CSS placed here will be applied to all skins */
.crew-btn-container a.external::after { display: none !important; }


 
/* =========================================================
 
  5. MAIN PAGE DESIGN (SC WIKI STYLE)
/* --- ДИЗАЙН ГЛАВНОЙ СТРАНИЦЫ (В СТИЛЕ SC WIKI) --- */
========================================================= */
.mp-hero { text-align: center; margin: 40px 0 30px; }
.mp-hero { text-align: center; margin: 40px 0 30px; }
.mp-title { font-size: 2.5em; font-weight: 800; margin-bottom: 10px; color: #0f172a; }
.mp-title { font-size: 2.5em; font-weight: 800; margin-bottom: 10px; color: #0f172a; }
.mp-subtitle { font-size: 1.1em; color: #64748b; margin-bottom: 30px; }
.mp-subtitle { font-size: 1.1em; color: #64748b; margin-bottom: 30px; }


/* 1. Поиск */
/* Search */
.mp-search { max-width: 600px; margin: 0 auto 40px auto; }
.mp-search { max-width: 600px; margin: 0 auto 40px auto; }


/* 2. Категории (Темные кнопки) */
/* Categories (Dark buttons) */
.mp-cat-grid {  
.mp-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 40px; }
    display: grid;  
.mp-cat-btn { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border-radius: 8px; padding: 15px 20px; text-align: center; transition: all 0.2s ease; border: 1px solid #334155; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));  
    gap: 15px;  
    margin-bottom: 40px;  
}
.mp-cat-btn {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.mp-cat-btn a { color: #f8fafc !important; font-weight: 600; text-decoration: none; display: block; font-size: 15px;}
.mp-cat-btn a { color: #f8fafc !important; font-weight: 600; text-decoration: none; display: block; font-size: 15px;}
.mp-cat-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.3); border-color: #38bdf8; }
.mp-cat-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.3); border-color: #38bdf8; }


/* 3. Панели информации (Карточки) */
/* Info panels (Cards) */
.mp-panels {  
.mp-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
    display: grid;  
.mp-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  
.mp-card-title { font-size: 1.2em; font-weight: 700; color: #0f172a; margin-bottom: 15px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; }
    gap: 20px;  
.mp-card-links a { display: block; padding: 12px; background: #f8fafc; border-radius: 6px; margin-bottom: 8px; color: #334155; text-decoration: none; font-weight: 600; transition: background 0.2s; text-align: center; border: 1px solid #e2e8f0; }
    margin-bottom: 40px;  
}
.mp-card {  
    background: #ffffff;  
    border: 1px solid #e2e8f0;  
    border-radius: 12px;  
    padding: 25px;  
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);  
}
.mp-card-title {  
    font-size: 1.2em; font-weight: 700; color: #0f172a;  
    margin-bottom: 15px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px;  
}
.mp-card-links a {  
    display: block; padding: 12px; background: #f8fafc; border-radius: 6px;  
    margin-bottom: 8px; color: #334155; text-decoration: none; font-weight: 600;  
    transition: background 0.2s; text-align: center; border: 1px solid #e2e8f0;
}
.mp-card-links a:hover { background: #e2e8f0; color: #0f172a; }
.mp-card-links a:hover { background: #e2e8f0; color: #0f172a; }


/* 4. Кнопки сервисов (Стиль Patreon/Discord) */
/* Service buttons (Patreon/Discord Style) */
.mp-services { display: flex; flex-direction: column; gap: 12px; }
.mp-services { display: flex; flex-direction: column; gap: 12px; }
.mp-srv-btn {  
.mp-srv-btn { display: block; text-align: center; padding: 15px; border-radius: 8px; font-weight: bold; font-size: 1.1em; color: #ffffff !important; text-decoration: none; transition: opacity 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
    display: block; text-align: center; padding: 15px; border-radius: 8px;  
    font-weight: bold; font-size: 1.1em; color: #ffffff !important;  
    text-decoration: none; transition: opacity 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.mp-srv-btn:hover { text-decoration: none; opacity: 0.85; }
.mp-srv-btn:hover { text-decoration: none; opacity: 0.85; }
.btn-vero { background: #005eb8; } /* Синий цвет налоговой */
.btn-vero { background: #005eb8; } /* Tax office blue */
.btn-ytj { background: #2c3e50; }  /* Темный цвет реестра */
.btn-ytj { background: #2c3e50; }  /* Registry dark */
.btn-migri { background: #007A5E; } /* Зеленый цвет миграционки */
.btn-migri { background: #007A5E; } /* Migration green */
 


/* 5. Виджет дедлайнов (Deadlines) */
/* Deadlines Widget */
.mp-deadlines { display: flex; flex-direction: column; gap: 10px; }
.mp-deadlines { display: flex; flex-direction: column; gap: 10px; }
.deadline-card {
.deadline-card { display: flex; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #ef4444; border-radius: 6px; padding: 10px 15px; transition: transform 0.2s; }
    display: flex; align-items: center; background: #f8fafc;  
    border: 1px solid #e2e8f0; border-left: 4px solid #ef4444;  
    border-radius: 6px; padding: 10px 15px; transition: transform 0.2s;
}
.deadline-card:hover { transform: translateX(5px); border-left-color: #dc2626; }
.deadline-card:hover { transform: translateX(5px); border-left-color: #dc2626; }
.deadline-date { font-weight: 800; color: #ef4444; font-size: 1.2em; min-width: 50px; text-align: center; }
.deadline-date { font-weight: 800; color: #ef4444; font-size: 1.2em; min-width: 50px; text-align: center; }
Line 219: Line 266:
.deadline-desc { margin-left: 15px; font-weight: 600; font-size: 0.95em; color: #334155; line-height: 1.3; }
.deadline-desc { margin-left: 15px; font-weight: 600; font-size: 0.95em; color: #334155; line-height: 1.3; }
.deadline-desc span { display: block; font-size: 0.8em; color: #64748b; font-weight: normal; }
.deadline-desc span { display: block; font-size: 0.8em; color: #64748b; font-weight: normal; }
/* =========================================================
  6. MISCELLANEOUS (COOKIES & LANGUAGES)
========================================================= */
/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 32px;
    left: 5%;
    max-width: 320px;
    /* Glass effect working in both light and dark themes */
    background: rgba(127, 127, 127, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(127, 127, 127, 0.25);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    color: var(--color-base);
    font-size: 0.9em;
    line-height: 1.4;
}




/* =========================================================
/* =========================================================
  Cards
========================================================= */
.card-11 {
  width: 100%;
  display: block;
  align-items: center;
  justify-content: center;
  padding: 15px 0; /* Уменьшили отступы, чтобы карточка стояла компактно */
  box-sizing: border-box;
  background: transparent; /* Полностью убрали задний фон */
  font-family: 'Inter', system-ui, sans-serif;
  --focus: #6366f1;
  --accent: #6366f1;
  --accent-2: #ec4899;
}
.card-11 *, .card-11 *::before, .card-11 *::after { box-sizing: border-box; }
.card-11__card {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(60, 40, 100, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 -1px 0 rgba(0, 0, 0, 0.02) inset;
  transition: transform 0.35s ease, box-shadow 0.35s;
}
.card-11__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 40px 80px -30px rgba(60, 40, 100, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 -1px 0 rgba(0, 0, 0, 0.02) inset;
}
.card-11__cover {
  position: relative !important;
  height: 220px !important; /* <-- Изменили высоту (было 120px) */
  width: 100% !important;
  overflow: hidden !important;
  background: #e2e8f0;
  display: block !important;
}


========================================================= */
/* Нейтрализуем любые невидимые теги, которые создает MediaWiki */
.card-11__cover * {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}


/* Заголовок и поиск */
/* Заставляем саму картинку лечь фоном и обрезаться */
.fin-hero { text-align: center; padding: 40px 20px; background: #ffffff; margin-bottom: 30px; border-bottom: 1px solid #e2e8f0; }
.card-11__cover img {
.fin-hero-title { font-size: 2.5em; font-weight: 700; color: #003b7e; margin-bottom: 10px; }
  position: absolute !important;
.fin-hero-subtitle { font-size: 1.2em; color: #475569; margin-bottom: 30px; }
  top: 0 !important;
.fin-searchbox { max-width: 600px; margin: 0 auto; }
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;     /* Умная обрезка */
  object-position: center !important;  
  max-width: none !important;       /* Отключаем ограничения движка */
  max-height: none !important;
}


.card-11__cover-mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.35) 0%, transparent 40%), radial-gradient(ellipse at 80% 70%, rgba(244, 114, 182, 0.4) 0%, transparent 45%), radial-gradient(circle at 55% 40%, rgba(139, 92, 246, 0.3) 0%, transparent 40%);
}


/* Сетка для блоков (Исправленная) */
.card-11__avatar-wrap {
.fin-grid-3 {  
  position: relative;
    display: grid;  
  margin: -34px auto 0;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  
  width: 68px;
    gap: 20px;  
  height: 68px;
    margin-bottom: 40px;  
  z-index: 2;
    align-items: stretch; /* Карточки всегда одинаковой высоты */
}
}


/* Карточка с изображением (Стиль TE-Palvelut / Join the Crew) */
.card-11__avatar {
.fin-card-img { background: #ffffff; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
  position: relative;
.fin-card-img-wrapper { height: 200px; width: 100%; background: #e5e7eb; overflow: hidden; }
  width: 68px;
.fin-card-img-content { padding: 30px; text-align: center; }
  height: 68px;
.fin-card-img-content h3 { margin: 0 0 15px 0; font-size: 1.6em; font-weight: 700; color: #111827; border: none; }
  border-radius: 50%;
.fin-card-img-content p { color: #4b5563; font-size: 16px; line-height: 1.6; max-width: 600px; margin: 0 auto 25px auto; }
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
.fin-btn-blue { display: inline-block; background: #005eb8; color: #ffffff !important; padding: 12px 28px; border-radius: 4px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background 0.2s; }
  padding: 3px;
.fin-btn-blue:hover { background: #004a94; text-decoration: none; }
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}


/* --- БЛОК JOIN THE CREW (КАРТИНКА НА ФОНЕ + BLUR ПРИ НАВЕДЕНИИ) --- */
.card-11__avatar-inner {
.crew-banner {
  width: 100%;
    position: relative;
  height: 100%;
    overflow: hidden;
  display: flex;
    border-radius: 12px;
  align-items: center;
    margin: 40px auto;
  justify-content: center;
    max-width: 100%;
  border-radius: 50%;
    text-align: center;
  background: linear-gradient(180deg, #f5f4fb 0%, #e4e4f0 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #4338ca;
    display: flex;
  font-size: 20px;
    align-items: center;
  font-weight: 800;
    justify-content: center;
  border: 3px solid #fff;
    min-height: 380px; /* Высота баннера */
}
}


/* Слой с картинкой (на заднем плане) */
.card-11__status {
.crew-bg {
  position: absolute;
    position: absolute;
  bottom: 2px;
    top: 0;
  right: 2px;
    left: 0;
  width: 18px;
    width: 100%;
  height: 18px;
    height: 100%;
  border-radius: 50%;
    z-index: 1;
  background: #fff;
    transition: transform 0.5s ease, filter 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
}


/* Растягиваем системную картинку вики на весь фон */
.card-11__status-dot {
.crew-bg img {
  width: 10px;
    width: 100% !important;
  height: 10px;
    height: 100% !important;
  border-radius: 50%;
    object-fit: cover !important;
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.32);
}
}


/* Полупрозрачное затемнение, чтобы белый текст хорошо читался */
.card-11__body {
.crew-overlay {
  padding: 12px 22px 16px;
    position: absolute;
  text-align: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4); /* Темный фильтр поверх фото */
    z-index: 2;
    transition: background 0.5s ease;
}
}


/* Слой с текстом и кнопкой (на переднем плане) */
.card-11__name-row {
.crew-content {
  display: flex;
    position: relative;
  justify-content: center;
    z-index: 3;
  align-items: center;
    padding: 40px 20px;
  gap: 5px;
    max-width: 700px;
  margin-bottom: 4px;
}
}


.crew-content h3 {
.card-11__name {
    font-size: 28px;
  font-size: 19px;
    font-weight: 800;
  font-weight: 700;
    color: #ffffff; /* Белый заголовок */
  color: #1a1a1a;
    margin-bottom: 15px;
  margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none; /* Убираем полоску вики-заголовка */
}
}


.crew-content p {
.card-11__role {
    font-size: 16px;
  font-size: 12.5px;
    color: #f8fafc; /* Светло-серый текст */
  font-weight: 500;
    margin: 0 auto 25px auto;
  color: #4b5563;
    line-height: 1.6;
  margin: 0 0 6px;
}
}


/* АНИМАЦИЯ ПРИ НАВЕДЕНИИ (HOVER) */
.card-11__company { color: #4338ca; font-weight: 700; }
.crew-banner:hover .crew-bg {
.card-11__bio { font-size: 12.5px; color: #6b6b7c; margin: 0 0 12px; }
    transform: scale(1.05); /* Картинка плавно приближается */
 
    filter: blur(6px); /* Тот самый красивый блюр */
.card-11__meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  color: #6b6b7c;
  margin: 0 0 14px;
}
}


.crew-banner:hover .crew-overlay {
.card-11__stats {
    background: rgba(15, 23, 42, 0.55); /* Фон становится чуть темнее, чтобы текст читался еще лучше */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 0;
  background: linear-gradient(180deg, #fafafd 0%, #f4f4fa 100%);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
}


/* --- БЛОК JOIN THE CREW (С ВИКИ-КАРТИНКОЙ) --- */
.card-11__stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.crew-banner-wrapper {
.card-11__stat-title { font-size: 9.5px; font-weight: 600; text-transform: uppercase; color: #9ca3af; }
    position: relative;
.card-11__stat-value { font-size: 14px; font-weight: 700; color: #1a1a1a; }
    border-radius: 12px;
 
    margin: 40px auto;
.card-11__foot {
    max-width: 100%;
  display: flex;
    min-height: 380px;
  align-items: center;
    overflow: hidden; /* Важно: обрезает картинку по радиусу */
  justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 14px 22px 18px;
    background: #0f172a; /* Темный фон на случай, если фото грузится долго */
}
}


/* Слой с фотографией */
.card-11__cta {
.crew-bg-layer {
  display: inline-flex;
    position: absolute;
  align-items: center;
    top: 0; left: 0; right: 0; bottom: 0;
  padding: 8px 16px;
    z-index: 1;
  border-radius: 999px;
  background: #06070c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
}


/* Заставляем вики-картинку и все ее обертки растянуться */
.card-11__social { display: flex; gap: 4px; }
.crew-bg-layer .mw-halign-center,
.card-11__icon {
.crew-bg-layer a,
  width: 34px;
.crew-bg-layer img {
  height: 34px;
    width: 100% !important;
  display: flex;
    height: 100% !important;
  align-items: center;
    object-fit: cover !important;
  justify-content: center;
    display: block !important;
  border-radius: 10px;
    transition: filter 0.5s ease, transform 0.5s ease; /* Подготовка к анимации */
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #6b6b7c;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
 
}
}
.card-11__cta a { color: #fff !important; text-decoration: none !important; }
.card-11__icon a { color: inherit !important; text-decoration: none !important; }


/* Слой поверх фото: темная пленка + центрирование текста */
/* Плавная анимация для кнопок */
.crew-content-layer {
.card-11__icon {
    position: absolute;
  transition: all 0.2s ease-in-out !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    background: rgba(15, 23, 42, 0.4); /* Полупрозрачное затемнение */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background 0.5s ease;
}
}


/* Сам текстовый блок */
/* Цвет фона и рамки при наведении курсора */
.crew-text-box {
.card-11__icon:hover {
max-width: 650px;
  background-color: #003C83 !important; /* Сине-фиолетовый цвет */
text-align: center;
  border-color: #6366f1 !important;
  transform: translateY(-2px) !important; /* Кнопка слегка приподнимается */
}
}


.crew-text-box h3 {
/* Цвет текста (ссылки) при наведении курсора */
font-size: 28px; font-weight: 800; color: #ffffff !important; margin-bottom: 15px;
.card-11__icon:hover a {
text-transform: uppercase; letter-spacing: 1px; border: none !important;
  color: #ffffff !important; /* Текст становится белым */
}
}


.crew-text-box p {
/* Оптимизированные стили для внутренних блоков карточки */
font-size: 16px; color: #f8fafc !important; margin: 0 auto; line-height: 1.6;
.card-11__body {
  padding-top: 24px !important;
}
}


/* --- СТИЛИЗАЦИЯ КНОПКИ И УДАЛЕНИЕ БЕЛОЙ РАМКИ --- */
.card-11__company {
.crew-btn-container {
  display: block !important;
margin-top: 25px;
  margin-bottom: 2px !important;
}
}


/* Бронебойное удаление системных стилей (перебиваем тему Вики) */
.card-11__foot {
.mw-parser-output .crew-btn-container a,
  justify-content: center !important;
.mw-parser-output .crew-btn-container a.external {
background: transparent !important;
padding: 0 !important;
border: none !important;
box-shadow: none !important;
text-decoration: none !important;
}
}


.mw-parser-output .crew-btn-container a:hover,
.card-11__icon {
.mw-parser-output .crew-btn-container a:active {
  width: auto !important;
text-decoration: none !important;
  padding: 0 14px !important;
background: transparent !important;
}
}


/* 1. Выравнивание высоты всех карточек в сетке */
.card-11 {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  box-sizing: border-box;
  background: transparent;
  font-family: 'Inter', system-ui, sans-serif;
}


/* АНИМАЦИЯ ПРИ НАВЕДЕНИИ НА ВЕСЬ БЛОК */
.card-11__card {
.crew-banner-wrapper:hover .crew-bg-layer img {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.1);
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important; /* Распределяет контент так, чтобы футтер всегда был внизу */
}
}


.crew-banner-wrapper:hover .crew-content-layer {
/* 2. Область с текстом заставляет футтер прижиматься к низу */
background: rgba(4, 11, 16, 0.8);
.card-11__body {
  padding: 20px 20px 10px !important;
  text-align: center;
  flex-grow: 1 !important; /* Растягивает блок тела, если текста мало */
  display: flex;
  flex-direction: column;
}
}


.card-11__bio {
  font-size: 12.5px;
  color: #6b6b7c;
  margin-top: 8px;
  margin-bottom: 12px;
}


/* 3. Красивые аккуратные кнопки социальной сети */
.card-11__foot {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 16px 18px !important;
}


.card-11__social {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  width: 100%;
}


.fin-card-suomi-blue h3 {
.card-11__icon {
    text-align: left !important;
  display: inline-flex !important;
    color: #ffffff !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #f8fafc !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease-in-out !important;
}
}


.fin-card-suomi-blue p {
/* Очистка ссылок от системного мусора MediaWiki */
    text-align: left !important;
.card-11__icon a {
    color: #ffffff !important;
  color: #475569 !important;
  text-decoration: none !important;
  background: none !important;
  padding: 0 !important;
}
}


/* Перекрашивание кнопок при наведении */
.card-11__icon:hover {
  background-color: #003b7e !important;
  border-color: #003b7e !important;
  transform: translateY(-2px) !important;
}


.card-11__icon:hover a {
  color: #ffffff !important;
}


/* =========================================================
  -----Cards
========================================================= */




#cookie-consent-banner a { color: var(--color-primary); font-weight: bold; }
#cookie-consent-banner button { margin-top: 16px; width: 100%; background: var(--color-primary); color: #000000; border: none; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: transform 0.1s; }
#cookie-consent-banner button:active { transform: scale(0.97); }


/* Скрываем ссылки на подстраницы языков */
/* Hide language subpage links */
.mw-category a[href*="/en"],
.mw-category a[href*="/en"],
.mw-category a[href*="/ru"],
.mw-category a[href*="/ru"],
Line 445: Line 654:
}
}


/* Безопасное скрытие пустых пунктов списка без :has() */
/* Safely hide empty list items without :has() */
.mw-category li {
.mw-category li {
     list-style: none !important;
     list-style: none !important;
}
}
.mw-category li > a:not([href*="/en"]):not([href*="/ru"]):not([href*="/fi"]):not([href*="/uk"]):not([href*="/su"])::before {
.mw-category li > a:not([href*="/en"]):not([href*="/ru"]):not([href*="/fi"]):not([href*="/uk"]):not([href*="/su"])::before {
     content: "• ";
     content: "• ";
}
}

Latest revision as of 15:57, 23 October 2026

/* =========================================================
   1. WIKI BASIC SETTINGS
========================================================= */
.clean-new-articles li { font-size: 0; }
.clean-new-articles li a.mw-newpages-pagename { font-size: 15px; }
.mw-pt-translate-header, .mw-tpt-sp-top { display: none !important; }

/* =========================================================
   2. UNIFIED FINNISH DESIGN (MAIN PAGE)
========================================================= */
/* Hero Section & Search */
.fin-hero { text-align: center; padding: 40px 20px; background: #ffffff; margin-bottom: 30px; border-bottom: 1px solid #e2e8f0; }
.fin-hero-title { font-size: 2.5em; font-weight: 700; color: #003b7e; margin-bottom: 10px; }
.fin-hero-subtitle { font-size: 1.2em; color: #475569; margin-bottom: 30px; }
.fin-searchbox { max-width: 600px; margin: 0 auto; }

/* Hide burger button and empty panel for guests (Citizen) */
body.user-logged-out label[for="mw-drawer-toggle"],
body.user-logged-out #mw-drawer-toggle,
body.user-logged-out #mw-drawer {
    display: none !important;
}

/* Block Grids (Translation-resistant) */
.fin-grid-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    align-items: stretch;
}
.fin-grid-2 > * {
    flex: 1 1 calc(50% - 10px);
    min-width: 300px;
}

.fin-grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    margin-bottom: 40px; 
    align-items: stretch; 
}

/* Strictly ignore system garbage from MediaWiki translations */
.fin-grid-2 > br, .fin-grid-3 > br,
.fin-grid-2 > p:empty, .fin-grid-3 > p:empty,
.fin-grid-2 > .mw-empty-elt, .fin-grid-3 > .mw-empty-elt {
    display: none !important;
}

/* Strict categories (Dark blue) */
.fin-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 40px; }
.fin-cat-btn { background: #003b7e; border-radius: 4px; padding: 16px 20px; text-align: center; transition: background 0.2s; }
.fin-cat-btn a { color: #ffffff !important; font-weight: 600; font-size: 16px; text-decoration: none; display: block; }
.fin-cat-btn:hover { background: #002855; }

/* White cards (Vero style) */
.fin-card-vero { background: #ffffff; border: 1px solid #d1d5db; border-radius: 6px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.fin-card-vero h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; color: #111827; border: none; padding: 0; }
.fin-card-vero p { 
    color: #374151; 
    font-size: 15px; 
    line-height: 1.6; 
    margin-bottom: 25px; 
    /* Force line breaks for long words */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.fin-btn-green { display: inline-block; background: #007a33; color: #ffffff !important; padding: 10px 20px; border-radius: 4px; font-weight: 700; font-size: 14px; text-decoration: none; transition: background 0.2s; align-self: flex-start; }
.fin-btn-green:hover { background: #005c26; text-decoration: none; }

/* Dark blue and pink cards (Suomi.fi style) */
.fin-card-suomi-blue { background: #003b7e; color: #ffffff; border-radius: 6px; padding: 24px; }
.fin-card-suomi-pink { background: #ffcce6; color: #111827; border-radius: 6px; padding: 24px; }
.fin-card-suomi-blue h3, .fin-card-suomi-pink h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; border: none; padding: 0; display: flex; justify-content: space-between; align-items: center; }
.fin-card-suomi-pink h3 { color: #111827; }

/* Merged overrides for Suomi blue cards */
.fin-card-suomi-blue h3 { color: #ffffff !important; text-align: left !important; }
.fin-card-suomi-blue p { text-align: left !important; color: #ffffff !important; }

/* Image cards (TE-Palvelut / Join the Crew style) */
.fin-card-img { background: #ffffff; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.fin-card-img-wrapper { height: 200px; width: 100%; background: #e5e7eb; overflow: hidden; }
.fin-card-img-content { padding: 30px; text-align: center; }
.fin-card-img-content h3 { margin: 0 0 15px 0; font-size: 1.6em; font-weight: 700; color: #111827; border: none; }
.fin-card-img-content p { color: #4b5563; font-size: 16px; line-height: 1.6; max-width: 600px; margin: 0 auto 25px auto; }
.fin-btn-blue { display: inline-block; background: #005eb8; color: #ffffff !important; padding: 12px 28px; border-radius: 4px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background 0.2s; }
.fin-btn-blue:hover { background: #004a94; text-decoration: none; }

/* =========================================================
   3. VOLUNTEER BOARD (About Page)
========================================================= */
.volunteer-grid {
    display: grid;
    /* Каждая карточка будет минимум 280px, а браузер сам заполнит весь ряд нужным количеством колонок */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
    width: 100%;
    margin-top: 20px;
}

/* Фикс для совсем маленьких экранов телефонов */
@media (max-width: 360px) {
    .volunteer-grid {
        grid-template-columns: 1fr;
    }
}

/* Делаем сетку адаптивной (чтобы на планшетах и телефонах всё не сплющило) */
@media (max-width: 1200px) {
    .volunteer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .volunteer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .volunteer-grid { grid-template-columns: 1fr; }
}
@keyframes goldPulse { 0%, 100% { box-shadow: 0 4px 15px rgba(218, 165, 32, 0.15), 0 0 10px rgba(255, 215, 0, 0.1); border-color: rgba(212, 175, 55, 0.3); } 50% { box-shadow: 0 12px 25px rgba(218, 165, 32, 0.4), 0 0 25px rgba(255, 215, 0, 0.3); border-color: rgba(212, 175, 55, 0.8); } }
@keyframes shimmerMove { 0% { left: -150%; } 100%, 200% { left: 200%; } }
.volunteer-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 35px 20px 25px 20px; text-align: center; width: 280px; position: relative; overflow: hidden; transition: all 1.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); animation: goldPulse 5s infinite ease-in-out; }
.volunteer-card:hover { transform: translateY(-10px) perspective(600px) rotateX(3deg) rotateY(-3deg) scale(1.02); box-shadow: 0 20px 30px -5px rgba(218, 165, 32, 0.5), 0 0 35px rgba(255, 215, 0, 0.5) !important; border-color: #d4af37 !important; animation-play-state: paused; }
.volunteer-card::before { content: ""; position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255, 215, 0, 0.4) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); pointer-events: none; animation: shimmerMove 5s infinite; }
.volunteer-avatar { width: 80px; height: 80px; margin: 0 auto 15px auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f8fafc; color: #94a3b8; transition: all 0.4s ease; }
.volunteer-card:hover .volunteer-avatar { background: #fef08a; color: #ca8a04; transform: scale(1.1); }
.volunteer-links { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; }
.volunteer-links a { color: #64748b; text-decoration: none; font-weight: 600; font-size: 14px; transition: color 0.3s; }
.volunteer-links a:hover { color: #d4af37; }

/* =========================================================
   4. JOIN THE CREW BLOCKS (UPDATED)
========================================================= */
/* Option B: Wiki image integration */
.crew-banner-wrapper { 
    position: relative; 
    border-radius: 12px; 
    margin: 40px auto; 
    max-width: 100%; 
    min-height: 380px; 
    overflow: hidden; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    background: #0f172a; 
}

.crew-bg-layer { 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    z-index: 1; 
}

/* 1. MAKE IMAGE INITIALLY BLURRED */
.crew-bg-layer .mw-halign-center, 
.crew-bg-layer a, 
.crew-bg-layer img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    display: block !important; 
    transition: filter 0.5s ease, transform 0.5s ease;
    filter: blur(6px); /* Initially blurred */
    transform: scale(1.05); /* Scaled slightly to hide blurred edges */
}

/* 2. MAKE OVERLAY INITIALLY DARKENED */
.crew-content-layer { 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    z-index: 2; 
    background: rgba(15, 23, 42, 0.65); /* Initially darkened (was 0.4) */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
    transition: background 0.5s ease; 
}

.crew-text-box { max-width: 650px; text-align: center; }
.crew-text-box h3 { font-size: 28px; font-weight: 800; color: #ffffff !important; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; border: none !important; }
.crew-text-box p { font-size: 16px; color: #f8fafc !important; margin: 0 auto; line-height: 1.6; }

/* 3. HOVER EFFECTS */
/* You can unblur it on hover, or keep it blurred. Here it unblurs slightly and darkens further */
.crew-banner-wrapper:hover .crew-bg-layer img { 
    filter: blur(2px); /* Unblurs slightly on hover */
    transform: scale(1.1); 
}
.crew-banner-wrapper:hover .crew-content-layer { 
    background: rgba(4, 11, 16, 0.85); /* Gets even darker on hover */
}

/* 4. BUTTON FIX (Removing the conflicting 'transparent' rule) */
.crew-btn-container { margin-top: 25px; }

/* Strip basic wiki styles safely without breaking our own button background */
.mw-parser-output .crew-btn-container a { 
    box-shadow: none !important; 
    text-decoration: none !important; 
}

/* Style the button properly */
.mw-parser-output .crew-btn-container a.external,
.crew-btn-container a.external { 
    display: inline-block !important; 
    background: #005eb8 !important; 
    color: #ffffff !important; 
    font-size: 16px !important; 
    font-weight: bold !important; 
    padding: 12px 30px !important; 
    border-radius: 8px !important; 
    text-decoration: none !important; 
    border: none !important; 
    transition: background 0.2s !important; 
}

.mw-parser-output .crew-btn-container a.external:hover,
.crew-btn-container a.external:hover { 
    background: #004a94 !important; 
}

.crew-btn-container a.external::after { display: none !important; }

/* =========================================================
   5. MAIN PAGE DESIGN (SC WIKI STYLE)
========================================================= */
.mp-hero { text-align: center; margin: 40px 0 30px; }
.mp-title { font-size: 2.5em; font-weight: 800; margin-bottom: 10px; color: #0f172a; }
.mp-subtitle { font-size: 1.1em; color: #64748b; margin-bottom: 30px; }

/* Search */
.mp-search { max-width: 600px; margin: 0 auto 40px auto; }

/* Categories (Dark buttons) */
.mp-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 40px; }
.mp-cat-btn { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border-radius: 8px; padding: 15px 20px; text-align: center; transition: all 0.2s ease; border: 1px solid #334155; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.mp-cat-btn a { color: #f8fafc !important; font-weight: 600; text-decoration: none; display: block; font-size: 15px;}
.mp-cat-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.3); border-color: #38bdf8; }

/* Info panels (Cards) */
.mp-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.mp-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.mp-card-title { font-size: 1.2em; font-weight: 700; color: #0f172a; margin-bottom: 15px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; }
.mp-card-links a { display: block; padding: 12px; background: #f8fafc; border-radius: 6px; margin-bottom: 8px; color: #334155; text-decoration: none; font-weight: 600; transition: background 0.2s; text-align: center; border: 1px solid #e2e8f0; }
.mp-card-links a:hover { background: #e2e8f0; color: #0f172a; }

/* Service buttons (Patreon/Discord Style) */
.mp-services { display: flex; flex-direction: column; gap: 12px; }
.mp-srv-btn { display: block; text-align: center; padding: 15px; border-radius: 8px; font-weight: bold; font-size: 1.1em; color: #ffffff !important; text-decoration: none; transition: opacity 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.mp-srv-btn:hover { text-decoration: none; opacity: 0.85; }
.btn-vero { background: #005eb8; } /* Tax office blue */
.btn-ytj { background: #2c3e50; }  /* Registry dark */
.btn-migri { background: #007A5E; } /* Migration green */

/* Deadlines Widget */
.mp-deadlines { display: flex; flex-direction: column; gap: 10px; }
.deadline-card { display: flex; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #ef4444; border-radius: 6px; padding: 10px 15px; transition: transform 0.2s; }
.deadline-card:hover { transform: translateX(5px); border-left-color: #dc2626; }
.deadline-date { font-weight: 800; color: #ef4444; font-size: 1.2em; min-width: 50px; text-align: center; }
.deadline-card.yel { border-left-color: #f59e0b; }
.deadline-card.yel .deadline-date { color: #f59e0b; font-size: 1em; }
.deadline-desc { margin-left: 15px; font-weight: 600; font-size: 0.95em; color: #334155; line-height: 1.3; }
.deadline-desc span { display: block; font-size: 0.8em; color: #64748b; font-weight: normal; }

/* =========================================================
   6. MISCELLANEOUS (COOKIES & LANGUAGES)
========================================================= */
/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 32px;
    left: 5%;
    max-width: 320px;
    /* Glass effect working in both light and dark themes */
    background: rgba(127, 127, 127, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(127, 127, 127, 0.25);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    color: var(--color-base); 
    font-size: 0.9em;
    line-height: 1.4;
}





/* =========================================================
   Cards
========================================================= */

.card-11 {
  width: 100%;
  display: block;
  align-items: center;
  justify-content: center;
  padding: 15px 0; /* Уменьшили отступы, чтобы карточка стояла компактно */
  box-sizing: border-box;
  background: transparent; /* Полностью убрали задний фон */
  font-family: 'Inter', system-ui, sans-serif;
  --focus: #6366f1;
  --accent: #6366f1;
  --accent-2: #ec4899;
}

.card-11 *, .card-11 *::before, .card-11 *::after { box-sizing: border-box; }

.card-11__card {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(60, 40, 100, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 -1px 0 rgba(0, 0, 0, 0.02) inset;
  transition: transform 0.35s ease, box-shadow 0.35s;
}

.card-11__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 40px 80px -30px rgba(60, 40, 100, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 -1px 0 rgba(0, 0, 0, 0.02) inset;
}

.card-11__cover {
  position: relative !important;
  height: 220px !important; /* <-- Изменили высоту (было 120px) */
  width: 100% !important;
  overflow: hidden !important;
  background: #e2e8f0; 
  display: block !important;
}

/* Нейтрализуем любые невидимые теги, которые создает MediaWiki */
.card-11__cover * {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

/* Заставляем саму картинку лечь фоном и обрезаться */
.card-11__cover img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;     /* Умная обрезка */
  object-position: center !important; 
  max-width: none !important;       /* Отключаем ограничения движка */
  max-height: none !important;
}

.card-11__cover-mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.35) 0%, transparent 40%), radial-gradient(ellipse at 80% 70%, rgba(244, 114, 182, 0.4) 0%, transparent 45%), radial-gradient(circle at 55% 40%, rgba(139, 92, 246, 0.3) 0%, transparent 40%);
}

.card-11__avatar-wrap {
  position: relative;
  margin: -34px auto 0;
  width: 68px;
  height: 68px;
  z-index: 2;
}

.card-11__avatar {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  padding: 3px;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.card-11__avatar-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #f5f4fb 0%, #e4e4f0 100%);
  color: #4338ca;
  font-size: 20px;
  font-weight: 800;
  border: 3px solid #fff;
}

.card-11__status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.card-11__status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.32);
}

.card-11__body {
  padding: 12px 22px 16px;
  text-align: center;
}

.card-11__name-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.card-11__name {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.card-11__role {
  font-size: 12.5px;
  font-weight: 500;
  color: #4b5563;
  margin: 0 0 6px;
}

.card-11__company { color: #4338ca; font-weight: 700; }
.card-11__bio { font-size: 12.5px; color: #6b6b7c; margin: 0 0 12px; }

.card-11__meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  color: #6b6b7c;
  margin: 0 0 14px;
}

.card-11__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 0;
  background: linear-gradient(180deg, #fafafd 0%, #f4f4fa 100%);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-11__stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.card-11__stat-title { font-size: 9.5px; font-weight: 600; text-transform: uppercase; color: #9ca3af; }
.card-11__stat-value { font-size: 14px; font-weight: 700; color: #1a1a1a; }

.card-11__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 18px;
}

.card-11__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #06070c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.card-11__social { display: flex; gap: 4px; }
.card-11__icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #6b6b7c;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  
}
.card-11__cta a { color: #fff !important; text-decoration: none !important; }
.card-11__icon a { color: inherit !important; text-decoration: none !important; }

/* Плавная анимация для кнопок */
.card-11__icon {
  transition: all 0.2s ease-in-out !important;
}

/* Цвет фона и рамки при наведении курсора */
.card-11__icon:hover {
  background-color: #003C83 !important; /* Сине-фиолетовый цвет */
  border-color: #6366f1 !important;
  transform: translateY(-2px) !important; /* Кнопка слегка приподнимается */
}

/* Цвет текста (ссылки) при наведении курсора */
.card-11__icon:hover a {
  color: #ffffff !important; /* Текст становится белым */
}

/* Оптимизированные стили для внутренних блоков карточки */
.card-11__body {
  padding-top: 24px !important;
}

.card-11__company {
  display: block !important;
  margin-bottom: 2px !important;
}

.card-11__foot {
  justify-content: center !important;
}

.card-11__icon {
  width: auto !important;
  padding: 0 14px !important;
}

/* 1. Выравнивание высоты всех карточек в сетке */
.card-11 {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  box-sizing: border-box;
  background: transparent;
  font-family: 'Inter', system-ui, sans-serif;
}

.card-11__card {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.1);
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important; /* Распределяет контент так, чтобы футтер всегда был внизу */
}

/* 2. Область с текстом заставляет футтер прижиматься к низу */
.card-11__body {
  padding: 20px 20px 10px !important;
  text-align: center;
  flex-grow: 1 !important; /* Растягивает блок тела, если текста мало */
  display: flex;
  flex-direction: column;
}

.card-11__bio {
  font-size: 12.5px;
  color: #6b6b7c;
  margin-top: 8px;
  margin-bottom: 12px;
}

/* 3. Красивые аккуратные кнопки социальной сети */
.card-11__foot {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 16px 18px !important;
}

.card-11__social {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  width: 100%;
}

.card-11__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #f8fafc !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease-in-out !important;
}

/* Очистка ссылок от системного мусора MediaWiki */
.card-11__icon a {
  color: #475569 !important;
  text-decoration: none !important;
  background: none !important;
  padding: 0 !important;
}

/* Перекрашивание кнопок при наведении */
.card-11__icon:hover {
  background-color: #003b7e !important;
  border-color: #003b7e !important;
  transform: translateY(-2px) !important;
}

.card-11__icon:hover a {
  color: #ffffff !important;
}

/* =========================================================
   -----Cards
========================================================= */


#cookie-consent-banner a { color: var(--color-primary); font-weight: bold; }
#cookie-consent-banner button { margin-top: 16px; width: 100%; background: var(--color-primary); color: #000000; border: none; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: transform 0.1s; }
#cookie-consent-banner button:active { transform: scale(0.97); }

/* Hide language subpage links */
.mw-category a[href*="/en"],
.mw-category a[href*="/ru"],
.mw-category a[href*="/fi"],
.mw-category a[href*="/uk"],
.mw-category a[href*="/su"] {
    display: none !important;
}

/* Safely hide empty list items without :has() */
.mw-category li {
    list-style: none !important;
}
.mw-category li > a:not([href*="/en"]):not([href*="/ru"]):not([href*="/fi"]):not([href*="/uk"]):not([href*="/su"])::before {
    content: "• ";
}