:root {
  --navy: #1a2744;
  --navy-deep: #131d35;
  --red: #c41e3a;
  --red-dark: #a01730;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e2e6ec;
  --shadow-sm: 0 8px 24px rgba(19, 29, 53, 0.08);
  --shadow-md: 0 18px 48px rgba(19, 29, 53, 0.14);
  --radius-lg: 16px;
  --radius-md: 12px;
  --font-display: "Poppins", "Inter", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

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

/* TOP ACCENT BAR */

.top-accent {
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 35%, var(--red) 65%, transparent 100%);
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  color: var(--navy);
  flex-shrink: 0;
}

.logo-image {
  height: 64px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  display: grid;
  line-height: 1.2;
}

.logo-text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.logo-text small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 48px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.18s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

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

.main-nav a:hover::after {
  width: 100%;
}

.header-button {
  flex-shrink: 0;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(196, 30, 58, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(196, 30, 58, 0.34);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* BUTTONS */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(26, 39, 68, 0.26);
}

.button.primary:hover {
  background: var(--navy-deep);
}

.button.outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.button.outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* HERO */

.hero {
  background: var(--white);
  padding-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 560px;
}

.hero-content-wrap {
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-content {
  padding: 56px 56px 56px 0;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow-red {
  color: var(--red);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.hero-subline {
  margin: 22px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 420px;
  font-size: 16px;
  color: var(--muted);
}

.hero-actions {
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-image-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px 0 0 28px;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 6%, black 16%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 6%, black 16%);
}

.hero-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.placeholder-glove {
  width: 110px;
  height: 132px;
  opacity: 0.9;
}

.placeholder-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* SECTIONS - shared */

.section {
  padding: 88px 0;
}

.section-heading {
  margin-bottom: 48px;
}

.section-heading.center {
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.01em;
  color: var(--navy);
  position: relative;
  display: inline-block;
  padding: 0 28px;
}

.section-heading.center h2::before,
.section-heading.center h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 56px;
  height: 1px;
  background: var(--line);
}

.section-heading.center h2::before {
  right: 100%;
}

.section-heading.center h2::after {
  left: 100%;
}

/* APPLICATIONS / ZASTOSOWANIE */

.applications-section {
  background: var(--white);
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.applications-grid article {
  padding: 8px 32px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.applications-grid article:first-child {
  border-left: 0;
}

.applications-grid .icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--red);
}

.applications-grid .icon svg {
  width: 28px;
  height: 28px;
}

.applications-grid h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
}

.applications-grid p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 230px;
  margin-inline: auto;
}

/* ABOUT */

.about-section {
  background: var(--navy);
  color: var(--white);
}

.about-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.about-content h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--white);
}

.about-content p {
  margin: 0;
  max-width: 560px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.78);
}

.about-grid .button.outline-light {
  flex-shrink: 0;
}

/* CONTACT */

.contact-section {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.contact-card strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

/* FOOTER */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 26px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  font-weight: 600;
  color: var(--white);
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-content-wrap {
    height: auto;
  }

  .hero-content {
    padding: 40px 0 36px;
    max-width: none;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-image-frame {
    position: relative;
    height: 320px;
    border-radius: var(--radius-lg);
    margin: 0 0 8px;
  }

  .about-grid {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .applications-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .applications-grid article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 32px 16px 0;
  }

  .applications-grid article:first-child {
    border-top: 0;
    padding-top: 8px;
  }

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

@media (max-width: 760px) {
  .header-button {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .main-nav a {
    width: 100%;
    padding: 10px 0;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-subline {
    font-size: 15px;
  }

  .section {
    padding: 64px 0;
  }

  .logo-text small {
    display: none;
  }

  .logo-image {
    height: 48px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
