a{
    color: #FF9999;
}

/* Фикс Хедер */

.fix-hed{
    background-color: #1F2937;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* Анимированный фон для главного блока */
.hero-bg {
    background: linear-gradient(45deg, #C54242, #A13535, #E55D5D, #8B2C2F);
    background-size: 400%;
    animation: gradientAnimation 12s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Анимация кнопки */
.animated-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Стили аккордеона */
.accordion-item {
    border: none;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background-color: #2D3748;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.accordion-header {
    cursor: pointer;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    border-radius: 12px;
}

.accordion-header:hover {
    background-color: #3B4A60;
}

.accordion-header h3 {
    color: #fff; /* Акцентный цвет */
    margin-left: 0.5rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 1.5rem;
}

.accordion-content.active {
    max-height: 600px;
    padding: 1.5rem 1.5rem 2rem;
}

/* Стили кнопок приложений */
.app-button {
    background: linear-gradient(90deg, #C54242, #E55D5D);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(197, 66, 66, 0.3);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.app-button:hover {
    background: linear-gradient(90deg, #A13535, #C54242);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 16px rgba(197, 66, 66, 0.5);
}

.app-button:active {
    transform: scale(0.98);
    box-shadow: 0 4px 8px rgba(197, 66, 66, 0.2);
}

.app-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.app-button:hover::before {
    left: 100%;
}

.app-icon {
    width: 36px;
    height: 36px;
    margin-right: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.app-button:hover .app-icon {
    transform: scale(1.1);
}

/* Стили модального окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal:not(.hidden) {
    opacity: 1;
}

.modal-content {
    background-color: #1F2937;
    padding: 3rem;
    border-radius: 16px;
    max-width: 800px;
    width: 95%;
    height: 90%;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.4s ease;
}

.modal:not(.hidden) .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #FF9999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #C54242;
}

.instruction-content {
    max-height: 90%;
    height: 90%;
    overflow-y: auto;
    padding-right: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #E5E7EB;
}

.instruction-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.instruction-content li {
    margin-bottom: 1.5rem;
}

.instruction-content a {
    color: #FF6666;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.instruction-content a:hover {
    color: #E55D5D;
}

.instruction-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
    border: 1px solid #4B5563;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.video-content video {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
    border: 1px solid #4B5563;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image-caption {
    font-size: 0.9rem;
    color: #9CA3AF;
    text-align: center;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

/* Стили оверлея для увеличенной картинки */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Выше модального окна */
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
    pointer-events: none;
}

.image-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.overlay-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.image-overlay:not(.hidden) .overlay-image {
    transform: scale(1);
}