/* ==========================================================================
   DGK Tech — front-end
   Mobile-first (0–991.98px) + desktop (>=992px)
   ========================================================================== */

:root {
  /* ===== COLORS ===== */
  --ink: #111820;
  --blue: #1050a0;
  --blue-dark: #0b3c7a;
  --azure: #4a90c4;
  --azure-light: #5ea0e8;
  --azure-soft: #9cc4ed;
  --azure-mid: #7fb0e6;
  --azure-form: #2e78b8;
  --text: #444c57;
  --muted: #8b929c;
  --muted-foot: #8b97a6;
  --line: #e9ebee;
  --line-strong: #d6dae0;
  --grey-98: #fafbfc;
  --white: #ffffff;

  /* ===== FONTS ===== */
  --f-head: "Barlow Condensed", system-ui, sans-serif;
  --f-ui: "Barlow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;

  /* ===== LAYOUT ===== */
  --container: 1280px;
  --gutter: 30px;
  --header-h: 60px;

  /* ===== TRANSITIONS ===== */
  --t-fast: .2s ease;
  --t: .3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
input, textarea { font: var(--f-body); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (min-width: 992px) {
	.show-on-mobile {
		display: none !important;
	}
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY
   Element-level defaults (mobile-first). Sekcje tylko "dostylowują"
   (np. kolor lub inny rozmiar jeśli sekcja tego wymaga).
   Desktopowy bump rozmiarów w bloku @media (min-width:992px).
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.4px;
  color: var(--ink);
}
h1 { font-weight: 400; font-size: 44px; line-height: 1.05; letter-spacing: -.6px; }
h2 { font-size: 33px; line-height: 1.08; letter-spacing: -.5px; }
h3 { font-size: 23px; line-height: 1.15; letter-spacing: -.3px; }
h4 { font-size: 19px; }
h5 { font-size: 16px; }
h6 { font-size: 15px; }

p { font-family: var(--f-body); font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--text); }
ul, ol { font-family: var(--f-body); font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--text); }
li { font-size: 15px; line-height: 1.5; }
blockquote { font-family: var(--f-head); font-weight: 400; line-height: 1.3; color: var(--ink); }
strong { font-weight: 600; }
em { font-style: italic; }

/* ===== LAYOUT HELPERS ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ===== EYEBROW ===== */
.eyebrow {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--azure);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.eyebrow__line { width: 20px; height: 1px; background: currentColor; flex: none; }
.eyebrow--center { justify-content: center; color: var(--azure); }
.eyebrow--on-dark { color: var(--azure-soft); }
.eyebrow--azure { color: var(--azure-mid); }
.solutions .eyebrow,
.steps .eyebrow,
.projects .eyebrow,
.clients .eyebrow { color: var(--blue); }

/* ===== ARROW ICON ===== */
.ico-arrow {
  width: 14px; height: 14px; flex: none;
  display: inline-block;
  background: currentColor;
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 26px;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  line-height: 1;
}
.btn-sm { padding: 13px 20px; letter-spacing: .8px; }
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: transparent; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }

/* inline arrow link (underlined) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 3px;
  transition: color var(--t-fast);
}
.link-arrow:hover { color: var(--blue); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.site-logo img {
    height: 36px;
    width: auto;
}
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  margin-right: -8px;
}
.nav-toggle span {
  display: block; height: 2px; width: 24px;
  background: var(--ink);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav (default) */
.main-nav {
  position: fixed;
  inset: var(--header-h) 0 0 auto;
  width: min(340px, 86vw);
  background: var(--white);
  border-left: 1px solid var(--line);
  padding: 10px 0 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t);
  box-shadow: -10px 0 40px rgba(8,16,26,.08);
}
.main-nav.is-open { transform: translateX(0); }

.menu { display: flex; flex-direction: column; }
.menu > .menu-item { border-bottom: 1px solid var(--line); position: relative; }
.menu > .menu-item:not(.menu-item--cta) > a {
  display: block;
  padding: 14px var(--gutter);
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text);
}
.menu-item--cta { border-bottom: 0 !important; padding: 16px var(--gutter); }
.menu-item--cta a { padding: 12px 22px; }

.submenu-toggle {
  position: absolute;
  top: 0; right: 0;
  width: 52px; height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.submenu-toggle svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.sub-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t);
  background: var(--grey-98);
}
.menu-item-has-children.is-open > .sub-menu { max-height: 520px; }
.sub-menu .menu-item a {
  display: block;
  padding: 11px var(--gutter) 11px calc(var(--gutter) + 12px);
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--text);
}
.sub-menu .menu-item a:hover { color: var(--blue); }

