:root {
  --burgundy-950: #3d0d12;
  --burgundy-900: #581017;
  --burgundy-800: #72161e;
  --burgundy-700: #8f1d25;
  --burgundy-600: #a8242d;
  --burgundy-500: #bd2c35;

  --gray-950: #17191c;
  --gray-900: #202328;
  --gray-800: #30343a;
  --gray-700: #4d525a;
  --gray-600: #686e77;
  --gray-500: #858b93;
  --gray-400: #aeb2b8;
  --gray-300: #d2d5d9;
  --gray-200: #e8e9eb;
  --gray-100: #f3f4f5;
  --gray-50: #f8f8f9;

  --white: #ffffff;
  --green: #27835b;
  --orange: #d37a20;

  --shadow-sm: 0 10px 30px rgb(21 24 28 / 7%);
  --shadow-md: 0 24px 70px rgb(21 24 28 / 12%);
  --shadow-lg: 0 36px 100px rgb(21 24 28 / 18%);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 12px 18px;
  color: var(--white);
  background: var(--gray-950);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Nagłówek */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 90%);
  border-bottom: 1px solid rgb(23 25 28 / 7%);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--container));
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 38px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--gray-200);
  border-radius: 14px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.16rem;
  letter-spacing: 0.08em;
}

.brand-copy span {
  margin-top: 5px;
  color: var(--gray-600);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  color: var(--gray-700);
  font-size: 0.93rem;
  font-weight: 650;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--burgundy-700);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.main-nav a:hover {
  color: var(--burgundy-700);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

/* Przyciski */

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 19px;
  height: 19px;
}

.button-small {
  min-height: 43px;
  padding-inline: 18px;
  color: var(--white);
  background: var(--gray-900);
  font-size: 0.88rem;
}

.button-small:hover {
  background: var(--burgundy-700);
  box-shadow: 0 12px 28px rgb(143 29 37 / 20%);
}

.button-primary {
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      var(--burgundy-700),
      var(--burgundy-500)
    );
  box-shadow: 0 16px 35px rgb(143 29 37 / 25%);
}

.button-primary:hover {
  box-shadow: 0 20px 42px rgb(143 29 37 / 34%);
}

.button-ghost {
  color: var(--gray-800);
  background: var(--white);
  border-color: var(--gray-300);
}

.button-ghost:hover {
  border-color: var(--burgundy-600);
  box-shadow: var(--shadow-sm);
}

.button-light {
  color: var(--burgundy-800);
  background: var(--white);
}

.button-light:hover {
  box-shadow: 0 20px 50px rgb(0 0 0 / 18%);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 94px 0 90px;
  background:
    linear-gradient(
      145deg,
      #fafafa 0%,
      #f4f4f5 51%,
      #ececee 100%
    );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgb(61 13 18 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(61 13 18 / 3%) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.hero-glow-one {
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgb(168 36 45 / 16%) 0%,
    transparent 68%
  );
}

.hero-glow-two {
  bottom: -180px;
  left: -180px;
  width: 460px;
  height: 460px;
  background: radial-gradient(
    circle,
    rgb(48 52 58 / 11%) 0%,
    transparent 68%
  );
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.92fr);
  align-items: center;
  gap: 76px;
}

.eyebrow {
  width: fit-content;
  margin-bottom: 25px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--burgundy-800);
  background: rgb(143 29 37 / 8%);
  border: 1px solid rgb(143 29 37 / 13%);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--burgundy-600);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(168 36 45 / 11%);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--gray-950);
  font-size: clamp(3rem, 5.7vw, 5.3rem);
  font-weight: 840;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  color: var(--burgundy-700);
}

.hero-lead {
  max-width: 650px;
  margin: 29px 0 0;
  color: var(--gray-600);
  font-size: 1.13rem;
  line-height: 1.72;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hero-trust {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 0.82rem;
  font-weight: 650;
}

.trust-item svg {
  width: 19px;
  height: 19px;
  color: var(--burgundy-700);
}

/* Wizualizacja panelu */

.hero-panel {
  position: relative;
  padding: 28px 12px;
}

.panel-window {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgb(23 25 28 / 8%);
  border-radius: 25px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1300px) rotateY(-4deg) rotateX(1deg);
}

