* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fb;
  color: #1e2a3a;
  line-height: 1.6;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Шапка ===== */
header {
  background: linear-gradient(rgba(15, 32, 39, 0.7), rgba(44, 83, 100, 0.8)), 
              url('media/header.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 120px 0 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: #f4f7fb;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
}

header h1 {
  font-size: 3.5rem;
  letter-spacing: 1px;
  margin-bottom: 15px;
  font-weight: 800;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

header p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 30px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(90deg, #f7971e, #ffd200);
  color: #0f2027;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.btn-header {
  background: #fff;
  color: #0f2027;
  padding: 14px 34px;
  font-size: 1.05rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-header:hover {
  background: #f7971e;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Общие стили для секций ===== */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #0f2027;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #f7971e, #ffd200);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ===== Секция туров ===== */
.tours {
  padding: 40px 0 70px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.tour-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 32, 39, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(15, 32, 39, 0.15);
}

/* Картинки внутри карточек */
.tour-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.tour-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tour-card:hover .tour-img-wrapper img {
  transform: scale(1.05);
}

.tour-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tour-body h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #0f2027;
}

.tour-body p {
  color: #55606d;
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tour-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e67e22;
  margin-bottom: 16px;
}

.tour-price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: #7f8c8d;
}

/* ===== Секция Преимущества ===== */
.features {
  background: #fff;
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 20px;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: inline-block;
  background: #f4f7fb;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  color: #2c5364;
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #0f2027;
}

.feature-item p {
  color: #55606d;
  font-size: 0.95rem;
}

/* ===== Секция Отзывы ===== */
.reviews {
  padding: 80px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 32, 39, 0.06);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 5rem;
  color: #f4f7fb;
  line-height: 1;
  font-family: Georgia, serif;
}

.review-text {
  font-style: italic;
  color: #37474f;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #cfd8dc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  font-size: 1.2rem;
}

.avatar-1 { background: #e67e22; }
.avatar-2 { background: #2c5364; }
.avatar-3 { background: #f7971e; }

.author-info strong {
  display: block;
  color: #0f2027;
}

.author-info span {
  font-size: 0.85rem;
  color: #7f8c8d;
}

/* ===== Кнопка обратной связи ===== */
.feedback-section {
  text-align: center;
  padding: 20px 0 80px;
}

.btn-feedback {
  padding: 18px 50px;
  font-size: 1.15rem;
  background: linear-gradient(90deg, #2c5364, #0f2027);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(15, 32, 39, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-feedback:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 32, 39, 0.4);
}

/* ===== Подвал ===== */
footer {
  background: #0f2027;
  color: #b0bec5;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #b0bec5;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #f7971e;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

/* ===== Модальное окно ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 34px 32px 30px;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal h2 {
  font-size: 1.5rem;
  color: #0f2027;
  margin-bottom: 6px;
}

.modal .subtitle {
  color: #7f8c8d;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #90a4ae;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #e74c3c;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #37474f;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cfd8dc;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1e2a3a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.form-group textarea {
  min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f7971e;
  box-shadow: 0 0 0 3px rgba(247, 151, 30, 0.15);
}

.modal .btn-submit {
  width: 100%;
  padding: 13px;
  font-size: 1rem;
  margin-top: 6px;
}

/* ===== Сообщение об успехе ===== */
.success-screen {
  display: none;
  text-align: center;
  padding: 20px 0 10px;
}

.success-screen.visible {
  display: block;
}

.success-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  animation: pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
  0% { transform: scale(0); }
  80% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.success-screen h2 {
  margin-bottom: 10px;
}

.success-screen p {
  color: #55606d;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

/* ===== Стили для страницы отдельного тура ===== */
.single-tour-page {
  padding: 80px 0;
}

.single-tour-header {
  background: #fff;
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(15, 32, 39, 0.08);
  margin-bottom: 40px;
}

/* Картинка на странице тура */
.single-tour-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
}

.single-tour-header h1 {
  font-size: 2.5rem;
  color: #0f2027;
  margin-bottom: 20px;
}

.single-tour-desc {
  font-size: 1.1rem;
  color: #55606d;
  line-height: 1.8;
  margin-bottom: 30px;
}

.single-tour-price {
  font-size: 2rem;
  font-weight: 700;
  color: #e67e22;
  margin-bottom: 20px;
}

.btn-back {
  background: #cfd8dc;
  color: #0f2027;
  margin-left: 15px;
}

.btn-back:hover {
  background: #b0bec5;
}

/* Адаптив */
@media (max-width: 600px) {
  header h1 { font-size: 2.5rem; }
  .modal { padding: 28px 20px 24px; }
  .single-tour-header { padding: 20px; }
  .single-tour-header h1 { font-size: 1.8rem; }
  .single-tour-img { height: 250px; }
  .btn-back { margin-left: 0; margin-top: 10px; display: block; width: 100%; }
}
