:root {
  --red: #8f1018;
  --red-dark: #5f0b10;
  --gold: #c7a45a;
  --gold-light: #e7cf8f;
  --graphite: #242629;
  --steel: #5d6268;
  --soft: #f4f2ee;
  --white: #ffffff;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  color: #272727;
  background: var(--soft);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

a {
  color: var(--red);
}

a:hover {
  color: var(--gold);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
.logo {
  font-family: "Raleway", Arial, sans-serif;
}

#header {
  transition: all 0.4s;
  z-index: 997;
  padding: 18px 0;
  background: rgba(24, 26, 28, 0.94);
  border-bottom: 1px solid rgba(199, 164, 90, 0.28);
}

#header.header-scrolled {
  padding: 12px 0;
  background: rgba(24, 26, 28, 0.98);
}

#header .logo {
  font-size: 30px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

#header .logo a {
  color: var(--white);
}

#header .logo span {
  color: var(--gold);
}

#header .logo img {
  display: block;
  width: auto;
  height: 56px;
  max-width: 190px;
  object-fit: contain;
  border-radius: 3px;
}

.nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > ul {
  display: flex;
  align-items: center;
}

.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
  padding: 10px 0 10px 22px;
}

.nav-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu .active > a {
  color: var(--gold-light);
}

.get-started-btn {
  color: var(--white);
  border-radius: 4px;
  padding: 9px 22px;
  margin-left: 28px;
  border: 2px solid var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.get-started-btn:hover {
  background: var(--gold);
  color: #181818;
}

.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 18px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 26px;
  transition: all 0.4s;
  outline: none;
  line-height: 1;
  cursor: pointer;
  color: var(--white);
}

.mobile-nav {
  position: fixed;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  z-index: 9999;
  overflow-y: auto;
  background: var(--white);
  transition: ease-in-out 0.2s;
  opacity: 0;
  visibility: hidden;
  border-radius: 8px;
  padding: 10px 0;
}

.mobile-nav * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav a {
  display: block;
  position: relative;
  color: var(--graphite);
  padding: 10px 20px;
  font-weight: 700;
}

.mobile-nav a:hover {
  color: var(--red);
}

.mobile-nav-overly {
  width: 100%;
  height: 100%;
  z-index: 9997;
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(18, 18, 18, 0.72);
  overflow: hidden;
  display: none;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active .mobile-nav {
  opacity: 1;
  visibility: visible;
}

#uvod {
  width: 100%;
  min-height: 760px;
  background:
    linear-gradient(rgba(20, 21, 23, 0.78), rgba(20, 21, 23, 0.88)),
    url("../img/hero-kamenictvi-krnov.png") center center;
  background-size: cover;
  position: relative;
}

#uvod .container {
  padding-top: 86px;
}

#uvod h1 {
  margin: 0;
  font-size: 58px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
}

#uvod h1 span {
  color: var(--gold);
}

#uvod h2 {
  color: rgba(255, 255, 255, 0.86);
  margin: 20px auto 0;
  font-size: 22px;
  max-width: 860px;
  line-height: 1.55;
}

#uvod .icon-box {
  padding: 28px 18px;
  transition: ease-in-out 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(36, 38, 41, 0.72);
  height: 100%;
  text-align: center;
  border-radius: 4px;
}

#uvod .icon-box i {
  font-size: 32px;
  line-height: 1;
  color: var(--gold);
}

#uvod .icon-box h3 {
  font-weight: 700;
  margin: 14px 0 0;
  padding: 0;
  line-height: 1.25;
  font-size: 17px;
}

#uvod .icon-box h3 a {
  color: var(--white);
}

#uvod .icon-box:hover {
  border-color: var(--gold);
  background: rgba(143, 16, 24, 0.78);
}

section {
  padding: 76px 0;
  overflow: hidden;
}

.section-bg {
  background: #ece8df;
}

.section-title {
  padding-bottom: 34px;
}

.section-title h2 {
  font-size: 14px;
  font-weight: 800;
  padding: 0;
  line-height: 1px;
  margin: 0 0 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
}

.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--gold);
  margin: 4px 10px;
}

.section-title p {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--graphite);
  line-height: 1.2;
}

.content h3 {
  font-weight: 800;
  font-size: 28px;
  color: var(--graphite);
}

.content ul {
  list-style: none;
  padding: 0;
}

.content ul li {
  padding-bottom: 10px;
}

.content ul i {
  font-size: 20px;
  padding-right: 4px;
  color: var(--gold);
}

.image-panel {
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(36, 38, 41, 0.08), rgba(36, 38, 41, 0.28)),
    url("../img/hero-kamenictvi-krnov.png") center center;
  background-size: cover;
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.services .icon-box,
.feature-card,
.contact-card,
.promo-card {
  width: 100%;
  text-align: left;
  border: 1px solid #ded9cf;
  padding: 28px;
  transition: all ease-in-out 0.3s;
  background: var(--white);
  height: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(36, 38, 41, 0.06);
}

