/**
 * Kozubek.info - Nowoczesne strony internetowe
 * @author Lukasz Kozubek <kontakt@kozubek.info>
 * @version 3.2.0
 * @license Proprietary - All rights reserved
 * Built with Kozubek.info Framework
 */

/* ===== LOCAL FONTS ===== */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }

:root {
  --primary: #d32f2f;
  --primary-dark: #b71c1c;
  --primary-light: rgba(211, 47, 47, 0.08);
  --primary-glow: rgba(211, 47, 47, 0.15);
  --dark: #1d1c21;
  --text: #696969;
  --text-light: #767676;
  --light-bg: #fafafa;
  --white: #fff;
  --border: #e5e5e5;
  --shadow: 0 4px 28px rgba(0,0,0,0.07);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-light: 0 6px 50px rgba(0,0,0,0.05);
  --radius: 4px;
  --radius-md: 8px;
  --radius-round: 500px;
  --max-width: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; }
::selection { background: var(--primary); color: var(--white); }

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

/* ===== HEADER ===== */
.header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo { flex-shrink: 0; transition: opacity var(--transition); }
.logo:hover { opacity: 0.7; }
.logo img { height: 30px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--dark);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 28px 0;
  display: inline-block;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a .dd-arrow {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 1px;
  transition: transform var(--transition);
}
.nav-dropdown.open > a .dd-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -15px;
  min-width: 220px;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  padding: 10px 0;
  z-index: 100;
}
.nav-dropdown.open > .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block !important;
  padding: 9px 22px !important;
  font-size: 12px !important;
  color: var(--dark) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  transition: all var(--transition);
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover {
  color: var(--primary) !important;
  background: var(--primary-light);
  padding-left: 26px !important;
}

.nav-right { display: flex; align-items: center; gap: 20px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 30px;
  border-radius: var(--radius-round);
  font-size: 12px;
  font-weight: 400;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 40px;
  height: 40px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}
.btn:active::before { width: 300px; height: 300px; }

.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 3px 12px rgba(211,47,47,0.25); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(211,47,47,0.3); }

.btn-outline { background: transparent; color: var(--dark); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--dark); color: var(--white); border-color: var(--dark); transform: translateY(-1px); }

.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--light-bg); color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

.btn-lg { padding: 0 40px; line-height: 52px; height: 52px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.menu-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--dark); padding: 5px;
}

/* ===== HERO WITH ANIMATION ===== */
.hero {
  padding: 80px 0 70px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* hero - clean background */

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; max-width: 580px; }

.hero-subtitle {
  color: var(--primary);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
  padding-left: 40px;
}
.hero-subtitle::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 2px;
  background: var(--primary);
  transform: translateY(-50%);
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 25px;
  color: var(--dark);
}
.hero-content h1 strong { font-weight: 700; }

.hero-content p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.8;
  font-weight: 300;
  text-align: justify;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

/* Hero Benefits (Key Benefits checkmarks) */
.hero-benefits {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  animation: heroSlideUp 0.8s 1.1s forwards;
}
.hero-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}
.hero-benefit svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.hero-benefit strong {
  color: var(--dark);
}

