
:root {
  --bg: #ffffff;
  --text: #1f2937;
  --primary: #2b6cb0;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-family: 'Lato', sans-serif;
  font-size: 1.15rem;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

main {
  flex: 1;
}

a:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Header navigation*/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 2rem;
  border-bottom: 1px solid var(--border);
}

.site-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background: #ffffff;
  padding-top: 0.05rem;
  padding-bottom: 0.05rem;
  position: sticky;
  top: 0;
  z-index: 200;
  transition: padding 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, background-color 0.35s ease;
  will-change: padding;
}

.site-header--slim {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(180%) blur(6px);
}

.site-header--slim h1 {
  font-size: 1.65rem;
  transition: font-size 0.35s cubic-bezier(.2,.8,.2,1);
}

.site-header nav a {
  transition: font-size 0.35s cubic-bezier(.2,.8,.2,1);
}

.site-header--slim nav a {
  font-size: 1.15rem;
}

header h1 {
  color: var(--primary);
  font-size: 1.75rem;
  font-weight: 700;
  white-space: nowrap;
}

header h1 a.site-logo {
  color: var(--primary);
  text-decoration: none;
}

header h1 a.site-logo:hover {
  opacity: 1;
}

nav a {
  text-decoration: none;
  color: var(--text);
  margin-left: 1.5rem;
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 700;
}

/* Separatory / nav links */
@media (min-width: 769px) {
  nav a + a {
    position: relative;
    margin-left: 1.25rem;
    padding-left: 1.25rem;
  }

  nav a + a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1em;
    background: rgba(0, 0, 0, 0.12);
  }
}

nav a:hover {
  color: var(--primary);
}

/* Hamburger menu */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

/* Mobile menu overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* BACKGROUND SECTION (BLUE MAIN)*/
.hero--blue {
  max-width: none;
  margin: 0;
  padding: 0;
  background: #1e3a8a;
  color: #fff;
  position: relative;
  overflow: visible;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
}

.hero--blue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(30, 58, 138, 0.88));
  backdrop-filter: blur(2px);
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 10rem;
  padding-left: 6rem;
  width: 100%;
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero--blue h1 {
  color: #fff;
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: left;
  line-height: 1.2;
  white-space: nowrap;
}

.hero--blue div {
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.7;
  margin: 0 0 2.5rem 0;
  max-width: 1000px;
  text-align: left;
  letter-spacing: 0.02em;
  word-spacing: 0.05em;
}

.hero--blue div:first-of-type {
  font-size: 2.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.hero--blue div:nth-of-type(2) {
  padding-left: 0;
  max-width: 1800px;
  letter-spacing: 0.03em;
  word-spacing: 0.08em;
  font-size: 1.5rem;
}

/* Blue gradient on buildings */
.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  max-width: 800px;
  z-index: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 20%, rgba(0,0,0,1) 40%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 20%, rgba(0,0,0,1) 40%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(37, 99, 235, 0.5));
  backdrop-filter: blur(1px) saturate(150%);
  z-index: 1;
  pointer-events: none;
}

/* Wave decor bottom */
.hero-wave {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100px;
  z-index: 1;
}

.hero-wave::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100px;
  background: #60a5fa;
  clip-path: polygon(0 50%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-wave::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 80px;
  background: #2563eb;
  clip-path: polygon(0 60%, 100% 10%, 100% 100%, 0% 100%);
}

/* Hero CTA button */
.cta--hero {
  background: transparent;
  color: #fff;
  border: 2px solid var(--primary);
  padding: 1.2rem 3rem;
  font-weight: 700;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta--hero:hover {
  background: transparent;
  border-color: #fff;
}


.services-intro {
  background: #ffffff;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.services-content {
  background: #ffffff;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.services-intro h3 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.services-intro-text {
  font-size: 2rem;
  color: var(--text);
  margin: 0 auto 2rem;
  margin-left: 10%;
  max-width: 100%;
  line-height: 1.7;
  text-align: left;
  white-space: nowrap;
}

.services-intro > p {
  max-width: 1400px;
  margin: 2rem auto 0;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  line-height: 1.7;
  font-size: 1.3rem;
  padding: 0 2rem;
  box-sizing: border-box;
}

.services-content > p {
  max-width: 1400px;
  margin: 2rem auto 1rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.7;
  font-size: 1.4rem;
  padding: 0 2rem;
  box-sizing: border-box;
}

.services-content > p:first-of-type {
  margin-top: 2rem;
}

.services-content > p:last-of-type {
  margin-bottom: 0;
}

/* Service boxes with icons */
.services-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.service-item {
  text-align: center;
  box-shadow: 10px 8px 0px rgb(191 219 254);
  padding: 2rem 1.5rem;
  min-width: 0;
}

.service-icon {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0.8;
}

.service-item p {
  font-size: 1.4rem;
  color: var(--text);
  line-height: 1.7;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
}

/* Nasze główne usługi/boxy */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}

