@charset "UTF-8";
:root {
  --main-bg: #FFF9F1;
  --second-bg: #EAD7BB;
  --accent-color: #BC8E5E;
  --text-color: #4A3F35;
  --transition: all 0.3s ease-in-out;
}

body {
  background-color: var(--main-bg);
  color: var(--text-color);
}

/* 1. Считаем размеры блоков правильно (включая padding и border) */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Убираем внешние и внутренние отступы у всех элементов */
* {
  margin: 0;
  padding: 0;
  font-family: "Google Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 1.5;
}

/* 3. Улучшаем плавность шрифтов и убираем лишнюю высоту */
html, body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

/* 4. Сбрасываем стили списков (часто мешают в меню) */
ul, ol {
  list-style: none;
}

/* 5. Убираем подчеркивание у ссылок по умолчанию */
a {
  text-decoration: none;
  color: inherit; /* Ссылка наследует цвет текста родителя */
  cursor: pointer;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-color);
}

/* 6. Делаем картинки послушными (чтобы не вылезали за края) */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

/* 7. Убираем стандартные рамки у кнопок и инпутов */
input, button, textarea, select {
  font: inherit;
  outline: none;
  border: none;
}

/* 8. Для текстовых полей — чтобы не меняли размер вручную, если не нужно */
textarea {
  resize: vertical;
}

.container {
  max-width: 1440px;
  width: 90%;
  margin: 0 auto;
}

.btn {
  background-color: var(--accent-color);
  color: #fff;
  padding: 10px 30px;
  border-radius: 5px;
  transition: var(--transition);
  cursor: pointer;
  line-height: 1;
  border: 1px solid var(--accent-color);
}
.btn:hover {
  background-color: var(--text-color);
  border-color: var(--text-color);
}
.btn.other {
  background-color: transparent;
  color: var(--accent-color);
}
.btn.other:hover {
  background-color: var(--accent-color);
  color: #fff;
}
.btn .full-width {
  width: 100%;
}

hr {
  border: none;
  outline: none;
}

strong {
  font-weight: 700;
}

header .buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: -moz-fit-content;
  width: fit-content;
}

