.hero-text {
    font-family: Montserrat, sans-serif !important;
    color: #006b8c !important;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.hero-text .hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-text .hero-subtitle {
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.4;
}

.btn.btn-brand-color {
    background-color: #45AFC4;
    color: #fff;
    border-color: #45AFC4;
}

.btn.btn-brand-color:hover {
    background-color: #3A9AB0; /* Slightly darker shade for hover */
    color: #fff;
    border-color: #3A9AB0;
}

/* HTMX indicator styles */
.htmx-indicator {
    display: none; /* Скрываем по умолчанию */
    opacity: 0;
    transition: opacity 200ms ease-in;
}

/* Когда HTMX делает запрос, показываем индикатор */
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: flex; /* Используем flex для центрирования спиннера */
    opacity: 1;
}

.max-width-300 {
    max-width: 300px;
}

#upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    /* display: flex; УБРАНО ОТСЮДА, чтобы не конфликтовать */
    justify-content: center;
    align-items: center;
}

.intro-text {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.instructions-text {
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

.instructions-text p {
    margin-bottom: 0.75rem;
}

.instructions-text p:last-child {
    margin-bottom: 0;
}

.image-cover-150 {
    height: 150px;
    object-fit: cover;
}

.site-logo-link {
    font-size: calc(var(--bs-body-font-size) * 2.5);
    text-decoration: none;
    color: #45AFC4;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.dropdown-item-button {
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
    color: var(--bs-dropdown-link-color);
}

.dropdown-item-button:hover {
    color: var(--bs-dropdown-link-hover-color);
    background-color: var(--bs-dropdown-link-hover-bg);
}

.progress-custom {
    height: 38px !important;
    font-size: 1rem !important;
}

.progress-bar.w-33-33 {
    width: 33.33% !important;
}

.progress-bar.w-33-34 {
    width: 33.34% !important;
}

/* --- Lite YouTube facade styles --- */
lite-youtube {
    position: relative;
    display: block;
    contain: content;
    background-color: #000;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    max-width: 100%;
}

lite-youtube.lyt-activated {
    cursor: unset;
}

lite-youtube::before {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    background-image: var(--lty-playbtn-url);
    background-position: center;
    background-size: cover;
    opacity: 0.9;
    transition: opacity 0.2s ease-in-out;
}

lite-youtube::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: #ff0000;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    z-index: 1;
}

lite-youtube:hover::after,
lite-youtube:focus-visible::after {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

lite-youtube.lyt-activated::before,
lite-youtube.lyt-activated::after {
    display: none;
}

lite-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lyt-playbtn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: inherit;
    color: transparent;
    z-index: 2;
}

.lyt-playbtn:focus-visible {
    outline: 4px solid #000;
    outline-offset: 4px;
}

.lyt-playbtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-42%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    z-index: 3;
}
