:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #151515;
  --muted: #666a70;
  --line: #dfe1e4;
  --soft: #eef1f3;
  --red: #e81837;
  --ink: #08090b;
  --green: #0f6f5d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  width: 152px;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.brand picture,
.hero-logo picture {
  display: block;
  width: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #30343a;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-color: var(--red);
}

.hero {
  min-height: calc(100vh - 81px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 52%, rgba(238, 241, 243, 0.96) 100%),
    url("/assets/logo-ipisz-1600.webp") center right / min(880px, 70vw) auto no-repeat;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 6.6vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: #454a50;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
}

.hero-logo {
  width: min(620px, 100%);
  justify-self: end;
  padding: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
}

.hero-logo img {
  width: 100%;
  aspect-ratio: 1.66;
  object-fit: contain;
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 64px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.content {
  max-width: 760px;
  color: #41464c;
  font-size: 19px;
  line-height: 1.68;
}

.content p {
  margin: 0 0 18px;
}

.content p:last-child {
  margin-bottom: 0;
}

.light-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 36px;
}

.service-grid,
.reason-grid,
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.service-number {
  margin-bottom: auto;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.service-card p,
.focus-grid p,
.reason-grid p,
.feature-copy p,
.contact-box p {
  color: var(--muted);
  line-height: 1.58;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #f2f4f4;
}

.feature-copy {
  max-width: 760px;
}

.feature-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 18px;
}

.feature-panel {
  padding: 12px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.panel-line {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.panel-line:last-child {
  border-bottom: 0;
}

.panel-line span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.panel-line strong {
  font-size: 22px;
}

.product-focus {
  background: #fff;
}

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

.focus-grid article {
  min-height: 220px;
  padding: 28px;
  border-left: 4px solid var(--red);
  background: var(--soft);
}

.dark-band {
  color: #fff;
  background: #111316;
}

.dark-band .eyebrow {
  color: #ff3f58;
}

.dark-band h2 {
  max-width: 980px;
}

.reason-grid div {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.reason-grid p {
  color: #c3c8ce;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #fff;
}

.contact-box {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafafa;
}

.contact-box p {
  margin: 0 0 16px;
}

.contact-box a {
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
}

.contact-box .note {
  margin-top: 18px;
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(20px, 5vw, 64px);
  color: #d7dbe0;
  background: #08090b;
  font-size: 14px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split,
  .feature,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background: linear-gradient(145deg, #fff 0%, #eef1f3 100%);
  }

  .hero-logo {
    justify-self: start;
  }

  .service-grid,
  .reason-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand {
    width: 132px;
    height: 46px;
  }

  .main-nav {
    gap: 16px;
    font-size: 13px;
  }

  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .lead {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

  .hero-logo {
    padding: 16px;
  }

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

  .panel-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-box {
    padding: 22px;
  }

  .contact-box a {
    font-size: 20px;
  }
}