#czym-sie-zajmujemy {
  scroll-margin-top: 100px;
}

#funkcje {
  scroll-margin-top: 100px;
}

.section h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  display: inline-block;
}

.services-list {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.service-point {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 auto 1.5rem;
  text-align: left;
  max-width: 1000px;
  padding-bottom: 1.5rem;
  padding-left: 3.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  align-items: flex-start;
}

.service-point::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
  flex-shrink: 0;
}

.service-point:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.location-section {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3rem;
  margin-bottom: 4rem;
}


.location-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  position: relative;
  z-index: 1;
}

.location-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 auto 1.25rem;
  text-align: center;
  max-width: 900px;
}

.location-text:last-child {
  margin-bottom: 0;
}


/* Features grid (6 boxes) */
.features {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .values-wrapper {
    gap: 4rem;
    padding: 3rem 2rem;
  }

  .values-grid {
    gap: 1.5rem;
  }

  .value-card {
    padding: 1.5rem 2.5rem;
  }
}

@media (max-width: 1600px) {
  .values-wrapper {
    grid-template-columns: 1fr !important;
    gap: 3rem;
  }
}

@media (max-width: 1100px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .values-wrapper {
    gap: 4rem;
  }
}

@media (max-width: 968px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 2rem 1.75rem;
  background: #fff;
}

.feature-card h4 {
  color: var(--primary);
  margin-bottom: 0.4rem;
  margin-top: 0;
  font-size: 1.7rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0;
}

/* values checkpoint*/
.values-wrapper {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 3rem 4rem;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: start;
}