.window-top {
  min-height: 70px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-950);
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
}

.window-symbol {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      135deg,
      var(--burgundy-600),
      var(--burgundy-800)
    );
  border-radius: 10px;
  font-weight: 900;
}

.window-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.window-brand strong {
  font-size: 0.85rem;
}

.window-brand small {
  margin-top: 3px;
  color: var(--gray-400);
  font-size: 0.67rem;
}

.window-status {
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #bfe9d4;
  background: rgb(39 131 91 / 16%);
  border: 1px solid rgb(105 211 164 / 15%);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
}

.window-status span {
  width: 7px;
  height: 7px;
  background: #59c78f;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(89 199 143 / 13%);
}

.window-body {
  padding: 24px;
  background: var(--gray-50);
}

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-heading > div:first-child {
  display: flex;
  flex-direction: column;
}

.dashboard-heading small {
  color: var(--gray-500);
  font-size: 0.69rem;
}

.dashboard-heading strong {
  font-size: 1.08rem;
}

.dashboard-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--burgundy-800);
  background: rgb(143 29 37 / 10%);
  border: 1px solid rgb(143 29 37 / 13%);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.dashboard-stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-stat {
  min-height: 91px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
}

.stat-icon svg {
  width: 21px;
  height: 21px;
}

.stat-icon-burgundy {
  color: var(--burgundy-700);
  background: rgb(143 29 37 / 9%);
}

.stat-icon-green {
  color: var(--green);
  background: rgb(39 131 91 / 9%);
}

.dashboard-stat > span:last-child {
  display: flex;
  flex-direction: column;
}

.dashboard-stat small {
  color: var(--gray-500);
  font-size: 0.66rem;
}

.dashboard-stat strong {
  margin-top: 3px;
  font-size: 0.78rem;
}

.activity-card {
  margin-top: 14px;
  padding: 17px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 15px;
}

.activity-title {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-title strong {
  font-size: 0.78rem;
}

.activity-title > span {
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 750;
}

.activity-row {
  min-height: 59px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--gray-100);
}

.activity-dot {
  width: 8px;
  height: 8px;
  background: var(--burgundy-600);
  border-radius: 50%;
}

.activity-dot-gray {
  background: var(--gray-500);
}

.activity-dot-orange {
  background: var(--orange);
}

.activity-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.activity-copy strong {
  font-size: 0.7rem;
}

.activity-copy small {
  overflow: hidden;
  color: var(--gray-500);
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-row time {
  color: var(--gray-500);
  font-size: 0.56rem;
}

.floating-card {
  position: absolute;
  z-index: 3;
  min-width: 190px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgb(255 255 255 / 94%);
  border: 1px solid rgb(23 25 28 / 8%);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(15px);
}

.floating-card-top {
  top: 0;
  right: -22px;
}

.floating-card-bottom {
  bottom: 0;
  left: -26px;
}

.floating-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: var(--burgundy-700);
  background: rgb(143 29 37 / 9%);
  border-radius: 10px;
}

.floating-icon-green {
  color: var(--green);
  background: rgb(39 131 91 / 9%);
}

.floating-icon svg {
  width: 20px;
  height: 20px;
}

.floating-card > span:last-child {
  display: flex;
  flex-direction: column;
}

.floating-card strong {
  font-size: 0.72rem;
}

.floating-card small {
  margin-top: 2px;
  color: var(--gray-500);
  font-size: 0.61rem;
}

/* Pasek */

.intro-strip {
  background: var(--gray-950);
}

.intro-strip-inner {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  align-items: center;
  gap: 30px;
}

