* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #1a1a2e; background: #f8f9fa; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.header { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: white; padding: 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: #14b8a6; }
.nav { display: flex; gap: 8px; }
.nav a { color: rgba(255,255,255,0.7); text-decoration: none; padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.nav a:hover, .nav a.active { color: white; background: rgba(255,255,255,0.1); }

.hero { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); color: white; padding: 80px 0; text-align: center; margin-bottom: 60px; }
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
.hero p { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

.section { padding: 60px 0; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 32px; color: #1a1a2e; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card { background: white; border-radius: 16px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: all 0.3s; border: 1px solid #e9ecef; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: #1a1a2e; }
.card p { color: #6c757d; font-size: 0.95rem; }
.card .meta { margin-top: 16px; display: flex; gap: 12px; font-size: 0.85rem; color: #adb5bd; }
.card a { color: #14b8a6; text-decoration: none; font-weight: 600; }
.card a:hover { text-decoration: underline; }

.page-content { background: white; border-radius: 16px; padding: 48px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border: 1px solid #e9ecef; }
.page-content h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 24px; color: #1a1a2e; }
.page-content p { color: #495057; line-height: 1.8; margin-bottom: 16px; }

.footer { background: #1a1a2e; color: rgba(255,255,255,0.6); padding: 24px 0; text-align: center; margin-top: 60px; font-size: 0.9rem; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-blue { background: #dbeafe; color: #1e40af; }

/* ===== Навигация ===== */
.nav-link { color: rgba(255,255,255,0.85); text-decoration: none; padding: 8px 14px; border-radius: 8px; font-size: 0.95rem; font-weight: 500; transition: all 0.2s; display: inline-block; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.12); text-decoration: none; }
.nav-item { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.15); padding: 8px; z-index: 1000; }
.nav-item:hover .dropdown-menu { display: block; }
.dropdown-link { display: block; padding: 9px 12px; color: #1a1a2e; text-decoration: none; border-radius: 6px; font-size: 0.92rem; }
.dropdown-link:hover { background: #f1f5f9; color: #0d9488; text-decoration: none; }

/* ===== Кнопки ===== */
.btn { display: inline-block; padding: 12px 28px; border-radius: 10px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; }
.btn-light { background: #fff; color: #0d9488; }
.btn-light:hover { background: #f0fdfa; color: #0f766e; text-decoration: none; }
.btn-primary { background: #0d9488; color: #fff; }
.btn-primary:hover { background: #0f766e; color: #fff; text-decoration: none; }
.text-center { text-align: center; }

/* ===== Подвал ===== */
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; text-align: left; margin-bottom: 16px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.footer p { margin-bottom: 4px; }
.footer-copy { margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }

/* ===== Новости (виджет posts_list) ===== */
.news .item { background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 24px; border: 1px solid #e9ecef; box-shadow: 0 1px 3px rgba(0,0,0,0.06); position: relative; transition: all 0.3s; }
.news .item:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.news .item a.absolute { position: absolute; inset: 0; z-index: 2; }
.news .item-img { position: relative; height: 180px; background: linear-gradient(135deg, #14b8a6, #0d9488); }
.news .item-img-inner img { width: 100%; height: 100%; object-fit: cover; }
.news .item-date { position: absolute; top: 12px; left: 12px; background: rgba(26,26,46,0.85); color: #fff; border-radius: 8px; padding: 6px 10px; text-align: center; line-height: 1.2; z-index: 3; }
.news .item-date .day { font-size: 1.2rem; font-weight: 800; }
.news .item-date .month_year { font-size: 0.7rem; text-transform: uppercase; opacity: 0.85; }
.news .item-title { padding: 16px 16px 4px; font-weight: 700; color: #1a1a2e; font-size: 1.05rem; }
.news .item-title-anons { padding: 0 16px; color: #6c757d; font-size: 0.92rem; min-height: 42px; }
.news .item-btn { display: inline-block; margin: 12px 16px 16px; color: #0d9488; font-weight: 600; font-size: 0.92rem; }
.post-date { color: #6c757d; margin-bottom: 24px; }

/* ===== Мини-корзина в шапке ===== */
#msMiniCart a { color: #fff; text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 8px; background: rgba(255,255,255,0.12); }
#msMiniCart a:hover { background: rgba(255,255,255,0.2); }

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 8px; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
}
