.page-home {
  --black: #0b0c0d;
  --dark: #101214;
  --dark2: #15181a;
  --dark3: #25292c;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-display);
  overflow-x: hidden;
  overflow-x: clip;
}

.page-home::selection {
  background: var(--gold);
  color: var(--black);
}

.page-home a,
.page-home button {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.page-home main > section:not(#hero) {
  position: relative;
  padding-block: clamp(88px, 9vw, 144px);
}

/* Navigation */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding-inline: max(28px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgb(8 9 10 / 78%), transparent);
  transition:
    height var(--transition-base),
    background var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.site-nav.is-scrolled {
  height: 70px;
  border-bottom-color: rgb(201 168 76 / 20%);
  background: rgb(11 12 13 / 90%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 18%);
  backdrop-filter: blur(18px) saturate(130%);
}

.nav-logo {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.nav-logo-icon {
  width: 43px;
  height: 43px;
  filter: drop-shadow(0 8px 18px rgb(201 168 76 / 12%));
}

.nav-logo-text strong {
  display: block;
  color: var(--gold-light);
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.26em;
  line-height: 1;
}

.nav-logo-text p,
.nav-logo-text span {
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.nav-logo-text p {
  margin-top: 5px;
  color: var(--gold);
  font-size: 7px;
  letter-spacing: 0.34em;
}

.nav-logo-text span {
  display: block;
  margin-top: 4px;
  color: rgb(240 240 240 / 54%);
  font-size: 7px;
  letter-spacing: 0.17em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  color: rgb(240 240 240 / 68%);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.nav-links a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: '';
  opacity: 0;
  transform: scaleX(0.3);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-light);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta):focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  min-height: 44px;
  padding: 14px 22px;
  border: 1px solid var(--gold);
  color: var(--gold-light) !important;
  transition:
    background var(--transition-fast),
    color var(--transition-fast) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--gold);
  color: var(--black) !important;
}

.hamburger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgb(201 168 76 / 25%);
  background: rgb(11 12 13 / 65%);
  color: var(--gold);
}

.hamburger span {
  width: 22px;
  height: 1px;
  background: currentColor;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 112px 28px 40px;
  background: linear-gradient(135deg, rgb(201 168 76 / 8%), transparent 40%), rgb(11 12 13 / 98%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  display: flex;
  min-height: 56px;
  padding: 18px 0;
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  color: var(--text);
  font-size: clamp(26px, 8vw, 42px);
  line-height: 1.1;
  text-decoration: none;
}

.mobile-menu a:last-child {
  margin-top: 20px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.page-home.menu-open {
  overflow: hidden;
}

/* Hero */
#hero {
  position: relative;
  display: flex;
  min-height: min(960px, 100svh);
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

#hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 84px 84px;
  content: '';
  -webkit-mask-image: linear-gradient(to right, black, transparent 78%);
  mask-image: linear-gradient(to right, black, transparent 78%);
  pointer-events: none;
}

#hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 3;
  height: clamp(130px, 21vh, 240px);
  background: linear-gradient(to bottom, transparent, rgb(11 12 13 / 72%) 45%, var(--black));
  content: '';
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: -2%;
  background-image: url('/assets/images/placeholders/construction-site.svg');
  background-position: center 42%;
  background-size: cover;
  filter: saturate(0.78) contrast(1.05) brightness(0.52);
  opacity: 1;
  transform: scale(1.06);
  transition: transform 8s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-bg.loaded {
  transform: scale(1);
}

.hero-bg.loaded img {
  opacity: 1;
}

.hero-bg.image-error img {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(8 9 10 / 94%) 0%, rgb(8 9 10 / 72%) 43%, rgb(8 9 10 / 18%) 75%),
    linear-gradient(180deg, rgb(8 9 10 / 28%), transparent 45%, rgb(8 9 10 / 40%));
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(100% - 56px, 1240px);
  margin-inline: auto;
  padding-block: 148px 148px;
}

.hero-badge,
.section-label {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--gold-light);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero-badge::before,
.section-label::before {
  width: 34px;
  height: 1px;
  background: var(--gold);
  content: '';
}

.hero-badge {
  margin-bottom: 28px;
}