.intro-strip p {
  max-width: 780px;
  margin: 0;
  color: var(--gray-300);
  font-size: 0.93rem;
  font-weight: 550;
  text-align: center;
}

.intro-line {
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgb(255 255 255 / 25%)
    );
}

.intro-line:last-child {
  background:
    linear-gradient(
      90deg,
      rgb(255 255 255 / 25%),
      transparent
    );
}

/* Funkcje */

.features-section {
  padding: 112px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.05fr 0.65fr;
  align-items: end;
  gap: 80px;
}

.section-label {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--burgundy-700);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2,
.fim-content h2,
.login-copy h2 {
  margin: 0;
  color: var(--gray-950);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading p {
  margin: 0;
  color: var(--gray-600);
  font-size: 1rem;
}

.features-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  min-height: 315px;
  padding: 34px;
  overflow: hidden;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgb(143 29 37 / 20%);
  box-shadow: var(--shadow-md);
}

.feature-card-primary {
  color: var(--white);
  background:
    linear-gradient(
      145deg,
      var(--burgundy-900),
      var(--burgundy-600)
    );
  border-color: transparent;
}

.feature-number {
  position: absolute;
  top: 27px;
  right: 30px;
  color: var(--gray-300);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.feature-card-primary .feature-number {
  color: rgb(255 255 255 / 42%);
}

.feature-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  color: var(--burgundy-700);
  background: rgb(143 29 37 / 9%);
  border-radius: 15px;
}

.feature-card-primary .feature-icon {
  color: var(--white);
  background: rgb(255 255 255 / 13%);
}

.feature-icon svg {
  width: 27px;
  height: 27px;
}

.feature-card h3 {
  margin: 27px 0 10px;
  font-size: 1.38rem;
  line-height: 1.2;
}

.feature-card p {
  max-width: 520px;
  margin: 0;
  color: var(--gray-600);
  font-size: 0.94rem;
}

.feature-card-primary p {
  color: rgb(255 255 255 / 72%);
}

.feature-link {
  position: absolute;
  right: 34px;
  bottom: 30px;
  left: 34px;
  padding-top: 17px;
  color: var(--gray-700);
  border-top: 1px solid var(--gray-200);
  font-size: 0.72rem;
  font-weight: 750;
}

.feature-card-primary .feature-link {
  color: rgb(255 255 255 / 80%);
  border-color: rgb(255 255 255 / 16%);
}

/* Sekcja Garda FIM */

.fim-section {
  padding: 0 0 112px;
}

.fim-card {
  position: relative;
  min-height: 540px;
  padding: 70px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 50px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(
      circle at 80% 30%,
      rgb(189 44 53 / 45%),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      var(--gray-950),
      #29242a 55%,
      var(--burgundy-950)
    );
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.section-label-light {
  color: #e7a6ab;
}

.fim-content {
  position: relative;
  z-index: 2;
}

.fim-content h2 {
  max-width: 670px;
  color: var(--white);
}

.fim-content > p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--gray-300);
}

.fim-list {
  margin: 29px 0 34px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.fim-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--gray-200);
  font-size: 0.91rem;
}

.fim-list span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--burgundy-600);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.fim-card {
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(480px, 1.1fr);
  align-items: center;
  gap: 64px;
}

.fim-visual {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fim-preview-card {
  width: 100%;
  max-width: 750px;
  overflow: hidden;

  background: #111318;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 24px;

  box-shadow:
    0 34px 85px rgb(0 0 0 / 34%),
    0 0 0 1px rgb(255 255 255 / 4%);

  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.fim-preview-card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 44px 100px rgb(0 0 0 / 42%),
    0 0 0 1px rgb(255 255 255 / 7%);
}

.fim-preview-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #080a0d;
}

/*
 * Kluczowa zmiana:
 * brak stałej wysokości i brak object-fit: cover.
 * Pokazywany jest cały baner bez ucinania.
 */
.fim-preview-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.fim-preview-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  box-shadow:
    inset 0 -45px 55px rgb(8 10 13 / 30%);
}