/* Hero Tech Stack (Trust Signals) */
.hero-stack {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: heroSlideUp 0.8s 1.4s forwards;
}
.hero-stack-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  font-weight: 500;
}
.hero-stack-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.hero-stack-icon {
  position: relative;
  opacity: 0.45;
  transition: opacity var(--transition), transform var(--transition), color var(--transition);
  cursor: default;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-stack-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.hero-stack-icon:hover {
  opacity: 1;
  transform: scale(1.2);
}
/* JS Tooltip */
.stack-tooltip {
  position: fixed;
  background: var(--dark);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 6px;
  width: 240px;
  text-align: center;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.stack-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.stack-tooltip strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 3px;
  color: #fff;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: heroImageIn 1s 0.3s forwards;
}
.hero-image img {
  max-width: 500px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
  transition: transform 0.4s ease;
}
.hero-image:hover img { transform: translateY(-8px) scale(1.02); }

@keyframes heroBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Hero split layout */
.hero-split { min-height: 680px; position: relative; }
.hero-canvas-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; cursor: default;
}
.hero-split-inner { pointer-events: none; position: relative; z-index: 1; }
@keyframes logoCubeRot { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroImageIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--light-bg); }
.section-dark { background: var(--dark); color: var(--white); }
.section-primary {
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-primary canvas.bg-fx {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
.section-primary > .cta-section,
.section-primary > .container {
  position: relative;
  z-index: 1;
}

.section-title { text-align: center; margin-bottom: 55px; }
.section-title h2 { font-size: 30px; font-weight: 300; margin-bottom: 12px; }
.section-title h2 strong { font-weight: 700; }
.section-title p { color: var(--text); font-size: 15px; }

/* ===== PILLARS ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.pillar {
  text-align: center;
  padding: 50px 30px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.pillar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pillar:hover::after { transform: scaleX(1); }

.pillar-icon { margin-bottom: 25px; display: flex; justify-content: center; }
.pillar-icon svg { width: 40px; height: 40px; stroke: var(--primary); stroke-width: 1; fill: none; transition: transform var(--transition); }
.pillar:hover .pillar-icon svg { transform: scale(1.1); }

.pillar h2 {
  font-size: 14px; font-weight: 400; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 15px; color: var(--primary);
}
.pillar p { color: var(--text); font-size: 15px; line-height: 1.7; font-weight: 300; }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat h3 { font-size: 44px; font-weight: 300; color: var(--primary); margin-bottom: 5px; }
.stat p { font-size: 14px; font-weight: 300; color: var(--text); text-transform: uppercase; letter-spacing: 1px; }
.section-dark .stat p { color: rgba(255,255,255,0.6); }
.section-dark .stat h3 { color: var(--white); }

/* ===== CTA ===== */
.cta-section { text-align: center; padding: 80px 0; }
.cta-section h2 { font-size: 30px; font-weight: 300; margin-bottom: 15px; }
.cta-section h2 strong { font-weight: 700; }
.cta-section p { color: var(--text); margin-bottom: 30px; font-size: 15px; font-weight: 300; }
.section-primary .cta-section p { color: rgba(255,255,255,0.85); }
.cta-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* ===== CTA WITH IMAGE ===== */
.cta-image-section {
  background-image: url('../gfx/cta-background.jpeg');
  background-size: cover;
  background-position: center;
  /* background scrolls with page */
  padding: 120px 0;
  position: relative;
}
.cta-image-content { max-width: 600px; padding: 0 40px; }
.cta-image-content h2 {
  font-size: 42px; font-weight: 300; line-height: 1.25; margin-bottom: 25px; color: var(--dark);
}
.cta-image-content p {
  color: var(--text); font-size: 15px; font-weight: 300; line-height: 1.8; margin-bottom: 40px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 35px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--primary);
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}
.service-card:hover::before { height: 100%; }

.service-card .icon { font-size: 2rem; color: var(--primary); margin-bottom: 20px; transition: transform var(--transition); }
.service-card:hover .icon { transform: scale(1.15); }
.service-card h3 { font-size: 18px; font-weight: 400; margin-bottom: 15px; }
.service-card p { color: var(--text); font-size: 15px; line-height: 1.7; font-weight: 300; }

/* Badge for new services */
.service-badge {
  position: absolute;
  top: 15px; right: 15px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius-round);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211,47,47,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(211,47,47,0); }
}

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pricing-card-header { background: var(--primary); color: var(--white); padding: 30px 25px; text-align: center; }
.pricing-card-header h3 { font-size: 18px; font-weight: 400; margin-bottom: 5px; }
.pricing-card-header .price { font-size: 14px; opacity: 0.85; font-weight: 300; }
.pricing-card-body { padding: 30px 25px; }
.pricing-card-body ul { margin-bottom: 25px; }
.pricing-card-body li {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text); font-weight: 300;
  display: flex; align-items: center; gap: 10px;
}
.pricing-card-body li::before { content: "\2713"; color: var(--primary); font-weight: 700; }
.pricing-card-body .btn { width: 100%; justify-content: center; }
.pricing-info {
  text-align: center; max-width: 700px; margin: 40px auto 0;
  font-size: 15px; color: var(--text); line-height: 1.8; font-weight: 300;
}

