@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap");

:root {
  --bg: #090c0e;
  --bg-card: #0f1316;
  --text: #f1f3f4;
  --muted: #a8adb1;

  --sid: #2c9b8f;
  --tools: #ff6a00;
  --web: #39716d;
  --code: #b97a56;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top,
      rgba(44, 155, 143, 0.05),
      transparent 30%
    ),
    var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

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

.page {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 24px;
}

/* HERO */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  text-align: center;
}

.hero__logo {
  width: 430px;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 22px;
  opacity: 0.9;
  filter: brightness(0.9) saturate(0.95);
}

.hero__title {
  font-size: clamp(0.9rem, 1.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c4c8ca;
}

.hero__subtitle {
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__subtitle span {
  color: var(--sid);
}

.hero__subtitle::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 15px auto 0;
  background: var(--sid);
}

/* KARTY */

.brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.brand-card {
  --accent: var(--sid);
  --accent-soft: rgba(44, 155, 143, 0.22);

  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: 14px;

  background-color: var(--bg-card);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.brand-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.5),
    0 0 22px var(--accent-soft);
}

/* CENTRUM TECHNICZNE */

.brand-card--tools {
  --accent: var(--tools);
  --accent-soft: rgba(255, 106, 0, 0.22);

  background-image: url("assets/images/centrum-techniczne.jpg");
  background-position: 70% center;
}

/* WEB DESIGN */

.brand-card--web {
  --accent: var(--web);
  --accent-soft: rgba(57, 113, 109, 0.24);

  background-image: url("assets/images/web-design.jpg");
  background-position: center;
}

/* CODE DIAGNOSTIK */

.brand-card--motors {
  --accent: var(--code);
  --accent-soft: rgba(185, 122, 86, 0.24);

  background-image: url("assets/images/code-diagnostik.jpg");
  background-position: center;
}

/* WARSTWA PRZYCIEMNIAJĄCA */

.brand-card__overlay {
  position: absolute;
  inset: 0;

background:
  linear-gradient(
    to bottom,
    rgba(4, 6, 7, 0.00) 0%,
    rgba(4, 6, 7, 0.00) 32%,
    rgba(4, 6, 7, 0.07) 60%,
    rgba(4, 6, 7, 0.55) 100%
  );
}

/* ZAWARTOŚĆ KAFELKA */

.brand-card__content {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;

  min-height: 500px;
  padding: 26px 26px 22px;
}

/* IKONA */

.brand-card__icon {
  width: 54px;
  height: 54px;
}

.brand-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ZWYKŁY NAGŁÓWEK KAFELKA */

.brand-card h2 {
  margin-top: auto;

  font-size: clamp(1.45rem, 1.8vw, 1.95rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.brand-card h2 strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 500;
}

/* LOGO ZAMIAST NAGŁÓWKA */

.brand-card__logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;

  width: 155px;
  height: 64px;
  margin-top: auto;
  margin-bottom: 16px;
}

.brand-card__logo img {
  display: block;
  width: 100%;
  max-height: 44px;
  object-fit: contain;
  object-position: left bottom;
}

.brand-card__logo span {
  display: block;
  margin-top: 3px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* KRESKA POD NAZWĄ / LOGO */

.brand-card h2::after,
.brand-card__logo::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 14px;
  background: var(--accent);
}

.brand-card__logo::after {
  position: absolute;
  left: 0;
  bottom: -16px;
}

/* OPIS */

.brand-card p {
  min-height: 56px;
  max-width: 320px;

  margin-top: 15px;

  color: #d8dadb;
  font-size: 0.91rem;
  line-height: 1.5;
}

/* PRZYCISK */

.brand-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;

  width: 100%;
  min-height: 52px;
  margin-top: 18px;

  border: 1px solid var(--accent);
  border-radius: 3px;

  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  background: rgba(0, 0, 0, 0.36);

  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.brand-card__button span {
  font-size: 1.45rem;
  line-height: 1;

  transition: transform 0.25s ease;
}