.hero-title {
  max-width: 820px;
  margin-bottom: 26px;
  color: #f4f1eb;
  font-size: clamp(48px, 7.2vw, 92px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-title span,
.section-title span {
  color: var(--gold-light);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 38px;
  color: rgb(240 240 240 / 70%);
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-gold,
.btn-outline,
.form-submit {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-gold,
.form-submit {
  background: var(--gold);
  color: var(--black);
}

.btn-outline {
  border-color: rgb(255 255 255 / 30%);
  background: rgb(10 11 12 / 30%);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-gold:hover,
.btn-gold:focus-visible,
.form-submit:hover,
.form-submit:focus-visible {
  background: var(--gold-light);
  box-shadow: 0 16px 42px rgb(201 168 76 / 16%);
  transform: translateY(-2px);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  width: min(100%, 780px);
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(50px, 8vh, 88px);
  border-top: 1px solid rgb(255 255 255 / 15%);
  border-bottom: 1px solid rgb(255 255 255 / 15%);
}

.hero-stat {
  padding: 22px 22px 20px 0;
}

.hero-stat + .hero-stat {
  padding-left: 22px;
  border-left: 1px solid rgb(255 255 255 / 15%);
}

.hero-stat .number {
  color: var(--gold-light);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.hero-stat .label {
  margin-top: 8px;
  color: rgb(240 240 240 / 50%);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  right: max(28px, calc((100vw - 1240px) / 2));
  bottom: 84px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgb(255 255 255 / 44%);
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-scroll::after {
  width: 1px;
  height: 54px;
  background: linear-gradient(var(--gold), transparent);
  content: '';
}

/* Shared editorial system */
.section-intro {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 78px);
}

.section-label {
  margin-bottom: 18px;
}

.section-label.text-center,
.section-intro .section-label {
  justify-content: center;
}

.section-title {
  color: #f3f0ea;
  font-size: clamp(38px, 5.2vw, 66px);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.04;
  text-wrap: balance;
}

.divider {
  width: 54px;
  height: 1px;
  margin-top: 26px;
  background: var(--gold);
}

.divider-centered {
  margin-inline: auto;
}

.divider-spaced {
  margin-bottom: 0;
}

.section-desc {
  max-width: 650px;
  color: rgb(240 240 240 / 58%);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.8;
}

/* About */
#o-nas {
  background:
    radial-gradient(circle at 8% 20%, rgb(201 168 76 / 5%), transparent 30%), var(--black);
}

.about-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(54px, 8vw, 112px);
}

.about-image {
  position: relative;
  isolation: isolate;
}

.about-image::before {
  position: absolute;
  inset: 26px -22px -22px 26px;
  z-index: -1;
  border: 1px solid rgb(201 168 76 / 32%);
  content: '';
}

.about-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(5 6 7 / 52%));
  content: '';
  pointer-events: none;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.05);
}

.about-image-badge {
  position: absolute;
  right: -22px;
  bottom: 34px;
  z-index: 2;
  min-width: 150px;
  padding: 24px;
  border: 1px solid rgb(201 168 76 / 42%);
  background: rgb(11 12 13 / 92%);
  backdrop-filter: blur(12px);
}

.about-image-badge .big {
  color: var(--gold-light);
  font-size: 44px;
  line-height: 1;
}

.about-image-badge .small {
  margin-top: 7px;
  color: rgb(240 240 240 / 50%);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid var(--dark3);
}

.about-feature {
  display: grid;
  align-content: start;
  grid-template-columns: 38px 1fr;
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--dark3);
  column-gap: 12px;
  row-gap: 5px;
}

.about-feature:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--dark3);
}

.about-feature .icon,
.service-icon,
.why-icon,
.contact-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(201 168 76 / 30%);
  color: var(--gold-light);
}

.about-feature .icon .icon-svg,
.service-icon .icon-svg,
.why-icon .icon-svg,
.contact-icon .icon-svg {
  width: 19px;
  height: 19px;
}

.about-feature h3 {
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-feature p {
  grid-column: 2;
  margin-top: 0;
  color: rgb(240 240 240 / 48%);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.55;
}

/* Services */
#uslugi {
  border-block: 1px solid rgb(255 255 255 / 5%);
  background: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 7vw, 94px);
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  padding-block: 34px;
  border-top: 1px solid rgb(255 255 255 / 13%);
  column-gap: 22px;
  transition:
    border-color var(--transition-base),
    transform var(--transition-base);
}

.service-card::after {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  content: '';
  transition: width 500ms ease;
}

