/* TripPlan — Public Site CSS */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0b7cff;
  --primary-dark: #0a63cc;
  --primary-soft: #eaf4ff;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15,23,42,.08);
  --shadow-lg: 0 4px 16px rgba(15,23,42,.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; }
.section { padding: 60px 0; }

/* ====== HEADER ====== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 80px; gap: 32px;
}
.header-logo img { height: 60px; }
.header-nav { display: flex; gap: 8px; justify-content: center; flex: 1; }
.header-nav a {
  padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 15px;
  color: var(--muted); transition: .15s;
}
.header-nav a:hover { color: var(--text); background: var(--bg); }
.header-nav a.active { color: var(--primary); background: var(--primary-soft); }
.btn-header-login {
  padding: 10px 24px; border-radius: 10px; font-weight: 700; font-size: 15px;
  background: var(--primary); color: #fff; white-space: nowrap;
}
.btn-header-login:hover { background: var(--primary-dark); }
.header-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.header-burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

@media (max-width: 768px) {
  .header-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .header-nav.open { display: flex; }
  .header-burger { display: block; margin-left: auto; }
  .btn-header-login { margin-left: auto; }
}

/* ====== HERO ====== */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1400&h=600&fit=crop') center/cover no-repeat;
  text-align: center; color: #fff; overflow: hidden;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,124,255,.85), rgba(139,92,246,.75)); }
.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 60px 24px; }
.hero-content h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero-content p { font-size: 18px; opacity: .9; margin-bottom: 32px; }
.btn-hero {
  display: inline-block; padding: 14px 36px; border-radius: 12px; font-weight: 700; font-size: 17px;
  background: #fff; color: var(--primary); transition: .15s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ====== PAGE HERO ====== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), #8b5cf6); color: #fff;
  padding: 48px 0; text-align: center;
}
.page-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.page-hero p { font-size: 17px; opacity: .9; }
.page-hero-small { padding: 24px 0; }

/* ====== SECTION TITLES ====== */
.section-title { font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 40px; font-size: 16px; }

/* ====== DESTINATIONS ====== */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.dest-card {
  border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow);
  transition: .15s; color: var(--text);
}
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dest-card img { width: 100%; height: 200px; object-fit: cover; }
.dest-body { padding: 16px; }
.dest-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.dest-body p { color: var(--muted); font-size: 14px; }

/* ====== FEATURES ====== */
.features { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff; }
.features .section-title { color: #fff; }
.features .section-subtitle { color: rgba(255,255,255,.7); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.feature-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 28px; text-align: center;
}
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.5; }

/* ====== POST CARDS (main page) ====== */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.post-card {
  border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow);
  transition: .15s; color: var(--text);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-body { padding: 20px; }
.post-date { font-size: 13px; color: var(--muted); }
.post-body h3 { font-size: 17px; font-weight: 700; margin: 6px 0 8px; line-height: 1.3; }
.post-body p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.section-more { text-align: center; margin-top: 32px; }

/* ====== BUTTONS ====== */
.btn {
  display: inline-block; padding: 10px 24px; border-radius: 10px; font-weight: 600; font-size: 15px;
  background: var(--primary); color: #fff; border: none; cursor: pointer; transition: .15s;
}
.btn:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-small { padding: 8px 16px; font-size: 13px; }

/* ====== CTA ====== */
.cta { background: linear-gradient(135deg, var(--primary), #8b5cf6); color: #fff; text-align: center; }
.cta h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.cta p { font-size: 17px; opacity: .9; margin-bottom: 24px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; }
.cta .btn-hero { background: #fff; }

/* ====== AD SLOTS ====== */
.ad-slot { padding: 20px 0; text-align: center; }
.ad-placeholder {
  width: 100%; max-width: 728px; height: 90px; margin: 0 auto;
  background: #e2e8f0; border: 2px dashed #94a3b8; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #64748b; font-size: 14px;
}
.ad-placeholder-vertical { max-width: 300px; height: 600px; }
.ad-sidebar { padding: 40px 24px; text-align: center; }

/* ====== NEWS ITEMS ====== */
.news-item {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow);
}
.news-item-img img { width: 100%; height: 250px; object-fit: cover; }
.news-item-body { padding: 24px; }
.news-item-date { font-size: 13px; color: var(--muted); }
.news-item-body h2 { font-size: 22px; font-weight: 700; margin: 8px 0 12px; }
.news-item-body p { color: var(--muted); font-size: 15px; margin-bottom: 12px; line-height: 1.6; }

/* ====== BLOG ====== */
.blog-filters { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.chip-btn {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.chip-btn.active, .chip-btn:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.blog-card {
  border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow);
  transition: .15s; color: var(--text);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-cat { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.blog-card-body h3 { font-size: 17px; font-weight: 700; margin: 6px 0 8px; line-height: 1.3; }
.blog-card-body p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.blog-card-date { font-size: 12px; color: var(--muted); }

/* ====== ARTICLE ====== */
.breadcrumb { color: rgba(255,255,255,.8); font-weight: 600; }
.breadcrumb:hover { color: #fff; }
.article-header { margin-bottom: 32px; }
.article-cat { font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.article-header h1 { font-size: 32px; font-weight: 800; margin: 8px 0 12px; line-height: 1.2; }
.article-meta { color: var(--muted); font-size: 14px; display: flex; gap: 8px; }
.article-cover { width: 100%; border-radius: 16px; margin-bottom: 32px; }
.article-body { font-size: 17px; line-height: 1.8; }
.article-body h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.article-body p { margin-bottom: 16px; color: #334155; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.article-body td:last-child { text-align: right; font-weight: 600; }

.related-posts { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-posts h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); }
.related-card:hover { border-color: var(--primary); }
.related-card img { width: 100px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.related-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.related-card span { font-size: 12px; color: var(--muted); }

/* ====== ABOUT ====== */
.about-lead { font-size: 18px; color: var(--muted); text-align: center; margin-bottom: 40px; line-height: 1.7; }
.about-screenshots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.screenshot-placeholder { background: var(--border); border-radius: 16px; height: 300px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.about-features { margin: 24px 0 40px; }
.about-feature { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.about-feature:last-child { border-bottom: none; }
.about-feature-icon { font-size: 32px; flex-shrink: 0; }
.about-feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.about-feature p { color: var(--muted); font-size: 15px; }
.about-download { display: flex; gap: 12px; margin-top: 16px; }
.btn-download { padding: 14px 32px; font-size: 16px; background: #000; color: #fff; border-radius: 12px; }
.btn-download-ru { background: var(--primary); }

/* ====== CONTACTS ====== */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-item { display: flex; gap: 12px; margin: 20px 0; }
.contact-icon { font-size: 28px; flex-shrink: 0; }
.contact-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.contact-item p, .contact-item a { color: var(--muted); font-size: 14px; }

.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }

@media (max-width: 768px) {
  .hero-content h1 { font-size: 28px; }
  .dest-grid, .posts-grid, .blog-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .about-screenshots, .contacts-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ====== FOOTER ====== */
.site-footer { background: #0f172a; color: rgba(255,255,255,.8); padding: 48px 0 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-logo { height: 52px; margin-bottom: 12px; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.6); font-size: 14px; margin-bottom: 6px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,.4); }

@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}