header {
  padding-top: 10px;
}
header hr {
  width: 100%;
  height: 1px;
  background-color: var(--text-color);
}
header .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
header .container {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
header .links {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
header .links a:last-child {
  margin-left: auto;
}
header .content {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  gap: 8px;
}
header .social {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
}
header .social a {
  font-size: 14px;
  text-decoration: underline;
  line-height: 1;
}
header .btn {
  height: -moz-max-content;
  height: max-content;
}
header .services {
  flex-grow: 1;
  display: flex;
  gap: 12px;
}

.section {
  padding-top: 60px;
  padding-bottom: 60px;
}
.section.first {
  padding-top: 20px;
}

.hero {
  background-color: var(--main-bg);
  min-height: 50vh;
  display: flex;
  align-items: center;
}
.hero .buttons {
  display: flex;
  gap: 15px;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Текстовый блок */
.hero-content {
  flex: 1;
}

.hero-badge {
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: block;
}

.hero-content h1 {
  color: var(--text-color);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-content p {
  color: var(--text-color);
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 500px;
}

/* Блок с фото */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-border {
  position: relative;
  padding: 15px;
  background: var(--second-bg);
  border-radius: 100px 30px 100px 30px; /* Необычная мягкая форма */
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 85px 15px 85px 15px;
  display: block;
}

@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
}
/* Адаптивность для телефонов */
@media (max-width: 768px) {
  .hero-wrapper {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-actions {
    justify-content: center;
  }
}
.services {
  padding: 100px 0;
  background-color: var(--main-bg);
}

.section-title {
  text-align: center;
  color: var(--text-color);
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 450px));
  gap: 30px;
}

/* Обнуляем стили ссылки для карточки */
.service-card {
  text-decoration: none; /* Убираем подчеркивание */
  color: inherit; /* Наследуем цвет текста */
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  padding: 40px 30px;
  border-radius: 30px;
  text-align: center;
  border: 1px solid var(--second-bg);
  transition: var(--transition);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px);
  background-color: var(--main-bg); /* Легкая смена фона при наведении */
  border-color: var(--accent-color);
  box-shadow: 0 15px 30px rgba(74, 63, 53, 0.05);
}

.service-card h3 {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.service-card p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Оформление футера карточки с ценой и стрелкой */
.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 15px;
  border-top: 1px solid var(--second-bg);
}

.service-price {
  font-weight: 700;
  color: var(--accent-color);
  font-size: 1.1rem;
}

.service-link-arrow {
  font-size: 1.2rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.service-card:hover .service-link-arrow {
  transform: translateX(5px); /* Стрелочка дергается вправо при наведении */
}

.service-icon {
  font-size: 4.5rem; /* Еще больше размер самой иконки (было 3) */
  margin-bottom: 25px;
  background: var(--main-bg);
  width: 120px; /* Увеличили круг (было 80) */
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(188, 142, 94, 0.1); /* Мягкая тень в цвет акцента */
}

/* Эффект при наведении на всю карточку — иконка немного увеличивается */
.service-card:hover .service-icon {
  transform: scale(1.1);
  background-color: var(--second-bg);
  box-shadow: 0 10px 25px rgba(188, 142, 94, 0.2);
}

.about {
  background-color: var(--main-bg);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.section-title-left {
  color: var(--text-color);
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
}

.about-lead {
  font-size: 1.4rem;
  color: var(--accent-color);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 25px;
}

.about-text p {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* Список особенностей */
.about-features {
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-color);
  font-weight: 500;
}

.feature-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 50%;
}

/* Карточки опыта справа */
.about-experience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.exp-box {
  background-color: white;
  padding: 30px 20px;
  border-radius: 25px;
  text-align: center;
  border: 1px solid var(--second-bg);
  transition: var(--transition);
}

.exp-box:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.exp-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.exp-label {
  font-size: 0.9rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Длинная карточка внизу */
.exp-box.highlight {
  grid-column: span 2;
  background-color: var(--second-bg);
  border: none;
  font-style: italic;
}

/* Адаптив */
@media (max-width: 992px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-experience {
    order: 2;
  }
}
.faq {
  background-color: var(--main-bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--second-bg);
}

.faq-question {
  width: 100%;
  padding: 25px 30px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-color);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--second-bg);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0; /* Скрыто по умолчанию */
  overflow: hidden;
  background-color: white;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer p {
  padding: 15px 30px 25px;
  color: var(--text-color);
  line-height: 1.6;
  opacity: 0.8;
}

/* Класс для открытого состояния (добавляется через JS) */
.faq-item.active .faq-answer {
  max-height: 300px; /* Достаточно для текста */
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* Плюсик превращается в крестик */
  color: var(--text-color);
}

.main-header {
  background-color: var(--main-bg);
  padding: 15px 0;
  border-bottom: 1px solid var(--second-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px; /* Настройте под свой логотип */
  width: auto;
}

/* Навигация */
.main-nav {
  display: flex;
  gap: 25px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--accent-color);
}

/* Выпадающее меню услуг */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 0;
  z-index: 1;
}

.dropdown-content a {
  padding: 10px 20px;
  display: block;
  font-size: 0.9rem;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Блок справа */
.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-contact {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.header-contact a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.85rem;
  transition: var(--transition);
}

.header-contact .phone {
  font-weight: 700;
  font-size: 1rem;
}

.header-contact a:hover {
  color: var(--accent-color);
}

/* Мобильная адаптация */
@media (max-width: 992px) {
  .main-nav, .header-contact {
    display: none; /* Тут обычно делают "бургер-меню" */
  }
}
.nav-cabinet {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--second-bg); /* Мягкая рамка */
  border-radius: 12px;
  color: var(--text-color) !important;
  background-color: rgba(234, 215, 187, 0.2); /* Очень легкий тон вашего бежевого */
  transition: var(--transition) !important;
  margin-left: 10px; /* Отделяем от других ссылок */
}

.nav-cabinet:hover {
  border-color: var(--accent-color);
  background-color: white;
  box-shadow: 0 4px 12px rgba(188, 142, 94, 0.1);
  transform: translateY(-1px);
}

/* Иконка человечка */
.icon-user {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
}

/* Фикс для навигации, чтобы всё было в ряд по центру */
.main-nav {
  display: flex;
  align-items: center; /* Центрируем всё по вертикали */
  gap: 20px;
}

@media (max-width: 992px) {
  /* Хедер и Бургер */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
  }
  .mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Прячем меню вправо */
    width: 80%;
    height: 100vh;
    background: var(--main-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s ease;
  }
  .main-nav.active {
    right: 0;
  }
  .header-contact, .dropdown-content {
    display: none; /* Упрощаем для мобилок */
  }
  /* Блок HERO (Первый экран) */
  .hero-wrapper {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 40px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-image img {
    max-width: 280px;
    margin-bottom: 30px;
  }
  .hero-actions {
    flex-direction: column;
  }
  /* Блок Услуги */
  .services-grid {
    grid-template-columns: 1fr; /* Одна колонка */
    gap: 20px;
  }
  /* Блок Обо мне */
  .about-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-experience {
    grid-template-columns: 1fr;
  }
  .feature-item {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
  .btn-book {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}
/* Анимация бургера */
.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Фикс для навигации на мобильных через jQuery */
@media (max-width: 992px) {
  .main-nav {
    display: flex; /* Переопределяем, так как jQuery может менять display */
    /* ... остальные стили из предыдущего сообщения ... */
  }
}
.contact-section {
  padding: 100px 0;
  background-color: var(--main-bg);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

/* Стили контактов */
.contact-info h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 20px;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 40px;
  opacity: 0.8;
}

.contact-item {
  display: flex;
  align-items: left;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 25px;
  padding: 15px;
  border-radius: 15px;
  transition: var(--transition);
}
.contact-item:hover {
  background-color: white;
}

.contact-icon {
  font-size: 1.5rem;
  background: var(--second-bg);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.label {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 700;
}

.value {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Мессенджеры */
.social-pills {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.pill {
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--second-bg);
  color: var(--text-color);
  transition: var(--transition);
}

.pill:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Стили формы */
.contact-form-container {
  background-color: white;
  padding: 40px;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(74, 63, 53, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid var(--second-bg);
  background-color: var(--main-bg);
  color: var(--text-color);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  background-color: white;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  border-radius: 12px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.form-privacy {
  margin-top: 15px;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.6;
}

/* Мобильная версия */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-info {
    text-align: center;
  }
  .contact-item {
    justify-content: left;
    text-align: left;
  }
  .social-pills {
    justify-content: center;
  }
}
.contact-social {
  margin-top: 30px;
}

.social-label {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 12px;
  opacity: 0.7;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon-link {
  width: 50px;
  height: 50px;
  background-color: white; /* Белый фон для чистоты */
  color: var(--accent-color); /* Иконка вашего цвета */
  border: 1px solid var(--second-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(74, 63, 53, 0.05);
}

.social-icon-link svg {
  width: 24px;
  height: 24px;
}

.social-icon-link:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(188, 142, 94, 0.2);
}

/* Опционально: цвета брендов при наведении */
.social-icon-link.telegram:hover {
  background-color: #0088cc; /* Фирменный цвет TG */
  border-color: #0088cc;
}

.social-icon-link.whatsapp:hover {
  background-color: #25d366; /* Фирменный цвет WA */
  border-color: #25d366;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 25px;
  text-align: left;
}

/* Стилизация самого квадратика чекбокса */
.checkbox-group input[type=checkbox] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent-color); /* Красит галочку в ваш цвет #BC8E5E */
  margin-top: 2px;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.4;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Ссылка на политику */
.checkbox-group label a {
  color: var(--accent-color);
  text-decoration: underline;
  transition: var(--transition);
}

.checkbox-group label a:hover {
  color: var(--text-color);
  text-decoration: none;
}

.header-social {
  display: flex;
  align-items: center;
  margin-right: 10px; /* Отступ до кнопки */
}

.social-link-top {
  color: var(--accent-color);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.social-link-top svg {
  width: 28px;
  height: 28px;
}

.social-link-top:hover {
  color: var(--text-color);
  transform: scale(1.1);
}

/* Мобильная версия: показываем иконку, скрываем телефон текстом */
@media (max-width: 768px) {
  .header-contact {
    display: none;
  }
  .header-social {
    margin-right: 15px;
  }
}
.header-contact {
  display: flex;
  flex-direction: column; /* Располагаем телефон над почтой */
  align-items: flex-end; /* Выравниваем по правому краю */
  margin-right: 20px;
}

.header-contact a {
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

.header-contact .phone {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.header-contact .email {
  font-size: 0.8rem; /* Чуть меньше телефона */
  opacity: 0.7; /* Сделаем менее яркой */
  margin-top: 2px;
}

.header-contact a:hover {
  color: var(--accent-color);
  opacity: 1;
}

/* Мобильная адаптация */
@media (max-width: 992px) {
  .header-contact {
    display: none; /* Скрываем текстовые контакты на мобильных, оставляем только иконки и кнопку */
  }
}
.main-footer {
  background-color: var(--second-bg);
  padding: 80px 0 30px;
  color: var(--text-color);
}

.footer-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 20px;
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-logo {
  height: 150px;
}

.main-footer h4 {
  margin-bottom: 25px;
  font-size: 1.2rem;
  color: var(--accent-color);
}

.main-footer ul {
  list-style: none;
}

.main-footer ul li {
  margin-bottom: 12px;
}

.main-footer a {
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
  opacity: 0.8;
  width: -moz-fit-content;
  width: fit-content;
}

.main-footer a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-link {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(74, 63, 53, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Кнопка Вверх */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999; /* Увеличили, чтобы быть поверх всех блоков */
  display: none; /* Скрыта, пока не прокрутим вниз */
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#back-to-top:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

/* Адаптив */
@media (max-width: 992px) {
  .footer-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
.privacy-policy {
  background-color: var(--main-bg);
  color: var(--text-color);
}

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 30px;
  opacity: 0.6;
}

.privacy-policy h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.last-updated {
  font-style: italic;
  opacity: 0.5;
  margin-bottom: 50px;
}

.policy-content h2 {
  font-size: 1.6rem;
  color: var(--accent-color);
  margin: 40px 0 20px;
}

.policy-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.policy-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.policy-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.policy-content a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .privacy-policy h1 {
    font-size: 2rem;
  }
}
.contacts-page {
  padding: 60px 0 100px;
  background-color: var(--main-bg);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 40px;
}

.contacts-info h1 {
  font-size: 3rem;
  color: var(--text-color);
  margin-bottom: 20px;
}

.contacts-subtitle {
  font-size: 1.2rem;
  margin-bottom: 50px;
  opacity: 0.8;
}

/* Элементы информации */
.info-list {
  margin-bottom: 50px;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
}

.info-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  background: var(--second-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item h3 {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.info-item p {
  font-size: 1.1rem;
  font-weight: 500;
}

.info-item a {
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

.info-item a:hover {
  color: var(--accent-color);
}

.tg-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  text-decoration: underline !important;
  color: var(--accent-color) !important;
}

/* Карта */
.map-container {
  width: 100%;
  height: 300px;
  background: var(--second-bg);
  border-radius: 30px;
  overflow: hidden;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-color);
  opacity: 0.5;
}

/* Форма на странице контактов */
.contacts-form-box {
  background: white;
  padding: 50px;
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(74, 63, 53, 0.05);
  border: 1px solid var(--second-bg);
}

.contacts-form-box h2 {
  margin-bottom: 30px;
  font-size: 2rem;
}

.form-row {
  margin-bottom: 20px;
}

.contact-page-form input,
.contact-page-form textarea {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--second-bg);
  border-radius: 15px;
  background: var(--main-bg);
  font-family: inherit;
}

.privacy-check {
  margin-bottom: 30px;
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
}

/* Адаптив */
@media (max-width: 992px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .contacts-info {
    text-align: center;
  }
  .info-item {
    flex-direction: column;
    align-items: center;
  }
}
/* Контейнер для чекбокса */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  position: relative;
  text-align: left;
}

/* Прячем стандартный входной элемент */
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Создаем кастомный квадрат */
.checkmark {
  height: 22px;
  width: 22px;
  background-color: var(--main-bg);
  border: 2px solid var(--second-bg);
  border-radius: 6px;
  flex-shrink: 0; /* Чтобы квадрат не сжимался */
  transition: var(--transition);
  position: relative;
  margin-top: 2px;
}

/* Эффект при наведении */
.custom-checkbox:hover input ~ .checkmark {
  border-color: var(--accent-color);
}

/* Стиль, когда чекбокс нажат (фон) */
.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Создаем саму галочку (белая линия) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Показываем галочку при нажатии */
.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Стили текста рядом */
.custom-checkbox p {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.4;
  margin: 0;
}

.custom-checkbox p a {
  color: var(--accent-color);
  text-decoration: underline;
  font-weight: 600;
}

.custom-checkbox p a:hover {
  text-decoration: none;
}

.about-page {
  padding: 60px 0 100px;
  background-color: var(--main-bg);
  color: var(--text-color);
}

/* Приветствие */
.about-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.about-image-main {
  position: relative;
}

.about-image-main img {
  width: 100%;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(74, 63, 53, 0.1);
}

.image-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent-color);
  color: white;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  line-height: 1.2;
}

.image-experience-badge span {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.about-greeting h1 {
  line-height: 1.2;
  margin-bottom: 30px;
}

.about-greeting .lead {
  font-size: 1.3rem;
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 20px;
}

/* Ценности */
.about-values {
  margin: 100px 0;
  padding: 80px 40px;
  background: white;
  border-radius: 40px;
}

.centered-title {
  text-align: center;
  margin-bottom: 50px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.value-item h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

/* Образование */
.edu-list {
  margin-top: 40px;
  border-left: 2px solid var(--second-bg);
  padding-left: 30px;
}

.edu-item {
  margin-bottom: 30px;
  position: relative;
}

.edu-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
}

.edu-item .year {
  font-weight: 700;
  color: var(--accent-color);
}

/* CTA блок */
.about-cta {
  margin-top: 100px;
  text-align: center;
}

.about-cta p {
  font-size: 1.5rem;
  margin-bottom: 25px;
}

/* Адаптив */
@media (max-width: 992px) {
  .about-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .about-image-main {
    max-width: 400px;
    margin: 0 auto 50px;
  }
}
h2 {
  color: var(--text-color);
  font-size: 2.5rem; /* Оптимальный размер для разделов */
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
}

/* Если заголовок должен быть по центру */
.centered-title {
  text-align: center;
}

.centered-title::after {
  margin: 15px auto 0; /* Центрируем декоративную линию */
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
  h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
}
/* Глобальные стили для заголовков */
h1, h2, h3, h4 {
  color: var(--text-color);
  font-family: inherit; /* Использует шрифт вашего сайта */
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

/* Самый главный заголовок (Первый экран) */
h1 {
  font-size: 3rem;
  letter-spacing: -1px;
  margin-bottom: 25px;
}

/* Заголовки секций (Услуги, Обо мне, Контакты) */
h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

/* Заголовки внутри карточек (Услуги, Статьи) */
h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* Мелкие заголовки (В футере или внутри блоков обучения) */
h4 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: var(--accent-color); /* Выделяем мелкие заголовки вашим цветом */
}

/* Адаптивная типографика для мобильных устройств */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 2.1rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  h4 {
    font-size: 1.1rem;
  }
}
/* Декоративный класс для акцента на словах в заголовке */
h1 span, h2 span {
  color: var(--accent-color);
}

.hero-offer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  background: white;
  padding: 10px 20px;
  border-radius: 50px;
  display: inline-flex;
  border: 1px solid var(--second-bg);
}

.hero-offer p {
  margin-bottom: 0 !important;
  font-size: 0.95rem !important;
}

.services .hero-offer {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  display: flex;
  width: -moz-fit-content;
  width: fit-content;
}

.faq-page {
  padding: 60px 0 100px;
  background-color: var(--main-bg);
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-header p {
  max-width: 600px;
  margin: 20px auto 0;
  font-size: 1.1rem;
  opacity: 0.8;
}

.faq-category {
  margin-bottom: 50px;
}

.faq-category h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--accent-color);
  border-bottom: 1px solid var(--second-bg);
  padding-bottom: 10px;
}

/* Блок призыва к действию внизу */
.faq-cta {
  margin-top: 80px;
  padding: 50px;
  background: var(--second-bg);
  border-radius: 30px;
  text-align: center;
}

.faq-cta h3 {
  margin-bottom: 15px;
}

.faq-cta p {
  margin-bottom: 25px;
}

.services-page {
  padding: 60px 0 100px;
  background-color: var(--main-bg);
}

.services-header {
  text-align: center;
  margin-bottom: 80px;
}

.services-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.services-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Широкие карточки услуг */
.service-wide-card {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 40px;
  margin-bottom: 40px;
  overflow: hidden;
  border: 1px solid var(--second-bg);
  transition: var(--transition);
}

.service-wide-card:hover {
  box-shadow: 0 20px 50px rgba(74, 63, 53, 0.05);
}

.service-image {
  flex: 0 0 350px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-huge-icon {
  font-size: 8rem;
}

.service-info {
  padding: 50px;
  flex-grow: 1;
}

.service-info h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.service-info p {
  margin-bottom: 25px;
  line-height: 1.6;
  opacity: 0.9;
}

.service-features {
  list-style: none;
  margin-bottom: 30px;
}

.service-features li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--accent-color);
}

.service-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.service-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid var(--second-bg);
}

.price-tag {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.btn-service {
  background: var(--accent-color);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}

/* Промо-карточка */
.service-promo-card {
  background: var(--accent-color);
  color: white;
  padding: 60px;
  border-radius: 40px;
  text-align: center;
}

.service-promo-card h3 {
  color: white;
  margin-bottom: 15px;
}

.service-promo-card p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.btn-outline {
  border: 2px solid white;
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}

/* Адаптив */
@media (max-width: 992px) {
  .service-wide-card, .service-wide-card.inverted {
    flex-direction: column;
  }
  .service-image {
    width: 100%;
    height: 200px;
  }
}
.service-detail {
  padding: 40px 0 100px;
  background-color: var(--main-bg);
  color: var(--text-color);
}

.service-detail-header {
  margin-bottom: 60px;
  max-width: 800px;
}

.service-lead {
  font-size: 1.4rem;
  color: var(--accent-color);
  line-height: 1.5;
  margin-top: 20px;
}

/* Сетка страницы */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

/* Основной контент */
.service-main-content h2 {
  margin: 50px 0 25px;
}

.service-main-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Список с галочками */
.check-list {
  list-style: none;
  margin: 30px 0;
}

.check-list li {
  padding-left: 35px;
  position: relative;
  margin-bottom: 15px;
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 900;
  font-size: 1.2rem;
}

/* Шаги процесса */
.process-steps {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.step {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--second-bg);
}

.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--second-bg);
}

/* Боковая панель */
.sticky-card {
  position: sticky;
  top: 100px;
  background: white;
  padding: 40px;
  border-radius: 30px;
  border: 1px solid var(--second-bg);
  box-shadow: 0 20px 40px rgba(74, 63, 53, 0.05);
}

.price-info {
  text-align: center;
  margin-bottom: 30px;
}

.price-info .label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.7;
}

.price-info .value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-color);
}