.service-icon {
  grid-row: 1 / span 3;
  width: 48px;
  height: 48px;
  transition:
    background var(--transition-base),
    color var(--transition-base);
}

.service-card h3 {
  color: #f1eee8;
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 400;
  line-height: 1.2;
}

.service-card > p {
  margin-top: 11px;
  color: rgb(240 240 240 / 52%);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.7;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin-top: 20px;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 20px;
  color: rgb(240 240 240 / 68%);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
}

.service-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 2px;
  background: var(--gold);
  content: '';
}

.service-card:hover {
  border-color: transparent;
  transform: translateX(4px);
}

.service-card:hover::after {
  width: 100%;
}

.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--black);
}

/* Process */
#jak-dzialamy {
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent, rgb(201 168 76 / 3%) 50%, transparent), var(--black);
}

.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0;
}

.steps-grid::before {
  position: absolute;
  top: 28px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(201 168 76 / 45%), transparent);
  content: '';
}

.step {
  position: relative;
  padding: 0 clamp(15px, 2.3vw, 30px);
  text-align: center;
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 26px;
  place-items: center;
  border: 1px solid rgb(201 168 76 / 45%);
  border-radius: 50%;
  background: var(--black);
  color: var(--gold-light);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

.step h3 {
  min-height: 2.5em;
  color: var(--text);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
}

.step p {
  margin-top: 13px;
  color: rgb(240 240 240 / 46%);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.7;
}

/* Portfolio */
#realizacje {
  border-block: 1px solid rgb(255 255 255 / 5%);
  background: var(--dark);
}

.portfolio-grid {
  display: grid;
  grid-auto-rows: 220px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-item {
  position: relative;
  grid-column: span 5;
  grid-row: span 2;
  min-height: 0;
  overflow: hidden;
  background: var(--dark2);
  color: inherit;
  text-decoration: none;
}

.portfolio-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.portfolio-item:nth-child(1),
.portfolio-item:nth-child(4),
.portfolio-item:nth-child(5) {
  grid-column: span 7;
}

.portfolio-item:nth-child(2),
.portfolio-item:nth-child(3),
.portfolio-item:nth-child(6) {
  grid-column: span 5;
}

.portfolio-item:nth-child(2),
.portfolio-item:nth-child(5) {
  grid-row: span 3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.82);
  transform: scale(1.01);
  transition:
    filter 700ms ease,
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.portfolio-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgb(5 6 7 / 88%));
  content: '';
  pointer-events: none;
}

.portfolio-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: clamp(22px, 3vw, 36px);
}

.portfolio-tag {
  margin-bottom: 9px;
  color: var(--gold-light);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-title {
  color: #fff;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.15;
}

.portfolio-meta {
  margin-top: 8px;
  color: rgb(255 255 255 / 54%);
  font-family: var(--font-ui);
  font-size: 11px;
}

.portfolio-hover {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.portfolio-hover span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding-inline: 14px;
  border: 1px solid rgb(255 255 255 / 36%);
  background: rgb(11 12 13 / 50%);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.portfolio-item:hover img {
  filter: saturate(0.9) brightness(0.94);
  transform: scale(1.055);
}

.portfolio-item:hover .portfolio-hover {
  opacity: 1;
  transform: translateY(0);
}

/* Why us */
#dlaczego-my {
  background:
    radial-gradient(circle at 90% 30%, rgb(201 168 76 / 6%), transparent 30%), var(--black);
}

.why-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
  gap: clamp(52px, 8vw, 118px);
}

.why-list {
  margin-top: 36px;
  border-top: 1px solid var(--dark3);
}

.why-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding-block: 22px;
  border-bottom: 1px solid var(--dark3);
}

.why-icon {
  width: 42px;
  height: 42px;
}

.why-text h3 {
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.why-text p {
  margin-top: 6px;
  color: rgb(240 240 240 / 48%);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.65;
}

.why-image {
  position: relative;
  min-height: 680px;
  overflow: hidden;
}

.why-image::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(201 168 76 / 22%);
  background: linear-gradient(180deg, transparent 60%, rgb(7 8 9 / 50%));
  content: '';
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.06);
}

/* Calculator CTA */
#szybka-wycena {
  padding-block: clamp(70px, 8vw, 112px) !important;
  border-block: 1px solid rgb(201 168 76 / 18%);
  background: linear-gradient(120deg, rgb(201 168 76 / 8%), transparent 38%), var(--dark);
}

