/* --- MODERN TECH AESTHETIC STYLESHEET (REDESIGN) --- */

:root {
  --bg-base: #030712;
  --bg-gradient: radial-gradient(circle at 50% 0%, #111827 0%, #030712 60%, #000000 100%);
  --bg-card: rgba(17, 24, 39, 0.45);
  --bg-card-hover: rgba(31, 41, 55, 0.65);
  --panel: rgba(15, 23, 42, 0.5);
  
  --accent: #facc15; /* Neon Amber */
  --accent-rgb: 250, 204, 21;
  --accent-soft: rgba(var(--accent-rgb), 0.08);
  --accent-glow: rgba(var(--accent-rgb), 0.25);
  
  --text: #f9fafb;
  --muted: #9ca3af;
  --muted-dark: #6b7280;
  
  --border: rgba(75, 85, 99, 0.2);
  --border-hover: rgba(250, 204, 21, 0.35);
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  
  --shadow-soft: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(250, 204, 21, 0.15);
  
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* --- RESET & BASIC SETUP --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  background-image: var(--bg-gradient);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.page main {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Skip layout/paint for below-the-fold sections until they scroll into view.
   contain-intrinsic-size approximates each section's mobile rendered height
   so content-visibility doesn't cause a scroll/size jump when it kicks in. */
#services { content-visibility: auto; contain-intrinsic-size: auto 1600px; }
#why-devmag { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
#technologies { content-visibility: auto; contain-intrinsic-size: auto 2050px; }
#how-it-works { content-visibility: auto; contain-intrinsic-size: auto 480px; }
#cooperation { content-visibility: auto; contain-intrinsic-size: auto 1450px; }
#faq { content-visibility: auto; contain-intrinsic-size: auto 550px; }
#contact { content-visibility: auto; contain-intrinsic-size: auto 1500px; }

/* Decorative background glowing spots */
.glow-spot-1 {
  position: absolute;
  top: -100px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.05) 0%, rgba(250, 204, 21, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.glow-spot-2 {
  position: absolute;
  top: 800px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.03) 0%, rgba(250, 204, 21, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- HEADER & NAVIGATION --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent);
}

.brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .25em;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.4);
}

.nav-sub {
  font-size: 11px;
  color: var(--muted-dark);
  font-weight: 400;
  margin-top: 2px;
}

/* --- HERO SECTION --- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 5;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  width: fit-content;
  margin-bottom: 24px;
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  position: relative;
}

.hero-tag-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-soft);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0; }
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(17, 24, 39, 0.4);
  transition: var(--transition-fast);
}

.badge:hover {
  background: var(--accent-soft);
  border-color: var(--border-hover);
  color: var(--accent);
  transform: translateY(-1px);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #030712;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.4), 0 0 12px rgba(250, 204, 21, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.08);
  transform: translateY(-2px);
}

.btn-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.hero-hint {
  font-size: 12px;
  color: var(--muted-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- TECH STATUS WIDGET --- */
.status-widget {
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.status-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.status-widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot-active {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.status-text-active {
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
}

.status-terminal {
  background: rgba(3, 7, 18, 0.8);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11.5px;
  color: #a7f3d0;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.03);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-line {
  margin-bottom: 4px;
  opacity: 0.85;
}

.terminal-accent {
  color: var(--accent);
}

.terminal-muted {
  color: var(--muted-dark);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.status-card {
  background: rgba(3, 7, 18, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition-fast);
}

.status-card:hover {
  border-color: var(--border-hover);
  background: rgba(3, 7, 18, 0.6);
  transform: translateY(-2px);
}

.status-card-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
}

.status-card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* --- SECTION CONTAINER HEADER --- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 300;
}

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.service-icon-wrapper {
  color: var(--accent);
  background: var(--accent-soft);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 204, 21, 0.15);
}

.service-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.service-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.service-description {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.service-item {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-item-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- WHY DEVMAG SECTION --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: rgba(17, 24, 39, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-fast);
}

.why-card:hover {
  background: rgba(17, 24, 39, 0.45);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.why-icon {
  color: var(--accent);
  width: 24px;
  height: 24px;
}

.why-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.why-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- HOW IT WORKS SECTION --- */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-timeline::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--border) 0%, var(--accent-glow) 50%, var(--border) 100%);
  z-index: 1;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  gap: 16px;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #030712;
  border: 2px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  transition: var(--transition-fast);
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.step-item:hover .step-number {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.step-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.step-desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 250px;
  line-height: 1.5;
}

/* --- CONTACT SECTION (INLINE SPLIT) --- */
.contact-section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 48px;
  box-shadow: var(--shadow-soft);
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 28px;
}

