.website-field {
  position: fixed !important;
  left: -10000px !important;
  top: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.mock-title-dth{
	color:black;
}
.website-field label,
.website-field input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
    .website-field {
        position: fixed !important;
        left: -10000px !important;
        top: -10000px !important;
        width: 1px !important;
        height: 1px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        clip: rect(0, 0, 0, 0) !important;
        clip-path: inset(50%) !important;
        white-space: nowrap !important;
    }
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 45px;
}

.hero-copy {
  min-width: 1000px;
  width: 100%;
  position: relative;
  left: -50px;
}

.hero h1 {
  width: 100%;
  max-width: 760px;
  font-size: clamp(50px, 5vw, 76px);
  line-height: 1.08;
  letter-spacing: -3.8px;
  overflow: visible;
}

.gradient-text {
  display: inline-block;
  max-width: none;

  padding-right: 12px;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;

  line-height: 1.08;
  overflow: visible;
}

.hero-lead {
  width: 100%;
  max-width: 680px;
}

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

  .hero h1 {
    max-width: 850px;
    font-size: clamp(50px, 8vw, 72px);
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1.08;
    letter-spacing: -2.5px;
  }
}


:root {
  --project-window-height: clamp(360px, 46vw, 460px);
  --project-window-small-height: clamp(250px, 25vw, 300px);
  --project-image-fit: cover;
}

.project-preview-link { display: block; }

.project-card-wide .project-preview,
.work .project-card-wide .project-preview {
  min-height: 0;
  height: var(--project-window-height);
}

.project-card:not(.project-card-wide) .project-preview {
  min-height: 0;
  height: var(--project-window-small-height);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: var(--project-image-fit);
  object-position: center;
}

