:root {
  --primary: #0D0D0D;
  --primary-red: #C91F26;
  --accent-orange: #E8590C;
  --dark-pure: #0D0D0D;
  --cream-bg: #FFFFFF;
  --cream-darker: #F7F7F7;
  --text-muted: #6E6E73;
  --border-super-thin: 1px solid rgba(0, 0, 0, 0.07);

  --mg-font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --mg-font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--mg-font-sans);
  background-color: var(--cream-bg);
  color: var(--dark-pure);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4 {
  font-family: var(--mg-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--dark-pure);
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
h4 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease-in-out; }
a:hover { color: var(--primary-red); }

img {
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.5s ease;
  object-fit: cover;
}

img:hover {
  filter: grayscale(0%);
  transform: scale(1.01);
}

.btn {
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sub-brand-link {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sub-brand-link.active {
  color: var(--primary-red) !important;
}

.ad-banner-box {
  background-color: var(--cream-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 500;
  height: 140px;
  transition: background-color 0.3s;
}

.ad-banner-box:hover {
  background-color: #EAEAEA;
}

.special-topic-row {
  background-color: var(--cream-darker);
  padding: 3rem 0;
}

.special-topic-title {
  font-family: var(--mg-font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--dark-pure);
  text-transform: uppercase;
}

.special-card-img {
  height: 100px;
  width: 100%;
  object-fit: cover;
}

.special-card-text {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-badge {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  background-color: var(--primary-red);
  color: white;
  padding: 2px 6px;
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.news-badge-outline {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid var(--dark-pure);
  color: var(--dark-pure);
  padding: 1px 5px;
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.sidebar-bullet-list {
  list-style: none;
  padding-left: 0;
}

.sidebar-bullet-list li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.sidebar-bullet-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 300;
}

.editorial-divider {
  border-bottom: 1px solid var(--dark-pure);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
}

.category-description {
  max-width: 720px;
  margin: -1rem 0 2rem;
  font-family: var(--mg-font-display);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--dark-pure);
}

.category-title {
  font-family: var(--mg-font-display);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  display: inline-block;
  margin-bottom: 0;
}

.promo-sidebar-card {
  background-color: var(--dark-pure);
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.promo-sidebar-card h4 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  font-family: var(--mg-font-display);
}

.promo-sidebar-card p {
  font-size: 0.8rem;
  color: #999999;
  line-height: 1.5;
}

.promo-sidebar-card .btn-promo {
  background-color: var(--primary-red);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border: none;
  padding: 12px;
  width: 100%;
  transition: background-color 0.2s, color 0.2s;
}

.promo-sidebar-card .btn-promo:hover {
  background-color: white;
  color: var(--dark-pure);
}

.device-mockup-col img {
  max-height: 130px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: none;
}

.device-mockup-col img:hover {
  transform: translateY(-3px);
  transition: transform 0.3s ease;
}

.news-small-thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
}

.site-footer {
  background-color: var(--dark-pure);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 4rem 0 2rem;
  line-height: 1.8;
}

.site-footer h3,
.site-footer h5 {
  color: #fff;
}

.footer-brand {
  font-family: var(--mg-font-display);
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-menu a:hover {
  color: #fff;
}

.footer-newsletter {
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  background: transparent;
  border: 1.5px solid #444;
  border-radius: 0;
  color: #fff;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter button {
  background: #fff;
  color: #000;
  border: 0;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #888;
}

.footer-legal a {
  color: #888;
  margin-left: 1rem;
}

.footer-legal a:hover {
  color: #fff;
}

.hover-line-link {
  position: relative;
}

.hover-line-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-red);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.hover-line-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Post card for listing pages */
.mg-post-card {
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.mg-post-card:hover {
  transform: translateY(-3px);
}

.mg-post-card a {
  color: inherit;
  text-decoration: none;
}

.mg-post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--cream-darker);
  margin-bottom: 0.75rem;
  transition: transform 500ms ease;
}

.mg-post-card a:hover img {
  transform: scale(1.03);
}

.mg-post-card a:hover h3 {
  color: var(--accent-orange);
  text-decoration: underline;
}

.mg-post-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.mg-post-card p {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.mg-post-card p:not(.meta) {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mg-post-card .meta {
  margin-top: auto;
  margin-bottom: 0;
}

.cat-chip {
  display: inline-block;
  width: fit-content;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--accent-orange);
  background: transparent;
  color: var(--accent-orange);
  padding: 1px 5px;
  margin-bottom: 0.6rem;
  transition: all 0.2s ease;
}

.cat-chip:hover {
  background: var(--accent-orange);
  color: #fff;
}

.meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--mg-font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

/* Single post styles */
.single-post__meta {
  color: var(--text-muted);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--mg-font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.single-post__cover {
  overflow: hidden;
  margin: 2rem auto 3rem;
  max-width: 1240px;
  border: 1px solid rgba(0,0,0,0.07);
}

.single-post__cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.single-post__content {
  font-family: var(--mg-font-display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--dark-pure);
  letter-spacing: -0.005em;
  max-width: 720px;
  margin-inline: auto;
}

.single-post__content > * + * { margin-top: 1.5rem; }
.single-post__content h2 { margin-top: 3rem; font-size: 2rem; }
.single-post__content h3 { margin-top: 2.5rem; font-size: 1.5rem; }
.single-post__content p { margin-bottom: 1.5rem; color: var(--dark-pure); font-size: 1.2rem; }
.single-post__content img { max-width: 100%; height: auto; margin: 2rem 0; }
.single-post__content blockquote {
  border: 0;
  border-top: 2px solid var(--dark-pure);
  border-bottom: 2px solid var(--dark-pure);
  padding: 1.5rem 0;
  font-family: var(--mg-font-display);
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--dark-pure);
  font-style: italic;
  margin: 2.5rem 0;
  letter-spacing: -0.02em;
}

.single-post__content pre {
  background: var(--dark-pure);
  color: #f5f2ea;
  padding: 1.5rem;
  overflow-x: auto;
}

.single-post__content .post-tags,
.single-post__content .mg-share,
.single-post__content .mg-comments {
  font-family: inherit;
  font-size: inherit;
}

/* Share */
.mg-share {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--dark-pure);
  border-bottom: 1px solid var(--dark-pure);
  margin: 3rem 0 2rem;
}

.mg-share__label {
  font-family: var(--mg-font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-right: auto;
}

.mg-share a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--dark-pure);
  border: 1.5px solid var(--dark-pure);
  transition: all 0.2s ease;
}

.mg-share a svg {
  width: 20px;
  height: 20px;
}

.mg-share a:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
}

