/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}

html, body {
    height: 100%;
    width: 100%;
    position: fixed;
    overscroll-behavior: none;
}

/* Override base styles when allowing scroll - VERY AGGRESSIVE */
html.allow-scroll,
html.allow-scroll body,
body.allow-scroll {
    overflow: visible !important;
    overflow-y: scroll !important;
    overflow-x: visible !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 100vh !important;
    touch-action: auto !important;
    -webkit-user-select: auto !important;
    user-select: auto !important;
    overscroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: none !important;
    will-change: auto !important;
}

/* Force scroll on containers */
.allow-scroll .all-presentations-page,
.allow-scroll .all-presentations-container {
    position: static !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* Mobile and desktop overrides */
@media (max-width: 768px) {
    html.allow-scroll,
    html.allow-scroll body,
    body.allow-scroll {
        overflow: visible !important;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        position: static !important;
    }
}

@media (min-width: 769px) {
    html.allow-scroll,
    html.allow-scroll body, 
    body.allow-scroll {
        overflow: visible !important;
        overflow-y: scroll !important;
        position: static !important;
    }
}

/* Utility Classes */
.hidden { display: none !important; }
.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 768px) {
    .mobile-only { display: block; }
    .desktop-only { display: none; }
    
    body {
        overflow-x: hidden;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Home Page */
.home-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: white;
}

.home-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    width: 220px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.home-navigation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.slug-input {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.slug-input:focus {
    border-color: #3b82f6;
}

.open-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.open-btn:hover {
    background: #2563eb;
}

.open-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.secondary-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.secondary-btn:hover {
    background: #4b5563;
}

.home-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.home-footer a {
    color: #000;
    text-decoration: underline;
}

.footer-subtitle {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Error Page */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: white;
}

.error-content {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
}

.error-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #dc2626;
}

.error-content p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.back-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background: #2563eb;
}

/* App Container */
.app {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    overflow: hidden;
}

/* Progress Bars */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
}

.progress-bar-fill {
    height: 100%;
    background: #3b82f6;
    transition: width 0.3s ease;
    width: 0%;
}

.desktop-progress {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    z-index: 50;
}

.progress-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.progress-dot {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.progress-bar-small {
    width: 96px;
    height: 4px;
    background: #6b7280;
    border-radius: 2px;
    overflow: hidden;
}

/* Slides Container */
.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    z-index: 0;
    transition: opacity 490ms ease-in-out;
    background: white;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide.no-transition {
    transition: none;
}

/* Media Elements */
.slide img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    background: transparent;
}

.slide video {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
}

@media (max-width: 768px) {
    .slide video {
        max-height: 90vh;
    }
    
    .video-transition {
        transition: opacity 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
    }
}

/* Video Player States */
.video-loading {
    position: relative;
}

.video-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #dc2626;
}

.video-error h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.video-error p {
    margin-bottom: 1rem;
}

.retry-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.retry-btn:hover {
    background: #b91c1c;
}

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20;
}

.play-button {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.75);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.play-button:hover {
    background: rgba(255, 255, 255, 1);
}

.play-icon {
    width: 64px;
    height: 64px;
    fill: #374151;
}

/* Contact Slide */
.contact-slide {
    position: relative;
    background: white;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.contact-slide-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    width: auto;
    height: 95vh;
    aspect-ratio: 9/16;
    max-width: 100%;
    color: #262626;
    background-size: cover;
    background-position: center;
    padding: 2rem;
    box-sizing: border-box;
}

