html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body > *:not(.footer) {
  flex-shrink: 0;

}

main {
  flex: 1 0 auto;
}


/* ============================= */
/* HERO SECTION */
/* ============================= */
.hero {
  position: relative;
  background: linear-gradient(135deg, #e8edf6 0%, #cfd9e9 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  box-shadow:
    inset 6px 6px 14px rgba(0,0,0,0.05),
    inset -6px -6px 14px rgba(255,255,255,0.8);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 80px 20px;
}

.hero__content {
  flex: 1;
  max-width: 540px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.hero__title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 420px;
}

.hero__note {
  font-size: 1.05rem;
  color: rgba(15, 23, 42, 0.8);
  margin-top: 16px;
  font-style: italic;
  line-height: 1.5;
}

/* Фото */
.hero__image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero__image img {
  width: 400px;
  height: auto;
  border-radius: 50% 45% 55% 50% / 60% 40% 60% 50%;
  box-shadow:
    20px 20px 50px rgba(0,0,0,0.12),
    -10px -10px 30px rgba(255,255,255,0.8),
    inset 2px 2px 4px rgba(255,255,255,0.3);
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.hero__image img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Адаптив */
@media (max-width: 920px) {
  .hero__inner {
    flex-direction: column-reverse;
    gap: 40px;
    text-align: center;
  }
  .hero__image img {
    width: 280px;
  }
}



/* ===== ОБО МНЕ ===== */
.about-section {
  background: linear-gradient(145deg, #f9f9fb, #f3f4f6);
  color: #333;
  padding: 120px 20px;
  position: relative;
  overflow: hidden;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fafafa;
  border-radius: 30px;
  box-shadow:
    10px 10px 20px rgba(0, 0, 0, 0.05),
    -10px -10px 20px rgba(255, 255, 255, 0.9);
  padding: 60px 50px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-container:hover {
  transform: translateY(-6px);
  box-shadow:
    14px 14px 28px rgba(0, 0, 0, 0.08),
    -10px -10px 24px rgba(255, 255, 255, 0.9);
}

.about-title {
  font-size: 2.4rem;
  margin-bottom: 30px;
  color: #1e2a5e;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4b4b4b;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.about-text:hover {
  transform: translateY(-2px);
}

.about-text strong {
  color: #2a4fb1;
  font-weight: 600;
}

.about-text.emphasis {
  margin-top: 40px;
  font-size: 1.1rem;
  color: #2a4fb1;
}

.about-link {
  color: #fff;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  padding: 10px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(59,130,246,0.25);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.about-link:hover {
  box-shadow: 0 10px 24px rgba(59,130,246,0.35);
  transform: translateY(-2px);
}


/* сертификат */
#certificates {
  padding: 40px 20px;
  text-align: center;
  
}

.certificates-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  justify-items: center;
}

.certificate-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.thumbnail {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.cert-title {
  font-size: 0.85rem;
  margin-top: 6px;
  color: #333;
  text-align: center;
}

.certificates-list {

  text-align: left; /* выравнивание списка по левому краю */

}
.thumbnail {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail:hover {
  transform: scale(1.15) translateY(-2px); /* лёгкое увеличение и движение */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* мягкая тень при наведении */
}

/* Модалка */
#modal {
  position: fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  background-color: rgba(0,0,0,0.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

#modal.show {
  display:flex;
}

#modal .modal-content {
  max-width:90vw;
  max-height:90vh;
  border-radius:10px;
  object-fit:contain;
}

#modal .close, #modal .nav {
  color:white;
  background:rgba(0,0,0,0.3);
  border:none;
  cursor:pointer;
  padding:8px 12px;
  border-radius:50%;
  font-size:24px;
}

#modal .close { position:absolute; top:20px; right:20px; }
#modal .prev { position:absolute; left:20px; top:50%; transform:translateY(-50%);}
#modal .next { position:absolute; right:20px; top:50%; transform:translateY(-50%);}


.logo {
  max-height: 60px;   /* подбираешь под высоту меню */
  height: auto;       /* сохраняет пропорции */
  width: auto;        /* ширина подстраивается */
  display: block;
}


/* ===== FAQ SECTION ===== */
.faq-section {
  background: #e6e8ee;
  padding: 60px 20px;
  text-align: center;
  box-shadow: inset 4px 4px 8px #c9ccd2, inset -4px -4px 8px #ffffff;
  
}

.faq-section .section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2b2f3a;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
  
}

/* .faq-list { */
  /* max-width: 800px; */
  /* margin: 0 auto; */
  /* display: flex; */
  /* flex-direction: column; */
  /* gap: 18px; */
   /* margin-bottom: 40px; */
/* } */

.faq-item {
  background: #e6e8ee;
  border-radius: 16px;
  box-shadow: 6px 6px 12px #c8cbd1, -6px -6px 12px #ffffff;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  overflow: hidden;
   margin-bottom: 10px;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 16px #c8cbd1, -8px -8px 16px #ffffff;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #1d2a57;
  cursor: pointer;
  outline: none;
  transition: color 0.3s;
  
}

.faq-question:hover {
  color: #0047ff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  background: #f5f6fa;
  border-top: 1px solid #d4d7de;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 18px 24px 24px;
}

.faq-answer p {
  margin: 0;
  text-align: left;
}

@media (max-width: 600px) {
  .faq-question {
    font-size: 0.95rem;
    padding: 16px 18px;
  }
  .faq-answer {
    font-size: 0.9rem;
  }
}


/* ===== Секция записи на консультацию ===== */
.booking-section {
  background: linear-gradient(145deg, #f9f9fb, #f3f4f6); /* мягкий молочный фон */
  padding: 100px 20px;
  text-align: center;
  /* border-radius: 50px 50px 0 0; */
  box-shadow: inset 8px 8px 16px rgba(0,0,0,0.03), inset -8px -8px 16px rgba(255,255,255,0.9);
   width: 100vw;          /* занимает всю ширину окна */
  margin-left: calc(50% - 50vw); /* убирает боковые отступы контейнера */
}

.booking-section .section-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: #1e2a5e;
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.booking-section .section-subtitle {
  color: #4b4b4b;
  font-size: 1.1rem;
  margin-bottom: 60px;
}

.steps {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
  position: relative;
}

.step-item {
  background: #fafafa;
  border-radius: 28px;
  padding: 40px 30px;
  width: 280px;
  box-shadow: 6px 6px 12px rgba(0,0,0,0.08), -6px -6px 12px rgba(255,255,255,0.9);
  transition: all 0.3s ease;
}

.step-item:hover {
  transform: translateY(-5px);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.1), -4px -4px 12px rgba(255,255,255,0.9);
}

.step-icon {
  font-size: 2.6rem;
  margin-bottom: 15px;
}

.step-item h3 {
  font-size: 1.2rem;
  color: #2b3a55;
  margin-bottom: 10px;
}

.step-item p {
  font-size: 0.95rem;
  color: #4a5a75;
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 3px 3px 6px rgba(0,0,0,0.07), -3px -3px 6px rgba(255,255,255,0.9);
  color: #1e2a5e;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-link:hover {
  background: #f1f3f8;
  transform: scale(1.05);
  box-shadow: 2px 2px 8px rgba(0,0,0,0.08), -2px -2px 8px rgba(255,255,255,0.9);
}

/* ===== Анимация стрелок ===== */
.arrow {
  font-size: 2rem;
  color: #7b8aa2;
  align-self: center;
  animation: arrowMove 1.5s ease-in-out infinite;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
}

@keyframes arrowMove {
  0%, 100% { transform: translateX(0); opacity: 0.8; }
  50% { transform: translateX(6px); opacity: 1; }
}

/* Мобильная адаптация */
@media (max-width: 900px) {
  .steps {
    flex-direction: column;
    align-items: center;
  }

  .arrow {
    transform: rotate(90deg);
    animation: arrowMoveY 1.5s ease-in-out infinite;
  }

  @keyframes arrowMoveY {
    0%, 100% { transform: translateY(0) rotate(90deg); opacity: 0.8; }
    50% { transform: translateY(6px) rotate(90deg); opacity: 1; }
  }

  .step-item {
    width: 100%;
    max-width: 360px;
  }
}

.footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(135deg, #e8edf6 0%, #cfd9e9 100%);
  padding: 80px 20px 40px;
  box-shadow:
    inset 6px 6px 12px rgba(0, 0, 0, 0.05),
    inset -6px -6px 12px rgba(255, 255, 255, 0.8);
  text-align: center;
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  flex-shrink: 0;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  color: #1e2a5e;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}


.footer h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer p {
  font-size: 1rem;
  margin: 8px 0;
  color: #2b3a55;
}

.footer a {
  color: #0047ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer a:hover {
  color: #1d2a57;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

.footer .copyright {
  font-size: 0.9rem;
  color: #556176;
  margin-top: 16px;
  opacity: 0.8;
}

/* адаптив */
@media (max-width: 600px) {
  .footer h3 {
    font-size: 1.4rem;
  }
  .footer p {
    font-size: 0.9rem;
  }
}



/* ========= ONLINE THERAPY (LIGHT NEUMORPHISM) ========= */

.online-therapy-light {
  background: #f3f4f6;
  padding: 120px 0;
}

.nm-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Заголовки */
.nm-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: #1e2a5e;
  margin-bottom: 20px;
  text-shadow: 0 2px 3px rgba(255,255,255,0.8);
}

.nm-subtitle {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 60px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #4b4b4b;
}

/* Cards */
.nm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.nm-card {
  background: #e8edf6;
  padding: 32px;
  border-radius: 26px;

  /* Нейроморфизм */
  box-shadow:
    10px 10px 20px rgba(0,0,0,0.08),
    -10px -10px 20px rgba(255,255,255,0.8);
  transition: 0.35s ease;
}

.nm-card:hover {
  transform: translateY(-4px);
  box-shadow:
    12px 12px 26px rgba(0,0,0,0.1),
    -10px -10px 22px rgba(255,255,255,0.85);
}

.nm-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e2a5e;
  margin-bottom: 10px;
}

.nm-card-text {
  color: #4b4b4b;
  line-height: 1.6;
}

/* кнопка в карточках доказательства онлайн терапии */
.nm-card {
  display: flex;
  flex-direction: column;
  background: #e8edf6;
  padding: 32px;
  border-radius: 26px;
  box-shadow:
    10px 10px 20px rgba(0,0,0,0.08),
    -10px -10px 20px rgba(255,255,255,0.8);
  transition: transform 0.35s, box-shadow 0.35s;
}

.nm-card:hover {
  transform: translateY(-4px);
  box-shadow:
    12px 12px 26px rgba(0,0,0,0.1),
    -10px -10px 22px rgba(255,255,255,0.85);
}

.nm-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e2a5e;
  margin-bottom: 10px;
}