.price-info .duration {
  color: var(--accent-color);
  font-weight: 600;
}

.cta-hint {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 15px;
  opacity: 0.8;
}

.sidebar-features {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--second-bg);
}

.s-feature {
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.full-width {
  width: 100%;
  display: block;
  text-align: center;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .step {
    flex-direction: column;
  }
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  .service-sidebar {
    order: -1; /* На мобильных кнопка цены будет сверху */
  }
}
.blog-page {
  padding: 60px 0 100px;
  background-color: var(--main-bg);
}

.blog-header {
  text-align: center;
  margin-bottom: 50px;
}

/* Категории */
.blog-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.cat-pill {
  padding: 10px 22px;
  background: white;
  border: 1px solid var(--second-bg);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.cat-pill.active, .cat-pill:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Сетка блога */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.post-card {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--second-bg);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(74, 63, 53, 0.05);
}

.post-card.featured {
  grid-column: span 2;
  flex-direction: row;
  align-items: stretch; /* ИЗМЕНЕНО: stretch вместо center, чтобы блоки были одной высоты */
}

.post-image {
  flex: 1;
  min-width: 0; /* ДОБАВЛЕНО: запрещает флекс-элементу раздуваться от большой картинки */
  min-height: 300px;
  max-height: 400px;
  background: var(--second-bg);
  overflow: hidden; /* ДОБАВЛЕНО: на всякий случай скроет излишки */
}

.post-image img {
  width: 100%;
  height: 100%; /* ИЗМЕНЕНО: 100% вместо auto, чтобы картинка заполняла min/max-height родителя */
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

.post-content {
  padding: 40px;
  flex: 1;
  min-width: 0; /* ДОБАВЛЕНО: защищает от переполнения длинным текстом/заголовками */
}

.post-category {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.post-date {
  font-size: 0.85rem;
  opacity: 0.6;
}

.post-card h2, .post-card h3 {
  margin: 15px 0;
}

.post-card h2 a, .post-card h3 a {
  text-decoration: none;
  color: var(--text-color);
}

.post-card p {
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 25px;
}

.post-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--second-bg);
  padding-top: 20px;
}

/* Пагинация */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}