.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(8,16,26,.45);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
  z-index: 99;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding-block: 70px;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(94deg, rgba(8,16,26,.9) 0%, rgba(8,16,26,.72) 42%, rgba(8,16,26,.25) 100%);
}
.hero__bg img,
.hero__bg-video { width: 100%; height: 100%; object-fit: cover; }
.hero__bg-video,
.hero__bg-youtube { position: absolute; inset: 0; border: 0; pointer-events: none; }
.hero__bg-youtube {
  top: 50%; left: 50%; inset: auto;
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  transform: translate(-50%, -50%);
}
.hero__inner { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(42px, 9vw, 76px);
  line-height: 1.04;
  margin: 16px 0;
  max-width: 640px;
  color: var(--white);
}
.hero h1 br { display: none; }
.hero h1 strong { font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--azure-light); }
.hero__lead {
  font-size: 16px;
  color: rgba(255,255,255,.82);
  max-width: 460px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 25px;
}

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro { padding-block: 60px; }
.intro__head { text-align: center; max-width: 760px; margin-inline: auto; }
.intro .eyebrow--center { margin-top: 16px; }
.intro__sub {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.5px;
  color: var(--blue);
  margin-top: 8px;
}
.intro__sub strong { font-weight: 600; color: var(--blue-dark); }
.intro__text { max-width: 670px; margin: 16px auto 0; }
.intro__cards {
  display: grid;
  gap: 20px;
  margin-top: 45px;
}
.feature-card {
  border: 1px solid var(--line-strong);
  padding: 30px;
  background: var(--white);
}
.feature-card .eyebrow { color: var(--azure); }
.feature-card h3 {
    color: var(--ink);
    margin: 13px 0 11px;
}

/* ==========================================================================
   FORM SECTION
   ========================================================================== */
.form-section { position: relative; background: var(--ink); padding-block: 50px; }
.form-section__bg { position: absolute; inset: 0; overflow: hidden; }
.form-section__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
}
.form-section__bg::after { content: ""; position: absolute; inset: 0; background: rgba(8,16,26,.55); }
.form-section .container { position: relative; z-index: 2; }
.form-card {
  background: var(--white);
  max-width: 760px;
  padding: 40px 35px;
}
.form-card .eyebrow { color: var(--azure); letter-spacing: 1.5px; }
.form-card h2 {
  font-size: 26px;
  line-height: 1.15;
  color: var(--azure-form);
  margin: 9px 0 0;
}
.form-card__form { margin-top: 22px; display: grid; gap: 12px; }
.form-row { display: grid; gap: 12px; }
.form-card textarea,
.form-card input:not([type='button']):not([type='submit']) {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
}
.form-card textarea {
	min-height: 3em;
}
.form-card textarea::placeholder,
.form-card input::placeholder { color: var(--muted); }
.form-card textarea:focus-visible,
.form-card input:focus-visible { outline: none; border-color: var(--blue); }
.form-card__actions { display: flex; justify-content: flex-end; margin-top: 5px; }
.link-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  padding: 6px 0;
  transition: color var(--t-fast);
}
.link-submit:hover { color: var(--blue-dark); }

/* ==========================================================================
   SOLUTIONS + SERVICE CARDS
   ========================================================================== */
.solutions { background: var(--grey-98); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 60px; padding-bottom: 60px; }
.solutions__head {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 80px;
}
.solutions__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}
.solutions__lead {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.4px;
  color: var(--blue);
}
.solutions__body p + p { margin-top: 14px; }
.solutions__list { margin: 14px 0; display: grid; gap: 6px; }
.solutions__list li {
  position: relative;
  padding-left: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}
.solutions__list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 9px; height: 2px;
  background: var(--blue);
}
.solutions__cols { display: grid; gap: 25px; margin-top: 18px; }