.nm-card-text {
  color: #4b4b4b;
  line-height: 1.6;
  flex-grow: 1;
}

.nm-link-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(145deg, #e8edf6, #cfd9e9);
  color: #1e2a5e;
  font-weight: 600;
  text-decoration: none;
  border-radius: 24px;
  box-shadow:
    4px 4px 8px rgba(0,0,0,0.1),
    -4px -4px 8px rgba(255,255,255,0.8);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nm-link-button:hover {
  transform: translateY(-2px);
  box-shadow:
    6px 6px 12px rgba(0,0,0,0.12),
    -6px -6px 12px rgba(255,255,255,0.85);
}

.nm-cta {
  background: #e8edf6;                 /* мягкий светлый фон под неоморфизм */
  padding: 40px 30px;
  border-radius: 26px;

  box-shadow:
    6px 6px 18px rgba(0,0,0,0.12),
    -6px -6px 18px rgba(255,255,255,0.9);

  max-width: 1100px;                   /* почти на всю ширину сайта */
  margin: 50px auto 0 auto;            /* центрируем + верхний отступ */
    margin-bottom: 60px;    
}

.nm-cta .nm-card-text {
  font-size: 20px;
  line-height: 1.6;
  color: #333;
  text-align: center;
  max-width: 960px;                    /* ширина текста внутри */
  margin: 0 auto;
}
/* карточка сверху мета */
.nm-card-meta {
  font-size: 15px;
  font-weight: 600;
  color: #2c2c2c;
  margin-top: 10px;

  border-left: 3px solid #d0d0d0;
  padding-left: 10px;
}

/* Автобиография */
.bio-line {
  width: 100vw;         /* делаем во всю ширину ВИДИМОЙ области */
  margin-left: 50%;     /* компенсируем ограничивающий родитель */
  transform: translateX(-50%);
  padding: 70px 0;
  background: #f7f9fc;
  box-shadow: inset 6px 6px 14px rgba(0,0,0,0.06), inset -6px -6px 14px rgba(255,255,255,0.9);
  border-radius: 0;     /* если хочешь прям настоящую полосу */
}



.bio-line-container {
max-width: 1100px;
margin: 0 auto;
display: flex;
flex-direction: row; /* фото слева, текст справа */
gap: 50px;
align-items: center;
padding: 40px 45px;
background: #f8fafc;
border-radius: 26px;
box-shadow: 12px 12px 24px rgba(0,0,0,0.05), -12px -12px 24px rgba(255,255,255,1);
}

.bio-line-photo-wrapper {
  background: linear-gradient(145deg, #e7ecf3, #ffffff);
  padding: 12px; /* уменьшил с 22px до 12px */
  border-radius: 32px;
  box-shadow: 8px 8px 16px rgba(0,0,0,0.08), -7px -7px 16px rgba(255,255,255,0.95); /* уменьшил тень */
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-line-photo {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.12), -3px -3px 10px rgba(255,255,255,1); /* уменьшил тень */
}



.bio-line-text h2 {
font-size: 34px;
margin-bottom: 15px;
color: #1e2a5e;
}


.bio-line-text p {
font-size: 18px;
line-height: 1.55;
margin-bottom: 18px;
color: #333;
}


.emphasis {
background: rgba(46,75,162,0.05);
padding: 10px 14px;
border-radius: 12px;
}


@media (max-width: 860px) {
.bio-line-container {
flex-direction: column;
text-align: center;
}


.bio-line-photo {
width: 260px;
height: 260px;
}
}



/* Сетка карточек */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
    list-style: none; /* убирает стандартные буллеты */
}

/* Карточки сервиса */
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #e8edf6;
  border-radius: 26px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow:
    10px 10px 20px rgba(0,0,0,0.08),
    -10px -10px 20px rgba(255,255,255,0.8);
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow:
    12px 12px 26px rgba(0,0,0,0.1),
    -10px -10px 22px rgba(255,255,255,0.85);
}

