:root {
  --ivory: #f9f7f5;       /* основной фон */
  --warm-gray: #e7e5e3;  /* разделители, линии */
  --charcoal: #1f1f1f;   /* основной текст */
  --gray: #878686;
  --soft-gray: #f5f2f2;  /* вторичный текст */
  --sage: #8a9a5b;      /* вдохновлён зелёным костюмом */
  --deep-green: #1f6f54;
  --black: #000000;
}

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
} 

body {
    background-color: var(--ivory);
    color: var(--charcoal);
    font-family: "Inter", sans-serif;
    font-weight: 400;
    animation: pageLoad 1s ease;
}

p {
  color: var(--gray);
  font-family: "Inter", sans-serif;
}

a {
  text-decoration: none;
  color: var(--charcoal);
}

.main-image {
  cursor: pointer;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  letter-spacing: 2px;
  left: 5%;
  position: static;
}

.logo span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  margin-top: 4px;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  margin-top: 1rem;
  margin-bottom: 4rem;
  position: sticky;
  top: 0;
  background: var(--ivory);
  z-index: 1000;
}

.nav.menu {
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ссылки */
.nav.menu a {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

/* hover эффект */
.nav.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: var(--charcoal);
  transition: width 0.3s ease;
}

.nav.menu a:hover {
  color: var(--deep-green);
}

.nav.menu a:hover::after {
  width: 100%;
}

/* активная ссылка */
.nav.menu a.active {
  color: var(--deep-green);
}

.nav.menu a.active::after {
  width: 100%;
}

.navbar-toggler {
  width: 28px;
  height: 20px;
  position: absolute;
  right: 5%;
  top: 25px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 2000;
}

.navbar-toggler span {
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: 0.3s ease;
}

.header {   
  max-width: 1100px;
  margin: 40px auto;
  text-align: center;
  padding: 40px 20px;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.3; 
  animation: fadeUp 1.2s ease-out both; 
}

.title {
  max-width: 1100px;
  margin: 20px auto;
  text-align: center;
  padding: 20px;
  line-height: 1.3; 
  animation: fadeUp 1.2s ease-out both;
}

.promo {
  text-align: center;
  color: var(--deep-green);
}

.promo_h2 {  
  min-height: 45px;
} 
  
.nav.menu a.active {
  color: var(--deep-green);
  font-weight: 500;
}

.nav.menu a.active::after {
  width: 100%;
}

.lang {
display:flex;
gap:5px;
font-size:14px;
font-weight:500;
}

.lang a {
text-decoration:none;
color:var(--charcoal);
padding:4px 6px;
transition:0.3s;
}

.lang a:hover {
color:var(--deep-green);
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: var(--gray);
}

h1 {    
    font-size: 50px;
}

h2 {
  text-align: center;
  font-size: 40px;
  margin-top: 0;
  margin-bottom: 40px;
  font-size: 32px;
  font-weight: 400;
  color: #2b2b2b;
}

h3 {    
    font-size: 30px;
}
 
.container {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  margin-top: 40px;
}

section {
    margin-top: 50px;    
  }

 .item {
    height: 90vh;
    background-size: cover;
    background-position: center;
    font-family: "Playfair Display", serif;
    flex: 1;
    margin: 5px;
    position: relative;
 }

 h4 {
    position: absolute;
    top: 15px;
    left: 40px; 
    color: var(--soft-gray);
    font-size: 0;
 }

 h5 {
    font-size: 16px;
    padding: 10px;
 }

 .par {
    position: absolute;
    top: 100px;
    left: 40px; 
    color: var(--ivory);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    font-size: 0;
 }

 .prise {
    position: absolute;
    bottom: 40px;
    left: 40px; 
    color: var(--soft-gray);
    font-size: 0;
 }

.selected {
    flex: 4;
}

.selected h4 {
    font-size: 40px;
    transition: all 2s ease-in;
}

.selected .par {
    font-size: 15px;
    transition: all 2s ease-in;
}

.selected .prise {
    font-size: 35px;
    transition: all 2s ease-in;
}

  .one {
    background-image: url('img/clothes/Green_Mini_Inst.JPG');
    }
    
    .two {
    background-image: url('img/clothes/IMG_5354.JPG');
    }
    
    .three {
    background-image: url('img/clothes/Purple_Medium_Inst.JPG');
    }
    .four {
    background-image: url('img\\clothes\\Women_Suits_Inst.JPG');
    }

     
    .text-input {
        background-color: var(--ivory);
        border: 3px solid var(--warm-gray);
        border: none;
        padding: 12px 20px;
        width: 100%;
        max-width: 400px;
    }

    label {
        font-family: "Playfair Display", serif;
        font-size: 20px;
    }
   
         .time {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            text-align: center;
            padding-top: 1.5rem;
         }

        .sells {
            background-color: var(--warm-gray); 
            max-height: 50px;
            width: 150px;
            border: 1px solid var(--gray);
            display: flex;
            flex-direction: row;
            align-items: center;
            margin: 10px;
            text-align: center;
            justify-content: center;
            animation: fadeUp 0.8s ease forwards;
        }

  .info {
    font-size: 16hv;
    padding: 10px 0;
  }       
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
        
 .sells h6 {
    font-size: 24px;
    color: var(--deep-green);
    line-height: 1;
 }

 .sells h5 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

#about {
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
  margin-top: 30px;
}

