/*
 Theme Name: Everest Astra Child
 Theme URI: https://ecc-everest.ru
 Description: Дочерняя тема для Astra c кастомной шапкой, меню и hero-блоком для юридической фирмы «Эверест».
 Author: Roman / Cursor
 Template: astra
 Text Domain: astra-everest-child
*/

/* Базовые настройки */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  background: #f5f5f5;
  -webkit-text-size-adjust: 100%;
}

a, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:root {
  --nav-bg: #fff;
  --nav-text: #1a1a1a;
  --nav-text-hover: #0d47a1;
  --nav-dropdown-bg: #fff;
  --nav-dropdown-border: #e0e0e0;
  --nav-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --nav-radius: 8px;
  --nav-transition: 0.2s ease;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ========== Шапка: логотип + меню ========== */

.everest-site-header {
  background: var(--nav-bg);
  box-shadow: var(--nav-shadow);
  position: relative;
  z-index: 100;
}

.everest-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.everest-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

@media (max-width: 991px) {
  .everest-header-container {
    padding: 0 10px;
  }

  .everest-header-inner {
    min-height: 52px;
    gap: 6px;
  }

  .everest-header-logo-wrap {
    padding: 4px 10px;
    transform: translateY(8px);
  }

  .everest-header-logo img {
    height: 38px;
  }

  .everest-header-right {
    gap: 6px;
  }

  .everest-header-contact {
    gap: 4px;
  }

  .everest-header-contact__phone-wrap {
    gap: 1px;
  }

  .everest-header-contact__location {
    font-size: 9px;
  }

  .everest-header-contact__item {
    gap: 3px;
  }

  .everest-header-contact__icon {
    font-size: 12px;
  }

  .everest-header-contact__text {
    font-size: 10px;
  }

  .everest-header-icon {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }
}

.everest-header-logo-wrap {
  position: relative;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(22px);
}

.everest-header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.everest-header-logo img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}

.everest-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.everest-header-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.everest-header-contact__phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.everest-header-contact__location {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.6);
}

.everest-header-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nav-text);
  text-decoration: none;
  white-space: nowrap;
}

.everest-header-contact__item:hover {
  color: var(--nav-text-hover);
}

.everest-header-contact__icon {
  font-size: 14px;
}

.everest-header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.everest-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.everest-header-icon--tg {
  background: linear-gradient(135deg, #2aa4f4, #0077b5);
}

.everest-header-icon--max {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

/* Кнопка-гамбургер */
.everest-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.everest-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-text);
  transition: var(--nav-transition);
}

.everest-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.everest-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.everest-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.everest-nav-wrap {
  position: relative;
}

.everest-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.everest-nav > li {
  display: inline-block;
  position: relative;
}

.everest-nav > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 18px;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--nav-transition), background var(--nav-transition);
}

.everest-nav > li > a:hover {
  color: var(--nav-text-hover);
  background: rgba(0, 0, 0, 0.03);
}

.everest-nav .arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  opacity: 0.7;
  transition: transform var(--nav-transition);
}

.everest-nav > li:hover > a .arrow {
  transform: rotate(180deg);
}

/*
 * Astra добавляет в title ещё один индикатор (SVG в .dropdown-menu-toggle),
 * а Everest_Nav_Walker — span.arrow. Оставляем только наш треугольник.
 */
.everest-nav .dropdown-menu-toggle.ast-header-navigation-arrow {
  display: none !important;
}

/* Выпадающие меню */
.everest-nav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--nav-dropdown-bg);
  border: 1px solid var(--nav-dropdown-border);
  border-radius: var(--nav-radius);
  box-shadow: var(--nav-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--nav-transition), visibility var(--nav-transition), transform var(--nav-transition);
  z-index: 200;
}

.everest-nav > li:hover > .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.everest-nav .sub li {
  position: relative;
}

.everest-nav .sub li a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 8px;
  padding: 10px 16px;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 14px;
  transition: background var(--nav-transition), color var(--nav-transition);
  white-space: nowrap;
}

/* Второй «стрелочный» блок Astra перед текстом во вложенных пунктах — мешает левому выравниванию */
.everest-nav .sub li > a > .ast-icon.icon-arrow {
  display: none !important;
}

