* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Hina Mincho", serif;
}

h1, h2, h3 {
    font-family: "Hina Mincho", serif;
}

.dropmenu ul li a.active, .dropmenu ul li a:focus, .dropmenu ul li a:hover {
    color: #000 !important;
}

.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 1s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}


.slide-content {
  position: relative;
  color: black;
  text-align: center;
  z-index: 2;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  width: 90%;
  margin-bottom: 20px;
}

.slide-content h2 {
  font-size: 12px;
  margin-bottom: 1rem;
  color: #cf2e2e;
  margin-bottom: -10px;
}

.slide-content p {
  font-size: 60px;
  margin: 0 auto;
}

.navbar {
    flex-direction: column;
}

#header {
    height: auto;
    border-bottom: 0;
}

#header .navbar-section {
    width: 100%;
    justify-content: center;
    height: auto;
}

#header .logo img, #header .logo svg {
    width: 100%;
    max-width: 365px;
    height: auto;
}

#header .navbar-section.logo {
    padding: 40px 0 20px;
}

#header .navbar-section.desktop-menu {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    margin-bottom: 20px;
}

#header a {
    font-size: 20px;
    color: #000;
    text-transform: uppercase;
}

.header-fixed #header {
    position: relative;
}

body.header-fixed.header-animated #header.scrolled {
    height: auto;
}

body.header-fixed.header-animated #header.scrolled .logo img, body.header-fixed.header-animated #header.scrolled .logo svg {
    height: auto;
}

body.header-fixed.header-animated #header.scrolled .navbar-section {
    height: auto;
}

.header-fixed #body-wrapper {
    padding-top: 0;
}

.blocks {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.blocks .left-blocks {
    display: flex;
    flex-wrap: wrap;
    width: 75%;
}

.blocks .aside {
    width: 25%;
}

.blocks .left-blocks .block {
    width: 33.33%;
    padding: 10px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
}

.blocks .left-blocks .block span {
    color: #801328;
    font-size: 16px;
}

.blocks .left-blocks .block h2 {
    text-align: left;
    font-size: 30px;
    margin: 10px 0;
}

.blocks .left-blocks .block p {
    font-size: 18px;
    margin: 0;
}

.custom-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
}

.custom-slider-slides {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.custom-slider-slide {
  flex: 0 0 50%; 
  box-sizing: border-box;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  overflow: hidden;
}

.custom-slider-slide img {
  width: 100%;
  display: block;
}

.custom-slider-text {
  padding: 15px 10px;
  text-align: center;
  width: 100%;
}

.custom-slider-text h2 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  text-align: left;
}

.custom-slider-text p {
  font-size: 0.95rem;
  color: #555;
  text-align: left;
}

/* Кнопки */
.custom-slider-prev, .custom-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-slider-prev svg, .custom-slider-next svg {
    width: 20px;
    height: 20px;
}

.custom-slider-prev {
  left: 15px;
}

.custom-slider-next {
  right: 15px;
}

 .custom-slider-next svg{
    transform: rotate(180deg);
 }


.logoslide {
    display: flex;
    margin-top: 40px;
}

.logoslide .logo-left {
    width: 33%;
}

.custom-slider-text h2 {
    color: #801328;
    font-size: 16px;
}

.custom-slider-text p {
    font-size: 25px;
}

.estate {
    display: flex;
    gap: 40px;
}

.estate .center .block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.estate h3 {
    text-align: center;
    font-size: 35px;
}

.estate p {
    text-align: center;
    font-size: 25px;
}

.estate .left, .estate .right {
    width: 25%;
}

.estate .center {
    width: 50%;
}

.slider4 {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 50px auto;
  overflow: hidden;
}

.slider4-slides {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.slider4-slide {
  flex: 0 0 25%; /* 4 слайда видны */
  box-sizing: border-box;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.slider4-slide img {
  width: 100%;
  display: block;
}

.slider4-text {
  padding: 10px;
  text-align: center;
}

.slider4-text h2 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.slider4-text p {
  font-size: 0.9rem;
  color: #555;
}

/* Кнопки */
.slider4-prev, .slider4-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider4-prev {
  left: 15px;
}

.slider4-next {
  right: 15px;
}

.slider4-prev svg, .slider4-next svg {
    width: 20px;
    height: 20px;
}

.slider4-next svg {
    transform: rotate(180deg);
}

.form {
    background: #f8f8f8;
    padding: 50px 0 70px;
}

.form p {
    font-size: 25px;
    text-align: center;
    width: 500px;
    margin: 0 auto 40px;
}

.form .inputs {
    display: flex;
    justify-content: center;
}

.form .inputs input, .form .inputs button {
    height: 58px;
}

.form .inputs input {
    padding: 20px;
    margin-right: 10px;
}

.form .inputs button {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-color: #000;
    padding: 20px;
}

.form .check {
    color: #801328;
    font-size: 16px;
    margin-top: 20px;
}

.top-footer {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.top-footer h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.top-footer p {
    font-size: 18px;
    text-align: center;
    margin-bottom: 5px;
}

.top-footer .left, .top-footer .center {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.top-footer .left, .top-footer .center, .top-footer .right {
    width: 33.33%;
}

.top-footer .center img {
    width: 80%;
    display: block;
    margin: 0 auto;
    margin-top: 40px;
    margin-bottom: 20px;
}

.top-footer .right img {
    display: block;
    width: 225px;
    margin: 0 auto;
}

@media(max-width: 992px) {
    .header-fixed .mobile-menu {
        position: absolute;
    }

    .mobile-menu .button_container span {
        background: #000;
    }

    .mobile-menu .button_container.active span {
        background: #000 !important;
    }

    .overlay {
        background: white;
    }

    .treemenu li a, .treemenu li a.active, .treemenu li a:focus, .treemenu li a:hover {
        color: #000 !important;
    }

    .treemenu li.tree-empty>.toggler {
        display: none;
    }
}

@media(max-width: 768px) {
    .custom-slider-slide {
        flex: 0 0 100%;
        width: 100%;
    }

    .logoslide {
        flex-direction: column;
    }

    .form p {
        width: 100%;
    }

    .blocks .aside {
        display: none;
    }

    .blocks .left-blocks {
        width: 100%;
        flex-direction: column;
    }

    .blocks .left-blocks .block {
        width: 100%;
    }

    .estate {
        flex-direction: column;
    }

    .estate .left, .estate .right, .estate .center {
        width: 100%;
    }

    .slide-content p {
        margin-top: 20px;
        font-size: 30px;
    }

    .logoslide .logo-left {
        width: 100%;
    }

     .logoslide .logo-left img {
        width: 200px;
        display: block;
        margin: 20px auto;
    }

    .top-footer {
        flex-direction: column;
    }

    .top-footer .left, .top-footer .center, .top-footer .right {
        width: 100%;
    }

    .header-fixed .mobile-menu {
        position: absolute;
    }

    .mobile-menu .button_container span {
        background: #000;
    }

    .mobile-menu .button_container.active span {
        background: #000 !important;
    }

    .overlay {
        background: white;
    }

    .treemenu li a, .treemenu li a.active, .treemenu li a:focus, .treemenu li a:hover {
        color: #000 !important;
    }

    .treemenu li.tree-empty>.toggler {
        display: none;
    }
}

@media(max-width: 992px) {
    p {
        font-size: 20px;
    }

    .estate .left .block, .estate .right .block, .estate .center .block {
        text-align: center;
    }
}