/*
Theme Name: CK Logistics Blog
Theme URI: https://cklogistics.org
Author: PixelCRM
Description: Классическая тема блога CK Logistics в стиле основного лендинга.
Version: 1.0
Text Domain: cklog-blog
*/

/* ─── FONTS подключаются в header.php через Google Fonts ─── */

:root {
  --navy:       #0B1628;
  --navy-mid:   #083364;
  --navy-body:  #192948;
  --accent:     #0072F7;
  --accent-h:   #005ED4;
  --teal:       #25B2A0;
  --surface:    #F4F6FA;
  --card:       #FFFFFF;
  --text:       #1E2A3A;
  --muted:      #6B7280;
  --gold:       #F5C518;
  --white:      #FFFFFF;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Golos Text', sans-serif;
  background: var(--surface);
  color: var(--text);
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ─── BTN ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Golos Text', sans-serif; font-size: 15px; font-weight: 600;
  border-radius: 10px; padding: 14px 28px; cursor: pointer; border: none;
  text-decoration: none; transition: all 0.22s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-h); }

.badge {
  display: inline-block; font-family: 'Unbounded', sans-serif; font-size: 11px;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); border: 1px solid rgba(37,178,160,0.35);
  border-radius: 100px; padding: 5px 14px; margin-bottom: 16px;
}

/* ─── HEADER (из лендинга) ─── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,22,40,0.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07); transition: background 0.3s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 52px; width: auto; }
nav { display: flex; gap: 4px; }
nav a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7);
  text-decoration: none; padding: 8px 14px; border-radius: 8px; transition: all 0.18s;
}
nav a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone { font-size: 14px; font-weight: 600; color: var(--white); text-decoration: none; opacity: 0.85; transition: opacity 0.18s; }
.header-phone:hover { opacity: 1; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.mobile-nav { display: none; flex-direction: column; background: var(--navy); border-top: 1px solid rgba(255,255,255,0.07); padding: 16px 24px 24px; gap: 4px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.8); text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); transition: color 0.18s; }
.mobile-nav a:hover { color: var(--white); }
.mobile-nav .btn { margin-top: 12px; width: 100%; justify-content: center; }

/* ─── BLOG CONTENT ─── */
.site-main { padding-top: 72px; min-height: 70vh; }
.blog-hero {
  background: var(--navy); color: var(--white);
  padding: 64px 0 56px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.blog-hero h1 { font-family: 'Unbounded', sans-serif; font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.15; }
.blog-hero p { font-size: 17px; color: rgba(255,255,255,0.6); margin-top: 14px; max-width: 640px; line-height: 1.6; }

.posts-wrap { padding: 56px 0 80px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: var(--card); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,22,40,0.12); }
.post-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--surface); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; letter-spacing: 0.02em; }
.post-card h2 { font-family: 'Unbounded', sans-serif; font-size: 19px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
.post-card h2 a { color: var(--text); text-decoration: none; transition: color 0.18s; }
.post-card h2 a:hover { color: var(--accent); }
.post-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.post-more { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.post-more:hover { color: var(--accent-h); }

/* Single post */
.single-wrap { padding: 56px 0 80px; }
.single-article { max-width: 760px; margin: 0 auto; }
.single-article h1 { font-family: 'Unbounded', sans-serif; font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.single-meta { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.single-thumb { border-radius: 16px; overflow: hidden; margin-bottom: 32px; }
.single-thumb img { width: 100%; height: auto; display: block; }
.single-content { font-size: 17px; line-height: 1.75; color: var(--text); }
.single-content p { margin-bottom: 20px; }
.single-content h2 { font-family: 'Unbounded', sans-serif; font-size: 26px; font-weight: 700; margin: 36px 0 16px; }
.single-content h3 { font-family: 'Unbounded', sans-serif; font-size: 21px; font-weight: 600; margin: 28px 0 14px; }
.single-content ul, .single-content ol { margin: 0 0 20px 24px; }
.single-content li { margin-bottom: 8px; }
.single-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; }
.single-content a { color: var(--accent); }
.single-content blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 24px 0; color: var(--muted); font-style: italic; }
.back-to-blog { display: inline-block; margin-top: 40px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; border: 1px solid rgba(0,0,0,0.1); color: var(--text);
}
.pagination .current { background: var(--accent); color: var(--white); border-color: var(--accent); }
.pagination a:hover { background: var(--surface); }

/* ─── FOOTER (из лендинга) ─── */
footer { background: var(--navy); padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,0.07); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-about img { height: 52px; margin-bottom: 16px; }
.footer-about p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 260px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-link { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); text-decoration: none; transition: all 0.2s; }
.social-link:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.footer-col h4 { font-family: 'Unbounded', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.18s; }
.footer-col ul a:hover { color: var(--white); }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.fc-item { display: flex; gap: 10px; align-items: flex-start; }
.fc-item svg { color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.fc-item a, .fc-item span { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; line-height: 1.5; }
.fc-item a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.18s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .header-phone { display: none; }
  .burger { display: flex; }
  .header-right .btn { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
