/* ============================================================
   Edwin Group — Redesign 2026
   Подключить в layout ПОСЛЕ style.css:
   <link href="{{ asset('css/redesign.css') }}" rel="stylesheet">
   ============================================================ */

/* ── Переменные ── */
:root {
  --eg-purple: #7437BC;
  --eg-purple-dark: #5b17a2;
  --eg-purple-light: #8b3fd6;
  --eg-gradient: linear-gradient(135deg, #8b3fd6, #5b17a2);
  --eg-text: #1a1a1a;
  --eg-muted: #6b6b6b;
  --eg-border: rgba(0,0,0,0.08);
  --eg-radius: 16px;
  --eg-shadow: 0 4px 24px rgba(116,55,188,0.10);
  --transition: 0.35s cubic-bezier(0.23,1,0.32,1);
}

/* ============================================================
   ГЛАВНАЯ — БЛОК 1: HERO (3 вертикальные карточки)
   ============================================================ */
.eg-hero {
  display: flex;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.eg-hero-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex var(--transition);
}

.eg-hero-card:hover {
  flex: 1.5;
}

.eg-hero-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.eg-hero-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), opacity 0.4s ease;
}

.eg-hero-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.eg-hero-card:hover .eg-hero-card__video {
  opacity: 1;
}

.eg-hero-card:hover .eg-hero-card__img {
  opacity: 0;
}

.eg-hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.05) 100%);
  transition: background var(--transition);
}

.eg-hero-card:hover .eg-hero-card__overlay {
  background: linear-gradient(to top, rgba(116,55,188,0.75) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.05) 100%);
}

.eg-hero-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px;
  color: #fff;
}

.eg-hero-card__title {
  font-family: 'Scada', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  transform: translateY(8px);
  transition: transform var(--transition);
}

.eg-hero-card:hover .eg-hero-card__title {
  transform: translateY(0);
}

.eg-hero-card__btn {
  display: inline-block;
  padding: 12px 28px;
  background: #fff;
  color: var(--eg-purple);
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.eg-hero-card:hover .eg-hero-card__btn {
  opacity: 1;
  transform: translateY(0);
}

.eg-hero-card__btn:active {
  transform: scale(0.97);
}

/* ── Mobile hero ── */
@media (max-width: 768px) {
  .eg-hero {
    flex-direction: column;
    height: auto;
    min-height: 100svh;
  }
  .eg-hero-card {
    flex: none;
    height: 33.33svh;
    min-height: 200px;
  }
  .eg-hero-card:hover { flex: none; }
  .eg-hero-card__video { display: none; }
  .eg-hero-card__img { opacity: 1 !important; }
  .eg-hero-card__title { font-size: 22px; }
  .eg-hero-card__btn { opacity: 1; transform: none; }
  .eg-hero-card__body { padding: 24px 20px; }
}

/* ============================================================
   ГЛАВНАЯ — БЛОК 2: ПЛОЩАДКИ (слайдер)
   ============================================================ */
.eg-section {
  padding: 80px 0;
}
.eg-section--grey {
  background: #f8f6fc;
}

.eg-section__head {
  margin-bottom: 48px;
}

.eg-section__title {
  font-family: 'Scada', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--eg-text);
  margin: 0 0 12px;
  line-height: 1.15;
}

.eg-section__sub {
  font-size: 17px;
  color: var(--eg-muted);
  margin: 0;
  max-width: 560px;
}

/* Slider wrapper */
.eg-slider-wrap {
  position: relative;
  overflow: hidden;
}

.eg-slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.23,1,0.32,1);
}

.eg-slider-nav {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.eg-slider-prev,
.eg-slider-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--eg-purple);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.eg-slider-prev:hover,
.eg-slider-next:hover {
  background: var(--eg-purple);
}

.eg-slider-prev:hover svg path,
.eg-slider-next:hover svg path {
  stroke: #fff;
}

.eg-slider-prev svg,
.eg-slider-next svg {
  width: 20px;
  height: 20px;
}

.eg-slider-prev svg path,
.eg-slider-next svg path {
  stroke: var(--eg-purple);
  transition: stroke 0.2s;
}

.eg-slider-prev:active,
.eg-slider-next:active {
  transform: scale(0.96);
}

/* Venue card */
.eg-venue-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  background: #fff;
  border-radius: var(--eg-radius);
  overflow: hidden;
  box-shadow: var(--eg-shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.eg-venue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(116,55,188,0.18);
}

