/*
Theme Name: Student Travel MNU
Theme URI: https://example.com
Description: Красивая тема для сайта студенческого туризма МНУ - Liquid Glass Design
Version: 2.0
Author: Student Travel Team
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: student-travel-mnu
Domain Path: /languages
*/

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

:root {
  /* Apple-inspired colors */
  --primary-color: #0071E3;
  --secondary-color: #34C759;
  --accent-color: #FF9500;
  --danger-color: #FF3B30;
  --dark-color: #000;
  --light-color: #F5F5F7;
  --text-color: #1D1D1D;
  --text-secondary: #6E6E73;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
}

@supports (backdrop-filter: blur(20px)) {
  :root {
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.18);
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, #F5F5F7 0%, #FFFFFF 100%);
  background-attachment: fixed;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* ============ HEADER ============ */
header {
  background: linear-gradient(135deg, var(--dark-color) 0%, #2a2a2a 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

/* ============ MAIN CONTAINER ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-title {
  font-size: 48px;
  font-weight: bold;
  margin: 40px 0 20px;
  color: var(--dark-color);
}

.page-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

/* ============ HERO SECTION ============ */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 100px 20px;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}

.hero-content h1 {
  font-size: 52px;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  margin: 10px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background-color: var(--secondary-color);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--light-color);
  color: var(--secondary-color);
}

/* ============ TOURS GRID ============ */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.tour-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tour-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.tour-content {
  padding: 20px;
}

.tour-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.tour-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.tour-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
}

.tour-price {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
}

.tour-date {
  color: #999;
}

/* ============ FOOTER ============ */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

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

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

.footer-section a {
  color: #bbb;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #444;
  color: #999;
}

/* ============ SINGLE POST/PAGE ============ */
.post-header {
  margin: 40px 0;
}

.post-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 10px;
}

.post-meta {
  color: #999;
  font-size: 14px;
  margin-bottom: 20px;
}

.post-meta span {
  margin-right: 20px;
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
}

.post-content h2 {
  font-size: 28px;
  margin: 30px 0 15px;
  color: var(--dark-color);
}

.post-content h3 {
  font-size: 22px;
  margin: 20px 0 10px;
  color: var(--dark-color);
}

.post-content ul,
.post-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.post-content li {
  margin-bottom: 10px;
}

/* ============ SIDEBAR ============ */
.sidebar {
  background-color: var(--light-color);
  padding: 25px;
  border-radius: 8px;
  margin-top: 40px;
}

.widget {
  margin-bottom: 30px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--dark-color);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-color);
}

.widget ul {
  list-style: none;
}

.widget ul li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--text-color);
  font-weight: 500;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .page-title {
    font-size: 32px;
  }

  .tours-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 50px 20px;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  nav ul {
    gap: 5px;
  }

  nav a {
    font-size: 14px;
  }

  .btn {
    display: block;
    width: 100%;
  }
}

/* ============ STM HERO STYLES (для index.php) ============ */
.stm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.stm-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 80px 20px;
  margin-bottom: 60px;
}

.stm-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.stm-hero-eyebrow {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  opacity: 0.9;
}

.stm-hero-eyebrow-pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
}

.stm-hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.stm-hero-gradient {
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stm-hero-subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.6;
}

.stm-hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.stm-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stm-hero-stat {
  font-size: 13px;
  opacity: 0.9;
}

.stm-hero-media {
  position: relative;
}

.stm-hero-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stm-hero-photo {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

.stm-hero-photo-content {
  text-align: center;
}

.stm-hero-tag {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 10px;
}

.stm-hero-caption {
  font-size: 14px;
  color: #666;
}

.stm-hero-floating {
  position: absolute;
  bottom: -20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stm-hero-float-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 200px;
}

.stm-hero-float-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.stm-hero-float-meta {
  font-size: 12px;
  color: #666;
}

/* ============ SECTIONS ============ */
.stm-section {
  padding: 60px 20px;
  border-bottom: 1px solid var(--border-color);
}

.stm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.stm-section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.stm-section-kicker {
  font-size: 16px;
  color: #666;
}

/* ============ TOURS GRID ============ */
.stm-tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.stm-tour-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.stm-tour-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stm-tour-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
}

.stm-tour-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stm-tour-pill {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.stm-tour-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.stm-tour-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.stm-tour-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.stm-tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.stm-tour-price {
  font-weight: 600;
  color: var(--primary-color);
}

.stm-tagline {
  color: var(--secondary-color);
  font-weight: 500;
}

/* ============ ABOUT SECTION ============ */
.stm-about {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.stm-about-card {
  background: var(--light-color);
  padding: 40px;
  border-radius: 12px;
}

.stm-about-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.stm-about-text {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 25px;
}

.stm-about-grid {
  display: grid;
  gap: 12px;
}

.stm-about-chip {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  font-size: 14px;
}

/* ============ GALLERY ============ */
.stm-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  height: 400px;
}

.stm-gallery-main {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  overflow: hidden;
}

.stm-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stm-gallery-side-item {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 12px;
  overflow: hidden;
}

/* ============ DOCUMENTS ============ */
.stm-docs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.stm-doc-card {
  background: var(--light-color);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.stm-doc-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.stm-doc-meta {
  font-size: 12px;
  color: #999;
}

/* ============ FORM SECTION ============ */
.stm-form-section {
  background: linear-gradient(135deg, var(--light-color) 0%, #fff 100%);
  padding: 60px 20px;
}

.stm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.stm-form-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.stm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.stm-form-field {
  margin-bottom: 20px;
}

.stm-form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.stm-input,
.stm-textarea,
.stm-select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.stm-input:focus,
.stm-textarea:focus,
.stm-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.stm-textarea {
  min-height: 100px;
  resize: vertical;
}

.stm-form-hint {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

.stm-payment-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.stm-pay-buttons {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.stm-btn-kaspi,
.stm-btn-halyk {
  flex: 1;
}

/* ============ BUTTONS ============ */
.stm-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.stm-btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.stm-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.stm-btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.stm-btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.stm-btn-secondary {
  background-color: white;
  color: var(--primary-color);
}

.stm-btn-secondary:hover {
  background-color: var(--light-color);
  color: var(--secondary-color);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .stm-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stm-hero-title {
    font-size: 36px;
  }

  .stm-form-grid {
    grid-template-columns: 1fr;
  }

  .stm-about {
    grid-template-columns: 1fr;
  }

  .stm-form-row {
    grid-template-columns: 1fr;
  }

  .stm-hero-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stm-tours-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .stm-gallery-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 250px;
  }

  .stm-gallery-side {
    flex-direction: row;
  }

  .stm-gallery-side-item {
    flex: 1;
    min-height: 200px;
  }

  .stm-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stm-about-grid {
    grid-template-columns: 1fr;
  }

  .stm-pay-buttons {
    flex-direction: column;
  }

  .stm-hero-floating {
    position: static;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .stm-hero {
    padding: 40px 15px;
  }

  .stm-hero-title {
    font-size: 24px;
  }

  .stm-section-title {
    font-size: 24px;
  }

  .stm-tours-grid {
    grid-template-columns: 1fr;
  }

  .stm-hero-actions {
    flex-direction: column;
  }

  .stm-form-card,
  .stm-payment-card {
    padding: 20px;
  }

  .stm-about-card {
    padding: 20px;
  }
}
