/* ========== css/index.css (pasuje do HTML z lp-*) ========== */
:root{
  --bg:#0b0d10;
  --panel:#12151b;
  --muted:#0e1116;
  --text:#e7e9ee;
  --sub:#a8b0bd;
  --accent:#e10600;
  --accent-2:#2b62ff;
  --br:#1e2430;
  --ok:#19c37d;
  --radius:14px;
  --radius-sm:10px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --gap:16px;
  --gap-lg:22px;

  --err-bg-1:#b10026;      /* górny gradient */
  --err-bg-2:#8f001d;      /* dolny gradient */
  --err-text:#ffecf0;      /* tekst */
  --err-sub:#ffd8de;       /* tekst drugorzędny */
  --err-glow:rgba(255,0,60,.25);
  --err-brd:rgba(255,255,255,.08);
  --err-bar:#ffd6dd;       /* pasek postępu (dekor) */
}

.achievementsBar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.achievementsTitle{font-weight:600}
.results-link{color:var(--accent);font-size:18px;display:inline-flex;align-items:center}
.results-link:hover{color:#fff}

.brightness50Proc{ filter:brightness(50%); }
.achievements-list{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.achiv-row{display:flex;align-items:center;gap:8px}
.achiv-icon{font-size:18px;color:var(--accent)}
.achiv-name{font-weight:600}
.achiv-flags{display:flex;flex-wrap:wrap;gap:8px 8px;margin:4px 0 10px}
.flag-chip img{width:24px;height:24px;border-radius:50%;display:block;box-shadow:0 2px 6px rgba(0,0,0,.4)}

.results-link{
  color: var(--accent);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  z-index: 1;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:linear-gradient(180deg,#0a0c10 0%, #0b0d11 100%);
  color:var(--text);
  font:400 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

/* -------- Header + Tabs -------- */
.lp-header{
  position:sticky; top:0; z-index:50;
  background:#0a0c10;
  border-bottom:2px solid var(--accent);
  padding:14px 18px;
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
}
.lp-logo{display:flex; align-items:center; gap:12px; min-width:180px}
.lp-logo-svg{width:36px; height:auto; fill:var(--accent)}
.lp-logo-title{
  font-family: 'Orbitron', system-ui, sans-serif;
  letter-spacing:2px; font-weight:800; color:var(--text)
}
.lp-tabs{display:flex; gap:10px; margin-left:auto}
.tab-btn{
  background:#0e1116; border:1px solid var(--br); color:var(--text);
  padding:8px 14px; border-radius:999px; cursor:pointer;
  transition:all .15s ease; font-weight:600
}
.tab-btn:hover{border-color:#2a3344; background:#121720}
.tab-btn.is-active{border-color:var(--accent); box-shadow: inset 0 0 0 1px var(--accent);}

/* -------- Main layout -------- */
.lp-main{max-width:1200px; margin:26px auto; padding:0 16px}
.tab-panel{display:none}
.tab-panel.is-active{display:block}

.card{
  background:var(--panel); border:1px solid var(--br);
  border-radius:var(--radius); box-shadow:var(--shadow);
  padding:22px;
}
.card h2{margin:0 0 14px; font-size:20px}

/* -------- Forms -------- */
.form{display:block}
.form-row{display:flex; flex-direction:column; gap:6px; margin-bottom:14px}
.form-row label{color:var(--sub); font-weight:600}
.form-row input, .form-row select{
  background:#0f1319; color:var(--text);
  border:1px solid var(--br); border-radius:10px;
  height:44px; padding:0 12px; outline:0;
}
.form-row input:focus, .form-row select:focus{border-color:#324059; box-shadow:0 0 0 2px rgba(49,117,255,.15)}

.btn{appearance:none; border:0; cursor:pointer; border-radius:12px; padding:12px 16px; font-weight:800}
.btn-full{width:100%}
.btn-primary{background:linear-gradient(180deg,#ff3b24,#b90b06); color:#fff}
.btn-primary:hover{filter:brightness(1.05)}
.btn-accent{background:linear-gradient(180deg,#4e76ff,#2b62ff); color:#fff}
.btn-accent:hover{filter:brightness(1.06)}

/* -------- Grid -------- */
.grid-2{display:grid; grid-template-columns:1.1fr 1fr; gap:22px}
.grid-2 .col{min-width:0}
@media (max-width: 900px){ .grid-2{grid-template-columns:1fr} }

/* -------- Pickers (drivers / teams) -------- */
.picker{background:#0f1319; border:1px solid var(--br); border-radius:var(--radius); padding:14px; margin-top:10px}
.picker-head{display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px}
.picker-head h3{margin:0; font-size:16px}
.segmented{display:flex; gap:6px}
.seg-btn{
  background:#0e1116; color:var(--text); border:1px solid var(--br);
  padding:6px 10px; border-radius:999px; cursor:pointer; font-weight:600
}
.seg-btn.is-active{border-color:var(--accent); box-shadow: inset 0 0 0 1px var(--accent)}

.picker-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap:10px;
}
.pick-card{
  background:#0d1117; border:1px solid #1d2330; border-radius:12px;
  padding:10px; cursor:pointer; text-align:center; transition:transform .12s ease, border-color .12s ease;
  display:flex; flex-direction:column; gap:8px; align-items:center; min-height:150px;
}
.pick-card:hover{transform:translateY(-2px); border-color:#2a3344}
.pick-card.is-selected{border-color:var(--ok); box-shadow: inset 0 0 0 1px var(--ok)}
.pick-card img{max-width:100%; height:90px; object-fit:contain; display:block}
.pick-card .label{font-size:13px; color:#cfd6e5}

.picker-selected{margin-top:10px; color:#c6cede}
.picker-selected strong{color:#fff}

/* -------- Footer -------- */
.lp-footer{max-width:1200px; margin:36px auto 24px; padding:0 16px; color:#8993a3; font-size:14px}


/* index.css – sekcje zakładek */
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-panel[hidden] { display: none !important; }


/* ====== BRAND ====== */
.lp-header{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 18px; border-bottom:2px solid #b50b05;
  background:#0e0e0e; position:sticky; top:0; z-index:50;
}
.brand{ display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none }
.brand-mark{ width:110px; height:auto; display:block }
.brand-title{
  font-family:"Orbitron", system-ui, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:800; letter-spacing:2px; color:#ff2a1e; font-size:24px;
}

/* rozmieszczenie: zakładki + języki */
.header-actions{ display:flex; align-items:center; gap:14px; margin-left:auto }

/* ====== TABS jako ładne pigułki ====== */
.lp-tabs{ display:flex; gap:8px; align-items:center }
.tab-btn{
  appearance:none; border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04); color:#e6e6e6; font-weight:600;
  padding:8px 14px; border-radius:999px; cursor:pointer;
  transition:all .18s ease; line-height:1;
}
.tab-btn:hover{ border-color:#ff3a2f; color:#fff; box-shadow:0 0 0 2px rgba(255,58,47,.15) inset }
.tab-btn.is-active{
  background:linear-gradient(180deg,#ff3a2f,#b50b05);
  border-color:#ff3a2f; color:#fff; box-shadow:0 6px 16px rgba(255,58,47,.25);
}

/* ====== wybor języka ====== */
.lang-switch{ position:relative; margin-left:auto; }
.lang-switch button{
  background:transparent; border:1px solid red; color:#fff;
  padding:5px 10px; cursor:pointer; border-radius:5px;
}
.lang-switch ul{
  list-style:none; margin:0; padding:5px 0;
  position:absolute; top:40px; right:0;
  background:#111; border:1px solid red; border-radius:5px;
  display:none; min-width:120px;
}
.lang-switch ul li{ padding:8px 10px; cursor:pointer; }
.lang-switch ul li:hover{ background:red; }
.lang-switch.open ul{ display:block; animation:fadeIn .2s ease-in-out; z-index:1000; }

/* ====== responsywność (góra) ====== */
@media (max-width: 720px){
  .brand-title{ font-size:18px; letter-spacing:1.5px }
  .brand-mark{ width:92px }
  .lp-header{ flex-wrap:wrap; gap:10px }
  .header-actions{ width:100%; justify-content:flex-end }
  .lp-tabs{ flex-wrap:wrap }
}


/* --- header + logo --- */
.lp-header{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 18px; border-bottom:2px solid #b50b05;
  background:#0e0e0e; position:sticky; top:0; z-index:50;
}
.logo{ display:flex; align-items:center; gap:12px; text-decoration:none; color:#fff }
.logo svg{ width:120px; height:auto; display:block }
.logo .titleTag{ font-family:'Orbitron',sans-serif; color:var(--accent); letter-spacing:2px; font-weight:700; font-size:22px; }
.header-actions{ display:flex; align-items:center; gap:14px; margin-left:auto }

/* --- pigułkowe zakładki --- */
.lp-tabs{ display:flex; gap:8px; align-items:center }
.tab-btn{
  appearance:none; border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06); color:#e6e6e6; font-weight:600;
  padding:8px 14px; border-radius:999px; cursor:pointer;
  transition:all .18s ease; line-height:1;
}
.tab-btn:hover{ border-color:#ff3a2f; color:#fff; box-shadow:0 0 0 2px rgba(255,58,47,.15) inset }
.tab-btn.is-active{
  background:linear-gradient(180deg,#ff3a2f,#b50b05);
  border-color:#ff3a2f; color:#fff; box-shadow:0 6px 16px rgba(255,58,47,.25);
}

/* --- język (styl jak na Twoim screenie: ciemny panel + czerwone obramowanie) --- */
.lang-switch{ position:relative }
.lang-btn{
  display:flex; align-items:center; gap:8px; border:1px solid #ff3a2f;
  background:rgba(255,255,255,.04); color:#fff; padding:7px 12px;
  border-radius:12px; cursor:pointer; line-height:1;
}
.lang-btn .caret{ opacity:.8 }

.lang-menu{
  position:absolute; right:0; top:calc(100% + 8px);
  min-width:190px; background:#0b0b0b; border:1px solid #ff3a2f;
  border-radius:10px; padding:6px; list-style:none; margin:0; display:none;
  box-shadow:0 12px 32px rgba(0,0,0,.55); z-index:100;
}
.lang-menu .chosenLang{
  padding:9px 12px; border-radius:8px; color:#eaeaea; cursor:pointer;
  display:flex; align-items:center; gap:10px; font-weight:600;
}
.lang-menu .chosenLang::before{
  content: attr(data-lang-shortcut);
  font-size:.72rem; color:#a9a9a9; width:26px; letter-spacing:.5px;
}
.lang-menu .chosenLang:hover{ background:#ff3a2f; color:#fff }
.lang-switch.open .lang-menu{ display:block }

/* --- RWD --- */
@media (max-width: 720px){
  .logo svg{ width:100px }
  .lp-header{ flex-wrap:wrap; gap:10px }
  .header-actions{ width:100%; justify-content:flex-end }
  .lp-tabs{ flex-wrap:wrap }
}

@media (max-width:900px){
  main{ grid-template-columns:1fr; }
  header{ padding:14px; }
  .logo .title{ font-size:18px; }
}


/* język: usuń pseudo-element ::before (kody PL/GB/DE/UA) */
.lang-menu .chosenLang::before{ display:none !important; content:none !important; }

/* subtelny hint nad formularzem */
.panel-hint{
  margin: 6px 0 14px; color:#cfcfcf; font-size:.95rem;
}
.panel-hint .link-cta{
  color:#fff; font-weight:700; text-decoration:none;
  border-bottom:1px dashed #ff3a2f; padding-bottom:1px;
}
.panel-hint .link-cta:hover{ color:#ff3a2f; }

/* mała karta z plusami */
.card-soft{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px; padding:16px; margin-top:16px;
}
.card-soft h3{ margin:0 0 8px; font-size:1.05rem; color:#fff; }
.ticks{ list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.ticks li::before{ content:"✓"; color:#21d07a; margin-right:8px; }
.ticks li{ color:#e9e9e9; }

/* pasek – obietnica na dole */
.lp-promise{
  margin: 18px auto 8px; text-align:center; color:#e7e7e7;
  padding:10px 12px; max-width:980px;
  border:1px solid rgba(255,58,47,.35);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,58,47,.08), rgba(255,58,47,.02));
}

.errorBoxFromTop{
    position:absolute;
    background-color:#b10026;
    color:aquamarine;
    font-size: x-large;
    top:80px;
    right:4%;
    border-radius: 2%;
    padding: 1%;
    width:50%;
    transition: all 1s;
    z-index: 100;
}

.hideAboveTheTop{
    position:absoulute;
    transform: translateY(-500%);
    transition: all 1s;
}

.doNotDisplay{
    display:none;
}

.block-pointer-events {
    pointer-events: none;
    position:fixed;
    z-index: 5;
    left:0;
    height: 100%;
    width: 100%;
    overflow:auto;
    background-color: rgba(0,0,0,0.5);
}


.errorBoxFromTop{
  position: fixed;                 /* trzyma się okna, nie kontenera */
  top: 16px;
  left: 50%;
  width: min(900px, calc(100% - 24px));
  transform: translate(-50%, 0);   /* środek ekranu */
  z-index: 1100;

  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--err-bg-1), var(--err-bg-2));
  color: var(--err-text);
  border: 1px solid var(--err-brd);
  box-shadow:
    0 14px 32px rgba(0,0,0,.45),
    0 0 0 1px var(--err-brd) inset,
    0 0 24px var(--err-glow);

  display: grid;
  grid-template-columns: 36px 1fr auto;   /* ikona | treść | przycisk */
  align-items: center;
  gap: 12px;

  /* animacja wjazdu/wyjazdu */
  opacity: 1;
  transition:
    transform .42s cubic-bezier(.2,.8,.2,1),
    opacity   .25s ease;
}

/* Schowanie — używaj tak jak dotąd */
.hideAboveTheTop{
  /* (poprawiona literówka) */
  position: fixed;
  transform: translate(-50%, -140%);
  opacity: 0;
}

/* całkowite ukrycie (jeśli stosujesz) */
.doNotDisplay{ display:none !important; }

/* stary overlay – niepotrzebny do toasta,
   ale jeśli używasz – niech będzie bardziej lekki */
.block-pointer-events{
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1000;
}

/*  Ikona (dekor) – pojawi się sama po lewej,
    nic nie musisz dodawać w HTML */

.aproveBox{
    position:fixed;
    background-color:#a3912a;
    color:aquamarine;
    bottom:3%;
    right:2%;
    border-radius: 2%;
    padding: 1%;
    width:15%;
    height: 8%;
    transition: all 0.5s;
    z-index: 100;
}

.hide {
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.errorBoxFromTop::before{
  content: "⚠";
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  font-size: 18px; line-height: 1;
}

/* Jeżeli w środku masz jakiś przycisk (np. OK) – ładniejszy wygląd */
.errorBoxFromTop button,
.errorBoxFromTop .btn,
.errorBoxFromTop input[type="button"]{
  appearance: none;
  border: 0;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 600;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}
.errorBoxFromTop button:hover{
  background: rgba(255,255,255,.18);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset;
}
.errorBoxFromTop button:active{ transform: translateY(1px); }

/* Drobny pasek „postępu” na dole (dekoracyjnie) */
.errorBoxFromTop::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:3px;
  background: linear-gradient(90deg, #fff, var(--err-bar));
  opacity:.85;
  transform-origin: left center;
  animation: errbar 5s linear forwards;  /* 5s – można zmienić */
}
@keyframes errbar{
  from{ transform: scaleX(1); }
  to  { transform: scaleX(0); }
}

/* Tekst wewnątrz – gdy masz więcej linijek */
.errorBoxFromTop p,
.errorBoxFromTop small{ margin:0; color: var(--err-sub); }
.errorBoxFromTop strong{ color:#fff; }

/* Mobile */
@media (max-width: 640px){
  .errorBoxFromTop{
    width: calc(100% - 16px);
    padding: 12px 14px;
    border-radius: 12px;
    grid-template-columns: 30px 1fr auto;
  }
  .errorBoxFromTop::before{ width:30px; height:30px; font-size:16px; }
}

/* centrowanie i siatka na landing */
#first-container .lp-main{
  display:grid !important;
  grid-template-columns:minmax(0, 980px) !important;
  justify-content:center !important;
  gap:22px;
  padding-inline:12px;
}


/* === Układ kontaktu (jak na screenie 2) === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 940px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* === Karta === */
.card {
  background: #0b0f17;
  border: 1px solid #1a2234;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  overflow: hidden;
}

.card__header {
  padding: 14px 16px;
  background: #0c1018;
  border-bottom: 2px solid #e10600;
  font-weight: 700;
}

.card__body {
  padding: 16px;
}

/* === Formularz === */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 13px;
  opacity: 0.85;
}

.form-row input,
.form-row textarea {
  background: #0b111b;
  border: 1px solid #1a2234;
  color: #e7ecf7;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #2a4e87;
  box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}


.actionButtons{
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #2a313c;
  background: linear-gradient(180deg,rgb(95, 53, 60),#10151a);
  color: #e7ecf3;
  font-weight: 600;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, border-color .2s ease;
}

.actionButtons:hover{
  transform: translateY(-1px);
  border-color: #3a4350;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}

/* kolorowe modyfikatory – jeśli używasz */
.chosenBtn{
      background: linear-gradient(180deg, rgb(111, 146, 120), #030303);
}
