/* assets/css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #1a2a3a;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #2d6a4f;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
    color: #2d6a4f;
}

.btn-test {
    background: #2d6a4f;
    color: white !important;
    padding: 8px 16px;
    border-radius: 24px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: white;
    padding: 80px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: #ffb703;
    color: #1a2a3a;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #fb8500;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid white;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Problems section */
.problems {
    padding: 80px 0;
    background: white;
}

.problems h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
    color: #1b4332;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.problem-card {
    text-align: center;
    padding: 32px;
    background: #f8f9fa;
    border-radius: 20px;
    transition: transform 0.2s;
}

.problem-card:hover {
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #2d6a4f;
}

/* How it works */
.how-it-works {
    padding: 80px 0;
    background: #f0f4f8;
}

.how-it-works h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #2d6a4f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 16px;
}

/* For organizers */
.for-organizers {
    padding: 60px 0;
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    color: white;
    text-align: center;
}

.for-organizers h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.for-organizers p {
    margin-bottom: 24px;
    font-size: 18px;
}

.btn-organizer {
    display: inline-block;
    background: #ffb703;
    color: #1b4332;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #1a2a3a;
    color: #94a3b8;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

/* Test page */
.test-page {
    background: #f5f7fa;
}

.test-hero {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

.test-progress {
    max-width: 600px;
    margin: 24px auto 0;
    background: rgba(255,255,255,0.3);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    background: #ffb703;
    height: 100%;
    transition: width 0.3s ease;
}

.test-form {
    padding: 60px 0;
}

.test-question {
    background: white;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.question-number {
    color: #2d6a4f;
    font-weight: bold;
    margin-bottom: 12px;
}

.question-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.option:hover {
    background: #e9ecef;
}

.option input {
    width: 20px;
    height: 20px;
}

.option-text {
    font-size: 16px;
}

.test-actions {
    text-align: center;
    margin-top: 32px;
}

/* Result page */
.result-hero {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    padding: 60px 0;
    color: white;
}

.profile-card {
    background: white;
    color: #1a2a3a;
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.profile-emoji {
    font-size: 80px;
}

.scores-grid {
    margin-top: 32px;
}

.score-item {
    margin-bottom: 16px;
}

.score-label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

.score-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.score-bar div {
    background: #2d6a4f;
    height: 100%;
    border-radius: 10px;
}

.score-value {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    display: block;
}

.recommended-tours {
    padding: 60px 0;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.tour-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.tour-card:hover {
    transform: translateY(-5px);
}

.tour-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
}

.tour-info {
    padding: 20px;
}

.tour-info h3 {
    margin-bottom: 8px;
}

.tour-location {
    color: #6c757d;
    margin-bottom: 8px;
}

.tour-price {
    font-size: 20px;
    font-weight: bold;
    color: #2d6a4f;
    margin: 12px 0;
}

.tour-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffb703;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.difficulty-easy { background: #74c69d; color: #1b4332; }
.difficulty-medium { background: #ffb703; color: #1a2a3a; }
.difficulty-hard { background: #e76f51; color: white; }

/* Auth pages */
.auth-page {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}

.auth-card h1 {
    margin-bottom: 24px;
    color: #1b4332;
}

.auth-card input,
.auth-card select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
}

.auth-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.auth-link {
    margin-top: 20px;
    color: #6c757d;
}

.auth-link a {
    color: #2d6a4f;
    text-decoration: none;
}

/* Catalog filters */
.catalog-filters {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.filters-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filters-form select,
.filters-form input {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
}

.catalog-list {
    padding: 60px 0;
}

/* Booking page */
.booking-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 60px 0;
}

.booking-summary,
.booking-payment {
    background: white;
    border-radius: 24px;
    padding: 32px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 16px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 20px;
    font-weight: bold;
    border-top: 2px solid #2d6a4f;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .booking-two-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .filters-form {
        flex-direction: column;
    }
    
    .filters-form select,
    .filters-form input,
    .filters-form button {
        width: 100%;
    }
}
/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    /* Общие отступы */
    .container {
        padding: 0 16px;
    }
    
    /* Шапка */
    .header .container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    /* Hero-блок */
    .hero {
        padding: 40px 0;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    /* Карточки проблем */
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .problem-card {
        padding: 24px;
    }
    
    /* Шаги */
    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Каталог туров */
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    /* Формы */
    .filters-form {
        flex-direction: column;
    }
    
    .filters-form select,
    .filters-form input,
    .filters-form button {
        width: 100%;
    }
    
    /* Страница бронирования */
    .booking-two-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Личный кабинет */
    .cabinet-menu {
        flex-direction: column;
        gap: 8px;
    }
    
    .cabinet-menu a {
        display: block;
        text-align: center;
    }
    
    /* Футер */
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Тест */
    .test-question {
        padding: 20px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    /* Результат теста */
    .profile-card {
        padding: 24px;
        margin: 0 16px;
    }
    
    .profile-emoji {
        font-size: 60px;
    }
}

/* Для очень маленьких телефонов (до 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .tour-card {
        margin: 0 0 20px 0;
    }
}