.eg-venue-card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.eg-venue-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1);
}

.eg-venue-card:hover .eg-venue-card__img {
  transform: scale(1.05);
}

.eg-venue-card__body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eg-venue-card__name {
  font-family: 'Scada', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--eg-text);
  margin: 0;
}

.eg-venue-card__price {
  font-size: 14px;
  color: var(--eg-muted);
  margin: 0;
}

.eg-venue-card__price span {
  color: var(--eg-purple);
  font-weight: 700;
}

.eg-venue-card__btn {
  margin-top: auto;
  padding-top: 16px;
  display: inline-block;
  padding: 10px 20px;
  margin-top: 16px;
  border: 1.5px solid var(--eg-purple);
  border-radius: 50px;
  color: var(--eg-purple);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
  text-align: center;
  transition: background var(--transition), color var(--transition);
}

.eg-venue-card__btn:hover {
  background: var(--eg-purple);
  color: #fff;
}

.eg-venue-card__btn:active {
  transform: scale(0.97);
}

@media (max-width: 900px) {
  .eg-venue-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 560px) {
  .eg-venue-card { flex: 0 0 80vw; }
}

/* ============================================================
   ГЛАВНАЯ — БЛОК 3: ВЕДУЩИЕ (квадратные карточки)
   ============================================================ */
.eg-presenter-card {
  flex: 0 0 calc(25% - 18px);
  min-width: 200px;
  border-radius: var(--eg-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.eg-presenter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(116,55,188,0.18);
}

.eg-presenter-card__img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
}

.eg-presenter-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1);
}

.eg-presenter-card:hover .eg-presenter-card__img {
  transform: scale(1.06);
}

.eg-presenter-card__name {
  font-family: 'Scada', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--eg-text);
  padding: 14px 16px 6px;
  margin: 0;
}

.eg-presenter-card__price {
  font-size: 13px;
  color: var(--eg-muted);
  padding: 0 16px 16px;
  margin: 0;
}

@media (max-width: 900px) {
  .eg-presenter-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 560px) {
  .eg-presenter-card { flex: 0 0 72vw; }
}

/* ============================================================
   ГЛАВНАЯ — БЛОК 4: О КОМПАНИИ + СТАТИСТИКА
   ============================================================ */
.eg-about {
  padding: 80px 0;
  background: #fff;
}

.eg-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.eg-about__text-block {}
.eg-about__title {
  font-family: 'Scada', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--eg-text);
  margin: 0 0 20px;
  line-height: 1.15;
}

.eg-about__text {
  font-size: 16px;
  color: var(--eg-muted);
  line-height: 1.7;
  margin: 0 0 32px;
}

.eg-about__more {
  display: inline-block;
  padding: 14px 36px;
  background: var(--eg-gradient);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity var(--transition), transform 0.15s;
}

.eg-about__more:hover { opacity: 0.88; }
.eg-about__more:active { transform: scale(0.97); }

.eg-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.eg-stat-card {
  background: #f8f6fc;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}

.eg-stat-card:first-child {
  grid-column: span 3;
  background: var(--eg-gradient);
  color: #fff;
}

.eg-stat-card__number {
  font-family: 'Scada', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--eg-purple);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.eg-stat-card:first-child .eg-stat-card__number {
  color: #fff;
  font-size: 52px;
}

.eg-stat-card__label {
  font-size: 13px;
  color: var(--eg-muted);
  line-height: 1.4;
}

.eg-stat-card:first-child .eg-stat-card__label {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}

@media (max-width: 900px) {
  .eg-about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .eg-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .eg-stat-card:first-child { grid-column: span 2; }
}

@media (max-width: 480px) {
  .eg-stats-grid { grid-template-columns: 1fr 1fr; }
  .eg-stat-card { padding: 18px 14px; }
  .eg-stat-card__number { font-size: 32px; }
  .eg-stat-card:first-child .eg-stat-card__number { font-size: 38px; }
}

/* ============================================================
   ГЛАВНАЯ — БЛОК 5: ОТЗЫВЫ (горизонтальный слайдер)
   ============================================================ */
.eg-reviews {
  padding: 80px 0;
  background: #f8f6fc;
}

.eg-review-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  background: #fff;
  border-radius: var(--eg-radius);
  padding: 28px;
  box-shadow: 0 2px 16px rgba(116,55,188,0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: box-shadow var(--transition);
}

.eg-review-card:hover {
  box-shadow: 0 6px 32px rgba(116,55,188,0.14);
}

.eg-review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eg-review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--eg-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Scada', sans-serif;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.eg-review-card__name {
  font-family: 'Scada', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--eg-text);
  margin: 0;
}