.values-section {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.values-container {
  max-width: 100%;
  margin: 0;
  width: 100%;
}

.values-section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2.5rem;
  text-align: center;
  white-space: nowrap;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.value-card {
  background: #fff;
  padding: 1.5rem 3.5rem;
  text-align: left;
  box-shadow: 10px 8px 0px rgb(191 219 254);
  min-height: 160px;
  height: 100%;
  display: flex;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.value-title {
  font-size: 1.7rem;
  font-weight: 400;
  color: #000;
  margin: 0;
  text-align: left;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.875rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
}

.cta-group {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* footer / cookies */
.footer-cta {
  background: #2D2D2D;
  color: #999999;
  text-align: center;
  padding: 0.5rem 1rem;
  border-top: 1px solid #3a3a3a;
  margin-top: 0;
}

.footer-cta h4 {
  color: #999999;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.footer-cta .footer-lead {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  opacity: 1;
}

.footer-cookies {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.footer-cookie-link {
  color: var(--primary);
  text-decoration: underline;
  transition: opacity 0.2s ease;
  font-size: 0.95rem;
}

.footer-cookie-link:hover {
  opacity: 0.8;
  color: #6b7280;
}

.footer-cta .legal {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* guzik skontaktuj się z nami */
.fixed-contact-btn {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: calc(100vw - 4rem);
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@supports (bottom: env(safe-area-inset-bottom)) {
  .fixed-contact-btn {
    bottom: calc(2rem + env(safe-area-inset-bottom));
    right: calc(2rem + env(safe-area-inset-right));
  }
}

.fixed-contact-btn:hover {
  background: #2563eb;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.open {
  opacity: 1;
  visibility: visible;
}

.contact-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.contact-modal-content {
  position: relative;
  background: #fff;
  padding: 3rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 2001;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.contact-modal.open .contact-modal-content {
  transform: scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.contact-modal-close:hover {
  background: #f3f4f6;
  color: #000;
}

/* contact page - style */
.section--contact {
  max-width: 1200px;
  margin: 0 auto;
}

body:has(.section--contact) main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

body:has(.section--contact) .section--contact {
  width: 100%;
}

.contact-layout-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-left {
  padding-right: 2rem;
}

.contact-intro {
  margin-bottom: 3rem;
}

.contact-intro-header {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  margin-top: 0;
}

.contact-intro-text {
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--text);
  font-weight: 500;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: var(--text);
}

.contact-detail-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-right {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-header {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  position: relative;
}

.form-group--icon {
  display: flex;
  align-items: center;
}

.form-group--icon input {
  padding-left: 3.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1.05rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: #fff;
  color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.cta--form {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
}

.form-cookie-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 1rem;
}

.form-cookie-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-cookie-checkbox label {
  cursor: pointer;
  color: var(--text);
}

.cookie-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.cookie-link:hover {
  opacity: 0.8;
}

/* reveal contentu przy scrollu */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-item.reveal,
.value-card.reveal,
.feature-card.reveal {
  transition-delay: 0.1s;
}

.service-item.reveal:nth-child(2),
.value-card.reveal:nth-child(2),
.feature-card.reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.service-item.reveal:nth-child(3),
.value-card.reveal:nth-child(3),
.feature-card.reveal:nth-child(3) {
  transition-delay: 0.3s;
}

.value-card.reveal:nth-child(4),
.feature-card.reveal:nth-child(4) {
  transition-delay: 0.4s;
}

.feature-card.reveal:nth-child(5) {
  transition-delay: 0.5s;
}

/* responsive styles */

@media (max-width: 768px) {
  .hero--blue {
    overflow-x: hidden;
  }
  
  .hero-wave {
    width: 100%;
    max-width: 100vw;
  }
  
  .hero-wave::before {
    width: 100%;
    max-width: 100vw;
  }
  
  .hero-wave::after {
    width: 100%;
    max-width: 100vw;
  }

  header {
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
    order: 2;
    z-index: 101;
  }

  header h1 {
    order: 1;
    font-size: 1.3rem;
    padding: 0.5rem 0;
    white-space: normal;
    word-wrap: break-word;
  }

  #site-nav {
    position: fixed;
    top: 60px;
    right: 12px;
    width: calc(100% - 24px);
    max-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
    z-index: 100;
    display: block;
  }

  #site-nav.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  #site-nav a {
    display: block;
    padding: 0.75rem 0.5rem;
    margin: 0;
    border-top: 1px solid var(--border);
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  #site-nav a:first-child {
    border-top: 0;
  }

  /* Hero section mobile */
  .hero-content {
    padding: 3rem 1.5rem 6rem;
    padding-left: 1.5rem;
    text-align: left;
  }

  .hero--blue {
    min-height: 450px;
  }

  .hero--blue h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
  }

  .hero--blue div {
    text-align: left;
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
    word-wrap: break-word;
  }

  .hero--blue div:first-of-type {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero--blue div:nth-of-type(2) {
    padding-left: 0;
    font-size: 1.05rem;
  }

  .hero-image {
    width: 50%;
    max-width: 400px;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 20%, rgba(0,0,0,0.6) 50%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 20%, rgba(0,0,0,0.6) 50%);
  }

  .cta--hero {
    padding: 1rem 2rem;
    font-size: 1.15rem;
    width: auto;
    display: inline-block;
  }

  .services-intro {
    padding: 3rem 1.5rem;
    white-space: normal;
  }

  .services-content {
    padding: 3rem 1.5rem;
    white-space: normal;
  }

  .services-intro h3 {
    font-size: 1.8rem;
    line-height: 1.3;
    word-wrap: break-word;
  }

  .services-intro-text {
    font-size: 1.3rem;
    margin-left: 0;
    text-align: left;
    padding: 0 0.5rem;
    white-space: normal;
    word-wrap: break-word;
  }

  .services-intro > p {
    margin-left: 0;
    text-align: left;
    padding: 0 0.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .service-item p {
    font-size: 1.2rem;
  }

  .services-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 2rem 1.25rem;
  }

  .section h3 {
    font-size: 1.8rem;
    padding: 0 1rem;
    word-wrap: break-word;
  }

  .service-point {
    font-size: 1.2rem;
    padding-left: 3rem;
    padding-right: 1rem;
  }

  .service-point::before {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1rem;
    top: 0.1rem;
  }

  .location-section {
    padding-bottom: 2rem;
  }

  .location-text {
    font-size: 1.2rem;
    padding: 0 1rem;
    line-height: 1.5;
  }

  #czym-sie-zajmujemy {
    scroll-margin-top: 80px;
  }

  #funkcje {
    scroll-margin-top: 80px;
  }

  .feature-card {
    padding: 1.25rem 1.5rem;
  }

  .feature-card h4 {
    font-size: 1.4rem;
  }

  .feature-card p {
    font-size: 1.1rem;
  }

  .cta-group {
    width: 100%;
    justify-content: center;
  }

  .cta-group .cta {
    width: 100%;
    text-align: center;
  }

  .hero-wave {
    height: 8px;
  }

  .hero-wave::before {
    height: 80px;
  }

  .hero-wave::after {
    height: 65px;
  }

  .values-wrapper {
    padding: 2.5rem 1.5rem;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .values-section {
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .values-container {
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .values-section-heading {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    white-space: nowrap;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .value-card {
    min-height: auto;
    height: auto;
  }

  .value-card {
    min-height: 200px;
    height: 100%;
    padding: 1.75rem 1.5rem;
  }

  .value-title {
    font-size: 1.7rem;
    line-height: 1.6;
  }

  /* MOBILE CHECKPOINT
  - Contact page mobile */
  body:has(.section--contact) main {
    min-height: calc(100vh - 150px);
    padding: 2rem 0;
  }

  .contact-layout-two {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-left {
    padding-right: 0;
  }

  .contact-intro {
    margin-bottom: 2rem;
  }

  /* contact button */
  .fixed-contact-btn {
    position: fixed !important;
    right: 1rem !important;
    bottom: 1rem !important;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    min-height: 44px;
    max-width: calc(100vw - 2rem);
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  @supports (bottom: env(safe-area-inset-bottom)) {
    .fixed-contact-btn {
      bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
      right: calc(1rem + env(safe-area-inset-right)) !important;
    }
  }

  .contact-modal-content {
    padding: 2rem 1.5rem;
    width: 95%;
  }

  .footer-cta {
    padding: 1.5rem 1rem;
  }

  .footer-cta h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .footer-cta .footer-lead {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .footer-cta .cta {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    display: inline-block;
    margin: 0.5rem 0;
  }
}

/* phone (480px and below) */
@media (max-width: 480px) {
  nav a {
    font-size: 0.95rem;
  }

  .hero-content {
    padding: 2.5rem 1rem 6rem;
    padding-left: 1rem;
    text-align: left;
  }

  .hero--blue {
    min-height: 380px;
  }

  .hero--blue h1 {
    font-size: 1.8rem;
    white-space: normal;
    line-height: 1.2;
  }

  .hero--blue div {
    text-align: left;
    margin: 0 0 1.25rem 0;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero--blue div:first-of-type {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .hero--blue div:nth-of-type(2) {
    padding-left: 0;
    font-size: 0.95rem;
  }

  .hero-image {
    width: 45%;
    max-width: 350px;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 15%, rgba(0,0,0,0.5) 40%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 15%, rgba(0,0,0,0.5) 40%);
  }

  .cta--hero {
    padding: 0.9rem 1.75rem;
    font-size: 1.1rem;
    width: auto;
  }

  .services-intro {
    padding: 2.5rem 1rem;
    white-space: normal;
  }

  .services-content {
    padding: 2.5rem 1rem;
    white-space: normal;
  }

  .services-intro h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    padding: 0 0.5rem;
  }

  .services-intro-text {
    font-size: 1.2rem;
    margin-left: 0;
    text-align: left;
    padding: 0 0.5rem;
    white-space: normal;
    word-wrap: break-word;
  }

  .services-intro > p {
    margin-left: 0;
    text-align: left;
    padding: 0 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  .service-item {
    padding: 1.5rem 1rem;
  }

  .service-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }

  .service-item p {
    font-size: 1.15rem;
  }

  .services-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features {
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .values-wrapper {
    padding: 2rem 0.75rem;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .values-section {
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .values-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .values-section-heading {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
    white-space: nowrap;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .value-card {
    min-height: auto;
    height: auto;
    padding: 1.25rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .value-title {
    font-size: 1.1rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .section h3 {
    font-size: 1.5rem;
  }

  .location-section {
    padding-bottom: 2rem;
  }

  .location-text {
    font-size: 1.1rem;
    padding: 0 0.75rem;
    line-height: 1.5;
  }

  .service-point {
    font-size: 1.1rem;
    padding-left: 2.5rem;
    padding-right: 0.75rem;
  }

  .service-point::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.9rem;
    top: 0.1rem;
  }

  .feature-card {
    padding: 1rem 1.25rem;
  }

  .feature-card h4 {
    font-size: 1.2rem;
  }

  .feature-card p {
    font-size: 1rem;
  }

  .cta-group .cta {
    padding: 0.75rem 1rem;
  }

  .hero-wave {
    height: 70px;
  }

  .hero-wave::before {
    height: 70px;
  }

  .hero-wave::after {
    height: 55px;
  }
}

/* phone medium (640px and below) */
@media (max-width: 640px) {
  header {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0.75rem;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .hero-content {
    padding: 2.5rem 1.25rem 6rem;
    padding-left: 1.25rem;
  }

  .services-intro {
    padding: 2.5rem 1.25rem;
  }
}

/* bigger display (769px to 968px) */
@media (min-width: 769px) and (max-width: 968px) {
  .hero-content {
    padding: 5rem 2.5rem 9rem;
    padding-left: 4rem;
  }

  .services-intro {
    padding: 3.5rem 2rem;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 2rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .values-section-heading {
    font-size: 2rem;
    white-space: nowrap;
  }
}


/* Contact page tablet and below */
@media (max-width: 968px) {
  body:has(.section--contact) main {
    min-height: calc(100vh - 150px);
    padding: 2rem 0;
  }

  .contact-layout-two {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-left {
    padding-right: 0;
  }

  .contact-intro {
    margin-bottom: 2rem;
  }
}
