|
|
Рядок 1: |
Рядок 1: |
| {{#css:
| | /* Контейнер усієї сітки */ |
| .flex-columns { | | .mainpage-grid { |
| display: flex; | | display: grid; |
| flex-wrap: wrap; | | grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); /* ширші колонки */ |
| gap: 48px; | | gap: 36px; |
| justify-content: center;
| | max-width: 1600px; |
| max-width: 1900px; | | margin: 40px auto; |
| margin: 3em auto; | | padding: 0 24px; |
| padding: 0 1.5em; | |
| } | | } |
|
| |
|
| .flex-columns > div { | | /* Оформлення кожної картки */ |
| flex: 1 1 540px;
| | .mainpage-card { |
| max-width: 740px;
| | background: #f6f6f6; /* світло-сірий */ |
| background: #f6f6f6; | |
| border: 1px solid #ddd; | | border: 1px solid #ddd; |
| border-radius: 12px; | | border-radius: 12px; |
| padding: 42px 36px; | | padding: 36px 28px; |
| box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05); | | box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04); |
| transition: transform 0.2s ease, box-shadow 0.2s ease;
| |
| display: flex; | | display: flex; |
| flex-direction: column; | | flex-direction: column; |
| align-items: stretch; | | justify-content: flex-start; |
| | align-items: flex-start; |
| | transition: transform 0.2s ease, box-shadow 0.2s ease; |
| } | | } |
|
| |
|
| .flex-columns > div:hover { | | /* Наведи — піднімається */ |
| | .mainpage-card:hover { |
| transform: translateY(-4px); | | transform: translateY(-4px); |
| box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); | | box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); |
| } | | } |
|
| |
|
| .flex-columns .image { | | /* Заголовок всередині картки */ |
| | .mainpage-card h2 { |
| | font-size: 2em; /* великий заголовок */ |
| | color: #002855; |
| | margin-bottom: 20px; |
| | border-bottom: 2px solid #0057b7; |
| | padding-bottom: 4px; |
| | width: 100%; |
| | text-align: left; |
| | } |
| | |
| | /* Обгортка логотипу */ |
| | .mainpage-card .image { |
| | height: auto; |
| | min-height: 160px; |
| | max-height: 220px; |
| display: flex; | | display: flex; |
| justify-content: center; | | justify-content: center; |
| align-items: center; | | align-items: center; |
| height: 150px; /* більше простору під логотип */
| |
| margin-bottom: 1.5em; | | margin-bottom: 1.5em; |
| | width: 100%; |
| } | | } |
|
| |
|
| .flex-columns .image img { | | /* Сам логотип */ |
| | .mainpage-card .image img { |
| max-height: 100%; | | max-height: 100%; |
| max-width: 90%; | | max-width: 90%; |
| object-fit: contain; | | object-fit: contain; |
| }
| | display: block; |
| | |
| .image img {
| |
| max-height: 120px !important; | |
| height: auto;
| |
| margin: 0 auto; | | margin: 0 auto; |
| }
| |
| .image {
| |
| height: 130px;
| |
| display: flex;
| |
| justify-content: center;
| |
| align-items: center;
| |
| margin-bottom: 1em;
| |
| } | | } |
|
| |
|
| .flex-columns h2 { | | /* Список категорій */ |
| font-size: 1.75em; | | .categorytree { |
| color: #002855; | | text-align: left; |
| margin-bottom: 1.5em; | | width: 100%; |
| border-bottom: 2px solid #0057b7;
| | font-size: 1.15em !important; /* збільшено, з перебивкою */ |
| padding-bottom: 0.4em;
| | line-height: 1.8; |
| text-align: center;
| | margin-top: auto; |
| }
| |
| | |
| /* 🎯 Критично: текст усередині дерева */ | |
| .CategoryTreeItem {
| |
| font-size: 1.10em !important;
| |
| line-height: 1.7 !important; | |
| text-align: left !important; | |
| color: inherit !important;
| |
| } | | } |
|
| |
|
| /* (Не обов'язково, але можна для контейнера дерева) */
| |
| .categorytree {
| |
| text-align: left !important;
| |
| }
| |
| }}
| |
|
| |
|
| <div class="flex-columns"> | | <div class="flex-columns"> |