/* 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: "Roboto Slab", serif;
  --font-mono: "Fira Code", monospace;

  --color-background: #ffffff;
  --color-background-alt: #f8f9fa;
  --color-surface: #ffffff;
  --color-border: #dee2e6;
  --color-text-primary: #212529;
  --color-text-secondary: #495057;
  --color-text-muted: #6c757d;
  --color-primary: #0052cc;
  --color-primary-hover: #0041a3;
  --color-primary-light: #e6f0ff;
  --color-accent: #17a2b8;
  --color-accent-hover: #138496;
  --color-success: #28a745;
  --color-danger: #dc3545;
  --color-warning: #ffc107;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-shadow-light: rgba(0, 0, 0, 0.04);
  --color-shadow-strong: rgba(0, 0, 0, 0.15);

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

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

  --transition-speed-fast: 0.15s;
  --transition-speed-normal: 0.3s;
  --transition-speed-slow: 0.5s;

  --container-width: 1200px;
  --header-height: 80px;

  --shadow-sm: 0 1px 3px var(--color-shadow-light),
    0 1px 2px var(--color-shadow-light);
  --shadow-md: 0 4px 6px -1px var(--color-shadow),
    0 2px 4px -1px var(--color-shadow);
  --shadow-lg: 0 10px 15px -3px var(--color-shadow),
    0 4px 6px -2px var(--color-shadow-strong);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #121212;
    --color-background-alt: #181818;
    --color-surface: #1e1e1e;
    --color-border: #3a3a3a;
    --color-text-primary: #e0e0e0;
    --color-text-secondary: #b0b0b0;
    --color-text-muted: #888888;
    --color-primary: #4a90e2;
    --color-primary-hover: #73a9e9;
    --color-primary-light: #2a2e35;
    --color-accent: #26c6da;
    --color-accent-hover: #80deea;
    --color-shadow: rgba(0, 0, 0, 0.25);
    --color-shadow-light: rgba(0, 0, 0, 0.15);
    --color-shadow-strong: rgba(0, 0, 0, 0.4);
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.7;
  font-weight: 400;
  transition: background-color var(--transition-speed-normal),
    color var(--transition-speed-normal);
}

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

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

h1 {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -1.5px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

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

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

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

ul,
ol {
  list-style: none;
}

.cta-button {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  transition: background-color var(--transition-speed-normal),
    transform var(--transition-speed-normal);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

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

.cta-button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.large-cta {
  font-size: 1.15rem;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--border-radius-lg);
}

.main-header {
  background-color: var(--color-surface);
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-speed-normal);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-secondary);
  color: var(--color-text-primary);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-primary);
}

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

.main-nav a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 1.05rem;
  padding: var(--spacing-sm) 0;
  position: relative;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-speed-normal) ease-in-out;
}

.main-nav a:hover::after {
  width: 100%;
}

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

main {
  padding-top: var(--header-height);
}

.content-section {
  padding: var(--spacing-section) 0;
}

.content-section-colored {
  padding: var(--spacing-section) 0;
  background-color: var(--color-background-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.hero-section {
  text-align: center;
  padding: var(--spacing-section) 0;
  background-color: var(--color-background-alt);
  overflow: hidden;
}

.hero-section h1 {
  margin-bottom: var(--spacing-md);
}

.hero-section .subtitle {
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto var(--spacing-xl) auto;
}

.hero-image-placeholder {
  margin-top: var(--spacing-xxl);
  position: relative;
}

.hero-image-placeholder::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100%;
  background-image: linear-gradient(
    to top,
    var(--color-background-alt),
    transparent 50%
  );
  z-index: 2;
}

.hero-image-placeholder img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1;
  position: relative;
}

#przeglad-rynkow h2 {
  margin-bottom: var(--spacing-lg);
}

.market-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.market-card {
  background-color: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-speed-normal),
    box-shadow var(--transition-speed-normal);
}

.market-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

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

.market-card .card-icon svg {
  width: 48px;
  height: 48px;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  text-align: center;
}

.feature-item {
  padding: var(--spacing-lg);
}

.feature-item svg {
  color: var(--color-accent);
  margin: 0 auto var(--spacing-md) auto;
  width: 50px;
  height: 50px;
}

.feature-item h3 {
  margin-bottom: var(--spacing-sm);
}

.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-xl);
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  border: 3px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto var(--spacing-lg) auto;
  background-color: var(--color-background);
}

.step h3 {
  margin-bottom: var(--spacing-sm);
}

.step-arrow {
  flex-shrink: 0;
  align-self: center;
  margin-top: -50px;
  color: var(--color-border);
}

.step-arrow svg {
  width: 40px;
  height: 40px;
}

.case-study-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.case-study-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.case-study-text h3 {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.case-study-text h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.testimonial-card {
  background-color: var(--color-surface);
  padding: var(--spacing-xl);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--border-radius-md);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-secondary);
}

.testimonial-card::before {
  content: "“";
  font-size: 5rem;
  color: var(--color-primary-light);
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-md);
  line-height: 1;
  z-index: 0;
  font-family: var(--font-secondary);
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  text-align: right;
}

.testimonial-author strong {
  display: block;
  color: var(--color-text-primary);
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

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

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

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: var(--spacing-lg) 0;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-primary);
  transition: color var(--transition-speed-normal);
}

.accordion-header:hover {
  color: var(--color-primary);
}

.accordion-header svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-speed-normal);
  color: var(--color-text-muted);
}

.accordion-item.active .accordion-header svg {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed-normal) ease-in-out,
    padding var(--transition-speed-normal) ease-in-out;
}

.accordion-content p {
  padding-bottom: var(--spacing-lg);
  font-size: 1rem;
  color: var(--color-text-secondary);
}

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

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

.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--spacing-sm);
}

.cta-section p {
  margin-bottom: var(--spacing-xl);
}

.registration-form-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

#quick-registration-form .form-group {
  margin-bottom: var(--spacing-lg);
  text-align: left;
}

#quick-registration-form label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
}

#quick-registration-form input[type="text"],
#quick-registration-form input[type="email"],
#quick-registration-form input[type="password"] {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-family: var(--font-primary);
  background-color: var(--color-background-alt);
  color: var(--color-text-primary);
  transition: border-color var(--transition-speed-normal),
    box-shadow var(--transition-speed-normal);
}

#quick-registration-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

#quick-registration-form .form-terms {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  font-size: 0.9rem;
}

#quick-registration-form .form-terms input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
}

#quick-registration-form .form-terms label {
  font-weight: 400;
  color: var(--color-text-muted);
}

#quick-registration-form button[type="submit"] {
  width: 100%;
  font-size: 1.1rem;
  padding: var(--spacing-md);
}

#form-thank-you {
  text-align: center;
}

#form-thank-you h3 {
  color: var(--color-success);
}

.main-footer {
  background-color: var(--color-background-alt);
  color: var(--color-text-secondary);
  padding: var(--spacing-xxl) 0;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
}

.footer-column h4 {
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

.footer-column p {
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.footer-column ul a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.footer-column ul a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-column address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-column address a {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-xl);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-bottom p {
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  padding: var(--spacing-lg);
  box-shadow: 0 -2px 10px var(--color-shadow);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
  transform: translateY(100%);
  animation: slideUp 0.5s ease-out forwards;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
}

.cookie-banner .cta-button {
  flex-shrink: 0;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}

.section-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .market-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 992px) {
  :root {
    --spacing-section: 4rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

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

  .main-nav {
    display: none;
  }

  .hero-section .subtitle {
    font-size: 1.25rem;
  }

  .case-study-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .case-study-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  .market-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-column h4 {
    margin-top: var(--spacing-lg);
  }
}

@media (max-width: 576px) {
  :root {
    --spacing-section: 3rem;
  }

  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  body {
    font-size: 15px;
  }

  .hero-section {
    padding: var(--spacing-xl) 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .large-cta {
    width: 100%;
  }

  .cookie-banner {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  #quick-registration-form button[type="submit"] {
    padding: var(--spacing-md) var(--spacing-sm);
  }
}
