/* ===========================================================
   marketing.css — стили маркетинговых страниц med-prodvizhenie.ru.

   ПОДКЛЮЧАЕТСЯ ПОСЛЕ main.css. Использует CSS-переменные оттуда:
     --brand-50/100/200/500/600/700/800/900
     --ink-50/100/300/500/700/900
     --radius-lg/md/sm, --shadow-soft/elev

   Не определяет общие классы (.btn-*, .card-*, .alert-*, .url-input,
   .feature-card, .step и др.) — они уже есть в main.css. Только
   маркетинг-специфичные блоки: header-навигация, hero, тайлы услуг,
   шаги процесса, FAQ, TODO-плашки, финальный CTA с контактами.

   Владелец файла: Фаза 0 (Planes/website-contract.md).
   =========================================================== */


/* === Универсальные / Reset === */

/* Контейнер для подключения общего компонента (header) через components-loader.js.
   display: contents убирает div из layout, чтобы <header class="site-header">
   внутри становился прямым потомком <body>. Без этого position: sticky не работает,
   так как ближайший родительский блок (этот div) обтягивает <header> вплотную. */
[data-component] { display: contents; }


/* === Шапка / навигация === */

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}
.nav-link:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}
.nav-link.active {
  background: var(--brand-600);
  color: #fff;
}
.nav-link.active:hover {
  background: var(--brand-700);
  color: #fff;
}

.nav-link-mobile {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
}

.burger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid var(--ink-100);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-700);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease;
}
.burger-btn:hover {
  color: var(--brand-700);
  border-color: var(--brand-200);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.mobile-nav.hidden,
.mobile-nav[hidden] {
  display: none;
}


/* === Мега-меню «Услуги ▾» (десктоп, >= 1024px) === */

.services-dropdown {
  position: relative;
}

.services-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--ink-700);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}
.services-dropdown:hover .services-dropdown-trigger,
.services-dropdown:focus-within .services-dropdown-trigger {
  background: var(--brand-50);
  color: var(--brand-700);
}

.services-dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}
.services-dropdown:hover .services-dropdown-chevron,
.services-dropdown:focus-within .services-dropdown-chevron {
  transform: rotate(180deg);
}

.services-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  pointer-events: none;
}
.services-dropdown:hover .services-mega-menu,
.services-dropdown:focus-within .services-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.services-mega-menu-inner {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 16px;
  box-shadow: var(--shadow-elev, var(--shadow-soft));
  padding: 0.75rem;
  min-width: 640px;
}

.services-mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
}

.services-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink-700);
  transition: background 140ms ease;
}
.services-card:hover {
  background: var(--brand-50);
}

.services-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.25;
}
.services-card:hover .services-card-title {
  color: var(--brand-700);
}

.services-card-desc {
  font-size: 0.78rem;
  color: var(--ink-500);
  line-height: 1.4;
}


/* === Hero-секция страниц услуг === */

.hero {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}
@media (min-width: 640px)  { .hero { padding: 4rem 2rem 3rem; } }
@media (min-width: 1024px) { .hero { padding: 5rem 2rem 4rem; } }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink-900);
  margin: 0 0 1.25rem 0;
  max-width: 52rem;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--ink-500);
  font-weight: 500;
  line-height: 1.55;
  max-width: 42rem;
  margin: 0 0 2rem 0;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}


/* === Универсальная секция страницы услуги === */

.marketing-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
@media (min-width: 640px) { .marketing-section { padding: 4rem 2rem; } }

.marketing-section--muted {
  background: linear-gradient(180deg, transparent 0%, rgba(14, 116, 144, 0.04) 100%);
  border-radius: 24px;
  margin: 1rem auto;
}

.marketing-section__title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-900);
  margin: 0 0 0.75rem 0;
}
.marketing-section__subtitle {
  font-size: 1.05rem;
  color: var(--ink-500);
  margin: 0 0 2rem 0;
  max-width: 42rem;
  line-height: 1.55;
}


/* === Тайл услуги (для главной /index.html и /about) === */

.service-tile {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(14, 116, 144, 0.10);
  border-radius: 18px;
  box-shadow: 0 8px 24px -16px rgba(8, 47, 73, 0.18);
  transition: transform 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.service-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgba(8, 47, 73, 0.25);
}
.service-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-tile__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
  margin: 0;
}
.service-tile__desc {
  font-size: 0.95rem;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.service-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-700);
}


/* === Что входит в услугу === */

.feature-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-list { grid-template-columns: repeat(3, 1fr); } }

.feature-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 14px;
}
.feature-list__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-list__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
}
.feature-list__desc {
  font-size: 0.92rem;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
}


/* === Команда === */

.team-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .team-list { grid-template-columns: repeat(2, 1fr); } }

.team-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  align-items: flex-start;
}
.team-card__photo {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--ink-50);
  flex: 0 0 auto;
}
.team-card__body { flex: 1; min-width: 0; }
.team-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
}
.team-card__role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-700);
  margin: 0.125rem 0 0.5rem 0;
}
.team-card__bio {
  font-size: 0.92rem;
  color: var(--ink-500);
  line-height: 1.6;
  margin: 0;
}


/* === Шаги «Как мы работаем» === */

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ink-100);
}
.process-step:last-child { border-bottom: 0; }

.process-step__num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.process-step__body { flex: 1; }
.process-step__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 0.35rem 0;
}
.process-step__desc {
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
}


/* === FAQ (на чистом HTML, через <details>) === */

.faq-item {
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 140ms ease;
}
.faq-item[open] { border-color: var(--brand-200); }

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-700);
  transition: transform 200ms ease;
}
.faq-item[open] .faq-item__q::after { content: "−"; }
.faq-item__q:hover { color: var(--brand-700); }

.faq-item__a {
  padding: 0 1.25rem 1.1rem 1.25rem;
  color: var(--ink-700);
  line-height: 1.6;
}


/* === TODO-плашка для черновых данных (видна владельцу) === */

.todo-marker {
  display: block;
  margin: 0.75rem 0;
  padding: 0.85rem 1.1rem;
  background: #fef9c3;
  border: 1px dashed #d97706;
  border-radius: 10px;
  color: #78350f;
  font-size: 0.9rem;
  line-height: 1.5;
}
.todo-marker::before {
  content: "TODO для владельца — ";
  font-weight: 700;
  color: #92400e;
}
.todo-marker--inline {
  display: inline-block;
  margin: 0 0 0 0.4rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.78rem;
  vertical-align: middle;
}


/* === Финальный CTA-блок с контактами === */

.contact-cta {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-900) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 3rem auto;
  max-width: 64rem;
}
@media (min-width: 640px) { .contact-cta { padding: 3rem 2.5rem; } }

.contact-cta__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
  color: #fff;
}
.contact-cta__text {
  font-size: 1.05rem;
  opacity: 0.85;
  margin: 0 0 1.75rem 0;
}
.contact-cta__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background 160ms ease, transform 100ms ease;
}
.contact-link:hover { background: rgba(255, 255, 255, 0.22); }
.contact-link:active { transform: translateY(1px); }


/* === Сетка тайлов услуг (для секции «6 услуг») === */

.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }


/* === Адаптив для шапки на узких экранах === */

@media (max-width: 1023px) {
  .site-header .nav-link { padding: 0.4rem 0.6rem; }
}