.project-open {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

@media (max-width: 800px) {
  :root {
    --project-window-height: clamp(320px, 72vw, 500px);
    --project-window-small-height: clamp(260px, 58vw, 340px);
  }
}

@media (max-width: 560px) {
  :root {
    --project-window-height: 330px;
    --project-window-small-height: 280px;
  }
}

/* ==========================================================
   MOBILE RESPONSIVENESS OVERRIDES
   These rules affect only tablets and phones (<= 800px).
   Desktop/laptop styling remains unchanged.
   ========================================================== */
@media (max-width: 800px) {
  html {
    scroll-padding-top: 76px;
    overflow-x: hidden;
  }

  body {
    overflow-x: clip;
  }

  .section,
  #top,
  #uslugi,
  #realizacje,
  #proces,
  #kontakt {
    scroll-margin-top: 76px;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  /* Header and mobile navigation */
  .site-header,
  .site-header.scrolled {
    padding: 9px 0;
  }

  .nav-wrap {
    gap: 8px;
  }

  .brand {
    min-width: 0;
    gap: 7px;
    font-size: 18px;
    letter-spacing: -.5px;
  }

  .brand img {
    width: 46px;
    height: 30px;
  }

  .nav-actions {
    flex: 0 0 auto;
    gap: 6px;
    margin-left: auto;
  }

  .theme-toggle,
  .menu-toggle {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  .main-nav {
    min-height: 100dvh;
    padding: 96px 24px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .main-nav a {
    font-size: clamp(22px, 7vw, 28px);
  }

  /* Hero: reset desktop-only offsets and fixed minimum width */
  .hero {
    min-height: auto;
    padding-top: 116px;
    padding-bottom: 54px;
  }

  .hero-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .hero-copy {
    position: relative;
    left: 0;
    width: 100%;
    min-width: 0;
  }

  .hero h1 {
    width: auto;
    max-width: 100%;
    margin-top: 20px;
    overflow-wrap: break-word;
  }

  .gradient-text {
    max-width: 100%;
    padding-right: 4px;
  }

  .hero-lead {
    width: auto;
    max-width: 100%;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .hero-trust > div {
    min-width: 0;
  }

  .hero-visual {
    right: 0;
    width: 100%;
    min-width: 0;
    min-height: clamp(390px, 78vw, 500px);
    perspective: none;
  }

  .visual-shell {
    width: 100%;
    max-width: 100%;
  }

  .floating-card-a {
    right: 0;
  }

  .floating-card-b {
    left: 0;
  }

  .stats-strip {
    width: 100%;
  }

  /* General section typography */
  .section-heading {
    gap: 22px;
    margin-bottom: 38px;
  }

  .section-heading > div,
  .section-heading > p,
  .process-intro,
  .faq-intro {
    max-width: 100%;
  }

  .section-heading h2,
  .process-intro h2,
  .faq-intro h2,
  .contact-copy h2 {
    overflow-wrap: break-word;
  }

  /* Services */
  .services-grid {
    gap: 16px;
  }

  .service-card,
  .service-card:last-child {
    min-height: 0;
  }

  /* Portfolio stays static and full-width on mobile */
  .projects-grid,
  .projects-grid.portfolio-rotator {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 30px;
  }

  .projects-grid.portfolio-rotator .project-card,
  .project-card,
  .project-card-wide {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-width: 0;
    transform: none !important;
  }

  .project-preview-link {
    width: 100%;
  }

  .project-card:hover .project-preview {
    transform: none;
  }

  .project-meta {
    align-items: flex-start;
    gap: 12px;
  }

  .project-meta > div {
    min-width: 0;
  }

  .project-meta h3 {
    overflow-wrap: anywhere;
  }

  /* Process */
  .process-grid {
    gap: 48px;
  }

  .process-step.active {
    transform: none;
  }

  /* FAQ */
  .faq-grid {
    gap: 40px;
  }

  .accordion-item button {
    gap: 16px;
  }

  .accordion-item button > span {
    min-width: 0;
  }

  .accordion-item button b {
    flex: 0 0 28px;
  }

  /* Contact form */
  .contact-shell {
    width: 100%;
    min-width: 0;
    gap: 36px;
  }

  .contact-copy,
  .contact-form {
    width: 100%;
    min-width: 0;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-width: 0;
    font-size: 16px; /* prevents automatic zoom on iOS */
  }

  .contact-method-grid,
  .callback-options {
    min-width: 0;
  }

  .contact-method > span,
  .callback-options span {
    height: 100%;
  }

  .consent {
    min-width: 0;
  }

  /* Footer, modal and notifications */
  .footer-top,
  .footer-bottom {
    min-width: 0;
  }

  .footer-top nav {
    row-gap: 10px;
  }

  .project-modal {
    padding: 14px;
  }

  .modal-card {
    width: min(100%, 560px);
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .toast {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
    text-align: center;
  }

  /* Reduce decorative overflow and expensive touch effects */
  .section-motion-rail {
    display: none;
  }

  .project-preview::after,
  .button::after {
    display: none;
  }
}

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

  .section {
    padding: 64px 0;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 42px;
    height: 28px;
  }

  .hero {
    padding-top: 108px;
    padding-bottom: 46px;
  }

  .eyebrow {
    max-width: 100%;
    padding: 7px 10px;
    white-space: normal;
    line-height: 1.35;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 50px);
    line-height: 1.04;
    letter-spacing: -2.5px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    min-height: 44px;
  }

  .hero-trust {
    gap: 8px;
    margin-top: 34px;
  }

  .hero-trust span {
    font-size: 10px;
  }

  .hero-visual {
    min-height: clamp(350px, 92vw, 430px);
  }

  .visual-shell {
    box-shadow: 0 24px 55px rgba(35,67,128,.16), 0 0 0 5px rgba(255,255,255,.68);
  }

  .browser-bar {
    grid-template-columns: 52px minmax(0, 1fr) 28px;
    padding: 0 8px;
  }

  .browser-dots {
    gap: 4px;
  }

  .browser-dots i {
    width: 7px;
    height: 7px;
  }

  .browser-address {
    min-width: 0;
    padding: 0 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .browser-page {
    min-height: 285px;
    padding: 16px;
  }

  .mock-nav img {
    width: 58px;
    height: 32px;
  }

  .mock-nav div {
    gap: 8px;
  }

  .mock-nav i {
    width: 23px;
  }

  .mock-nav i:last-child {
    width: 34px;
  }

  .mock-hero {
    margin-top: 38px;
  }

  .mock-hero .mock-title {
    font-size: 25px;
    letter-spacing: -1.4px;
  }

  .mock-cards {
    right: 16px;
    bottom: 16px;
    left: 16px;
    gap: 8px;
  }

  .mock-cards i {
    height: 42px;
  }

  .floating-card {
    min-width: 132px;
    padding: 9px 10px;
    gap: 8px;
  }

  .floating-card small {
    font-size: 8px;
  }

  .floating-card strong {
    font-size: 14px;
  }

  .floating-card-a {
    top: 32px;
    right: -2px;
  }

  .floating-card-b {
    bottom: 22px;
    left: -2px;
  }

  .stats-strip {
    gap: 18px;
    padding: 18px;
  }

  .stats-strip strong {
    font-size: 21px;
  }

  .stats-strip span {
    font-size: 8px;
    line-height: 1.35;
  }

  .section-heading h2,
  .process-intro h2,
  .faq-intro h2 {
    font-size: clamp(34px, 10vw, 40px);
    line-height: 1.08;
    letter-spacing: -2px;
  }

  .service-card {
    padding: 25px;
  }

  .service-card h3 {
    font-size: 24px;
  }

  :root {
    --project-window-height: clamp(230px, 66vw, 330px);
    --project-window-small-height: clamp(220px, 62vw, 300px);
  }

  .project-preview,
  .project-card-wide .project-preview,
  .work .project-card-wide .project-preview {
    min-height: 0;
  }

  .project-meta {
    padding-top: 15px;
  }

  .project-meta h3,
  .work .project-meta h3 {
    font-size: 18px;
    line-height: 1.3;
  }

  .project-open {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .process-steps::before {
    left: 22px;
  }

  .process-step {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 40px;
  }

  .step-marker {
    width: 46px;
    height: 46px;
  }

  .process-step h3 {
    font-size: 20px;
    line-height: 1.25;
  }

  .benefit {
    padding: 25px;
  }

  .accordion-item button {
    padding: 19px 0;
    font-size: 15px;
    line-height: 1.4;
  }

  .contact-shell {
    gap: 30px;
    padding: 28px 18px;
    border-radius: 22px;
  }

  .contact-copy > img {
    width: 96px;
    margin-bottom: 22px;
  }

  .contact-copy h2 {
    font-size: clamp(33px, 10vw, 39px);
    letter-spacing: -2px;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .contact-method > span {
    min-height: 70px;
    padding: 11px;
  }

  .callback-options span {
    min-height: 58px;
    padding: 9px;
  }

  .form-footer {
    gap: 15px;
  }

  .form-footer .button {
    width: 100%;
  }

  .footer-top {
    gap: 20px;
  }

  .footer-top nav {
    justify-content: flex-start;
  }

  .footer-bottom {
    gap: 10px;
  }

  .modal-card {
    padding: 30px 20px;
  }

  .modal-card h2 {
    font-size: 30px;
    letter-spacing: -1.5px;
  }
}

@media (max-width: 420px) {
  .site-header .container {
    width: min(100% - 16px, 1180px);
  }

  .brand {
    gap: 5px;
    font-size: 15px;
  }

  .brand img {
    width: 38px;
    height: 26px;
  }

  .nav-actions {
    gap: 3px;
  }

  .theme-toggle,
  .menu-toggle {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .hero-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-trust > div {
    display: block;
  }

  .hero-trust strong {
    display: block;
  }

  .floating-card-b {
    display: none;
  }

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

  .contact-method-grid,
  .callback-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-method > span,
  .callback-options span {
    min-height: 0;
  }

  .portfolio-proof {
    gap: 8px;
  }

  .portfolio-proof > div {
    min-height: 96px;
    padding: 13px;
  }

  .portfolio-proof strong {
    font-size: 23px;
  }

  .portfolio-proof span {
    font-size: 10px;
  }
}