@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pliant";
  src: url("../fonts/Pliant-VariableFont_wdth,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-heading: "Bebas Neue", Impact, sans-serif;
  --font-body: "Pliant", "Helvetica Neue", Arial, sans-serif;
  --color-dark: #0c1017;
  --color-dark-soft: #1b1e25;
  --color-text: #55585d;
  --color-muted: #9e9fa2;
  --color-light: #f5f5f6;
  --color-white: #fefefe;
  --color-accent: #b8955f;
  --color-accent-hover: #96733d;
  --color-accent-rgb: 184, 149, 95;
  --container: 1400px;
  --site-gutter: 150px;
  --header-height: 108px;
  --hero-min-height: 100svh;
  --section-min-height: calc(100svh - var(--header-height));
  --contact-cta-height: calc(60svh - 46px);
  --footer-min-height: calc(40svh - 30px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--color-dark);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: inherit;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 0.95;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.site-main {
  overflow: hidden;
}

.has-scroll-reveal .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.72s ease,
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.has-scroll-reveal .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-scroll-reveal .construction-services__item.reveal-on-scroll {
  transform: translateY(34px);
}

.has-scroll-reveal .construction-services__item.reveal-on-scroll.is-visible {
  transform: translateY(0);
}

.has-scroll-reveal .project-card.reveal-on-scroll {
  transform: translateY(34px) scale(0.985);
}

.has-scroll-reveal .project-card.reveal-on-scroll.is-visible {
  transform: translateY(0) scale(1);
}

.eyebrow {
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.35rem;
  color: var(--color-dark);
  background: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.btn:hover {
  background: var(--color-accent-hover);
}

.btn--ghost {
  border: 1px solid rgba(254, 254, 254, 0.32);
  background: transparent;
}

.page-shell {
  min-height: var(--section-min-height);
  padding: calc(var(--header-height) + 4rem) var(--site-gutter) 5rem;
  background: var(--color-white);
  color: var(--color-text);
}

.content-page {
  width: min(100%, var(--container));
  margin: 0 auto;
  max-width: 58rem;
  color: rgba(85, 88, 93, 0.88);
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-page h1 {
  margin-bottom: 2rem;
  color: var(--color-dark);
  font-size: clamp(4rem, 8vw, 7rem);
}

.content-page > * + * {
  margin-top: 1.25rem;
}

.content-page a {
  color: var(--color-accent-hover);
  font-weight: 700;
}

.content-page :where(h2, h3, h4) {
  margin-top: 2rem;
  color: var(--color-dark);
}

.hero-construction {
  position: relative;
  min-height: var(--hero-min-height);
  scroll-margin-top: var(--header-height);
  background: var(--color-dark);
  color: var(--color-white);
}

.hero-construction__media,
.hero-construction__video,
.hero-construction__fallback {
  position: absolute;
  inset: 0;
}

.hero-construction__media {
  overflow: hidden;
  z-index: 0;
}

.hero-construction__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(12, 16, 23, 0.72),
      rgba(12, 16, 23, 0.42) 52%,
      rgba(12, 16, 23, 0.62)
    ),
    linear-gradient(180deg, rgba(12, 16, 23, 0.18), rgba(12, 16, 23, 0.72));
  z-index: 2;
  pointer-events: none;
}

.hero-construction__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-construction__fallback {
  background: linear-gradient(135deg, #73777a 0%, #242b31 52%, #0c1017 100%);
  background-position: center;
  background-size: cover;
}

.hero-construction__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: var(--hero-min-height);
  padding: 8rem var(--site-gutter) 4rem;
}

.hero-construction__content {
  max-width: 50rem;
}

.hero-construction__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(194, 195, 197, 0.78);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 40px 0;
}

.hero-construction__eyebrow::before {
  width: 2.75rem;
  height: 1px;
  content: "";
  background: rgba(var(--color-accent-rgb), 0.78);
}

.hero-construction h1 {
  max-width: 50rem;
  margin-top: 1rem;
  font-size: clamp(4.5rem, 7.2vw, 7.6rem);
}