.services .icon-box {
  display: flex;
  flex-direction: column;
}

.services .icon-box:hover,
.feature-card:hover,
.promo-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.services .icon-box .icon,
.feature-card .icon {
  width: 56px;
  height: 56px;
  background: var(--red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.services .icon-box .icon i,
.feature-card .icon i {
  color: var(--gold-light);
  font-size: 28px;
}

.services .icon-box h4,
.feature-card h4,
.promo-card h4 {
  font-weight: 800;
  margin-bottom: 13px;
  font-size: 22px;
  color: var(--graphite);
}

.services .icon-box p,
.feature-card p,
.promo-card p {
  color: #616161;
  margin: 0;
}

.cta {
  background:
    linear-gradient(rgba(95, 11, 16, 0.9), rgba(36, 38, 41, 0.9)),
    url("../img/hero-kamenictvi-krnov.png") fixed center center;
  background-size: cover;
  padding: 78px 0;
}

.cta h3 {
  color: var(--white);
  font-size: 30px;
  font-weight: 800;
}

.cta p {
  color: rgba(255, 255, 255, 0.84);
}

.cta .cta-btn {
  font-weight: 800;
  font-size: 16px;
  display: inline-block;
  padding: 12px 36px;
  border-radius: 4px;
  transition: 0.4s;
  margin-top: 10px;
  border: 2px solid var(--gold);
  color: var(--white);
}

.cta .cta-btn:hover {
  background: var(--gold);
  color: #181818;
}

.page-hero {
  padding: 150px 0 88px;
  background:
    linear-gradient(rgba(20, 21, 23, 0.82), rgba(20, 21, 23, 0.86)),
    url("../img/hero-kamenictvi-krnov.png") center center;
  background-size: cover;
}

.page-hero h1 {
  color: var(--white);
  font-weight: 800;
  font-size: 44px;
}

.page-hero p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  margin-top: 18px;
}

.gallery-card {
  aspect-ratio: 3 / 4;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: var(--white);
  border-radius: 4px;
  background: url("../img/hero-kamenictvi-krnov.png") center center;
  background-size: cover;
  background-position: center center;
  position: relative;
  overflow: hidden;
}

.gallery-link {
  display: block;
  height: 100%;
  color: inherit;
}

.gallery-link:hover {
  color: inherit;
}

.gallery-link:hover .gallery-card {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(36, 38, 41, 0.2);
}

.gallery-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(36, 38, 41, 0), rgba(36, 38, 41, 0.92));
  pointer-events: none;
}

.gallery-card > div {
  position: relative;
  z-index: 1;
}

.gallery-card h4 {
  color: var(--gold-light);
  font-weight: 800;
}

.gallery-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.product-detail {
  row-gap: 26px;
}

.product-detail__image {
  min-height: 520px;
}

.product-image-panel {
  height: 100%;
  min-height: 520px;
  margin: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  border: 1px solid #ded9cf;
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(36, 38, 41, 0.1);
}

.product-image-panel img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  display: block;
  background: #f4f1eb;
  border-radius: 4px;
}

.product-image-panel figcaption {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e4ded2;
}

.product-image-panel strong,
.product-image-panel span {
  display: block;
}

.product-image-panel strong {
  color: var(--graphite);
  font-size: 15px;
  font-weight: 800;
}

.product-image-panel span {
  margin-top: 3px;
  color: #686868;
  font-size: 13px;
  line-height: 1.45;
}

.product-article {
  min-height: 100%;
  padding: 42px;
  background: var(--white);
  border-left: 5px solid var(--gold);
  box-shadow: 0 12px 34px rgba(36, 38, 41, 0.1);
}

.product-article__label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-article h3 {
  margin: 0 0 20px;
  color: var(--graphite);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
}

.product-article p {
  color: #4d4d4d;
  font-size: 16px;
  line-height: 1.75;
}

.visualization-page .product-article h3 {
  font-size: 28px;
}

.visualization-page .product-article p {
  font-size: 15px;
  line-height: 1.68;
}

.contact .info {
  width: 100%;
  height: 100%;
  background: var(--white);
  padding: 28px;
  border-radius: 4px;
  border: 1px solid #ded9cf;
}

.contact .info i {
  font-size: 24px;
  color: var(--gold);
  float: left;
  width: 44px;
  height: 44px;
  background: rgba(143, 16, 24, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--graphite);
}

.contact .info p {
  padding: 0 0 20px 60px;
  margin-bottom: 0;
  font-size: 14px;
  color: #575757;
}

