/*
 Theme Name: Relaksacja 2026
 Theme URI: https://relaksacja.pl
 Description: Nowy design relaksacja.pl — Stone Biofeedback. Oparty na Kadence.
 Author: Stone Biofeedback
 Author URI: https://relaksacja.pl
 Template: kadence
 Version: 1.0.0
 Text Domain: relaksacja2026
*/

/* ============================================
   DESIGN TOKENS — Identyfikacja Wizualna
   ============================================ */

:root {
  /* Primary — Logo */
  --r-amber: #9A6509;
  --r-amber-dark: #7A5007;
  --r-amber-light: #FDB954;

  /* Secondary */
  --r-sage: #8BAF9E;
  --r-sage-light: #E8F0EC;
  --r-sage-dark: #6A9484;
  --r-rose: #D4A0A0;
  --r-rose-light: #F5EAEA;
  --r-rose-dark: #B87C7C;
  --r-teal: #2D6A6A;
  --r-teal-light: #3D8A8A;
  --r-teal-dark: #1D4A4A;

  /* Neutral */
  --r-warm-white: #FAF7F2;
  --r-cream: #F5F0E8;
  --r-light-gray: #E8E4DE;
  --r-warm-gray: #6B6B6B;
  --r-charcoal: #3A3A3A;

  /* Spacing */
  --r-section-padding: 80px 0;
  --r-section-padding-mobile: 48px 0;
  --r-container-max: 1200px;
  --r-card-radius: 12px;
  --r-btn-radius: 8px;
}

/* ============================================
   GLOBAL OVERRIDES
   ============================================ */

body {
  background-color: var(--r-warm-white);
  color: var(--r-charcoal);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--r-teal-dark);
  line-height: 1.3;
}