/* Иконки */
.service-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
  transition: transform 0.35s ease;
}

.service-item:hover .service-icon {
  transform: scale(1.1);
}

/* Заголовок карточки */
.nm-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e2a5e;
  margin-bottom: 10px;
}

/* Текст карточки */
.nm-card-text {
  color: #4b4b4b;
  line-height: 1.5;
}

/* Превью блока */
.service-preview {
  margin-top: 50px;
  background: linear-gradient(145deg, #f3f4f6, #e8edf6);
  border-radius: 26px;
  padding: 24px;
  box-shadow:
    8px 8px 16px rgba(0,0,0,0.06),
    -8px -8px 16px rgba(255,255,255,0.9);
}

#preview-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e2a5e;
  margin-bottom: 12px;
}

.preview-text {
  color: #4b4b4b;
  line-height: 1.6;
  font-size: 1rem;
}

/* Адаптив */
@media(max-width:900px){
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-item {
    width: 100%;
  }
}

/* контакты */
/* --- Контейнер всей секции контактов --- */
#contact {
  padding: 70px 20px;
  max-width: 950px;
  margin: 0 auto;
}

#contact .section-container2 {
  background: #f3f6ff;
  border-radius: 25px;
  padding: 40px 35px;
  box-shadow:
    10px 10px 28px rgba(0,0,0,0.12),
    -10px -10px 28px rgba(255,255,255,0.7);
}