.hero-video-button {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
  color: rgba(254, 254, 254, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-video-button__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(var(--color-accent-rgb), 0.85);
  border-radius: 50%;
  background: var(--color-accent);
  mask: url("../svg/yt.svg") center / 100% 100% no-repeat;
  -webkit-mask: url("../svg/yt.svg") center / 100% 100% no-repeat;
}

.construction-onas {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: var(--section-min-height);
  padding: 2.5rem var(--site-gutter);
  scroll-margin-top: var(--header-height);
  background: rgb(27, 30, 37);
  color: var(--color-white);
  overflow: hidden;
}

.construction-onas::after {
  position: absolute;
  left: 5vw;
  bottom: -4rem;
  width: 24rem;
  height: 24rem;
  content: "";
  background: rgba(194, 195, 197, 0.06);
  mask: url("../svg/onas.svg") center / contain no-repeat;
  -webkit-mask: url("../svg/onas.svg") center / contain no-repeat;
  pointer-events: none;
}

.construction-onas__image {
  width: 100%;
  height: min(55vw, 34rem);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.construction-onas__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 10%;
}

.construction-onas__text {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.construction-onas__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 35rem;
}

.construction-onas__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(194, 195, 197, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
  margin: 40px 0;
}

.construction-onas__eyebrow::before {
  width: 2.75rem;
  height: 1px;
  content: "";
  background: rgba(var(--color-accent-rgb), 0.78);
}

.construction-onas h2 {
  margin-top: 0.9rem;
  font-size: clamp(3rem, 6vw, 5.7rem);
}

.construction-onas p:not(.construction-onas__eyebrow) {
  margin-top: 1.25rem;
  color: var(--color-muted);
}

.construction-onas .btn {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 3rem;
  margin-top: 2rem;
  border: 1px solid rgba(254, 254, 254, 0.9);
  color: var(--color-white);
  background: transparent;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  isolation: isolate;
}

.construction-onas .btn::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.construction-onas .btn span {
  position: relative;
  z-index: 1;
}

.construction-onas .btn:hover {
  color: var(--color-dark);
  background: transparent;
}

.construction-onas .btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.construction-services {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  min-height: var(--section-min-height);
  scroll-margin-top: var(--header-height);
  background: var(--color-dark);
}

.construction-services__backgrounds,
.construction-services__background {
  position: absolute;
  inset: 0;
}

.construction-services__backgrounds {
  overflow: hidden;
}

.construction-services__backgrounds::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(12, 16, 23, 0.68);
}

.construction-services__background {
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 0.35s ease;
}

.construction-services__background--cisteni {
  background-image: url("../images/fasady.webp");
  opacity: 1;
}

.construction-services__background--podlahy {
  background-image: url("../images/podlahy.webp");
}

.construction-services__background--malovani {
  background-image: url("../images/malir.webp");
}

.construction-services__background--sadrokartony {
  background-image: url("../images/sadros.webp");
}

.construction-services__item {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: max(9rem, calc(var(--section-min-height) / 4));
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(254, 254, 254, 0.1);
}

.construction-services__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: 2rem;
  border: 2.5vw solid var(--color-dark);
}

.construction-services__inner > span:first-child {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.1vw, 3.8rem);
  line-height: 0.95;
}

.construction-services .btn {
  position: absolute;
  left: 50%;
  bottom: 40px;
  overflow: hidden;
  min-width: 0;
  min-height: 3rem;
  border: 1px solid rgba(254, 254, 254, 0.9);
  color: var(--color-white);
  background: transparent;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0;
  isolation: isolate;
  transform: translate(-50%, 1rem);
  white-space: nowrap;
}

.construction-services .btn::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.construction-services .btn span {
  position: relative;
  z-index: 1;
}

.construction-services .btn:hover {
  color: var(--color-dark);
  background: transparent;
}

.construction-services .btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.construction-services:has(.construction-services__item:hover)
  .construction-services__background,