.eg-review-card__stars {
  display: flex;
  gap: 3px;
  margin: 0;
}

.eg-review-card__star {
  width: 14px;
  height: 14px;
  fill: #f5a623;
}

.eg-review-card__text {
  font-size: 14px;
  color: var(--eg-muted);
  line-height: 1.65;
  margin: 0;
  overflow: hidden;
  max-height: 4.95em; /* ~3 строки */
  transition: max-height 0.4s cubic-bezier(0.23,1,0.32,1);
  position: relative;
}

.eg-review-card__text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(transparent, #fff);
  transition: opacity 0.3s;
}

.eg-review-card.is-expanded .eg-review-card__text {
  max-height: 500px;
}

.eg-review-card.is-expanded .eg-review-card__text::after {
  opacity: 0;
}

.eg-review-card__toggle {
  font-size: 13px;
  color: var(--eg-purple);
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .eg-review-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 560px) {
  .eg-review-card { flex: 0 0 85vw; }
}

/* ============================================================
   КНОПКА "Подробнее" / "Все площадки"
   ============================================================ */
.eg-more-link {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 40px;
  border: 1.5px solid var(--eg-purple);
  border-radius: 50px;
  color: var(--eg-purple);
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.eg-more-link:hover {
  background: var(--eg-purple);
  color: #fff;
}

.eg-more-link:active { transform: scale(0.97); }

/* ============================================================
   БОКОВОЕ МЕНЮ (переделка с чёрного на белый)
   ============================================================ */
.b_right_menu {
  background: #fff !important;
  box-shadow: -4px 0 40px rgba(0,0,0,0.14) !important;
}

.b_right_menu_close {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/24px no-repeat !important;
}

/* Затемнение основного контента при открытом меню */
.b_mobilemenu_open .b_wrapper {
  position: relative;
}
.b_mobilemenu_open .b_wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99;
  pointer-events: none;
}

/* Новая типографика меню */
.eg-right-menu-content {
  padding: 32px 28px 40px;
}

.eg-menu-section-title {
  font-family: 'Scada', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--eg-text);
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.2s;
}

.eg-menu-section-title:hover {
  color: var(--eg-purple);
}

.eg-menu-sub-list {
  list-style: none;
  padding: 0 0 0 16px;
  margin: 0 0 24px;
  border-left: 2px solid #f0eafa;
}

.eg-menu-sub-list li {
  margin: 0;
}

.eg-menu-sub-list a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--eg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.eg-menu-sub-list a:hover {
  color: var(--eg-purple);
}

.eg-menu-link {
  display: block;
  font-family: 'Scada', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--eg-text);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.eg-menu-link:hover {
  color: var(--eg-purple);
}

.eg-menu-socials {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.eg-menu-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--eg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eg-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none;
}

.eg-menu-social-icon:hover {
  border-color: var(--eg-purple);
  color: var(--eg-purple);
  background: #f8f6fc;
}

.eg-menu-cta {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: var(--eg-gradient);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.eg-menu-cta:hover { opacity: 0.88; }
.eg-menu-cta:active { transform: scale(0.98); }

/* Разделитель */
.eg-menu-divider {
  border: none;
  border-top: 1px solid #f0eafa;
  margin: 20px 0;
}

/* ============================================================
   ФУТЕР (переделка)
   ============================================================ */

/* Убираем чёрную плашку соцсетей и кнопку "Заказать" */
.b_follow_us_links {
  display: none !important;
}
.b_order {
  display: none !important;
}

/* Новый блок соцсетей внутри футера */
.eg-footer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 32px 0 20px;
}

.eg-footer-social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.15s;
}

.eg-footer-social:hover {
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.eg-footer-social:active { transform: scale(0.96); }

.eg-footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Убираем колонку "Меню" из футера */
.b_footer_nav ul:nth-child(4) {
  display: none !important;
}

/* ============================================================
   ТАЙМЛАЙН (страница Корпоративы + ДР)
   ============================================================ */
.eg-timeline {
  padding: 80px 0;
  background: #fff;
  overflow: hidden;
}

.eg-timeline__track {
  display: flex;
  gap: 0;
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 40px;
}

.eg-timeline__track::-webkit-scrollbar { display: none; }

.eg-timeline__item {
  flex: 0 0 200px;
  position: relative;
  padding: 0 24px;
  text-align: center;
}

/* Линия соединения */
.eg-timeline__item::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: #e5e0f0;
  z-index: 0;
}
.eg-timeline__item:last-child::before { display: none; }