/* --- Заголовок блока --- */
#contact h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1f2c5e;
  text-align: center;
  margin-bottom: 25px;
  text-shadow:
    1px 1px 3px rgba(255,255,255,0.8),
    -1px -1px 3px rgba(0,0,0,0.05);
}

/* --- Параграфы блока --- */
#contact p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #2a335e;
  margin-bottom: 18px;
  opacity: 0.9;
}

/* --- Синяя нейроморфная кнопка Telegram --- */
.telegram-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 15px 30px;
  border-radius: 30px;

  background: linear-gradient(135deg, #e7efff, #d3ddff);
  color: #1b2f6c;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;

  box-shadow:
    6px 6px 18px rgba(0,0,0,0.14),
    -6px -6px 18px rgba(255,255,255,0.9),
    inset 0 0 0 rgba(255,255,255,0);

  transition: 0.25s ease-in-out;
}

/* Hover — эффект лёгкого подъёма и усиления рельефа */
.telegram-button:hover {
  transform: translateY(-3px);
  box-shadow:
    10px 10px 26px rgba(0,0,0,0.16),
    -8px -8px 22px rgba(255,255,255,0.95);
}

/* --- Красный бейдж уведомлений --- */
.notify-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 22px;
  height: 22px;

  background: #e53935;
  color: #fff;
  font-size: 12px;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 6px;
  border-radius: 50%;

  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
}

