/*
Theme Name: Firmowy
Theme URI:
Author:
Author URI:
Description: Profesjonalny motyw firmowy. Elegancki, responsywny, zoptymalizowany pod PageSpeed 100.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: firmowy
Tags: one-column, two-columns, education, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* =========================================
   CSS CUSTOM PROPERTIES
   ========================================= */
:root {
  --color-bg:           #f5f3ef;
  --color-bg-alt:       #ede9e2;
  --color-surface:      #ffffff;
  --color-surface-warm: #ede9e2;
  --color-teal:         #c8d8d4;
  --color-teal-dark:    #a8c4be;
  --color-blue:         #8aa8c8;
  --color-blue-mid:     #7090b0;
  --color-lavender:     #b8b8d4;
  --color-dark:         #1a1a1a;
  --color-text:         #2a2a2a;
  --color-text-muted:   #666666;
  --color-border:       #d8d2c8;
  --color-accent:       #2a2a2a;

  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Courier New', monospace;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 24px rgba(0,0,0,0.12);

  --max-width:   1200px;
  --nav-height:  60px;
  --transition:  0.2s ease;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =========================================
   LAYOUT
   ========================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-content {
  min-height: calc(100vh - var(--nav-height));
}

/* =========================================
   SITE HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

/* Logo – plik (SVG / PNG / WEBP) */
.site-logo-img {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.site-logo-img img {
  display: block;
  /* Rozmiar z CSS custom properties – kontrolowane przez Customizer */
  width: var( --aa-logo-w, 140px );
  height: var( --aa-logo-h, 40px );
  object-fit: contain;
  max-width: 100%;
}

/* Footer logo */
/* ── Footer logo (plik wgrany przez Customizer) ── */
.footer-logo-img {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}
.footer-logo-img img {
  display: block;
  /* Rozmiar i filter z CSS custom properties – Customizer kontroluje */
  width:  var( --aa-footer-logo-w, 120px );
  height: var( --aa-footer-logo-h, 36px );
  filter: var( --aa-footer-logo-filter, none );
  object-fit: contain;
  max-width: 100%;
}

/* WordPress custom-logo (fallback gdy aa_logo_url puste) */
.site-branding .custom-logo-link img.custom-logo {
  display: block;
  object-fit: contain;
  max-height: 56px;
  width: auto;
}

/* Site title + description next to logo */
.site-title-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--color-border);
  line-height: 1.2;
}
.site-title-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.site-title-text:hover { text-decoration: none; opacity: 0.8; }
.site-tagline {
  font-size: 11px;
  color: #3a3a3a;  /* kontrast 9:1 – wymagany dla bardzo małego tekstu */
  white-space: nowrap;
  margin-top: 2px;
}

/* Social icons */
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #333;
  color: #888;
  transition: background var(--transition), opacity var(--transition);
  flex-shrink: 0;
}
.footer-social-link:hover {
  background: #444;
  color: #fff;
}
.footer-social-link svg {
  width: 14px;
  height: 14px;
  display: block;
}

.site-logo {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-dark);
}

/* Primary Nav */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  white-space: nowrap;
}

.nav-menu > li > a:hover {
  background: var(--color-bg-alt);
}

/* Dropdown */
.nav-menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 5px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 0.6;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  will-change: opacity, transform;
}

.nav-menu li.menu-item-has-children:hover > .sub-menu,
.nav-menu li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sub-menu a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.sub-menu a:hover {
  background: var(--color-bg);
}

/* CTA Button */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-surface) !important;
  background: var(--color-dark);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-dark);
  transition: background var(--transition);
}

.nav-cta:hover {
  background: #333 !important;
}