.contact-info-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

.contact-method-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.contact-method-icon-wrapper {
  color: var(--accent);
  background: var(--accent-soft);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-method-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.contact-method-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-method-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.contact-method-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
}

.contact-inline-form-wrapper {
  background: rgba(3, 7, 18, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

/* --- FOOTER --- */
.footer {
  text-align: center;
  padding: 32px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--muted-dark);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer strong {
  color: var(--muted);
  font-weight: 600;
}

/* --- FORM STYLING --- */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.modal-form-field {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(3, 7, 18, 0.6);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}

.modal-form-field::placeholder {
  color: var(--muted-dark);
}

.modal-form-field:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(3, 7, 18, 0.9);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.15);
}

.modal-textarea {
  height: 110px;
  resize: vertical;
  min-height: 80px;
}

.modal-form-field:user-invalid {
  border-color: #ef4444;
}

.modal-submit {
  margin-top: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #030712;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.15);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-submit:hover:not(:disabled) {
  box-shadow: 0 12px 28px rgba(250, 204, 21, 0.3);
  transform: translateY(-1px);
}

.modal-submit:disabled {
  background: var(--muted-dark);
  color: var(--bg-base);
  cursor: not-allowed;
  box-shadow: none;
}

.modal-hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-dark);
  text-align: center;
}

.modal-hint a {
  color: var(--muted);
}

/* --- ABOUT --- */
.about-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-glow);
}

.about-name {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  margin-bottom: 12px;
}

.about-text p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.about-facts {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.about-facts strong {
  color: var(--text);
}

.about-certs-title {
  margin-top: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  text-align: left;
}

.about-certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 10px;
  text-align: left;
}

.about-cert {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(3, 7, 18, 0.4);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  transition: var(--transition-fast);
}

.about-cert:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.about-cert img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-cert strong {
  color: var(--text);
}

@media (max-width: 768px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 20px;
  }

  .about-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
}

/* --- LANDING HERO (pogotowie-it, fortivo) --- */
.landing-hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 5;
}

.landing-hero .hero-tag {
  margin: 0 auto 24px;
}

.landing-hero .hero-lead {
  margin: 0 auto 32px;
  max-width: 560px;
  font-size: 17px;
}

.landing-hero .hero-badges {
  justify-content: center;
  margin-bottom: 28px;
}

.landing-hero .hero-cta-row {
  justify-content: center;
  margin-bottom: 40px;
}

/* --- FORTIVO --- */
.fortivo-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.fortivo-columns .service-list {
  border-top: none;
  padding-top: 0;
  margin-top: 4px;
  gap: 14px;
}

.fortivo-columns .service-item {
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
}

.fortivo-columns .service-item strong {
  color: var(--text);
}

.fortivo-columns .service-item-bullet {
  margin-top: 8px;
  flex-shrink: 0;
}

.fortivo-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-dark);
}

.fortivo-notes {
  grid-template-columns: repeat(2, 1fr);
}

.fortivo-notes .why-desc strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .fortivo-columns,
  .fortivo-notes {
    grid-template-columns: 1fr;
  }
}