.page-num {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  text-decoration: none;
  color: var(--text-color);
  border: 1px solid var(--second-bg);
}

.page-num.active {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Адаптив */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .post-card.featured {
    flex-direction: column;
  }
}
.post-detail {
  padding: 40px 0 100px;
  background-color: var(--main-bg);
  color: var(--text-color);
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-meta {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-header h1 {
  font-size: 3rem;
  line-height: 1.2;
}

.post-featured-image {
  margin-bottom: 50px;
  height: 400px;
}

.post-featured-image img {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(74, 63, 53, 0.05);
}

/* Контент статьи */
.post-content-body {
  font-size: 1.2rem; /* Увеличенный шрифт для текста */
  line-height: 1.8;
}

.post-content-body ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}
.post-content-body ul li::before {
  content: "•";
  color: var(--accent-color);
  margin-right: 10px;
}

.post-intro {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 40px;
}

.post-content-body h2 {
  margin-top: 50px;
  margin-bottom: 20px;
}

.post-content-body blockquote {
  margin: 40px 0;
  padding: 30px;
  background: white;
  border-left: 5px solid var(--accent-color);
  border-radius: 0 20px 20px 0;
  font-style: italic;
  font-size: 1.3rem;
}

/* Карточка автора */
.post-author-card {
  margin-top: 80px;
  padding: 40px;
  background: white;
  border-radius: 30px;
  display: flex;
  gap: 30px;
  align-items: center;
  border: 1px solid var(--second-bg);
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

.author-info h4 {
  margin-bottom: 10px;
  color: var(--text-color);
}

.author-info p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 15px;
}

/* Блок поделиться */
.post-share {
  margin-top: 40px;
  text-align: center;
  border-top: 1px solid var(--second-bg);
  padding-top: 40px;
}

.share-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.share-btn {
  padding: 10px 20px;
  background: white;
  border: 1px solid var(--second-bg);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.9rem;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--accent-color);
  color: white;
}

