/* css styles */

/* Импорт шрифтов */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Применение шрифтов на весь документ*/

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Жирное начертание для заголовков */
}

p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; /* Обычное начертание для параграфов */
}


/* Изменение навигации */

html {
  scroll-behavior: smooth;
}


.navbar a:hover {
    color: #474747; /* Замените на нужный вам цвет */
    text-decoration: none; /* Подчеркивание при наведении */
    background-color: #f0f0f0; /* Фон при наведении */
}

.navbar-nav .nav-link.active {
    font-weight: bold;      /* Жирный текст для активной ссылки */
    color: #474747;         /* Опционально: можно задать другой цвет для активной ссылки */
}


/* Ссылки в самом документе */


a:link {
  text-decoration: none;
  color: #474747;
}

a:visited {
    text-decoration: none;
    color: #474747;
}

a:hover {
  color: #474747;
  text-decoration: none; /* Подчеркивание при наведении */
  background-color: #f0f0f0; /* Фон при наведении */
  /* font-weight: bold; */
}

a:active {
  color: #474747;
}

/* Изменить ссылку */

.my-special-link {
  color: #474747;  /* Цвет текста ссылки */
  text-decoration: none;  /* Убирает подчеркивание */
  border: 2px solid transparent; /* Начальная рамка (прозрачная) */
  padding: 4px;  /* Отступы вокруг текста */
  border-radius: 4px; /* Скругление углов рамки */
  transition: border-color 0.3s, color 0.3s; /* Плавный переход для эффектов */
}

/* Коробка с текстом по центру в рамке */

.centered-box {
  width: 80%;              /* Устанавливает ширину 50% от страницы */
  margin: 0 auto;          /* Выровнять блок по центру */
  padding: 20px;           /* Внутренний отступ */
  border: 2px solid #474747;  /* Черная рамка толщиной 2px */
  text-align: center;      /* Центрирование текста */
  box-sizing: border-box;  /* Учитывать границу в ширине */
}

.centered-box2 {
  width: 90%;                     /* Ширина 90% от ширины страницы */
  margin: 0 auto;                 /* Центрирование блока */
  padding: 20px;                  /* Внутренний отступ */
  border-radius: 8px;             /* Закругленные углы */
  background-color: #f9f9f9;      /* Светлый фон */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Тень */
  box-sizing: border-box;
  display: flex;                  /* Устанавливаем flex-контейнер */
  align-items: center;            /* Центрируем элементы по вертикали */
  gap: 20px;                      /* Расстояние между колонками */
  text-align: left;               /* Выравнивание текста по левому краю */
}

.centered-box2 img {
  width: 600px;                   /* Ширина изображения */
  height: auto;                   /* Автоматическая высота для сохранения пропорций */
  border-radius: 8px;             /* Закругленные углы у изображения */
}

.centered-box2 .text {    
  flex: 1;                 /* Текст занимает оставшееся пространство */
}

@media (max-width: 768px) {
  .centered-box2 {
    flex-direction: column;         /* Изменение на колонку в мобильной версии */
    align-items: center;            /* Центрируем все элементы по горизонтали */
    gap: 10px;                      /* Уменьшаем расстояние между элементами */
  }

  .centered-box2 img {
    width: 100%;                    /* Изображение занимает 100% ширины на мобильных */
    height: auto;                   /* Автоматическая высота для сохранения пропорций */
  }

  .centered-box2 .text {
    text-align: center;             /* Центрируем текст */
  }
}



/* LINK */

a.custom-link {
  display: inline-block;           /* Позволяет добавить отступы и границы вокруг ссылки */
  padding: 8px 16px;               /* Внутренние отступы */
  color: #474747;                  /* Цвет текста */
  text-decoration: none;           /* Убираем подчеркивание */
  border: 2px solid #474747;       /* Граница вокруг ссылки */
  border-radius: 8px;              /* Скругленные края */
  transition: color 0.3s, border-color 0.3s, background-color 0.3s; /* Плавный переход */
}

a.custom-link:hover {
  color: #ffffff;
  background-color: #474747;
  border-color: #474747;        
}


.about-link {
  display: inline-block;           /* Позволяет добавить отступы и границы вокруг ссылки */
  padding: 8px 16px;               /* Внутренние отступы */
  color: #474747;                  /* Цвет текста */
  text-decoration: none;           /* Убираем подчеркивание */
  border: 2px solid #474747;       /* Граница вокруг ссылки */
  border-radius: 8px;              /* Скругленные края */
  transition: color 0.3s, border-color 0.3s, background-color 0.3s; /* Плавный переход */
}

.about-link:hover {
  color: #ffffff !important;
  background-color: #474747;
  border-color: #474747;
}



/* FAQ */

/* Стили для FAQ */
details {
  background-color: #f8f9fa;
  border: 2px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
  padding: 10px;
}

summary {
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  padding: 5px 10px;
}

details[open] summary {
  color: #474747;
  font-size: 1.1em;
}

details p {
  margin-top: 10px;
  padding-left: 10px;
  line-height: 1.5;
}

/* GRID */

.quarto-grid-item:hover{
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.consultation-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: center;
}

.consultation-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    aspect-ratio: 4/3;
}

.consultation-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.consultation-content h2 {
    color: #474747;
    margin: 0;
    font-size: 1.8rem;
}

.consultation-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.consultation-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: #2d3436;
}

.consultation-features li::before {
    content: "•";
    color: #474747;
    font-size: 1.5em;
}

.consultation-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #474747;
    margin: 1rem 0;
}

.consultation-note {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-top: auto;
}

.consultation-button {
    display: inline-block;
    background: #474747;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid #474747;
}

.consultation-button:link,
.consultation-button:visited {
    color: white; /* Ensure white text for link states */
}

.consultation-button:hover {
    background: white;
    color: #474747;
    text-decoration: none;
}

@media (max-width: 768px) {
    .consultation-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        margin: 1rem;
        gap: 1.5rem;
    }

    .consultation-content h2 {
        font-size: 1.5rem;
    }

    .consultation-features li {
        font-size: 1rem;
    }

    .consultation-price {
        font-size: 1.2rem;
    }

    .consultation-button {
        width: 100%;
        padding: 0.8rem;
    }
}

/* Стили для раздела Образование */
.education-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.education-timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #e0e0e0;
  top: 0;
  bottom: 0;
  left: 100px;
  margin-left: -1px;
}

.education-item {
  position: relative;
  display: flex;
  margin-bottom: 30px;
}

.education-year {
  min-width: 100px;
  font-weight: bold;
  color: #474747;
  padding-top: 5px;
  font-size: 1.2rem;
  text-align: right;
  padding-right: 25px;
}

.education-content {
  position: relative;
  margin-left: 30px;
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 15px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  width: 100%;
}

.education-content::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: white;
  border: 2px solid #474747;
  border-radius: 50%;
  left: -36px;
  top: 20px;
}

.education-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #333;
}

.education-content p {
  margin: 0;
  color: #666;
}

@media screen and (max-width: 768px) {
  .education-timeline::after {
    left: 50px;
  }
  
  .education-year {
    min-width: 80px;
    font-size: 1rem;
    padding-right: 20px;
  }
  
  .education-content {
    margin-left: 20px;
    padding: 12px 15px;
  }
  
  .education-content::before {
    left: -26px;
    width: 10px;
    height: 10px;
  }
  
  .education-content h3 {
    font-size: 1.1rem;
  }
}