/* Turbopolisa – stylistyka zgodna z logo: ciemne tło, gradient niebieski–zielony, biały tekst */

:root {
  --bg-dark: #1e2124;
  --bg-card: #2C2F33;
  --text-white: #ffffff;
  --text-muted: #b0b4b8;
  --accent-teal: #00BCD4;
  --accent-green: #4CAF50;
  --gradient: linear-gradient(90deg, #00BCD4 0%, #4CAF50 100%);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 12px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-white);
  text-decoration: none;
}

a:hover {
  color: var(--accent-teal);
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 33, 36, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 84px;
  width: auto;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-toggle span {
    transition: transform 0.2s, opacity 0.2s;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.35);
}

.btn-cta {
  background: var(--gradient);
  color: var(--text-white);
}

.btn-cta:hover {
  color: var(--text-white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

.hero-subtitle {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Section common */
.section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
}

/* Trust */
.trust {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.trust-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
  filter: grayscale(0);
}

.trust-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-white);
}

.trust-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.trust-card-highlight {
  border-color: rgba(76, 175, 80, 0.35);
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.08) 0%, var(--bg-card) 100%);
}

/* CTA blocks */
.cta-block {
  text-align: center;
  padding: 3rem 1.5rem;
}

.cta-text {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Embed section */
.embed-section {
  padding: 3rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.embed-lead {
  text-align: center;
  margin: -0.5rem auto 1.5rem;
  max-width: 520px;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.embed-container {
  min-height: 700px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.embed-container iframe {
  width: 100%;
  height: 100%;
  min-height: 650px;
  border: none;
  border-radius: var(--radius);
}

.embed-placeholder {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
}

/* Reminder section (form above agent) */
.reminder-section {
  padding: 4rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.reminder-lead {
  margin: 0 auto 1.75rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.reminder-lead--justify {
  text-align: justify;
}

.reminder-form {
  text-align: left;
}

/* Agent */
.agent {
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  text-align: center;
}

.agent-lead {
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.agent-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.agent-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, border-color 0.2s;
}

.agent-link:hover {
  background: rgba(0, 188, 212, 0.15);
  border-color: var(--accent-teal);
  color: var(--text-white);
}

.agent-link-icon {
  font-size: 1.25rem;
}

.agent-subsections {
  max-width: 640px;
  margin: 3rem auto 0;
  text-align: left;
}

.agent-subsection {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-subsection:first-of-type {
  border-top: none;
  padding-top: 0;
}

.agent-subsection-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-white);
}

.agent-subsection-text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.agent-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.agent-form .form-row--single {
  grid-template-columns: 1fr;
}

.agent-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.agent-form .required {
  color: var(--accent-teal);
}

.agent-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-white);
}

.agent-form input {
  width: 100%;
  padding: 0.65rem 0.875rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-white);
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.agent-form input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.agent-form input:focus {
  outline: none;
  border-color: var(--accent-teal);
}

.agent-form input:invalid:not(:placeholder-shown) {
  border-color: rgba(244, 67, 54, 0.6);
}

.form-hint {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.agent-form .btn {
  margin-bottom: 0.5rem;
}

.form-message {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
}

.form-message-success {
  color: var(--accent-green);
}

.form-message-error {
  color: #f44336;
}

@media (max-width: 520px) {
  .agent-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 160px;
  width: auto;
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--accent-teal);
}

.footer-rodo {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.8;
}