/* Service cards — mobile: horizontal scroll, 1.5 cards visible */
.services-grid {
  margin-top: 45px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 83%;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--line);
}
.services-grid::-webkit-scrollbar { height: 6px; }
.services-grid::-webkit-scrollbar-track { background: var(--line); }
.services-grid::-webkit-scrollbar-thumb { background: var(--blue); }
.service-card {
  position: relative;
  scroll-snap-align: start;
  background: var(--ink);
  color: var(--white);
  display: flex;
  overflow: hidden;
}
.service-card > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.service-card__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(150deg, rgba(20,40,70,.45) 0%, rgba(8,16,26,.18) 100%),
    linear-gradient(180deg, rgba(8,16,26,.42) 0%, rgba(8,16,26,.72) 100%);
  transition: opacity .45s ease;
}
/* accent line that grows from the number on hover */
.service-card__content::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--azure-light);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), opacity .45s ease;
}
.service-card__content {
  position: relative;
  z-index: 2;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 9px;
  padding: 26px;
  transform: translateY(0);
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.service-card__num {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 26px;
  line-height: 1;
  color: var(--azure-light);
}
.service-card__title {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.2px;
}
.service-card__desc { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.84); }
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .4px;
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  transition: background .35s ease, border-color .35s ease, color .35s ease;
}
.service-card__more .ico-arrow { width: 12px; height: 12px; transition: transform .35s ease; }

/* ----- hover ----- */
@media (min-width: 992px) {
	.service-card:hover > img,
	.service-card:focus-visible > img { transform: scale(1.08); }
	.service-card:hover .service-card__overlay,
	.service-card:focus-visible .service-card__overlay { opacity: .88; }
	.service-card:hover .service-card__content,
	.service-card:focus-visible .service-card__content { transform: translateY(-6px); }
	.service-card:hover .service-card__content::before,
	.service-card:focus-visible .service-card__content::before { transform: scaleX(1); opacity: 1; }
	.service-card:hover .service-card__more,
	.service-card:focus-visible .service-card__more {
	  background: var(--blue);
	  border-color: var(--blue);
	  color: var(--white);
	}
	.service-card:hover .service-card__more .ico-arrow,
	.service-card:focus-visible .service-card__more .ico-arrow { transform: translateX(3px); }
}
/* ==========================================================================
   STEPS
   ========================================================================== */
.steps { padding-block: 60px; }
.steps__head { display: flex; flex-direction: column; gap: 13px; }
.steps__grid {
  margin-top: 45px;
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: 0;
}
.step { padding: 26px 0 30px; }
.step + .step { border-top: 1px solid var(--line); }
.step__num {
  display: block;
  font-family: var(--f-head);
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 12px;
}
.step h3 {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.2px;
  margin-bottom: 8px;
}

/* ==========================================================================
   WHY (image + accordion)
   ========================================================================== */