/* Адаптив */
@media (max-width: 768px) {
  .post-header h1 {
    font-size: 2.2rem;
  }
  .post-author-card {
    flex-direction: column;
    text-align: center;
  }
}
.home-blog {
  padding: 100px 0;
  background-color: var(--main-bg);
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.btn-outline-small {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  padding-bottom: 5px;
}

.btn-outline-small:hover {
  border-color: var(--accent-color);
}

/* Сетка статей */
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.home-post-card {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--second-bg);
  transition: var(--transition);
}

.home-post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(74, 63, 53, 0.05);
}

.home-post-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.home-post-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.5s ease;
}

.home-post-card:hover .home-post-image img {
  transform: scale(1.1);
}

.post-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
}

.home-post-content {
  padding: 30px;
}

.home-post-content h3 {
  font-size: 1.3rem;
  margin: 15px 0;
}

.home-post-content h3 a {
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

.home-post-content h3 a:hover {
  color: var(--accent-color);
}

.home-post-content p {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* Адаптив */
@media (max-width: 992px) {
  .home-blog-grid {
    grid-template-columns: 1fr;
  }
  .section-header-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
}
.error-page {
  padding: 100px 0;
  background-color: var(--main-bg);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.error-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.error-content {
  flex: 1;
}

.error-code {
  display: block;
  font-size: 8rem;
  font-weight: 800;
  color: var(--second-bg); /* Мягкий бежевый для кода ошибки */
  line-height: 1;
  margin-bottom: 20px;
}

.error-content h1 {
  font-size: 3rem;
  margin-bottom: 25px;
  color: var(--text-color);
}

.error-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
  opacity: 0.8;
}

.error-actions {
  display: flex;
  gap: 20px;
}

/* Декоративная часть */
.error-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
}

.abstract-shape {
  width: 350px;
  height: 350px;
  background-color: var(--second-bg);
  border-radius: 60% 40% 70% 30%/40% 50% 60% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: morph 8s ease-in-out infinite;
  overflow: visible; /* Чтобы человечек мог немного выходить за края если надо */
}

.big-emoji {
  /* Используем единицы vw или фиксированные px для точности */
  font-size: 160px !important; /* Устанавливаем четкий размер в пикселях */
  line-height: 1 !important;
  display: block !important;
  text-align: center;
  filter: drop-shadow(0 10px 20px rgba(74, 63, 53, 0.1));
}

/* На мобильных чуть уменьшим, чтобы влез в экран */
@media (max-width: 480px) {
  .abstract-shape {
    width: 250px;
    height: 250px;
  }
  .big-emoji {
    font-size: 100px !important;
  }
}
@keyframes morph {
  0% {
    border-radius: 60% 40% 70% 30%/40% 50% 60% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 70% 30%/40% 50% 60% 40%;
  }
}
/* Адаптив */
@media (max-width: 768px) {
  .error-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .error-actions {
    justify-content: center;
    flex-direction: column;
  }
  .error-code {
    font-size: 5rem;
  }
}
.server-error .error-code {
  color: var(--accent-color); /* Сделаем 500 цветом акцента */
  opacity: 0.3;
}

.tech-error {
  background-color: var(--second-bg);
  /* Другая анимация для 500 ошибки — более медленная и плавная */
  animation: pulse-slow 10s ease-in-out infinite;
}

.urgent-contact {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--second-bg);
}

