/**
 * MM-Security — корпоративная вёрстка (B2B, нефтегаз)
 * Промышленная эстетика, чёткая иерархия, доверие.
 */

/* ========== Базовый контейнер ========== */
.mm-page {
  font-family: var(--mm-font-body);
  color: var(--mm-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mm-container {
  width: 100%;
  max-width: var(--mm-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* ========== Шапка ========== */
.mm-header {
  background: var(--mm-bg-dark);
  min-height: var(--mm-header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mm-header .mm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.mm-logo {
  display: block;
}

.mm-logo img {
  max-height: 44px;
  width: auto;
  display: block;
}

.mm-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.mm-nav a {
  color: rgba(255,255,255,.95);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: var(--mm-radius);
}

.mm-nav a:hover {
  color: var(--mm-accent);
  background: rgba(255,255,255,.06);
}

.mm-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--mm-radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--mm-font-body);
  transition: background .2s, color .2s;
}

.mm-btn-primary {
  background: var(--mm-primary);
  color: #fff;
}

.mm-btn-primary:hover {
  background: var(--mm-primary-hover);
  color: #fff;
}

.mm-btn-cta {
  background: var(--mm-accent-cta);
  color: #fff;
}

.mm-btn-cta:hover {
  background: var(--mm-accent-cta-hover);
  color: #fff;
}

.mm-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}

.mm-btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

.mm-header .mm-social a {
  color: rgba(255,255,255,.85);
  margin-left: 8px;
}

.mm-header .mm-social a:hover {
  color: #fff;
}

.mm-header .mm-social img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  opacity: .9;
}

/* Мобильное меню */
.mm-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 991px) {
  .mm-nav-toggle {
    display: block;
  }
  .mm-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mm-bg-dark);
    flex-direction: column;
    padding: 16px;
    gap: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
  }
  .mm-nav a {
    display: block;
    padding: 12px 16px;
    width: 100%;
  }
  body.mm-nav-open .mm-nav {
    display: flex;
  }
}

/* ========== Секции: единый ритм ========== */
.mm-section {
  padding: 72px 0;
}

.mm-section-alt {
  background: var(--mm-bg-alt);
}

.mm-section-dark {
  background: var(--mm-bg-dark);
  color: #fff;
}

.mm-section-dark .mm-title,
.mm-section-dark .mm-subtitle {
  color: #fff;
}

.mm-section-dark .mm-text {
  color: rgba(255,255,255,.85);
}

/* Иерархия заголовков: корпоративный отчёт */
.mm-title {
  font-family: var(--mm-font-heading);
  font-weight: 700;
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  color: var(--mm-text);
  margin: 0 0 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.mm-title-h2 {
  font-family: var(--mm-font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--mm-text);
  margin: 0 0 12px;
  line-height: 1.35;
}

.mm-title-h3 {
  font-family: var(--mm-font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--mm-text);
  margin: 0 0 8px;
  line-height: 1.35;
}

.mm-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--mm-text-muted);
  margin: 0 0 40px;
  max-width: 680px;
}

.mm-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mm-text-muted);
  margin: 0 0 1em;
}

/* ========== Hero ========== */
.mm-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 48px 0;
  background: linear-gradient(160deg, rgba(15,23,42,.95) 0%, rgba(26,54,93,.9) 100%);
  color: #fff;
}

.mm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/aa49e5bbcb321c65e1d4ba4d4afa599b.png');
  background-size: cover;
  background-position: center;
  opacity: .15;
  z-index: 0;
}

.mm-hero .mm-container {
  position: relative;
  z-index: 1;
}

.mm-hero h1 {
  font-family: var(--mm-font-heading);
  font-weight: 700;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin: 0 0 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}

.mm-hero .mm-hero-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  margin: 0 0 32px;
  max-width: 580px;
}

.mm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========== Цифры доверия ========== */
.mm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}

.mm-stat-num {
  font-family: var(--mm-font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--mm-primary);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.mm-stat-label {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--mm-graphite);
  margin: 0;
}