.why { background: var(--ink); color: var(--white); display: grid; }
.why__media { background: linear-gradient(135deg, #1f2d3d 0%, #33485f 60%, #46617c 100%); }
.why__media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.why__content { padding-block: 50px; }
.why__inner { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.why h2 { color: var(--white); margin: 13px 0 22px; }
.accordion__item { border-top: 1px solid rgba(255,255,255,.14); }
.accordion__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--white);
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__icon { position: relative; width: 14px; height: 14px; flex: none; }
.accordion__icon::before,
.accordion__icon::after {
  content: ""; position: absolute; background: var(--azure-mid);
}
.accordion__icon::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.accordion__icon::after  { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); transition: opacity var(--t-fast); }
.accordion__item[open] .accordion__icon::after { opacity: 0; }
.accordion__body { max-width: 530px; overflow: hidden; transition: height .38s cubic-bezier(.22,.61,.36,1); }
.accordion__item summary { cursor: pointer; }
.accordion__icon::before,
.accordion__icon::after { transition: opacity var(--t-fast), transform var(--t-fast); }
.accordion__body p { padding-bottom: 17px; color: rgba(255,255,255,.68); }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects { padding: 60px 0; }
.projects__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}
.projects__head > div { display: flex; flex-direction: column; gap: 13px; }
.projects__grid {
  margin-top: 42px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--line);
}
.projects__grid::-webkit-scrollbar { height: 6px; }
.projects__grid::-webkit-scrollbar-track { background: var(--line); }
.projects__grid::-webkit-scrollbar-thumb { background: var(--blue); }
.project-card { scroll-snap-align: start; }
.project-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: linear-gradient(140deg, #dde6f1 0%, #c2d2e6 100%);
  overflow: hidden;
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
/* spójny z kafelkami usług subtelny granatowy overlay na hover */
.project-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(16,80,160,.0) 35%, rgba(8,16,26,.45) 100%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.project-card:hover .project-card__media img,
.project-card:focus-within .project-card__media img { transform: scale(1.07); }
.project-card:hover .project-card__media::after,
.project-card:focus-within .project-card__media::after { opacity: 1; }
.project-card__badge {
  position: absolute; top: 0; left: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 12px;
}
.project-card__route {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 14px;
}
.project-card h3 {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.2px;
  margin: 8px 0 6px;
  transition: color .35s ease;
}
.project-card:hover h3,
.project-card:focus-within h3 { color: var(--blue); }

/* ==========================================================================
   CLIENTS + TESTIMONIAL
   ========================================================================== */
.clients { background: var(--grey-98); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 60px; }
.clients__head { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.clients__logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 35px 0;
}
.clients__logos li {
  border: 1px solid var(--line-strong);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 15px 20px;
}
.clients__logos img { height: 30px; width: auto; opacity: .8; }
.clients__quote { text-align: center; max-width: 640px; margin: 0 auto; }
.clients__quote blockquote { font-size: 24px; }
.clients__quote figcaption {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { background: var(--blue); color: var(--white); padding-block: 55px; }
.cta__inner { display: grid; gap: 30px; }
.cta__title {
  font-weight: 400;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1.0;
  letter-spacing: -.8px;
  color: var(--white);
}
.cta__title span { color: var(--azure-soft); }
.cta__aside { display: flex; flex-direction: column; gap: 16px; }
.cta__aside p { color: rgba(255,255,255,.85); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cta__phone {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 28px;
  color: var(--white);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--white); padding-top: 55px; padding-bottom: 25px; }
.site-footer__grid { display: grid; gap: 35px; }
.site-footer__brand .site-logo img { height: 26px; width: auto; opacity: .95; }
.site-footer__tagline {
  color: var(--muted-foot);
  margin-top: 13px;
  max-width: 240px;
}
.site-footer__contact { margin-top: 15px; display: grid; gap: 12px; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.site-footer__contact a { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.72); transition: color var(--t-fast); }
.site-footer__contact a:hover { color: var(--white); }
.site-footer [class^="ico-"] { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--azure-mid); }
.ico-pin, .ico-phone, .ico-mail {
  display: inline-block; background: currentColor;
  -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
}
.ico-pin { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7m0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7m0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E"); }
.ico-phone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.6 10.8a15.5 15.5 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.4c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.4 0 .8-.3 1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.6 10.8a15.5 15.5 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.4c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.4 0 .8-.3 1z'/%3E%3C/svg%3E"); }
.ico-mail { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h16a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m8 7L5 6.5V18h14V6.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h16a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m8 7L5 6.5V18h14V6.5z'/%3E%3C/svg%3E"); }

.site-footer__social { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.site-footer__social a { color: rgba(255,255,255,.6); transition: color var(--t-fast); }
.site-footer__social a:hover { color: var(--white); }
.site-footer__social svg,
.site-footer__social img { display: block; width: 20px; height: 20px; object-fit: contain; }

.site-footer__col h3 {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 15px;
}
.site-footer__col-2nd { margin-top: 24px; }
.site-footer__col .site-footer__menu { display: grid; gap: 10px; }
.site-footer__col a { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.62); transition: color var(--t-fast); }
.site-footer__col a:hover { color: var(--white); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.site-footer__bottom-left { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__bottom p, .site-footer__bottom a { font-size: 14px; color: rgba(255,255,255,.42); }
.site-footer__bottom a:hover { color: rgba(255,255,255,.7); }

/* ==========================================================================
   DESKTOP  (>= 992px)
   ========================================================================== */
@media (min-width: 992px) {
  :root { --header-h: 80px; }

  /* GLOBAL TYPOGRAPHY — desktop scale (większe niż mobile) */
  h1 { font-size: 72px; }
  h2 { font-size: 46px; }
  h3 { font-size: 26px; }
  h4 { font-size: 22px; }

  /* nadpisania rozmiaru nagłówków tam, gdzie sekcja wymaga innego */
  .intro h2 { font-size: 44px; }
  .form-card h2 { font-size: 34px; }
  .why h2 { font-size: 42px; }
  .clients h2 { font-size: 40px; }
  .intro__sub { font-size: 38px; }
  .solutions__lead { font-size: 30px; }
  .clients__quote blockquote { font-size: 32px; }

  /* HEADER */
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    width: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    background: none;
    padding: 0;
    overflow: visible;
  }
  .menu { flex-direction: row; align-items: center; gap: 30px; }
  .menu > .menu-item { border: 0; }
  .menu > .menu-item:not(.menu-item--cta) > a {
    padding: 0;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--text);
    transition: color var(--t-fast);
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .menu > .menu-item:not(.menu-item--cta) > a:hover { color: var(--blue); }
  .menu-item-has-children > a { padding-right: 0; }
  .menu-item--cta { padding: 0; }

  /* desktop dropdown */
  .submenu-toggle {
    position: static;
    width: auto; height: auto;
    pointer-events: none;
    color: var(--text);
    margin-left: -2px;
  }
  .submenu-toggle svg { width: 11px; height: 11px; }
  .menu-item-has-children:hover .submenu-toggle svg,
  .menu-item-has-children:focus-within .submenu-toggle svg { transform: rotate(180deg); }

  .sub-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: -20px;
    min-width: 280px;
    display: block;
    max-height: none;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(8,16,26,.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
    z-index: 50;
  }
  .menu-item-has-children::before {
    content: "";
    position: absolute;
    top: 100%; left: 0; right: 0; height: 16px;
  }
  .menu-item-has-children:hover > .sub-menu,
  .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .sub-menu > * { overflow: visible; }
  .sub-menu .menu-item a { padding: 9px 22px; font-size: 14px; }
  .sub-menu .menu-item a:hover { background: var(--grey-98); }
  .nav-backdrop { display: none; }

  /* HERO */
  .hero { min-height: 655px; padding-block: 0; }
  .hero h1 { font-size: 76px; margin: 18px 0; }
  .hero h1 br { display: inline; }

  /* INTRO */
  .intro { padding-block: 90px; }
  .intro__cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  @media (min-width: 992px) {
	  .intro__cards.cols-2 { 
		grid-template-columns: repeat(2, 1fr);
	  }
  }

  /* FORM */
  .form-section { padding-block: 75px; }
  .form-card {
    padding: 42px 45px;
    margin: 0 auto;
  }
  .form-row--1 { grid-template-columns: repeat(1, 1fr); }
  .form-row--2 { grid-template-columns: 1fr 1.35fr; }
  .form-row--3 { grid-template-columns: repeat(3, 1fr); }

  /* SOLUTIONS */
  .solutions { padding-top: 90px; padding-bottom: 0; }
  .solutions__head { gap: 42px; }
  .solutions__cols { grid-template-columns: 1fr 1.7fr; gap: 35px; margin-top: 0; }
  .services-grid {
    margin-top: 0;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    gap: 3px;
    overflow: visible;
    padding-bottom: 0;
  }
  .three .services-grid, .services-grid.three { grid-template-columns: repeat(3, 1fr); }
  .two .services-grid, .services-grid.two { grid-template-columns: repeat(2, 1fr); }
  .service-card__content { padding: 30px; gap: 10px; }
  .service-card { aspect-ratio: 4 / 5; max-height: 450px !important; width: 100%; }

  /* STEPS */
  .steps { padding-block: 90px; }
  .steps__grid { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 26px 30px 50px 0; }
  .step + .step { border-top: 0; border-left: 1px solid var(--line); padding-left: 30px; padding-right: 30px; }

  /* WHY */
  .why { grid-template-columns: 1fr 1fr; }
  .why__content { padding-block: 70px; }
  .why__inner { max-width: none; margin: 0; padding-left: 55px; padding-right: 55px; }
  .why__media img { min-height: 100%; }

  /* PROJECTS */
  .projects { padding: 90px 0; }
  .projects__grid {
    margin-top: 42px;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    gap: 25px;
    overflow: visible;
    padding-bottom: 0;
  }

  /* CLIENTS */
  .clients { padding-block: 90px; }
  .clients__logos { grid-template-columns: repeat(5, 1fr); gap: 20px; max-width: 760px; margin-inline: auto; }

  /* CTA */
  .cta { padding-block: 75px; }
  .cta__inner { grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }

  /* FOOTER */
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
}

  p.agree-rodo {
    font-size: .8em;
    line-height: 1.25em;
    opacity: .65;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}



@media (max-width: 992px) {
	:root {
		--gutter: 15px;
	}
	p {
		font-size: 13px;
	}
	.stats-block__grid strong {
		font-size: 28px !important;
	}
	.stats-block__grid > div {
		gap: 6px  !important;
		padding: 20px  !important;		
		font-size: 12px  !important;
	}
	.services-grid {
		overflow-y: hidden;
	}
	.blog-breadcrumbs {
		font-size: 9px;
	}
}