/* У пунктов с вложенным подменю стрелка .arrow остаётся справа от текста */
.everest-nav .sub li.has-sub > a .arrow {
  margin-left: auto;
  flex-shrink: 0;
}

.everest-nav .sub li a:hover {
  background: rgba(13, 71, 161, 0.06);
  color: var(--nav-text-hover);
}

.everest-nav .sub li.has-sub {
  display: flex;
  flex-wrap: wrap;
}

.everest-nav .sub li.has-sub > a {
  flex: 1;
  min-width: 0;
}

.everest-nav .sub .arrow {
  flex-shrink: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: rotate(-90deg);
}

.everest-nav .sub li:hover > a .arrow {
  transform: rotate(-90deg) translateX(2px);
}

.everest-nav .sub .sub {
  top: 0;
  left: 100%;
  margin-left: 4px;
  transform: translateX(-6px);
}

.everest-nav .sub li:hover > .sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.everest-nav .sub .sub li a {
  white-space: normal;
  max-width: 320px;
}

/* Мобильная навигация */
@media (max-width: 991px) {
  .everest-nav-toggle {
    display: flex;
  }

  .everest-header-container {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .everest-header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .everest-header-logo-wrap {
    width: 100%;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 10px;
  }

  .everest-header-right {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  .everest-header-contact {
    align-items: center;
    gap: 10px;
    margin-top: 8px;
  }

  .everest-header-contact__location {
    display: none;
  }

  .everest-nav-toggle {
    margin-left: auto;
  }

  .everest-nav-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    box-shadow: var(--nav-shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .everest-nav-wrap.is-open {
    max-height: 90vh;
    overflow-y: auto;
  }

  .everest-nav {
    padding: 12px 0;
  }

  .everest-nav > li {
    display: block;
    border-bottom: 1px solid var(--nav-dropdown-border);
  }

  .everest-nav > li:last-child {
    border-bottom: none;
  }

  .everest-nav > li > a {
    padding: 14px 20px;
  }

  .everest-nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: auto;
    border: none;
    box-shadow: none;
    background: #f8f9fa;
    border-radius: 0;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .everest-nav > li.is-open > .sub,
  .everest-nav .sub li.is-open > .sub {
    max-height: 2000px;
  }

  .everest-nav .sub .sub {
    margin-left: 20px;
    border-left: 2px solid var(--nav-dropdown-border);
  }

  .everest-nav .sub li a {
    padding: 10px 20px 10px 24px;
    white-space: normal;
    justify-content: flex-start;
    text-align: left;
  }

  .everest-nav .sub .sub li a {
    max-width: none;
  }

  .everest-nav .sub-toggle {
    display: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    margin-left: auto;
    transition: transform 0.25s ease;
    color: #475569;
  }

  .everest-nav .sub-toggle::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
  }

  .everest-nav li.is-open > .sub-toggle {
    transform: rotate(180deg);
  }

  .everest-nav .arrow {
    display: none;
  }

  /* Добавляем треугольник-индикатор клика ТОЛЬКО для пунктов с подпунктами */
  .everest-nav .sub li.has-sub > a {
    justify-content: flex-start;
    text-align: left;
    position: relative;
    padding-left: 40px;
    width: 100%;
  }

  .everest-nav .sub li.has-sub > a::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid currentColor;
    opacity: 0.75;
  }

  /* На вложенных уровнях — так же показываем треугольник только у пунктов с подпунктами */
  .everest-nav .sub .sub li.has-sub > a {
    padding-left: 24px;
  }

  .everest-nav .sub .sub li.has-sub > a::before {
    left: 8px;
  }

  /* При раскрытии разворачиваем треугольник */
  .everest-nav .sub li.has-sub.is-open > a::before {
    transform: translateY(-50%) rotate(180deg);
  }
}

@media (min-width: 992px) {
  .everest-nav .sub-toggle {
    display: none;
  }
}

/* ========== Hero Slider ========== */

.everest-main {
  margin-top: 0;
  padding-top: 0;
}

.hero-slider {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 600px;
  height: 80vh;
  overflow: hidden;
  background-image: url('everest.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.hero-slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide--bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
  pointer-events: none;
}

.hero-slide--bg .hero__inner {
  z-index: 1;
}

.hero-slide--everest {
  background-image: url('everest.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide--everest::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
  pointer-events: none;
}

.hero-slide--everest .hero__inner {
  z-index: 1;
}

/* Слайды должны оставаться absolute, иначе .hero перебивает на relative и 2-й слайд уходит за viewport */
.hero.hero-slide {
  position: absolute;
}

.hero-slide--long .hero {
  align-items: flex-start;
}

.hero-slide--long .hero__inner {
  align-items: flex-start;
  padding-top: 40px;
}

.hero-slide--long .hero__content {
  overflow-y: auto;
  max-height: calc(80vh - 80px);
  min-height: 200px;
}

.hero {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  padding: 24px 20px 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero__content {
  max-width: 800px;
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero__list-wrap {
  padding: 0;
  margin: 0 0 24px;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  border: none;
}

.hero__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hero__list li:last-child {
  margin-bottom: 0;
}

.hero__list-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #fff;
}

.hero__list-icon svg {
  width: 12px;
  height: 12px;
}

.hero__text-wrap {
  padding: 0;
  margin: 0 0 32px;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  border: none;
}

.hero__subtitle {
  margin: 0 0 32px;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.hero__subtitle--block {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.65;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__cta {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #0d47a1;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(13, 71, 161, 0.4);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.hero__cta:hover {
  background: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.5);
}

.hero__cta:active {
  transform: translateY(0);
}

.hero-slider__indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-slider__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-slider__dot:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.9);
}

.hero-slider__dot--active {
  background: #fff;
  border-color: #fff;
}

@media (max-width: 768px) {
  .hero-slider {
    min-height: 500px;
    height: 85vh;
  }

  .hero__inner {
    justify-content: center;
    text-align: center;
    padding: 20px 16px 56px;
  }

  .hero__content {
    margin: 0 auto;
  }

  .hero__title {
    margin-bottom: 16px;
  }

  .hero__list-wrap {
    padding: 16px 20px;
    margin-bottom: 20px;
  }

  .hero__list {
    font-size: 16px;
  }

  .hero__list li {
    margin-bottom: 10px;
  }

  .hero__text-wrap {
    padding: 20px 22px;
    margin-bottom: 28px;
  }

  .hero__subtitle--block {
    font-size: 16px;
  }

  .hero__subtitle {
    margin-bottom: 28px;
  }

  .hero-slider__indicators {
    bottom: 20px;
  }

  .hero__cta {
    min-height: 44px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    min-height: 400px;
    height: 75vh;
  }

  .hero__title {
    font-size: clamp(22px, 5vw, 28px);
  }
}

/* ========== Карточки услуг ========== */

.services-cards {
  padding: 56px 20px 64px;
  background: transparent;
}

.services-cards__title {
  margin: 0 0 32px;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
}

.services-cards__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin: 12px auto 0;
  background: #0d47a1;
  border-radius: 2px;
}

.services-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-card {
  padding: 28px 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.services-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
}

.services-card__header,
.services-card__body,
.services-card__title,
.services-card__list,
.services-card__price,
.services-card__btn {
  position: relative;
  z-index: 1;
  color: #334155;
}

.services-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 100px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.15);
}

