/*
Theme Name: ToProste
Theme URI: https://szymonsarnecki.pl/
Author: Szymon Sarnecki
Author URI: https://szymonsarnecki.pl/
Description: Lekki, responsywny motyw WP z nowoczesnym headerem i footerem, gotowy pod Elementor Free.
Version: 1.3
License: GNU General Public License v2 or later
Text Domain: toproste
*/

/* -------------------------------------------------------------------------- */
/*                                  Variables                                 */
/* -------------------------------------------------------------------------- */
:root {
  --primary-color: #00D0EA;
  --secondary-color: #7C4DFF;
  --primary-gradient: linear-gradient(45deg, var(--primary-color), var(--secondary-color));

  --text-color: #333333;
  --text-light: #555555;
  --text-inverse: #FFFFFF;

  --background-color: #FFFFFF;
  --background-light-gray: #F8F9FA;
  --border-color: #E0E0E0;

  --footer-bg: #242424;
  --footer-text-color: #E0E0E0;
  --footer-link-color: var(--primary-color);
  --footer-link-hover-color: var(--secondary-color);
  --footer-border-color: #3a3a3a;

  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-secondary: 'Inter', sans-serif;

  --header-height: 80px;
  --header-height-sticky: 70px;
  --container-width: 1330px;
  --spacing-unit: 1rem;
}

@media (max-width: 768px) {
:root {
  --header-height: 70px;
  --header-height-sticky: 60px;
  }
}

/* -------------------------------------------------------------------------- */
/*                                Global Resets & Base                        */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--text-color);
  background-color: var(--background-color);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  margin-top: calc(var(--spacing-unit) * 1.5);
  margin-bottom: var(--spacing-unit);
  line-height: 1.3;
  color: var(--text-color);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: calc(var(--spacing-unit) * 1.5);
  padding-right: calc(var(--spacing-unit) * 1.5);
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link:focus {
    background-color: var(--background-light-gray);
    color: var(--text-color);
    display: block;
    font-size: 1em;
    font-weight: bold;
    padding: 15px 23px 14px;
    text-decoration: none;
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 100000;
    clip: auto !important;
    clip-path: none;
    height: auto;
    width: auto;
    line-height: normal;
}

.no-scroll {
  overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/*                                    Header                                  */
/* -------------------------------------------------------------------------- */
.to-proste-header {
  background-color: var(--background-color);
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: height 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease-in-out;
  border-bottom: 1px solid transparent;
}

.to-proste-header.is-sticky {
  height: var(--header-height-sticky);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-color);
}
.to-proste-header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--spacing-unit) * 1.5);
}

.site-branding .custom-logo {
  max-height: calc(var(--header-height) - (var(--spacing-unit) * 2));
  width: auto;
  transition: max-height 0.3s ease;
}
.to-proste-header.is-sticky .site-branding .custom-logo {
  max-height: calc(var(--header-height-sticky) - (var(--spacing-unit) * 1.5));
}
.site-branding .site-title a {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}
.site-branding .site-title a:hover {
  color: var(--primary-color);
}
.site-branding .site-description {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: -5px;
}

.main-navigation {
  margin-left: auto;
}

.header-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.header-menu li {
  margin-left: calc(var(--spacing-unit) * 1.5);
}

.header-menu a {
  display: block;
  padding: calc(var(--spacing-unit) * 0.5) 0;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  letter-spacing: 0.5px;
}

.header-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.header-menu a:hover::after,
.header-menu .current-menu-item > a::after,
.header-menu .current-menu-ancestor > a::after {
  width: 100%;
}
.header-menu a:hover,
.header-menu .current-menu-item > a,
.header-menu .current-menu-ancestor > a {
    color: var(--primary-color);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    margin-left: calc(var(--spacing-unit) * 2);
}
.cta-button {
  padding: calc(var(--spacing-unit) * 0.6) calc(var(--spacing-unit) * 1.2);
  background: var(--primary-gradient);
  color: var(--text-inverse) !important;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 208, 234, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
  color: var(--text-inverse) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  padding: calc(var(--spacing-unit) * 0.5);
  cursor: pointer;
  margin-left: var(--spacing-unit);
  line-height: 0;
}
.menu-toggle svg {
    stroke: currentColor;
    fill: currentColor;
}
.menu-toggle .icon-close {
    display: none;
}
.menu-toggle.toggled .icon-menu {
    display: none;
}
.menu-toggle.toggled .icon-close {
    display: block;
}