/* ===== PORTFOLIO ===== */
.portfolio-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 0 25px; line-height: 38px; height: 38px;
  border: 1px solid var(--border); background: var(--white);
  border-radius: var(--radius-round); font-size: 12px;
  font-family: 'Roboto', sans-serif; cursor: pointer;
  transition: all var(--transition); color: var(--dark);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary); color: var(--white); border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(211,47,47,0.25);
}

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.portfolio-item {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.portfolio-item-img {
  height: 200px; background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 14px; overflow: hidden;
}
.portfolio-item-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item:hover .portfolio-item-img img { transform: scale(1.08); }

.portfolio-item-info { padding: 20px; }
.portfolio-item-info h3 { font-size: 15px; font-weight: 400; margin-bottom: 5px; }
.portfolio-item-info span { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== ABOUT ===== */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 30px; font-weight: 300; margin-bottom: 25px; }
.about-text h2 strong { font-weight: 700; }
.about-text p { color: var(--text); margin-bottom: 15px; line-height: 1.8; font-weight: 300; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.about-images .img-placeholder {
  height: 180px; background: var(--light-bg); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 13px; overflow: hidden;
}
.about-images .img-placeholder img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md);
  transition: transform 0.6s ease;
}
.about-images .img-placeholder:hover img { transform: scale(1.05); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { font-size: 22px; font-weight: 300; margin-bottom: 25px; }
.contact-info .info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 22px; }
.contact-info .info-item .icon { color: var(--primary); font-size: 1.2rem; margin-top: 3px; }
.contact-info .info-item p { color: var(--text); font-size: 15px; line-height: 1.6; font-weight: 300; }
.contact-info .info-item strong { color: var(--dark); font-weight: 400; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 400; margin-bottom: 8px; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0 15px; height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 300;
  transition: all var(--transition); background: var(--white); color: var(--dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { min-height: 130px; resize: vertical; padding: 12px 15px; height: auto; }

/* ===== MAP ===== */
.map-container { width: 100%; height: 400px; border-radius: var(--radius-md); overflow: hidden; background: var(--light-bg); margin-top: 50px; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ===== WHY US ===== */
.why-us-list li {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  color: var(--text); font-size: 15px; font-weight: 300;
  display: flex; align-items: center; gap: 12px;
  transition: padding-left var(--transition);
}
.why-us-list li:hover { padding-left: 8px; }
.why-us-list li::before { content: "\2713"; color: var(--primary); font-weight: 700; font-size: 14px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 70px 0 25px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--white); font-size: 15px; margin-bottom: 20px; font-weight: 400; }
.footer-col a {
  display: block; color: rgba(255,255,255,0.5); font-size: 14px; font-weight: 300;
  padding: 5px 0; transition: all var(--transition);
}
.footer-col a:hover { color: var(--white); padding-left: 5px; }
.footer-col p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); font-weight: 300; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 25px;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.35); font-weight: 300;
}

