:root {
  --gold: #c1a968;
  --gray: #505050;
  --white: #ffffff;
  --black: #000000;
  --magenta: #ff00ff;
  --container: 1680px;
  --panel-gradient: linear-gradient(180deg, #373737 0%, #515151 100%);
  --button-gradient: linear-gradient(90deg, #1d1d1d 0%, #404040 100%);
  --button-gradient-hover: linear-gradient(90deg, #0f0f0f 0%, #404040 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: "klavika-web", sans-serif;
  font-weight: 700;
  line-height: 1.08;
}

p {
  margin: 0;
  color: #e8e8e8;
  line-height: 1.45;
  font-size: 18px;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 48px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.site-header { background: #efefef; }
.header-inner { min-height: 74px; display: flex; align-items: center; }
.top-logo { width: 280px; max-width: 100%; height: auto; display: block; }
.mobile-menu-toggle { display: none; }
.mobile-menu { display: none; }

.hero, .banner, .datacenter, .cta, .orbit { position: relative; isolation: isolate; }
.bg-hero::before, .bg-city::before, .bg-data::before, .bg-modernizacja::before, .bg-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-hero::before,
.bg-footer::before {
  background-attachment: fixed;
}
.bg-hero::before { background-image: url("../img/hero_bg_alt.jpg"); }
.bg-modernizacja::before { background-image: url("../img/modernizacja_bg.jpg"); }
.bg-city::before { background-image: url("../img/wyposaz_bg.jpg"); }
.bg-data::before { background-image: url("../img/zmodernizuj_bg.jpg"); }
.bg-footer::before { background-image: url("../img/hero_bg.jpg"); }

.hero { min-height: 640px; }
.hero-inner { padding-top: 94px; }
.hero h1 { font-size: clamp(58px, 7vw, 98px); max-width: 520px; margin-bottom: 20px; }
.hero h1 span { display: block; margin-bottom: -10px; text-transform: uppercase  }
.hero h1 span:nth-child(2) { display: block; font-style: italic}
.hero h1 span:nth-child(3) { display: block; }

.hero p { font-size: clamp(22px, 2vw, 32px); margin-bottom: 30px; max-width: 760px; }
.gold { color: var(--gold); }

.hero h1 span,
.hero p,
.hero .btn {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
.hero.is-visible h1 span:nth-child(1) { transition-delay: .1s; opacity: 1; transform: translateY(0); }
.hero.is-visible h1 span:nth-child(2) { transition-delay: .28s; opacity: 1; transform: translateY(0); }
.hero.is-visible h1 span:nth-child(3) { transition-delay: .46s; opacity: 1; transform: translateY(0); }
.hero.is-visible p { transition-delay: .66s; opacity: 1; transform: translateY(0); }
.hero.is-visible .btn { transition-delay: .82s; opacity: 1; transform: translateY(0);  }

.hero .btn {text-transform: uppercase}
.hero p {padding-bottom: 55px}

.btn {
  display: inline-block;
  padding: 1rem 2.125rem;
  margin-top: 5px;
  margin-bottom: 5px;
  background: var(--button-gradient);
  color: #fff;
  text-decoration: none;
  border: 1px solid #696b71;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 8px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover {
  background: var(--button-gradient-hover);
  border-color: #7b7d83;
  transform: translateY(-1px);
}
.btn-dark {
  padding: 1rem 2.125rem;
  margin-top: 5px;
  margin-bottom: 5px;
  border-width: 1px;
  background: var(--button-gradient);
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

.contact-form .btn {margin-top: 20px}

.anchor-strip { background: #ececec; position: sticky; top: 0; z-index: 30; }
.anchor-strip .container { padding-top: 20px; padding-bottom: 20px; }
.anchor-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
}
.anchor-nav a {
  position: relative;
  color: #202020;
  font-size: 14px;
  text-decoration: none;
  padding-bottom: 4px;
  font-weight: 400;
}
.anchor-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #000;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.anchor-nav a:hover::after,
.anchor-nav a.active::after { transform: scaleX(1); }
.anchor-nav a.active { font-weight: 700; }

.orbit { padding: 76px 0 64px; }
.stat-circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 98px;
}
.circle-card {
  background: #000000a3;
  border: 1px solid #343434;
  text-align: center;
  padding: 48px 24px 68px 24px;
  min-height: 350px;
}
.circle-progress { width: 230px; height: 230px; margin: 0 auto 22px; position: relative; }
.circle-progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.circle-progress .track,
.circle-progress .bar {
  fill: none;
  stroke-width: 8;
}
.circle-progress .track { stroke: rgba(193, 169, 104, 0.25); }
.circle-progress .bar {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 301.59;
  stroke-dashoffset: 301.59;
}
.circle-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 46px "klavika-web", sans-serif;
}
.circle-card p { font-size: 18px; line-height: 1.35; }

sup {font-size: 12px; padding-left: 3px;}

.features-head { text-align: center; margin-bottom: 58px; }
.features-head h2 { font-size: clamp(42px, 4vw, 64px); margin-bottom: 20px; }
.features-head p { font-size: clamp(18px, 1.6vw, 23px); max-width: 1180px; margin: 0 auto; }
.magenta { color: var(--magenta); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.kpi article,
.case-card,
.video-copy,
.solution-copy {
  background: var(--panel-gradient);
  border: 1px solid #2f2f2f;
}

.three-cards article {background: #000000a3}

.feature-grid article {
  background: #000000a3;
}
.feature-grid article { padding: 74px 42px; min-height: 380px; }
.feature-icon { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto 18px; }
.feature-grid h3,
.video-copy h3,
.kpi h3,
.three-cards h3,
.case-card h3 {
  font-size: clamp(28px, 2.1vw, 38px);
  margin-bottom: 18px;
}
.feature-grid h3  {text-align: center}
.feature-grid p {text-align: center}

.feature-grid p,
.video-copy p,
.kpi-desc,
.three-cards p,
.case-card p { font-size: clamp(15px, 1.10vw, 16px); }

.video { padding: 72px 0; }
.section-title { text-align: center; font-size: clamp(40px, 3.8vw, 58px); margin-bottom: 34px; }
.video-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.video-trigger {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}
.video-box {
  min-height: 320px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-placeholder {
  border: 2px dashed #8a8a8a;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3f3f3f, #292929);
  color: #fff;
  text-align: center;
  padding: 18px;
  min-height: 260px;
  font-family: "klavika-web", sans-serif;
  font-size: 42px;
  font-weight: 700;
}
.video-copy { padding: 42px; }
.video-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner { min-height: 360px; display: flex; align-items: center; }
.banner .container { padding-left: 20px; }
.banner-inner { max-width: 1620px; }
.banner h2 { font-size: clamp(40px, 3.8vw, 56px); margin-bottom: 26px; }
.banner p { font-size: clamp(18px, 1.45vw, 24px); }

.kpi { padding: 76px 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.kpi article { padding: 64px 54px; text-align: center; min-height: 330px; }
.kpi h3 { font-size: clamp(28px, 2vw, 36px); margin-bottom: 24px; }
.kpi-prefix { font-size: 22px; color: #d7d7d7; margin-bottom: 8px; }
.kpi-value {
  color: var(--gold);
  font-family: "klavika-web", sans-serif;
  font-size: clamp(52px, 4.5vw, 66px);
  line-height: 1;
  margin: 0 0 18px;
  font-weight: 800
}

.devices { padding: 34px 0 72px; }
.device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.device-card { min-height: 260px; padding: 54px 34px 34px 34px; background: #161616; border: 1px solid #2f2f2f; }
.device-copy h3 { font-size: 42px; margin-bottom: 14px; }
.device-copy p { font-size: 19px; margin-bottom: 14px; }
.device-copy ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: #e8e8e8;
  display: grid;
  gap: 8px;
  padding-top: 40px;
  padding-bottom: 40px
}
.device-image {
  display: grid;
  place-items: center;
  background: #f1f1f1;
}
.device-image img {
  max-width: 100%;
  max-height: 330px;
  height: auto;
  display: block;
}

.datacenter { padding: 80px 0 74px; }
.datacenter h2 { text-align: center; font-size: clamp(38px, 3.7vw, 56px); margin-bottom: 28px; }
.section-lead { text-align: center; max-width: 1180px; margin: 0 auto 50px; font-size: clamp(18px, 1.35vw, 24px); }
.three-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.three-cards article { min-height: 270px; text-align: center; padding: 74px 40px; }
.three-cards p strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: "klavika-web", sans-serif;
  font-weight: 700;
  font-size: clamp(25px, 1.8vw, 32px);
  line-height: 1.1;
}

.solutions { padding: 74px 0; }
.solution-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 30px; }
.solution-copy { padding: 38px 40px; }
.solution-copy h3 { font-size: 42px; margin-bottom: 26px; }
.solution-copy p { font-size: 22px; margin-bottom: 30px; }
.solution-media { background: #ff00ff; color: #000; border: none; }

.cases { padding: 64px 0 84px; }
.cases h2 { text-align: center; font-size: clamp(36px, 3.5vw, 54px); margin-bottom: 24px; }
.cases .section-lead { margin-bottom: 46px; }
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.case-card { padding: 0 0 38px; }
.case-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #2f2f2f;
}
.case-card h3,
.case-card p,
.case-card .btn { margin-left: 44px; margin-right: 44px; }
.case-card h3 { margin-top: 68px; }
.case-card p { margin-bottom: 28px; min-height: 160px;}

.cta { padding: 90px 0; min-height: 320px; }
.cta-inner { display: block; }
.cta h2 { font-size: clamp(38px, 3.8vw, 58px); margin-bottom: 36px; max-width: 920px; }
.contact-copy p {
  font-size: 18px;
  max-width: 680px;
  margin-bottom: 24px;
}
.contact-form {
  padding: 0px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
}
.contact-form .field-full,
.contact-form .btn,
.contact-form .form-status {
  grid-column: 1 / -1;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #f2f2f2;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid #3a3a3a;
  color: #fff;
  font: inherit;
  padding: 15px 12px;
}
.contact-form input::placeholder { color: #9a9a9a; opacity: 1; }
.contact-form select { color: #9a9a9a; }
.contact-form select:valid { color: #fff; }
.consent-field {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 11px!important;
  line-height: 1.4;
}
.consent-field input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.consent-field .checkmark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  border: 1px solid #b8b8b8;
  border-radius: 4px;
  background: #fff;
  position: relative;
}
.consent-field input[type="checkbox"]:checked + .checkmark::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: center / 12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23b38a00' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5 6.2 11.7 13 4.8'/%3E%3C/svg%3E");
}

.stagger-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .95s ease, transform .95s ease;
}
.stagger-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}
.video-modal.is-open { display: block; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.video-modal__dialog {
  position: relative;
  width: min(92vw, 1100px);
  margin: 6vh auto 0;
  background: #000;
  border: 1px solid #3a3a3a;
}
.video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}
.video-modal__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.video-modal__frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.form-status {
  min-height: 20px;
  font-size: 13px;
  padding-top: 20px;
  font-size: 16px;
}
.form-status.ok {
  color: var(--gold);
}
.form-status.err { color: #ff8484; }

.sticky-contact-tab {
  position: fixed;
  right: -58px;
  top: 30%;
  transform: rotate(-90deg);
  transform-origin: center;
  background: #e5194a;
  color: #fff;
  text-decoration: none;
  font-family: "klavika-web", sans-serif;
  font-weight: 700;
  padding: 10px 20px 10px 20px;
  border-radius: 0;
  z-index: 45;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid #242424;
  padding: 38px 0 64px;
}
.disclaimer-text p {
  font-size: 11px;
  color: #ddd;
  margin-bottom: 8px;
  line-height: 1.45;
}
.legal-label {
  margin-top: 28px;
  font-size: 12px;
}
.legal-copy {
  margin-top: 95px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .container { padding: 0 32px; }
  .stat-circles, .feature-grid, .kpi-grid, .three-cards, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .device-grid, .video-row, .solution-row { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero-inner { padding-top: 84px; }
  .hero h1 { font-size: clamp(52px, 9vw, 88px); }
  .hero p { font-size: clamp(20px, 3vw, 30px); }
  .banner .container { padding-left: 32px; }
  .contact-form { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
  }
  .container { padding: 0 16px; }
  .header-inner {
    min-height: 64px;
    justify-content: space-between;
  }
  .top-logo { width: 175px; }
  .mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1c1c1c;
    margin-left: auto;
  }
  .mobile-menu {
    display: grid;
    grid-template-rows: 1fr;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    background: #ececec;
    border-top: 1px solid #d1d1d1;
    padding: 0 16px;
    transition: max-height .34s ease, opacity .25s ease, transform .34s ease, padding .34s ease;
  }
  .mobile-menu.is-open {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    gap: 10px;
    padding: 10px 16px 14px;
  }
  .mobile-menu a {
    color: #202020;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .anchor-strip { display: none; }
  .hero { min-height: 450px; }
  .hero-inner { padding-top: 52px; }
  .btn, .btn-dark { font-size: 16px; padding: 10px 18px; }
  .anchor-nav a { font-size: 13px; line-height: 1.35; }
  .stat-circles, .feature-grid, .kpi-grid, .device-grid, .three-cards, .cases-grid { grid-template-columns: 1fr; }
  #komputery .device-grid article:nth-child(3) { order: 4; }
  #komputery .device-grid article:nth-child(4) { order: 3; }
  .orbit, .video, .kpi, .devices, .datacenter, .solutions, .cases, .cta { padding: 42px 0; }
  .circle-progress { width: 110px; height: 110px; }
  .circle-value { font-size: 40px; }
  .case-card h3, .case-card p, .case-card .btn { margin-left: 24px; margin-right: 24px; }
  .sticky-contact-tab { right: -50px; font-size: 14px; padding: 8px 14px; }
  .bg-hero::before,
  .bg-footer::before { background-attachment: scroll; }
}

@media (min-width: 1340px) and (max-width: 1680px) {
  p { font-size: 16px; }
  .hero h1 { font-size: clamp(52px, 5.2vw, 80px); }
  .hero p { font-size: clamp(19px, 1.5vw, 24px); }
  .btn { font-size: 15px; }
  .features-head h2,
  .section-title,
  .banner h2,
  .datacenter h2,
  .cases h2,
  .cta h2 { font-size: clamp(34px, 2.9vw, 46px); }
  .device-copy h3 { font-size: 34px; }
}