a {
  color: var(--r-teal);
  transition: color 0.2s ease;
}
a:hover {
  color: var(--r-teal-light);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary,
.r-btn-primary {
  display: inline-block;
  background: var(--r-amber);
  color: #fff !important;
  padding: 14px 32px;
  border-radius: var(--r-btn-radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover,
.r-btn-primary:hover {
  background: var(--r-amber-dark);
  transform: translateY(-1px);
  color: #fff !important;
}

.btn-secondary,
.r-btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--r-amber);
  padding: 13px 31px;
  border-radius: var(--r-btn-radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--r-amber);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover,
.r-btn-secondary:hover {
  background: var(--r-amber);
  color: #fff;
}

.btn-teal {
  display: inline-block;
  background: var(--r-teal);
  color: #fff !important;
  padding: 14px 32px;
  border-radius: var(--r-btn-radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-teal:hover { background: var(--r-teal-dark); color: #fff !important; }

.btn-sage {
  display: inline-block;
  background: var(--r-sage);
  color: #fff !important;
  padding: 14px 32px;
  border-radius: var(--r-btn-radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-sage:hover { background: var(--r-sage-dark); color: #fff !important; }

.btn-ghost {
  color: var(--r-teal);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}
.btn-ghost:hover { text-decoration: underline; }
.btn-ghost::after { content: none; }

/* Kadence button override */
.wp-block-button__link,
.kb-button {
  background: var(--r-amber) !important;
  border-radius: var(--r-btn-radius) !important;
}
.wp-block-button__link:hover,
.kb-button:hover {
  background: var(--r-amber-dark) !important;
}

/* ============================================
   SECTION LAYOUTS
   ============================================ */

.r-section {
  padding: var(--r-section-padding);
}
.r-container {
  max-width: var(--r-container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Background variants */
.r-bg-white { background: #fff; }
.r-bg-warm { background: var(--r-warm-white); }
.r-bg-cream { background: var(--r-cream); }
.r-bg-sage-light { background: var(--r-sage-light); }
.r-bg-rose-light { background: var(--r-rose-light); }
.r-bg-teal { background: var(--r-teal); color: #fff; }
.r-bg-teal h2, .r-bg-teal h3, .r-bg-teal p { color: #fff; }
.r-bg-amber { background: var(--r-amber); color: #fff; }

/* ============================================
   HERO SECTION
   ============================================ */

.r-hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--r-warm-white) 0%, var(--r-cream) 100%);
  position: relative;
  overflow: hidden;
}
.r-hero-inner {
  max-width: var(--r-container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.r-hero h1 {
  font-size: 52px;
  color: var(--r-teal-dark);
  margin-bottom: 20px;
  line-height: 1.15;
}
.r-hero .r-subtitle {
  font-size: 18px;
  color: var(--r-warm-gray);
  margin-bottom: 32px;
  line-height: 1.7;
}
.r-hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.r-hero-trust {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--r-warm-gray);
}
.r-hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.r-hero-trust strong {
  color: var(--r-charcoal);
  font-size: 20px;
}
.r-hero-image {
  position: relative;
}
.r-hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* ============================================
   SOCIAL PROOF BAR
   ============================================ */

.r-social-proof {
  padding: 32px 0;
  background: #fff;
  border-bottom: 1px solid var(--r-light-gray);
}
.r-social-proof-inner {
  max-width: var(--r-container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.r-social-proof-label {
  font-size: 14px;
  color: var(--r-warm-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   CARDS — DLA KOGO
   ============================================ */

.r-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.r-card {
  background: #fff;
  border-radius: var(--r-card-radius);
  padding: 36px 28px;
  border: 1px solid var(--r-light-gray);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.r-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.r-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.r-card-rose::before { background: var(--r-rose); }
.r-card-teal::before { background: var(--r-teal); }
.r-card-sage::before { background: var(--r-sage); }

.r-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}
.r-card-rose .r-card-icon { background: var(--r-rose-light); color: var(--r-rose-dark); }
.r-card-teal .r-card-icon { background: rgba(45,106,106,0.1); color: var(--r-teal); }
.r-card-sage .r-card-icon { background: var(--r-sage-light); color: var(--r-sage-dark); }

.r-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.r-card p {
  color: var(--r-warm-gray);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   3 STEPS — JAK DZIALA
   ============================================ */

.r-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.r-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--r-amber);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.r-step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.r-step p {
  color: var(--r-warm-gray);
  font-size: 15px;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */

.r-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.r-product {
  background: #fff;
  border-radius: var(--r-card-radius);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--r-light-gray);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.r-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.r-product img {
  max-width: 160px;
  margin-bottom: 16px;
}
.r-product h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.r-product .r-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--r-amber);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.r-badge-bestseller {
  display: inline-block;
  background: var(--r-amber-light);
  color: var(--r-charcoal);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.r-testimonial {
  background: #fff;
  border-radius: var(--r-card-radius);
  padding: 36px;
  border: 1px solid var(--r-light-gray);
  max-width: 600px;
  margin: 0 auto;
}
.r-testimonial-text {
  font-size: 18px;
  font-style: italic;
  color: var(--r-charcoal);
  margin-bottom: 20px;
  line-height: 1.7;
}
.r-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.r-testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.r-testimonial-name {
  font-weight: 600;
  color: var(--r-charcoal);
}
.r-testimonial-role {
  font-size: 14px;
  color: var(--r-warm-gray);
}

/* ============================================
   NEWSLETTER / LEAD MAGNET
   ============================================ */

.r-newsletter {
  background: linear-gradient(135deg, var(--r-amber) 0%, var(--r-amber-light) 100%);
  padding: 60px 0;
  text-align: center;
}
.r-newsletter h2 { color: #fff; }
.r-newsletter p { color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.r-newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.r-newsletter-form input[type=email] {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--r-btn-radius);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
}
.r-newsletter-form button {
  padding: 14px 28px;
  background: var(--r-teal);
  color: #fff;
  border: none;
  border-radius: var(--r-btn-radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
}
.r-newsletter-form button:hover {
  background: var(--r-teal-dark);
}

/* ============================================
   SECTION HEADINGS
   ============================================ */

.r-section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.r-section-heading h2 {
  font-size: 38px;
  margin-bottom: 16px;
}
.r-section-heading p {
  font-size: 18px;
  color: var(--r-warm-gray);
  max-width: 600px;
  margin: 0 auto;
}

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

@media (max-width: 1024px) {
  .r-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .r-hero h1 { font-size: 40px; }
  .r-hero-cta { justify-content: center; }
  .r-hero-trust { justify-content: center; }
  .r-hero-image { max-width: 500px; margin: 0 auto; }
  .r-products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .r-cards-grid { grid-template-columns: 1fr; }
  .r-steps { grid-template-columns: 1fr; gap: 32px; }
  .r-products { grid-template-columns: 1fr; }
  .r-section { padding: var(--r-section-padding-mobile); }
  .r-hero { padding: 60px 0 48px; }
  .r-hero h1 { font-size: 32px; }
  .r-section-heading h2 { font-size: 28px; }
  .r-newsletter-form { flex-direction: column; }
  .r-social-proof-inner { gap: 24px; }
}

@media (max-width: 480px) {
  .r-hero h1 { font-size: 28px; }
  .r-hero-trust { flex-direction: column; gap: 12px; }
  .r-card { padding: 24px 20px; }
}

/* ============================================
   KADENCE OVERRIDES
   ============================================ */

/* Header */
.site-header {
  background: rgba(250,247,242,0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#main-header .site-branding .site-title {
  color: var(--r-amber) !important;
}
.header-navigation .menu > li > a {
  color: var(--r-charcoal) !important;
  font-weight: 500;
}
.header-navigation .menu > li > a:hover {
  color: var(--r-amber) !important;
}

/* Footer */
.site-footer {
  background: var(--r-charcoal) !important;
  color: rgba(255,255,255,0.8);
}
.site-footer a { color: var(--r-amber-light) !important; }
.site-footer a:hover { color: var(--r-amber) !important; }
.site-footer h2, .site-footer .widget-title {
  color: #fff !important;
  font-family: 'Playfair Display', serif;
}

/* Content */
.entry-content h2 {
  color: var(--r-teal-dark);
  font-family: 'Playfair Display', serif;
}
.entry-content a {
  color: var(--r-teal);
}
.entry-content a:hover {
  color: var(--r-amber);
}

/* Kadence global palette override */
:root {
  --global-palette1: #F79E33;
  --global-palette2: #2D6A6A;
  --global-palette3: #3A3A3A;
  --global-palette4: #7A7A7A;
  --global-palette5: #E8E4DE;
  --global-palette6: #F5F0E8;
  --global-palette7: #FAF7F2;
  --global-palette8: #FFFFFF;
  --global-palette9: #FFFFFF;
  --global-palette-highlight: #F79E33;
  --global-palette-highlight-alt: #E8901F;
  --global-palette-highlight-alt2: #2D6A6A;
  --global-palette-btn: #F79E33;
  --global-palette-btn-hover: #E8901F;
  --global-palette-btn-bg: #F79E33;
  --global-palette-btn-bg-hover: #E8901F;
}

/* Fix: input text color (palette5 is too light for form fields) */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea {
  color: var(--r-charcoal) !important;
}

/* ============================================
   FOOTER — styl jak stary template
   ============================================ */

.r-footer {
  margin-top: 0;
}

.r-footer-nav {
  background: var(--r-charcoal);
  padding: 24px 0;
  text-align: center;
}

.r-footer-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.r-footer-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.r-footer-menu a:hover {
  color: var(--r-amber);
}

.r-footer-sep {
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}

.r-footer-copyright {
  background: var(--r-teal-dark);
  padding: 16px 0;
  text-align: center;
}

.r-footer-copyright p {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

.r-footer-copyright a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.r-footer-copyright a:hover {
  color: var(--r-amber-light);
}

/* Hide Kadence default footer since we have custom */
.site-footer {
  display: none !important;
}


/* ============================================
   Related articles list (jak stary template)
   ============================================ */

.r-related-articles {
  margin-top: 32px;
}

.r-related-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--r-light-gray);
}

.r-related-item:first-child {
  border-top: 1px solid var(--r-light-gray);
}

.r-related-item h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.r-related-item h2 a {
  color: var(--r-teal);
  text-decoration: none;
}

.r-related-item h2 a:hover {
  color: var(--r-amber);
}

.r-related-item p {
  color: var(--r-charcoal);
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 8px;
}

.r-related-more {
  text-align: right;
}

.r-related-more a {
  color: var(--r-teal);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.r-related-more a:hover {
  color: var(--r-amber);
}

/* ============================================
   Formularz zapisu (stary HTML table form)
   ============================================ */

table.myForm {
  width: 100%;
  max-width: 500px;
  border-collapse: separate;
  border-spacing: 0 12px;
}

table.myForm td {
  padding: 6px 0;
  vertical-align: middle;
  border-bottom: none !important;
}

table.myForm input[type="text"],
table.myForm textarea {
  width: 100% !important;
  padding: 12px 16px;
  border: 1px solid var(--r-light-gray);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

table.myForm input[type="text"]:focus,
table.myForm textarea:focus {
  border-color: var(--r-amber);
  outline: none;
  box-shadow: 0 0 0 3px rgba(247,158,51,0.15);
}

table.myForm input[type="radio"] {
  margin-right: 8px;
  accent-color: var(--r-amber);
}

table.myForm label {
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}

table.myForm input[type="submit"] {
  background: var(--r-amber);
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}

table.myForm input[type="submit"]:hover {
  background: var(--r-amber-dark);
}

/* Contact Form 7 styling */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--r-light-gray);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}

.wpcf7-form input[type="submit"] {
  background: var(--r-amber);
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover {
  background: var(--r-amber-dark);
}

/* ============================================
   Content width — zwezenie na podstronach
   ============================================ */

.page:not(.home) .entry-content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.page:not(.home) .content-style-boxed .entry-content-wrap {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 48px;
}

@media (max-width: 768px) {
  .page:not(.home) .content-style-boxed .entry-content-wrap {
    padding: 24px;
    border-radius: 12px;
  }
}

/* Override: nasz page.php nie ma content-style-boxed wrapper */
.page .entry-content-wrap,
.single .entry-content-wrap {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  max-width: 800px;
  margin: 40px auto;
  padding: 48px;
}

@media (max-width: 768px) {
  .page .entry-content-wrap,
  .single .entry-content-wrap {
    padding: 24px;
    border-radius: 12px;
    margin: 20px auto;
  }
}

/* ============================================
   LOGO — ukryj tekst, pokaż tylko grafikę
   ============================================ */

.site-branding .site-title-wrap {
  display: none !important;
}

.site-branding .custom-logo {
  max-width: 250px;
  height: auto;
}

@media (max-width: 768px) {
  .site-branding .custom-logo {
    max-width: 180px;
  }
}

/* ============================================
   PODSTRONY — poprawa czytelności
   ============================================ */

/* Lepsza typografia treści */
.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

.entry-content p {
  margin-bottom: 1.4em;
}

.entry-content h1 {
  font-size: 36px;
  margin-bottom: 24px;
  color: var(--r-teal-dark);
}

.entry-content h2 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--r-sage-light);
}

.entry-content h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
}

/* Nagłówek strony */
.entry-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--r-amber);

}

.entry-header .entry-title {
  font-size: 36px;
  color: var(--r-teal-dark);
  margin-bottom: 0;
}

/* Obrazki w treści */
.entry-content img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
}

/* Listy */
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.4em;
  padding-left: 24px;
}

.entry-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Cytaty */
.entry-content blockquote {
  border-left: 4px solid var(--r-amber);
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--r-cream);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* Tabele */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.entry-content table th,
.entry-content table td {
  padding: 12px 16px;
  border: 1px solid var(--r-light-gray);
  text-align: left;
}

.entry-content table th {
  background: var(--r-sage-light);
  font-weight: 600;
}

.entry-content table tr:nth-child(even) {
  background: var(--r-warm-white);
}

/* Strona główna — nie stosuj zwężenia */
.home .entry-content-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* ============================================
   Cookie Notice — czytelny przycisk
   ============================================ */

#cookie-notice .cn-button {
  background: #fff !important;
  color: #000 !important;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  cursor: pointer;
}

#cookie-notice .cn-button:hover {
  background: var(--r-amber) !important;
  color: #fff !important;
}

#cookie-notice {
  background: rgba(0,0,0,0.9) !important;
  font-size: 14px;
}

/* ============================================
   Testimonials grid — 3 kolumny
   ============================================ */

.r-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.r-testimonials-grid .r-testimonial {
  max-width: none;
}

@media (max-width: 768px) {
  .r-testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Hero stats — liczby z etykietami
   ============================================ */

.r-hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 8px;
}

.r-hero-stat {
  text-align: center;
}

.r-hero-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--r-amber);
  line-height: 1.1;
  white-space: nowrap;
}

.r-hero-stat-label {
  font-size: 13px;
  color: var(--r-warm-gray);
  margin-top: 4px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .r-hero-stats {
    justify-content: center;
    gap: 32px;
  }
  .r-hero-stat-num {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .r-hero-stats {
    gap: 20px;
  }
  .r-hero-stat-num {
    font-size: 22px;
  }
  .r-hero-stat-label {
    font-size: 11px;
  }
}

/* Hero stat numbers — czarny kolor */
.r-hero-stats .r-hero-stat-num {
  color: #1a1a1a;
}

/* ============================================
   Testimonials — poziomy scroll karuzela
   ============================================ */

.r-testimonials-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--r-amber) var(--r-rose-light);
  padding: 0 24px 16px;
}

.r-testimonials-scroll::-webkit-scrollbar {
  height: 6px;
}

.r-testimonials-scroll::-webkit-scrollbar-track {
  background: var(--r-rose-light);
  border-radius: 3px;
}

.r-testimonials-scroll::-webkit-scrollbar-thumb {
  background: var(--r-amber);
  border-radius: 3px;
}

.r-testimonials-track {
  display: flex;
  gap: 24px;
  padding: 4px 0;
  width: max-content;
}

.r-testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--r-light-gray);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  width: calc(33.333% - 16px);
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.r-testimonial-card .r-testimonial-text {
  font-size: 15px;
  font-style: italic;
  color: var(--r-charcoal);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.r-testimonial-card .r-testimonial-name {
  font-weight: 600;
  color: var(--r-charcoal);
  font-size: 15px;
}

.r-testimonial-card .r-testimonial-role {
  font-size: 13px;
  color: var(--r-warm-gray);
}

@media (max-width: 768px) {
  .r-testimonial-card {
    width: 280px;
    min-width: 280px;
    padding: 24px;
  }
}

/* ============================================
   Scrollowalna tabelka porownawcza
   ============================================ */

.r-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--r-amber) var(--r-light-gray);
  margin: 24px 0;
}

.r-table-scroll::-webkit-scrollbar {
  height: 6px;
}

.r-table-scroll::-webkit-scrollbar-track {
  background: var(--r-light-gray);
  border-radius: 3px;
}

.r-table-scroll::-webkit-scrollbar-thumb {
  background: var(--r-amber);
  border-radius: 3px;
}

/* Override — 3 karty widoczne na raz */
.r-testimonials-scroll {
  max-width: 1200px;
  margin: 0 auto;
}

.r-testimonial-card {
  width: calc((1200px - 48px) / 3);
  min-width: calc((1200px - 48px) / 3);
}

@media (max-width: 1200px) {
  .r-testimonial-card {
    width: 320px;
    min-width: 320px;
  }
}

/* 4-column articles grid */
.r-cards-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .r-cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .r-cards-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Poradniki page cards responsive override */
.entry-content .r-cards-grid-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}
@media (max-width: 900px) {
  .entry-content .r-cards-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 540px) {
  .entry-content .r-cards-grid-4 {
    grid-template-columns: 1fr !important; */
  }
}

/* Poradniki page 2-col grid */
.r-poradniki-grid a > div:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .r-poradniki-grid {
    grid-template-columns: 1fr !important;
  }
}
  }
}

/* Poradniki page - force 2 columns */
.entry-content .r-poradniki-grid {
  max-width: 100% !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
}
.entry-content .r-poradniki-grid img {
  max-width: 200px !important;
}

/* Fix .button styling — Kadence palette vars not set */
a.button, .button {
  background: var(--amber, #F79E33) !important;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: background 0.2s;
}
a.button:hover, .button:hover {
  background: var(--amber-dark, #E8901F) !important;
  color: #fff !important;
}
a.button span, .button span {
  color: #fff !important;
}

/* Form styling for szkolenia signup */
table.myForm,
table.myForm tr,
table.myForm td {
  border: none !important;
  border-bottom: none !important;
  background: transparent !important;
}
table.myForm {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}
table.myForm td {
  padding: 8px 12px;
  vertical-align: middle;
  font-size: 15px;
}
table.myForm tr td:first-child {
  font-weight: 600;
  color: var(--charcoal, #3A3A3A);
  width: 160px;
}
table.myForm input[type="text"],
table.myForm textarea {
  width: 100% !important;
  max-width: 400px;
  padding: 10px 14px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 15px;
  background: #fff !important;
}
table.myForm input[type="text"]:focus,
table.myForm textarea:focus {
  border-color: var(--amber, #F79E33) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(247, 158, 51, 0.15);
}
table.myForm textarea {
  min-height: 80px !important;
  height: auto !important;
}
table.myForm input[type="radio"] {
  accent-color: var(--amber, #F79E33);
  margin-right: 6px;
}
table.myForm label {
  cursor: pointer;
  padding: 4px 0;
  display: inline-block;
}
table.myForm input[type="submit"] {
  background: var(--amber, #F79E33) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 40px !important;
  border-radius: 8px !important;
  font-size: 17px !important;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  margin: 8px auto;
}
table.myForm input[type="submit"]:hover {
  background: var(--amber-dark, #E8901F) !important;
}
/* Remove outer table frame */
.entry-content table {
  border: none !important;
  border-collapse: collapse;
}
.entry-content table td {
  border: none !important;
}

/* Mobile fixes — hero buttons and stats */
@media (max-width: 480px) {
  .r-hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .r-hero-cta a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .r-hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .r-hero-stat-num {
    font-size: 26px;
    white-space: normal;
  }
  .r-hero-stat-label {
    white-space: normal;
  }
}

/* Mobile fixes — Potwierdzone naukowo section */
@media (max-width: 768px) {
  .r-bg-teal .r-cards-grid {
    grid-template-columns: 1fr !important; */
    gap: 24px;
  }
  .r-bg-teal .r-cards-grid div[style*="font-size:48px"] {
    font-size: 32px !important;
  }
}
@media (max-width: 480px) {
  .r-bg-teal .r-cards-grid div[style*="font-size:48px"] {
    font-size: 26px !important;
  }
}

/* Mobile fix — Szkolenia cards 1 per row */
@media (max-width: 768px) {
  .r-cards-grid[style*="repeat(2"] {
    grid-template-columns: 1fr !important; */
  }
}



/* Spacing before footer */
.r-footer {
  margin-top: 60px;
}


/* Remove orange separator lines */
.entry-hero-container-inner::after,
.loop-entry .entry-content-wrap::after,
.loop-entry .entry-header::after,
.loop-entry .entry-title::after,
.loop-entry .entry-footer::before {
  display: none !important;
  border: none !important;
}
/* Card styling */
.loop-entry .entry-content-wrap {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: none !important;
}
.loop-entry .entry-title a {
  color: var(--r-teal-dark, #2D6A6A);
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 22px;
}
.loop-entry .entry-title a:hover {
  color: var(--r-amber, #F79E33);
}
/* Fix "DOWIEDZ SIĘ WIĘCEJ" link */
.loop-entry .post-more-link {
  text-transform: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--r-teal-dark, #2D6A6A);
}
.loop-entry .post-more-link:hover {
  color: var(--r-amber, #F79E33);
}
.loop-entry .entry-footer {
  margin-top: auto;
  border-top: none !important;
}
/* Archive grid background */
.archive .content-area {
  background: var(--r-warm-white, #FAF7F2);
}

/* Archive pages styling (tags, categories) */
.entry-hero {
  background: var(--r-warm-white, #FAF7F2) !important;
  border: none !important;
}
.entry-hero .entry-hero-container-inner {
  border: none !important;
  border-bottom: none !important;
  background: transparent !important;
}
.entry-hero .entry-hero-container-inner::before,
.entry-hero .entry-hero-container-inner::after,
.entry-hero .hero-section-overlay::before,
.entry-hero .hero-section-overlay::after,
.entry-hero .entry-header::before,
.entry-hero .entry-header::after {
  display: none !important;
  content: none !important;
  border: none !important;
}
.entry-hero .archive-title {
  font-family: "Playfair Display", serif;
  color: var(--r-teal-dark, #2D6A6A);
  border: none !important;
}
/* Remove orange lines everywhere in archive */
.loop-entry .entry-content-wrap::after,
.loop-entry .entry-content-wrap::before,
.loop-entry .entry-header::after,
.loop-entry .entry-header::before,
.loop-entry .entry-title::after,
.loop-entry .entry-footer::before,
.loop-entry .entry-footer::after {
  display: none !important;
  content: none !important;
}
/* Card styling matching O_Instytucie */
.loop-entry .entry-content-wrap {
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  padding: 28px 24px !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: none !important;
  background: #fff;
}
.loop-entry .entry-content-wrap:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  transform: translateY(-2px);
  transition: all 0.2s ease;
}
.loop-entry .entry-title a {
  color: var(--r-teal-dark, #2D6A6A) !important;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 22px;
}
.loop-entry .entry-title a:hover {
  color: var(--r-amber, #F79E33) !important;
}
.loop-entry .post-more-link {
  text-transform: none !important;
  font-size: 14px;
  font-weight: 600;
  color: var(--r-teal-dark, #2D6A6A) !important;
}
.loop-entry .post-more-link:hover {
  color: var(--r-amber, #F79E33) !important;
}
.loop-entry .entry-footer {
  margin-top: auto;
  border: none !important;
}
.archive .content-area {
  background: var(--r-warm-white, #FAF7F2);
}

/* Hide orange line under archive hero title */
.entry-hero .entry-header {
  border-bottom: none !important;
  padding-bottom: 0;
}

/* Hamburger menu icon — amber color */
.menu-toggle-open {
  color: var(--r-amber, #F79E33) !important;
}

/* Mobile drawer menu — lighter background */
.drawer-inner {
  background: var(--r-warm-white, #FAF7F2) !important;
}
.drawer-inner a {
  color: var(--r-charcoal, #3A3A3A) !important;
}
.drawer-inner .menu-toggle-close .toggle-close-bar {
  background: var(--r-charcoal, #3A3A3A) !important;
}

/* Brighter subtitle text in teal section */
.r-bg-teal .r-section-heading p {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Hide post meta (author, date) from title area */
.entry-hero-layout-default .entry-meta,
.entry-header .entry-meta {
  display: none !important;
}

/* Accessibility: links distinguishable */
.r-footer a { text-decoration: underline; }
.r-footer a:hover { text-decoration: none; }

/* Fix: przycisk komentarza — bialy tekst na pomaranczowym tle */
#respond input[type="submit"],
.comment-form input[type="submit"] {
  color: #fff !important;
  background: var(--r-amber, #F79E33) !important;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
#respond input[type="submit"]:hover,
.comment-form input[type="submit"]:hover {
  background: var(--r-amber-dark, #7A5007) !important;
  color: #fff !important;
}