.construction-services[data-active-service] .construction-services__background {
  opacity: 0;
}

.construction-services:has(.construction-services__item--cisteni:hover)
  .construction-services__background--cisteni,
.construction-services:has(.construction-services__item--podlahy:hover)
  .construction-services__background--podlahy,
.construction-services:has(.construction-services__item--malovani:hover)
  .construction-services__background--malovani,
.construction-services:has(.construction-services__item--sadrokartony:hover)
  .construction-services__background--sadrokartony {
  opacity: 1;
}

.construction-services[data-active-service="cisteni"]
  .construction-services__background--cisteni,
.construction-services[data-active-service="podlahy"]
  .construction-services__background--podlahy,
.construction-services[data-active-service="malovani"]
  .construction-services__background--malovani,
.construction-services[data-active-service="sadrokartony"]
  .construction-services__background--sadrokartony {
  opacity: 1;
}

.construction-services__item:hover .btn {
  opacity: 1;
  transform: translate(-50%, 0);
}

.construction-services__item.is-active .btn {
  opacity: 1;
  transform: translate(-50%, 0);
}

.construction-projects {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--section-min-height);
  padding: clamp(5rem, 8vw, 8rem) var(--site-gutter);
  scroll-margin-top: var(--header-height);
  background:
    linear-gradient(
      180deg,
      rgba(254, 254, 254, 0.94),
      rgba(245, 245, 246, 0.98)
    ),
    rgb(245, 245, 246);
}

.construction-projects__header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.construction-projects__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(85, 88, 93, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
}

.construction-projects__eyebrow::before {
  width: 2.75rem;
  height: 1px;
  content: "";
  background: rgba(var(--color-accent-rgb), 0.9);
}

.construction-projects__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 3rem;
  padding: 0 1.2rem;
  border: 1px solid rgba(12, 16, 23, 0.18);
  color: rgba(85, 88, 93, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.construction-projects__link:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-dark);
}

.construction-projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 100%;
  background: var(--color-dark);
  color: var(--color-white);
  isolation: isolate;
}

.project-card__image {
  display: block;
  position: relative;
  aspect-ratio: 0.92 / 1;
  overflow: hidden;
  background: var(--color-dark-soft);
}

.project-card__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      180deg,
      rgba(12, 16, 23, 0.05) 0%,
      rgba(12, 16, 23, 0.42) 46%,
      rgba(12, 16, 23, 0.92) 100%
    ),
    linear-gradient(
      90deg,
      rgba(var(--color-accent-rgb), 0.2),
      rgba(12, 16, 23, 0) 46%
    );
  opacity: 0.95;
  transition: opacity 0.35s ease;
}

