/* Homepage — Strona-glowna-kierunek-A.dc.html, 1:1.
   Artboard is 1440 wide with 100px side padding; .me-shell reproduces that.
   Section paddings below are the artboard's vertical values only. */

/* ===================================================== shared section head = */
/* The homepage uses a wider two-column head than the DS SectionHead. */
.home-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 80px;
  align-items: end;
  margin-bottom: 48px;
}

.home-head__main { align-self: center; }

.home-head__title {
  margin: 0;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 640px;
}

.home-head__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.625;
  color: var(--text-secondary);
}

/* The small green square marker used in lists across the page. */
.home-marker {
  width: 7px;
  height: 7px;
  border-radius: 3px;
  background: var(--brand-green);
  flex-shrink: 0;
}

/* Underlined text link ("Zobacz projekt …"). */
.home-sublink {
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid var(--brand-green);
  padding-bottom: 2px;
  text-decoration: none;
  color: var(--text-primary);
  transition: color var(--duration-micro) var(--ease);
}

.home-sublink:hover { color: var(--brand-green-text); }

/* ============================================================== HERO ====== */
.home-hero {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
  overflow: hidden;
}

.home-hero__wash {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 980px;
  background: radial-gradient(
    72% 86% at 72% 44%,
    rgba(234, 246, 238, 0.95) 0%,
    rgba(234, 246, 238, 0.5) 48%,
    rgba(234, 246, 238, 0) 100%
  );
}

.home-hero__grid {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 620px;
  background:
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(180deg, var(--grid-line) 0 1px, transparent 1px 40px);
  -webkit-mask-image: radial-gradient(58% 62% at 34% 48%, #000 0%, transparent 78%);
  mask-image: radial-gradient(58% 62% at 34% 48%, #000 0%, transparent 78%);
}

.home-hero__ring {
  position: absolute;
  border-radius: 50%;
}

.home-hero__ring--1 { top: 70px;  right: 180px; width: 460px; height: 460px; border: 1px solid rgba(15, 37, 51, 0.14); }
.home-hero__ring--2 { top: 130px; right: 240px; width: 340px; height: 340px; border: 1px solid rgba(15, 37, 51, 0.12); }
.home-hero__ring--3 { top: 190px; right: 300px; width: 220px; height: 220px; border: 1px solid rgba(15, 37, 51, 0.10); }
.home-hero__ring--4 { top: 245px; right: 355px; width: 110px; height: 110px; border: 1px solid rgba(15, 37, 51, 0.09); }

.home-hero__arrows {
  position: absolute;
  top: 288px;
  right: 410px;
  width: 210px;
  height: 24px;
  overflow: visible;
}

.home-hero__target {
  position: absolute;
  top: 287px;
  right: 397px;
  width: 26px;
}

.home-hero__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rule-light);
}

.home-hero__inner {
  position: relative;
  padding-block: 48px;
  display: grid;
  grid-template-columns: 640px minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
  min-height: 646px;
}

.home-hero__copy { align-self: center; }

.home-hero__title {
  margin: 0 0 24px;
  font-size: 57px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.home-hero__lead {
  margin: 0 0 24px;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* The artboard renders the copy one step smaller inside the 19px line box. */
.home-hero__lead > span {
  font-size: 15.8px;
  color: #52616b;
}

.home-hero__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  margin-bottom: 24px;
}

.home-hero__point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.home-hero__point:first-child { padding-left: 0; }
.home-hero__point:last-child { padding-right: 0; }
.home-hero__point + .home-hero__point { border-left: 1px solid var(--rule-light); }
.home-hero__point .me-icon { color: var(--brand-green); }

.home-hero__ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.home-hero__art {
  position: relative;
  justify-self: end;
  align-self: end;
  margin-bottom: -48px;
}

.home-hero__art picture,
.home-about__art picture {
  display: block;
}

.home-hero__portrait {
  display: block;
  height: 598px;
  width: auto;
  filter: drop-shadow(-12px 8px 28px rgba(15, 37, 51, 0.12));
}

.home-hero__card {
  position: absolute;
  left: -56px;
  bottom: 74px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-button);
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
}

