/* ============================================================
   ЗАЙМ В КАРМАН — vkarman.by
   Цветовая схема: жёлто-чёрная (#FFC827) | Хедер: тёмный графит
   ============================================================ */

:root {
  /* ─ Основные жёлтые акценты ─ */
  --yellow:        #FFC827;   /* Primary brand — фирменный жёлтый */
  --yellow-dark:   #E5A800;   /* Hover / pressed */
  --yellow-light:  #FFD55A;   /* Светлый акцент (в тёмных блоках) */
  --yellow-pale:   #FFFCF0;   /* Очень светлый фон карточек */
  --yellow-border: #FFE58A;   /* Граница тинтованных блоков */

  /* ─ Тёмные тона (шапка, футер) ─ */
  --dark:          #1A1A2E;   /* Глубокий графит */
  --dark-2:        #0F0F1E;   /* footer bottom */
  --dark-mid:      #252540;

  /* ─ Нейтральные / контент ─ */
  --bg:            #F7F8FA;
  --bg-card:       #FFFFFF;
  --text:          #1A1A2E;
  --text-muted:    #6B7280;
  --border:        #E8EAED;
  --border-light:  #F1F3F5;

  /* ─ Уведомления ─ */
  --warning-bg:    #FFF9EC;
  --warning-bd:    #F59E0B;
  --warning-tx:    #92400E;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--yellow-dark); text-decoration: none; }
a:hover { color: var(--dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 700; line-height: 1.3; }

img { max-width: 100%; height: auto; }

/* ── Логотипы ─────────────────────────────────────────────── */
.site-logo-nav {
  height: 40px;
  width: auto;
  display: block;
  /* Отключаем перетаскивание */
  -webkit-user-drag: none;
  user-select: none;
}

.site-logo-footer {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

/* ── Navbar ───────────────────────────────────────────────── */
.site-navbar {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.28);
}

.site-navbar .navbar-brand {
  color: #fff;
  padding: 10px 0;
  display: flex;
  align-items: center;
  line-height: 1;
}
.site-navbar .navbar-brand:hover { opacity: 0.88; text-decoration: none; }

.site-navbar .nav-link {
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.855rem;
  font-weight: 500;
  padding: 1rem 0.6rem !important;
  transition: color 0.18s;
  white-space: nowrap;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff !important;
}
.site-navbar .nav-link.active {
  font-weight: 600;
  position: relative;
}
.site-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.6rem;
  right: 0.6rem;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px 2px 0 0;
}

.navbar-phone {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  margin-left: 1.2rem;
  flex-shrink: 0;
}
.navbar-phone a { color: var(--yellow-light); text-decoration: none; }
.navbar-phone a:hover { color: var(--yellow); }

.site-navbar .navbar-toggler {
  border: 1px solid rgba(255,255,255,0.28);
  padding: 6px 10px;
}
.site-navbar .navbar-toggler-icon { filter: invert(1); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #252540 55%, #1A1A2E 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--yellow);
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,39,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--yellow);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.2rem;
}
.hero-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  color: rgba(255,255,255,0.88);
  font-size: 0.845rem;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-contacts { display: flex; flex-direction: column; gap: 10px; }
.hero-contacts a {
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.18rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}
.hero-contacts a:hover { color: var(--yellow-light); }

.hero-address {
  color: rgba(255,255,255,0.52);
  font-size: 0.9rem;
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.06;
  font-size: 11rem;
  color: var(--yellow);
  line-height: 1;
}

/* ── Page Header (inner pages) ───────────────────────────── */
.page-header {
  background: var(--dark);
  color: #fff;
  padding: 36px 0 30px;
  margin-bottom: 40px;
  border-bottom: 4px solid var(--yellow);
}
.page-header h1 { color: #fff; font-size: 1.85rem; margin-bottom: 0.3rem; }
.page-header .breadcrumb { background: none; padding: 0; margin: 0; font-size: 0.835rem; }
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.55); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.35); }

/* ── Sections ─────────────────────────────────────────────── */
.section      { padding: 56px 0; }
.section-sm   { padding: 36px 0; }
.section-white { background: #fff; }
.section-bg   { background: var(--bg); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--yellow-dark);
  margin-bottom: 10px;
}
.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.2rem;
}

/* ── Info Cards ───────────────────────────────────────────── */
.info-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 28px 24px;
  height: 100%;
  transition: box-shadow 0.22s, transform 0.22s;
}
.info-card:hover {
  box-shadow: 0 10px 32px rgba(255,200,39,0.15);
  transform: translateY(-3px);
  border-color: var(--yellow-border);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--yellow-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--yellow-dark);
  font-size: 1.45rem;
}

.info-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.info-card p  { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.info-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yellow-dark);
  text-decoration: none;
}
.info-card .card-link:hover { color: var(--dark); text-decoration: none; }

/* ── Content Block ────────────────────────────────────────── */
.content-block {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 32px 36px;
  margin-bottom: 24px;
}
.content-block h2 {
  font-size: 1.28rem;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--yellow-pale);
}
.content-block h3 { font-size: 1.05rem; color: var(--dark); margin-top: 1.6rem; margin-bottom: 0.6rem; }
.content-block ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.content-block ul li { margin-bottom: 6px; }
.content-block ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.content-block ol li { margin-bottom: 6px; }
.content-block p { margin-bottom: 1rem; }
.content-block p:last-child { margin-bottom: 0; }

