/*
Theme Name: АйтиСървис
Theme URI: https://айтисървис.bg
Author: АйтиСървис
Description: Тъмна технологична тема за IT компания - интернет, VPN, firewall, бизнес мрежи.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: айтисървис
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  background: #0a0e1a;
  color: #e2e8f0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Глобален fix — нищо да не излиза извън екрана */
img, video, iframe, embed, object, table {
  max-width: 100%;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; letter-spacing: -0.3px; }
.mono { font-family: 'Space Mono', monospace; }

/* ===== CONTACT ITEMS in why-section ===== */
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,200,180,0.06);
  border: 0.5px solid rgba(0,200,180,0.2);
  border-radius: 8px;
  padding: 14px 18px;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.contact-item:hover {
  background: rgba(0,200,180,0.12);
  border-color: rgba(0,200,180,0.4);
}

.contact-icon {
  width: 38px; height: 38px;
  background: rgba(0,200,180,0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00c8b4;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: #94a3b8;
  text-transform: uppercase;
}

.contact-detail strong {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.5px;
}

/* ===== INNER PAGES & BLOG ===== */

/* --- БЛОГ: бял фон, черни букви --- */
body.blog,
body.single,
body.archive,
body.search,
body.category,
body.tag,
body.author {
  background: #f1f5f9;
}

/* --- PAGES: тъмен фон като начало --- */
body.page:not(.home) {
  background: #0a0e1a;
}

.site-content {
  padding: 100px 0 60px;
}

/* Blog inner wrapper - бял */
body.blog .site-content-inner,
body.single .site-content-inner,
body.archive .site-content-inner,
body.search .site-content-inner,
body.category .site-content-inner,
body.tag .site-content-inner,
body.author .site-content-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 48px 80px;
  background: transparent;
  min-height: calc(100vh - 100px);
}

/* Page inner wrapper - тъмен */
body.page:not(.home) .site-content-inner {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 48px 80px;
  background: transparent;
  min-height: calc(100vh - 100px);
}

/* ---- Blog headings & text (тъмни върху бял фон) ---- */
body.blog .site-content h1,
body.blog .site-content h2,
body.blog .site-content h3,
body.single .site-content h1,
body.single .site-content h2,
body.single .site-content h3,
body.archive .site-content h1,
body.search .site-content h1,
body.category .site-content h1 {
  color: #374151;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

body.blog .site-content p,
body.single .site-content p,
body.archive .site-content p,
body.search .site-content p {
  color: #1e293b;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}

body.blog .site-content a,
body.single .site-content a,
body.archive .site-content a,
body.search .site-content a {
  color: #0891b2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.single .site-content ul,
body.single .site-content ol {
  color: #1e293b;
  font-size: 15px;
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 18px;
  list-style: disc;
}

body.single .site-content ol { list-style: decimal; }

body.single .site-content blockquote {
  border-left: 3px solid #0891b2;
  padding: 12px 20px;
  margin: 24px 0;
  background: #f0f9ff;
  color: #475569;
  font-style: italic;
}

body.single .site-content code,
body.single .site-content pre {
  font-family: 'Space Mono', monospace;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 13px;
  color: #0e7490;
  padding: 2px 7px;
}

body.single .site-content pre {
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
}

body.single .site-content img { border-radius: 8px; margin: 24px 0; }

/* ---- Pages headings & text (светли върху тъмен фон) ---- */
body.page:not(.home) .site-content h1,
body.page:not(.home) .site-content h2,
body.page:not(.home) .site-content h3,
body.page:not(.home) .site-content h4 {
  color: #f1f5f9;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: 14px;
  line-height: 1.2;
}

body.page:not(.home) .site-content p,
body.page:not(.home) .site-content ul,
body.page:not(.home) .site-content ol {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}

body.page:not(.home) .site-content a { color: #00c8b4; }

body.page:not(.home) .site-content ul { list-style: none; padding: 0; }

body.page:not(.home) .site-content ul li {
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  color: #cbd5e1;
}

body.page:not(.home) .site-content ul li::before {
  content: '→';
  color: #00c8b4;
  margin-right: 10px;
  font-family: 'Space Mono', monospace;
}

/* Page content card styling */
body.page:not(.home) .site-content h1 {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  padding-bottom: 20px;
  border-bottom: 0.5px solid rgba(0,200,180,0.2);
  margin-bottom: 32px;
}

body.page:not(.home) .site-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #00c8b4;
  margin-top: 36px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

body.page:not(.home) .site-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 24px;
}

/* Blog layout with sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}


}

.site-content a {
  color: #0891b2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-content ul, .site-content ol {
  color: #1e293b;
  font-size: 16px;
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 18px;
  list-style: disc;
}

.site-content ol { list-style: decimal; }

.site-content blockquote {
  border-left: 3px solid #00c8b4;
  padding: 12px 20px;
  margin: 24px 0;
  background: #f0fdfa;
  color: #94a3b8;
  font-style: italic;
}

.site-content img {
  border-radius: 8px;
  margin: 24px 0;
}

.site-content code,
.site-content pre {
  font-family: 'Space Mono', monospace;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 13px;
  color: #0e7490;
  padding: 2px 6px;
}

.site-content pre {
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
}

/* Post meta */
.entry-meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #475569;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

/* Blog archive list */
.posts-list { display: flex; flex-direction: column; gap: 16px; }

.post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  border-color: #1e40af;
  box-shadow: 0 4px 20px rgba(30,64,175,0.08);
}

.post-card-thumb {
  width: 100% !important;
  max-width: 100% !important;
  height: 180px;
  object-fit: cover;
  display: block;
}

.post-card-thumb-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a2535 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,200,180,0.3);
  font-size: 32px;
}

