:root {
  --white: rgba(255, 255, 255, 0.94);
  --muted: rgba(220, 235, 255, 0.74);
  --blue: #1f8cff;
  --deep: #041124;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--white);
  background: var(--deep);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

.business-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  isolation: isolate;
}

.business-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: url("../assets/backgrounds/business-page-background.png") center center / cover no-repeat;
  content: "";
  pointer-events: none;
}

.business-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 5.9rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 4.8rem);
  background: rgba(2, 15, 34, 0.62);
  border-bottom: 1px solid rgba(80, 152, 230, 0.22);
  backdrop-filter: blur(10px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: clamp(8.8rem, 14vw, 13rem);
}

.brand-link img {
  display: block;
  width: 100%;
  height: auto;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-height: 2.6rem;
  padding: 0.2rem 1.35rem;
  color: rgba(235, 247, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
  background: rgba(5, 26, 55, 0.58);
  border: 1px solid rgba(75, 165, 255, 0.72);
  border-radius: 4px;
  box-shadow: inset 0 0 16px rgba(31, 140, 255, 0.12), 0 0 22px rgba(31, 140, 255, 0.12);
}

.business-tabs {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, auto);
  overflow: hidden;
  background: rgba(3, 20, 43, 0.72);
  border: 1px solid rgba(80, 152, 230, 0.28);
  border-radius: 5px;
}

.business-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.25rem 1rem;
  color: rgba(220, 235, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  border-left: 1px solid rgba(80, 152, 230, 0.2);
}

.business-tabs a:first-child {
  border-left: 0;
}

.business-tabs a.active {
  color: rgba(250, 253, 255, 0.98);
  background: rgba(31, 140, 255, 0.2);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.product-selector {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 1;
  place-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 5rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  width: min(100%, 68rem);
}

.product-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.35rem;
  align-items: center;
  min-height: clamp(22rem, 56vh, 34rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  background: rgba(3, 18, 39, 0.76);
  border: 1px solid rgba(80, 152, 230, 0.28);
  border-radius: 6px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3), inset 0 0 36px rgba(31, 140, 255, 0.04);
}

.product-logo-area {
  display: grid;
  align-self: stretch;
  place-items: center;
  min-height: 0;
}

.product-card-logo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.product-card-logo-abucco {
  width: min(72%, 19rem);
  max-height: 20rem;
}

.product-card-logo-kalibrointipro {
  width: min(100%, 30rem);
  max-height: 10rem;
  border-radius: 4px;
}

.product-card-name {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 1;
  place-items: center;
  min-height: calc(100vh - 9.6rem);
  padding: clamp(2.4rem, 6vw, 5.4rem) clamp(1.25rem, 4vw, 5rem);
}

.hero-content {
  display: grid;
  justify-items: center;
  width: min(100%, 50rem);
  margin: 0 auto;
  text-align: center;
}

.abucco-logo {
  display: block;
  width: clamp(13rem, 24vw, 22rem);
  height: auto;
  margin-bottom: clamp(1.4rem, 3vw, 2.3rem);
}

.kalibrointipro-content {
  width: min(100%, 56rem);
}

