/* Бизнес-Навигатор — дизайн по макету ANF практика */
:root {
  --blue-700: #0b4edb;
  --blue-600: #0d5de2;
  --blue-500: #1d6fff;
  --blue-100: #e8f0ff;
  --red-500: #e53935;
  --gray-900: #0f172a;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 40%);
}

.main-content {
  flex: 1 0 auto;
  width: 100%;
}

.footer {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--gray-900);
  color: #e2e8f0;
  padding: 24px 0;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Хедер */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--gray-200);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--gray-900);
}

.logo__img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}

.logo__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.logo__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--gray-900);
}

.logo__text {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.1px;
}

.logo--footer .logo__title,
.logo--footer .logo__text {
  color: #e2e8f0;
}

.logo--footer .logo__text {
  opacity: 0.85;
}

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

.nav__link {
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover { color: var(--blue-600); background: var(--blue-100); }

.nav__link.is-active {
  color: var(--blue-700);
  background: var(--blue-100);
  font-weight: 700;
}

.header__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Кнопки */
.btn, .btn-primary {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--blue-600);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
  box-shadow: 0 12px 24px rgba(31, 95, 191, 0.25);
  text-decoration: none;
}

.btn:hover, .btn-primary:hover {
  transform: translateY(-1px);
  background: var(--blue-500);
  color: var(--white) !important;
}

.btn--ghost, .btn-outline-primary {
  background: transparent !important;
  color: var(--blue-600) !important;
  border: 1px solid var(--blue-100);
  box-shadow: none;
}

.btn--ghost:hover, .btn-outline-primary:hover {
  background: var(--blue-100) !important;
  color: var(--blue-600) !important;
}

.btn--secondary {
  background: var(--gray-900) !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  color: var(--white) !important;
}

.btn--secondary:hover { background: #111827 !important; }

.btn--block { width: 100%; }

.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Hero */
.hero { padding: 60px 0 32px; }

.hero__grid {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.hero__text h1 { margin: 8px 0 12px; font-size: clamp(32px, 4vw, 42px); }

.lead { color: var(--gray-700); margin-bottom: 20px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 12px;
  color: var(--blue-600);
  font-weight: 700;
  margin: 0;
}

.hero__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-200);
}

.hero__card-title { margin: 0 0 12px; color: var(--gray-700); font-weight: 600; }

.hero__stats {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.hero__stats li {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--gray-200);
  background: var(--gray-100);
}

.hero__stats span { display: block; color: var(--gray-500); font-size: 13px; }

.hero__stats strong { display: block; font-size: 18px; margin-top: 4px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.search { display: flex; gap: 10px; flex-wrap: wrap; }

.search input, .search select {
  flex: 1 1 240px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 14px;
  font-family: inherit;
}

.search input:focus, .search select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 122, 229, 0.15);
}

/* Секции */
.section { padding: 56px 0; }

.section--gray { background: var(--gray-100); }

.section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section__header h2 { margin: 6px 0 0; }

.section__intro { max-width: 540px; color: var(--gray-700); margin: 0; }

/* Карточки */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 20px;
  margin-bottom: 8px;
}

.card h3 { margin: 4px 0 8px; font-size: 1.1rem; }

.card p { color: var(--gray-700); margin: 0 0 12px; font-size: 14px; }

.card__link { font-weight: 600; color: var(--blue-600); }

#map, #investment-map {
  width: 100%;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* Контакты */
.contacts { display: grid; gap: 24px; }

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.contacts h4 { margin: 10px 0 6px; }

.contacts p { margin: 0 0 10px; color: var(--gray-700); }

.socials { display: flex; gap: 10px; }

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-weight: 700;
  font-size: 12px;
  color: var(--blue-600);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.socials a:hover { border-color: var(--blue-500); transform: translateY(-2px); }

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}


.footer__links { display: flex; gap: 14px; flex-wrap: wrap; }

.footer__links a { color: #e2e8f0; font-weight: 600; }

/* Модальное окно */
.modal-login {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.modal-login.is-open { display: flex; }

.modal-login__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
}

.modal-login__dialog {
  position: relative;
  width: min(420px, 92%);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  border: 1px solid var(--gray-200);
  z-index: 1;
}

.modal-login__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-login__close {
  border: none;
  background: var(--gray-100);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--gray-700);
  font-size: 16px;
}

.form-bn { display: grid; gap: 12px; }

.form-bn label { display: grid; gap: 6px; font-weight: 600; color: var(--gray-900); }

.form-bn input {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  font-size: 14px;
  font-family: inherit;
}

.form-bn input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 122, 229, 0.18);
}

/* Yii / Bootstrap совместимость */
.main-content--boxed { padding: 24px 0 48px; }

.main-content--boxed > .container { width: min(1200px, 92%); margin: 0 auto; }

.alert { border-radius: var(--radius-md); margin-bottom: 16px; }

.breadcrumb { background: transparent; padding: 12px 0; font-size: 14px; }

.breadcrumb a { color: var(--blue-600); }

.grid-view, .list-view { font-size: 14px; }

.pagination .page-link { border-radius: 8px; color: var(--blue-600); }

.pagination .active .page-link { background: var(--blue-600); border-color: var(--blue-600); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.calendar-widget { list-style: none; padding: 0; margin: 0; }

.calendar-widget li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.calendar-widget a { color: var(--blue-600); font-weight: 600; }

.admin-layout .header { position: relative; }

@media (max-width: 900px) {
  .nav--desktop { display: none; }
  .nav-toggle { display: inline-flex !important; }
}

@media (min-width: 901px) {
  .nav-toggle { display: none !important; }
  .nav--mobile { display: none !important; }
}

/* FAQ, placeholder, контентные блоки */
.faq-list { display: grid; gap: 12px; margin-top: 20px; }

.faq-item { padding: 0; overflow: hidden; }

.faq-item__q {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 18px;
  list-style: none;
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__a {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--gray-700);
}

.placeholder-banner {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--gray-200);
  background: linear-gradient(135deg, #f8fbff, #fff);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 20px 0;
}

.placeholder-banner__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(100, 116, 139, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100, 116, 139, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.placeholder-banner span {
  position: relative;
  z-index: 1;
  font-weight: 600;
  color: var(--gray-500);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 999px;
}

.content-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
}

.info-list { margin: 0; padding-left: 20px; color: var(--gray-700); }

.info-list li { margin-bottom: 8px; }

.cta-band {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.cta-band h2 { margin-top: 0; color: #fff; }

.cta-band p { opacity: 0.95; max-width: 560px; margin: 0 auto 16px; }

.cta-band .btn--secondary { background: #fff !important; color: var(--blue-700) !important; }

@media (max-width: 720px) {
  .hero { padding-top: 36px; }
  .section { padding: 44px 0; }
}