/* --- Адаптив под мобильные устройства --- */
@media (max-width: 600px) {
  #contact {
    padding: 50px 15px;
  }

  #contact .section-container2 {
    padding: 30px 22px;
  }

  #contact h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  #contact p {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .telegram-button {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
	  margin: 25px auto 0;
  display: flex;
  }

  .notify-badge {
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    top: -6px;
    right: -6px;
  }
}
.btn-center {
  text-align: center;
  margin-top: 25px;
}

.telegram-float {
  position: fixed;
  bottom: 25px; /* расстояние снизу */
  right: 25px;  /* расстояние справа */
  width: 60px;
  height: 60px;
  /* background: #229ED9; */
   background: transparent;
  box-shadow: none;
  border-radius: 50%;
  /* box-shadow: 0 8px 20px rgba(0,0,0,0.15); */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.telegram-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.telegram-icon {
  width: 55px;
  height: 55px;
}
/* ======================== */
/* Молочная полоса секции */
.section-white {
  width: 100%;
  background: #f7f7f7; /* молочный фон */
  padding: 60px 0;      /* вертикальные отступы */
  display: flex;
  justify-content: center; /* центрируем блок внутри полосы */
}

/* Нейроморфный блок с ценами */
.nm-pricing {
  background: #f8fafc;  /* серый блок внутри белой полосы */
  padding: 50px 20px;
  border-radius: 25px;
  box-shadow: 
    8px 8px 20px rgba(0,0,0,0.07), 
    -8px -8px 20px rgba(255,255,255,0.9);
  max-width: 1000px;
  margin: 0 auto; /* центрирование блока */
  text-align: center;
}

.nm-pricing-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #333;
}

.nm-pricing-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.nm-pricing-card {
  background: #f8fafc;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 
    6px 6px 16px rgba(0,0,0,0.05), 
    -6px -6px 16px rgba(255,255,255,0.85);
  max-width: 280px;
  flex: 1 1 250px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.nm-pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    10px 10px 25px rgba(0,0,0,0.08), 
    -10px -10px 25px rgba(255,255,255,0.95);
}

.nm-pricing-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #222;
}

.nm-pricing-card .price {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #444;
}

.nm-pricing-card p {
  font-size: 16px;
  line-height: 1.5;
  color: #555;
}

.nm-pricing-note {
  margin-top: 40px;
  font-size: 16px;
  color: #666;
}
/* --- Контейнер всей секции методов --- */
#methods {
  background: linear-gradient(145deg, #f9f9fb, #f3f4f6); /* мягкий молочный фон */
  padding: 100px 20px;
  text-align: center;
  /* border-radius: 50px 50px 0 0; */
  box-shadow: inset 8px 8px 16px rgba(0,0,0,0.03), inset -8px -8px 16px rgba(255,255,255,0.9);
   width: 100vw;          /* занимает всю ширину окна */
  margin-left: calc(50% - 50vw); /* убирает боковые отступы контейнера */
  display: flex;
  justify-content: center;
}