.project-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card__content {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 58%;
  padding: clamp(1.35rem, 2.4vw, 2rem);
  background: linear-gradient(
    180deg,
    rgba(12, 16, 23, 0),
    rgba(12, 16, 23, 0.76)
  );
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.project-card__meta {
  color: rgba(254, 254, 254, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.35rem;
  color: rgba(254, 254, 254, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(0.7rem);
  opacity: 0;
  transition:
    color 0.25s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.project-card__action::before {
  width: 2rem;
  height: 1px;
  content: "";
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.06);
}

.project-card:focus-visible .project-card__image img,
.project-card:focus-within .project-card__image img {
  transform: scale(1.06);
}

.project-card:hover .project-card__image::after {
  opacity: 1;
}

.project-card:hover .project-card__content {
  transform: translateY(-0.35rem);
}

.project-card:hover .project-card__action {
  color: var(--color-white);
  opacity: 1;
  transform: translateY(0);
}

.project-card:focus-visible .project-card__content,
.project-card:focus-within .project-card__content {
  transform: translateY(-0.35rem);
}

.project-card:focus-visible .project-card__action,
.project-card:focus-within .project-card__action {
  color: var(--color-white);
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .project-card__action::before {
  width: 2.8rem;
}

.project-card:focus-visible .project-card__action::before,
.project-card:focus-within .project-card__action::before {
  width: 2.8rem;
}

.construction-contact-cta {
  position: relative;
  display: grid;
  place-items: center;
  min-height: var(--contact-cta-height);
  padding: 5rem var(--site-gutter);
  scroll-margin-top: var(--header-height);
  background:
    linear-gradient(rgba(12, 16, 23, 0.76), rgba(12, 16, 23, 0.82)),
    url("../images/kontakt.webp") center 40% / cover no-repeat,
    var(--color-dark);
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.construction-contact-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.construction-contact-cta h2 {
  max-width: 52rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.construction-contact-cta .btn {
  min-width: 0;
  min-height: 3rem;
  margin-top: 2rem;
  padding: 0 1.35rem;
  color: var(--color-dark);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: var(--color-accent);
}

.construction-contact-cta .btn:hover {
  background: var(--color-accent-hover);
}

@media (min-width: 640px) {
  .construction-projects {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }

  .construction-projects__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 1023px) {
  :root {
    --site-gutter: 48px;
  }

  .construction-services__inner {
    gap: clamp(1.75rem, 4vw, 2.75rem);
    padding: clamp(2.25rem, 5vw, 3.5rem) 2rem;
  }

  .construction-services__inner > span:first-child {
    font-size: clamp(1.95rem, 5vw, 3rem);
  }

  .construction-services .btn {
    position: relative;
    left: auto;
    bottom: auto;
    opacity: 1;
    transform: none;
  }

  .construction-services__item:hover .btn,
  .construction-services__item.is-active .btn {
    opacity: 1;
    transform: none;
  }

  .project-card__action {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1024px) {
  .construction-services__item {
    width: 25%;
    min-height: var(--section-min-height);
    border-right: 1px solid rgba(254, 254, 254, 0.1);
    border-bottom: 0;
  }

  .construction-services__item:last-child {
    border-right: 0;
  }

  .construction-services__inner {
    border: 0;
  }

  .construction-projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1481px) {
  .construction-onas {
    flex-direction: row-reverse;
    min-height: var(--section-min-height);
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
  }

  .construction-onas__image {
    width: 40%;
    height: min(42rem, var(--section-min-height));
    margin: 0;
  }

  .construction-onas__text {
    width: 60%;
    min-height: min(42rem, var(--section-min-height));
    align-items: center;
    justify-content: flex-start;
  }

  .construction-onas__inner {
    max-width: 30rem;
  }
}

@media (min-width: 1024px) and (max-width: 1299px) {
  .construction-projects__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  :root {
    --site-gutter: 20px;
    --header-height: 94px;
    --contact-cta-height: calc(60svh - 38px);
    --footer-min-height: calc(40svh - 26px);
  }

  .hero-construction__inner {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }

  .hero-construction h1 {
    font-size: 3.5rem;
  }

  .hero-construction__eyebrow {
    gap: 0.6rem;
    font-size: 0.76rem;
  }

  .hero-construction__eyebrow::before {
    width: 2rem;
  }

  .construction-services__inner {
    border-width: 1rem;
    gap: 2rem;
  }

  .construction-services__inner > span:first-child {
    font-size: clamp(1.75rem, 9vw, 2.55rem);
  }

  .construction-services .btn {
    min-height: 2.85rem;
    font-size: 0.72rem;
  }

  .construction-contact-cta {
    min-height: var(--contact-cta-height);
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .construction-projects__link {
    display: none;
  }

  .construction-contact-cta .btn {
    width: fit-content;
    max-width: 100%;
    min-height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .has-scroll-reveal .reveal-on-scroll,
  .has-scroll-reveal .project-card.reveal-on-scroll,
  .has-scroll-reveal .construction-services__item.reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .project-card__image img,
  .project-card:hover .project-card__image img,
  .project-card:focus-visible .project-card__image img,
  .project-card:focus-within .project-card__image img,
  .project-card__content,
  .project-card__action,
  .project-card__action::before {
    transform: none;
    transition: none;
  }
}
