:root {
  --bg: #f3f4f7;
  --surface: #ffffff;
  --surface-dark: #1f2c48;
  --surface-dark-2: #172131;
  --text: #1f2c48;
  --text-soft: #64708a;
  --border: rgba(31, 44, 72, 0.12);
  --accent: #c97d3c;
  --accent-soft: rgba(201, 125, 60, 0.12);
  --shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1200px;
  --header-h: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.section {
  padding: 96px 0;
}

.section-alt {
  background: #f7f8fb;
}

.section-dark {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.05), transparent 32%),
    linear-gradient(180deg, var(--surface-dark), var(--surface-dark-2));
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(243, 244, 247, 0.9);
  border-bottom: 1px solid rgba(31, 44, 72, 0.08);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface-dark), #2f4370);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.96rem;
  line-height: 1.05;
  color: var(--text);
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--surface-dark);
  color: #fff !important;
  box-shadow: var(--shadow);
}

.nav-cta:hover {
  background: #2a3b60;
}

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.24s ease, opacity 0.24s ease, top 0.24s ease;
}

.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle span:nth-child(3) { top: 31px; }

.nav-toggle.is-active span:nth-child(1) {
  top: 24px;
  transform: rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  top: 24px;
  transform: rotate(-45deg);
}

.hero {
  padding-top: 72px;
}

.hero-grid,
.about-grid,
.contact-grid,
.showcase-grid {
  display: grid;
  gap: 42px;
  align-items: center;
}

.hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.about-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.showcase-grid {
  grid-template-columns: 0.95fr 1.05fr;
  margin-top: 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #f3c396;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading--left {
  margin-left: 0;
  text-align: left;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.75rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  max-width: 14ch;
}

.section-heading h2 {
  max-width: 14ch;
  margin-inline: auto;
}

.section-heading--left h2 {
  margin-inline: 0;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.hero-lead,
.section-heading p,
.showcase-copy p,
.about-content p,
.contact-copy p,
.card p,
.feature-list,
.footer-copy {
  color: var(--text-soft);
}

.section-dark .about-content p,
.section-dark .stat span {
  color: rgba(255,255,255,0.8);
}

.hero-lead {
  max-width: 60ch;
  margin: 22px 0 0;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 18px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--surface-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: #2a3b60;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(31, 44, 72, 0.22);
}

.btn-full {
  width: 100%;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.hero-point,
.card,
.contact-form,
.contact-box {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-point {
  padding: 20px;
}

.hero-point strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.hero-point span {
  display: block;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  padding: 28px;
}

.card h3 {
  margin-bottom: 12px;
}

.card-icon {
  position: relative;
  padding-top: 72px;
}

.card-icon-mark {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
}

.feature-list {
  margin: 22px 0 0;
  padding-left: 20px;
}

.feature-list li + li {
  margin-top: 10px;
}

.media-placeholder {
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(31, 44, 72, 0.22);
  background:
    linear-gradient(135deg, rgba(201, 125, 60, 0.08), rgba(31, 44, 72, 0.08)),
    #eef1f7;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-soft);
  padding: 28px;
  min-height: 360px;
}

.media-placeholder span {
  max-width: 22ch;
  font-weight: 600;
}

.media-placeholder--hero {
  min-height: 560px;
}

.media-placeholder--browser {
  min-height: 420px;
}

.media-placeholder--portrait {
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)),
    rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.86);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.stat {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 8px;
}

.contact-form {
  padding: 28px;
}

.form-row + .form-row {
  margin-top: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #98a1b3;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(201, 125, 60, 0.55);
  box-shadow: 0 0 0 4px rgba(201, 125, 60, 0.12);
}

.contact-form .btn {
  margin-top: 22px;
}

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(31, 44, 72, 0.08);
  background: #f0f2f7;
}

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

.brand-footer .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.footer-copy {
  margin: 0;
  text-align: right;
}

@media (max-width: 1100px) {
  .hero-points,
  .cards-grid--4,
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid--3,
  .hero-grid,
  .about-grid,
  .contact-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  h1,
  h2,
  .section-heading h2 {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 10px;
    padding: 16px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

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

  .site-nav a {
    padding: 10px 6px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 2px;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 78px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .hero-points,
  .cards-grid--4,
  .cards-grid--3,
  .about-stats {
    grid-template-columns: 1fr;
  }

  .card,
  .contact-form,
  .hero-point {
    padding: 22px;
  }

  .media-placeholder--hero {
    min-height: 420px;
  }

  .media-placeholder--portrait {
    min-height: 420px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
  }
}

.contact-box {
  padding: 1em;
  margin: 1em 0;
}

/* === wizytówka: mniejsze nagłówki === */
h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.hero-lead {
  font-size: 1.02rem;
  max-width: 56ch;
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .hero-lead {
    font-size: 0.98rem;
  }
}