/* Plik: css/style.css */

:root {
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  --font-secondary: "Merriweather", serif;

  --color-background: #ffffff;
  --color-surface: #f8f9fa;
  --color-surface-raised: #ffffff;
  --color-text-primary: #121212;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-primary: #0056b3;
  --color-primary-dark: #004494;
  --color-primary-light: #e6f0ff;
  --color-secondary: #28a745;
  --color-secondary-dark: #218838;
  --color-accent: #ffc107;
  --color-accent-dark: #e0a800;
  --color-border: #dee2e6;
  --color-shadow: rgba(0, 0, 0, 0.05);
  --color-success: #28a745;
  --color-error: #dc3545;

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  --spacing-xxxl: 4rem;

  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;

  --shadow-sm: 0 2px 4px var(--color-shadow);
  --shadow-md: 0 4px 12px var(--color-shadow);
  --shadow-lg: 0 8px 24px var(--color-shadow);

  --transition-fast: 200ms ease-in-out;
  --transition-medium: 400ms ease-in-out;

  --container-width: 1200px;
  --container-padding: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #121212;
    --color-surface: #1e1e1e;
    --color-surface-raised: #2a2a2a;
    --color-text-primary: #f8f9fa;
    --color-text-secondary: #adb5bd;
    --color-text-muted: #6c757d;
    --color-primary: #4dabf7;
    --color-primary-dark: #1e90ff;
    --color-primary-light: #2a3b4c;
    --color-secondary: #40c057;
    --color-secondary-dark: #37b24d;
    --color-accent: #fab005;
    --color-accent-dark: #f59f00;
    --color-border: #3e3e3e;
    --color-shadow: rgba(0, 0, 0, 0.2);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-fast),
    color var(--transition-fast);
}

.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

ul,
ol {
  list-style-position: inside;
  padding-left: 0;
}

ul {
  list-style-type: none;
}

section {
  padding-top: var(--spacing-xxxl);
  padding-bottom: var(--spacing-xxxl);
}

section:nth-of-type(even) {
  background-color: var(--color-surface);
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-xxl);
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

.cta-button,
.cta-button-primary,
.cta-button-secondary {
  display: inline-block;
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-sm);
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
  border: 2px solid transparent;
}

.cta-button {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cta-button:hover {
  background-color: var(--color-primary);
  color: var(--color-background);
  text-decoration: none;
  transform: translateY(-2px);
}

.cta-button-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.cta-button-primary:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

.cta-button-secondary {
  background-color: var(--color-surface-raised);
  color: var(--color-text-primary);
  border: 2px solid var(--color-border);
}

.cta-button-secondary:hover {
  background-color: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  transform: translateY(-2px);
}

.grid-trio {
  display: grid;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .grid-trio {
    grid-template-columns: repeat(3, 1fr);
  }
}

.main-header {
  background-color: var(--color-background);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-border);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-xl);
}

.main-nav a {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom-color: var(--color-primary);
}

.hero {
  text-align: center;
  padding: var(--spacing-xxxl) 0;
  background-color: var(--color-surface);
}

.hero h1 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subtitle {
  font-size: 1.25rem;
  max-width: 750px;
  margin: var(--spacing-lg) auto var(--spacing-xl) auto;
  color: var(--color-text-secondary);
}