@media (max-width: 991px) {
  .main-navigation {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-unit);
    border-top: 1px solid var(--border-color);
    z-index: 999;
  }
  .to-proste-header.is-sticky .main-navigation {
      top: var(--header-height-sticky);
  }

  .main-navigation.nav-open {
    display: block;
  }

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

  .header-menu li {
    margin-left: 0;
    width: 100%;
  }

  .header-menu a {
    padding: calc(var(--spacing-unit) * 0.75) var(--spacing-unit);
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  .header-menu li:last-child a {
      border-bottom: none;
  }
  .header-menu a::after {
      display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 767px) {
    .cta-button {
        padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
        font-size: 10px;
    }
    .site-branding .custom-logo {
        max-height: calc(var(--header-height) - (var(--spacing-unit) * 2.5));
    }
    .to-proste-header.is-sticky .site-branding .custom-logo {
        max-height: calc(var(--header-height-sticky) - (var(--spacing-unit) * 2));
    }
    .header-inner {
        padding: 0 var(--spacing-unit);
    }
}

/* -------------------------------------------------------------------------- */
/*                                    Footer                                  */
/* -------------------------------------------------------------------------- */
.to-proste-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text-color);
  padding: calc(var(--spacing-unit) * 3.5) 0 calc(var(--spacing-unit) * 2);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 1.5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 2);
}

.footer-column {
  padding: 0;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
    margin-bottom: var(--spacing-unit);
}
.footer-column .footer-site-title a {
    color: var(--text-inverse);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-bottom: var(--spacing-unit);
}
.footer-column .footer-site-title a:hover {
    color: var(--primary-color);
}

.footer-widget-title {
  font-family: var(--font-secondary);
  font-size: 1.15rem;
  color: var(--text-inverse);
  margin-bottom: calc(var(--spacing-unit) * 1.25);
  position: relative;
  padding-bottom: calc(var(--spacing-unit) * 0.6);
}
.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-column p,
.footer-column address p {
  margin-bottom: calc(var(--spacing-unit) * 0.6);
  color: var(--footer-text-color);
}
.footer-column .footer-about-text {
    opacity: 0.9;
}

.footer-column a {
  color: var(--footer-link-color);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.footer-column a:hover {
  color: var(--footer-link-hover-color);
  opacity: 0.85;
  text-decoration: none;
}

.footer-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav-menu li {
  margin-bottom: calc(var(--spacing-unit) * 0.6);
}
.footer-nav-menu a {
  display: inline-block;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 0.8);
  margin-top: calc(var(--spacing-unit) * 0.75);
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--footer-text-color);
  border: 1px solid var(--footer-border-color);
  border-radius: 50%;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.social-links a svg {
  width: 20px;
  height: 20px;
  fill: currentColor; /* Upewnij siÄ?, A1e SVG ma ten atrybut, aby dziedziczyÄ? kolor */
}
.social-links a:hover {
  color: var(--text-inverse);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--container-width);
  margin: calc(var(--spacing-unit) * 3) auto 0;
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 1.5) 0;
  border-top: 1px solid var(--footer-border-color);
  text-align: center;
  font-size: 0.85rem;
  color: #999;
}
.footer-bottom p {
    margin: calc(var(--spacing-unit)*0.4) 0;
}
.footer-bottom .copyright-text a,
.footer-bottom .to-proste-credit a {
  color: var(--footer-link-color);
  font-weight: 500;
}
.footer-bottom .copyright-text a:hover,
.footer-bottom .to-proste-credit a:hover {
  color: var(--footer-link-hover-color);
}

/* Elementor specific - ensure header is above Elementor's Z-index if needed */
body.elementor-page .to-proste-header {
    z-index: 1001;
}

/* Dodatkowe style dla WordPressa */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1em; }
/* ==========================================================================
   BLOG ARCHIVE — Lista artykulow
   ========================================================================== */

.blog-archive-wrap {
  padding-top: calc(var(--header-height) + var(--spacing-unit) * 4);
  padding-bottom: calc(var(--spacing-unit) * 6);
  min-height: 70vh;
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 400px);
}

.blog-archive-header {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.blog-archive-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: var(--font-secondary);
  font-weight: 700;
  margin: 0 0 calc(var(--spacing-unit) * 0.6);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-archive-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  margin: 0;
}

/* Grid kart */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--spacing-unit) * 2.5);
}

@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
}

/* Karta */
.post-card {
  background: #ffffff;
  border: 1px solid #eaedf3;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.post-card:hover {
  box-shadow: 0 20px 60px rgba(0, 208, 234, 0.15), 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-6px);
  border-color: rgba(0, 208, 234, 0.3);
}

/* Miniatura */
.post-card-thumb-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--background-light-gray);
  position: relative;
}

.post-card-thumb-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.15) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.post-card:hover .post-card-thumb-link::after {
  opacity: 1;
}

.post-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-thumb {
  transform: scale(1.06);
}

.post-card-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d0d5dd;
  background: linear-gradient(135deg, #f5f7fa, #e8ecf0);
}

/* Body karty */
.post-card-body {
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 1.75);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: calc(var(--spacing-unit) * 0.65);
}

/* Meta */
.post-card-meta {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 0.75);
  flex-wrap: wrap;
}

.post-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  background: rgba(0, 208, 234, 0.08);
  border: 1px solid rgba(0, 208, 234, 0.2);
  padding: 3px 10px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.post-card-cat:hover {
  background: rgba(0, 208, 234, 0.18);
  border-color: rgba(0, 208, 234, 0.4);
  text-decoration: none;
}

.post-card-date {
  font-size: 0.78rem;
  color: #9da5b4;
}