.about__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  z-index: 2;
}

.about__title {  
  margin-bottom: 10px;
}

.about__subtitle, .about__text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 10px;
  text-align: center;
}

.feature {
  display: grid;
  grid-template-rows: 100px auto;
  align-items: start;
  justify-items: center; 
  padding: 10px 0; 
  margin-top: 15px;
}

.feature img {
  width: 100px;
  height: auto;
  object-fit: contain;  
}

.feature p {
  max-width: 240px;
  line-height: 1.4;
  text-align: center;
  margin: 0 auto;
}

.about__image {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;  
}

.about__image--left {
  left: -40px;
  height: 550px;
  background: url("img/clothes/IMG_5554-Inst.JPG") no-repeat center/cover;
  
}

.about__image--right {
  right: -40px;
  background: url("img/clothes/photo-work.jpg") no-repeat center/cover;
  height: 550px;
}
 
.about__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(206, 205, 205, 0.15),
    rgba(41, 46, 23, 0.35)
  );
}

.salon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.product-card {
  perspective: 1200px;
  width: 350px;
}

.card-inner {
  position: relative;
  height: 420px;
  width: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.product-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* ОБЩИЕ СТОРОНЫ */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 1%;
  padding: 12px;
  backface-visibility: hidden;
  overflow: hidden;
}

/* ПЕРЕД */
.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.card-front .title {
  text-align: center;
  margin-top: 10px;
  color: var(--gray);
}

/* ЗАД */
.card-back {
  background: var(--ivory);
  color: var(--charcoal);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
}

.card-back h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card-back p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

.card-back .product-btn {
  margin-top: 15px;
  padding: 10px 18px;
  border: 1px solid var(--charcoal);
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
}

.card-back .product-btn:hover {
  background: var(--charcoal);
  color: white;
}

.product-card:hover img {
  transform: scale(1.05);
}

.shop-title {
  padding: 12px;
}

#contact {
  background: #f8f6f3;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.form-container {
  width: 100%;
  max-width: 500px;
}

/* GROUP */

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

