/* ============================================================
   Brick Tech Krakow — main.css
   Shared design system for index.html and en.html
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700&display=swap');

/* ── TOKENS ── */
:root {
  --bg:       #04070f;
  --text:     rgba(255,255,255,.93);
  --muted:    rgba(255,255,255,.68);
  --muted2:   rgba(255,255,255,.50);
  --line:     rgba(255,255,255,.10);
  --shadow:   0 18px 50px rgba(0,0,0,.50);
  --radius:   24px;
  --radius2:  18px;
  --accent:   #4fc3f7;
  --accent2:  #81c784;
  --good:     #34d399;
  --warn:     #fbbf24;
  --stack-gap: 18px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    url("/assets/hero-bricks.png") repeat,
    radial-gradient(1000px 600px at 15% 10%,  rgba(79,195,247,.10), transparent 55%),
    radial-gradient(900px  600px at 85% 20%,  rgba(129,199,132,.08), transparent 60%),
    radial-gradient(1200px 800px at 50% 100%, rgba(79,195,247,.06), transparent 70%),
    var(--bg);
  background-size: 520px, auto, auto, auto, auto;
  background-blend-mode: overlay;
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ── */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

main > .wrap { padding-bottom: 70px; }

/* ── TOPBAR ── */
.topbar-shell {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 40;
  background: rgba(4,7,15,.60);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  width: 32px; height: 32px;
  border-radius: 10px;
  padding: 2px;
  background: rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.22);
  overflow: hidden;
}

.logo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1px;
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted2);
  margin-top: 1px;
}

/* ── NAV ── */
nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 10px;
  transition: background .15s, color .15s;
}

nav a:hover {
  background: rgba(255,255,255,.05);
  text-decoration: none;
  color: var(--text);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  text-decoration: none;
  transition: background .2s, border-color .2s;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  background: rgba(255,255,255,.10);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(79,195,247,.90), rgba(129,199,132,.80));
  border-color: rgba(255,255,255,.18);
  color: #041018;
  font-weight: 700;
}

.btn.primary:hover {
  background: linear-gradient(135deg, rgba(79,195,247,1), rgba(129,199,132,.95));
}

.btn-hub {
  justify-content: center;
  padding: 16px;
  font-weight: 700;
  text-align: center;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #128C7E;
}

.btn-whatsapp:hover {
  background: #1fbb58;
  color: #fff;
}

.btn-telegram {
  background: #0088cc;
  color: #fff;
  border-color: #0077b5;
}

.btn-telegram:hover {
  background: #0077b5;
  color: #fff;
}

/* ── LANG SWITCH ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
  flex-shrink: 0;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  transition: background .2s, border-color .2s, transform .2s;
}

.lang-switch a:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.26);
  transform: translateY(-1px);
  text-decoration: none;
}

.lang-switch a.active {
  background: rgba(79,195,247,.14);
  border-color: rgba(79,195,247,.30);
  color: var(--accent);
  pointer-events: none;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 96px 0 var(--stack-gap);
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .26;
  filter: contrast(1.05) brightness(.80);
}

.hero > *:not(.hero-bg) {
  position: relative;
  z-index: 1;
}

.hero-inner { display: block; }

.heroCol .card,
.hero-inner > aside.card { height: 100%; }

.hero-inner > aside.card { margin-top: var(--stack-gap); }

/* ── CARDS ── */
.card {
  background: rgba(10,16,28,.32);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(900px 220px at 30%  0%, rgba(79,195,247,.14), transparent 55%),
    radial-gradient(700px 220px at 85% 10%, rgba(129,199,132,.10), transparent 60%);
  pointer-events: none;
  opacity: .9;
}

.in {
  position: relative;
  padding: 22px 22px 20px;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-family: 'Syne', sans-serif;
  margin: 0;
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: -.6px;
  font-weight: 800;
}

h2 {
  font-family: 'Syne', sans-serif;
  margin: 0;
  font-size: 22px;
  letter-spacing: -.2px;
  font-weight: 700;
}

h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}

p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  font-size: 15.5px;
  color: var(--muted);
}

/* ── PILLS ── */
.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-size: 12.5px;
  color: var(--muted);
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.mini {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.03);
}

.mini .in { padding: 14px; }

.mini h3 {
  margin: 0;
  font-size: 14px;
}

.mini p {
  margin: 7px 0 0;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.55;
}

.span12 { grid-column: span 12; }
.span6  { grid-column: span 6; }
.span4  { grid-column: span 4; }

/* ── KPIs ── */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.kpi {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  padding: 12px;
}

.kpi .n {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .2px;
}

.kpi .t {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted2);
  line-height: 1.45;
}

/* ── SECTIONS ── */
.section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.section.card {
  margin-top: var(--stack-gap);
  padding-top: 0;
  border-top: none;
}

/* ── LIST ── */
ul.list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  flex: 0 0 auto;
}

.li strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.li span {
  display: block;
  font-size: 13px;
  color: var(--muted2);
  margin-top: 3px;
  line-height: 1.5;
}

/* ── PRICING ── */
.priceGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.priceItem {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  padding: 16px;
}

.priceTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.priceTop strong {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.pricePill {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(79,195,247,.12);
  border: 1px solid rgba(79,195,247,.22);
  color: var(--accent);
  white-space: nowrap;
}

.priceText {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.55;
}

/* ── CONTACT GRID ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

/* ── MISC ── */
.fineprint {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 10px;
  line-height: 1.55;
}

/* ── SHOWCASE ── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

#showcase-grid { display: contents; }

.showcase-tile {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
}

.showcase-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  opacity: .88;
  transition: transform .35s ease, opacity .35s ease;
}

.showcase-tile span {
  position: absolute;
  bottom: 12px; left: 14px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0,0,0,.65);
  padding: 6px 10px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 3;
}

.showcase-tile:hover span { opacity: 1; }

/* play icon on video tiles */
.showcase-tile--has-video::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent rgba(255,255,255,.92);
  transform: translate(calc(-50% + 3px), -50%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.55));
}

.showcase-tile--has-video:hover::after { opacity: 1; }

@media (max-width: 1024px) {
  .showcase-tile--has-video::after { opacity: .50; }
  .showcase-tile--has-video:hover::after,
  .showcase-tile--has-video:focus-visible::after { opacity: 1; }
}

/* shine sweep */
.showcase-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,.16) 50%,
    rgba(255,255,255,0) 65%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}

.showcase-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}

.showcase-tile:hover::before { transform: translateX(120%); }
.showcase-tile:hover img { transform: scale(1.04); opacity: 1; }

/* ── FOOTER ── */
footer {
  margin-top: 22px;
  color: var(--muted2);
  font-size: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 10px;
}

/* ── RESPONSIVE ── */
@media (max-width: 940px) {
  h1 { font-size: 32px; }

  nav { display: none; }

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

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

  .contact-grid { grid-template-columns: 1fr !important; }

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

  .showcase-tile img {
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    width: 100%;
  }

  .showcase-tile span,
  .showcase-tile:hover span { opacity: 1; }

  .showcase-tile--has-video::after,
  .showcase-tile--has-video:hover::after,
  .showcase-tile--has-video:focus-visible::after { opacity: 1; }

  .lang-switch { margin-left: 10px; }

  .lang-switch a {
    min-width: 38px;
    height: 30px;
    padding: 0 9px;
  }

  .span6 { grid-column: span 12; }
}

@media (max-width: 600px) {
  h1 { font-size: 28px; }
  .kpis { grid-template-columns: 1fr; }
}
