body {
    font-family: 'Segoe UI', sans-serif;
  }

#block{
    max-width: 1980px;
    height: 70%;
    height: 850px;
    align-content: center;
    overflow-x: hidden;
  
}

#about {
  max-width: 1980px;
  height: 70%;
  height: 1000px;
  align-content: center;
  background-image: url('/static/media/background0.png');
  background-size: cover;
  background-position: center;
}

#block1 {
    max-width: 1980px;
    height: 70%;
    height: 850px;
    align-content: center;
    background-image: url('/static/media/background3.png');
    background-size: cover;
    background-position: center;
}

#service {
    max-width: 1980px;
    height: 70%;
    height: 850px;
    align-content: center;
}

#block3{
    max-width: 1980px;
    height: 70%;
    height: 850px;
    align-content: center;
}

#block4 {
    max-width: 100%;
    height: 70%;
    height: 650px;
    align-content: center;
}

/* #block-5{
  max-width: 1980px;
  height: 1700px;
  height: 100%;
} */

/* Блок - Основатель */

.naha-hkola{
    font-family: 'Bona Nova';
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0vw;
}

.card-patriarch {
  width: 1260px;
  height: 700px;
  margin: 30px auto;
  background: #1e1c1c;
  border: 6px solid #FF7919;
  border-radius: 66px;
  padding: 22px;
  color: white;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: -1px 8px 22px #605d5d;
}

.card-patriarch::before {
  content: '';
  position: absolute;
  bottom: -420px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: #ffa85c;
  border-radius: 50%;
  z-index: 0;
}

.card-content-patriarch {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.badge {
  background: #ccc;
  color: #000;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 16px;
  margin-bottom: 10px;
}

h1 {
  font-size: 95px;
  margin: 0 0 35px;
  line-height: 1;
  font-family: 'Bona Nova', serif;
  width: -moz-available;
}

.bottom-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding: 0 0 35px 0;
  box-sizing: border-box;
  margin-top: 12%;
  gap: 730px;
}

.alex{
  z-index: 2;
  position: absolute;
  transform: translateY(9%) translateX(27%);
  width: 56%;
  position: absolute;
}

.quote {
  font-weight: 700;
  font-size: 26.5px;
  max-width: 350px;
  font-family: 'Bona Nova', serif;
  text-align: left;;
}

.quote-1 {
  font-size: 18.5px;
  font-family: 'Bona Nova';
  font-weight: 100;

}

.quote::before {
  content: "";
  width: 30px;
  height: 40px;
  display: block;
  background-image: url('/static/media/double-apostrophe.svg');
  background-repeat: no-repeat;
  background-position: center;
}

.stars-patriarch {
  color: #ffffff;
  font-size: 20px;
  font-family: 'Montserrat';
  font-weight: 300;
}

.years{
  color: #ffffff;
}

.experience {
  text-align: right;
  margin-top: auto;
}

.experience .years {
  font-weight: bold;
  font-size: 47px;
}

.decor-lines {
  position: absolute;
  top: 80px;
  left: 30px;
  z-index: 1;
}

.decor-lines span {
  display: block;
  width: 30px;
  height: 4px;
  background: #ffa85c;
  margin: 6px 0;
  transform: rotate(30deg);
}

/* 2 Карточки с курсасми  */
  .block-upcoming-courses {
    background-color: #f8f9fa;
    max-width: 1980px
    ;
  }

  .text-and-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0px 20px 0px;
    grid: auto;
    gap: 15px;
  }

/* карта-тело */
  .card.mb-4 {
    border: 4px solid #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	max-width: 430px;
    max-height: 540px;

    
}
.text-success {
  font-size: 3.1rem; 
  font-family: "Boris";
}

.text-warning {
    font-size: 3.1rem; 
    font-family: "Boris";
}

.fb-bold.mb-0.text-dark {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
}

.row-text-cards {
    margin-bottom: auto;
    margin-right: auto;
}

.card-title.mb-3.text-dark {
    font-family: "Boris";
    font-size: 1.5rem;
}