.services-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #475569;
}

.services-card__icon svg {
  width: 28px;
  height: 28px;
}

.services-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.services-card--1::before {
  background: linear-gradient(145deg, #e8ecf4 0%, #dce2ee 50%, #cfd8e8 100%);
}

.services-card--2::before {
  background: linear-gradient(145deg, #e8f0ea 0%, #dce6e0 50%, #cedad4 100%);
}

.services-card--3::before {
  background: linear-gradient(145deg, #ebe9ed 0%, #dfdce4 50%, #d1cdd8 100%);
}

.services-card--4::before {
  background: linear-gradient(145deg, #e5eceb 0%, #d8e2e0 50%, #cad6d4 100%);
}

.services-card--5::before {
  background: linear-gradient(145deg, #ebe6e2 0%, #dfd9d4 50%, #d1cac4 100%);
}

.services-card--6::before {
  background: linear-gradient(145deg, #e4e6e8 0%, #d8dadf 50%, #c9cdd3 100%);
}

.services-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.services-card__list {
  margin: 0 0 16px;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.55;
  flex: 1;
}

.services-card__list li {
  margin-bottom: 8px;
}

.services-card__price {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
}

.services-card__btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.2);
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
  margin-top: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.services-card__btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
  .services-cards__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .services-card__header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
    min-height: 0;
  }

  .services-card__title {
    min-width: 0;
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .services-card__icon {
    width: 34px;
    height: 34px;
  }

  .services-card__icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 576px) {
  .services-cards {
    padding: 40px 16px 48px;
  }

  .services-cards__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-card {
    min-height: auto;
    padding: 24px 20px;
  }

  .services-card__header {
    min-height: 0;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .services-card__icon {
    width: 36px;
    height: 36px;
  }

  .services-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .services-card__title {
    font-size: 17px;
    line-height: 1.2;
  }

  .services-card__list {
    font-size: 16px;
  }

  .services-card__btn {
    min-height: 44px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ========== Блок «О нас» ========== */

.about {
  background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
  padding: 56px 20px 64px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.about__inner {
  max-width: 880px;
  margin: 0 auto;
}

.about__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.about__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 12px;
  background: #0d47a1;
  border-radius: 2px;
}

.about__lead {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: #1a1a1a;
}

.about__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #333;
}

@media (max-width: 768px) {
  .about {
    padding: 40px 16px 48px;
  }

  .about__title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .about__title::after {
    margin-top: 10px;
  }

  .about__lead {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .about__text {
    font-size: 15px;
  }
}

/* ========== Инфографика «Схема работы» ========== */
.work-steps {
  padding: 52px 20px 64px;
  background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  margin-top: 24px;
}

.work-steps--footer {
  margin-top: 0;
  margin-bottom: 24px;
}

.work-steps__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.work-steps__title {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  text-align: center;
}

.work-steps__items {
  display: flex;
  gap: 0;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 0 4px;
}

/* Горизонтальная линия на десктопе */
.work-steps__items::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 16px;
  height: 2px;
  background: rgba(13, 71, 161, 0.18);
  z-index: 0;
}

.work-steps__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 6px 2px 0;
}

.work-steps__item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0d47a1;
  transform: translateX(-50%);
  box-shadow: 0 0 0 6px rgba(13, 71, 161, 0.08);
}

.work-steps__icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  color: #0d47a1;
}

.work-steps__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #0d47a1;
  background: rgba(13, 71, 161, 0.06);
  border: 1px solid rgba(13, 71, 161, 0.25);
}

.work-steps__heading {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  line-height: 1.15;
}

.work-steps__text {
  width: 100%;
  max-width: 190px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(13, 71, 161, 0.18);
  background: linear-gradient(145deg, rgba(232, 236, 244, 0.72) 0%, rgba(220, 226, 238, 0.52) 50%, rgba(207, 216, 232, 0.46) 100%);
  box-shadow: 0 4px 18px rgba(13, 71, 161, 0.06);
  backdrop-filter: blur(6px);
  color: #334155;
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
}

.work-steps__item--1 .work-steps__text {
  background: linear-gradient(145deg, rgba(232, 236, 244, 0.74) 0%, rgba(220, 226, 238, 0.56) 50%, rgba(207, 216, 232, 0.5) 100%);
}

.work-steps__item--2 .work-steps__text {
  background: linear-gradient(145deg, rgba(232, 240, 234, 0.72) 0%, rgba(220, 230, 224, 0.52) 50%, rgba(206, 218, 212, 0.47) 100%);
}

.work-steps__item--3 .work-steps__text {
  background: linear-gradient(145deg, rgba(235, 233, 237, 0.72) 0%, rgba(223, 220, 228, 0.52) 50%, rgba(209, 205, 216, 0.47) 100%);
}

.work-steps__item--4 .work-steps__text {
  background: linear-gradient(145deg, rgba(229, 236, 235, 0.72) 0%, rgba(216, 226, 224, 0.52) 50%, rgba(202, 214, 212, 0.47) 100%);
}

.work-steps__item--5 .work-steps__text {
  background: linear-gradient(145deg, rgba(235, 230, 226, 0.72) 0%, rgba(223, 217, 212, 0.52) 50%, rgba(209, 202, 196, 0.47) 100%);
}

.work-steps__item--6 .work-steps__text {
  background: linear-gradient(145deg, rgba(228, 230, 232, 0.72) 0%, rgba(216, 218, 223, 0.52) 50%, rgba(201, 205, 211, 0.47) 100%);
}

.work-steps__item:hover .work-steps__text {
  transform: translateY(-1px);
  border-color: rgba(13, 71, 161, 0.35);
  box-shadow: 0 10px 24px rgba(13, 71, 161, 0.12);
  filter: saturate(1.05);
}

@media (max-width: 768px) {
  .work-steps {
    padding: 40px 16px 48px;
  }

  .work-steps__title {
    font-size: 24px;
    margin-bottom: 22px;
  }

  .work-steps__items {
    flex-direction: column;
    gap: 22px;
    padding: 8px 0 0;
  }

  .work-steps__items::before {
    left: 50%;
    right: auto;
    top: 22px;
    bottom: 22px;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

  .work-steps__item {
    padding-top: 12px;
  }

  .work-steps__item::before {
    left: 50%;
    top: 34px;
    transform: translateX(-50%);
  }

  .work-steps__text {
    width: 100%;
    max-width: 260px;
    padding: 12px 10px;
    font-size: 17px;
    margin: 0;
  }

  .work-steps__heading {
    min-height: 48px;
    margin-bottom: 14px;
    font-size: 17px;
  }
}

/* ========== Страница «Услуги» ========== */

.everest-services {
  padding: 40px 20px 64px;
  max-width: 900px;
  margin: 0 auto;
}

.everest-services__header {
  margin-bottom: 48px;
  text-align: center;
}

.everest-services__title {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.02em;
}

.everest-services__title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 16px auto 0;
  background: #0d47a1;
  border-radius: 2px;
}

.everest-services__content {
  font-size: 18px;
  line-height: 1.7;
  color: #334155;
}

.everest-services__block {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(13, 71, 161, 0.15);
}

.everest-services__block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.everest-services h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0d47a1;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(13, 71, 161, 0.2);
  letter-spacing: -0.01em;
}

.everest-services h2 span {
  font-weight: 500;
  color: #64748b;
  font-size: 0.9em;
}

.everest-services h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.everest-services h3:first-child {
  margin-top: 0;
}

.everest-services p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.7;
  color: #334155;
}