.home-hero__card p { margin: 0; font-size: 14px; font-weight: 700; }
.home-hero__card p + p { margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--text-secondary); }

/* ============================================================= DOWODY ==== */
.home-proof { padding: 104px 0 32px; }
.home-proof .home-head { margin-bottom: 56px; }
.home-proof .home-head__title { max-width: 600px; }

.home-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-light);
}

.home-proof__item {
  padding: 36px 40px 30px;
  border-right: 1px solid var(--rule-light);
}

.home-proof__item:first-child { padding-left: 0; }
.home-proof__item:last-child { padding-right: 0; border-right: 0; }

.home-proof__stat {
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-proof__label {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.home-proof__detail {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--brand-navy);
}

.home-proof__source {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ============================================================= USŁUGI ==== */
.home-services { padding: 64px 0 104px; background: var(--surface-soft); }

/* featured group */
.home-feature {
  background: var(--surface-success-soft);
  border: 1px solid #cbe7d5;
  border-radius: var(--radius-medium);
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.home-feature__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-feature__tile {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-button);
  background: #fff;
  display: grid;
  place-items: center;
}

.home-feature__tile .me-icon { color: var(--brand-green); }

.home-feature__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-primary);
}

.home-feature__title:hover { color: var(--brand-green-text); }

.home-feature__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.home-feature__text {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.625;
  max-width: 620px;
}

.home-feature__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 32px;
  border-top: 1px solid #cbe7d5;
  border-bottom: 1px solid #cbe7d5;
  padding: 20px 0;
  margin-bottom: 18px;
}

/* secondary groups */
.home-groups {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.home-group {
  border-top: 1px solid var(--border-default);
  padding: 36px 56px 38px 0;
}

.home-group:nth-child(even) {
  border-left: 1px solid var(--border-default);
  padding: 36px 0 38px 56px;
}

.home-group__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.home-group__tile {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-button);
  background: var(--surface-success-soft);
  display: grid;
  place-items: center;
}

.home-group__tile .me-icon { color: var(--brand-green); }

.home-group__title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-primary);
}

.home-group__title:hover { color: var(--brand-green-text); }

.home-group__text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 520px;
}

.home-group__highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface-success-soft);
  border: 1px solid #cbe7d5;
  border-radius: var(--radius-button);
  padding: 14px 16px;
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color var(--duration-micro) var(--ease);
}

.home-group__highlight:hover { border-color: var(--brand-green); }

.home-group__highlight-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.home-group__highlight-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-green-text);
}

.home-group__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 28px;
  border-top: 1px solid var(--rule-light);
  padding-top: 20px;
  margin-bottom: 22px;
}

.home-group--seo .home-group__links { margin-bottom: 24px; }

/* the link rows shared by the featured block and the groups */
.home-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap-min);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-micro) var(--ease);
}

.home-link:hover { color: var(--brand-green-text); }

/* pricing banner */
.home-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-medium);
  padding: 26px 32px;
  margin-top: 24px;
  box-shadow: var(--shadow-soft);
}

.home-banner > :first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.home-banner__title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-banner__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 620px;
}

.home-banner__ctas { display: flex; gap: 12px; flex-shrink: 0; }

/* ============================================================ KLIENCI ==== */
.home-clients { padding: 20px 0 32px; }

.home-clients__title {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.home-clients .op-belt-wrap { margin: 0 -8px; }

.home-clients__note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 760px;
}

/* ========================================================= WSPÓŁPRACA ==== */
.home-process { padding: 88px 0 96px; border-top: 1px solid var(--rule-faint); }
.home-process .home-head { margin-bottom: 64px; }

.home-process__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
}

.home-process__rail {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-green));
}

.home-step__dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--brand-navy);
  margin-bottom: 26px;
  position: relative;
}

.home-step--effect .home-step__dot { background: var(--brand-green); }

