:root {
    --bg-dark: #0b0f19;      /* Bardzo ciemny granat/czerń */
    --bg-card: #151a25;      /* Tło kart */
    
    --primary: #6366f1;      /* Indigo */
    --accent: #06b6d4;       /* Cyan/Turkus */
    --glow: rgba(6, 182, 212, 0.4);
    
    --text-main: #f1f5f9;    /* Złamana biel */
    --text-muted: #94a3b8;   /* Szary */
    
    --nav-glass: rgba(11, 15, 25, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 25%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    padding: 0 20px;
    margin-bottom: 20px;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 0 15px;
    margin-bottom: 60px;
}

.navbar {
    background: var(--nav-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center; 
    
    margin: 0;
    padding: 0; 
}

.nav-links li {
    margin-bottom: 0;
    
    display: flex; 
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.nav-links a.active {
    color: white;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.hamburger {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

main {
    flex: 1;
    padding-bottom: 0;
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

article {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 20px 40px -10px rgba(0,0,0,0.4);
}

article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

strong, em {
    color: var(--accent);
    font-style: normal;
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 70ch; 
}

ul, ol {
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

li {
    margin-bottom: 0.8rem;
}

li::marker {
    color: var(--accent);
}

figure {
    margin: 3rem 0;
    text-align: center;
}

img {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
    transition: transform 0.4s ease;
    max-width: 100%;
    height: auto;
}

img:hover {
    transform: scale(1.01);
}

figcaption {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.7;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    background: rgba(255,255,255,0.02);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin: 3rem auto;
}

label {
    display: block;
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

input, textarea, select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
}

.form-group {
	margin-bottom: 10px;
}

select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300d2ff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65em auto;
    padding-right: 2.5rem;
    cursor: pointer;
}

select option {
    background-color: var(--bg-dark);
    color: white;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--glow);
    background-color: rgba(6, 182, 212, 0.05);
}

button[type="submit"] {
    width: 100%;
    background: var(--text-main);
    color: var(--bg-dark);
    font-weight: 800;
    padding: 16px;
    border-radius: 12px;
    border: none;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

button[type="submit"]:hover {
    background: var(--accent);
    box-shadow: 0 0 25px var(--glow);
    transform: translateY(-2px);
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background-color: #080b12;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 100%;
    margin-bottom: 0.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    header { top: 0; margin-bottom: 20px; padding: 0; }
    
    .navbar {
        border-radius: 0; border: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px 20px;
    }

    h1 { font-size: 2.2rem; }
    article { padding: 1.5rem; }

    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        top: 65px; left: 0; width: 100%;
        flex-direction: column;
        background: var(--bg-dark);
        padding: 20px; gap: 10px;
        height: 0; overflow: hidden;
        opacity: 0; transition: all 0.3s ease;
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active { height: auto; opacity: 1; }
    
    .nav-links a {
        width: 100%; display: block;
        text-align: center;
        background: rgba(255,255,255,0.03);
    }
    
    .contact-form { padding: 1.5rem; }
}

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

/* --- Language switcher (header) --- */
.nav-right{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:12px;
}

.lang-label{
  margin-bottom: 0;
  color: var(--text-muted);
  font-weight:700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lang-select{
  width: auto;
  min-width: 80px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
}

@media (max-width: 768px){
  .nav-right{ gap:10px; }
  .lang-label{ display:none; }
  .lang-select{ min-width: 72px; padding: 10px 12px; }
}

/* === Language dropdown === */

.lang-dropdown {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-main);
  padding-right: 20px;
}

.lang-current img {
  width: 24px;
  height: 24px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 6px;
  min-width: 160px;
  display: none;
  z-index: 1000;
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.lang-menu li img {
  width: 24px;
  height: 24px;
}

.lang-menu li:hover {
  background: rgba(255,255,255,0.06);
}

.lang-dropdown.open .lang-menu {
  display: block;
}

@media (max-width: 768px) {
  .lang-label {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.gaze-panel{
  display:flex;
  align-items:center;
  gap:12px;
  margin: 18px 0 10px;
  flex-wrap: wrap;
}

.gaze-panel button{
  width: auto;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  cursor: pointer;
  font-weight: 700;
}

.gaze-panel button:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.gaze-status{
  color: var(--text-muted);
  font-weight: 600;
}

.gaze-note{
  font-size: 0.95rem;
}

.gaze-dot{
  position: fixed;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0; /* pokażemy dopiero po starcie */
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px var(--glow);
}

/* Hide UI during GazeCloud calibration / tracking */
body.gaze-mode header {
  display: none;
}


@media (min-width: 769px) and (max-width: 1024px) {

  /* container NIE może się kurczyć */
  .container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar {
    padding: 12px 18px;
    gap: 8px;
  }


  .nav-links a {
    padding-inline: clamp(
      2px,
      calc(
        2px + (13 - 1) * ((100vw - 769px) / 254)
      ),
      13px
    );
  }

  .logo{
    font-size: clamp(0.7rem, calc(-1.4193rem + 4.40945vw), 1.4rem);
  }


  .nav-links {
    gap: 2px;
  }

  .nav-right {
    gap: 8px;
    margin-left: 8px;
  }

  .lang-current {
    padding: 6px 10px;
    gap: 6px;
    font-size: 0.8rem;
  }

  .lang-current img {
    width: 20px;
    height: 20px;
  }

  .lang-menu {
    min-width: 140px;
  }

  .lang-menu li {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
}
.video-panel {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.video-panel button {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.video-panel button:hover {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 0 20px var(--glow);
  transform: translateY(-1px);
}
