@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
} 

body {
    margin: 0;
    padding: 0;
    color: #fff;
    background: #000000;
    font-family: "Play", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12pt;
}

a {
    font-size: 16pt;
    color: #fff;
    transition: 0.5s;
    text-decoration: none;
}

a:hover {
    color: #84b524;
}

.phone {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.email {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.phone::before {
    content: "";
    background: url('/img/phone.webp') no-repeat;
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.email::before {
    content: "";
    background: url('/img/email.webp') no-repeat;
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

h1 {
    font-weight: normal;
    font-weight: 700;
    margin-top: 0;
    font-size: 60pt;
}

h2 {
    font-weight: normal;
    font-weight: 600;
    margin-top: 0;
    font-size: 55pt;
}

h3 {
    font-weight: normal;
    font-weight: 600;
    margin-top: 0;
    font-size: 30pt;
}

input:focus {
    outline: 2px solid #467932;
}

textarea:focus {
    outline: 2px solid #467932;
}

textarea {
    resize: none;
}

p {
    margin: 20px 0px;
    text-indent: 20px;
}

.section-welcome {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.section-welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.welcome-block {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.weltext {
    font-size: 20pt;
    line-height: 1.4;
}

.welcome-content {
    min-height: 100vh;
    max-width: 1400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}

/* Слои фона для плавного слайдера */
.welcome-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    z-index: 0;
}

.welcome-bg-layer.active {
    opacity: 1;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 300px));
    gap: 10px;
    margin: 20px 0px;
    justify-items: center;
    font-size: 16pt;
}

.btn-primary {
    background: #84b524;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16pt;
    cursor: pointer;
    transition: 0.5s;
}

.btn-primary:hover {
    background: #527016;
}

.service {
    background: #5a4634;
    padding: 60px 0;
}

.why {
    background: #3c2c21;
    padding: 60px 0;
}

.section-title {
    color: #ffffff;
    text-align: center;
}

.container2 {
    margin: 0 auto;
    color: #5a4634;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    justify-items: center;
    gap: 50px;
}

.service-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    max-width: 700px;
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-item img {
    width: 550px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 20px;
    max-width: 1500px;
    padding: 0 20px;
    margin-bottom: 50px;
}

.service-list {
    list-style: disc;
    padding: 0;
    margin-left: 30px;
    text-align: left;
    font-size: 14pt;
}

.list-legend {
    margin-top: 20px;
    font-size: 16pt;
}

.why-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 400px auto;
    gap: 30px;
}

.why-image img {
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.why-text {
    font-size: 18pt;
    color: #fff;
    line-height: 1.4;
    word-wrap: break-word;
}

.why-leader {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 14pt;
    color: #fff;
    text-align: center;
}

.price-table {
    max-width: 1460px;
    margin: 0 auto 50px auto;
    padding: 20px;
    background: #84684e;
    border-radius: 10px;
    font-size: 16pt;
    color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.cell-header {
    width: 100%;
    display: flex;
    font-weight: 700;
    border-bottom: 1px solid #5a4634;
    padding: 10px 0;
}   

.cell-body {
    width: 100%;
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #5a4634;
}

.cell-header .cell:first-child {
    width: 50%;
    text-align: left;
}

.cell-header .cell:nth-child(2) {
    width: 25%;
    text-align: center;
}

.cell-header .cell:nth-child(3) {
    width: 25%;
    text-align: center;
}

.cell-body .cell:first-child {
    width: 50%;
    text-align: left;
}

.cell-body .cell:nth-child(2) {
    width: 25%;
    text-align: center;
}

.cell-body .cell:nth-child(3) {
    width: 25%;
    text-align: center;
}

/* Gallery Styles */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 90%; 
  margin: 0 auto;
  gap: 20px;
}

.gallery a {
  width: 8rem;
  height: 8rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery a:hover img {
  transform: scale(1.2);
}

.gallery-contain {
  max-width: 1700px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.works {
    background: #5a4634;
    padding: 60px 0;
}

.call-button {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.call-button:hover {
    transform: scale(1.1);
}

.call-button--visible {
    opacity: 1;
    visibility: visible;
}

/* Универсальные модальные окна */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 200;
}

.modal--open {
    opacity: 1;
    visibility: visible;
}

.modal__dialog {
    position: relative;
    background: #5a4634;
    border-radius: 12px;
    padding: 30px 30px 25px 30px;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    color: #fff;
}

.modal__dialog__call {
    position: relative;
    background: #5a4634;
    border-radius: 12px;
    padding: 30px 30px 25px 30px;
    max-width: 280px;
    width: 90%;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    color: #fff;
}

.modal__title {
    font-size: 26pt;
    margin-bottom: 10px;
    text-align: center;
}

.modal__title__call {
    font-size: 20pt;
    margin-bottom: 10px;
    text-align: center;
}

.modal__subtitle {
    font-size: 14pt;
    margin-bottom: 20px;
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}

.modal__close .material-icons-round {
    font-size: 20px;
}

.modal__form .form-row {
    margin-bottom: 15px;
}

.modal__form input,
.modal__form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 5px;
    border: none;
    font-family: "Play", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12pt;
    box-sizing: border-box;
    background: #362a1f;
    color: #fff;
}

.modal__form textarea {
    resize: vertical;
    min-height: 80px;
}

body.modal-open {
    overflow: hidden;
}

/* Блоки преимуществ в секции услуг */
.service-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1500px;
    padding: 0 20px;
}

.info-block {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    font-size: 18pt;
    line-height: 1.4;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

.info-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.info-block > div:first-child {
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 18pt;
}

.info-block > div:last-child {
    margin-top: 10px;
    font-size: 14pt;
}

.contacts {
    background: #3c2c21;
    padding: 60px 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 50px 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: flex-start;
    color: #fff;
    border-radius: 10px;
    justify-items: center;
    align-items: center;
}

.footer-contact h3 {
    font-size: 24pt;
    margin-bottom: 15px;
}

.footer-contact {
    font-size: 16pt;
}

.footer-down {
    max-width: 1400px;
    margin: 0 auto; 
    border-top: 1px solid #5a4634;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 100px;
}

.footer-copy {
    text-align: center;
    width: 100%;
    font-size: 14pt;
    color: #aaa;
    margin-top: 50px;
}

.footer-text {
    font-size: 50pt;
    font-weight: 400;
    margin-bottom: 20px;
}

.request-form .form-row {
    margin-bottom: 15px;
}

.request-form input,
.request-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 5px;
    border: none;
    font-family: "Play", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12pt;
    box-sizing: border-box;
    background: #5a4634;
    color: #fff;
    resize: none;
}

input::placeholder, textarea::placeholder {
    color: #aaa;
}

.request-form textarea {
    min-height: 80px;
}

.request-form .btn-primary {
    width: 100%;
    text-align: center;
}

@media screen and (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Разные фоны для блоков */
.info-block:nth-child(1) {
    background: linear-gradient(135deg, #584036, #9f6e44);
}

.info-block:nth-child(2) {
    background: linear-gradient(135deg, #5a433d, #a96a5a);
}

.info-block:nth-child(3) {
    background: linear-gradient(135deg, #584036, #9f6e44);
}

.info-block:nth-child(4) {
    background: linear-gradient(135deg, #5a433d, #a96a5a);
}

.info-block:nth-child(5) {
    background: linear-gradient(135deg, #584036, #9f6e44);
}

.info-block:nth-child(6) {
    background: linear-gradient(135deg, #5a433d, #a96a5a);
}

#service, #about, #works, #contacts {
    scroll-margin-top: 50px; /* Отступ для якоря меню */
}

@media screen and (max-width: 1460px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 1200px) {
    .service-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-item img {
        width: 280px;
        height: 200px;
    }
}

@media screen and (max-width: 750px) {
    .service-info {
        grid-template-columns: 1fr;
    }

    .info-block {
        font-size: 12pt;
        padding: 15px;
    }

    .service-items {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 20px;
    }

    .service-item img {
        width: 100%;
        height: auto;
    }

    .service-list {
        font-size: 12pt;
        margin-left: 20px;
    }

    .why-content {
        grid-template-columns: 1fr;
    }

    .why-image img {
        max-width: 100%;
    }

    .why-text {
        font-size: 14pt;
    }

    .cell {
        font-size: 12pt;
    }

    .section-welcome {
        min-height: auto;
        padding-top: 120px; /* меню */
        padding-bottom: 50px;
    }

    .container {
        min-height: auto;
    }

    .welcome-content {
        min-height: auto;
        gap: 12px;
        padding: 0 16px;
    }

    h1 {
        font-size: 30pt;
    }

    h2 {
        font-size: 26pt;
    }

    h3 {
        font-size: 20pt;
    }
    
    .weltext {
        font-size: 14pt;
    }

    .modal__title {
        font-size: 20pt;
    }

    .call-button {
        width: 50px;
        height: 50px;
        right: 20px;
        bottom: 30px;
    }

    .call-button img {
        width: 80px;
        height: 80px;
    }

    .footer-text {
        font-size: 24pt;
        text-align: center;
    }
}

@media screen and (max-width: 950px) {
    .welcome-content {
        gap: 10px;
    }

    .welcome-features {
        grid-template-columns: 200px;
        font-size: 14pt;
    }
}

/* Menu */
.menu {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: #84684e;
    z-index: 50;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
}

.nav-close, .nav-open {
    display: flex;
    align-items: center;
    font-size: 35px;
    color: #84b524;
    cursor: pointer;
    display: none;
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-menu .nav-link {
    color: #fff;
    font-size: 14pt;
    position: relative;
    font-weight: 700;
}

.nav-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #84b524;
    transition: 0.5s;
}

.nav-menu .nav-link:hover::after {
    width: 100%;
}

.mobileButtons {
    display: none;
}

@media screen and (max-width: 950px) {
  .nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: #84684e;
    padding: 80px 0px 30px 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .nav-close {
    position: absolute;
    top: 28px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 0px 20px #84b524;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-close:hover {
    transform: rotate(90deg);
  }

  .nav-open {
    width: 40px;
    height: 40px;
    box-shadow: 0px 0px 20px #84b524;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobileButtons {
    display: flex;
    gap: 10px;
    justify-content: center;
  }
}

.show-menu {
    top: 0;
}

/* End Menu */
