html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body{
    -webkit-overflow-scrolling: touch;
}
section {
  scroll-margin-top: 75px; /* висота хедера */
}
/* colors */
:root {
    --orange: rgba(246, 203, 150, 1);
    --brown: #4C2F15;

}

/* ====== BASE ====== */
.sectColor_1 {
    background-color: rgba(235, 243, 245, 0.5);

    /* background: linear-gradient(181deg, rgb(231 239 241 / 50%), rgb(231 239 241 / 75%), #cbc6cf); */
}

.sectColor_2 {
    background-color: rgba(247, 229, 193, 0.45);
}

.sectColor_3 {
    background-color: rgba(246, 203, 150, 1);
}

/* font */
.playfair {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 16px;

    background: #fff;
    color: #120b17;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


a {
    color: inherit;
    text-decoration: none;
    transition: .5s;
}

ul,
ol,
li {
    list-style: none;
}


section {
    padding: 30px 0;
}

h1,
h2 {
    margin: 0 0 20px;
}

p {
    line-height: 1.6;
    margin-bottom: 10px;
}

hr {
    border: 1px solid #80808082;
}

/* button to top */
#scrollTopBtn {
  opacity: 0;
  transition: opacity 0.5s;
  position: fixed;
  bottom: 30px;
  right: 30px;

  width: 50px;
  height: 50px;
  border-radius: 50%;

  background: #000;
  color: #fff;
  font-size: 24px;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1000;
}

/* Псевдоелементи для кружечків */
#scrollTopBtn::before,
#scrollTopBtn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);

  z-index: -1;
  animation: pulse 2s infinite;
}

/* Другий кружечок з затримкою */
#scrollTopBtn::after {
  animation-delay: 1s;
}