.social-links { display: flex; gap: 10px; margin-top: 15px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: rgba(255,255,255,0.08);
  border-radius: 50%; color: rgba(255,255,255,0.6); padding: 0;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.social-links a svg { width: 18px; height: 18px; fill: currentColor; }

/* ===== PAGE HEADER ===== */
.page-header { background: var(--light-bg); padding: 65px 0; text-align: center; position: relative; overflow: hidden; }
.page-header > .container { position: relative; z-index: 1; }
.page-header canvas.circuit-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page-header h1 { font-size: 30px; font-weight: 300; margin-bottom: 10px; }
.page-header h1 strong { font-weight: 700; }
.page-header p { color: var(--text); font-size: 15px; font-weight: 300; }

.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ===== SCROLL ANIMATIONS ===== */
.anim-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.anim-fade.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ACCESSIBILITY PANEL ===== */
.acc-toggle {
  position: fixed;
  top: 50%; right: 0;
  transform: translateY(-50%);
  z-index: 9998;
  width: 52px; height: 52px;
  border-radius: 50% 0 0 50%;
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: -3px 0 15px rgba(37,99,235,0.3);
  transition: all 0.3s;
}
.acc-toggle:hover { background: #1d4ed8; transform: translateY(-50%) scale(1.1); }

.acc-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0; visibility: hidden;
  transition: all 0.35s;
}
.acc-overlay.acc-overlay-show { opacity: 1; visibility: visible; }

.acc-panel {
  position: fixed;
  top: 50%; right: -440px;
  transform: translateY(-50%);
  width: 420px; max-width: 92vw;
  max-height: 75vh;
  background: #1a1a2e;
  color: #e0e0e0;
  z-index: 10000;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.acc-panel.acc-open { right: 0; }

.acc-panel::-webkit-scrollbar { width: 6px; }
.acc-panel::-webkit-scrollbar-track { background: transparent; }
.acc-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.acc-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px 20px;
}
.acc-header h3 { font-size: 22px; font-weight: 400; color: #fff; }
.acc-header-actions { display: flex; gap: 10px; align-items: center; }
.acc-header-actions button {
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; padding: 6px; transition: all 0.2s;
}
.acc-header-actions button:hover { color: #fff; }

.acc-close-btn {
  background: #2563eb !important;
  border-radius: 50% !important;
  width: 38px !important; height: 38px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: #fff !important;
  transition: all 0.2s !important;
}
.acc-close-btn:hover { background: #3b82f6 !important; transform: scale(1.05); }

.acc-body { padding: 0 28px 28px; }

.acc-toggles {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 20px;
}

.acc-opt {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: #e0e0e0;
  padding: 18px 16px;
  font-size: 13px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  transition: all 0.25s;
  text-align: left;
}
.acc-opt:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }
.acc-opt.acc-active {
  background: rgba(37,99,235,0.2);
  border-color: #2563eb;
  color: #fff;
}
.acc-opt-icon { flex-shrink: 0; display: flex; width: 24px; height: 24px; }

.acc-sliders { display: flex; flex-direction: column; gap: 8px; }

.acc-slider {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px 20px;
}
.acc-slider-label {
  display: block; font-size: 14px; font-weight: 300;
  margin-bottom: 10px; color: rgba(255,255,255,0.8);
}
.acc-slider-row { display: flex; align-items: center; gap: 10px; }

.acc-range {
  flex: 1; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(90deg, #2563eb 50%, rgba(255,255,255,0.1) 50%);
  border-radius: 4px; outline: none;
}
.acc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; cursor: pointer;
  border: 3px solid #2563eb;
  box-shadow: 0 0 6px rgba(37,99,235,0.4);
}

.acc-slider-val { font-size: 13px; min-width: 44px; text-align: right; color: rgba(255,255,255,0.6); font-weight: 300; }

.acc-step-btn {
  background: none; border: 1px solid rgba(255,255,255,0.15);
  color: #fff; width: 30px; height: 30px; border-radius: 8px;
  cursor: pointer; font-size: 18px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Roboto', sans-serif;
  transition: all 0.2s;
}
.acc-step-btn:hover { background: rgba(255,255,255,0.1); }

/* Accessibility CSS classes */
html.acc-underline-links a { text-decoration: underline !important; }

html.acc-highlight-headings h1,
html.acc-highlight-headings h2,
html.acc-highlight-headings h3,
html.acc-highlight-headings h4 {
  outline: 2px solid #2563eb !important;
  outline-offset: 4px;
  border-radius: 2px;
}

html.acc-reading-mode body {
  max-width: 720px !important;
  margin: 0 auto !important;
  font-size: 18px !important;
  line-height: 2 !important;
}

html.acc-screen-reader *:focus {
  outline: 3px solid #2563eb !important;
  outline-offset: 2px;
}

html.acc-font-scaled body {
  font-size: calc(15px * var(--acc-font-scale, 1)) !important;
}
html.acc-font-scaled h1 { font-size: calc(30px * var(--acc-font-scale, 1)) !important; }
html.acc-font-scaled h2 { font-size: calc(24px * var(--acc-font-scale, 1)) !important; }
html.acc-font-scaled h3 { font-size: calc(18px * var(--acc-font-scale, 1)) !important; }
html.acc-font-scaled p,
html.acc-font-scaled li,
html.acc-font-scaled span,
html.acc-font-scaled a { font-size: calc(15px * var(--acc-font-scale, 1)) !important; }

html.acc-line-scaled body { line-height: calc(1.7 * var(--acc-line-scale, 1)) !important; }
html.acc-line-scaled p,
html.acc-line-scaled li,
html.acc-line-scaled span { line-height: calc(1.7 * var(--acc-line-scale, 1)) !important; }

html.acc-spacing-scaled body { letter-spacing: var(--acc-letter-spacing, 0) !important; }
html.acc-spacing-scaled p,
html.acc-spacing-scaled li,
html.acc-spacing-scaled span,
html.acc-spacing-scaled a { letter-spacing: var(--acc-letter-spacing, 0) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-content p { text-align: center; }
  .hero-subtitle { padding-left: 0; }
  .hero-subtitle::before { display: none; }
  .hero-buttons { justify-content: center; }
  .hero-image { order: -1; }

  /* Hero split - text first, canvas below on mobile */
  .hero-split {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .hero-canvas-bg {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 500px !important;
    order: 2 !important;
    cursor: default !important;
    background: var(--light-bg) !important;
  }
  .hero-split-inner {
    position: relative !important;
    z-index: 1;
    padding: 40px 20px 20px !important;
    order: 1 !important;
    pointer-events: auto !important;
  }
  .hero-benefits { margin-top: 24px; gap: 10px; }
  .hero-benefit { font-size: 0.85rem; }
  .hero-stack { margin-top: 20px; padding-top: 16px; }
  .hero-stack-icons { gap: 14px; flex-wrap: wrap; }
  .pillars { grid-template-columns: 1fr; max-width: 450px; }
  .stats { grid-template-columns: 1fr; gap: 25px; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .cta-image-section { padding: 60px 0; }
  .cta-image-content h2 { font-size: 28px; }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 15px;
    min-width: auto;
    border-radius: 0;
  }
  .nav-dropdown.open > .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 8px 0 !important; border-bottom: none !important; }
  .nav-dropdown-menu a:hover { padding-left: 8px !important; background: transparent; }

  body.menu-open { overflow: hidden !important; position: fixed; width: 100%; }
  .nav-links {
    display: none; flex-direction: column; align-items: center; justify-content: flex-start;
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    background: var(--white); padding: 80px 30px 30px;
    z-index: 9998; gap: 0; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links > li { width: 100%; max-width: 340px; text-align: center; list-style: none; }
  /* Uslugi - biggest, most important */
  .nav-links > li.nav-dropdown > a { padding: 12px 0; font-size: 22px; font-weight: 500; border-bottom: 1px solid var(--border); }
  /* Regular menu items - smaller */
  .nav-links > li:not(.nav-dropdown):not(.nav-mobile-cta-wrap) > a {
    padding: 10px 0; font-size: 16px; font-weight: 400; color: var(--text);
    border-bottom: 1px solid rgba(0,0,0,0.06); letter-spacing: 0.5px;
  }
  .nav-links a::after { display: none; }
  .nav-links.active { display: flex; }
  /* Auto-expand services dropdown on mobile */
  .nav-links.active .nav-dropdown .nav-dropdown-menu {
    display: block !important; position: static; box-shadow: none;
    background: transparent; padding: 5px 0 8px;
  }
  .nav-links.active .nav-dropdown .nav-dropdown-menu a {
    font-size: 16px !important; color: var(--primary) !important; font-weight: 500 !important;
    padding: 9px 0 !important; border-bottom: 1px solid rgba(211,47,47,0.08) !important;
  }
  .nav-links.active .nav-dropdown > a .dd-arrow { transform: rotate(180deg); }
  /* Mobile menu CTA */
  .nav-mobile-cta {
    display: block !important; width: 100%; max-width: 280px;
    margin: 16px auto 0 !important; padding: 15px 0 !important; text-align: center;
    background: var(--primary) !important; color: #fff !important; border-radius: var(--radius-round) !important;
    font-size: 16px !important; font-weight: 500 !important; text-decoration: none !important;
    border-bottom: none !important;
  }
  .nav-mobile-cta-wrap { display: block !important; width: 100%; text-align: center; list-style: none; }
  .nav-home-link { display: block !important; list-style: none; }
  .menu-toggle { display: block; z-index: 9999; }
  .nav-right { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .btn-lg { max-width: 100%; white-space: normal; font-size: 14px; padding: 14px 20px; }
  .hero-content h1 { font-size: 26px; }
  .hero { padding: 50px 0 40px; }
  .section { padding: 55px 0; }
  .section-title h2, .cta-section h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col { text-align: center; }
  .footer-col a { display: block; }
  .footer-col a:hover { padding-left: 0; }
  .social-links { justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .acc-panel { width: 100%; max-width: 100vw; border-radius: 0; }
}
