* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

nav {
    background-color: #34495e;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem;
    display: block;
}

nav a:hover {
    color: #3498db;
}

section {
    padding: 3rem 0;
}

.gray-bg {
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #3498db;
    margin: 10px auto;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.about-image {
    flex: 1;
    text-align: center;
    min-width: 250px;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.tour-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.tour-card:hover {
    transform: translateY(-5px);
}

.tour-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

.tour-content {
    padding: 1.5rem;
}

.tour-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.tour-description {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.95rem;
}

.tour-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.tour-price {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.tour-button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.tour-button:hover {
    background: #2980b9;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.review-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.review-text {
    font-style: italic;
    margin: 0.5rem 0;
}

.review-author {
    font-weight: bold;
    color: #3498db;
    margin-top: 0.5rem;
}

.review-date {
    font-size: 0.8rem;
    color: #999;
    margin-left: 10px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-item {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3498db;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.close-button:hover {
    background: #f0f0f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-submit:hover {
    background: #2980b9;
}

.confirmation {
    display: none;
    text-align: center;
    padding: 2rem;
}

.confirmation-icon {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

/* Система отзывов */
.btn-write-review {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
}

.review-form-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stars-input {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    color: #ddd;
}

.star.selected {
    color: #ffc107;
}

.btn-cancel {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

.admin-panel {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
}

.pending-review-card {
    background: #34495e;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.approve-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.reject-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .tours-grid,
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 2rem;
    }
}

html {
    scroll-behavior: smooth;
}