.everest-services ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.everest-services ul li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 28px;
  line-height: 1.7;
}

.everest-services ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: #0d47a1;
  border-radius: 50%;
}

.everest-services ul li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .everest-services {
    padding: 32px 16px 48px;
  }

  .everest-services__title {
    font-size: 28px;
  }

  .everest-services__content {
    font-size: 17px;
  }

  .everest-services h2 {
    font-size: 21px;
    margin-bottom: 20px;
  }

  .everest-services h3 {
    font-size: 18px;
    margin: 24px 0 10px;
  }

  .everest-services p {
    font-size: 17px;
  }

  .everest-services__block {
    padding-bottom: 36px;
    margin-bottom: 36px;
  }
}

/* Убираем верхний отступ у контейнера Astra,
 * чтобы контент (в т.ч. hero) примыкал к шапке.
 */
.site-content {
  margin-top: 0;
}

.site-content > .ast-container {
  padding-top: 0;
}

/* Снимаем стандартный отступ Astra у #primary на главной,
 * чтобы не было серой полосы между header и hero.
 */
.home .site .site-content #primary {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* ========== Подвал с реквизитами ========== */

.site-footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.9);
  padding: 32px 20px 20px;
  font-size: 14px;
}

/* Карта Яндекс в футере: растягиваем iframe на всю доступную ширину */
.everest-footer-map-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 18px;
}