/* Прогресс-линия при активации */
.eg-timeline__item.is-active::before {
  background: var(--eg-purple);
}

/* Точка */
.eg-timeline__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #e5e0f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  font-family: 'Scada', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #aaa;
  transition: border-color 0.4s, color 0.4s, background 0.4s;
}

.eg-timeline__item.is-active .eg-timeline__dot {
  border-color: var(--eg-purple);
  background: var(--eg-purple);
  color: #fff;
}

.eg-timeline__step-title {
  font-family: 'Scada', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #aaa;
  margin: 0 0 8px;
  transition: color 0.4s;
}

.eg-timeline__item.is-active .eg-timeline__step-title {
  color: var(--eg-text);
}

.eg-timeline__desc {
  font-size: 13px;
  color: var(--eg-muted);
  line-height: 1.5;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}

.eg-timeline__item.is-active .eg-timeline__desc {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   РАСКРЫВАЮЩИЕСЯ КАРТОЧКИ УСЛУГ
   ============================================================ */
.eg-service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.eg-service-card {
  border-radius: var(--eg-radius);
  border: 1.5px solid var(--eg-border);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.eg-service-card:hover {
  border-color: rgba(116,55,188,0.25);
  box-shadow: var(--eg-shadow);
}

.eg-service-card__head {
  padding: 28px 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.eg-service-card__title {
  font-family: 'Scada', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--eg-text);
  margin: 0 0 8px;
}

.eg-service-card__price {
  font-size: 14px;
  color: var(--eg-muted);
  margin: 0;
}

.eg-service-card__price strong {
  color: var(--eg-purple);
  font-size: 18px;
}

.eg-service-card__chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--eg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.35s;
}

.eg-service-card.is-open .eg-service-card__chevron {
  background: var(--eg-purple);
  border-color: var(--eg-purple);
  transform: rotate(180deg);
}

.eg-service-card__chevron svg {
  width: 16px;
  height: 16px;
}

.eg-service-card__chevron svg path {
  stroke: var(--eg-muted);
  transition: stroke 0.25s;
}

.eg-service-card.is-open .eg-service-card__chevron svg path {
  stroke: #fff;
}

.eg-service-card__body {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.23,1,0.32,1), padding 0.4s;
}

.eg-service-card.is-open .eg-service-card__body {
  max-height: 500px;
  padding: 0 28px 28px;
}

.eg-service-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.eg-service-card__list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 15px;
  color: var(--eg-muted);
  border-bottom: 1px solid #f5f0fc;
}

.eg-service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6l3.5 3.5L11 2' stroke='%237437BC' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.eg-service-card__cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--eg-gradient);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.eg-service-card__cta:hover { opacity: 0.88; }
.eg-service-card__cta:active { transform: scale(0.97); }

@media (max-width: 700px) {
  .eg-service-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   БЛОК "ПОЧЕМУ ВЫБИРАЮТ НАС" (иконки-карточки)
   ============================================================ */
.eg-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.eg-feature-card {
  background: #f8f6fc;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: left;
}

.eg-feature-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--eg-purple);
}

.eg-feature-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eg-feature-card__title {
  font-family: 'Scada', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--eg-text);
  margin: 0;
}

@media (max-width: 900px) {
  .eg-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .eg-features { grid-template-columns: 1fr 1fr; gap: 12px; }
  .eg-feature-card { padding: 18px 16px; }
}

/* ============================================================
   КАРТОЧКИ ФОРМАТОВ (слайдер с раскрытием)
   ============================================================ */
.eg-format-card {
  flex: 0 0 300px;
  background: #fff;
  border-radius: var(--eg-radius);
  overflow: hidden;
  box-shadow: var(--eg-shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.eg-format-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(116,55,188,0.18);
}

.eg-format-card__head {
  padding: 28px 24px;
  border-bottom: 1px solid #f5f0fc;
}

.eg-format-card__title {
  font-family: 'Scada', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--eg-text);
  margin: 0;
}

.eg-format-card__body {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.23,1,0.32,1), padding 0.45s;
}

.eg-format-card.is-open .eg-format-card__body {
  max-height: 400px;
  padding: 20px 24px 24px;
}

/* ============================================================
   ОБЩИЙ КОНТЕЙНЕР
   ============================================================ */
