*{
margin:0;
padding:0;
box-sizing:border-box;
}

html {
  scroll-behavior: smooth;
}

body{
font-family:Arial,sans-serif;
background:#fafafa;
color:#222;
line-height:1.6;
}

main {
  display:flex;
  justify-content:center;
  flex-wrap: wrap;
  flex-direction: column;
}
/* BLOCK */

.block{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;

gap:24px;

width: 80%;
max-width:1100px;
margin:auto;
padding:80px 20px;
}

/* TITLES */

.tittle1{
font-size:40px;
font-weight:700;
text-align:center;
max-width:900px;
}

.tittle2{
font-size:24px;
font-weight:600;
text-align:center;
}

.tittle3{
font-size:32px;
color:white;
font-weight:600;
}

/* TEXT */

.txt{
max-width:750px;
text-align:left;
font-size:18px;
color:#444;
}

/* BUTTON */

.callBtn{
display:inline-block;       /* чтобы ширина была по содержимому */
padding:16px 34px;
background:#b90e67;
color:white;
border-radius:40px;
cursor:pointer;
font-weight:600;
transition:0.3s;
text-align:center;           /* центрируем текст */
text-decoration:none;        /* на всякий случай, если <a> */
margin:20px auto;            /* центрируем кнопку горизонтально */
min-width:180px;             /* опционально, чтобы не была слишком узкой */
max-width:90%;               /* на маленьких экранах */
}

/* Hover эффект */
.callBtn:hover{
transform:translateY(-3px);
box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

/* HEADER */

header{
display:flex;
flex-direction:column;
align-items:center;

gap:12px;

padding:30px 20px;
background:white;
border-bottom:1px solid #eee;
}

#headerQuote{
font-size:14px;
color:#666;
text-align:center;
}

#headerTittle{
font-size:36px;
font-weight:700;
color:#b90e67;
}

/* Контейнер контактов в header */
#headerContact {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* Каждый контактный элемент */
#headerContact div {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Ссылки */
#headerContact a {
  color: #b90e67;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

#headerContact a:hover {
  color: #a10c5b;
}

/* Иконки */
#headerContact svg {
  width: 20px;
  height: 20px;
  fill: #b90e67;
}

/* NAV */

header nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
  width: 100%;
  background: #fff;
  z-index: 999;
  transition: box-shadow 0.3s, transform 0.3s;
}

/* Ссылки в навигации */
nav .navPnkt a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s, transform 0.2s;
}

nav .navPnkt a:hover {
  color: #b90e67;
  transform: translateY(-2px);
}

.navPnkt{
cursor:pointer;
font-weight:600;
}

/* TIMER */
#mainBlock {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../img/back.jpg") center/cover no-repeat;
  color: white;
  width: 100%;
  max-width: 100%;
}
#mainBlock .txt {
  color: white;
}
#mainTimer{
display:flex;
gap:20px;
flex-wrap:wrap;
justify-content:center;
color: black;
}

.timerItem{
display:flex;
flex-direction:column;
align-items:center;
}

.timerBox{
background:white;
padding:18px 22px;
border-radius:10px;
font-size:28px;
font-weight:700;
box-shadow:0 6px 20px rgba(0,0,0,0.08);
min-width:70px;
text-align:center;
}

.timerLabel{
font-size:12px;
color: white;
margin-top:8px;
text-transform:uppercase;
letter-spacing:1px;
text-align:center;
}
/* MAP */

#adressMap{
width:100%;
max-width:900px;
border-radius:12px;
overflow:hidden;
box-shadow:0 6px 20px rgba(0,0,0,0.08);
}

.reviewsGallery{
  position:relative;
  max-width:100%;
  overflow:hidden;
  margin-top:40px;
}

/* viewport скрывает все, что за пределами */
.reviewsViewport{
  overflow:hidden;
  width:100%;
  position:relative;
}

.reviewsTrack{
  display:flex;
  gap:15px;
  transition:transform 0.4s ease;
  width:max-content;
}

.reviewsTrack img{
  width:auto;
  height:400px;
  object-fit:contain;
  border-radius:10px;
  flex-shrink:0;
  background:#fff;
  cursor:pointer;
}