.fim-preview-footer {
  min-height: 82px;
  padding: 14px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  background:
    linear-gradient(
      135deg,
      rgb(25 27 32 / 98%),
      rgb(42 25 30 / 98%)
    );

  border-top: 1px solid rgb(255 255 255 / 9%);
}

.fim-preview-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.fim-preview-brand img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;

  object-fit: cover;
  background: #686c72;
  border-radius: 13px;

  box-shadow: 0 8px 20px rgb(0 0 0 / 25%);
}

.fim-preview-brand > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fim-preview-brand strong {
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.2;
}

.fim-preview-brand span {
  margin-top: 4px;
  overflow: hidden;

  color: rgb(255 255 255 / 58%);
  font-size: 0.67rem;
  line-height: 1.3;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.fim-preview-link {
  min-height: 40px;
  padding: 0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;

  color: #ffffff;
  background: #ba2027;
  border-radius: 10px;

  font-size: 0.74rem;
  font-weight: 750;

  transition:
    background 160ms ease,
    transform 160ms ease;
}

.fim-preview-link:hover {
  background: #d3262e;
  transform: translateY(-2px);
}

.fim-preview-link span {
  font-size: 1rem;
}

@media (max-width: 1050px) {
  .fim-card {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .fim-preview-card {
    max-width: 760px;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .fim-preview-card {
    border-radius: 18px;
  }

  .fim-preview-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .fim-preview-link {
    width: 100%;
  }

  .fim-preview-brand span {
    white-space: normal;
  }
}

/* Logowanie */

.login-section {
  padding: 0 0 112px;
}

.login-grid {
  padding: 55px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 75px;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.login-copy p {
  max-width: 500px;
  margin: 20px 0 0;
  color: var(--gray-600);
}

.login-card {
  padding: 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.login-card-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  color: var(--burgundy-700);
  background: rgb(143 29 37 / 9%);
  border-radius: 15px;
}

.login-card-icon svg {
  width: 27px;
  height: 27px;
}

.login-card > div:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.login-card strong {
  font-size: 1rem;
}

.login-card span {
  margin-top: 3px;
  color: var(--gray-500);
  font-size: 0.79rem;
}

/* Stopka */

.site-footer {
  color: var(--gray-300);
  background: var(--gray-950);
}

.footer-grid {
  padding: 68px 0 50px;
  display: grid;
  grid-template-columns: 1.7fr 0.65fr 0.9fr;
  gap: 70px;
}

.brand-footer .brand-copy strong {
  color: var(--white);
}

.brand-footer .brand-copy span {
  color: var(--gray-400);
}

.footer-brand p {
  max-width: 390px;
  margin: 22px 0 0;
  color: var(--gray-500);
  font-size: 0.87rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-style: normal;
}

.footer-column strong {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-column a,
.footer-column span {
  color: var(--gray-400);
  font-size: 0.84rem;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: var(--gray-500);
  font-size: 0.75rem;
}

.footer-bottom > div {
  display: flex;
  gap: 23px;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* Focus */

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgb(189 44 53 / 38%);
  outline-offset: 4px;
}

/* Responsywność */

@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero-content {
    max-width: 780px;
  }

  .hero-panel {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading p {
    max-width: 670px;
  }

  .fim-card {
    grid-template-columns: 1fr;
  }

  .fim-visual {
    min-height: 300px;
  }

  .login-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 760px) {
  .container,
  .header-inner {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-mark {
    width: 45px;
    height: 45px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy span {
    font-size: 0.69rem;
  }

  .button-small {
    min-height: 41px;
    padding-inline: 14px;
  }

  .hero {
    padding: 66px 0 75px;
  }

  .hero-grid {
    gap: 50px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-trust {
    display: grid;
    gap: 13px;
  }

  .hero-panel {
    padding-inline: 0;
  }

  .panel-window {
    transform: none;
  }

  .floating-card {
    display: none;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .intro-strip-inner {
    grid-template-columns: 1fr;
    min-height: 115px;
  }

  .intro-line {
    display: none;
  }

  .features-section {
    padding: 80px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 325px;
    padding: 28px;
  }

  .feature-link {
    right: 28px;
    left: 28px;
  }

  .fim-section,
  .login-section {
    padding-bottom: 80px;
  }

  .fim-card {
    padding: 42px 26px;
    border-radius: 22px;
  }

  .fim-logo-card {
    width: 190px;
    height: 190px;
  }

  .fim-logo-card img {
    width: 155px;
    height: 155px;
  }

.fim-visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.visual-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  pointer-events: none;
}

.visual-orbit-one {
  width: 440px;
  height: 440px;
}

.visual-orbit-two {
  width: 335px;
  height: 335px;
  border-color: rgb(189 44 53 / 32%);
}

.fim-showcase {
  width: min(100%, 620px);
  overflow: hidden;
  background: rgb(255 255 255 / 96%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 26px;
  box-shadow:
    0 38px 90px rgb(0 0 0 / 32%),
    0 0 0 1px rgb(255 255 255 / 6%);
  transform: perspective(1200px) rotateY(-3deg);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.fim-showcase:hover {
  transform: perspective(1200px) rotateY(0deg) translateY(-5px);
  box-shadow:
    0 48px 110px rgb(0 0 0 / 38%),
    0 0 0 1px rgb(255 255 255 / 8%);
}

.fim-banner {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #30343a;
}

.fim-banner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 450ms ease;
}

.fim-showcase:hover .fim-banner > img {
  transform: scale(1.025);
}

.fim-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgb(20 21 24 / 5%) 30%,
      rgb(20 21 24 / 72%) 100%
    ),
    linear-gradient(
      90deg,
      rgb(70 10 16 / 28%),
      transparent 52%
    );
}

.fim-logo-card {
  position: absolute;
  left: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 17px 11px 11px;
  color: #fff;
  background: rgb(27 29 33 / 78%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 18px;
  box-shadow: 0 15px 35px rgb(0 0 0 / 24%);
  backdrop-filter: blur(16px);
}

.fim-logo-card img {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgb(0 0 0 / 24%);
}

.fim-logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.fim-logo-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.fim-logo-copy span {
  margin-top: 4px;
  color: rgb(255 255 255 / 68%);
  font-size: 0.66rem;
  letter-spacing: 0.035em;
}

.fim-status {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d6f5e6;
  background: rgb(25 36 31 / 72%);
  border: 1px solid rgb(116 218 171 / 20%);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.fim-status-dot {
  width: 8px;
  height: 8px;
  background: #61d49a;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(97 212 154 / 13%);
}

.fim-showcase-footer {
  min-height: 84px;
  padding: 17px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #202328;
  background: #fff;
}

.fim-showcase-footer > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fim-showcase-footer strong {
  font-size: 0.88rem;
}

.fim-showcase-footer span {
  margin-top: 3px;
  color: #777d86;
  font-size: 0.68rem;
}

.fim-showcase-link {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #fff;
  background: #8f1d25;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 750;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.fim-showcase-link:hover {
  background: #a8242d;
  transform: translateY(-2px);
}

.fim-showcase-link span {
  margin: 0;
  color: inherit;
  font-size: 1rem;
}

@media (max-width: 760px) {
  .fim-visual {
    min-height: auto;
    padding-block: 20px;
  }

  .fim-showcase {
    transform: none;
    border-radius: 20px;
  }

  .fim-showcase:hover {
    transform: translateY(-3px);
  }

  .fim-logo-card {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .fim-logo-card img {
    width: 50px;
    height: 50px;
  }

  .fim-status {
    top: 12px;
    right: 12px;
  }

  .fim-showcase-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .fim-showcase-link {
    width: 100%;
  }

  .visual-orbit {
    display: none;
  }
}

  .login-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .login-card .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-bottom {
    padding: 23px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}