.contact-card button,
.btn-gold {
  min-height: 48px;
  background: var(--red);
  border: 0;
  padding: 11px 28px;
  color: var(--white);
  transition: 0.4s;
  border-radius: 4px;
  font-weight: 800;
}

.contact-card button:hover,
.btn-gold:hover {
  background: var(--gold);
  color: #181818;
}

.contact-form label {
  color: var(--graphite);
  font-weight: 700;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-left: auto;
  margin-top: 18px;
  padding: 9px 16px;
  min-height: 42px;
  font-size: 14px;
}

.gallery-intro {
  color: #616161;
  margin-bottom: 28px;
}

.gallery-page main > section:first-child {
  padding-top: 138px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 78px 92px 44px;
  background: rgba(12, 13, 14, 0.92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__image {
  max-width: min(100%, 900px);
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  background: #1d1f21;
}

.lightbox__button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  color: var(--white);
  background: rgba(143, 16, 24, 0.86);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__button:hover {
  background: var(--gold);
  color: #181818;
}

.lightbox__close {
  top: 20px;
  right: 22px;
}

.lightbox__prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__counter {
  position: absolute;
  left: 24px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

body.lightbox-open {
  overflow: hidden;
}

.contact-form .form-control {
  border: 1px solid #ded9cf;
  border-radius: 4px;
  min-height: 46px;
  box-shadow: none;
}

.contact-form textarea.form-control {
  min-height: 150px;
}

.contact-form .form-submit {
  min-height: 48px;
  margin-top: 22px;
}

.contact-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.15rem rgba(199, 164, 90, 0.2);
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-success {
  display: inline-block;
  min-height: 48px;
  padding: 12px 18px;
  color: #181818;
  background: var(--gold);
  border-radius: 4px;
  font-weight: 800;
}

.form-error {
  display: inline-block;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--red);
  border-radius: 4px;
  font-weight: 800;
}

#footer {
  background: #171819;
  color: var(--white);
  font-size: 14px;
}

#footer .footer-top {
  background: #202225;
  border-bottom: 1px solid rgba(199, 164, 90, 0.16);
  padding: 56px 0 28px;
}

#footer .footer-info h3 {
  font-size: 30px;
  margin: 0 0 20px;
  font-weight: 800;
}

#footer .footer-info h3 span {
  color: var(--gold);
}

#footer .footer-info img {
  display: block;
  width: auto;
  height: 58px;
  max-width: 190px;
  object-fit: contain;
  border-radius: 3px;
}

#footer .footer-links {
  margin-bottom: 30px;
}

#footer .footer-links h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-light);
  position: relative;
  padding-bottom: 12px;
}

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

#footer .footer-links ul li {
  padding: 7px 0;
  display: flex;
  align-items: center;
}

#footer .footer-links ul i {
  padding-right: 4px;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}

#footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.76);
}

#footer .footer-links ul a:hover {
  color: var(--gold-light);
}

#footer .copyright {
  text-align: center;
  padding: 24px 0;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  transition: display 0.5s ease-in-out;
}

.back-to-top i {
  font-size: 24px;
  position: absolute;
  top: 8px;
  left: 8px;
}

.back-to-top:hover {
  background: var(--gold);
  color: #181818;
}

@media (max-width: 991px) {
  #header {
    padding: 12px 0;
  }

  #header .logo img {
    height: 44px;
    max-width: 150px;
  }

  #uvod {
    min-height: auto;
    padding: 120px 0 70px;
  }

  #uvod .container {
    padding-top: 0;
  }

  #uvod h1 {
    font-size: 42px;
  }
}

@media (max-width: 575px) {
  #uvod h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .section-title p {
    font-size: 27px;
  }

  .get-started-btn {
    display: none;
  }

  .gallery-page main > section:first-child {
    padding-top: 112px;
  }

  .gallery-card {
    min-height: 420px;
  }

  .product-detail__image {
    min-height: 430px;
  }

  .product-image-panel {
    min-height: 0;
    padding: 14px;
  }

  .product-image-panel img {
    max-height: none;
  }

  .product-article {
    padding: 28px 22px;
  }

  .product-article h3 {
    font-size: 24px;
  }

  .lightbox {
    padding: 58px 14px 82px;
  }

  .lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 152px);
  }

  .lightbox__button {
    width: 46px;
    height: 46px;
    font-size: 28px;
  }

  .lightbox__close {
    top: 10px;
    right: 10px;
  }

  .lightbox__prev {
    left: calc(50% - 58px);
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .lightbox__next {
    right: calc(50% - 58px);
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .lightbox__counter {
    left: 14px;
    bottom: 32px;
    font-size: 13px;
  }
}


.gallery-card--landscape {
  aspect-ratio: 4 / 3;
  min-height: 260px;
}

@media (max-width: 575px) {
  .gallery-card--landscape {
    min-height: 260px;
  }
}


.hero-seo {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 600;
}
