/*
  Сайт: Гилазова Медина
  Основные стили
*/

/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/
:root {
  --white-color:                  #e6e2dc;
  --primary-color:                #3b3b3b;
  --section-bg-color:             #dfdbd4;
  --dark-color:                   #000000;
  --title-color:                  #565758;
  --p-color:                      #717275;
  --border-color:                 #ffffff;

  --body-font-family:             'Open Sans', sans-serif;

  --h1-font-size:                 48px;
  --h2-font-size:                 36px;
  --h3-font-size:                 32px;
  --h4-font-size:                 28px;
  --h5-font-size:                 24px;
  --h6-font-size:                 22px;
  --p-font-size:                  18px;
  --menu-font-size:               16px;

  --font-weight-light:            300;
  --font-weight-normal:           400;
  --font-weight-semibold:         600;
  --font-weight-bold:             700;

  --content-link-color:           #3d5a80;
  --content-link-hover:           #2c4466;
}

body {
    background: var(--white-color);
    font-family: var(--body-font-family);    
    position: relative;
    padding-top: 94px;
}

/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
  line-height: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-semibold);
}

h1,
h2 {
  font-weight: var(--font-weight-bold);
}

h1 {
  font-size: var(--h1-font-size);
  line-height: normal;
}

h2 {
  font-size: var(--h2-font-size);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
  letter-spacing: 0.5px;
}

