/* ============================================================
   Very-good — bitrix.very-good.ru
   Стили новых блоков конверсионной версии.
   Токены наследуются из styles.css.
   ============================================================ */

/* --- Шапка: компактная CTA-кнопка --- */
.button--header {
  min-height: 44px;
  padding: 0 20px;
  gap: 12px;
  font-size: 13px;
}

/* --- Стрип доверия (цифры) --- */
.trust-strip {
  color: var(--white);
  background: var(--violet);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  min-height: 150px;
  padding: 32px 28px;
  border-left: 1px solid rgba(255, 255, 255, .24);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.trust-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, .24);
}
.trust-item b {
  color: var(--lime);
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 700;
}
.trust-item span {
  max-width: 230px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .78);
}

/* --- Блок «Узнаёте себя?» --- */
.symptoms {
  background: var(--white);
}
.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.symptom-card {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.symptom-card:hover {
  z-index: 2;
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(17, 21, 45, .14);
}
.symptom-num {
  font-size: 12px;
  font-weight: 650;
  color: rgba(17, 21, 45, .44);
}
.symptom-card h3 {
  margin: 26px 0 14px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.symptom-card > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(17, 21, 45, .62);
}
.symptom-foot {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.symptom-service {
  font-size: 13px;
  color: rgba(17, 21, 45, .5);
}
.symptom-service strong {
  color: var(--ink);
  font-weight: 650;
}
.symptom-link {
  width: max-content;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 4px;
  background: transparent;
  color: var(--violet);
  font-weight: 650;
  cursor: pointer;
  transition: color .25s;
}
.symptom-link:hover {
  color: var(--violet-deep);
}

/* --- Hero: фоновая картинка --- */
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Задачи и цены: группы и карточки --- */
.service-group {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(17, 21, 45, .5);
}
.services-grid + .service-group {
  margin-top: 56px;
}
.service-term {
  font-size: 12px;
  color: rgba(17, 21, 45, .44);
}
.service-card--violet .service-term,
.service-card--dark .service-term {
  color: rgba(255, 255, 255, .55);
}
.service-card h3 {
  margin: 22px 0 18px;
}
.service-includes {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.service-includes li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(17, 21, 45, .68);
}
.service-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}
.service-card--violet .service-includes li,
.service-card--dark .service-includes li {
  color: rgba(255, 255, 255, .7);
}
.service-card--lime .service-includes li::before {
  background: var(--ink);
}
.service-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.service-price {
  font-size: 13px;
  color: rgba(17, 21, 45, .5);
}
.service-price strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: var(--ink);
}
.service-card--violet .service-price,
.service-card--dark .service-price {
  color: rgba(255, 255, 255, .55);
}
.service-card--violet .service-price strong,
.service-card--dark .service-price strong {
  color: var(--white);
}

/* --- Процесс: метка времени --- */
.process-time {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
}

/* --- Кейсы --- */
.cases {
  background: var(--paper);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.case-metric {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--violet);
}
.case-block b {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(17, 21, 45, .44);
}
.case-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(17, 21, 45, .72);
}

/* --- Отзывы --- */
.reviews {
  background: var(--white);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--paper);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.review-quote {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.review-author {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.review-author strong {
  font-size: 14px;
}
.review-author span {
  font-size: 12px;
  color: rgba(17, 21, 45, .5);
}

/* --- FAQ --- */
.faq {
  background: var(--paper);
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: var(--violet);
  transition: transform .25s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin: 0;
  padding: 0 0 26px;
  max-width: 860px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(17, 21, 45, .7);
}

/* --- Форма: подпись под кнопкой --- */
.form-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: rgba(17, 21, 45, .5);
}

/* --- Липкая мобильная панель --- */
.mobile-bar {
  display: none;
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1400px) {
  .button--header {
    display: none;
  }
}
@media (max-width: 1240px) {
  .header-actions .messenger {
    display: none;
  }
}
@media (max-width: 1120px) {
  .symptoms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .hero-media img {
    object-position: right center;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-item:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, .24);
  }
  .trust-item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, .24);
    border-right: 1px solid rgba(255, 255, 255, .24);
  }
  .symptoms-grid {
    grid-template-columns: 1fr;
  }
  .cases-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  body {
    padding-bottom: 60px;
  }
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 56px 56px 1fr;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, .08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    color: var(--ink);
    border-right: 1px solid var(--line);
  }
  .mobile-bar__icon svg {
    display: block;
  }
  .mobile-bar__primary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    background: var(--lime);
    text-align: center;
  }
}

@media (max-width: 560px) {
  .trust-item {
    min-height: 132px;
    padding: 24px 16px;
  }
  .trust-item b {
    font-size: 40px;
  }
  .trust-item span {
    font-size: 14px;
  }
  .symptom-card {
    min-height: 0;
    padding: 26px 22px;
  }
}

/* ============================================================
   Полноэкранное мобильное меню
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 32px;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.mobile-menu .brand span {
  display: grid;
}
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: border-color .25s;
}
.mobile-menu__close:hover {
  border-color: var(--lime);
}
.mobile-menu__nav {
  margin-top: 48px;
  display: grid;
}
.mobile-menu__nav a {
  padding: 14px 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.mobile-menu__nav a:last-child {
  border-bottom: 0;
}
.mobile-menu__nav a:hover,
.mobile-menu__nav a:active {
  color: var(--lime);
}
.mobile-menu__footer {
  margin-top: auto;
  padding-top: 40px;
  display: grid;
  gap: 14px;
}
.mobile-menu__phone {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--white);
}
.mobile-menu__email {
  font-size: 16px;
  color: rgba(255, 255, 255, .7);
}
.mobile-menu__social {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-menu__social .messenger {
  width: 46px;
  height: 46px;
}
body.menu-open {
  overflow: hidden;
}

@media (min-width: 1121px) {
  .mobile-menu {
    display: none;
  }
}

/* --- Подвал: контакты (телефон + e-mail) --- */
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.footer-contacts a {
  font-size: 13px;
  color: rgba(255, 255, 255, .56);
  transition: color .25s;
}
.footer-contacts a:hover {
  color: var(--lime);
}