/* ========== Карточки (услуги, отрасли): промышленный вес ========== */
.mm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.mm-card {
  background: #fff;
  border-radius: var(--mm-radius-lg);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid var(--mm-border);
  border-left: 3px solid var(--mm-primary);
  transition: box-shadow .2s;
}

.mm-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.mm-card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mm-bg-dark);
  color: #fff;
  border-radius: var(--mm-radius);
  font-size: 1.5rem;
}

.mm-card h3 {
  font-family: var(--mm-font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: var(--mm-text);
  line-height: 1.35;
}

.mm-card p {
  font-size: 1rem;
  color: var(--mm-graphite);
  margin: 0 0 20px;
  line-height: 1.65;
}

.mm-card .mm-btn {
  font-size: 0.9rem;
  padding: 10px 18px;
}

/* ========== Список «Почему мы» ========== */
.mm-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.mm-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mm-features .mm-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--mm-primary);
  color: #fff;
  border-radius: var(--mm-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mm-features strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: var(--mm-text);
}

.mm-features span {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mm-graphite);
}

/* Блок «Нам доверяют» */
.mm-trust-block {
  background: #fff;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-lg);
  padding: 32px 36px;
  margin-top: 24px;
  text-align: center;
}

.mm-trust-block p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--mm-graphite);
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Кейсы: корпоративный формат ========== */
.mm-case-card {
  background: #fff;
  border-radius: var(--mm-radius-lg);
  padding: 28px;
  border: 1px solid var(--mm-border);
  border-left: 3px solid var(--mm-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.mm-case-card .mm-case-industry {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mm-primary);
  margin-bottom: 8px;
}

.mm-case-card h3 {
  font-family: var(--mm-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--mm-text);
  line-height: 1.35;
}

.mm-case-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mm-graphite);
  margin: 0 0 10px;
}

.mm-case-card .mm-case-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--mm-border);
  font-weight: 600;
  font-size: 1rem;
  color: var(--mm-primary);
  line-height: 1.5;
}

/* ========== Форма заявки ========== */
.mm-form-group {
  margin-bottom: 16px;
}

.mm-form-group label {
  display: block;
  font-weight: 600;
  color: var(--mm-text);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.mm-form-group input,
.mm-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  font-size: 1rem;
  font-family: var(--mm-font-body);
  box-sizing: border-box;
}

.mm-form-group input:focus,
.mm-form-group textarea:focus {
  outline: none;
  border-color: var(--mm-primary);
  box-shadow: 0 0 0 2px rgba(26,54,93,.15);
}

.mm-form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* ========== Подвал ========== */
.mm-footer {
  background: var(--mm-bg-dark);
  color: rgba(255,255,255,.8);
  padding: 32px 0 24px;
  margin-top: auto;
}

.mm-footer .mm-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.mm-footer a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
}

.mm-footer a:hover {
  color: var(--mm-accent);
}

.mm-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.mm-footer-nav a {
  font-size: 0.9rem;
}

.mm-footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
  margin: 0;
}

.mm-footer-legal {
  width: 100%;
  margin-top: 8px;
}

.mm-footer-legal .mm-footer-copy {
  margin: 2px 0;
}

/* Кнопка WhatsApp (sticky) */
.mm-whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 99;
  font-size: 1.75rem;
  transition: transform .2s;
}

.mm-whatsapp-fab:hover {
  transform: scale(1.05);
  color: #fff;
}

/* Адаптив секций */
.mm-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 767px) {
  .mm-section {
    padding: 48px 0;
  }
  .mm-hero {
    min-height: 320px;
    padding: 40px 0;
  }
  .mm-hero-actions {
    flex-direction: column;
  }
  .mm-hero-actions .mm-btn {
    width: 100%;
    justify-content: center;
  }
  .mm-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .mm-cta-grid {
    grid-template-columns: 1fr;
  }
  .mm-subtitle {
    margin-bottom: 32px;
  }
}