a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  color: var(--p-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

.section-padding {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

/*---------------------------------------
  CUSTOM LINK               
-----------------------------------------*/
.custom-link {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  pointer-events: auto;
  font-weight: var(--font-weight-semibold);
  line-height: 40px;
  position: relative;
  padding: 0 30px;
  box-sizing: border-box;
  margin: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  overflow: hidden;
  border-radius: 0;
  text-transform: uppercase;
}

.custom-link::before {
  content: attr(data-hover);
  background-color: var(--border-color);
  color: var(--primary-color);
  position: absolute;
  top: 100%;
  bottom: 0;
  left: 0;
  transition: all 300ms cubic-bezier(0.19, 1, 0.56, 1);
  right: 0;
  text-align: center;
}

.custom-link:hover::before {
  top: 0;
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

/*---------------------------------------
  LIST GROUP               
-----------------------------------------*/
.list-group-item {
  background-color: transparent;
  color: var(--p-color);
  font-size: var(--p-font-size);
  padding: 1rem 0;
}

.list-group-item:first-child {
  padding-top: 0;
}

.list-group-item span {
  font-weight: var(--font-weight-semibold);
  margin-left: auto;
}

/*---------------------------------------
  ANIMATED TEXT              
-----------------------------------------*/
.animated {
  position: relative;
}

.animated-info {
  display: inline-block;
  vertical-align: top;
  min-width: 250px;
  position: relative;
}

.animated-item {
  color: var(--primary-color);
}

.animated-item {
  display: block;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  animation: BottomTotop 6s linear infinite 0s;
}

.animated-item:nth-child(2n+2) {
  animation-delay: 2s;
}

.animated-item:nth-child(3n+3) {
  animation-delay: 4s;
}

@keyframes BottomTotop {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 0;
    transform: translateY(5px);
  }
  10% {
    opacity: 1;
    transform: translateY(0px);
  }
  25% {
    opacity: 1;
    transform: translateY(0px);
  }
  30% {
    opacity: 0;
    transform: translateY(5px);
  }
  80% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/*---------------------------------------
  HERO              
-----------------------------------------*/
.hero {  
  padding-top: 0rem;
}

.hero .container {
  position: relative;
  overflow: hidden;
  height: 580px;
}

.heroText {
  background: var(--white-color);
  position: absolute;
  z-index: 2;
  bottom: 0;
  padding: 1.5rem 2.5rem;
  width: 50%;
  left: 25px;
}

.contact-phone {
  font-weight: var(--font-weight-semibold);
}


/*---------------------------------------
  NAVIGATION              
-----------------------------------------*/
.navbar {
  padding-top: 7px;
  padding-bottom: 7px;
}

.navbar-brand {
  color: var(--primary-color);
  font-size: var(--h5-font-size);
  font-weight: var(--font-weight-bold);
  margin: 0 30px;
  padding: 0;
  text-align: center;
}

.navbar-brand strong {
  color: var(--p-color);
  font-size: 12px;
  position: relative;
  bottom: 5px;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 6rem;
}

@media screen and (max-width: 1399px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 2.5rem;
  }
}

@media screen and (max-width: 1199px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 1.25rem;
  }
}

/* На lg+ компактные отступы — чтобы пункты и «Записаться» оставались в одной строке */
@media screen and (min-width: 992px) {
  .menu-wrapper {
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .navbar-expand-lg .navbar-nav {
    flex-wrap: nowrap;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 0.3rem;
    padding-right: 0.4rem;
  }

  .menu-wrapper .navbar-collapse {
    flex: 1 1 auto;
    min-width: 0;
  }

  .menu-wrapper .heroLinks {
    flex-shrink: 0;
  }

  .menu-wrapper .heroLinks .custom-link {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-right: 0 !important;
  }
}

.navbar-nav .nav-link {
  color: var(--p-color);
  font-weight: var(--font-weight-semibold);
  font-size: var(--menu-font-size);
  padding-top: 15px;
  padding-bottom: 15px;
}

.navbar-nav .nav-item.active .nav-link, 
.nav-link:focus, 
.nav-link:hover {
  color: var(--dark-color);
}

.nav-link:focus {
  color: var(--p-color);
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  width: 30px;
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--dark-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--dark-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon:before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon:after {
  top: 8px;
}

/*---------------------------------------
  TIMELINE               
-----------------------------------------*/
.timeline,
.timeline-nodes {
  position: relative;
}

.timeline-nodes:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline h3, 
.timeline p {
  padding: 10px 30px;
} 

.timeline h3 {
  background: var(--dark-color);
}

.timeline::before {
  content: "";
  display: block;
  position: absolute;
  top: 37px;
  left: 50%;
  width: 0;
  border-left: 1px solid var(--border-color);
  height: 85%;
  z-index: 1;
  transform: translateX(-50%);
}

.timeline-content {
  position: relative;
  border-radius: 0 0 0.25rem 0.25rem;
  padding: 0;
}

.timeline-nodes:nth-child(odd) h3,
.timeline-nodes:nth-child(odd) p {
  text-align: right;
}

.timeline-nodes:nth-child(odd) .timeline-date {
  text-align: left;
}
 
.timeline-nodes:nth-child(even) .timeline-date {
  text-align: right;
}

.timeline-nodes:nth-child(odd) h3::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(0, -50%);
  width: 0;
  border-left: 10px solid var(--dark-color);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.timeline-nodes h3 {
  position: relative;
  border-radius: 0.25rem 0.25rem 0 0;
}

.timeline-nodes:nth-child(even) h3::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translate(0, -50%);
  width: 0;
  border-right: 10px solid var(--dark-color);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.timeline-icons {
  position: relative;
  z-index: 100;
}

.timeline-icons::before {
  content: "";
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%,0);
  background: var(--white-color);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
  z-index: 1;
}

.timeline-icon {
  position: relative;
  z-index: 100;
  font-size: var(--h3-font-size);
  color: var(--primary-color);
  display: block;
  text-align: center;
  line-height: 80px;
}

@media (max-width: 767px) {
  .timeline-nodes:nth-child(odd) h3,
  .timeline-nodes:nth-child(odd) p {
    text-align: left;
  }

  .timeline-nodes:nth-child(even) {
    flex-direction: row;
  }

  .timeline::before {
    content: "";
    display: block;
    position: absolute;
    top: 60px;
    left: 33px;
    width: 0;
    height: 90%;
    z-index: 1;
    transform: translateX(-50%);
  }

  .timeline-icons {
    position: absolute;
    left: 0%;
    top: 60px;
  }

  .timeline-nodes:nth-child(odd) h3::after {
    left: auto;
    right: 100%;
    border-left: 0;
    border-right: 10px solid var(--dark-color);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }

  .timeline-nodes:nth-child(even) h3::after {
    right: 100%;
    width: 0;
    border-right: 10px solid var(--dark-color);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }

  .timeline-nodes:nth-child(even) .timeline-date {
    text-align: left;
  }

  .timeline-icons::before {
    width: 75px;
    height: 75px;
  }

  .timeline-icon {
    line-height: 75px;
  }
}

@media (max-width: 575px) {
  .timeline::before {
    content: "";
    display: block;
    top: 60px;
    left: 57px;
    height: 87%;
  }

  .timeline-icons {
    position: absolute;
    left: -10px;
  }

  .timeline-icons::before {
    width: 70px;
    height: 70px;
  }

  .timeline-icon {
    line-height: 70px;
  }

  .timeline h3,
  .timeline p {
    padding-left: 16px;
    padding-right: 16px;
  }

  .reviews-thumb {
    padding: 1.25rem 1rem;
  }

  .reviews-thumb figcaption.ms-4 {
    margin-left: 0 !important;
    margin-top: 0.35rem;
  }
}

/*---------------------------------------
  REVIEWS               
-----------------------------------------*/
.reviews-thumb {
  margin-bottom: 0;
  padding: 32px;
}

.reviews-text {
  margin-top: 10px;
  margin-bottom: 25px;
}

.reviews-image {
  border-radius: 100px;
  width: 70px !important;
  height: 70px !important;
}

/* Стрелки внизу блока; высота слайдов может быть разной — навигация не привязана к центру */
.reviews-carousel.owl-carousel.owl-loaded {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.reviews-carousel .owl-stage-outer {
  flex: 0 1 auto;
  width: 100%;
  order: 1;
  transition: height 0.45s ease;
}

.reviews-carousel .owl-item {
  opacity: 0.45;
}

.reviews-carousel .owl-item.active.center {
  opacity: 1;
}

.reviews-carousel .owl-item.active.center .reviews-thumb {
  background: var(--dark-color);
}

.reviews-carousel .owl-item.active.center .reviews-thumb,
.reviews-carousel .owl-item.active.center .reviews-text {
  color: var(--white-color);
}

.reviews-carousel .owl-nav {
  position: static;
  left: auto;
  top: auto;
  right: auto;
  transform: none;
  width: 100% !important;
  max-width: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  order: 2;
}

.reviews-carousel .owl-nav .owl-prev,
.reviews-carousel .owl-nav .owl-next {
  position: static;
  left: auto !important;
  right: auto !important;
  margin: 0;
}

.reviews-carousel .owl-nav span {
  width: 40px;
  height: 40px;
  line-height: 40px;
  display: block;
}

.reviews-carousel .owl-prev span,
.reviews-carousel .owl-next span {
  color: transparent;
  font-size: 0;
}

.reviews-carousel .owl-prev span::before,
.reviews-carousel .owl-next span::before {
  font-family: bootstrap-icons;
  display: block;
  font-size: var(--h3-font-size);
  color: var(--p-color);
  width: 40px;
  height: 40px;
  line-height: 40px;
}

.reviews-carousel .owl-prev span::before {
  content: "\f12f";
}

.reviews-carousel .owl-next span::before {
  content: "\f138";
}

.reviews-carousel .owl-nav button.owl-prev,
.reviews-carousel .owl-nav button.owl-next {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

/*---------------------------------------
  BOOKING FORM            
-----------------------------------------*/

.booking-form .form-control {
  background: transparent;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  color: #6c757d;
  font-weight: var(--font-weight-normal);
  padding-top: 12px;
  padding-bottom: 12px;
  margin-top: 15px;
  transition: all 0.3s;
}

.booking-form #submit-button {
  background: var(--dark-color);
  border-bottom: 0;
  font-weight: var(--font-weight-semibold);
  color: var(--white-color);
  text-transform: uppercase;
  margin-top: 35px;
}

.booking-form #submit-button:hover {
  background: var(--primary-color);
}

/*---------------------------------------
  FOOTER              
-----------------------------------------*/
/*---------------------------------------
  СТРАНИЦА ПОЛИТИКИ (privacy-policy.html)
-----------------------------------------*/
.privacy-policy-content {
  max-width: 100%;
  box-sizing: border-box;
}

.privacy-policy-title {
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.privacy-policy-p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.privacy-policy-p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 767px) {
  .privacy-policy-content {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  /* Сбрасываем inline 16pt / 20% отступы из вёрстки документа */
  .privacy-policy-content * {
    font-size: inherit !important;
  }

  .privacy-policy-content p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    line-height: 1.55 !important;
  }
}

@media screen and (max-width: 575px) {
  .privacy-policy-content {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.5;
  }
}

/* Страница сертификатов: список ссылок колонкой */
.cert-link-list li {
  margin-bottom: 0.5rem;
}

.cert-link-list li:last-child {
  margin-bottom: 0;
}

.cert-link-list a {
  word-break: break-word;
  color: var(--content-link-color);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

.cert-link-list a:hover {
  color: var(--content-link-hover);
}

/* Ссылка на страницу документов в тексте про образование */
.content-link {
  color: var(--content-link-color);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  font-weight: var(--font-weight-semibold);
  transition: color 0.2s ease;
}

.content-link:hover {
  color: var(--content-link-hover);
}

.site-footer {
  background: var(--section-bg-color);
}

.footer-phone-link {
  display: inline-block;
  line-height: 0;
}

.footer-phone-img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 2.75rem;
  vertical-align: middle;
}

.copyright-text {
  font-size: var(--menu-font-size);
}

/*---------------------------------------
  SOCIAL ICON               
-----------------------------------------*/
.social-icon {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
}

.social-icon li {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition: opacity 0.3s;
}

.social-icon:hover li:not(:hover) {
  opacity: 0.65;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  color: inherit;
}

/* Один визуальный размер для всех значков в ряду */
.social-icon-link--telegram,
.social-icon-link--vk {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.social-icon-link--telegram {
  color: #229ed9;
  font-size: 32px;
}

.social-icon-link--telegram:hover {
  color: #1b86bb;
}

.social-icon-link--vk svg {
  display: block;
  width: 32px;
  height: 32px;
  vertical-align: middle;
}

.social-icon-link--vk:hover {
  opacity: 0.9;
}

/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
@media screen and (min-width: 1600px) {
  .hero .container {
    height: 740px;
  }
}

@media screen and (max-width: 991px) {
  body {
    padding-top: 74px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 26px;
  }

  h4 {
    font-size: 24px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  .section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .navbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .navbar-nav .nav-link {
    padding-top: 5px;
    padding-bottom: 10px;
  }

  .hero .container {
    height: inherit;
  }

  .heroText {
    position: relative;
    bottom: 100px;
    left: 0;
    width: auto;
    margin-bottom: -100px;
    padding: 2rem;
  }

  .featured-circle {
    width: 320px;
    height: 320px;
  }
}

@media screen and (max-width: 767px) {
  .heroText {
    padding: 1.5rem;
  }

  .animated-info {
    min-width: 125px;
  }

  .featured-circle {
    margin-top: 20px;
  }

  .reviews-carousel .owl-nav {
    margin-top: 1.25rem;
    gap: 1.75rem;
  }
}

@media screen and (max-width: 480px) {
  .heroText {
    padding: 1rem;
  }

  .heroLinks .custom-link {
    font-size: 12px;
    line-height: 30px;
    margin-right: 12px !important;
    padding: 0 25px;
  }

  .contact-phone {
    font-size: 12px;
  }
}

@media screen and (max-width: 360px) {
  .featured-number {
    font-size: 5rem;
  }

  .featured-circle {
    width: 235px;
    height: 235px;
  }

  .reviews-image {
    width: 55px !important;
    height: 55px !important;
  }

  .reviews-thumb figcaption {
    font-size: var(--menu-font-size);
  }

  .timeline::before {
    left: 42px;
  }
}

.menu-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  gap: 0.5rem;
}

.menu-wrapper .navbar-collapse {
  flex: 1 1 auto;
  min-width: 0;
}

/* Мобильная шапка: бургер и «Записаться» строго в одной линии; меню — строкой ниже */
@media screen and (max-width: 991.98px) {
  .navbar > .container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0;
  }

  .navbar-toggler {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  /* Раскладываем детей .container по сетке: бургер | кнопка, затем полноширинное меню */
  .menu-wrapper {
    display: contents;
  }

  .menu-wrapper .heroLinks {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin-left: 0;
    min-width: 0;
  }

  .menu-wrapper .heroLinks .custom-link {
    margin-right: 0 !important;
  }

  .menu-wrapper .navbar-collapse {
    grid-column: 1 / -1;
    grid-row: 2;
    flex: initial;
    min-width: 0;
    width: 100%;
  }
}

.mt-45 {
  margin-top: 45px;
}

.font-size {
  font-size: clamp(1.35rem, 4.2vw, 2.125rem);
}

.wrap-photo {
  display: flex;
  flex-wrap: wrap;
}

.mr-15 {
  margin-right: 15px;
}

.font-size1 {
  font-size: clamp(1.2rem, 3.8vw, 1.875rem);
}

.colorbg {
  background-color: #bfbab2 !important;
}

.font-size2 {
  font-size: 24px;
}

@media screen and (max-width: 575px) {
  .font-size2 {
    font-size: clamp(1rem, 3.2vw, 1.35rem);
  }
}

.font-size3 {
  font-size: clamp(1rem, 2.6vw, 1.3125rem);
}

.mt-30 {
  margin-top: 30px;
}






.demo-title {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 50px;
}

.pricing-table {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
}

.pricing-option {
  box-sizing: border-box;
  flex: 1 1 100%;
  max-width: 100%;
  min-width: 0;
  background: white;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.pricing-option hr {
  border: none;
  border-bottom: 1px solid #f0f0f0;
}

.pricing-option i {
  font-size: 3rem;
  color: #d8d8d8;
  transition: all 0.3s ease-in-out;
}

.pricing-option h1,
.pricing-option h3 {
  margin: 10px 0;
  color: #212121;
  transition: all 0.3s ease-in-out;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  /* Как у второй карточки («Индивидуальное консультирование»): две строки — выравниваем соседние блоки */
  min-height: calc(2 * 1.3em);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pricing-option p {
  color: #999;
  padding: 0 10px;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.pricing-option .price {
  position: relative;
  min-height: 3rem;
}

.pricing-option .price .front span.price {
  font-size: clamp(1.25rem, 4vw, 2rem);
  text-transform: uppercase;
  margin-top: 20px;
  display: block;
  font-weight: 700;
  position: relative;
}

.pricing-option .price .front span.price b {
  position: absolute;
  font-size: 1rem;
  margin-left: 2px;
  font-weight: 600;
}

.pricing-option .price .back {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.pricing-option .price .back a.button,
.pricing-option .price .back a.pricing-book-btn {
  padding: 15px 20px;
  display: inline-block;
  text-decoration: none;
  color: white;
  position: absolute;
  font-size: 13px;
  top: -5px;
  left: 0;
  right: 0;
  width: 150px;
  margin: auto;
  text-transform: uppercase;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
}

.pricing-option .price .back a.button {
  background: #f85e6a;
}

.pricing-option .price .back a.pricing-book-btn {
  background: #8b8075;
  border-radius: 5px;
  text-transform: none;
  font-weight: var(--font-weight-bold);
  font-family: var(--body-font-family);
  font-size: 14px;
}

.pricing-option .price .back a.pricing-book-btn:hover {
  color: var(--white-color);
  filter: brightness(0.95);
}

.pricing-option:hover {
  cursor: pointer;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .pricing-option:hover {
    transform: scale(1.02);
  }
}

.pricing-option:hover i,
.pricing-option:hover h1,
.pricing-option:hover h3,
.pricing-option:hover span,
.pricing-option:hover b {
  color: #f85e6a;
}

.pricing-option:hover .front {
  opacity: 0;
  visibility: hidden;
}

.pricing-option:hover .back {
  opacity: 1 !important;
  visibility: visible !important;
}

.pricing-option:hover .back a.button,
.pricing-option:hover .back a.pricing-book-btn {
  transform: translateY(0) !important;
}

@media screen and (min-width: 992px) {
  .pricing-option {
    flex: 1 1 calc((100% - 3rem) / 3);
    min-width: 0;
    max-width: calc((100% - 3rem) / 3);
    padding: 2%;
  }
}

@media screen and (max-width: 991px) {
  .pricing-option {
    padding: 1.25rem 1rem;
  }

  .pricing-option + .pricing-option {
    margin-top: 0;
  }

  /* Цена и кнопка всегда видны; без смены слоёв по hover */
  .pricing-option {
    cursor: default;
  }

  .pricing-option .price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 0;
  }

  .pricing-option .price .front {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
  }

  .pricing-option .price .back {
    opacity: 1 !important;
    visibility: visible !important;
    position: static;
    height: auto;
  }

  .pricing-option .price .back a.button,
  .pricing-option .price .back a.pricing-book-btn {
    position: static;
    transform: none !important;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    min-width: 10rem;
    margin: 0;
  }

  .pricing-option:hover {
    box-shadow: none;
  }

  .pricing-option:hover .front {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .pricing-option:hover .back {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .pricing-option:hover .back a.button,
  .pricing-option:hover .back a.pricing-book-btn {
    transform: none !important;
  }

  .pricing-option:hover i,
  .pricing-option:hover h1,
  .pricing-option:hover h3 {
    color: #212121;
  }

  .pricing-option:hover span.price,
  .pricing-option:hover span.price b {
    color: inherit;
  }

  @media (min-width: 768px) {
    .pricing-option:hover {
      transform: none;
    }
  }
}

/*---------------------------------------
  СЕССИИ, FAQ, ФОРМАТ, БЛОК ДОВЕРИЯ
-----------------------------------------*/
.sessions-section {
  background: var(--section-bg-color);
}

.sessions-section h2 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  color: var(--title-color);
  font-weight: var(--font-weight-semibold);
}

.sessions-lead {
  color: var(--p-color);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.sessions-step {
  display: flex;
  gap: 1rem 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sessions-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sessions-step__num {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--dark-color);
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  line-height: 2.5rem;
  text-align: center;
}

.sessions-step__title {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--title-color);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 0.5rem;
}

.sessions-step__text {
  margin: 0;
  color: var(--p-color);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
}

.faq-section h2 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  color: var(--title-color);
  font-weight: var(--font-weight-semibold);
}

.faq-accordion .accordion-item {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.08);
}

.faq-accordion .accordion-button {
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  font-weight: var(--font-weight-semibold);
  color: var(--title-color);
  background: var(--white-color);
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--dark-color);
  background: rgba(255, 255, 255, 0.65);
}

.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.15rem rgba(61, 90, 128, 0.25);
  border-color: transparent;
}

.faq-accordion .accordion-button::after {
  filter: opacity(0.65);
}

.faq-accordion .accordion-body {
  color: var(--p-color);
  line-height: 1.55;
  padding-top: 0.25rem;
}

.format-section h2 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  color: var(--title-color);
  font-weight: var(--font-weight-semibold);
}

.format-card {
  background: var(--white-color);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  padding: 1.5rem 1.35rem;
  height: 100%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.format-card__title {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--title-color);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 1rem;
  line-height: 1.35;
}

.format-card__title .bi {
  margin-right: 0.4rem;
  color: var(--content-link-color);
  vertical-align: -0.1em;
}

.trust-badges {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: left;
}

@media screen and (min-width: 768px) {
  .trust-badge {
    justify-content: flex-start;
  }
}

.trust-badge__icon {
  flex: 0 0 auto;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--content-link-color);
}

.trust-badge__icon .bi {
  display: block;
}

.trust-badge__text {
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-semibold);
  color: var(--title-color);
  line-height: 1.35;
}

/* Модальное окно просмотра сертификатов */
.cert-modal-img {
  max-height: min(85vh, 1100px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.cert-thumb-link {
  cursor: zoom-in;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
  text-decoration: none;
}

.cert-thumb-link:hover {
  opacity: 0.97;
  box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.12);
}

.cert-thumb-link:focus-visible {
  outline: 2px solid var(--content-link-color);
  outline-offset: 3px;
}

#certModal .modal-body {
  overflow-y: auto;
  max-height: calc(100vh - 7rem);
  -webkit-overflow-scrolling: touch;
}

/* Улучшение отображения модалки с изображением на iOS (в т.ч. Chrome) */
#certModal .modal-dialog {
  margin: 0.5rem auto;
}

#certModal .modal-content {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

#certModal .cert-modal-img {
  -webkit-user-select: none;
  user-select: none;
}