.nav-cta .cta-dot {
  width: 6px;
  height: 6px;
  background: #4caf50;
  border-radius: 50%;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  padding: 6px;
  background: transparent;
  border: 1px solid var(--color-border);
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: var(--color-bg-alt);
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--color-bg);
  z-index: 99;
  overflow-y: auto;
  padding: 24px;
  border-top: 1px solid var(--color-border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav-overlay.open {
  transform: translateX(0);
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Wiersz linku 1. poziomu: link + przycisk toggle */
.mobile-nav-menu .menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.mobile-nav-menu .menu-item-has-children > a {
  flex: 1;
}

/* Przycisk rozwijania podmenu ▾ */
.submenu-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  font-size: 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition), transform 0.2s;
}

.submenu-toggle:hover {
  background: var(--color-bg-alt);
}

.submenu-toggle span {
  display: inline-block;
  transition: transform 0.2s;
}

.mobile-nav-menu .sub-menu {
  flex-basis: 100%;
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 0 0 0 16px;
  display: none;
}

.mobile-nav-menu .sub-menu.open {
  display: block;
}

.mobile-nav-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 16px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.mobile-nav-menu a:hover {
  background: var(--color-bg-alt);
}

.mobile-nav-menu .sub-menu a {
  font-size: 14px;
  color: #3a3a3a;
  padding: 8px 12px;
}

.mobile-cta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--color-dark);
  border-radius: var(--radius-md);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  text-align: center;
  padding: 72px 24px 60px;
  max-width: 640px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
  color: var(--color-dark);
}

.hero-section .hero-description {
  font-size: 16px;
  color: #555555;  /* kontrast 5.7:1 na #f5f3ef – WCAG AA ✓ */
  line-height: 1.7;
  margin: 0;
}

/* =========================================
   FEATURED COURSES BLOCK
   ========================================= */
.featured-courses-block {
  background: var(--color-surface-warm);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 16px;
}

.block-header {
  margin-bottom: 24px;
}

.block-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.block-description {
  font-size: 14px;
  color: #3a3a3a;
  line-height: 1.6;
  max-width: 380px;
}

.featured-inner {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.featured-inner .block-header {
  flex: 0 0 280px;
  min-width: 200px;
}
.featured-inner .courses-grid {
  flex: 1;
  min-width: 260px;
}

.see-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.see-all-btn:hover {
  background: var(--color-bg-alt);
  border-color: #bbb;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.course-card {
  background: var(--color-teal);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.course-card.card-light {
  background: var(--color-lavender);
}

.course-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3a3a3a;  /* was #666 – kontrast 9:1 na jasnych tłach */
  font-weight: 600;
  margin-bottom: 8px;
}

.course-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-dark);
  font-weight: normal;
  flex: 1;
}

.course-arrow {
  align-self: flex-end;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  font-size: 14px;
  margin-top: 12px;
  transition: background var(--transition);
}

.course-card:hover .course-arrow {
  background: rgba(255,255,255,0.8);
}

/* =========================================
   INFO BLOCKS (Build / Work / Personal)
   ========================================= */
.info-block {
  border-radius: var(--radius-xl);
  padding: 40px 40px 40px 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 160px;
  overflow: hidden;
  position: relative;
}

.info-block.block-teal     { background: var(--color-teal); }
.info-block.block-lavender { background: var(--color-lavender); }
.info-block.block-blue     { background: var(--color-blue); }

.info-block-content {
  max-width: 480px;
}

.info-block h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.info-block p {
  font-size: 14px;
  color: #3a3a3a;  /* was #666 – kontrast min 7:1 na jasnych tłach */
  margin-bottom: 20px;
  line-height: 1.65;
}

.learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;  /* ciemny tekst – kontrast 14:1 na jasnych tłach */
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(0,0,0,0.35);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.learn-more-btn:hover {
  background: rgba(255,255,255,0.4);
  border-color: rgba(0,0,0,0.4);
}

/* Block illustrations */
.info-block-illustration {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  opacity: 0.7;
}

/* SVG inline illustrations */
.illustration-svg {
  width: 100px;
  height: 100px;
}

/* =========================================
   NEWSLETTER SECTION
   ========================================= */