.everest-footer-map-wrap iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 400px !important;
  display: block;
}

.everest-footer-inner {
  max-width: 1200px;
  margin: 0 auto 16px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.everest-footer-col {
  flex: 1 1 260px;
  min-width: 0;
}

.everest-footer-logo {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.everest-footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.everest-footer-title {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.everest-footer-text {
  margin: 0 0 6px;
}

.everest-footer-text a {
  color: inherit;
  text-decoration: none;
}

.everest-footer-text a:hover {
  text-decoration: underline;
}

.everest-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 24px 16px 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .everest-footer-inner {
    gap: 20px;
  }

  .everest-footer-logo {
    padding: 6px 10px;
  }

  .everest-footer-logo img {
    height: 28px;
  }
}

/* ========== Страница «О нас»: читабельное оформление без изменения текста ========== */

.everest-page-o-nas .entry-content {
  max-width: 980px;
  margin: 0 auto;
}

.everest-page-o-nas .entry-content h1,
.everest-page-o-nas .entry-content h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.15;
  margin-bottom: 26px;
  letter-spacing: -0.02em;
}

.everest-page-o-nas .entry-content p {
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.95) 100%);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.62;
  color: #1f2937;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

/* Стилизуем ключевые абзацы как цитаты без изменения текста */
.everest-page-o-nas .entry-content p:nth-of-type(4),
.everest-page-o-nas .entry-content p:nth-of-type(7),
.everest-page-o-nas .entry-content p:nth-of-type(11) {
  position: relative;
  padding-left: 30px;
  border-left: 4px solid #0d47a1;
  background: linear-gradient(145deg, rgba(232, 240, 255, 0.9) 0%, rgba(241, 245, 255, 0.9) 100%);
  font-style: italic;
}