/* --- FORTIVO: ZAJAWKA NA STRONIE GŁÓWNEJ --- */
.fortivo-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.consent-row input {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.consent-row a {
  color: var(--muted);
}

@media (max-width: 768px) {
  .fortivo-card {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
}

/* --- LEGAL PAGE (polityka prywatności) --- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  color: var(--text);
  margin: 32px 0 8px;
}

.legal ul {
  padding-left: 20px;
  margin: 8px 0;
}

.legal a {
  color: var(--accent);
}

/* --- SUCCESS SCREEN --- */
.form-success-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 0;
  animation: fade-in 0.3s ease forwards;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon-wrapper {
  color: #10b981;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  animation: scale-up 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scale-up {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.success-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-text {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.6;
}

/* --- TOAST NOTIFICATION --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(40px);
  min-width: 280px;
  max-width: 90%;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  z-index: 9999;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 15px rgba(16, 185, 129, 0.15);
}

.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 15px rgba(239, 68, 68, 0.15);
}

.toast-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* Spinner helper for loading state */
.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(3, 7, 18, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .status-widget {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .glow-spot-1, .glow-spot-2 {
    display: none;
  }

  .page {
    gap: 60px;
    padding: 24px 16px 60px;
  }

  .page main {
    gap: 60px;
  }

  .nav {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding-bottom: 24px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps-timeline::after {
    display: none;
  }

  .step-item {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }

  .step-number {
    flex-shrink: 0;
  }

  .contact-section-split {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 36px;
  }
}

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

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

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .hero-hint {
    justify-content: center;
  }

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

/* --- COOPERATION & CALCULATOR SECTION --- */
#cooperation {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.cooperation-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.cooperation-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cooperation-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 16px;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--accent);
  border-color: rgba(250, 204, 21, 0.2);
  background: rgba(250, 204, 21, 0.05);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.05);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.slider-value {
  color: var(--accent);
  font-weight: bold;
  font-size: 16px;
  background: rgba(250, 204, 21, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(250, 204, 21, 0.15);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  transition: background 0.3s;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid #030712;
  box-shadow: 0 0 10px var(--accent);
  transition: transform 0.1s, background-color 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid #030712;
  box-shadow: 0 0 10px var(--accent);
  transition: transform 0.1s;
}

.range-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.calc-select {
  width: 100%;
  background: rgba(3, 7, 18, 0.5);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s;
}

.calc-select:focus {
  border-color: var(--accent);
}

/* The open list is native and inherits the translucent background (looks grey): make it solid and dark */
.calc-select {
  color-scheme: dark;
}

.calc-select option {
  background: #0b1220;
  color: var(--text);
}

.calc-select option:checked {
  background: var(--accent);
  color: #030712;
}

.calc-summary-card {
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.calc-summary-title {
  font-family: 'Outfit', sans-serif;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.calc-price-wrapper {
  margin: 16px 0;
}

.calc-price {
  font-family: 'Outfit', sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
}

.calc-price-period {
  font-size: 14px;
  color: var(--muted);
  font-weight: normal;
}

.calc-features-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.calc-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-features-list svg {
  color: var(--accent);
  flex-shrink: 0;
}

.calc-cta-btn {
  width: 100%;
  margin-top: auto;
}

.partner-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.partner-info-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.partner-info-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.partner-perks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.partner-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.partner-perk-icon {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.partner-perk-text strong {
  color: var(--text);
}

.partner-perk-text p {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0 0;
}

.coop-inline-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.coop-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Responsiveness for Cooperation Section */
@media (max-width: 900px) {
  .calculator-grid, .partner-form-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .cooperation-box {
    padding: 24px;
  }
}

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

/* --- TECHNOLOGIES SECTION --- */
#technologies {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(250, 204, 21, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: rgba(250, 204, 21, 0.25);
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.08);
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-icon-container {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
  transition: all 0.3s ease;
  z-index: 1;
}

.tech-card:hover .tech-icon-container {
  background: rgba(250, 204, 21, 0.1);
  border-color: rgba(250, 204, 21, 0.2);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.15);
}

.tech-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  z-index: 1;
}

.tech-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  z-index: 1;
}

/* --- FAQ SECTION --- */
#faq {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.active {
  border-color: rgba(250, 204, 21, 0.15);
}

.faq-header {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  outline: none;
}

.faq-arrow {
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-content-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- SERVICE AREA CARD (CONTACT) --- */
.service-area-box {
  background: rgba(250, 204, 21, 0.03);
  border: 1px dashed rgba(250, 204, 21, 0.15);
  border-radius: 10px;
  padding: 20px;
  margin-top: 24px;
}

.service-area-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-area-badge {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text);
  font-weight: 500;
}

/* --- RESPONSIVENESS ADDITIONS --- */
@media (max-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-header {
    padding: 16px;
    font-size: 15px;
  }
  
  .faq-content {
    padding: 0 16px 16px;
  }
}

/* --- INTERACTIVE SCHEMATIC MAP --- */
.interactive-map-container {
  width: 100%;
  background: rgba(3, 7, 18, 0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

.schematic-map {
  width: 100%;
  height: auto;
  display: block;
}

.map-node {
  cursor: pointer;
}

.map-node text,
.map-node .node-pulse {
  pointer-events: none;
}

.node-circle {
  transition: fill 0.3s, stroke-width 0.3s, r 0.3s;
}

.map-node:hover .node-circle {
  fill: var(--accent);
  stroke-width: 3px;
  r: 10px;
  filter: drop-shadow(0 0 8px var(--accent));
}

.map-node[data-location="Warszawa"]:hover .node-circle {
  r: 16px;
}

.node-pulse {
  animation: pulse 2s infinite;
  transform-origin: 150px 130px;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.map-link {
  transition: stroke 0.3s, stroke-width 0.3s;
}

.map-node:hover ~ .map-link, 
.map-node:hover + .map-link {
  stroke: var(--accent);
  stroke-width: 2.5px;
}
