/* Глобальные переменные */
:root {
    --primary: #4CAF50;
    --primary-dark: #3e8e41;
    --dark: #1a1a1a;
    --darker: #111;
    --light: #fff;
    --gray: #2a2a2a;
    --shadow: 0 4px 8px rgba(0,0,0,0.2);
    --shadow-lg: 0 6px 12px rgba(0,0,0,0.25);
    --transition: all 0.3s ease;
}

/* Светлая тема */
body.light-theme {
    --dark: #f5f5f5;
    --darker: #e0e0e0;
    --light: #333;
    --gray: #e0e0e0;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #333;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { 
        opacity: 0;
        transform: translateY(25px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Элементы с анимацией при скролле */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fadeUp {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* Прогресс-бар */
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--darker);
    z-index: 10000;
}

#progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Прелоадер */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid var(--light);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.6);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite ease-in-out;
}

.preloader-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.loading-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    animation: rotate 1.5s linear infinite;
}

.loading-text {
    margin-top: 25px;
    font-size: 1.2rem;
    color: var(--light);
    text-align: center;
    animation: pulse 1.5s infinite;
    font-weight: bold;
}

.loading-dots {
    display: inline-block;
    width: 20px;
    text-align: left;
}

.loading-dots::after {
    content: '...';
    animation: dotAnimation 1.5s infinite;
}

@keyframes dotAnimation {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
}

/* Стили для героя */
.hero-section {
    position: relative;
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('photo/background/backgroundIndex.jpg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--dark) 70%);
    opacity: 0.6;
    z-index: 1;
}

.logo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--light);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.6);
    transition: transform 0.5s, box-shadow 0.5s;
    animation: pulse 4s infinite ease-in-out;
}

.title {
    background: linear-gradient(to right, var(--primary), #8BC34A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    margin: 20px 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: fadeUp 1s ease-in-out 0.2s both;
}

/* Стили секций */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary);
    position: relative;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.section-title::after {
    content: '';
    width: 70px;
    height: 3px;
    background: var(--primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.5);
}

/* Галерея */
.gallery-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 8px;
}

.gallery-item {
    flex: 1;
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.media-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 8px;
    font-size: 12px;
    opacity: 0.9;
}

/* Карточки персонала и смен */
.staff-card, .shift-card {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp 0.8s ease-in-out forwards;
    transition: all 0.3s ease;
    background: var(--gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.staff-card:hover, .shift-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Кнопка подробнее */
.details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 6px 14px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 5px;
}

.details-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(0,0,0,0.4);
}

/* Круглые навигационные кнопки */
.circle {
    width: 70px;
    height: 70px;
    background: var(--light);
    color: #000;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.nav-tile i {
    font-size: 18px;
    color: var(--primary);
}
.nav-tile__label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}
.nav-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}
.lang-switch {
    display: flex;
    gap: 6px;
    padding: 4px 6px;
    background: rgba(0,0,0,0.7);
    border: 2px solid #22c55e;
    border-radius: 999px;
}
.lang-btn {
    border: none;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    transition: all 0.2s ease;
}
.lang-btn.active {
    background: #22c55e;
    color: #0b1324;
}
.circle {
    width: 70px;
    height: 70px;
    background: var(--light);
    color: #000;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.circle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.35);
}
.circle i { color: var(--primary); }

.skeleton-loader {
    position: relative;
    overflow: hidden;
    background-color: var(--gray);
    border-radius: 8px;
}

.skeleton-loader::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 12px;
    width: 60%;
}

.skeleton-media {
    aspect-ratio: 16 / 9;
    width: 100%;
    margin-bottom: 10px;
}

.lazy-card {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.lazy-card.loading {
    min-height: 200px;
}
.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 22px;
    transition: opacity 0.2s ease;
}
.play-overlay:hover { opacity: 0.85; }
.auto-pause-video { width: 100%; height: 100%; display: block; }
.no-scroll { overflow: hidden !important; }
.video-thumb {
    background-size: cover;
    background-position: center;
    min-height: 200px;
}

/* Модальные окна */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.zoom-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
}

/* Video inside modal should always be visible */
#videoModal #modalVideo {
    width: 100%;
    height: auto;
    max-height: 90vh;
    background: #000;
    object-fit: contain;
    display: block;
}

.close-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-zoom:hover {
    color: var(--primary);
}

/* Управление видео */
.video-modal-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.video-control-btn {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
} 

.video-control-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

/* Кнопка регистрации */
.register-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Модальное окно контактов */
.contact-modal-content {
    background: var(--darker);
    border-radius: 15px;
    padding: 25px;
    max-width: 90%;
    width: 350px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.contact-info {
    line-height: 1.8;
    font-size: 16px;
    margin: 15px 0;
}

/* Исправления для армянских текстов */
.text-wrap {
    word-break: break-word;
    overflow-wrap: break-word;
}

.shift-card .p-4, .staff-card .p-4 {
    padding: 1rem;
}

.staff-card p {
    font-size: 0.8rem;
    line-height: 1.3;
}

#modalShiftText {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}

.certificate-text p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.victoria-camp-google{
    position: absolute;
    left: -99px;
    top: -99px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.grweb {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
}
.hrweb-button-div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 25px;
}

/* Footer */
.site-footer {
    position: relative;
    margin-top: 32px;
    padding: 48px 16px 28px;
    background: linear-gradient(180deg, #111 0%, #0d0f0d 60%, #0b0b0b 100%);
    border-top: 1px solid rgba(76, 175, 80, 0.25);
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 200px at 10% -20%, rgba(76, 175, 80, 0.25), transparent 70%),
        radial-gradient(500px 220px at 90% -30%, rgba(139, 195, 74, 0.2), transparent 65%);
    pointer-events: none;
}
.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-block {
    display: flex;
    flex-direction: column;
}
.footer-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(76, 175, 80, 0.7);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.35);
}
.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
}
.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}
.footer-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4);
}
.footer-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}
.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: var(--primary);
}
.footer-contact-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}
.footer-contact-info p {
    margin: 0 0 6px;
}
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.social-link i {
    color: var(--primary);
}
.social-link:hover {
    background: rgba(76, 175, 80, 0.18);
    border-color: rgba(76, 175, 80, 0.35);
    transform: translateY(-1px);
}
.footer-bottom {
    position: relative;
    z-index: 1;
    margin: 32px auto 0;
    padding-top: 18px;
    max-width: 1100px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.footer-copy {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}
.site-footer .hrweb-button-div {
    padding: 0;
}
.hrweb-button {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hrweb-button:hover {
    border-color: rgba(76, 175, 80, 0.45);
    color: #fff;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
    transform: translateY(-1px);
}
.grweb p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    .footer-cta {
        align-self: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