/* стрелки */
.reviewsPrev,
.reviewsNext{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:45px;
  height:45px;
  border-radius:50%;
  border:none;
  background:white;
  box-shadow:0 2px 8px rgba(0,0,0,0.25);
  cursor:pointer;
  z-index:5;
  font-size:22px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.reviewsPrev{
  left:10px;
}

.reviewsNext{
  right:10px;
}

.photoSlider{
  position:relative;
  max-width:800px;
  margin:40px auto;
}

.photoViewport{
  overflow:hidden;
  width:100%;
  height:500px;
  border-radius:12px;
}

.photoTrack{
  display:flex;
  height:100%;
  transition:transform 0.45s ease;
}

.photoTrack img{
  width:100%;
  height:100%;
  object-fit:cover;
  flex-shrink:0;
}

/* стрелки фиксированы */
.photoPrev,
.photoNext{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:50px;
  height:50px;
  border-radius:50%;
  border:none;
  font-size:26px;
  cursor:pointer;
  background:white;
  box-shadow:0 2px 10px rgba(0,0,0,0.2);
  z-index:3;
}

.photoPrev{
  left:-60px;
}

.photoNext{
  right:-60px;
}

/* точки */

.photoDots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:15px;
}

.photoDot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ccc;
  cursor:pointer;
}

.photoDot.active{
  background:#333;
}

.photoPrev:hover,
.photoNext:hover{
  background:#f3f3f3;
}

/* Контейнер всех карточек */
#masters{
display:flex;
flex-wrap:wrap;
justify-content:center;
flex-direction: row;
gap:30px;
padding:40px 20px;
}

/* Одна карточка */
/* базовая карточка */
.masterblock{
flex: 1 1 260px;
max-width:300px;
min-height: 530px;
display:flex;
flex-direction:column;
align-items:center;
background:#fff;
padding:20px;
border-radius:15px;
box-shadow:0 6px 20px rgba(0,0,0,0.08);
text-align:center;
cursor:pointer;
transition: transform 1s ease, box-shadow 1s ease, background 1s ease;
position:relative;
overflow:hidden;
}

/* фото */
.masterblock img{
width:100%;
height:240px;
object-fit:cover;
object-position: top;
border-radius:12px;
margin-bottom:15px;
transition:all .3s ease;
}

.masterBtn{
  display: flex;
  justify-content: center;
  margin-top:auto;
  padding:10px 18px;
  background:#333;
  color:#fff;
  border-radius:6px;
  cursor:pointer;
  font-size:14px;
  transition:0.2s;
}

/* Раскрытый текст */
.fullDesc{
  max-height:0;          /* изначально скрыт */
  opacity:0;
  overflow:hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  margin-top:0;
  color:#555;
  line-height:1.5;
}

/* раскрытая карточка */
/* При раскрытии карточка "выпрыгивает" из флекс-контейнера */
.masterblock.expanded {
  position: relative;    /* выходит из потока флекс-сетки */
  flex: 1 1 100%;        /* занимает всю ширину контейнера */
  max-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 30px;
  text-align: left;
  z-index: 10;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Фото слева */
.masterblock.expanded img{
width:300px;
max-width: 30%;
height:auto;
margin-right:30px;
margin-bottom:0;
border-radius:15px;
}

.masterblock.expanded .masterBtn {
  display: none;
}

.masterInfo{
  display:flex;
  flex-direction:column;
  flex: 1;
  height:100%;
}

/* Контейнер информации справа */
.masterblock.expanded .masterInfo{
flex:1;
display:flex;
flex-direction:column;
}


/* раскрытый текст */
.masterblock.expanded .fullDesc{
  max-height:1000px;      /* достаточно большая высота для любого текста */
  opacity:1;
  margin-top:15px;
}

/* короткое описание всегда сверху */
.masterblock .shortDesc{
margin-bottom:10px;
font-weight:500;
color:#333;
}

.masterblock:hover{
transform:translateY(-5px);
box-shadow:0 12px 25px rgba(0,0,0,0.15);
}
.masterblock:hover {
  .masterBtn {
    background:#b90e67;
  }
}
.masterblock .tittle2{
font-size:18px;
font-weight:600;
margin-bottom:10px;
}

.masterblock .txt{
font-size:14px;
color:#555;
}

/* Кнопка под всеми карточками */
#masters > .callBtnWrapper{
width:100%;
display:flex;
justify-content:center;
margin-top:30px;
}
#masters > .tittle1 {
  width: 100%;
}
/* Адаптив: 1 карточка на узких экранах */
@media(max-width:480px){
  .masterblock{
    flex: 1 1 90%;
    max-width:90%;
  }
}

/* Адаптив: 2 карточки на маленьких планшетах */
@media(max-width:768px){
  .masterblock{
    flex: 1 1 45%;
    max-width:45%;
  }
}

/* Адаптив: 3 карточки на средних экранах */
@media(min-width:1024px){
  .masterblock{
    flex: 1 1 30%;
    max-width:30%;
  }
}

/* Контейнер тарифов */
#prices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: row;
  gap: 20px;
  padding: 40px 20px;
  background: #f9f9f9;
}

