:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --dark: #151515;
  --dark-soft: #242424;
  --text: #252525;
  --muted: #666666;
  --white: #ffffff;
  --gold: #c49a4a;
  --gold-dark: #9d7833;
  --border: #e6e6e6;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.05);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(196, 154, 74, 0.28);
  outline-offset: 2px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  flex-direction: column;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--dark);
  flex-shrink: 0;
}

.logo span {
  font-size: 1.35rem;
  line-height: 1.1;
}

.logo small {
  margin-top: 3px;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 800;
  flex: 1 1 auto;
}

.main-nav a {
  color: var(--dark);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--gold-dark);
}

.header-call {
  background: var(--dark);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-call:hover {
  background: #000000;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 86px 0 70px;
  background: #ffffff;
  min-height: 640px;
}

/* Film zostaje widoczny, ale tekst pozostaje czytelny */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.20) 0%,
    rgba(255, 255, 255, 0.34) 38%,
    rgba(255, 255, 255, 0.82) 72%,
    rgba(255, 255, 255, 0.96) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Video desktop */
.hero-bg-video {
  position: absolute;
  left: max(12px, calc((100vw - 1180px) / 2 - 35px));
  top: 18px;
  width: clamp(720px, 58vw, 1080px);
  height: auto;
  max-height: 820px;
  opacity: 0.82;
  filter: saturate(1.22) contrast(1.18) brightness(1.04);
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: 46px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-content {
  min-width: 0;
  position: relative;
  z-index: 3;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--dark);
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.7rem, 5.6vw, 5.35rem);
  max-width: 950px;
  letter-spacing: -0.07em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 760px;
  color: #444444;
  margin-bottom: 30px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 2px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--dark);
  color: var(--white);
}

.btn-secondary:hover {
  background: #000000;
}

.btn-light {
  background: var(--white);
  color: var(--dark);
  border-color: var(--border);
}

.btn-light:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-soft);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 900;
}

.hero-contact a {
  color: var(--dark);
}

.hero-contact a:hover {
  color: var(--gold-dark);
}

/* Cards */

