:root {
  --color-primary: #474747;
  --color-secondary: #c9a961;
  --color-text: #191919;
  --color-text-light: #1c1c1c;
  --color-bg: #ffffff;
  --color-hamburger: #333333;
  --color-hamburger-active: #c9a961;
  --font-heading: "Open Sans", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

a:link, a:visited, a:hover, a:active {
   color: var(--color-text-light);
   text-decoration: underline;
}

a:hover {
   text-decoration: underline;
}

/* Header */
#logo {
  width: 45px;
  height: 30px;
  background-image: url('/static/images/logo.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
}

.site-header {
  position: sticky;
  top: 0;
  height: 3rem;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  opacity: 0.8;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  transition: transform 0.3s ease-in-out;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.mobile-menu-toggle.menu-hidden {
  transform: translateX(-150%);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.site-nav-home {
  position: absolute;
  top: 0;
  left: 0;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  margin: 0;
  list-style: none;
  z-index: 900;
}

.site-nav-home li {
  list-style: none;
}

.site-nav-home a:hover,
.site-nav-home a:focus {
  color: var(--color-secondary);
}

.nav-list {
  list-style: none;
  display: flex;
  width: 100%;
  justify-content: space-around;
  margin: 0;
  padding: 0;
}

.nav-item {
  flex: 1;
  text-align: center;
  transition: background-color 0.2s ease;
}

.nav-logo {
  text-align: center;
  transition: background-color 0.2s ease;
}

.nav-item a, .nav-logo a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  display: block;
  margin: 0.5rem 0;
  padding-bottom: 5px
}

.nav-item a:hover,
.nav-item a:focus {
  color: var(--color-secondary);
}

.nav-item.active a {
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 3px;
}

.nav-item.active a:hover,
.nav-item.active a:focus {
  color: var(--color-secondary);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  flex: 1 0 auto;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  position: relative;
  right: 12px;
  top: 15px;
  background-color: #FFFFFF;
  border-radius: 50%;
  border: 1px solid #DDDDDD;
  box-shadow: 10px 10px 10px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  flex-direction: column;
  gap: 5px;
  width: 35px;
  height: 35px;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-hamburger);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle:hover .hamburger-line {
  background-color: var(--color-hamburger-active);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Section */
.section {
  padding: 0.5rem 0 2rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.hero-image-block {
  position: relative;
  height: calc(100vh - 3rem);
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
}

.hero-image-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(2deg, rgba(0, 0, 0, 0.7) 0%, rgba(255, 255, 255, 0) 30%);
  z-index: 10;
  pointer-events: none;
}

.hero-image-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-image-layer.active {
  opacity: 1;
}

ul {
  list-style-type: square;
  padding-left: 1.5rem;
  color: #000000;
}

ul li {
  margin-bottom: 0;
  color: var(--color-text-light);
}

ul li::marker {
  color: #000000;
}

.main-title {
  font-family: var(--font-heading);
  text-shadow: 2px 2px 5px #222222;
  font-size: 2.2rem;
  font-weight: 300;
  color: #ffffff;
  text-align: center;
  position: absolute;
  left: 50%;
  bottom: 0px;
  transform: translate(-50%, -20%);
  z-index: 20;
  max-width: 90%;
}

.about-text-content {
  margin-top: 2rem;
}

.description {
  margin-bottom: 1.2rem;
  text-align: left;
}

.description-smaller {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 100;
}

/* Contact */
.contacts-group {
  padding-bottom: 1rem;
}

.contact-item-phone {
  font-size: 1.4rem;
}

a.phone-link {
  text-decoration: none;
  color: var(--color-text-light);
}

a.contact-link {
    font-size: 0.9rem;
    text-decoration: none;
}

.phone-link:hover {
  text-decoration: none;
  color: var(--color-text-light);
}

.contact-value {
  color: var(--color-text-light);
  text-decoration: none;
  transition: var(--transition);
}

a.contact-value:hover {
  color: var(--color-secondary);
}

.contact-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  flex-shrink: 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(71, 71, 71, 0.1);
  background-color: rgba(255, 255, 255, 0.5);
}

.footer-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 20px;
}

div.footer-info {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
}

div.footer-inner {
  display: flex;
}

div.footer-info {
  margin: 0 3em 0 0;
}

/* Mobile Menu Styles - для всех мобильных устройств */
@media (max-width: 768px), (max-height: 500px) and (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .site-nav {
    position: relative;
    flex-direction: column;
    padding: 0;
    align-items: stretch;
  }

  .site-header {
    height: 0;
  }

  .hero-image-block {
    height: calc(100vh);
  }

  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-list.active {
    max-height: 300px;
    opacity: 1;
    padding: 1rem 0;
  }

  .nav-item, .nav-logo {
    text-align: center;
    padding: 0;
  }

  .nav-item a {
    padding: 0.75rem 1rem;
    display: block;
  }

  div.footer-info {
    align-items: stretch;
    justify-content: left;
  }

  div.footer-inner {
    display: block;
  }
}

/* Responsive for mobile vertical */
@media (max-width: 768px) {
  .main-title {
    font-size: 1.3rem;
    font-weight: 500;
    transform: translate(-50%, -30%);
  } 

  .content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin-bottom: 50px;
  }

  .section-title {
    font-size: 1.6rem;
    margin-top: 0;
  }

  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-item-phone {
    font-size: 1.4rem;
  }

  .container {
    margin: 0 auto;
    padding: 0 15px;
  }
}

/* Responsive for mobile horizontal */
@media (max-height: 360px) {
  .content {
    flex-direction: column;
    max-width: 100%;
  }

  .main-title {
    font-size: 1.2rem;
    transform: translate(-50%, -45%);
  } 

  .section {
    padding: 0;
  }

  .section-title {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-item-phone {
    font-size: 1.5rem;
  }

  .container {
    margin: 0 auto;
    padding: 0 15px;
  }
}

/* Responsive for tablet horizontal */
@media (max-height: 600px) {

}