/* Utility classes for flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.flex-grow { flex-grow: 1; }
.relative { position: relative; }
.absolute { position: absolute; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-1 { margin-left: 0.25rem; }
.text-white { color: white; }
.text-green-600 { color: #16a34a; }
.text-red-600 { color: #dc2626; }
.animate-spin { animation: spin 1s linear infinite; }
.opacity-25 { opacity: 0.25; }
.opacity-75 { opacity: 0.75; }

.contact-header {
    margin-bottom: 2rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s ease;
}

.contact-form-container {
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.7s ease 0.2s;
}

.contact-title {
    font-size: 1.32rem;
    font-weight: 400;
    color: #262626;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0;
    margin-bottom: 0.5rem;
}

.contact-divider {
    border: none;
    border-top: 1.5px solid #262626;
    margin: 0.5rem 0 1rem 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info p {
    font-size: 18px;
    font-weight: 400;
    color: #262626;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
}

.contact-info a {
    font-size: 18px;
    font-weight: 400;
    color: #262626;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-input {
    width: 100%;
    background: white;
    border: 0;
    color: #374151;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-input::placeholder {
    color: #9CA3AF;
}

.contact-submit {
    width: 100%;
    background: black;
    color: white;
    font-weight: 500;
    padding: 0.65rem 0.65rem;
    border-radius: 9999px;
    margin-top: 0.25rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.contact-submit:hover {
    opacity: 0.9;
}

.contact-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Отступ сверху для кнопки SEND только на ПК */
@media (min-width: 769px) {
    .contact-submit {
        margin-top: 0.3rem;
    }
}

.status-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.success-icon {
    background: rgba(34, 197, 94, 0.1);
}

.error-icon {
    background: rgba(239, 68, 68, 0.1);
}

.status-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 0.5rem 0;
}

.status-message {
    color: #6B7280;
    margin: 0 0 0.5rem 0;
}

.error-details {
    font-size: 0.875rem;
    color: #DC2626;
    margin: 0 0 1.5rem 0;
    padding: 0 1rem;
}

.contact-success, .contact-error {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Contact Slide Bottom Elements */
.contact-bottom {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pdf-button {
    cursor: pointer;
    opacity: 1;
    margin-bottom: 0rem;
}

.pdf-button:hover {
    opacity: 0.8;
}

.pdf-icon {
    height: 36px;
    width: auto;
}

.social-links {
    display: flex;
    gap: 1rem;
    opacity: 1;
    margin-bottom: 1rem;
}

.social-link {
    transition: opacity 0.2s;
    display: inline-block;
}

.social-link:hover {
    opacity: 0.8;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.company-logo {
    opacity: 1;
}

.company-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

/* Убираем ограничения высоты для контактного слайда */
.slide[data-type="contact"] {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: none !important;
}

@media (max-width: 768px) {
    .slide[data-type="contact"] {
        height: 100% !important;
        min-height: auto !important;
        max-height: none !important;
    }
}

/* Navigation Hints */
.navigation-hints {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #6b7280;
    z-index: 30;
    opacity: 0.6;
    animation: swipeHint 2s ease-in-out infinite;
}

/* Mobile first slide hint */
.mobile-first-slide-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 30;
    opacity: 0.8;
    display: none;
}

@media (max-width: 768px) {
    .mobile-first-slide-hint {
        display: block;
    }
}

@keyframes swipeHint {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.9; transform: translateX(-50%) scale(1.05); }
}

.swipe-arrow {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.navigation-hints p {
    font-size: 0.875rem;
}

/* Swipe Feedback */
.swipe-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    pointer-events: none;
}

@media (max-width: 768px) {
    .swipe-feedback {
        display: none !important;
    }
}

.swipe-arrow-feedback {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.0);
    color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: swipeFeedback 0.3s ease-out;
}

@keyframes swipeFeedback {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.8; transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-slide {
        padding: 1rem;
    }
    
    .contact-slide-inner {
        width: 100%;
        height: 100%;
        aspect-ratio: unset;
        max-height: none;
        padding: 1rem;
    }
    
    .contact-title {
        font-size: 1.25rem;
    }
    
    .contact-info p, .contact-info a {
        font-size: 16px;
    }
    
    .contact-bottom {
        left: 1.5rem;
    }
    
    .pdf-button {
        bottom: 145px;
    }
    
    .pdf-icon {
        height: 32px;
    }
    
    .social-links {
        bottom: 84px;
    }
    
    .company-logo-img {
        height: 8vw;
        max-height: 56px;
        min-height: 32px;
    }
}

