:root {
  --color-lightgreen: #E1ECE3;
  --color-darkgreen: #0BC193;
  --color-yellow: #FBD010;
  --color-darkred: #A80000;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-purple: #491FD9;
}

@font-face {
  font-family: "heavy";
  src: url('../type/RC-Heavy.woff') format('woff'), 
  url('../type/RC-Heavy.woff2') format('woff2');
  font-weight: 400;
  font-size: normal;
}

img[data-sizes="auto"] { display: block; min-width: 100%; }

.lazyload,
.lazyloading {
  opacity: 0;
}

.lazyloaded {
  opacity: 1;
  transition: opacity 200ms;
}

.hero-image {
  opacity: 0;                    
  transition: opacity 2.5s ease;   
}

.hero-image.is-visible {
  opacity: 1;
}

.lazy-bg {
    position: relative;
    width: 100%;
    height: calc(100vh - 0px);
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.lazy-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.2;
    z-index: 1;
}

.lazy-bg > * {
    position: relative;
    z-index: 2;
}

.image-wrapper { 
  width: 100%;            
  background-color: var(--color-white);
  overflow: hidden;
  display: block;
}

.image-wrapper.square { aspect-ratio: 1 / 1; }
.image-wrapper.vertical { aspect-ratio: 55 / 73; }
.image-wrapper.horizontal { aspect-ratio: 75 / 50; }

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; 
  display: block;
}

::-moz-selection { color: #fff; background: #000; }
::selection { color: #fff; background: #000; }

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

body { margin:0; padding: 0; overflow-x: hidden; }
html { -ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; -webkit-tap-highlight-color:transparent; box-sizing: border-box; }

body, html { 
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
  line-height: 1.4375rem;
  letter-spacing: 0.019rem;
}
 
h1, h2, h3, h4, h5, p { padding: 0; margin: 0; }

h1, h3, p {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.4375rem;
  letter-spacing: 0.019rem;
}

h2, .xxl {
  font-family: 'heavy', 'Helvetica Neue', Helvetica, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2.375rem;
  line-height: 2.375rem;
  letter-spacing: -0.01em;
}

h2 a { text-decoration: underline; color: #000; text-decoration-thickness: 2px;  }

h3 {
  font-family: 'heavy', 'Helvetica Neue', Helvetica, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  line-height: 25px;
} 

/* .navbar a {
  font-family: 'heavy', 'Helvetica Neue', Helvetica, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 11px;
  line-height: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #FBCB0B;
  color: #fff;
  padding: 8 12px;
} */

.illustration1 { max-width: 240px; margin: 0 0 12px 12px; }
.illustration2 { max-width: 440px; padding-top: 60px }
.illustration3 { max-width: 460px; padding-top: 30px; padding-right: 15px; }
.illustration4 { max-width: 320px; }
.illustration5 { max-width: 345px; padding-right: 16px; padding-top: 58px; }
.illustration-services { max-width: 340px; padding-top: 40px; padding-left: 18px; padding-bottom: 10px; }

#about-intro {
  padding: 10px 0;
}

#about-intro .three-items {
  padding-top: 12px;
}

#about-intro .three-items p,
#about-layouts-maps p {
  border-top: 0.4px solid color(srgb 0 0 0 / 0.5);
  padding: 2px 0 4px;
}

#about-layouts-maps {
  padding-bottom: 20px;
}

.image-wrapper.map img {
    padding: 20px;
    object-fit: contain;
}

#about-ideal ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#about-ideal ul li.list-item::before {
  content: "·";
  margin-right: 12px;
}

#about-ideal ul .title {
  border-top: 0.4px solid color(srgb 0 0 0 / 0.5);
  padding: 4px 0 22px;
}

#about-ideal img {
  float: right;
  margin: 20px;
}

#about-layouts img {
  float: right;
  margin: 15px;
}

.navbar {
  transition: opacity 0.2s ease;
  opacity: 1;
}

.navbar.hidden {
  opacity: 0;
  pointer-events: none;
}

.wrapper {
  position: relative;
  z-index: 20;
  margin-bottom: 100vh; 
  background: var(--color-lightgreen);
}

.under {
  height: 100vh; 
  background-color: #A80000;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: -1; 
  color: var(--color-white);
}

footer {
  padding: 12px 0;
}

footer .xxl,
footer img {
  text-align: center;
  opacity: 0;
}