.cta-box {
  width: min(100% - 48px, 920px);
  margin-inline: auto;
  padding: clamp(42px, 7vw, 82px);
  border: 1px solid rgb(201 168 76 / 30%);
  background: linear-gradient(135deg, rgb(201 168 76 / 7%), transparent 55%), rgb(11 12 13 / 58%);
  text-align: center;
}

.cta-box .section-label {
  justify-content: center;
}

.cta-box p {
  max-width: 620px;
  margin: 25px auto 32px;
  color: rgb(240 240 240 / 56%);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.75;
}

/* Contact */
#kontakt {
  background: var(--black);
}

.contact-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.1fr);
  gap: clamp(48px, 8vw, 112px);
}

.contact-info {
  margin-top: 36px;
  border-top: 1px solid var(--dark3);
}

.contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  padding-block: 18px;
  border-bottom: 1px solid var(--dark3);
}

.contact-icon {
  width: 38px;
  height: 38px;
}

.contact-label {
  color: rgb(240 240 240 / 40%);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-value {
  margin-top: 5px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
}

.contact-value a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.contact-form {
  position: relative;
  padding: clamp(30px, 4.5vw, 56px);
  border: 1px solid rgb(201 168 76 / 22%);
  background: linear-gradient(145deg, rgb(201 168 76 / 5%), transparent 38%), var(--dark);
  box-shadow: 0 30px 90px rgb(0 0 0 / 24%);
}

.contact-form::before {
  position: absolute;
  top: -1px;
  left: clamp(30px, 4.5vw, 56px);
  width: 82px;
  height: 2px;
  background: var(--gold);
  content: '';
}

.contact-form > h3 {
  color: #f2efe9;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
}

.contact-form > p {
  margin: 8px 0 28px;
  color: rgb(240 240 240 / 48%);
  font-family: var(--font-ui);
  font-size: 13px;
}

.estimate-context {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgb(201 168 76 / 32%);
  background: rgb(201 168 76 / 7%);
  color: #b4b4b4;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.55;
}

.estimate-context[hidden] {
  display: none;
}

.estimate-context .icon-svg {
  width: 22px;
  height: 22px;
  color: var(--gold-light);
}

.estimate-context strong {
  color: var(--gold-light);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: rgb(240 240 240 / 52%);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 0;
  outline: 0;
  background: rgb(6 7 8 / 42%);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-group textarea {
  min-height: 122px;
  resize: vertical;
}

.form-group select {
  color-scheme: dark;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgb(240 240 240 / 27%);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgb(201 168 76 / 70%);
  background: rgb(6 7 8 / 72%);
  box-shadow: 0 0 0 3px rgb(201 168 76 / 7%);
}

.form-submit {
  width: 100%;
  border: 0;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgb(211 101 90 / 55%);
  background: rgb(211 101 90 / 8%);
  color: #ffb6ae;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.55;
}

.form-feedback[hidden] {
  display: none;
}

.form-feedback button {
  min-height: 44px;
  margin-top: 9px;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-top: 14px;
  color: rgb(240 240 240 / 35%);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.5;
  text-align: left;
}

.form-note .icon-svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.form-note a {
  grid-column: 2;
  color: var(--gold-light);
  text-underline-offset: 3px;
}

.form-success {
  display: none;
  padding: 64px 16px;
  text-align: center;
}

.form-success .icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid rgb(201 168 76 / 40%);
  border-radius: 50%;
  color: var(--gold-light);
}

.form-success .icon-svg {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  color: var(--gold-light);
  font-size: 24px;
  font-weight: 400;
}

.form-success p {
  max-width: 380px;
  margin: 10px auto 0;
  color: rgb(240 240 240 / 50%);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.65;
}

.form-success .form-success-reference {
  margin-top: 16px;
  color: rgb(240 240 240 / 65%);
}

.form-success-reference strong {
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

/* Czytelność tekstów pomocniczych na ciemnym tle (WCAG AA). */
.nav-logo-text span,
.hero-stat .label,
.hero-scroll,
.section-desc,
.about-image-badge .small,
.about-feature p,
.service-card > p,
.service-list li,
.step p,
.portfolio-meta,
.why-text p,
.cta-box p,
.contact-label,
.contact-form > p,
.form-group label,
.form-note,
.form-success p {
  color: #a6a6a6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #929292;
}

.nav-logo-text p,
.nav-logo-text span,
.hero-stat .label {
  font-size: 9px;
}

/* Motion and focus */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 80ms;
}

.fade-in-delay-2 {
  transition-delay: 140ms;
}

.fade-in-delay-3 {
  transition-delay: 200ms;
}

.fade-in-delay-4 {
  transition-delay: 260ms;
}

.fade-in-delay-5 {
  transition-delay: 320ms;
}

.page-home :focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.page-home section[id] {
  scroll-margin-top: 88px;
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 10px;
  }

  .about-grid,
  .why-grid {
    gap: 60px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 0;
  }

  .steps-grid::before {
    display: none;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1.1fr);
    gap: 56px;
  }
}