.urgent-contact p {
  font-size: 0.9rem !important;
  margin-bottom: 10px !important;
}

.tg-urgent {
  color: var(--accent-color);
  font-weight: 700;
  text-decoration: underline;
}

@keyframes pulse-slow {
  0%, 100% {
    transform: scale(1);
    border-radius: 60% 40% 70% 30%;
  }
  50% {
    transform: scale(1.05);
    border-radius: 40% 60% 30% 70%;
  }
}
/* Огромная иконка для 500 ошибки */
.server-error .big-emoji {
  font-size: 150px !important;
  line-height: 1 !important;
}

.cabinet-page {
  padding: 40px 0 100px;
  background-color: var(--main-bg);
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* Карточка профиля */
.profile-card {
  background: white;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--second-bg);
  text-align: center;
  position: sticky;
  top: 100px;
}

.profile-avatar {
  font-size: 4rem;
  margin-bottom: 15px;
}

.client-status {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.profile-stats {
  text-align: left;
  margin: 20px 0;
  font-size: 0.95rem;
}

.btn-logout {
  font-size: 0.8rem;
  color: #e74c3c;
  text-decoration: underline;
}

/* Список сессий */
.session-item {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--second-bg);
  margin-bottom: 15px;
  overflow: hidden;
}

.session-toggle {
  width: 100%;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.session-toggle:hover {
  background-color: var(--second-bg);
}

.session-main-info {
  display: flex;
  align-items: center;
  gap: 30px;
}

.session-date {
  font-weight: 700;
  color: var(--text-color);
}

.session-code {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-family: monospace;
}

/* Раскрывающийся блок */
.session-details {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.session-item.active .session-details {
  max-height: 1000px; /* Достаточно для контента */
  border-top: 1px solid var(--second-bg);
}

.details-content {
  padding: 30px;
}

.detail-section {
  margin-bottom: 25px;
}

.detail-section h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--accent-color);
}