.post-card-body {
  padding: 20px 24px 24px;
}

.post-card h2 { font-size: 18px; margin: 0 0 6px; color: #111827; font-weight: 700; }
.post-card h2 a { color: #111827; text-decoration: none; }
.post-card h2 a:hover { color: #1e40af; }
.post-card p { color: #374151; font-size: 14px; margin: 0; line-height: 1.65; }
.post-card .entry-meta { border: none; padding: 0; margin-bottom: 8px; }

/* ===== SIDEBAR ===== */
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 22px;
}

.sidebar-widget h3 {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #1e3a5f;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-widget ul { margin: 0; padding: 0; list-style: none; }

.sidebar-widget ul li {
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.sidebar-widget ul li a {
  font-size: 13px;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sidebar-widget ul li a:hover { color: #0891b2; text-decoration: none; }

.sidebar-widget ul li a .count {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #ffffff;
  background: #0a0e1a;
  padding: 1px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Blog search in sidebar */
.sidebar-search {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.sidebar-search:focus-within { border-color: #0891b2; }
.sidebar-search input {
  flex: 1;
  background: #ffffff;
  border: none;
  outline: none;
  padding: 9px 12px;
  font-size: 13px;
  color: #1e293b;
}
.sidebar-search input::placeholder { color: #94a3b8; }
.sidebar-search button {
  background: #0a0e1a;
  border: none;
  padding: 9px 13px;
  color: #00c8b4;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}
.sidebar-search button:hover { background: #0891b2; color: #fff; }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }
}

/* ===== BLOG SEARCH ===== */
.blog-search {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.blog-search:focus-within {
  border-color: #00c8b4;
}

.blog-search input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  color: #1e293b;
  background: #ffffff;
  -webkit-appearance: none;
}

.blog-search input[type="search"]::placeholder {
  color: #94a3b8;
}

.blog-search button {
  background: #0a0e1a;
  color: #00c8b4;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background 0.2s;
  white-space: nowrap;
}

.blog-search button:hover {
  background: #00c8b4;
  color: #0a0e1a;
}

/* ===== PAGINATION ===== */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-pagination .page-numbers:hover {
  background: #0a0e1a;
  color: #00c8b4;
  border-color: #0a0e1a;
}

.blog-pagination .page-numbers.current {
  background: #0a0e1a;
  color: #00c8b4;
  border-color: #0a0e1a;
}

.blog-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: default;
}

.blog-pagination .page-numbers.next,
.blog-pagination .page-numbers.prev {
  width: auto;
  padding: 0 14px;
  letter-spacing: 1px;
  font-size: 10px;
}

.blog-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: #1e40af;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

/* ===== NAV ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(0,200,180,0.15);
}

.site-logo {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: #00c8b4;
  letter-spacing: 2px;
  font-weight: 700;
}

.site-logo span { color: #ffffff; }

.main-nav ul {
  display: flex;
  gap: 36px;
}

.main-nav ul li a {
  font-size: 11px;
  letter-spacing: 2px;
  color: #94a3b8;
  text-transform: uppercase;
  transition: color 0.2s;
}

.main-nav ul li a:hover { color: #00c8b4; }

.nav-cta {
  background: #00c8b4;
  color: #0a0e1a !important;
  font-family: 'Space Mono', monospace;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: 4px;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; color: #0a0e1a !important; }

/* ===== HERO ===== */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 96px 48px 48px;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,180,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,180,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,200,180,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,180,0.08);
  border: 0.5px solid rgba(0,200,180,0.25);
  color: #00c8b4;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 2px;
  width: fit-content;
}

.status-dot {
  width: 6px; height: 6px;
  background: #00c8b4;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero-title {
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 100%;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.3px;
}

.hero-title em {
  font-style: normal;
  color: #00c8b4;
}

.hero-subtitle {
  font-size: 16px;
  color: #94a3b8;
  max-width: 100%;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #00c8b4;
  color: #0a0e1a;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); color: #0a0e1a; }

.btn-ghost {
  background: transparent;
  color: #94a3b8;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  border-radius: 4px;
  border: 0.5px solid rgba(148,163,184,0.25);
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: #00c8b4; color: #00c8b4; }

/* ===== TERMINAL ===== */
.terminal-block {
  margin: 0 48px;
  background: rgba(0,0,0,0.5);
  border: 0.5px solid rgba(0,200,180,0.15);
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 640px;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.t-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.terminal-block code {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #00c8b4;
  display: block;
  line-height: 1.8;
  white-space: pre;
}

.terminal-block code .dim { color: #64748b; }
.terminal-block code .ok { color: #22c55e; }
.terminal-block code .white { color: #e2e8f0; }

/* ===== SERVICES ===== */
.services-section {
  padding: 100px 48px;
  border-top: 0.5px solid rgba(0,200,180,0.1);
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: #00c8b4;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  max-width: 100%;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 15px;
  color: #94a3b8;
  max-width: 100%;
  margin-bottom: 56px;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.service-card {
  background: rgba(255,255,255,0.02);
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 28px 24px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: rgba(0,200,180,0.4);
  background: rgba(0,200,180,0.04);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px; height: 44px;
  background: rgba(0,200,180,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
  color: #00c8b4;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.65;
}

/* ===== STATS ===== */
.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid rgba(0,200,180,0.1);
  border-bottom: 0.5px solid rgba(0,200,180,0.1);
}

.stat-item {
  padding: 56px 48px;
  border-right: 0.5px solid rgba(0,200,180,0.1);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Space Mono', monospace;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.stat-number span { color: #00c8b4; }

.stat-desc {
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* ===== WHY US ===== */
.why-section {
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-content h2 { margin-bottom: 16px; }
.why-content p { color: #cbd5e1; font-size: 15px; line-height: 1.8; margin-bottom: 32px; }

.why-list { display: flex; flex-direction: column; gap: 16px; }

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.why-check {
  width: 22px; height: 22px;
  background: rgba(0,200,180,0.1);
  border: 0.5px solid rgba(0,200,180,0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: #00c8b4;
  font-size: 13px;
}

.why-item-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 3px;
}

.why-item-text span {
  font-size: 13px;
  color: #94a3b8;
}

.why-visual {
  background: rgba(0,0,0,0.4);
  border: 0.5px solid rgba(0,200,180,0.12);
  border-radius: 12px;
  padding: 28px;
}

.network-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 0.5px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.02);
}

.node-icon {
  font-size: 18px;
  color: #00c8b4;
  width: 36px;
  text-align: center;
}

.node-info strong {
  display: block;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 600;
}

.node-info span {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #94a3b8;
}

.node-status {
  margin-left: auto;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  padding: 3px 8px;
  border-radius: 3px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 48px;
  text-align: center;
  border-top: 0.5px solid rgba(0,200,180,0.1);
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,200,180,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 36px;
  position: relative;
}

.cta-section .btn-primary { position: relative; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 0.5px solid rgba(0,200,180,0.1);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 2fr;
  gap: 48px;
}

.footer-brand .site-logo { margin-bottom: 14px; display: block; }

.footer-brand p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
  max-width: 240px;
}

.footer-col h4,
.footer-payments h4 {
  font-size: 11px;
  letter-spacing: 2px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: 'Space Mono', monospace;
}

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

.footer-col ul li a,
.footer-col ul li {
  font-size: 13px;
  color: #64748b;
  transition: color 0.2s;
}

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

/* Payment items */
.fp-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}

.fp-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.fp-icon {
  width: 32px;
  height: 32px;
  background: rgba(0,200,180,0.08);
  border: 0.5px solid rgba(0,200,180,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00c8b4;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.fp-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fp-text strong {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.3px;
}

.fp-text span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
}

.fp-text a {
  color: #00c8b4;
  text-decoration: none;
}

.fp-text a:hover { text-decoration: underline; }

.fp-iban {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.04);
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #1e293b;
  letter-spacing: 1px;
}

.footer-uptime {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #00c8b4;
}

/* ===== RESPONSIVE ===== */

/* Tablet 1024px */
@media (max-width: 1024px) {
  /* Nav */
  .site-header { padding: 16px 24px; }
  .main-nav { display: none; }

  /* Hero */
  .hero-section { padding: 88px 24px 40px; }
  .hero-top-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-contact-sep { display: none; }
  .hero-contacts { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-title { font-size: clamp(28px, 7vw, 52px); max-width: 100%; }
  .hero-subtitle { font-size: 15px; max-width: 100%; }

  /* Terminal */
  .terminal-block { margin: 0 24px; }

  /* Services */
  .services-section { padding: 60px 24px; }
  .section-title { font-size: clamp(22px, 5vw, 36px); }
  .section-subtitle { font-size: 14px; max-width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stats */
  .stats-section { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 0.5px solid rgba(0,200,180,0.1); padding: 32px 24px; }

  /* Why */
  .why-section { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; }
  .why-visual { display: none; }

  /* Live terminal */
  .lt-section { padding: 0 24px 48px; }
  .lt-table { font-size: 10px; }
  .lt-table .lts { width: 100px; }
  .lt-table .lth { width: 56px; }
  .lt-table .ltb { width: 44px; }

  /* Footer */
  .site-footer { grid-template-columns: 1fr 1fr; padding: 36px 24px; }
  .footer-payments { grid-column: 1 / -1; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; gap: 8px; text-align: center; }
}

/* Mobile 640px */
@media (max-width: 640px) {
  /* Hero */
  .hero-section { padding: 80px 18px 32px; }
  .hero-title { font-size: clamp(26px, 8vw, 40px); line-height: 1.1; }
  .hero-subtitle { font-size: 14px; margin-bottom: 24px; }
  .hero-contact-item span { font-size: 13px; }
  .hero-contact-item { font-size: 13px; }

  /* Terminal ping block */
  .terminal-block { margin: 0 18px; padding: 14px 16px; }
  .terminal-block code { font-size: 11px; }

  /* Services */
  .services-section { padding: 48px 18px; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { padding: 20px 18px; }
  .section-title { font-size: clamp(20px, 6vw, 30px); }
  .section-subtitle { font-size: 14px; }

  /* Stats */
  .stat-item { padding: 28px 18px; }
  .stat-number { font-size: clamp(28px, 7vw, 42px); }

  /* Why */
  .why-section { padding: 48px 18px; gap: 32px; }

  /* Live terminal */
  .lt-section { padding: 0 18px 40px; }
  .lt-table .lts { display: none; }
  .lt-table { font-size: 11px; }
  .lt-screen { max-height: 200px; }

  /* Footer */
  .site-footer { grid-template-columns: 1fr; padding: 32px 18px; gap: 32px; }
  .footer-payments { grid-column: auto; }
  .footer-bottom { padding: 14px 18px; }

  /* Blog */
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }
  .site-content-inner { padding: 28px 18px 48px; }
  .post-card { padding: 18px 16px; }

  /* Pages */
  body.page:not(.home) .site-content-inner { padding: 28px 18px 48px; }
  body.page:not(.home) .site-content h1 { font-size: 26px; }
}


/* ===== HERO TOP ROW ===== */
.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}

/* ===== HERO CONTACTS ===== */
.hero-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.hero-contact-item i {
  color: #00c8b4;
  font-size: 16px;
}

.hero-contact-sep {
  width: 1px;
  height: 18px;
  background: rgba(0,200,180,0.25);
}

/* ===== LIVE LOG TERMINAL ===== */
.lt-section {
  padding: 0 48px 64px;
}

.lt-wrap {
  background: #07090f;
  border: 1px solid #1a2535;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lt-titlebar {
  background: #0d1220;
  border-bottom: 1px solid #1a2535;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lt-traffic { display: flex; gap: 7px; align-items: center; }
.lt-dot-r, .lt-dot-y, .lt-dot-g {
  width: 11px; height: 11px; border-radius: 50%;
}
.lt-dot-r { background: #ff5f57; }
.lt-dot-y { background: #febc2e; }
.lt-dot-g { background: #28c840; }

.lt-name {
  flex: 1;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #475569;
  letter-spacing: 1px;
  text-align: center;
}

.lt-up {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #00c8b4;
}

.lt-up b { font-weight: 700; }

.lt-screen {
  padding: 10px 16px 14px;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.lt-screen::-webkit-scrollbar { display: none; }

.lt-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  line-height: 1.9;
  table-layout: fixed;
}

.lt-table .lts {
  width: 136px;
  color: #334155;
  vertical-align: top;
  white-space: nowrap;
  padding-right: 8px;
}

.lt-table .lth {
  width: 72px;
  color: #7c3aed;
  vertical-align: top;
  white-space: nowrap;
  padding-right: 8px;
}

.lt-table .ltb {
  width: 52px;
  font-size: 9px;
  letter-spacing: 1px;
  text-align: center;
  vertical-align: top;
  padding-right: 10px;
  padding-top: 2px;
  white-space: nowrap;
}

.lt-table .ltb.ok  { color: #22c55e; }
.lt-table .ltb.dbg { color: #475569; }
.lt-table .ltb.wrn { color: #f59e0b; }

.lt-table .ltm {
  color: #94a3b8;
  vertical-align: top;
  word-break: break-word;
}

@media (max-width: 1024px) {
  .lt-section { padding: 0 24px 48px; }
  .lt-table { font-size: 10px; }
  .lt-table .lts { width: 100px; }
  .lt-table .lth { width: 56px; }
  .lt-table .ltb { width: 44px; }
}

@media (max-width: 1024px) {
  .hero-contacts { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-contact-sep { display: none; }
}

@media (max-width: 1024px) {
  .site-footer { grid-template-columns: 1fr 1fr; padding: 36px 24px; }
  .footer-payments { grid-column: 1 / -1; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 600px) {
  .site-footer { grid-template-columns: 1fr; }
}

/* ===== PAGE TEMPLATE STYLING ===== */
.page-hero-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,180,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,180,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

body.page:not(.home) .site-content-inner {
  position: relative;
  z-index: 1;
}

.page-label {
  margin-bottom: 12px;
}

body.page:not(.home) .page-body {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 0.5px solid rgba(0,200,180,0.15);
}

body.page:not(.home) .page-body p {
  font-size: 15px;
  line-height: 1.9;
  color: #cbd5e1;
  margin-bottom: 20px;
}

body.page:not(.home) .page-body strong {
  color: #e2e8f0;
  font-weight: 600;
}

/* Inline content boxes on pages */
body.page:not(.home) .page-body > p:first-child {
  font-size: 17px;
  color: #94a3b8;
  line-height: 1.75;
  border-left: 3px solid #00c8b4;
  padding-left: 18px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }
  .site-content-inner { padding: 32px 24px 60px; }
}

/* ===== SINGLE POST CONTENT ===== */
.single-content {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.single-content h2,
.single-content h3 {
  color: #374151;
  font-family: 'Georgia', 'Times New Roman', serif;
  margin-top: 36px;
  margin-bottom: 12px;
}

.single-content h2 { font-size: 22px; }
.single-content h3 { font-size: 18px; }

.single-content p {
  color: #1e293b;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 18px;
}

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

.single-content blockquote {
  border-left: 3px solid #0891b2;
  padding: 12px 20px;
  margin: 24px 0;
  background: #f0f9ff;
  color: #475569;
  font-style: italic;
  border-radius: 0 6px 6px 0;
}

.single-content ul, .single-content ol {
  color: #1e293b;
  font-size: 15px;
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 18px;
}

.single-content a {
  color: #0891b2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-content code {
  font-family: 'Space Mono', monospace;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 13px;
  color: #0e7490;
  padding: 1px 6px;
}

/* ===== HAMBURGER & MOBILE NAV ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 56px;
  left: 0; right: 0;
  background: #0d1220;
  border-bottom: 1px solid rgba(0,200,180,0.15);
  z-index: 99;
  padding: 20px 24px 28px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s, opacity 0.25s;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav ul { list-style: none; padding: 0; margin: 0 0 20px; }

.mobile-nav ul li { border-bottom: 0.5px solid rgba(255,255,255,0.06); }

.mobile-nav ul li a {
  display: block;
  padding: 13px 0;
  font-size: 15px;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-nav ul li a:hover { color: #00c8b4; }

.mobile-nav-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-contacts a {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #00c8b4;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1024px) {
  .nav-hamburger { display: flex; }
  .mobile-nav { display: block; }
}

@media (max-width: 900px) {
  /* Колоната с sidebar изчезва, само текст */
  .blog-layout {
    grid-template-columns: 1fr !important;
  }

  .blog-sidebar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body.single .site-content-inner,
  body.blog .site-content-inner,
  body.archive .site-content-inner,
  body.search .site-content-inner {
    padding: 20px 16px 48px !important;
  }

  /* Post content */
  .single-content { margin-top: 20px; padding-top: 16px; }
  .single-content h2 { font-size: 19px; margin-top: 28px; }
  .single-content h3 { font-size: 16px; margin-top: 20px; }
  .single-content p { font-size: 15px; line-height: 1.75; }
  .single-content img { max-width: 100% !important; height: auto !important; margin: 16px 0; }
  .single-content iframe { max-width: 100% !important; }
  .single-content table { display: block; overflow-x: auto; }
  .single-content blockquote { padding: 10px 14px; font-size: 14px; margin: 16px 0; }
  .single-content pre { font-size: 12px; padding: 12px 14px; }

  /* Post title */
  body.single .site-content h1 { font-size: 22px !important; line-height: 1.2; }

  /* Entry meta */
  .entry-meta { font-size: 10px; }

  /* Post cards на мобилно */
  .post-card-thumb,
  .post-card-thumb-placeholder { height: 140px; }

  .post-card-body { padding: 14px 16px 18px; }
  .post-card h2 { font-size: 16px; }

  /* Pagination */
  .blog-pagination { gap: 4px; flex-wrap: wrap; }
  .blog-pagination .page-numbers { width: 32px; height: 32px; font-size: 11px; }
}

/* ===== CODE BLOCK PRO PLUGIN FIX ===== */
/* Таргетира точната структура на Code Block Pro + Shiki */
.wp-block-kevinbatdorf-code-block-pro {
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.wp-block-kevinbatdorf-code-block-pro pre.shiki {
  max-width: 100% !important;
  overflow-x: auto !important;
  box-sizing: border-box !important;
}

.wp-block-kevinbatdorf-code-block-pro pre.shiki code {
  display: block !important;
  width: max-content !important;
  min-width: 100% !important;
}

.wp-block-kevinbatdorf-code-block-pro .line {
  display: block !important;
  white-space: pre !important;
}