.eg-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .eg-section { padding: 56px 0; }
  .eg-section__title { font-size: 28px; }
  .eg-about { padding: 56px 0; }
  .eg-reviews { padding: 56px 0; }
  .eg-timeline { padding: 56px 0; }
}

/* ============================================================
   ИКОНКИ (SVG, inline, минималистичные линейные)
   Используются вместо эмодзи по всему сайту.
   ============================================================ */
.eg-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

/* Фиолетовые галочки для гайда и списков */
.eg-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eg-checklist li {
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: 15px;
  color: var(--eg-muted);
  line-height: 1.5;
}

.eg-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%237437BC' fill-opacity='0.12'/%3E%3Cpath d='M6 10l3 3 5-5' stroke='%237437BC' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}


/* ============================================================
   ШАПКА — уменьшенная высота
   ============================================================ */
.b_header {
  min-height: 72px !important;
}
.b_header .b_container {
  padding: 14px 0 14px !important;
}
/* Уменьшаем логотип в шапке */
.b_header .b_logo img,
.b_header .b_logo svg {
  max-height: 44px !important;
}
/* Фиксированная панель тоже компактнее */
.b_top_fixed_panel .b_container {
  padding: 10px 0 10px !important;
}

/* ============================================================
   HERO — высота с учётом тонкой шапки (72px)
   ============================================================ */
.eg-hero {
  height: calc(100svh - 72px) !important;
  min-height: 480px !important;
}

/* ============================================================
   HERO CARDS — заголовки по центру, большой капслок
   ============================================================ */
.eg-hero-card__body {
  position: absolute !important;
  inset: 0 !important;
  bottom: unset !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 24px !important;
  text-align: center !important;
}

.eg-hero-card__title {
  font-size: clamp(26px, 2.8vw, 44px) !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  line-height: 1.1 !important;
  margin: 0 0 24px !important;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4) !important;
  transform: none !important;
}

/* убираем смещение при hover — заголовок уже по центру */
.eg-hero-card:hover .eg-hero-card__title {
  transform: none !important;
}

.eg-hero-card__btn {
  transform: translateY(16px) !important;
}
.eg-hero-card:hover .eg-hero-card__btn {
  transform: translateY(0) !important;
}

/* Mobile */
@media (max-width: 768px) {
  .eg-hero {
    height: auto !important;
    min-height: calc(100svh - 72px) !important;
  }
  .eg-hero-card {
    height: calc(33.33svh - 24px) !important;
    min-height: 180px !important;
  }
  .eg-hero-card__title {
    font-size: clamp(20px, 5vw, 30px) !important;
    margin: 0 0 14px !important;
  }
  .eg-hero-card__btn {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ============================================================
   ГЛАВНАЯ — ФОРМА КОНСУЛЬТАЦИИ (фикс лейаута)
   ============================================================ */
.b_home_consult {
  background: linear-gradient(135deg, #1a0a2e, #2d0f5e);
  padding: 72px 0;
}
.b_home_consult .b_home_consult_inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.b_home_consult .b_home_consult_left h2 {
  font-family: 'Scada', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}
.b_home_consult .b_home_consult_left p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.7;
}
.b_home_consult .b_home_consult_right form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.b_home_consult .b_home_consult_right form input {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  font-family: 'Open Sans', sans-serif !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.b_home_consult .b_home_consult_right form input::placeholder {
  color: rgba(255,255,255,0.45) !important;
}
.b_home_consult .b_home_consult_right form input:focus {
  border-color: rgba(139,63,214,0.7) !important;
}
/* 3-й и 4-й инпут — тоже 1fr 1fr, кнопка — на всю ширину */
.b_home_consult .b_home_consult_right form button.button {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #8b3fd6, #5b17a2) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 15px 32px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  font-family: 'Open Sans', sans-serif !important;
  cursor: pointer !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
.b_home_consult .b_home_consult_right form button.button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(116,55,188,0.5) !important;
}
.b_home_consult .b_home_consult_agree {
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.78rem !important;
  margin-top: 12px !important;
}
.b_home_consult .b_home_consult_agree a {
  color: rgba(255,255,255,0.75) !important;
}
.b_form_success_consult h3 {
  color: #fff !important;
}
.b_form_success_consult p {
  color: rgba(255,255,255,0.75) !important;
}
@media (max-width: 900px) {
  .b_home_consult .b_home_consult_inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .b_home_consult .b_home_consult_right form {
    grid-template-columns: 1fr;
  }
}