@media (min-width: 1024px) {
    .contact-title {
        font-size: 3.36vmin;
    }
    
    .contact-divider {
        height: 0.2vmin;
        margin: 1.1vmin 0 3.1vmin 0;
    }
    
    .contact-info {
        gap: 2.6vmin;
    }
    
    .contact-info p, .contact-info a {
        font-size: 2.1vmin;
    }
    
    .contact-input {
        padding: 1.3vmin 2.1vmin;
        border-radius: 0.8vmin;
        font-size: 2.1vmin;
    }
    
    .contact-submit {
        padding: 1.6vmin 3.1vmin;
        font-size: 2.1vmin;
        margin-top: 5.2vmin;
    }
    
    .contact-bottom {
        left: 2.5vmin;
    }
    
    .pdf-button {
        bottom: 18.04vmin;
    }
    
    .pdf-icon {
        height: 4.2vmin;
    }
    
    .social-links {
        bottom: 10.4vmin;
        gap: 2.1vmin;
    }
    
    .social-icon {
        width: 5.2vmin;
        height: 5.2vmin;
    }
    
    .company-logo-img {
        height: 5.5vmin;
    }
}

/* Form inputs should allow text selection */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Slide Navigation */
.slide-navigation {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    z-index: 100;
    padding: 16px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dot:hover {
    background: rgba(0, 0, 0, 0.5);
}

.nav-dot.active {
    background: #000000;
    border: 2px solid transparent;
}

@media (max-width: 768px) {
    .slide-navigation {
        display: none !important;
    }
}

/* Slide Counter */
.slide-counter {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.slide-counter span {
    font-size: 14px;
    font-weight: 500;
    color: white;
    font-family: 'Instrument Sans', sans-serif;
}

/* Navigation Arrows */
.navigation-arrows {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: none;
    width: 100%;
    pointer-events: none;
}

.navigation-arrows.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .navigation-arrows {
        display: none !important;
    }
}

.nav-arrow {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: absolute;
    pointer-events: auto;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.nav-arrow.left {
    left: 1rem;
}

.nav-arrow.right {
    right: 1rem;
}

.nav-arrow.hidden {
    display: none !important;
}

/* Tooltip styles */
.nav-arrow .tooltip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

/* Tooltip для левой стрелки (показывается справа) */
.nav-arrow.left .tooltip {
    left: 60px;
}

.nav-arrow.left .tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.8);
}

/* Tooltip для правой стрелки (показывается слева) */
.nav-arrow.right .tooltip {
    right: 60px;
}

.nav-arrow.right .tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.nav-arrow:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* All Presentations Page */
.all-presentations-page {
    min-height: 100vh;
    background: #E6E6EB;
    padding: 2rem;
}

.all-presentations-container {
    max-width: 1200px;
    margin: 0 auto;
}

.all-presentations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.all-presentations-header .view-switcher {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.all-presentations-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}



.presentations-count {
    text-align: center;
    margin-bottom: 2rem;
}

.presentations-count p {
    color: #6b7280;
    font-size: 1.125rem;
}

.presentations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.presentation-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.presentation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.presentation-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.presentation-logo {
    height: 160px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.presentation-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.presentation-info {
    padding: 1.5rem;
}

.presentation-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.presentation-info p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.presentation-pdf {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.pdf-view-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    flex: 1;
    justify-content: center;
}

.pdf-view-btn:hover {
    background: #2563eb;
}

.pdf-download-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    flex: 1;
    justify-content: center;
}

.pdf-download-btn:hover {
    background: #047857;
}

.pdf-view-btn svg,
.pdf-download-btn svg {
    width: 16px;
    height: 16px;
}

.no-presentations {
    text-align: center;
    padding: 4rem 2rem;
}

.no-presentations h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.no-presentations p {
    color: #6b7280;
    font-size: 1.125rem;
}

/* Presentations Controls */
.presentations-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-switcher {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: #e5e7eb;
}

.view-btn.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-btn svg {
    width: 16px;
    height: 16px;
}

/* Presentations Table Styles */
.presentations-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.presentations-table {
    width: 100%;
    border-collapse: collapse;
}