.highlight-box {
  background-color: var(--main-bg);
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid var(--accent-color);
}

.session-footer-info {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px dashed var(--second-bg);
  font-size: 0.9rem;
}

.receipt-link {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Адаптив */
@media (max-width: 992px) {
  .cabinet-grid {
    grid-template-columns: 1fr;
  }
  .cabinet-sidebar {
    order: -1;
  }
}
.upcoming-sessions {
  margin-bottom: 50px;
}

.section-title-small {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--text-color);
}

.upcoming-card {
  background: white;
  border: 2px solid var(--accent-color); /* Выделяем рамкой */
  border-radius: 30px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}
.upcoming-card:last-child {
  margin-bottom: 0;
}

.upcoming-info {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Красивая плашка с датой */
.date-badge {
  background-color: var(--main-bg);
  border: 1px solid var(--second-bg);
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.date-badge .day {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
}

.date-badge .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.7;
}

.time-details h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.time-details p {
  font-weight: 500;
  margin-bottom: 5px;
}

.upcoming-actions {
  text-align: right;
}

.reschedule-text {
  font-size: 0.8rem;
  margin-top: 10px;
  opacity: 0.6;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--second-bg);
  margin: 40px 0;
}

/* Мобильная версия для будущих сессий */
@media (max-width: 768px) {
  .upcoming-card {
    flex-direction: column;
    text-align: center;
  }
  .upcoming-info {
    flex-direction: column;
  }
  .upcoming-actions {
    text-align: center;
    width: 100%;
  }
  .upcoming-actions .btn-main {
    width: 100%;
  }
  .session-main-info {
    flex-wrap: wrap;
  }
}
/* Затемнение фона */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 63, 53, 0.6); /* Ваш --text-color с прозрачностью */
  display: none; /* Скрыто по умолчанию */
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px); /* Легкое размытие заднего плана */
}

/* Само окно */
.modal-content {
  background-color: var(--main-bg);
  width: 100%;
  max-width: 500px;
  padding: 50px;
  border-radius: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Кнопка закрытия */
.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 35px;
  color: var(--text-color);
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
}

.modal-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.modal-promo {
  margin-top: 15px;
  background: var(--second-bg);
  padding: 8px 15px;
  border-radius: 50px;
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Адаптив */
@media (max-width: 550px) {
  .modal-content {
    width: 95%;
    padding: 30px 20px;
  }
}
/* Стили для полей ввода в модальном окне */
.modal-form .form-group {
  margin-bottom: 20px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--second-bg); /* Ваш бежевый цвет #EAD7BB */
  border-radius: 15px;
  background-color: white;
  color: var(--text-color);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none; /* Убираем стандартные стили Safari */
}

/* Эффект при клике на поле */
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: var(--accent-color); /* Коричневый акцент #BC8E5E */
  box-shadow: 0 0 0 4px rgba(188, 142, 94, 0.1); /* Мягкое свечение */
  background-color: #fff;
}

/* Стиль для выпадающего списка */
.modal-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://w3.org' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A3F35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
  padding-right: 45px;
}

/* Стили плейсхолдеров (подсказок внутри) */
.modal-form input::-moz-placeholder {
  color: var(--text-color);
  opacity: 0.5;
}
.modal-form input::placeholder {
  color: var(--text-color);
  opacity: 0.5;
}

/* Кнопка в модалке (на всякий случай, если не подтянулась общая) */
.modal-form .btn-submit {
  width: 100%;
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 18px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.modal-form .btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(188, 142, 94, 0.2);
}

.ethics-section {
  padding: 100px 0;
  background-color: white; /* Выделяем светлым фоном на фоне бежевого сайта */
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: -20px auto 50px;
  opacity: 0.7;
  font-size: 1.1rem;
}