/* Comments area */
.mg-comments {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--dark-pure);
}

.comments-section {
  max-width: 780px;
}

.comments-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.comments-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary-red);
  margin-top: 0.6rem;
}

.comments-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.comment-item {
  border-left: 3px solid var(--dark-pure);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--cream-darker);
}

.comment-item__children {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.comment-item__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.comment-item__author {
  font-family: var(--mg-font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: var(--dark-pure);
}

.comment-item__date {
  font-family: var(--mg-font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.comment-item__reply {
  margin-left: auto;
  background: none;
  border: 1px solid var(--dark-pure);
  color: var(--dark-pure);
  padding: 0.2rem 0.6rem;
  font-family: var(--mg-font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-item__reply:hover {
  background: var(--dark-pure);
  color: #fff;
}

.comment-item__body {
  margin: 0;
  color: var(--dark-pure);
  line-height: 1.7;
}

.comments-empty,
.comments-disabled {
  color: var(--text-muted);
  font-family: var(--mg-font-sans);
  font-size: 0.85rem;
}

.comment-form-container {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.comment-form__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.comment-form__reply-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--cream-darker);
  border: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-family: var(--mg-font-sans);
}

.comment-form__reply-cancel {
  margin-left: auto;
  background: none;
  border: 1px solid var(--dark-pure);
  color: var(--dark-pure);
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  cursor: pointer;
}

.comment-form__row {
  display: flex;
  gap: 1rem;
}

.comment-form__group {
  flex: 1;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.comment-form__label {
  font-family: var(--mg-font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark-pure);
}

.comment-form__input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 0;
  background: #fff;
  font-size: 0.95rem;
}

.comment-form__input:focus {
  outline: none;
  border-color: var(--dark-pure);
}

.comment-form__textarea {
  min-height: 110px;
  resize: vertical;
}

.comment-form__actions {
  margin-top: 0.5rem;
}

.comment-form__submit {
  background: var(--dark-pure);
  color: #fff;
  border: 1px solid var(--dark-pure);
  padding: 0.65rem 1.5rem;
  font-family: var(--mg-font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.comment-form__submit:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.comment-form__message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  display: none;
}

.comment-form__message--success {
  display: block;
  background: #e9f7ef;
  border: 1px solid #2e7d4f;
  color: #1c5a39;
}

.comment-form__message--error {
  display: block;
  background: #fdecea;
  border: 1px solid #c0392b;
  color: #8e2a1f;
}

@media (max-width: 575.98px) {
  .comment-form__row {
    flex-direction: column;
  }
}

/* Pagination */
.pagination {
  justify-content: center;
  gap: 0;
  margin: 3rem 0;
}

.pagination .page-link {
  border: 1.5px solid var(--dark-pure);
  color: var(--dark-pure);
  background: var(--cream-bg);
  padding: 0.6rem 1rem;
  margin: 0 -1px 0 0;
  font-family: var(--mg-font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
}

.pagination .active .page-link {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  padding: 0.75rem 0;
  color: var(--text-muted);
  margin-bottom: 0;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary-red);
}

.breadcrumb .current {
  color: var(--dark-pure);
}

/* 404 */
.mg-404 {
  text-align: center;
  padding: 8rem 1rem;
}

.mg-404 h1 {
  font-size: clamp(8rem, 22vw, 20rem);
  line-height: 0.85;
  margin-bottom: 1.5rem;
  color: var(--dark-pure);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.mg-404 h1 span {
  color: var(--primary-red);
}

.mg-404 p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

/* Sidebar widget */
.mg-widget {
  padding: 0 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.mg-widget h4 {
  font-family: var(--mg-font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dark-pure);
  margin-bottom: 1rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--dark-pure);
  display: inline-block;
}

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

.mg-widget li {
  padding: 0.6rem 0;
}

.mg-widget li + li {
  border-top: 1px solid rgba(0,0,0,0.07);
}

.mg-widget a {
  color: var(--dark-pure);
  font-weight: 500;
}

.mg-widget a:hover {
  color: var(--primary-red);
}

/* Sidebar / widgets forms */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0;
  font-size: 0.9rem;
}

.search-form button {
  border: 0;
  background: var(--dark-pure);
  color: white;
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.search-form button:hover {
  background: var(--primary-red);
}

/* Archive / tag headers */
.archive-header {
  border-bottom: 1px solid var(--dark-pure);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
}

.archive-header h1 {
  display: inline-block;
  border-bottom: 4px solid var(--accent-orange);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Tags */
.mg-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  background: transparent;
  color: var(--dark-pure);
  border: 1.5px solid var(--dark-pure);
  font-family: var(--mg-font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.mg-chip:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 3rem;
}

.post-tags strong {
  font-family: var(--mg-font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-right: 0.5rem;
}

/* Section spacing */
section.container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 992px) {
  .container, .container-lg, .container-xl {
    padding-inline: 2rem;
  }
}

/* Dark promo sidebar overrides */
.promo-sidebar-card.bg-red {
  background-color: var(--primary-red) !important;
}

.promo-sidebar-card.bg-red p {
  color: rgba(255,255,255,0.9) !important;
}

.promo-sidebar-card.bg-red .btn-promo:hover {
  background-color: var(--dark-pure);
  color: white;
}

/* Hero main article on home */
.hero-main > a, .hero-side > a {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.hero-main .cat-chip,
.hero-side .cat-chip {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
  margin: 0;
}

.hero-main img,
.hero-side img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--cream-darker);
  margin-bottom: 0.75rem;
  transition: transform 500ms ease;
}

.hero-main > a:hover img,
.hero-side > a:hover img {
  transform: scale(1.03);
}

.hero-main > a:hover h1,
.hero-main > a:hover .hero-main__title,
.hero-side > a:hover h2,
.hero-side > a:hover .hero-side__title {
  color: var(--accent-orange);
  text-decoration: underline;
}

.hero-main > p,
.hero-side > p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

/* Poziomy nagłówków zmienione pod SEO (H1/H2), wygląd zachowany jak dawne H2/H4.
   clamp() jest responsywny, więc desktop i mobile wyglądają identycznie jak wcześniej. */
.hero-main__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
}
.hero-side__title {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.3;
}

.hero .meta {
  font-family: var(--mg-font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero .meta {
  display: flex;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding-top: 1rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--dark-pure);
  color: white;
  border: 2px solid var(--dark-pure);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1050;
  transition: all 0.2s ease;
}

.back-to-top.is-visible {
  display: inline-flex;
}

.back-to-top:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 3px;
}

/* Site header */
header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 0;
}

.site-logo {
  font-family: var(--mg-font-display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--dark-pure);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  font-family: var(--mg-font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.site-nav a {
  color: var(--dark-pure);
}

.site-nav a:hover {
  color: var(--primary-red);
}

.site-socials {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-socials a {
  color: var(--dark-pure);
  font-size: 1.1rem;
  line-height: 1;
}

.site-socials a:hover {
  color: var(--primary-red);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--dark-pure);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  font-family: var(--mg-font-sans);
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--dark-pure);
}

.mobile-nav a:hover {
  color: var(--primary-red);
}

/* Mobile offcanvas nav */
.offcanvas {
  background: var(--cream-bg);
}

/* Tytuł offcanvas to div (nie nagłówek), wygląd zachowany jak dawne h5. */
.offcanvas-header .offcanvas-title {
  font-family: var(--mg-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--dark-pure);
  line-height: 1.2;
  font-size: 1.05rem;
  margin: 0;
}

.offcanvas-body .site-socials {
  margin-top: 2rem;
}

@media (max-width: 767.98px) {
  .menu-toggle { display: inline-flex; }
  .site-logo { margin-inline: auto; }
  .site-nav { display: none; }
  .site-header-inner .site-socials { display: none; }
}

/* Progress bar */
.mg-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1040;
}

.mg-progress__bar {
  height: 100%;
  background: var(--primary-red);
  width: 0;
  transition: width 80ms linear;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
