/* AutoGP hub, autogp.pl */

:root{
  --brand:#003399;
  --brand-dk:#00276f;
  --brand-lt:#1a56d6;
  --brand-soft:#eaf0fc;
  --bg:#ffffff;
  --bg-2:#f4f7fc;
  --card:#ffffff;
  --line:#dfe5f0;
  --line-2:#eef1f7;
  --txt:#0f1a2e;
  --txt-2:#465166;
  --txt-3:#6f7a8d;
  --r:16px;
  --wrap:1080px;
}

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

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--bg-2);
  color:var(--txt);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

/* delikatna poświata marki u góry */
body::before{
  content:"";
  position:fixed;
  inset:0 0 auto 0;
  height:62vh;
  background:
    radial-gradient(78% 58% at 50% 0%, rgba(0,51,153,.10) 0%, rgba(0,51,153,0) 68%),
    linear-gradient(180deg,#ffffff 0%,var(--bg-2) 100%);
  pointer-events:none;
  z-index:-1;
}

a{color:inherit}
img{max-width:100%;height:auto}

.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 20px}

.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;
}

.skip{
  position:absolute;left:-9999px;top:0;
  background:var(--brand);color:#fff;padding:12px 18px;z-index:10;
  border-radius:0 0 var(--r) 0;text-decoration:none;font-weight:600;
}
.skip:focus{left:0}

:where(a,.card,.mini):focus-visible{
  outline:3px solid var(--brand-lt);
  outline-offset:3px;
  border-radius:6px;
}

/* ---------- HERO ---------- */

.hero{padding:60px 0 38px;text-align:center}

.logo{
  margin:0;
  font-size:clamp(44px,13vw,82px);
  font-weight:800;
  font-style:italic;
  letter-spacing:-.035em;
  line-height:1;
  color:var(--brand);
}
.logo span{color:var(--brand-lt)}

.tagline{
  margin:18px auto 0;
  max-width:42ch;
  font-size:clamp(17px,4.4vw,22px);
  font-weight:500;
  line-height:1.45;
  color:var(--txt-2);
}
.tagline em{
  display:inline-block;
  font-style:normal;
  color:var(--txt-3);
}

/* ---------- KARTY GŁÓWNE ---------- */

.cards{
  display:grid;
  gap:16px;
  margin-top:10px;
}

.card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  padding:26px 24px 22px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r);
  text-decoration:none;
  position:relative;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(15,26,46,.04);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/* pasek marki u góry karty */
.card::before{
  content:"";
  position:absolute;top:0;left:0;right:0;height:4px;
  background:linear-gradient(90deg,var(--brand) 0%,var(--brand-lt) 100%);
}

.card-logo{
  height:44px;
  width:auto;
  margin-bottom:2px;
}

.card-title{
  font-size:clamp(20px,5vw,25px);
  font-weight:700;
  line-height:1.25;
  letter-spacing:-.015em;
  color:var(--txt);
}

.card-desc{
  color:var(--txt-2);
  font-size:15.5px;
  line-height:1.6;
}

.card-go{
  margin-top:auto;
  padding-top:10px;
  font-weight:700;
  font-size:15px;
  color:var(--brand);
}
.card-go span{display:inline-block;font-size:19px;line-height:1;transition:transform .22s ease}

@media (hover:hover){
  .card:hover{
    transform:translateY(-4px);
    border-color:#c2d2f2;
    box-shadow:0 18px 38px -16px rgba(0,51,153,.30);
  }
  .card:hover .card-go span{transform:translateX(5px)}
}
.card:active{transform:translateY(-1px)}

/* ---------- KARTY "WKRÓTCE" ---------- */

.soon{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:12px;
}

.mini{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:16px 18px;
  background:rgba(255,255,255,.55);
  border:1px dashed #cdd6e6;
  border-radius:12px;
  cursor:default;
}

.badge{
  align-self:flex-start;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  padding:3px 8px;
  border-radius:999px;
  background:var(--brand-soft);
  color:var(--brand);
}

.mini-title{
  font-size:16px;
  font-weight:600;
  color:var(--txt-3);
}

/* ---------- TREŚĆ / SEO ---------- */

.about{
  margin-top:52px;
  padding-top:40px;
  border-top:1px solid var(--line);
  max-width:70ch;
}

.about h2{
  margin:0 0 18px;
  font-size:clamp(21px,5.2vw,27px);
  font-weight:700;
  line-height:1.3;
  letter-spacing:-.02em;
}

.about h3{
  margin:30px 0 8px;
  font-size:clamp(17px,4.2vw,19px);
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--brand);
}

.about p{
  margin:0 0 14px;
  color:var(--txt-2);
  font-size:16px;
  line-height:1.72;
}

.about strong{color:var(--txt);font-weight:600}

.about a{
  color:var(--brand);
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid rgba(0,51,153,.35);
}
.about a:hover{border-bottom-color:var(--brand)}

/* ---------- KONTAKT ---------- */

.contact{margin-top:52px}

.contact h2{
  margin:0 0 22px;
  font-size:clamp(22px,5.5vw,28px);
  font-weight:700;
  letter-spacing:-.02em;
}
.contact h2::after{
  content:"";
  display:block;
  width:54px;height:4px;
  margin-top:12px;
  border-radius:3px;
  background:linear-gradient(90deg,var(--brand),var(--brand-lt));
}

.contact-grid{
  display:grid;
  gap:14px;
}

.box{
  padding:20px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 1px 2px rgba(15,26,46,.04);
}

.box h3{
  margin:0 0 10px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--brand);
}

.box p{margin:0 0 6px}
.box p:last-child{margin-bottom:0}

.box .addr{color:var(--txt-2);font-size:15.5px}

.box a{
  display:inline-block;
  padding:4px 0;
  font-weight:700;
  font-size:17px;
  color:var(--brand);
  text-decoration:none;
  border-bottom:1px solid rgba(0,51,153,.28);
}
.box a:hover{border-bottom-color:var(--brand)}

.box .meta{
  margin-top:10px;
  font-size:13.5px;
  color:var(--txt-3);
  line-height:1.55;
}
.box .meta a{font-size:14px;font-weight:600}

.hours{
  margin:18px 0 0;
  padding:16px 20px;
  background:var(--brand-soft);
  border:1px solid #d3e0f8;
  border-radius:14px;
  font-size:15.5px;
  color:var(--brand-dk);
}
.hours strong{color:var(--brand-dk)}

/* ---------- STOPKA ---------- */

.footer{
  margin-top:60px;
  padding:24px 0 40px;
  border-top:1px solid var(--line);
  font-size:14.5px;
  color:var(--txt-3);
}
.footer .wrap{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  text-align:center;
}
.footer p{margin:0}
.footer nav{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:center}
.footer a{
  padding:6px 0;
  color:var(--txt-2);
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.footer a:hover{color:var(--brand);border-bottom-color:var(--brand)}

/* ---------- BREAKPOINTY ---------- */

@media (min-width:720px){
  .hero{padding:84px 0 46px}
  .cards{grid-template-columns:1fr 1fr;gap:20px}
  .card{padding:32px 30px 28px}
  .card-logo{height:50px}
  .soon{margin-top:16px;gap:16px}
  .contact-grid{grid-template-columns:1fr 1fr}
  .footer .wrap{flex-direction:row;justify-content:space-between;text-align:left}
}

@media (min-width:1000px){
  .contact-grid{grid-template-columns:repeat(4,1fr)}
}

@media (prefers-reduced-motion:reduce){
  *{transition:none !important;animation:none !important}
}