.presentations-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.presentations-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.presentations-table tr:last-child td {
    border-bottom: none;
}

.presentations-table tr:hover {
    background: #f9fafb;
}

.table-logo {
    width: 80px;
}

.table-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 8px;
    border: 1px solid #e5e7eb;
}

.table-title h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.table-title p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.table-action {
    text-align: left;
    width: 255px;
}

.table-action .pdf-view-table-btn {
    background: #3b82f6;
    color: white;
    margin-right: 0.25rem;
}

.table-action .pdf-view-table-btn:hover {
    background: #2563eb;
}

.table-action .pdf-download-table-btn {
    background: #059669;
    color: white;
    margin-left: 0.25rem;
}

.table-action .pdf-download-table-btn:hover {
    background: #047857;
}

.table-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.table-btn.presentation-btn {
    background: #3b82f6;
    color: white;
}

.table-btn.presentation-btn:hover {
    background: #2563eb;
}

.table-btn.pdf-btn-table {
    background: #dc2626;
    color: white;
}

.table-btn.pdf-btn-table:hover {
    background: #b91c1c;
}

.table-btn svg {
    width: 16px;
    height: 16px;
}

.table-empty {
    color: #9ca3af;
    font-style: italic;
}

@media (max-width: 768px) {
    .all-presentations-page {
        padding: 1rem;
    }
    
    .all-presentations-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .all-presentations-header h1 {
        font-size: 2rem;
    }
    
    .presentations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Мобильные стили для карточек */
    .presentation-card {
        margin: 0;
        max-width: none;
        width: 100%;
    }

    .presentation-logo {
        height: 100px; /* Уменьшенная высота с 160px */
    }

    .presentation-info {
        text-align: center; /* Название по центру */
    }

    .presentation-info h3 {
        text-align: center;
    }

    .presentations-controls {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .view-switcher {
        justify-content: center;
    }

    /* Улучшенная адаптация таблицы для мобильных устройств */
    .presentations-table-container {
        overflow-x: visible; /* Убираем горизонтальную прокрутку */
        border-radius: 8px;
    }

    .presentations-table {
        min-width: auto; /* Убираем минимальную ширину */
        width: 100%;
        font-size: 0.875rem;
    }

    .presentations-table th {
        padding: 0.5rem 0.25rem; /* Уменьшенные отступы */
        font-size: 0.75rem;
    }

    .presentations-table td {
        padding: 0.5rem 0.25rem; /* Уменьшенные отступы */
    }

    .table-logo {
        width: 50px;
    }

    .table-logo img {
        width: 35px;
        height: 35px;
    }

    .table-title h4 {
        font-size: 0.875rem;
        line-height: 1.2;
        word-break: break-word; /* Перенос длинных слов */
        hyphens: auto; /* Автоматические переносы */
    }

    .table-title p {
        font-size: 0.75rem;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
    }

    .table-action {
        width: 100px;
    }

    .table-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        min-width: auto;
        white-space: nowrap;
    }

    .table-btn svg {
        width: 12px;
        height: 12px;
    }
    
    /* Скрываем текст в PDF кнопках на мобиле в таблице */
    .table-btn-text {
        display: none;
    }

    /* Показываем текст в карточках на мобиле */
    .pdf-btn-text {
        display: inline;
    }

    /* Адаптируем PDF кнопки в карточках для мобиле */
    .presentation-pdf {
        gap: 0.25rem;
        padding: 0.75rem 1rem;
    }

    .pdf-view-btn, 
    .pdf-download-btn {
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
        min-width: 44px;
        justify-content: center;
        font-size: 0.75rem;
    }

    /* Стили для PDF кнопок в таблице на мобиле */
    .table-action .pdf-view-table-btn,
    .table-action .pdf-download-table-btn {
        padding: 0.25rem 0.375rem;
        font-size: 0.625rem;
        width: 45%;
        margin: 0 0.1rem;
    }

    .table-action .pdf-view-table-btn svg,
    .table-action .pdf-download-table-btn svg {
        width: 12px;
        height: 12px;
    }
}

