/* Общие стили */
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 .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 .3s ease-in-out;
}

.product-card:hover .card-info {
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}


.card-title {
    margin-bottom: 0.5em;
}

.card-text {
    display: none;
    transition: opacity 0.3s ease-in-out;
}

.product-card:hover .card-text {
    display: block;
}

/* Видео */
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 .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;
}


/* Подвал */
footer {
    background: #0a0a00;
    padding: 30px 0px 30px 0px;
}

/* Ссылки в подвале */
.custom-nav-link {
    text-decoration: none;
    color: #ccc;

    display: block;
    text-align: left;
    margin-bottom: 5px;
}

/* Контактная информация */
.pozition-left {
    text-align: right;
    max-width: 500px;
}

.pozition-left h2 {
    text-align: right;
}

#phoneNumber{
    cursor: pointer;
}

.social-network-a{
    margin-left: 10px;
}

.social-network-a img{
    width: 30px;
}

.social-network-a img:hover{
    opacity: 0.8;
    cursor:pointer;
}