.card-text {
    font-family: "Bona Nova";
    font-size: 1.2rem;
    color: #000000;
    
}

#detailed {
    font-family: "Bona Nova";
    color: black;
    letter-spacing: 2px;
    padding: 0;
}

/* Карусель */

.btn.btn-outline-dark{
width: 180px;
height: 40px;
border: 2px solid #383737;
border-radius: 5px;
transition: background-color 0.3s ease;
}

#bt4{
width: 250px;
}

#bt3{
  width: 250px;
  }

.btn.btn-outline-:hover {
  background-color: #FF7919;
  color: #FF7919;
  border: none;
}

#nahi-uslugi{
  font-family: "Bona Nova";
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0vw;
}

/* Стили для кнопок карусели */
.nav-btn-carousel .btn {
    color: gray;
    border-color: gray;
    background-color: transparent;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: "Bona Nova";
}

.nav-btn-carousel .btn.active {
    color: white;
    background-color: #FF7919; /* Оранжевый фон для активной кнопки */
    border-color: #FF7919;
}

.nav-btn-carousel .btn:hover:not(.active) {
    color: gray; /* Неактивные кнопки остаются серыми при наведении */
    background-color: transparent;
    border-color: gray;
}

.nav-btn-carousel .btn {
    color: gray;
    border-color: gray;
}

.nav-btn-carousel .btn.active {
    color: dark;
    border-color: none;
}

.cards-content{
  padding: 15px;
}

.card-title.mt-4{
  font-family: "Bona Nova";
  font-size: 1.3rem;
  color: #FF7919;
  font-weight: 700;
}

.card-text.mt-2{
  font-family: "Bona Nova";
  font-weight: 400;
  font-size: 0.9rem;
}

.d-flex.justify-content-start.me-1{
  color: #FF7919;
  font-weight: 700;
  font-size: 1.2rem;
}

.col-md-4 {
  flex: 0 0 auto;
  width: 28.33333333%;
  display: flex;
  justify-content: center;
}

.carousel.control.prev.icon{
  background: url("/static/media/karusel-r.png") ;
  width: 200px;
}

/* Пятый блок Портфолио */


#portfolio-title{
font-family: "Bona Nova";
font-size: 3rem; 
font-weight: 700;
color: white;
margin-bottom: 6vw;
padding-top: 6vw;
z-index: 3;
position: relative;
}

/* Секция портфолио */
.portfolio-section {
    padding: 50px 0;
    color: white;
}

.portfolio-title {
    font-family: "Bona Nova", serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
}

.portfolio-item {
    position: relative;
    margin-bottom: 30px;
    background-color: #201C1C;
    border-radius: 16px;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.portfolio-description {
    padding: 20px;
    background-color: #201C1C;
}

.portfolio-description h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    color: white;
}

.portfolio-description p {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    color: #ccc;
}

.portfolio-link {
    font-size: 1.5rem;
    color: orange;
    text-decoration: none;
    font-weight: bold;
}

.portfolio-link:hover {
    color: white;
}

.text-SNB.ms-5{
  margin-top: 10vw;
}

#row-5{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0px 20px 0px;
  grid: auto;
  gap: 15px;
}

.text-portfolio1{
color: #ffffff;
font-size: 3rem;
font-family: "Bona Nova";
font-weight: 400;
}

.text-portfolio2{
  color: #BCBABA;
  font-size: 1.5rem;
  font-family: "Bona Nova";
  font-weight: 200;
  padding-right: 5vw;
  }

  #img-snb {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 3px;
    border-color: #FF791A;
    box-shadow: 0px 0px 6px rgba(255, 121, 26, 0.31); 
    margin-bottom: 10%;
  }

/* Отзывы */

#review-text-h2 {
  font-family: "Bona Nova", serif;
  font-weight: bold;
}

