Files
front/assets/css/style.css
T
2026-10-04 10:53:15 +10:00

378 lines
7.3 KiB
CSS

/* Общие стили */
body {
font-size: 16px; /* Базовый размер шрифта для body */
}
.text-color {
color: #ccc;
}
h1,
h2,
h3,
h4,
h5 {
color: #ccc;
text-align: center; /* Централизация заголовков */
}
.plus-slygb .card-plus .card-body,
.product-card .card-info {
color: #fff;
}
/* Навигация */
nav {
font-size: 1em;
}
.navbar-brand-img {
width: 30px; /* Увеличен размер логотипа */
margin-right: 0.5rem;
vertical-align: middle; /* Выравнивание по вертикали */
}
/* Секции */
section {
background: linear-gradient(0deg, #101000 0%, #0f0f00 50%, #0d0d00 100%);
padding-bottom: 20px; /* Добавлен отступ снизу для лучшего разделения */
}
.sticky-block {
position: fixed;
top: 85px;
right: 0;
width: 50px;
height: auto;
background-color: black;
opacity: 0.3;
border-radius: 15px 0 15px 0;
padding: 10px;
display: inline-block; /* чтобы текст был в одну строку */
white-space: nowrap; /* предотвращает перенос текста */
writing-mode: sideways-lr; /* вертикальный текст */
z-index: 10;
text-decoration: none;
color: white;
}
.sticky-block:hover {
opacity: 1;
}
.fon-v {
border-radius: 20px; /* Уменьшен радиус скругления */
background: linear-gradient(180deg, #021400 27%, #012d0c 67%, #042900 96%);
padding: 20px; /* Добавлены внутренние отступы */
}
.fon-b {
border-radius: 20px; /* Уменьшен радиус скругления */
background: linear-gradient(0deg, #021400 27%, #012d0c 67%, #042900 96%);
padding: 20px; /* Добавлены внутренние отступы */
}
/* Визитная карточка */
.fon-vizitca {
background:
linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
url("/assets/img/fon.webp") center center/cover no-repeat local;
height: 95vh; /* Уменьшена высота для лучшей видимости контента */
width: 100%;
object-fit: cover;
display: flex;
flex-direction: column;
justify-content: center;
padding: 20px; /* Добавлены внутренние отступы */
}
p.pt-3.text-color {
align-items: center;
}
.fon-vizitca-spav {
max-width: 1730px;
font-size: 1.2em;
}
.fon-vizitca {
text-align: center;
padding: 4em;
}
.fon-vizitca > h1 {
color: #328639;
}
/* Карточки специальностей */
.product-card {
position: relative;
overflow: hidden;
border-radius: 10px;
transition: transform 0.3s ease-in-out;
}
.product-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: transparent;
transition: background-color 0.3s ease-in-out;
cursor: pointer;
}
.product-card:hover::before {
background-color: rgba(0, 0, 0, 0.6);
}
.product-card img {
width: 100%;
height: auto;
display: block;
}
.card-info {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background-color: transparent;
color: white;
padding: 1rem;
text-align: center;
z-index: 1;
transition: all 0.3s ease-in-out;
}
.product-card:hover .card-info {
top: 50%;
transform: translateY(-50%);
cursor: pointer;
}
.card-title {
margin-bottom: 0.5em;
}
.product-card .card-text {
display: none;
transition: opacity 0.3s ease-in-out;
overflow-y: auto;
max-height: 100px;
margin-bottom: 10px;
}
.product-card:hover .card-text {
display: block;
}
/* Скроллбар для текста в карточках специальностей */
.product-card .card-text::-webkit-scrollbar {
width: 4px;
}
.product-card .card-text::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
border-radius: 2px;
}
.product-card .card-text::-webkit-scrollbar-thumb {
background: #28a745;
border-radius: 2px;
}
.product-card .card-text::-webkit-scrollbar-thumb:hover {
background: #218838;
}
/* Кнопки в карточках специальностей */
.btn-card {
display: inline-block;
margin-top: 12px;
padding: 8px 20px;
background-color: #28a745;
color: white;
text-decoration: none;
border-radius: 5px;
font-size: 0.9rem;
font-weight: 600;
transition: all 0.3s ease;
border: 2px solid #28a745;
}
.btn-card:hover {
background-color: transparent;
color: #28a745;
transform: translateY(-2px);
}
/* Видео */
video {
border-radius: 20px;
cursor: pointer;
max-width: 100%;
height: auto;
}
/* Преимущества */
.plus-slygb {
background:
linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7)),
url("/assets/img/flag.png") center center/cover no-repeat local;
padding: 30px 0;
}
.card-plus {
background: none;
border: none;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding: 20px;
}
.card-plus img {
width: 45px;
margin: auto;
}
.card-plus .card-text {
display: block;
line-height: 1.4em;
}
.card-plus:hover {
cursor: pointer;
transition: all 0.3s ease-in-out;
background-color: rgba(0, 0, 0, 0.8);
}
/* Таблица требований */
td {
vertical-align: top;
}
/* Документы */
.download-link {
display: flex;
flex-direction: column;
align-items: center;
text-decoration: none;
color: #ccc;
margin-bottom: 15px;
}
.download-link img {
max-width: 45px;
height: auto;
margin-bottom: 5px;
}
.download-link span {
display: block;
text-align: center;
}
/*наведение на ссылки внизу*/
.download-link:hover span,
.text-ycheba:hover,
.custom-nav-link:hover {
color: #909000;
}
/* Учебные заведения */
.text-ycheba {
text-decoration: none;
color: #ccc;
}
.btn {
background: #0a0a0083;
height: 40px;
white-space: nowrap;
}
/* Подвал */
footer {
background: #0a0a00;
/* padding: 30px 0px 30px 0px; */
}
/* Ссылки в подвале */
.custom-nav-link {
text-decoration: none;
color: #ccc;
/* display: block; */
/* text-align: left; */
margin-bottom: 5px;
}
.fon-vus h2,
footer h2 {
white-space: nowrap;
}
/* Фиксированная кнопка Telegram */
.fixed-telegram-btn {
position: fixed;
bottom: 20px;
right: 20px;
width: 60px;
height: 60px;
background-color: #0088cc;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
z-index: 1000;
transition: all 0.3s ease;
}
.fixed-telegram-btn:hover {
transform: scale(1.1);
box-shadow: 0 6px 16px rgba(0, 136, 204, 0.5);
}
.fixed-telegram-btn img {
width: 35px;
height: 35px;
}
/* CTA кнопки в первом экране */
.cta-buttons {
display: flex;
gap: 15px;
justify-content: center;
flex-wrap: wrap;
}
.cta-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;
transition: all 0.3s ease;
}
.cta-icon {
width: 20px;
height: 20px;
}
.btn-primary {
background-color: #28a745;
border-color: #28a745;
}
.btn-primary:hover {
background-color: #218838;
border-color: #1e7e34;
}
/* Улучшенные заголовки */
.fon-vizitca-content {
position: relative;
z-index: 2;
}