/* ── Steps ────────────────────────────────────────────────── */
.step {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: var(--yellow);
  color: var(--dark);          /* тёмный текст на жёлтом фоне */
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255,200,39,0.35);
}
.step-content h3 { font-size: 1.02rem; color: var(--dark); margin-bottom: 5px; }
.step-content p { color: var(--text-muted); margin: 0; font-size: 0.93rem; }

/* ── Notice / Info boxes ──────────────────────────────────── */
.notice-box {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-bd);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  color: var(--warning-tx);
  font-size: 0.9rem;
}
.notice-box strong { display: block; margin-bottom: 4px; }

.info-box {
  background: var(--yellow-pale);
  border-left: 4px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  color: var(--dark);
  font-size: 0.92rem;
}
.info-box a { color: var(--yellow-dark); font-weight: 600; }
.info-box strong { color: var(--dark); }

/* ── Tariff table ─────────────────────────────────────────── */
.tariff-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.tariff-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.tariff-table th {
  background: var(--dark);
  color: #fff;
  padding: 13px 16px;
  font-size: 0.855rem;
  font-weight: 600;
  text-align: left;
}
.tariff-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.tariff-table tr:last-child td { border-bottom: none; }
.tariff-table tr:nth-child(even) td { background: var(--bg); }
.tariff-table .td-label { font-weight: 600; color: var(--dark); width: 52%; }
.tariff-table .td-value { color: var(--text); }

/* ── Calc Example ─────────────────────────────────────────── */
.calc-box {
  background: var(--yellow-pale);
  border: 1px solid var(--yellow-border);
  border-radius: 14px;
  padding: 24px 28px;
}
.calc-box h3 { font-size: 1.05rem; margin-bottom: 1rem; color: var(--dark); }
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--yellow-border);
  font-size: 0.93rem;
}
.calc-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  padding-top: 14px;
}
.calc-label { color: var(--text-muted); }
.calc-value { font-weight: 600; color: var(--text); }

/* ── Rekvizity ────────────────────────────────────────────── */
.rekv-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.rekv-table tr { border-bottom: 1px solid var(--border); }
.rekv-table tr:last-child { border-bottom: none; }
.rekv-table td { padding: 10px 0; vertical-align: top; }
.rekv-table td:first-child { width: 42%; color: var(--text-muted); padding-right: 16px; }
.rekv-table td:last-child { font-weight: 500; color: var(--text); }

/* ── Contacts ─────────────────────────────────────────────── */
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-icon {
  width: 46px;
  height: 46px;
  background: var(--yellow-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow-dark);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-item h5 {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}
.contact-item p,
.contact-item a {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: block;
  line-height: 1.5;
}
.contact-item a:hover { color: var(--yellow-dark); }

.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── Documents list ──────────────────────────────────────── */
.doc-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

.doc-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.doc-item:hover { background: var(--yellow-pale); }

.doc-icon {
  width: 46px;
  height: 46px;
  background: var(--yellow-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow-dark);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.doc-info { flex: 1; min-width: 0; }
.doc-title {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.97rem;
  margin-bottom: 3px;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.doc-meta { font-size: 0.8rem; color: var(--text-muted); }

.doc-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  margin-top: 2px;
  background: var(--yellow);
  color: var(--dark);           /* тёмный текст на жёлтом */
  border-radius: 8px;
  font-size: 0.845rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(255,200,39,0.3);
}
.doc-download:hover {
  background: var(--yellow-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255,200,39,0.4);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 52px 0 0;
  margin-top: 64px;
}
.site-footer h5 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.site-footer p,
.site-footer li { font-size: 0.855rem; color: rgba(255,255,255,0.52); margin-bottom: 6px; line-height: 1.6; }
.site-footer a { color: rgba(255,255,255,0.52); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }

.footer-logo-wrap { margin-bottom: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--dark-2);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin: 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  background-color: var(--yellow) !important;
  border-color: var(--yellow) !important;
  color: var(--dark) !important;   /* тёмный текст на жёлтом */
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(255,200,39,0.3);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--yellow-dark) !important;
  border-color: var(--yellow-dark) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(255,200,39,0.4) !important;
}

/* ── Utilities ────────────────────────────────────────────── */
.text-primary { color: var(--yellow-dark) !important; }
.text-navy    { color: var(--dark) !important; }
.bg-navy      { background: var(--dark) !important; }

.divider { border: none; border-top: 2px solid var(--yellow-pale); margin: 2rem 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yellow-dark);
  text-decoration: none;
}
.card-link:hover { color: var(--dark); text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .site-navbar .navbar-nav {
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 4px;
  }
  .site-navbar .nav-link { padding: 0.55rem 0 !important; }
  .site-navbar .nav-link.active::after { display: none; }
  .navbar-phone { display: none !important; }
  .hero-emblem { display: none; }
  .site-logo-nav { height: 36px; }
}

@media (max-width: 767.98px) {
  .hero { padding: 46px 0 40px; }
  .hero-title { font-size: 1.85rem; }
  .section { padding: 40px 0; }
  .content-block { padding: 24px 20px; }
  .calc-box { padding: 20px; }
  .site-logo-footer { height: 48px; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.6rem; }
  .section-title { font-size: 1.4rem; }
  .page-header h1 { font-size: 1.5rem; }
  .doc-item { flex-wrap: wrap; gap: 10px; }
  .doc-download span { display: none; }
  .doc-download { padding: 8px 12px; }
  .site-logo-nav { height: 32px; }
}