.everest-page-o-nas .entry-content p:nth-of-type(4)::before,
.everest-page-o-nas .entry-content p:nth-of-type(7)::before,
.everest-page-o-nas .entry-content p:nth-of-type(11)::before {
  content: '“';
  position: absolute;
  left: 10px;
  top: 2px;
  color: rgba(13, 71, 161, 0.4);
  font-size: 34px;
  line-height: 1;
}

@media (max-width: 768px) {
  .everest-page-o-nas .entry-content p {
    padding: 14px 14px;
    font-size: 17px;
    line-height: 1.58;
  }
}

/* ========== Вертикальная инфографика для страницы «Схема работы» ========== */

.workflow-vertical {
  margin: 28px auto 56px;
  max-width: 980px;
}

.workflow-vertical__head {
  margin-bottom: 24px;
  padding: 20px 22px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(232, 236, 244, 0.65) 0%, rgba(220, 226, 238, 0.45) 100%);
  border: 1px solid rgba(13, 71, 161, 0.12);
}

.workflow-vertical__head h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.2;
}

.workflow-vertical__head p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: #334155;
}

.workflow-vertical__timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 26px;
}

.workflow-vertical__timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #0d47a1 0%, rgba(13, 71, 161, 0.28) 100%);
}

.workflow-vertical__step {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: start;
}

.workflow-vertical__step-num {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #0d47a1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-left: -4px;
  box-shadow: 0 8px 18px rgba(13, 71, 161, 0.26);
}

.workflow-vertical__step-body {
  border-radius: 14px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
}

.workflow-vertical__step-body h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  color: #0f172a;
}

.workflow-vertical__step-body p {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.6;
  color: #334155;
}

.workflow-vertical__step-body ul {
  margin: 0;
  padding: 0 0 0 20px;
}

.workflow-vertical__step-body li {
  margin-bottom: 6px;
  color: #334155;
  line-height: 1.55;
}

.workflow-vertical__step-body li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .workflow-vertical {
    margin: 20px auto 40px;
  }

  .workflow-vertical__head {
    padding: 14px 14px;
  }

  .workflow-vertical__head h2 {
    font-size: 24px;
  }

  .workflow-vertical__head p {
    font-size: 16px;
  }

  .workflow-vertical__timeline {
    padding-left: 16px;
    gap: 14px;
  }

  .workflow-vertical__timeline::before {
    left: 4px;
  }

  .workflow-vertical__step {
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }

  .workflow-vertical__step-num {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .workflow-vertical__step-body {
    padding: 14px 12px;
  }

  .workflow-vertical__step-body h3 {
    font-size: 20px;
  }

  .workflow-vertical__step-body p,
  .workflow-vertical__step-body li {
    font-size: 15px;
  }
}

/* ========== Выравнивание основного текстового контента по ширине ========== */

.site-content .entry-content p,
.site-content .entry-content li,
.everest-services p,
.everest-services li,
.about__text,
.workflow-vertical__step-body p,
.workflow-vertical__step-body li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