.home-step__num {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.home-step__title {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-step__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ============================================================= O MNIE ==== */
.home-about {
  position: relative;
  background: var(--brand-navy);
  color: #fff;
  padding: 96px 0;
  overflow: hidden;
}

.home-about__grid-decor {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 40px);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
}

.home-about__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 88px;
  align-items: center;
}

.home-about__copy { align-self: center; }

.home-about__title {
  margin: 0 0 24px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 560px;
}

.home-about__text {
  margin: 0 0 18px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.625;
  color: var(--text-inverse-secondary);
}

.home-about__text:last-of-type { margin-bottom: 32px; }

.home-about__points {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 40px;
  max-width: 620px;
  border-top: 1px solid var(--border-inverse);
  padding-top: 26px;
  margin-bottom: 34px;
}

.home-about__point {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.home-about__art { position: relative; justify-self: end; }

.home-about__rail {
  position: absolute;
  left: -14px;
  top: 24px;
  bottom: 24px;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-green), rgba(84, 194, 107, 0));
}

.home-about__photo {
  display: block;
  width: 420px;
  height: 525px;
  object-fit: cover;
  border-radius: var(--radius-large);
}

/* ============================================================ PYTANIA ==== */
.home-faq { padding: 96px 0 104px; border-top: 1px solid var(--rule-faint); }

.home-faq__inner {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.home-faq__aside { position: sticky; top: 112px; }

.home-faq__title {
  margin: 0 0 20px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.home-faq__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.625;
  color: var(--text-secondary);
}

.home-faq__list {
  display: grid;
  gap: 12px;
  align-content: start;
  max-width: 720px;
}

.home-faq__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ============================================================ KONTAKT ==== */
.home-contact { padding: 96px 0 104px; background: var(--surface-soft); }

.home-contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 620px;
  gap: 80px;
  align-items: start;
}

.home-contact__aside { padding-top: 6px; }

.home-contact__title {
  margin: 0 0 20px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 460px;
}

.home-contact__lead {
  margin: 0 0 36px;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.625;
  color: var(--text-secondary);
}

.home-contact__points { display: grid; gap: 12px; max-width: 480px; }

.home-point {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-medium);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color var(--duration-micro) var(--ease);
}

a.home-point:hover { border-color: var(--brand-green); }

.home-point__tile {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-button);
  background: var(--surface-success-soft);
  display: grid;
  place-items: center;
}

.home-point__tile .me-icon { color: var(--brand-green); }

.home-point__label { display: block; font-size: 15px; font-weight: 700; }

.home-point__value {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--brand-green-text);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .home-point__value[hidden] {
    display: none !important;
  }
}

.home-point__value--muted { color: var(--text-secondary); font-weight: 400; }

.home-point .me-phone-reveal {
  display: block;
  width: fit-content;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--brand-green-text);
}

/* form */
.home-form {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-large);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.home-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

@media (max-width: 1023px) {
  .home-form__grid { grid-template-columns: minmax(0, 1fr); }
}

.home-form__hint {
  margin: 12px 0 22px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.home-form__consents {
  display: grid;
  gap: 20px;
  border-top: 1px solid var(--rule-light);
  padding-top: 22px;
  /* The artboard separates the consents from the fields above as well. */
  margin-top: 20px;
  margin-bottom: 20px;
}

.home-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--rule-light);
  padding-top: 22px;
}

.home-form__foot .me-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.home-form__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 280px;
}

.home-form__status {
  flex: 1 1 100%;
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 600;
}

.home-form__status[hidden] {
  display: none !important;
}

.home-form__status--ok {
  background: var(--surface-success-soft);
  border: 1px solid #a6dcb5;
  color: var(--text-primary);
}

.home-form__status--error {
  background: #fdf3f3;
  border: 1px solid var(--feedback-error-border);
  color: var(--feedback-error-text);
}

/* ============================================================= reveals === */
[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-offset));
  transition:
    opacity var(--duration-reveal) var(--ease),
    transform var(--duration-slow) var(--ease);
}

[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