footer a {
  color: var(--color-white);
  text-decoration: none;
  width: 100%;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .bottom {
  position: fixed;
  bottom: 10px;
  width: 100%;
}

footer .bottom img {
  width: 100%;
  padding-bottom: 10px;
}

.mixblend {
	mix-blend-mode: difference;
}

.hero {
  height: 100dvh;
  padding: 26px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.hero.home-page { background-color: var(--color-lightgreen); }
.hero.contact-page { background-color: var(--color-darkred); }

.hero-image {
  max-width: 100%;
  height: 80vh;
  object-fit: contain;
}

video.hero-video,
video.hero-video source,
video.hero-video img {
  max-width: 100%;
  height: 80vh;
  object-fit: contain;
  display: block;
}


.contacts {
  display: flex;
  flex-direction: column;     
  justify-content: center;  
  align-items: center;      
  color: var(--color-white);
  text-align: center;
}

.contacts a {
  color: var(--color-white);
  text-decoration: none;
}

.hero-footer {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

.hero-footer.white,
.hero-footer a {
  color: #fff;
  text-decoration: none;
}

.line {
  background: color(srgb 0 0 0 / 0.5);
  width: 100%;
  height: 0.4px;
}

.hero-footer {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero-footer.visible {
  opacity: 1;
}


.weather, .time {
  white-space: nowrap;
}

.hero-title {
  margin: 0 10px;
  flex: 1;
}

section#home {
  padding: 20px 0;
  display: flex;
  
}

section#home a {
  color: #000;
}

header {
  z-index: 9995;
  position: absolute;
}

.align-bottom {
 display: flex;
 flex-direction: column;
 justify-content: space-between;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  text-align: center;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; 
  padding: 18px 20px;
}

.nav-section {
  display: flex;
  gap: 60px;
  font-size: 16px;
  line-height: 11px;
}

.nav-logo img {
  width: 208px;
  display: block;
}

.nav-links-mobile {
  display: none;
}


@media (max-width: 767px) {
  .nav-content {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .nav-links-desktop {
    display: none;
  }

  .nav-links-mobile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 15px 0;
    font-size: 16px;
  }

  .nav-logo {
    width: 100%;
    padding: 0 20px 20px;
  }

  .nav-logo img {
    width: 100%;
    height: auto;
  }
}

footer a {
  display: inline-block;
  transform-origin: center center;
}

footer a:hover {
  transform: scaleY(-1) translateY(-0px); 
}

.navbar a.text,
.contacts a,
.hero-title a
.footer a.text,
.popup-content a {
  display: inline-block; 
  transform-origin: center center; 
}

.navbar a.text:hover,
.contacts a:hover,
.hero-title a:hover,
footer a.text:hover,
.popup-content a:hover {
  transform: scaleY(-1) translateY(-4.5px); 
}

.nav-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1; 
  margin-top: 10px;
}

.nav-logo img {
  width: 208px;
  display: block;
}


.nav-logo img {
/*   display: inline-block; */
  transform-origin: center center;
}

.nav-logo:hover img {
  transform: scaleY(-1);
}


.nav-links-mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav-links-desktop {
    display: none;
  }

  .nav-logo {
    position: relative;
    left: auto;
    transform: none;
    margin: 0 auto;
    padding: 0;
  }

  .nav-logo img {
    display: block;
    margin: 0 auto;
  }

  .nav-links-mobile {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
  }

  .nav-content {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }
}

.home-grid-container.second {
  margin-top: 30px;
}

.home-grid-container {
   display: grid;
   grid-template-columns: repeat(12, 1fr);
   width: 100%;
   gap: 10px;
   align-items: stretch; 
   padding: 15px;
 }
 
 .left-col {
   grid-column: span 6;
   display: flex;
   flex-direction: column;
   justify-content: space-between; 
 }
 
 .left-col h2 { padding-right: 20px } 
 .right-col {
   grid-column: span 6;
 }
 
 .image {
   width: 100%;
   height: auto;
   display: block;
 }
 
 .nested-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 5px;
 }
 
 .item {
   text-align: center;
 }
 
 .item1 { grid-column: 1 / 2; grid-row: 1 / 2; }
 .item2 { grid-column: 1 / 4; grid-row: 1 / 2; }
 .item3 { grid-column: 2 / 4; grid-row: 2 / 3; } 
 .item4 { grid-column: 1 / 4; grid-row: 2 / 3; } 
 .item5 { grid-column: 1 / 4; grid-row: 1 / 2; }
 
 
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup.visible {
  display: flex;

  /* Show ✕ cursor using inline SVG as custom cursor */
cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22'><text x='0' y='19' font-size='22' font-family='Arial' fill='white'>✕</text></svg>") 11 11, auto;
}

.popup-content {
    background-color: var(--color-darkgreen);
    color: #fff;
    margin-bottom: 10px;
    padding: 25px;
    text-align: left;
    max-width: 440px;
    width: calc(100% - 40px);
    overflow-y: auto;
    max-height: 90vh;
    transform: rotateY(20deg);
}

.popup-content a {
    color: var(--color-lightgreen);
    text-decoration: none;
}