/* Анімація */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
/* btns */
button{
    cursor: pointer;
}
.btns-area-size {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.blockArow {
    width: 40px;
    height: 40px;
    background-color: bisque;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.blockArow:hover {
    background-color: rgb(229, 160, 76);
}

.blockArow i {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

/* ========================= */
.circle-text {
    
  width: 150px;
  height: 150px;
  position: absolute;
    right: -80px;
    bottom: -50px;
}

.circle-text svg {
  width: 100%;
  height: 100%;
  animation: rotateText 12s linear infinite;
}

.circle-text text {
  font-size: 16px;
  letter-spacing: 2px;
  fill: #4C2F15; /* твій бренд */
  text-transform: uppercase;
}

@keyframes rotateText {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


/* ========================= */
.wrapper {
    max-width: 1920px;
    margin: auto;
}

.container {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.retreat {
    padding: 30px 0;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.column{
    display: flex;
    flex-direction: column;
    align-items:center;

}

.col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.title {
    text-align: center;
    font-size: 38px;
}

/* ============== HEADER ============= */
.site-header {
    width: 100%;
    padding: 10px 0;
    background-color: #fff;
    color: #120b17;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .2);

    position: fixed;
    top: 0;
    z-index: 99;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 35px;
    /* text-transform: uppercase; */

    /* color: #D07A2D; */
    color: #8A5A2B;
}

.logo-text {
    font-size: 42px;
    font-weight: 700;
    font-family: "Playfair Display", serif;
    color: black;
    -webkit-text-stroke: 1px #000;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.logo-text span {
    font-size: 16px;
    font-weight: 500;
    margin-left: 6px;
    color: #494949;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.nav ul {
    display: flex;
    gap: 20px;
    padding: 0;
}

.nav li {
    transition: .3s;
}

.nav li:hover {
    transform: translateY(2px);
}

.nav a {
    color: #120b17;
    font-weight: 700;
    transition: .2s;
    font-size: 18px;
}

.nav a:hover {
    color: #F6CB96;

}

/* Burger */
 .burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
} 
/* .burger-icon, .close-icon {
  display: block;
}
.close-icon {
  display: none;
  fill: black;
  stroke: #000;
}  */

.burger-btn .burger-icon {
  display: block;
}
.burger-btn .close-icon {
  display: none;
}

.burger-btn.active .burger-icon {
  display: none;
}
.burger-btn.active .close-icon {
  display: block;
}

/* ====== HERO ====== */

.hero {
    position: relative;
    height: 750px;
    /* margin-top: 50px; */
    /* background: linear-gradient(90deg,
            rgba(247, 229, 193, 1) 5%,
            rgba(247, 229, 193, 0.85) 40%,
            rgba(247, 229, 193, 0.8) 59%,
            rgba(247, 229, 193, 0.31) 67%,
            transparent 100%)
    ,
    url("img/myWork/IMG_2204.JPG"); */

    /* background-image: url("img/myWork/IMG_2204.JPG"); */
    background:
        linear-gradient(to right, #11111172 40%, transparent),
        url(img/hero/hero.JPG);
    background-size: cover;
    background-position: center 85%;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
}

.hero-text {
    width: 58%;
}

.hero-text .hero-meta,
.hero-description {
    font-size: 18px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.hero-text svg {
    stroke: #ffffffd2;
}

.hero-left h1 {
    font-size: 54px;
    color: #fff;
}


.hero .search {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.hero input {
    padding: 12px;
    border-radius: 6px;
    border: none;
    width: 200px;
}

.btn-light {
    padding: 16px 122.5px;
    border-radius: 6px;
    border: 2px solid #F6CB96;

    cursor: pointer;
    color: #F6CB96;
    font-weight: 600;
    background: none;

    transition: .5s;
}

.btn-light:hover,
.btn-light:active .btn-light:focus {
    background: #F6CB96;
    color: #fff;
}


.btn {
    background: none;
    color: #4C2F15;
    border: 1.5px solid #4C2F15;

    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 600;

    transition: background-color .1s, color .1s;
}

.btn:hover,
.btn:focus-visible {
    background: #4C2F15;
    color: #F6CB96;
}

.btn-hero {
    background: none;
    color: #fff;
    border: 1.5px solid #fff;

    /* padding: 16px 40px;
    font-size: 22px; */
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;

    font-weight: 600;
    transition: .5s;
}

.btn-hero:hover,
.btn-hero:active,
.btn-hero:focus {
    background: #fff;
    color: #000;
}

.two-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* ====== ABOUT SECTION ====== */
.about {
    position: relative;
    text-align: center;
}

.about-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.about-image{
    position: relative;
    width: 30%;
}
.about-image img:nth-child(3){
    display: none;
}
.about img {
    width: 90%;
    box-shadow: 20px 20px 100px #827e7a;
    border-radius: 12px;
}

.about-text {
   
    width: 60%;
    /* font-size: 25px; */
}
.about-btn{
 position: relative;
 display: inline-block;
}
.about-text strong {
    font-weight: normal;
}

.about-text em {
    font-style: normal;
}

.about-text p {
    font-size: 19px;
    margin: 10px 0;
    text-align: justify;
}

.about a {
    display: inline-block;
    margin-top: 15px;
}

/* ====== GALLERY portfolio ====== */

/* ========= SLIDER =========   */
.images-slider {
    user-select: none;
    -webkit-user-drag: none;
}

.block-slider {
    /* max-width: 1500px; */
    width: 100%;
    padding: 20px;
    margin: auto;
    overflow: hidden;
}

.block-slider {
    cursor: grab;
}

.block-slider:active {
    cursor: grabbing;
}

.full-area {
    width: 100%;
}

.image-area {
    display: flex;
    will-change: transform;
    transition: transform 0.5s ease;
    touch-action: pan-y;
}
#block-slider {
  touch-action: pan-y;
}
.images-slider {
    min-width: calc(20% - 20px);
    aspect-ratio: 3 / 4; /* портрет */
    /* height: 400px; */
    margin-right: 20px;
    object-fit: cover;
}
.images-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.active-image {
    background-color: gold;
    display: flex;
    border-radius: 20px;

}

/* points */
.point-area-size {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.point {
    width: 12px;
    height: 12px;
    /* background-color: gold; */
    border: 1px solid goldenrod;
    border-radius: 50%;
    cursor: pointer;
}

.point:hover {
    background-color: goldenrod;
}

/* ====== VIDEO ====== */

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    cursor: pointer;
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    background: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.play-btn:hover {
    opacity: 1;
}

.video-wrap {
    position: relative;
    width: 360px;
    max-width: 100%;
    overflow: hidden;
    /* aspect-ratio: 9 / 16; */
}

.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transform: translateZ(0) scale(1); */
    backface-visibility: hidden;
}

/* ====== SERVICES CARDS ====== */
.services-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cards {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.card {
    background: #fff;
    /* border: 1px solid rgba(0, 0, 0, 0.24); */
    /* min-width: 260px; */
    border-radius: 12px;
}

.card-img {
    /* height: 160px; */
    background: #555;
    border-radius: 12px 12px 0 0;
}

.card-img img {
    border-radius: 12px 12px 0 0;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-title {
    font-weight: bold;
    margin-bottom: 6px;
}

/* ====== REVIEWS ====== */
.ti-fade-container {
    width: 25%;
}

.reviews-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.reviews-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
}

.reviews {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: transform 0.5s ease;
    will-change: transform;
    touch-action: pan-y;
    width: 100%;
}


.reviews:active {
    cursor: grabbing;
}

.review-box {
    /* min-width: calc(33.333% - 10px); */
    min-height: 210px;
    flex: 0 0 calc(33.333% - 10px); /* базова ширина для десктопу */
    background: rgba(247, 229, 193, 0.45);
    padding: 10px;
    border-radius: 16px;
    /* flex-shrink: 0; */

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

/* кнопки */
.reviews-btn {
    /* position: absolute; */
    /* top: 50%;  */
    transform: translateY(-50%);
    z-index: 5;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 25px;
    width: 30px;
    height: 30px;

    display: flex;
    justify-content: center ;
    align-items: center;
    padding: 10px 14px;
    border-radius: 50%;
}

/* ==== */

.review-panel {
    margin-bottom: 10px;
}

.rev_item-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.review-about p {
    margin: 0;
}

.review-date {
    color: #827e7a;
    font-size: 13px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    font-size: 30px;
    border-radius: 50%;

    background-color: #cfcfe8;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
}

.review-avatar img {
    width: 100%;
    border-radius: 50%;
}

.review-text {
    overflow: hidden;
    max-height: 80px;
    /* ОДНАКОВА висота */
    transition: max-height .5s ease;
    font-size: 15px;
}


.review-text p {
    margin-top: 5px;
}

.review-toggle {
    display: inline-block;
    margin-top: 8px;
    color: #827e7a;
    cursor: pointer;
    font-size: 14px;
}

.review-toggle:hover {
    text-decoration: underline;
}

.ti-rating-text {
    font-size: 25px;
    margin-bottom: 10px;
}

.stars svg {
    width: 17px;
    height: 17px;
    fill: gold;
}

/* ====== Map ====== */
.map-container{
  max-width: 1200px;
}

.map-container {
  width: 60%;
  max-width: 1200px; 
  height: 0;
  padding-bottom: 56.25%; 
  position: relative; 
  margin: 0 auto;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px; 
}
.map-container iframe {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
@media(max-width:650px){
.map-container{
    width: 100%;
}
}


/* ====== FOOTER ====== */
footer {
    background: #120b17;
    padding: 50px 0;
    margin-top: 40px;
    color: #fff;
}

.footer-logo a {
    display: flex;
    align-items: center;
    gap: 10px;

    /* font-size: 35px; */
    /* text-transform: uppercase; */

    /* color: #D07A2D; */
    color: #F6CB96;
}

.footer-logo-text {
    font-size: 42px;
    font-weight: 700;
    font-family: "Playfair Display", serif;
    color: var(--orange);
    text-shadow: 2px 2px 0 rgba(255, 254, 254, 0.3);
    letter-spacing: 1px;
}

.footer-logo-text span {
    font-size: 16px;
    font-weight: 500;
    margin-left: 6px;
    color: rgb(180, 179, 179);
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.tel {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.tel svg {
    fill: #fff;
    width: 20px;
    height: 20px;
}

.footer-logo svg {
    stroke: #F6CB96;
}

.social {
    display: flex;
    gap: 10px;
}

.box-social {
    width: 55px;
    height: 55px;
    border: 1px solid #F6CB96;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .5s;
}

.box-social:hover,
.box-social:active,
.box-social:focus {
    background-color: #F6CB96;
}

footer .columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.columns div:nth-child(3) {
    text-align: center;
}


.columns a:hover {
    color: #F6CB96;
}

footer h3 {
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;

}
footer ul{
    padding: 0;
}
footer li {
    margin: 5px 0;
    font-size: 17px;
}
    .box-social svg{
        width: 20px;
        height: 20px;
    }

/* ================== MEDIA ==================== */
@media (max-width: 1250px) {
    .container {
        max-width: 1100px;  
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 950px;  
    }
    .images-slider {
        min-width: calc(23.333% - 20px);
        aspect-ratio: 1 / 2;     
        margin-right: 5px;
    }

    .review-box {
        /* min-width: calc(48% - 10px); */
         flex: 0 0 calc(50% - 10px); 
    }
}

/* burger */
@media (max-width: 650px) {
  .burger-btn {
    display: block;
  }
  .nav {
    position: fixed;
    top: 0px; /* висота хедера */
    left: 0;
    width: 100%;
    /* height: 100vh; */
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 98;
    opacity: 0;
  }
  .nav.open {
    opacity: 1;
    transform: translateY(60px);
    padding: 20px;
  }
  .nav-list {
    flex-direction: column;
    gap: 30px;
  }
  .nav-list li{
    border-bottom: 1px solid #ffffff9f;
  }
  .nav-list a {
    color: #fff;
    font-size: 24px;
    text-align: center;
  }
  .nav-list a:not(:last-child) {
    border-bottom: 1px solid #fff;
    padding-bottom: 10px;
  }
}
/* burger end */
@media (max-width: 920px){
    .container {
        max-width: 800px;  
    }
    .logo-text{
        font-size: 32px;
    }
    .nav a{
        font-size: 15px;
    }
    .hero-left h1{
        font-size: 44px;
    }
    .hero-description{
        font-size: 16px
    }
    .about-text p{
        font-size: 16px;
    }
    .about-row {
        display: flex;
        flex-direction: column;
    }
    .circle-text{
            right: 80px;
            bottom: -50px;
    }
    .about-image{
        width: 100%;
        display: flex;
        gap: 20px;
        justify-content: center;
    }
    .about-image img:nth-child(3){
        display: block;
    }
    .about-image img{
        width: 30%;
    }
     .section-header{
       margin-top:10px ;
    }
    .images-slider {
        min-width: calc(33.333% - 20px);
    }

    .about-text{
        width: 100%;
    } 
    .blockArow{
        width: 30px;
        height: 30px;
    }
    .review-box {
        min-width: calc(39% - 10px);
        /* 2 в ряд */
    }

}
@media (max-width: 600px) {
    .nav ul{
        gap: 10px;
    } 
    .hero{
        /* height: calc(var(--vh) * 100); */
         height: 100dvh;
    }
    .hero-text {
        
        margin-top: 50px;
    }
    .images-slider {
        min-width: calc(100% - 20px);
        aspect-ratio: 1 / 1.3; 
    }
    .circle-text{
            right: 0px;
            bottom: -50px;
    }
    .circle-text text{
        font-size: 15px;
    }
    .reviews-row{
        flex-direction: column;
        align-items: center;
    }
    .ti-fade-container {
        width: 100%;
        text-align: center;
    }
    .reviews-wrapper{
        width: 80%;
    }
    .review-box {
        /* min-width: calc(100% - 20px); */
         flex: 0 0 100%; /* одна колонка */
    }
    .reviews-btn {
        font-size: 20px;
        position: absolute;
        bottom: 22% ;
    }
    .reviews-btn.prev {
        left: 0px;
    }

    .reviews-btn.next {
        right: 0px;
    }
}

@media(max-width:570px) {
    html {
        font-size: 12px;
    }
    .container {
        max-width: 550px;
    }

    .logo-text{
        font-size: 27px;
    }
    .nav a{
        font-size: 18px;
    }
    .hero {
        height: 400px;
    }

    .hero-text {
        width: 70%;
        margin-top: 50px;
    }

    .hero-left h1 {
        font-size: 26px;
    }

    /* .cards {
        flex-direction: column;
    }

    .card {
        max-width: 300px;
    }

    .card img {
        width: 100%;
    } */

    .about-text {
        font-size: 12px;
        width: 100%;
    }

    .about-row {
        flex-direction: column;
        gap: 20px;
    }
    .reviews-wrapper {
        width: 90%;
    }
    .footer-logo-text{
        font-size: 27px;
    }
    .social{
        flex-direction: column;
        align-items: center;
    }
    .box-social{
        width: 40px;
        height: 40px;
    }
    .box-social svg{
        width: 20px;
        height: 20px;
    }
}
@media(max-width:500px) {
    .hero {
        /* height: calc(var(--vh) * 100); */
        height: 100dvh;
        background-position: center right;
    }
    .circle-text{
        width: 100px;
        height: 100px;
            right: 20px;
            bottom: -50px;
    }
    .circle-text text{
        font-size: 16px;
    }
}