.audience-card {
  background-color: var(--color-surface-raised);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

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

.audience-card .card-icon {
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

.audience-card h3 {
  margin-bottom: var(--spacing-md);
}

.audience-card .learn-more {
  display: inline-block;
  margin-top: var(--spacing-md);
  font-weight: 600;
}

.features-tabs .tabs-container {
  max-width: 1000px;
  margin: 0 auto;
}

.features-tabs .tabs-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.features-tabs .tab-link {
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface-raised);
  color: var(--color-text-secondary);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.features-tabs .tab-link:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.features-tabs .tab-link.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.features-tabs .tab-content {
  display: none;
  padding: var(--spacing-lg);
  background-color: var(--color-surface-raised);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
}

.features-tabs .tab-content.active {
  display: block;
}

.features-tabs .content-wrapper {
  display: grid;
  align-items: center;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .features-tabs .content-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.features-tabs ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: var(--spacing-md);
}

.features-tabs ul li {
  padding-left: var(--spacing-xl);
  position: relative;
  margin-bottom: var(--spacing-sm);
}

.features-tabs ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

.features-tabs .image-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.how-it-works .steps-grid {
  display: grid;
  gap: var(--spacing-xl);
  counter-reset: step-counter;
}

@media (min-width: 992px) {
  .how-it-works .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-it-works .step-card {
  position: relative;
  padding: var(--spacing-xl);
  padding-top: var(--spacing-xxl);
}

.how-it-works .step-number {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary-light);
  z-index: 1;
}

.how-it-works .step-card h3 {
  position: relative;
  z-index: 2;
}

.case-study {
  background-color: var(--color-primary-light);
}

.case-study .container {
  max-width: 900px;
}

.case-study-content {
  background-color: var(--color-surface-raised);
  padding: var(--spacing-xxl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.case-study ul {
  list-style-type: disc;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.case-study .quote {
  margin-top: var(--spacing-xl);
  padding-left: var(--spacing-lg);
  border-left: 4px solid var(--color-primary);
}

.case-study blockquote {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--color-text-primary);
  margin: 0;
}

.case-study cite {
  display: block;
  margin-top: var(--spacing-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.pricing-plans .plan-card {
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.pricing-plans .plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pricing-plans .plan-card.popular {
  border-color: var(--color-primary);
  border-width: 2px;
  position: relative;
  overflow: hidden;
}

.pricing-plans .plan-card.popular::before {
  content: "Najpopularniejszy";
  position: absolute;
  top: 15px;
  right: -45px;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: var(--spacing-xs) var(--spacing-xxxl);
  transform: rotate(45deg);
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-plans .plan-header {
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.pricing-plans .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.pricing-plans .price .period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.pricing-plans .description {
  color: var(--color-text-muted);
  min-height: 40px;
}

.pricing-plans .plan-features {
  flex-grow: 1;
}

.pricing-plans .plan-features li {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-xl);
  position: relative;
}

.pricing-plans .plan-features li::before {
  content: "✓";
  color: var(--color-secondary);
  position: absolute;
  left: 0;
}

.pricing-plans .plan-card .cta-button-secondary,
.pricing-plans .plan-card .cta-button-primary {
  width: 100%;
  margin-top: var(--spacing-lg);
}

.testimonials .testimonials-grid {
  display: grid;
  gap: var(--spacing-xl);
}

@media (min-width: 992px) {
  .testimonials .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonials .testimonial-card {
  background-color: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
}

.testimonials .testimonial-card p {
  font-style: italic;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.testimonials .testimonial-card p::before {
  content: "“";
  font-family: var(--font-secondary);
  font-size: 4rem;
  color: var(--color-primary-light);
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  line-height: 1;
}

.testimonials .testimonial-card cite {
  font-weight: 600;
  color: var(--color-text-secondary);
  font-style: normal;
}

.team .team-grid {
  display: grid;
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .team .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .team .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team .team-member {
  text-align: center;
  background-color: var(--color-surface-raised);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
}

.team .team-member h4 {
  margin-bottom: var(--spacing-xs);
}

.team .team-member p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.team .team-cta {
  text-align: center;
  margin-top: var(--spacing-xxl);
  padding: var(--spacing-xl);
  background-color: var(--color-surface);
  border-radius: var(--border-radius-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-section .accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-section .accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-section .accordion-item:last-child {
  border-bottom: none;
}

.faq-section .accordion-header {
  width: 100%;
  background-color: transparent;
  border: none;
  text-align: left;
  padding: var(--spacing-lg) 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  position: relative;
  padding-right: var(--spacing-xl);
}

.faq-section .accordion-header::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.faq-section .accordion-item.active .accordion-header::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-section .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-section .accordion-content p {
  padding-bottom: var(--spacing-lg);
  color: var(--color-text-secondary);
}

.faq-section .faq-more {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.faq-section .faq-more a {
  font-weight: 600;
}

.blog-teaser .blog-card {
  background-color: var(--color-surface-raised);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.blog-teaser .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-teaser .card-content {
  padding: var(--spacing-xl);
}

.blog-teaser .category {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
}

.blog-teaser .excerpt {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.blog-teaser .read-more {
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
}

.final-cta {
  background-color: var(--color-primary);
  color: #ffffff;
  text-align: center;
}

.final-cta h2 {
  color: #ffffff;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
}

.final-cta .form-container {
  max-width: 800px;
  margin: var(--spacing-xl) auto 0 auto;
  background-color: var(--color-surface-raised);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

.final-cta form,
.final-cta #form-success-message {
  text-align: left;
}

.final-cta .form-grid {
  display: grid;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .final-cta .form-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.final-cta .form-group {
  display: flex;
  flex-direction: column;
}

.final-cta label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-secondary);
}

.final-cta input[type="text"],
.final-cta input[type="email"],
.final-cta input[type="password"] {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.final-cta input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.final-cta .form-group-checkbox {
  margin: var(--spacing-lg) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.final-cta .form-group-checkbox input {
  margin-top: 4px;
}

.final-cta .form-group-checkbox label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.final-cta .form-group-checkbox a {
  color: var(--color-primary);
}

.final-cta button[type="submit"] {
  width: 100%;
  padding: var(--spacing-md);
  font-size: 1.125rem;
}

.final-cta #form-success-message {
  text-align: center;
  color: var(--color-text-primary);
}

.final-cta #form-success-message h3 {
  color: var(--color-success);
}

.main-footer {
  background-color: var(--color-surface);
  color: var(--color-text-secondary);
  padding-top: var(--spacing-xxxl);
}

.main-footer .footer-grid {
  display: grid;
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
  .main-footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .main-footer .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.main-footer h4 {
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.main-footer ul li {
  margin-bottom: var(--spacing-sm);
}

.main-footer a {
  color: var(--color-text-secondary);
}

.main-footer a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.main-footer .contact-info {
  margin-top: var(--spacing-md);
}

.main-footer .contact-info p {
  margin-bottom: var(--spacing-xs);
}

.main-footer .footer-bottom {
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: var(--spacing-lg) 0;
  font-size: 0.875rem;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-surface-raised);
  color: var(--color-text-primary);
  padding: var(--spacing-lg);
  box-shadow: 0 -2px 10px var(--color-shadow);
  z-index: 2000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
}

.cookie-banner-text {
  flex-grow: 1;
}

.cookie-banner-text a {
  text-decoration: underline;
}

#cookie-accept-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }

  .main-header .cta-button {
    display: none;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
  }

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

  .features-tabs .content-wrapper {
    grid-template-columns: 1fr;
  }

  .features-tabs .image-content {
    order: -1;
  }

  .how-it-works .steps-grid {
    grid-template-columns: 1fr;
  }

  .pricing-plans .plan-card {
    margin-bottom: var(--spacing-lg);
  }

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

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

  .final-cta .form-grid {
    grid-template-columns: 1fr;
  }

  .main-footer .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .main-footer .contact-info,
  .main-footer ul {
    margin: 0 auto;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}