#methods .methods-container {
  max-width: 950px;
  width: 90%;
  background: linear-gradient(145deg, #f9f9fb, #f3f4f6);
  /* background: linear-gradient(145deg, #f2f6ff, #e9f0ff);   */
  border-radius: 25px;
  padding: 50px 35px;
  /* box-shadow: */
    /* 10px 10px 28px rgba(0,0,0,0.12), */
    /* -10px -10px 28px rgba(255,255,255,0.7); */
  text-align: center;
}


/* --- Заголовок блока --- */
#methods h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1f2c5e;
  margin-bottom: 35px;
  text-align: center;
  text-shadow:
    1px 1px 3px rgba(255,255,255,0.8),
    -1px -1px 3px rgba(0,0,0,0.05);
}

/* --- Контейнер карточек методов --- */
.methods-cards {
  display: flex;
  flex-direction: column; /* одна колонка, сплошная полоса */
  gap: 25px;
}

/* --- Карточки методов --- */
.methods-card {
   /* background: linear-gradient(145deg, #f2f6ff, #e9f0ff);   */ 
   background: #e8edf6;
  border-radius: 25px;
  padding: 50px 35px;
  box-shadow:
    10px 10px 28px rgba(0,0,0,0.12),
    -10px -10px 28px rgba(255,255,255,0.7);
  transition: transform 0.3s, box-shadow 0.3s;
}

.methods-card:hover {
  transform: translateY(-5px);
  box-shadow:
    10px 10px 26px rgba(0,0,0,0.16),
    -8px -8px 22px rgba(255,255,255,0.95);
}
.method-text {
  margin-bottom: 30px; /* отступ снизу */
  padding: 18px 22px;  /* внутренний отступ */
  /* background: #f0f4fb; */
  /* border-radius: 16px; */
  font-size: 1.05rem;
  /* color: #1e2a5e; */
  /* box-shadow: */
    /* inset 3px 3px 8px rgba(0,0,0,0.05), */
    /* inset -3px -3px 8px rgba(255,255,255,0.9); */
  line-height: 1.55;
   text-align: justify;
}


.methods-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #1f2c5e;
  text-shadow:
    1px 1px 3px rgba(255,255,255,0.8),
    -1px -1px 3px rgba(0,0,0,0.05);
}

.methods-card p {
  font-size: 1.08rem;
  line-height: 1.6;
  color: #2a335e;
  margin: 0;
  opacity: 0.9;
}

/* --- Кнопка записи --- */
.methods-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #e7efff, #d3ddff);
  color: #1d39c4;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    6px 6px 18px rgba(0,0,0,0.14),
    -6px -6px 18px rgba(255,255,255,0.9);
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.methods-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    10px 10px 26px rgba(0,0,0,0.16),
    -8px -8px 22px rgba(255,255,255,0.95);
}

/* --- Центрирование кнопки --- */
.btn-center {
  text-align: center;
  margin-top: 30px;
}

/* --- Адаптив --- */
@media (max-width: 600px) {
  #methods {
    padding: 50px 15px;
  }

  #methods .methods-container {
    padding: 35px 22px;
  }

  #methods h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

  .methods-card h3 {
    font-size: 1.3rem;
  }

  .methods-card p {
    font-size: 1rem;
  }

  .methods-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }
}


/* FIX: Сертификаты — нормальная сетка на мобильных */
@media (max-width: 480px) {
  .certificates-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .thumbnail {
    width: 100px !important;
    height: 135px !important;
  }
}
@media (max-width: 480px) {
  .about-text {
    text-align: left;
  }
  
  .about-container {
    padding: 30px 20px; /* меньше отступы слева и справа */
  }
}
/* === FIX 2: Кнопка в hero всегда видна === */
@media (max-width: 600px) {
  .hero__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
  }
/* Мобильная адаптация: выравнивание текста по краям */
@media (max-width: 900px) {
   p, h4, h5, h6 {
    text-align: justify !important;
    text-justify: inter-word;
  }

  /* Для карточек и секций с центром */
  .hero__content,
  .about-container,
  .bio-line-text,
  .methods-card,
  .nm-card,
  .service-item,
  .nm-cta,
  .nm-pricing-card,
  .preview-text,
  #contact p {
    text-align: justify !important;
  }
}
@media (max-width: 600px) {
  .certificates {
    padding: 10px 5px;
  }

  .certificates__description {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.4;
  }
}
