* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background: url('img/bg.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Контейнер Tinder */
.tinder-container {
    width: 100%;
    max-width: 400px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    position: relative;
}

/* Прогресс бар */
.progress-container {
    width: 100%;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Контейнер для карточек */
.cards-container {
    width: 100%;
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили карточки */
.vacancy-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: grab;
}

.vacancy-card:active {
    cursor: grabbing;
}

.vacancy-card.dragging {
    transition: none;
}

.vacancy-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.vacancy-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.vacancy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vacancy-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: white;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.vacancy-title h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.vacancy-title .salary {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 600;
}

/* Индикаторы свайпа */
.swipe-indicator {
    position: absolute;
    top: 30px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-left {
    left: 20px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    transform: rotate(-10deg);
}

.swipe-right {
    right: 20px;
    background: rgba(46, 204, 113, 0.9);
    color: white;
    transform: rotate(10deg);
}

.swipe-indicator.active {
    opacity: 1;
}

/* Кнопки действий */
.actions-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
}

.action-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.action-btn:active {
    transform: scale(0.95);
}

.reject-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.like-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.btn-icon {
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.reject-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    box-shadow: 0 7px 20px rgba(231, 76, 60, 0.4);
}

.like-btn:hover {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 7px 20px rgba(46, 204, 113, 0.4);
}

/* Кнопка перезапуска */
.restart-container {
    padding: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.restart-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.6);
}

/* Модальное окно */
.vacancy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-header {
    margin-bottom: 20px;
    padding-right: 30px;
}

.modal-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.modal-salary {
    color: #e74c3c;
    font-size: 1.3rem;
    font-weight: bold;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-description {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-description p {
    margin-bottom: 15px;
}

.modal-description ul {
    list-style: none;
    padding-left: 0;
}

.modal-description li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.modal-description li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.apply-btn-modal {
    display: block;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.apply-btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

/* Утилиты */
.hidden {
    display: none !important;
}

/* Стили для хедера и футера (оставляем ваши существующие) */
.tg-header {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 136, 204, 0.3);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.tg-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tg-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.tg-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tg-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.894 8.221l-1.97 9.28c-.145.658-.537.818-1.084.508l-3-2.21-1.447 1.394c-.16.16-.295.295-.605.295l.213-3.053 5.56-5.022c.242-.213-.054-.334-.373-.121l-6.869 4.326-2.96-.924c-.64-.203-.654-.64.136-.954l11.566-4.458c.538-.196 1.006.128.832.941z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.footer {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 3px solid #3498db;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.disclaimer {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid #3498db;
}

.disclaimer h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.disclaimer p {
    color: #ecf0f1;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: center;
}

.footer-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-info p {
    color: #bdc3c7;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .tinder-container {
        padding: 60px 15px 15px 15px;
    }
    
    .action-btn {
        width: 65px;
        height: 65px;
    }
    
    .btn-icon {
        font-size: 1.8rem;
    }
    
    .vacancy-title h3 {
        font-size: 1.6rem;
    }
    
    .vacancy-title .salary {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .tinder-container {
        padding: 60px 10px 10px 10px;
    }
    
    .action-btn {
        width: 60px;
        height: 60px;
    }
    
    .btn-icon {
        font-size: 1.6rem;
    }
    
    .vacancy-title {
        padding: 20px;
    }
    
    .vacancy-title h3 {
        font-size: 1.4rem;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
}

/* Секция понравившихся вакансий */
.liked-vacancies {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 80px 20px 20px 20px;
}

.liked-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.liked-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2rem;
}

.liked-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.liked-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.liked-vacancy-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #f8f9fa;
}

.liked-vacancy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.liked-vacancy-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.liked-vacancy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.liked-vacancy-content {
    padding: 20px;
}

.liked-vacancy-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
}

.liked-vacancy-salary {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.liked-vacancy-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.liked-apply-btn {
    flex: 1;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 140px;
}

.liked-apply-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.view-details-btn {
    flex: 1;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 140px;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    transform: translateY(-2px);
}

.liked-actions {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

.back-to-swipe-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.back-to-swipe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.6);
}

/* Сообщение когда нет понравившихся */
.no-liked-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border-radius: 15px;
    border: 2px dashed #bdc3c7;
}

.no-liked-message h3 {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-liked-message p {
    color: #95a5a6;
    margin-bottom: 20px;
}

/* Адаптивность для понравившихся */
@media (max-width: 768px) {
    .liked-vacancies {
        padding: 70px 15px 15px 15px;
    }
    
    .liked-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .liked-header h2 {
        font-size: 1.6rem;
    }
    
    .liked-vacancy-actions {
        flex-direction: column;
    }
    
    .liked-apply-btn,
    .view-details-btn {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .liked-vacancies {
        padding: 60px 10px 10px 10px;
    }
    
    .liked-header {
        padding: 0 10px;
    }
    
    .liked-header h2 {
        font-size: 1.4rem;
    }
    
    .liked-grid {
        padding: 10px;
    }
    
    .liked-vacancy-content {
        padding: 15px;
    }
    
    .liked-vacancy-title {
        font-size: 1.2rem;
    }
}