.newsletter-section {
  background: var(--color-surface-warm);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.newsletter-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.newsletter-description {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form .form-row {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: opacity var(--transition);
}

.newsletter-input:focus {
  border-color: var(--color-dark);
}

.newsletter-input::placeholder {
  color: #bbb;
}

.newsletter-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 18px;
  transition: background var(--transition);
}

.newsletter-submit:hover {
  background: #333;
}

.newsletter-disclaimer {
  font-size: 12px;
  color: #3a3a3a;  /* kontrast 9:1 – wymagany dla małego tekstu */
  line-height: 1.5;
  margin: 0;
}

/* =========================================
   ACADEMY PAGE TEMPLATE
   ========================================= */
.page-academy .main-content-area {
  padding: 0 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* =========================================
   SITE FOOTER
   ========================================= */
.site-footer {
  background: var(--color-dark);
  color: #ccc;
  padding: 56px 0 28px;
}

/* 4 równe kolumny widżetów */
.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
  align-items: start;
}

/* Kolumna widżetu */
.footer-widget-col {
  color: #ccc;
}

.footer-widget-col .widget {
  margin-bottom: 0;
}

.footer-widget-col .widget-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

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

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

.footer-widget-col ul li a {
  color: #bbb;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-widget-col ul li a:hover {
  color: #fff;
}

.footer-widget-col p {
  font-size: 13px;
  color: #bbb;
  line-height: 1.65;
  margin-bottom: 8px;
}

/* Menu w stopce (fallback) */
.footer-col {
  min-width: 0;
}

.footer-logo {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: #888;
  transition: opacity var(--transition);
  line-height: 1.5;
}

.footer-links a:hover {
  color: #ccc;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 13px;
  color: #bbb;  /* kontrast 7.5:1 na #1a1a1a – WCAG AA ✓ */
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #333;
  color: #888;
  font-size: 13px;
  transition: background var(--transition), opacity var(--transition);
}

.footer-social a:hover {
  background: #444;
  color: #ccc;
}

/* =========================================
   GENERAL PAGE STYLES
   ========================================= */
.page-header {
  padding: 48px 0 40px;
  text-align: center;
}

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.entry-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
  font-size: 16px;
  line-height: 1.75;
}

.entry-content h2, .entry-content h3 {
  margin: 2rem 0 1rem;
}

.entry-content p { margin-bottom: 1.25rem; }

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 56px; }

  .main-navigation .nav-menu,
  .main-navigation .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav-overlay {
    display: block;
  }

  .site-title-group {
    display: none;
  }

  .hero-section {
    padding: 48px 0 40px;
  }

  .featured-courses-block {
    padding: 24px;
  }

  .featured-courses-block .block-layout {
    flex-direction: column;
  }

  .info-block {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .info-block-illustration {
    display: none;
  }

  .newsletter-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .courses-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* =========================================
   WORDPRESS CORE COMPATIBILITY
   ========================================= */
.wp-block-image img { border-radius: var(--radius-md); }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--color-text-muted); margin-top: 6px; }
.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; width: 1px; word-wrap: normal !important;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 8px 16px;
  background: var(--color-dark);
  color: #fff;
  z-index: 999;
}
.skip-link:focus { top: 0; }

/* =========================================
   TEMPLATE: SKILLS PAGE
   ========================================= */

/* Hero – 100% viewport height */
.skills-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 64px 24px 100px;   /* dolny padding zostawia miejsce na strzałkę */
  text-align: center;
  background: var(--color-bg);
  overflow: hidden;
}

.skills-hero-inner {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-hero-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  opacity: 0.6;
}
.skills-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: 20px;
}
.skills-hero p {
  font-size: 18px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 65%;
}