/* Tytul */
.post-card-title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
}
.post-card-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}
.post-card-title a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Excerpt */
.post-card-excerpt {
  font-size: 0.88rem;
  color: #777f8e;
  line-height: 1.7;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Przycisk */
.post-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: calc(var(--spacing-unit) * 0.5);
  padding: 10px 18px;
  background: var(--primary-gradient);
  color: #fff !important;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: gap 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(0, 208, 234, 0.3);
}
.post-card-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  stroke: #fff;
}
.post-card-btn:hover {
  gap: 10px;
  box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
  transform: translateY(-1px);
}
.post-card-btn:hover svg {
  transform: translateX(3px);
}

/* Paginacja */
.blog-pagination {
  margin-top: calc(var(--spacing-unit) * 4);
  display: flex;
  justify-content: center;
}
.blog-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.blog-pagination .page-numbers {
  padding: 10px 18px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  text-decoration: none;
}

.blog-empty {
  text-align: center;
  padding: calc(var(--spacing-unit) * 5) 0;
  color: var(--text-light);
}

/* ==========================================================================
   SINGLE POST — Pojedynczy artykul
   ========================================================================== */

.single-post-wrap {
  padding-top: calc(var(--header-height) + var(--spacing-unit) * 3);
  padding-bottom: calc(var(--spacing-unit) * 6);
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 300px);
}

.single-post-wrap .container {
  max-width: 820px;
}

/* Breadcrumb */
.single-breadcrumb {
  font-size: 0.82rem;
  color: #9da5b4;
  margin-bottom: calc(var(--spacing-unit) * 2.5);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.single-breadcrumb a {
  color: #9da5b4;
  text-decoration: none;
  transition: color 0.2s ease;
}
.single-breadcrumb a:hover {
  color: var(--primary-color);
  text-decoration: none;
}
.single-breadcrumb span:last-child {
  color: var(--text-color);
  font-weight: 500;
}

/* Header wpisu */
.single-post-header {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 0.75);
  flex-wrap: wrap;
  margin-bottom: calc(var(--spacing-unit) * 1.25);
  font-size: 0.85rem;
  color: #9da5b4;
}

.single-post-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  background: rgba(0, 208, 234, 0.08);
  border: 1px solid rgba(0, 208, 234, 0.2);
  padding: 3px 12px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.single-post-cat:hover {
  background: rgba(0, 208, 234, 0.18);
  text-decoration: none;
}

.single-post-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.22;
  margin: 0 0 calc(var(--spacing-unit) * 2);
  color: var(--text-color);
}

/* Hero */
.single-post-hero {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.single-post-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tresc */
.single-post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #444;
  margin-bottom: calc(var(--spacing-unit) * 3);
  margin-top: calc(var(--spacing-unit) * 3);
}
.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin-top: calc(var(--spacing-unit) * 2.5);
  color: var(--text-color);
}
.single-post-content p { margin-bottom: var(--spacing-unit); }
.single-post-content img {
  border-radius: 12px;
  margin: calc(var(--spacing-unit) * 2) 0;
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.single-post-content ul,
.single-post-content ol {
  padding-left: calc(var(--spacing-unit) * 1.5);
  margin-bottom: var(--spacing-unit);
}
.single-post-content li { margin-bottom: calc(var(--spacing-unit) * 0.4); }
.single-post-content blockquote {
  border-left: 4px solid var(--primary-color);
  margin: calc(var(--spacing-unit) * 2) 0;
  padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 1.75);
  background: rgba(0, 208, 234, 0.04);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* Tagi */
.single-post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: calc(var(--spacing-unit) * 1.5) 0;
  border-top: 1px solid #eaedf3;
  border-bottom: 1px solid #eaedf3;
  margin-bottom: calc(var(--spacing-unit) * 3);
}
.tags-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
}
.single-tag {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid #eaedf3;
  color: var(--text-light);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.single-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(0, 208, 234, 0.06);
  text-decoration: none;
}

/* Nawigacja */
.single-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-unit);
  margin-bottom: calc(var(--spacing-unit) * 2.5);
}
.single-post-nav-item {
  background: #f8f9ff;
  border: 1px solid #eaedf3;
  border-radius: 14px;
  padding: calc(var(--spacing-unit) * 1.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.single-post-nav-item:hover {
  border-color: rgba(0, 208, 234, 0.3);
  box-shadow: 0 4px 16px rgba(0, 208, 234, 0.1);
}
.single-post-nav-next { text-align: right; }
.nav-label {
  font-size: 0.72rem;
  color: #9da5b4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.single-post-nav-item a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.single-post-nav-item a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

@media (max-width: 600px) {
  .single-post-nav { grid-template-columns: 1fr; }
  .single-post-nav-next { text-align: left; }
}

/* Powrot */
.single-back-link {
  display: flex;
  justify-content: center;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid #eaedf3;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, gap 0.2s ease;
}
.back-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.back-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 18px rgba(0, 208, 234, 0.15);
  gap: 12px;
  text-decoration: none;
}
.back-btn:hover svg {
  transform: translateX(-3px);
}