/* Каждая карточка тарифа */
.pricesTariff {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  padding: 25px 20px;
  /* width: 25%; */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.pricesTariff:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* Иконка */
.pricesIcon {
  width: 60px;
  height: 60px;
  background: #b90e67;
  border-radius: 50%;
  margin-bottom: 15px;
}

/* Название тарифа */
.pricesTariff .tittle2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

/* Описание */
.pricesTariff .txt {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

/* Основная цена */
.pricesNum {
  font-size: 24px;
  font-weight: 700;
  color: #b90e67;
  margin-bottom: 5px;
}

/* Вторая цена / старая цена */
.pricesNum2 {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}

/* Кнопка */
.pricesTariff .callBtn {
  padding: 10px 10px;
  border-radius: 10px;
  background: #b90e67;
  color: #fff;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.pricesTariff .callBtn:hover {
  background: #a10c5b;
  transform: translateY(-2px);
}

/* Адаптивность */
@media(max-width: 900px){
  #prices {
    gap: 15px;
  }
  .pricesTariff {
    width: 45%;
  }
}

@media(max-width: 600px){
  .pricesTariff {
    width: 100%;
  }
}

.faqItem{
width:100%;
max-width:900px;
border-bottom:1px solid #eee;
margin-bottom:10px;
}

.faqQuestion{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px;
cursor:pointer;
font-weight:600;
background:#f9f9f9;
border-radius:8px;
transition:background .3s;
}

.faqQuestion:hover{
background:#f0f0f0;
}

.faqToggle{
font-size:24px;
transition:transform .3s;
}

.faqAnswer{
max-height:0;
overflow:hidden;
padding:0 15px;
font-size:16px;
color:#444;
transition:max-height .3s ease, padding .3s ease;
}
.faqAnswer.open{
padding:15px;
max-height:500px; /* достаточно для текста */
}

/* Контейнер формы */
#contactBlock {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 40px 20px;
}

/* Левый блок контактов */
#contactAsside {
  flex: 1 1 250px;
  background: #f5f5f5;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 20px; /* чуть больше отступов */
  color: #333;
  font-size: 1.5em; /* покрупнее */
}

/* Стили для элементов контактов с иконками */
.contactItem {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contactItem svg {
  width: 20px;
  height: 20px;
  fill: #b90e67;
}

.contactItem a {
  color: #b90e67;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.contactItem a:hover {
  color: #a10c5b;
}

/* Акцентный цвет для ссылок и тел */
#contactAsside a, #contactAsside #contactTel {
  color: #b90e67;
  font-weight: 600;
  text-decoration: none;
}

/* Форма справа */
.contactForm {
  flex: 2 1 400px;
  display: flex;
}
/* Форма справа */
.contactForm form {
  display: flex;
  flex-direction: column;
  gap: 15px;  /* отступы между инпутами */
}

/* Поля формы */
.contactForm input,
.contactForm textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contactForm input:focus,
.contactForm textarea:focus {
  border-color: #b90e67;
  box-shadow: 0 0 8px rgba(185,14,103,0.3);
}

/* Кнопка отправки */
.contactForm input[type="submit"] {
  background: #b90e67;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contactForm input[type="submit"]:hover {
  background: #a10c5b;
  transform: translateY(-2px);
}

/* Адаптивность */
@media(max-width: 900px){
  #contactBlock {
    flex-direction: column;
    gap: 20px;
  }
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #b90e67;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 1000;
}

#backToTop:hover {
  background: #a10c5b;
  transform: translateY(-3px);
}
.payForm{
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.5);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:2000;
}

.payFormContent{
  background:#fff;
  padding:40px;
  border-radius:12px;
  max-width:400px;
  width:90%;
  text-align:center;
  position:relative;
}

.payFormContent form{
  display:flex;
  flex-direction:column;
  gap:15px;
  margin-top:20px;
}

.payFormContent input{
  padding:12px;
  border:1px solid #ccc;
  border-radius:6px;
  font-size:16px;
}

.payBtn{
  padding:14px;
  border:none;
  background:#b90e67;
  color:#fff;
  font-size:16px;
  border-radius:6px;
  cursor:pointer;
}

.payBtn:hover{
  background:#9e0c57;
}

.closeForm{
  position:absolute;
  right:15px;
  top:10px;
  font-size:28px;
  cursor:pointer;
}
/* FOOTER */

footer{
margin-top:80px;
padding:40px;
background:#111;
color:white;
text-align:center;
}

/* ADAPTIVE */

@media(max-width:800px){

.tittle1{
font-size:30px;
}

.txt{
font-size:16px;
}

.block{
padding:60px 20px;
}

}