/* Strzałka scroll-down */
.skills-scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: var(--color-dark);
  text-decoration: none;
  transition: background 0.2s;
  animation: sk-bounce 2s ease-in-out infinite;
  will-change: transform;
}
.skills-scroll-arrow:hover {
  background: rgba(0,0,0,0.12);
  animation-play-state: paused;
}
@keyframes sk-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.skills-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}
.skills-hero-cta:hover { background: #333; color: #fff; }

/* Video / image w hero */
.skills-video-wrap {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 40px auto 0;
  max-width: 800px;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skills-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.skills-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Sekcja "Expert output" – 4 kolumny */
.skills-benefits {
  padding: 64px 0;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  text-align: center;
}
.skills-benefits-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.skills-benefits h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 48px;
  color: var(--color-dark);
}
.skills-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.skills-benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.skills-benefit-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-dark);
}
.skills-benefit-item p {
  font-size: 13px;
  color: #3a3a3a;
  line-height: 1.65;
}
.skills-benefit-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  color: var(--color-dark);
  opacity: 0.6;
}

/* Sekcja "How teams use" – lista z ikonami */
.skills-how {
  padding: 80px 0;
  text-align: center;
}
.skills-how-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.skills-how h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
  color: var(--color-dark);
  text-align: center;
}
.skills-how-lead {
  font-size: 15px;
  color: #555;
  margin: 0 auto 56px;
  max-width: 560px;
  text-align: center;
}
.skills-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}
.skills-how-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.skills-how-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-dark);
}
.skills-how-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skills-how-card ul li {
  font-size: 13px;
  color: #3a3a3a;
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.skills-how-card ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--color-dark);
  font-weight: 700;
}

/* Sekcja blogpostów / artykułów */
.skills-articles {
  padding: 0 0 64px;
}
.skills-articles-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.skills-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.skills-article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}
.skills-article-card:hover { box-shadow: var(--shadow-md); }
.skills-article-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.skills-article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.skills-article-card-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-dark);
  line-height: 1.4;
}
.skills-article-card-body p {
  font-size: 13px;
  color: #3a3a3a;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.skills-article-card-body a.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.skills-article-card-body a.read-more:hover { opacity: 0.7; }

/* Sekcja "Create your own" – 2 kolumny */
.skills-create {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.skills-create-content {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.skills-create-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
  color: var(--color-dark);
}
.skills-create-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-dark);
}
.skills-create-content p {
  font-size: 14px;
  color: #3a3a3a;
  line-height: 1.7;
  margin-bottom: 28px;
}
.skills-create-image {
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}
.skills-create-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sekcja "Code/SKILL.md preview" */
.skills-code-preview {
  background: #1e1e2e;
  border-radius: var(--radius-xl);
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #cdd6f4;
  overflow: auto;
  max-height: 400px;
  width: 100%;
}
.skills-code-preview .code-comment { color: #6c7086; }
.skills-code-preview .code-key     { color: #89b4fa; }
.skills-code-preview .code-val     { color: #a6e3a1; }
.skills-code-preview .code-heading { color: #f38ba8; font-weight: bold; }
.skills-code-preview .code-li      { color: #cdd6f4; }

/* Prompt input preview */
.skills-prompt-wrap {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #555;
}
.skills-prompt-wrap span { flex: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .skills-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-how-grid      { grid-template-columns: repeat(2, 1fr); }
  .skills-create        { grid-template-columns: 1fr; }
  .skills-create-image  { min-height: 260px; }
}

@media (max-width: 768px) {
  .skills-hero           { padding: 48px 20px 96px; min-height: calc(100vh - var(--nav-height)); }
  .skills-hero h1        { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .skills-hero p         { font-size: 16px; max-width: 80%; }
  .skills-benefits       { padding: 48px 0; }
  .skills-benefits-inner { padding: 0 24px; }
  .skills-benefits-grid  { grid-template-columns: 1fr; gap: 24px; }
  .skills-how            { padding: 56px 0; }
  .skills-how-grid       { grid-template-columns: 1fr; text-align: center; }
  .skills-how-card       { text-align: left; }
  .skills-how-lead       { text-align: center; }
  .skills-articles-grid  { grid-template-columns: 1fr; }
  .skills-create-content { padding: 36px 24px; text-align: center; }
  .skills-create-content .skills-hero-cta { margin: 0 auto; }
  .page-skills .container { padding: 0 16px; }
}
