:root {
  --accent: #ff9000;
  --dark: #141414;
  --text: #666;
  --title: #2a2a2a;
  --container: 1060px;
}

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

html {
  scroll-behavior: smooth;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: #fff;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 36px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 14px;
  color: #111;
  background: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  padding: 60px 0 30px;
  color: #fff;
  transition: padding .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.site-header.is-sticky {
  position: fixed;
  padding: 15px 0;
  background: rgba(20, 20, 20, .94);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .18);
  animation: header-in .25s ease both;
}

@keyframes header-in {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 36px), var(--container));
  min-height: 36px;
  margin-inline: auto;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  width: 200px;
  height: 30px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.desktop-nav a {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  text-transform: uppercase;
  transition: color .2s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 34px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 29px;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
}

.mobile-menu,
.menu-backdrop {
  display: none;
}

.hero {
  position: relative;
  min-height: 600px;
  height: max(600px, 80vh);
  overflow: hidden;
  color: #fff;
  background: #262626;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide.is-active > img {
  animation: kenburns 12s ease-out both;
}

@keyframes kenburns {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .3);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(calc(100% - 36px), 750px);
  margin-inline: auto;
  text-align: center;
}

.hero-kicker {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.133;
}

.hero h1,
.hero h2 {
  margin: 20px 0 0;
  color: #fff;
  font-size: 29.472px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-button {
  display: inline-block;
  min-width: 288px;
  height: 55px;
  margin-top: 40px;
  padding: 0 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #666;
  background: #fff;
  font-size: 14px;
  line-height: 53px;
  text-transform: uppercase;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 64px;
  height: 88px;
  padding: 22px 20px;
  border: 0;
  color: rgba(255, 255, 255, .68);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-arrow svg {
  width: 24px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-arrow:hover,
.slider-arrow:focus-visible {
  color: #fff;
}

.blueprint {
  background-color: #fff;
  background-image: linear-gradient(rgba(255, 255, 255, .76), rgba(255, 255, 255, .76)), url("../../images/architecture_left.png");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: auto;
}

.intro {
  min-height: 209px;
  padding: 30px 18px 36px;
  scroll-margin-top: 64px;
}

.content-narrow {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.intro h2 {
  margin: 0 0 20px;
  color: var(--title);
  font-size: 34.336px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.intro h2 > span,
.intro strong span,
.service-card strong span,
.gallery-section h2 span,
.cta-row h2 span {
  color: var(--accent);
}

.intro p {
  margin: 0;
}

.intro strong,
.service-card strong {
  color: #171515;
  font-weight: 400;
}

.services {
  min-height: 753px;
  padding: 0 0 65px;
  scroll-margin-top: 64px;
}

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

.service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--text);
}

.service-card > img {
  width: 100%;
  aspect-ratio: 960 / 554;
  object-fit: cover;
}

.service-card h3 {
  margin: 30px 0 10px;
  color: var(--title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.service-copy {
  flex: 1;
}

.service-copy p {
  margin: 0 0 20px;
}

.text-link {
  display: block;
  align-self: center;
  padding-top: 1px;
  color: var(--accent);
  text-align: center;
  transition: color .2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: #d87500;
}

.gallery-section {
  color: #fff;
  background: var(--dark);
  scroll-margin-top: 64px;
}

#led {
  padding-top: 30px;
}

.gallery-section .container {
  width: min(calc(100% - 80px), 1400px);
}

.gallery-section h2 {
  max-width: 600px;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 29.472px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

#led h2 {
  margin-bottom: 19px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.gallery-item {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--dark);
  color: #fff;
  background: #111;
  cursor: zoom-in;
}

.gallery-item::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  font-size: 44px;
  font-weight: 200;
  opacity: 0;
  transition: opacity .22s ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .35s ease, transform .35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: grayscale(0);
  transform: scale(1.025);
}

.stats {
  position: relative;
  min-height: 398px;
  padding: 110px 0 80px;
  color: #fff;
  background: #111 url("../../images/slaid1-potolki.jpg") center / cover fixed no-repeat;
}

.stats-shade,
.brands-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat svg {
  width: 61px;
  height: 61px;
  margin-bottom: 10px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.stat strong {
  color: var(--accent);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 55px;
}

.stat span {
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 36px;
  text-transform: uppercase;
}

.brands {
  position: relative;
  min-height: 564px;
  padding-top: 20px;
  color: #fff;
  background: #111 url("../../images/slaid2-steni.jpg") left top / cover fixed no-repeat;
}

@media (min-width: 992px) {
  .brands {
    margin-top: 1px;
    box-shadow: 0 -1px 0 #111;
  }
}

.brands-shade {
  background: rgba(0, 0, 0, .7);
}

.brands-content {
  position: relative;
}

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

.brand-card {
  position: relative;
  display: flex;
  min-height: 375px;
  padding: 40px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  background: rgba(255, 255, 255, .05);
  text-align: center;
  transition:
    transform .42s cubic-bezier(.22, 1, .36, 1),
    border-color .42s ease,
    background-color .42s ease,
    box-shadow .42s cubic-bezier(.22, 1, .36, 1);
}

.brand-card:focus-within {
  border-color: rgba(138, 136, 136, .5);
  background: rgba(255, 255, 255, .02);
  box-shadow: inset 0 0 0 5px rgba(138, 136, 136, .42), 0 16px 34px rgba(0, 0, 0, .18);
  transform: translateY(-3px);
}

@media (hover: hover) and (pointer: fine) {
  .brand-card:hover {
    border-color: rgba(138, 136, 136, .5);
    background: rgba(255, 255, 255, .02);
    box-shadow: inset 0 0 0 5px rgba(138, 136, 136, .42), 0 16px 34px rgba(0, 0, 0, .18);
    transform: translateY(-3px);
  }
}

.brand-card > a:first-child {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: center;
}

.brand-card img,
.brand-card .brand-logo {
  width: 100%;
  max-width: 245px;
  max-height: 72px;
  object-fit: contain;
}

.brand-logo-bauf {
  width: 252px;
  max-width: 100%;
  max-height: none;
  height: auto;
  fill: #fff;
}

.brand-logo-bauf .brand-mark {
  fill: rgb(255, 213, 28);
}

.brand-card:nth-child(3) img {
  width: 200px;
  max-width: 100%;
  filter: brightness(0) invert(1);
}

.brand-card h3 {
  margin: 12px 0 15px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-card ul {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.brand-card li {
  margin: 0;
  line-height: 27.2px;
}

.outline-button {
  display: block;
  width: 100%;
  min-height: 41px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, .72);
  color: #fff;
  font-size: 14px;
  line-height: 39px;
  text-align: center;
  text-transform: uppercase;
  transition: color .2s ease, background-color .2s ease;
}

.outline-button:hover,
.outline-button:focus-visible {
  color: #222;
  background: #fff;
}

.cta-row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  min-height: 169px;
  padding-top: 20px;
}

.cta-row h2 {
  margin: 0 0 50px 40px;
  color: #fff;
  font-size: 34.336px;
  font-weight: 600;
  line-height: 1.2;
}

.socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  margin: 0 12px 30px 0;
}

.socials a {
  display: grid;
  min-width: 70px;
  height: 72px;
  place-items: center;
  color: var(--accent);
  transition: color .2s ease, transform .2s ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}

.socials svg {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.socials svg.filled {
  fill: currentColor;
  stroke: none;
}

.site-footer {
  min-height: 65px;
  padding: 19px 0 20px;
  color: #787878;
  background: #252525;
  font-size: 15.2px;
  line-height: 26px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.contact-row span,
.contact-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-row a:hover,
.contact-row a:focus-visible {
  color: #fff;
}

.contact-row svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.back-to-top {
  position: fixed;
  right: 35px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 144, 0, .82);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--accent);
}

.back-to-top svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  padding: 42px 18px 24px;
  color: #fff;
  background: rgba(0, 0, 0, .94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox figure {
  display: flex;
  min-width: 0;
  max-height: calc(100vh - 70px);
  margin: 0;
  flex-direction: column;
  align-items: center;
}

.lightbox figure img {
  max-width: 100%;
  max-height: calc(100vh - 105px);
  object-fit: contain;
}

.lightbox figcaption {
  min-height: 28px;
  padding-top: 6px;
  color: rgba(255, 255, 255, .75);
  text-align: center;
}

.lightbox-close,
.lightbox-arrow {
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 16px;
  width: 46px;
  height: 46px;
  font-size: 38px;
  font-weight: 200;
  line-height: 1;
}

.lightbox-arrow {
  height: 90px;
  font-size: 64px;
  font-weight: 200;
  line-height: 1;
}

.lightbox-prev { grid-column: 1; }
.lightbox figure { grid-column: 2; }
.lightbox-next { grid-column: 3; }

@media (max-width: 1199px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  html {
    font-size: 15px;
  }

  .site-header {
    padding: 60px 0 30px;
  }

  .site-header.is-sticky {
    padding: 15px 0;
  }

  .header-inner {
    width: calc(100% - 36px);
  }

  .menu-toggle {
    display: block;
    flex: 0 0 46px;
  }

  .menu-toggle span {
    display: block;
  }

  .logo {
    margin-left: 21px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 90;
    display: flex;
    width: min(82vw, 330px);
    padding: 92px 34px 34px;
    flex-direction: column;
    background: #171717;
    box-shadow: 8px 0 30px rgba(0, 0, 0, .28);
    transform: translateX(-105%);
    transition: transform .25s ease;
  }

  .mobile-menu.is-open {
    transform: none;
  }

  .mobile-menu a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .menu-close {
    position: absolute;
    top: 31px;
    left: 27px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-close::before,
  .menu-close::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 2px;
    width: 29px;
    height: 1px;
    background: #fff;
  }

  .menu-close::before { transform: rotate(45deg); }
  .menu-close::after { transform: rotate(-45deg); }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  .services {
    padding-bottom: 65px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .service-card {
    padding-bottom: 0;
  }

  .stats {
    display: none;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-row {
    grid-template-columns: 1fr;
  }

  .cta-row h2 {
    margin: 0 20px 30px;
  }

  .socials {
    margin: 0 0 30px;
  }
}

@media (max-width: 639px) {
  .services-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .gallery-section .container {
    width: 100%;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .container {
    width: 90%;
  }

  .hero {
    height: max(600px, 80vh);
  }

  .hero-slide > img {
    object-position: center center;
  }

  .hero-content {
    width: calc(100% - 36px);
    transform: translateY(-12px);
  }

  .hero-kicker {
    max-width: 340px;
    font-size: 22px;
    line-height: 1.2;
  }

  .hero h1,
  .hero h2 {
    font-size: 24px;
  }

  .hero-button {
    width: min(100%, 265px);
    min-width: 0;
    margin-top: 38px;
    padding: 0 18px;
    font-size: 12px;
  }

  .slider-arrow {
    display: none;
  }

  .intro {
    padding: 30px 18px 35px;
  }

  .intro h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .intro p {
    line-height: 1.7;
  }

  .services-grid {
    gap: 45px;
  }

  .service-card h3 {
    margin-top: 30px;
  }

  .service-copy p {
    margin-bottom: 20px;
  }

  .text-link {
    padding: 0;
  }

  .gallery-section {
    min-height: 0;
    padding: 20px 0 0;
  }

  #led {
    min-height: 0;
    padding-top: 30px;
  }

  .gallery-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 1.2;
  }

  #led h2 {
    margin-bottom: 20px;
  }

  .gallery-item {
    border-width: 1px;
  }

  #karniz {
    padding-bottom: 1px;
  }

  .brands {
    min-height: 0;
    padding: 20px 0 0;
    background-attachment: scroll;
    background-position: center;
  }

  .brand-grid {
    gap: 30px;
  }

  .brand-card {
    min-height: 0;
    padding: 30px;
  }

  .brand-card > a:first-child {
    height: auto;
  }

  .brand-card .brand-logo-bauf {
    width: 252px;
    max-width: 100%;
    max-height: none;
    height: auto;
  }

  .brand-card:nth-child(2) img {
    width: 256px;
    max-width: 100%;
  }

  .brand-card:nth-child(3) img {
    width: 200px;
    max-width: 100%;
  }

  .brand-card h3 {
    margin-top: 20px;
  }

  .brand-card li {
    line-height: 15px;
  }

  .brand-card li + li {
    margin-top: 20px;
  }

  .outline-button {
    min-height: 40px;
    margin-top: 20px;
    line-height: 38px;
  }

  .cta-row {
    min-height: 0;
    margin-top: 14px;
    padding: 20px 0 30px;
  }

  .cta-row h2 {
    margin: 0 20px 50px;
    font-size: 30px;
    line-height: 1.2;
  }

  .socials {
    margin: 0;
  }

  .socials a {
    min-width: 0;
    height: 75px;
  }

  .socials svg {
    width: 60px;
    height: 60px;
  }

  .site-footer {
    padding: 20px 0;
    font-size: 14px;
    line-height: 24.25px;
    text-align: center;
  }

  .contact-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-row span,
  .contact-row a {
    justify-content: center;
  }

  .back-to-top {
    right: 20px;
    bottom: 18px;
  }

  .lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding-inline: 4px;
  }

  .lightbox-arrow {
    font-size: 48px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