.hero-card,
.highlight-box,
.benefits-card,
.calendar-box,
.brochure-box {
  background: var(--white);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card {
  justify-self: end;
  width: 100%;
  max-width: 430px;
  position: relative;
  z-index: 4;
  background: rgba(255, 255, 255, 0.96);
}

.hero-card ul,
.benefits-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.hero-card li,
.benefits-card li {
  margin-bottom: 8px;
}

/* Hero logo upgrade */

.hero-logo-card {
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.hero-brand-logo {
  display: block;
  width: min(250px, 80%);
  height: auto;
  animation: logoReveal 0.9s ease both, logoFloat 4.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes logoFloat {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.015);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

/* Trust strip */

.trust-strip {
  background: var(--dark);
  color: var(--white);
  padding: 22px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.trust-grid div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trust-grid strong {
  color: var(--gold);
  font-size: 1rem;
}

.trust-grid span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

/* Sections */

.section {
  padding: 84px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.82);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark .eyebrow {
  color: var(--gold);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
  position: relative;
  z-index: 2;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-heading p:last-child,
.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

/* Services */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  position: relative;
  z-index: 2;
}

.service-card,
.review-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.service-card {
  min-height: 190px;
}

.service-card p,
.review-card p {
  color: var(--muted);
}

/* Services background visual */

.services-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  isolation: isolate;
}

.services-section::after {
  content: "";
  position: absolute;
  top: 80px;
  right: -40px;
  bottom: 40px;
  width: clamp(520px, 36vw, 660px);
  background-image: url("../assets/img/services-tools-ladder.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}

.services-section .container {
  position: relative;
  z-index: 2;
}

.services-section .service-card {
  background: rgba(255, 255, 255, 0.90);
}

/* Two column sections */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: center;
}

.highlight-box,
.calendar-box {
  background: #262626;
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
}

.highlight-box h3,
.calendar-box h3 {
  color: var(--white);
}

.highlight-box a,
.calendar-box a {
  color: inherit;
}

.small-text {
  font-size: 0.92rem;
  color: var(--muted);
}

.small-text a {
  color: inherit;
  font-weight: 800;
}

.section-dark .small-text {
  color: rgba(255, 255, 255, 0.68);
}

/* Why choose */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.why-grid div {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  font-weight: 900;
  color: var(--dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.035);
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

figure {
  margin: 0;
}

.image-placeholder {
  height: 230px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(21, 21, 21, 0.78), rgba(21, 21, 21, 0.38)),
    linear-gradient(135deg, #d9d9d9, #f4f4f4);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 1.4rem;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Reviews */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.stars {
  color: var(--gold-dark);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.review-card span {
  font-weight: 900;
  color: var(--dark);
}

/* Quote form */

.quote-section {
  background: var(--white);
}

.quote-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 900;
  margin-bottom: 18px;
  color: var(--dark);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 15px;
  font: inherit;
  font-size: 16px;
  background: var(--white);
  color: var(--dark);
  min-height: 48px;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(196, 154, 74, 0.24);
  border-color: var(--gold);
}

.checkbox-label {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-weight: 800;
}

.checkbox-label input {
  width: auto;
  min-height: auto;
  margin-top: 6px;
}

.form-submit {
  border: none;
  width: 100%;
  font-size: 1rem;
}

.form-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Brochure */

.brochure-box {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

/* Footer */

.site-footer {
  background: #111111;
  color: rgba(255, 255, 255, 0.76);
  padding: 62px 0 0;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 34px;
}

.footer-bottom {
  margin-top: 42px;
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

/* Medium screens */

@media (max-width: 1180px) {
  .container {
    width: min(1040px, calc(100% - 36px));
  }

  .main-nav {
    gap: 16px;
    font-size: 0.9rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
    gap: 34px;
  }

  h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  }

  .hero-bg-video {
    left: 8px;
    top: 32px;
    width: clamp(700px, 66vw, 920px);
    opacity: 0.72;
  }

  .services-section::after {
    top: 100px;
    right: -70px;
    bottom: 50px;
    width: 560px;
    opacity: 0.64;
  }
}

@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }

  .header-inner {
    gap: 18px;
  }

  .hero-grid,
  .two-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-self: start;
    max-width: 720px;
  }

  .hero-bg-video {
    left: -60px;
    top: 28px;
    width: 820px;
    opacity: 0.55;
  }

  .trust-grid,
  .cards-grid,
  .why-grid,
  .gallery-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 58px;
  }

  .services-section::after {
    top: 130px;
    right: -120px;
    bottom: 60px;
    width: 520px;
    opacity: 0.50;
  }
}

/* Tablet and mobile */

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 48px 0 54px;
  }

  .hero::after {
    display: block;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.50) 0%,
      rgba(255, 255, 255, 0.78) 42%,
      rgba(255, 255, 255, 0.96) 100%
    );
  }

  .hero-bg-video {
    display: block;
    left: 50%;
    top: 8px;
    width: 178vw;
    max-width: none;
    height: auto;
    max-height: none;
    opacity: 0.42;
    transform: translateX(-50%);
    filter: saturate(1.22) contrast(1.15) brightness(1.04);
  }

  .services-section::after {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-card {
    justify-self: stretch;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    min-height: 72px;
    gap: 12px;
  }

  .logo span {
    font-size: 1.12rem;
  }

  .logo small {
    font-size: 0.66rem;
    max-width: 190px;
  }

  .header-call {
    padding: 10px 13px;
    font-size: 0.84rem;
    min-height: 44px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 2.85rem);
    letter-spacing: -0.06em;
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.25rem);
  }

  h3 {
    font-size: 1.15rem;
  }

  .hero-text {
    font-size: 1.04rem;
  }

  .hero-bg-video {
    top: 0;
    width: 190vw;
    opacity: 0.38;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-height: 52px;
  }

  .hero-contact {
    flex-direction: column;
    gap: 4px;
  }

  .hero-contact span {
    display: none;
  }

  .trust-grid,
  .cards-grid,
  .why-grid,
  .gallery-grid,
  .reviews-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    padding: 24px 0;
  }

  .section {
    padding: 62px 0;
  }

  .hero-card,
  .highlight-box,
  .benefits-card,
  .calendar-box,
  .brochure-box,
  .quote-form,
  .service-card,
  .review-card {
    padding: 24px;
  }

  .hero-logo-wrap {
    padding: 14px;
    margin-bottom: 22px;
  }

  .hero-brand-logo {
    width: min(220px, 82%);
  }

  .brochure-box {
    flex-direction: column;
    align-items: stretch;
  }

  .image-placeholder {
    height: 210px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* Small phones */

@media (max-width: 390px) {
  .logo small {
    display: none;
  }

  .header-call {
    font-size: 0.78rem;
    padding: 9px 11px;
  }

  h1 {
    font-size: 2.18rem;
  }

  .hero-bg-video {
    width: 205vw;
    opacity: 0.34;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-brand-logo {
    animation: none;
  }
}
/* Letsyncapp logo section */

.letsync-section {
  background: #ffffff;
}

.letsync-logo-box {
  width: min(100%, 520px);
  margin: 0 0 28px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.letsync-logo {
  display: block;
  width: min(100%, 430px);
  height: auto;
  margin: 0 auto;
}

@media (max-width: 1050px) {
  .letsync-logo-box {
    width: min(100%, 480px);
  }
}

@media (max-width: 640px) {
  .letsync-logo-box {
    padding: 18px;
    margin-bottom: 24px;
  }

  .letsync-logo {
    width: min(100%, 340px);
  }
}
/* Animated painter cat peek */

.peek-cat {
  position: fixed;
  left: 0;
  bottom: clamp(18px, 6vh, 70px);
  z-index: 45;
  pointer-events: none;
  transform: translateX(-82%);
  animation: catPeek 26s ease-in-out infinite;
}

.peek-cat img {
  display: block;
  width: clamp(110px, 13vw, 210px);
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.18));
}

@keyframes catPeek {
  0% {
    transform: translateX(-84%);
  }

  8% {
    transform: translateX(-10%);
  }

  24% {
    transform: translateX(-10%);
  }

  34% {
    transform: translateX(-84%);
  }

  100% {
    transform: translateX(-84%);
  }
}

@media (max-width: 768px) {
  .peek-cat {
    bottom: 16px;
  }

  .peek-cat img {
    width: clamp(90px, 28vw, 135px);
  }
}

@media (max-width: 390px) {
  .peek-cat img {
    width: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .peek-cat {
    animation: none;
    transform: translateX(-84%);
  }
}