@media (max-width: 1024px) {
  .site-nav {
    height: 72px;
    padding-inline: 24px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    width: min(100% - 48px, 720px);
    margin-left: 0;
    padding-left: 24px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgb(8 9 10 / 94%) 0%, rgb(8 9 10 / 68%) 70%, rgb(8 9 10 / 30%)),
      linear-gradient(180deg, rgb(8 9 10 / 25%), transparent 42%, rgb(8 9 10 / 55%));
  }

  .hero-scroll {
    display: none;
  }

  .about-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    width: min(100%, 660px);
  }

  .about-image img {
    aspect-ratio: 5 / 4;
  }

  .why-image {
    min-height: 540px;
  }

  .services-grid {
    column-gap: 36px;
  }

  .portfolio-grid {
    grid-auto-rows: 180px;
  }

  .contact-grid > :first-child {
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  .container,
  .cta-box {
    width: min(100% - 36px, 1240px);
  }

  .page-home main > section:not(#hero) {
    padding-block: 78px;
  }

  .nav-logo-text span {
    display: none;
  }

  #hero {
    min-height: 860px;
  }

  #hero::before {
    background-size: 56px 56px;
    opacity: 0.55;
  }

  .hero-bg img {
    object-position: 58% center;
  }

  .hero-content {
    width: 100%;
    padding: 124px 18px 128px;
  }

  .hero-title {
    font-size: clamp(43px, 13.5vw, 66px);
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }

  .hero-stat:nth-child(3) {
    border-left: 0;
  }

  .hero-stat:nth-child(n + 3) {
    border-top: 1px solid rgb(255 255 255 / 15%);
  }

  .section-intro {
    margin-bottom: 42px;
  }

  .section-label,
  .hero-badge {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .section-title {
    font-size: clamp(36px, 11vw, 52px);
  }

  .about-image::before {
    inset: 16px -10px -12px 16px;
  }

  .about-image img {
    aspect-ratio: 4 / 5;
  }

  .about-image-badge {
    right: -8px;
    bottom: 20px;
  }

  .about-features,
  .services-grid,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .about-feature:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .service-card {
    grid-template-columns: 46px 1fr;
    column-gap: 16px;
  }

  .service-icon {
    width: 42px;
    height: 42px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    display: grid;
    grid-template-columns: 52px 1fr;
    padding: 24px 0;
    border-bottom: 1px solid var(--dark3);
    column-gap: 18px;
    text-align: left;
  }

  .step-number {
    width: 46px;
    height: 46px;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .step h3 {
    min-height: 0;
  }

  .step p {
    margin-top: 7px;
  }

  .portfolio-grid {
    display: grid;
    grid-auto-rows: auto;
    grid-template-columns: 1fr;
  }

  .portfolio-item,
  .portfolio-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .why-image {
    min-height: 460px;
  }

  .cta-box {
    padding: 46px 22px;
  }

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

@media (max-width: 420px) {
  .site-nav {
    padding-inline: 16px;
  }

  .nav-logo-icon {
    width: 38px;
    height: 38px;
  }

  .nav-logo-text strong {
    font-size: 16px;
  }

  .hero-stat {
    padding: 18px 12px 18px 0;
  }

  .hero-stat + .hero-stat {
    padding-left: 12px;
  }

  .about-image-badge {
    min-width: 126px;
    padding: 18px;
  }

  .service-list {
    grid-column: 1 / -1;
    padding-left: 58px;
  }

  .why-item {
    grid-template-columns: 40px 1fr;
    gap: 13px;
  }

  .why-icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  #hero {
    min-height: 620px;
  }

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

  .hero-stats {
    margin-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .hero-bg {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    forced-color-adjust: auto;
  }

  .hero-overlay,
  #hero::after {
    display: none;
  }
}