#review-text-h3 {
  font-family: "Bona Nova", serif;
  padding: 0 33%;
  
}

  .carousel-wrapper {
    overflow: hidden;
    width: 100%;
  }

  .carousel-track {
    display: flex;
    animation: scroll 20s linear infinite;
    width: max-content;
  }

  .carousel-wrapper:hover .carousel-track {
    animation-play-state: paused;
  }

  .card {
    flex: 0 0 33.3333%;
    box-sizing: border-box;
    padding: 15px;
    border: none;
    width: 18.5vw;
  }

  .card-content {
    background-color: #fff5ee;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    width:35vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .profile {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    justify-content: space-between;
  }

  .profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
  }

  .stars {
    color: orange;
  }

  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  @media (max-width: 768px) {
    .card {
      flex: 0 0 100%;
    }
  }

#quote-down{
  width:100px ;
  height: 100px;
  /* margin-left: 19vw; */
  justify-content: right;
}

.feedback-form {
  padding: 20px;
  border-radius: 16px;
  width: 100%;
}

.form-control {
  background-color: #201C1C;
  color: #fff;
  border-color: #ff7f00;
  border-radius: 16px;
  height: 60px;
  height: 4.5rem;
}

.btn-orange {
  background-color: #ff7f00;
  color: #fff;
  border-color: #ff7f00;
}

.form-label {
  color: #ff7f00;
}

.form-control::placeholder {
  color: #ff7f00;
}

.text-feedback-form.text-center{
  color: #ffffff;
  font-family: 'Bona Nova', Courier, monospace;
}

.text-feedback-title{
  font-size: 3.3rem;
  font-weight: 700;
}

.text-feedback-description{
  font-size: 1.9rem;
  font-weight: 100;
}
  
#feedbackForm{
  width: 30vw;
}

#inputComments{
  height: 10rem;
}

/* Стили для полей формы */
#feedbackForm input,
#feedbackForm textarea {
    font-family: 'Bona Nova', serif; /* Устанавливаем шрифт Bona Nova */
    color: #fff;
    padding: 1vw;
}

/* Стили для текста внутри placeholder */
#feedbackForm input::placeholder,
#feedbackForm textarea::placeholder {
    font-family: 'Bona Nova', serif; /* Шрифт для placeholder */
    color: #fff;
    font-size: 1.2rem; /* Размер шрифта для placeholder */
}

/* Стили при фокусе на поле */
#feedbackForm input:focus,
#feedbackForm textarea:focus {
    outline: none; /* Убираем стандартное выделение */
    border-color: #FF7919; /* Цвет границы при фокусе */
    background-color: #333333; /* Цвет фона при фокусе */
    color: #ffffff; /* Цвет текста при фокусе */
}

.btn.btn-orange{
  width: 155px;
  border-radius: 40px;
  font-family: 'Bona nova';
  font-size: 19px;
}

/* Подвал */

footer {
  background-color: #201c1c;
  padding: 40px 0;
}

.footer-logo {
  font-family: serif;
  font-size: 1.5rem;
  color: #fff;
}

.footer-logo .icon {
  color: orange;
  border: 1px solid orange;
  border-radius: 50%;
  padding: 3px 8px;
  margin-right: 5px;
}

.footer-link {
  font-family: serif;
  color: #fff;
  text-decoration: none;
  margin: 0 30px;
  font-size: 1.5rem;
  font-family: 'Bona Nova';
}

.footer-link:hover {
  color: #ff7f00;
}

.footer-icons i {
  font-size: 1.2rem;
  margin: 0 10px;
  color: orange;
  border: 1px solid #ff7f00;
  padding: 6px;
  border-radius: 50%;
}

.footer-icons {
  gap:5%;
}

.back-to-top {
  position: absolute;
  right: 250px;
  color: #FF9B5A;
  border:2px solid #FF9B5A;
  border-radius:80%;
  padding:7px 16px 11px;
  margin-bottom: 18px;
  text-decoration:none;
  font-size: 21px;
}

.text-light{
  border-block-color: #FFFFFF;
  border-top-width: 2.917px;
}

.fas.fa-caret-up{
  text-decoration: none;
}