label {
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

/* INPUTS */

input, textarea {
  padding: 14px;
  border: 1px solid #ddd;
  font-size: 15px;
  border-radius: 4px;
  transition: 0.3s;
  font-family: inherit;
}

input:focus,
textarea:focus {
  border-color: #1f6f54;
  outline: none;
  box-shadow: 0 0 0 2px rgba(31,111,84,0.1);
}

/* BUTTON */

.btn {
  width: 100%;
  padding: 15px;
  background: #1f6f54;
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.btn:hover {
  background: var(--deep-green);
}

.error-message {
  color: #c0392b;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

input.error,
textarea.error {
  border-color: #c0392b;
}

.container-contacts {
  text-align: center;
  width: 100%;    
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 50px 50px;
  background-color: var(--sage);  
}

.logo_footer {
  max-width: 320px;
  color: var(--ivory);
}

.span_footer {
   color: var(--ivory);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

/* телефон */
.contacts_phone {
  font-size: 18px;
  color: var(--ivory);
}

/* иконки */
.networks-contacts {
  display: flex;
  gap: 12px;
}

.networks-contacts a {
  transition: all 0.3s ease;
}

.networks-contacts a:hover {
  transform: translateY(-4px) scale(1.05);
}

.networks-contacts img {
  transition: 0.3s ease;
}

.networks-contacts a:hover img {
  opacity: 0.8;
}

/* адрес */
.address {
  margin-top: 10px;
  margin-bottom: 6px;
  line-height: 1.5;
  color: var(--ivory);
}

.logo_footer {
  color: var(--ivory);
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1f6f54;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#scrollTopBtn:hover {
  background: #15533f;
  transform: translateY(-3px);
}

.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 1300px) {
   .about__container {
    max-width: 600px;
   }
}

@media (max-width: 1024px) {
   .about__image {
    display: none;
  }

}

@media (max-width: 900px) {
  .container {    
    height: auto;
  }
  .about__container {
    width: 100%;
    max-width: 700px;
  }
   .shop-items {
      width: 45%;
    }
  .item {
    height: 60vh;
  }
   .about__features {
    grid-template-columns: repeat(2, 1fr);
  }
  .about__image {
    display: none;
  }
  .product-container {
  flex-direction:column;
  }
  .thumbs img {
  width:60px;
  }
  .lang {
  display: none;
}
}

@media all and (max-width: 800px) {
  h1 {
    font-size: 40px;
    }
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    gap: 40px;
  }
  .logo_footer {
    text-align: center;
  }

  .footer-contacts {
    gap: 16px;
  }

  .contacts_phone {
    font-size: 17px;
  }

  .networks-contacts {
    gap: 14px;
  }
  }
        
@media all and (max-width: 500px) {
  h1 {
    font-size: 20px;
  }
  .shop-items {
    width: 100%;
  }
  .about__features {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  iframe {
    max-width: 200px;
    height: 100px;
  }
}

/* MOBILE MENU */

@media (max-width: 900px) {

  .navbar-toggler {
    display: flex;
  }

  .header__nav__menu {
    position: fixed;
    inset: 0;
    background: var(--ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: 0.4s ease;
    z-index: 1000;
  }

  .header__nav {
    padding: 20px;
  }

  .logo {
    font-size: 24px;
  }

  .header__nav__menu.active {
    transform: translateX(0);
  }

  .nav.menu {
    flex-direction: column;
    gap: 30px;
  }

  .header__nav__contacts {
    display: none;
  }
}

/* BURGER ANIMATION */

.navbar-toggler.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px,6px);
}

.navbar-toggler.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px,-6px);
}




/* PRODUCT PAGE */

.product-page{
padding:80px 20px;
}

.product-container{

display:flex;
gap:60px;

max-width:1200px;
margin:auto;

align-items:flex-start;

}

/* gallery */

.product-gallery{
flex:1;
}

.main-image{

width:100%;
border-radius:4px;

}

.thumbs{

display:flex;
gap:10px;
margin-top:15px;

}

.thumbs img{

width:80px;
cursor:pointer;
border-radius:4px;

transition:0.3s;

}

.thumbs img:hover{
opacity:0.7;
}

/* info */

.product-info{

flex:1;

}

.product-info h1{

font-size:36px;
margin-bottom:20px;

}

.price{

font-size:22px;
margin-bottom:20px;
color:var(--charcoal);

}

.description{

line-height:1.6;
margin-bottom:30px;

}

/* sizes */

.sizes{

display:flex;
gap:10px;
align-items:center;
margin-bottom:30px;

}

.sizes button{

padding:10px 16px;

border:1px solid var(--warm-gray);
background:white;

cursor:pointer;

transition:0.3s;

}

.sizes button:hover{

background:var(--charcoal);
color:white;

}

/* button */

.buy-btn{
margin: 20px 0;
padding:15px 30px;
border:none;
background:var(--deep-green);
color:white;
font-size:16px;
cursor:pointer;
transition:0.3s;
}

.buy-btn:hover{
background:#15533f;
}



/* модальне вікно */

.order-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.order-content {
  background: #fff;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  position: relative;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-content input,
.order-content select,
.order-content textarea {
  padding: 12px;
  font-size: 14px;
}

.close-modal {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  font-size: 22px;
}