.brand-card__button:hover {
  color: #090c0e;
  background: var(--accent);
  transform: translateY(-2px);
}

.brand-card__button:hover span {
  transform: translateX(5px);
}

.brand-card__button--disabled {
  cursor: default;
  opacity: 0.72;
}

.brand-card__button--disabled:hover {
  color: var(--accent);
  background: rgba(0, 0, 0, 0.36);
  transform: none;
}

/* WARTOŚCI */

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  margin-top: 32px;
  padding: 24px 0;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;

  min-height: 66px;
  padding: 0 18px;

  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.value:last-child {
  border-right: 0;
}

.value img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.value p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* STOPKA */

.footer {
  padding-top: 21px;

  color: #686d70;
  font-size: 0.75rem;
  text-align: center;
}

/* TABLET */

@media (max-width: 1050px) {
  .page {
    width: min(900px, calc(100% - 32px));
  }

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

  .brand-card,
  .brand-card__content {
    min-height: 560px;
  }

  .values {
    grid-template-columns: repeat(2, 1fr);
  }

  .value:nth-child(2) {
    border-right: 0;
  }

  .value:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}
/* =========================
   BANER COOKIES
========================= */

.cookie-banner {
  display: none;
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.cookie-banner__content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;

  background: #111315;
  color: #fff;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner button {
  padding: 11px 18px;
  border: 1px solid #fff;
  border-radius: 8px;

  font: inherit;
  cursor: pointer;
}

#cookie-reject {
  background: transparent;
  color: #fff;
}

#cookie-accept {
  background: #fff;
  color: #111;
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner__content {
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__buttons {
    width: 100%;
  }

  .cookie-banner button {
    flex: 1;
  }
}
/* TELEFON */

@media (max-width: 600px) {
  .page {
    width: min(100% - 24px, 520px);
    padding-top: 22px;
  }

  .hero {
    margin-bottom: 22px;
  }

  .hero__logo {
    width: 300px;
    max-height: 125px;
    margin-bottom: 20px;
  }

  .hero__title {
    font-size: 1.02rem;
    line-height: 1.55;
    letter-spacing: 0.18em;
  }

  .hero__subtitle {
    font-size: 0.68rem;
    line-height: 1.6;
    letter-spacing: 0.15em;
  }

  .brands {
    gap: 18px;
  }

  .brand-card,
  .brand-card__content {
    min-height: 510px;
  }

  .brand-card__content {
    padding: 24px 22px 20px;
  }

  .brand-card__icon {
    width: 50px;
    height: 50px;
  }

  .brand-card h2 {
    font-size: 1.7rem;
  }

  .brand-card__logo {
    width: 155px;
    height: 60px;
  }

  .brand-card__logo img {
    max-height: 60px;
  }

  .brand-card p {
    min-height: auto;
    font-size: 0.93rem;
  }

  .brand-card__button {
    min-height: 54px;
    font-size: 0.82rem;
  }

  .values {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .value {
    justify-content: flex-start;

    padding: 19px 18px;

    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .value:last-child {
    border-bottom: 0;
  }

  .footer {
    padding-bottom: 10px;
  }
}

/* ANIMACJA WEJŚCIA */

.hero__logo,
.hero__title,
.hero__subtitle,
.brand-card {
  opacity: 0;
  transform: translateY(24px);

  animation: pageFadeUp 0.8s ease forwards;
}

.hero__logo {
  animation-delay: 0.1s;
}

.hero__title {
  animation-delay: 0.25s;
}

.hero__subtitle {
  animation-delay: 0.4s;
}

.brand-card:nth-child(1) {
  animation-delay: 0.6s;
}

.brand-card:nth-child(2) {
  animation-delay: 0.78s;
}

.brand-card:nth-child(3) {
  animation-delay: 0.96s;
}

@keyframes pageFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CENTRUM TECHNICZNE — korekta wielkości logo */

.brand-card--tools .brand-card__logo img {
  width: 125%;
  max-width: none;
}