.ethics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.ethics-item {
  background-color: var(--main-bg); /* Нежно-бежевый фон карточек */
  padding: 40px 30px;
  border-radius: 30px;
  border: 1px solid var(--second-bg);
  transition: var(--transition);
}

.ethics-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(188, 142, 94, 0.1);
}

.ethics-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.ethics-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.ethics-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
  .ethics-grid {
    grid-template-columns: 1fr;
  }
}
/* Карточка документа в кабинете */
.document-card {
  background: white;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--second-bg);
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 40px;
}

.document-card.alert-card {
  border-left: 6px solid var(--accent-color);
}

.doc-icon {
  font-size: 2.5rem;
}

.doc-info h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.doc-info p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 15px;
}

/* Стили модального окна контракта */
.wide-modal {
  max-width: 800px;
}

.contract-text-container {
  height: 400px;
  overflow-y: scroll; /* Прокрутка для длинного текста */
  background: var(--main-bg);
  padding: 30px;
  border-radius: 20px;
  margin: 20px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid var(--second-bg);
}

.contract-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding-top: 10px;
}

.profile-docs {
  text-align: left;
  margin: 20px 0;
}

.profile-docs h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  margin-bottom: 15px;
}

.doc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.doc-list a:hover {
  color: var(--accent-color);
}

.doc-link-icon {
  font-size: 1.1rem;
}

.doc-signed-date {
  display: block;
  font-size: 0.75rem;
  opacity: 0.5;
  margin-left: 28px; /* Выравнивание под текстом ссылки */
  margin-top: 2px;
}

.methods-page {
  padding: 60px 0 100px;
  background-color: var(--main-bg);
}

.methods-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

/* Сетка методов */
.method-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.method-item.inverted {
  direction: ltr; /* Гарантируем порядок на мобилках */
}

.method-tag {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.method-info h2 {
  margin: 15px 0 25px;
}

.method-benefits {
  margin-top: 30px;
  padding: 25px;
  background: white;
  border-radius: 25px;
  border: 1px solid var(--second-bg);
}

.method-benefits h4 {
  margin-bottom: 15px;
  font-size: 1rem;
}

.method-benefits ul {
  list-style: none;
}

.method-benefits li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.method-benefits li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* Визуальные фигуры */
.method-shape {
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  background: var(--second-bg);
  border-radius: 40% 60% 70% 30%/40% 50% 60% 40%;
  margin: 0 auto;
}

.shape-1 {
  border-radius: 30% 70% 70% 30%/30% 30% 70% 70%;
}

.shape-2 {
  border-radius: 70% 30% 30% 70%/60% 40% 60% 40%;
}

.shape-3 {
  border-radius: 50% 50% 20% 80%/25% 80% 20% 75%;
}

/* Футер страницы */
.methods-footer {
  text-align: center;
  padding: 80px 40px;
  background: white;
  border-radius: 40px;
  border: 1px solid var(--second-bg);
}

.methods-footer h2 {
  margin-bottom: 20px;
}

.methods-footer p {
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Адаптив */
@media (max-width: 992px) {
  .method-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .method-item.inverted {
    display: flex;
    flex-direction: column-reverse;
  }
}
/* Общий контейнер для страниц авторизации */
.login_page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 40px 20px;
  background-color: var(--main-bg);
}

.login-card {
  background: #ffffff;
  border: 1px solid var(--second-bg);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(74, 63, 53, 0.05);
  box-sizing: border-box;
}

.login-header h2 {
  margin: 0 0 10px 0;
  font-size: 26px;
  text-align: center;
  color: var(--text-color);
}

.login-header p {
  margin: 0 0 30px 0;
  font-size: 14px;
  text-align: center;
  color: #7A6E63;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* Оформление полей ввода */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--second-bg);
  border-radius: 6px;
  background-color: var(--main-bg);
  color: var(--text-color);
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.error-block {
  background-color: #FDF2F2;
  border: 1px solid #F8B4B4;
  color: #9B1C1C;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.btn-submit {
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #A37548;
}

.forgot-link, .back-link {
  color: var(--accent-color);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-link:hover, .back-link:hover {
  text-decoration: underline;
  color: var(--text-color);
}

.back-link-center {
  display: block;
  text-align: center;
  margin-top: 25px;
}

/* Иконки для статусных страниц */
.status-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
}

.status-icon.success {
  background-color: #F1F9F1;
  border: 1px solid #DEF0DE;
}

.status-icon.success svg {
  width: 30px;
  height: 30px;
  stroke: #2E7D32;
}

.status-icon.info {
  background-color: #FFFDF9;
  border: 1px solid var(--second-bg);
}

.status-icon.info svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent-color);
  fill: none;
}/*# sourceMappingURL=style.css.map */
/* Local editorial preview and legal draft notices. */
.preview-note { padding: 18px 24px; margin: 24px auto; background: #f5eee2; border-left: 4px solid #a88162; border-radius: 10px; line-height: 1.65; }
.privacy-policy .narrow { max-width: 1000px; }
.privacy-policy h2 { margin-top: 32px; }
.privacy-policy p { margin-bottom: 16px; line-height: 1.75; }
.post-card .post-image img { width: 100%; object-fit: cover; }