.kalibrointipro-logo {
  display: block;
  width: min(100%, 44rem);
  height: auto;
  border-radius: 5px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.kalibrointipro-content p {
  width: min(100%, 50rem);
}

h1 {
  margin: 0;
  color: rgba(250, 253, 255, 0.96);
  font-size: clamp(2.25rem, 5.6vw, 5.8rem);
  font-weight: 700;
  line-height: 1.04;
  text-shadow: 0 0 26px rgba(6, 21, 40, 0.9);
}

h1 span {
  color: #248fff;
}

.title-line {
  width: clamp(4.5rem, 10vw, 8rem);
  height: 2px;
  margin: clamp(1.25rem, 2.7vw, 2rem) 0 clamp(1.3rem, 3vw, 2.1rem);
  background: linear-gradient(90deg, rgba(31, 140, 255, 0), rgba(31, 140, 255, 0.95), rgba(31, 140, 255, 0));
}

p {
  width: min(100%, 43rem);
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  font-weight: 300;
  line-height: 1.65;
  text-shadow: 0 0 18px rgba(4, 12, 26, 0.88);
}

p + p {
  margin-top: 0.65rem;
}

.status-box {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: clamp(1.7rem, 3.6vw, 2.7rem);
  padding: 1rem 1.35rem;
  color: rgba(238, 247, 255, 0.9);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  background: rgba(2, 15, 32, 0.72);
  border: 1px solid rgba(80, 160, 240, 0.28);
  border-radius: 5px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 0 26px rgba(36, 143, 255, 0.08);
}

.status-icon {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(36, 143, 255, 0.86);
  border-radius: 50%;
}

.status-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.4rem;
  height: 0.4rem;
  background: rgba(36, 143, 255, 0.86);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.back-to-top-wrap {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem 1.25rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  color: rgba(235, 247, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
  background: rgba(5, 20, 40, 0.58);
  border: 1px solid rgba(80, 152, 230, 0.5);
  border-radius: 4px;
  cursor: pointer;
}

.business-footer {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem 1.55rem;
  color: rgba(218, 232, 248, 0.58);
  font-size: 0.82rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .business-page {
    min-height: 100svh;
  }

  .business-page::before {
    background-position: 54% center;
  }

  .business-header {
    grid-template-columns: 1fr auto;
    min-height: auto;
    gap: 0.85rem 1rem;
    padding: 0.95rem 1rem;
  }

  .brand-link {
    width: clamp(7rem, 34vw, 9rem);
  }

  .home-link {
    min-height: 2.35rem;
    padding: 0.2rem 0.9rem;
    font-size: 0.66rem;
  }

  .business-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .business-tabs a {
    min-width: 0;
    min-height: 2.4rem;
    padding: 0.25rem 0.35rem;
    font-size: clamp(0.55rem, 2.45vw, 0.68rem);
  }

  .product-selector {
    padding: 1.75rem 1rem 3.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    width: min(100%, 34rem);
  }

  .product-card {
    min-height: 20rem;
  }

  .product-card-logo-abucco {
    width: min(68%, 17rem);
    max-height: 16rem;
  }

  .product-card-logo-kalibrointipro {
    width: min(100%, 29rem);
    max-height: 9rem;
  }

  .hero {
    align-items: start;
    min-height: auto;
    padding: 3.4rem 1.25rem 4rem;
  }

  .abucco-logo {
    width: min(74vw, 18rem);
    margin-bottom: 1.45rem;
  }

  .kalibrointipro-hero {
    align-items: center;
  }

  .kalibrointipro-logo {
    width: min(100%, 38rem);
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.45rem);
    line-height: 1.08;
  }

  .title-line {
    margin: 1.25rem 0 1.35rem;
  }

  p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .status-box {
    width: min(100%, 22rem);
    justify-content: center;
    margin-top: 1.75rem;
    padding: 0.95rem 1rem;
    font-size: 0.92rem;
  }

  .business-footer {
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 420px) {
  .business-header {
    padding: 0.85rem 0.85rem;
  }

  .brand-link {
    width: 7.15rem;
  }

  .home-link {
    padding: 0.2rem 0.68rem;
    font-size: 0.58rem;
  }

  .business-tabs a {
    font-size: clamp(0.49rem, 2.6vw, 0.6rem);
  }

  .product-card {
    min-height: 17rem;
  }

  .hero {
    padding: 2.7rem 1rem 3.5rem;
  }

  .abucco-logo {
    width: min(78vw, 15.5rem);
  }

  .kalibrointipro-logo {
    width: 100%;
  }

  h1 {
    font-size: clamp(1.85rem, 10.5vw, 2.8rem);
  }
}
