/* ============================================================
   NovaGruz — стилі контентних сторінок (.ng-*)
   Файл: /templates/novagruz/css/ng-pages.css
   Версія: 6.0 (2026-07-04)

   Канонічний стиль: сторінка автовишки (секції-картки)
   Ширина контейнера: сторінка тарифів (1200px, без бокового padding)
   Містить УСІ класи обох сторінок. Унікальні класи тарифів
   адаптовано під картковий стиль.

   Використання: обгорнути контент статті у <div class="ng-page">
   ============================================================ */

.ng-page {
  --ng-primary: #ff6b1a;
  --ng-primary-dark: #e85d10;
  --ng-primary-light: #fff4ec;
  --ng-gray-900: #111827;
  --ng-gray-700: #4a5568;
  --ng-gray-600: #718096;
  --ng-gray-200: #e2e8f0;
  --ng-gray-100: #f7fafc;
  --ng-bg: #ffffff;
  --ng-border-warm: #ffd7b8;
  --ng-radius: 16px;
  --ng-radius-lg: 22px;
  --ng-shadow-card: 0 12px 35px rgba(15, 23, 42, .06);
  --ng-shadow-btn: 0 12px 24px rgba(255, 107, 26, .28);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1a1a1a;
  line-height: 1.65;
}
.ng-page *, .ng-page *::before, .ng-page *::after { box-sizing: border-box; }
.ng-page p { margin: 0 0 16px; color: var(--ng-gray-700); }
.ng-page strong { color: var(--ng-gray-900); font-weight: 700; }
.ng-page a { color: var(--ng-primary); text-decoration: none; transition: color .2s; }
.ng-page a:hover { color: var(--ng-primary-dark); text-decoration: underline; }
.ng-page ul, .ng-page ol { padding-left: 24px; margin: 0 0 20px; }
.ng-page li { margin: 10px 0; color: var(--ng-gray-700); line-height: 1.65; }
.ng-page ol li::marker { color: var(--ng-primary); font-weight: 700; }
.ng-page ul li::marker { color: var(--ng-primary); }

/* --- Секції-картки (канон) --- */
.ng-hero, .ng-section, .ng-cta-block {
  padding: 42px 26px;
  margin: 30px 0;
  border-radius: var(--ng-radius-lg);
  background: var(--ng-bg);
  box-shadow: var(--ng-shadow-card);
}

/* --- Hero --- */
.ng-hero {
  background: linear-gradient(135deg, #fff4ec 0%, #ffe7d2 48%, #fff 100%);
  border: 1px solid var(--ng-border-warm);
}
.ng-hero-badge, .ng-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ng-primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.ng-hero h1 { font-size: 44px; line-height: 1.12; margin: 0 0 18px; color: var(--ng-gray-900); }
.ng-hero h1 em { color: var(--ng-primary); font-style: normal; }
.ng-hero-desc, .ng-section-desc { font-size: 18px; color: var(--ng-gray-700); max-width: 920px; margin: 0 0 20px; }
.ng-hero-cta, .ng-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* --- Hero image --- */
.ng-hero-img { margin: 30px 0; border-radius: var(--ng-radius-lg); overflow: hidden; box-shadow: var(--ng-shadow-card); }
.ng-hero-img img { width: 100%; height: auto; display: block; }

/* --- Кнопки --- */
.ng-btn-primary, .ng-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 800;
  transition: .2s ease;
  text-align: center;
}
.ng-btn-primary { background: var(--ng-primary); color: #fff !important; box-shadow: var(--ng-shadow-btn); }
.ng-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(255, 107, 26, .34); color: #fff !important; }
.ng-btn-outline { background: #fff; color: #1a1a1a !important; border: 2px solid var(--ng-primary); }
.ng-btn-outline:hover { background: var(--ng-primary-light); }

/* --- Сітки: stats / features / related --- */
.ng-stats, .ng-features, .ng-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.ng-stat-item, .ng-feature, .ng-related-card, .ng-option {
  border: 1px solid var(--ng-gray-200);
  border-radius: var(--ng-radius);
  padding: 22px;
  background: #fff;
}
.ng-stat-item { background: #fffaf6; }
.ng-stat-num { font-size: 28px; font-weight: 900; color: var(--ng-gray-900); line-height: 1.1; }
.ng-stat-label { color: var(--ng-gray-600); font-size: 13px; text-transform: uppercase; margin-top: 6px; }

/* --- Заголовки секцій --- */
.ng-section h2, .ng-page h2 { font-size: 32px; line-height: 1.2; margin: 0 0 16px; color: var(--ng-gray-900); }
.ng-section h3, .ng-page h3 { font-size: 20px; margin: 0 0 10px; color: var(--ng-gray-900); }

/* --- Feature --- */
.ng-feature-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--ng-primary-light);
  font-size: 24px;
  margin-bottom: 12px;
}
.ng-feature p { font-size: 15px; margin: 0; color: var(--ng-gray-600); }

/* --- Дві колонки з опціями --- */
.ng-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 24px; }
.ng-option-label { display: inline-flex; color: var(--ng-primary); font-weight: 800; font-size: 13px; text-transform: uppercase; margin-bottom: 8px; }
.ng-option ul { padding-left: 20px; margin: 12px 0 0; }

/* --- Таблиці --- */
.ng-table-wrap { overflow-x: auto; border-radius: var(--ng-radius); border: 1px solid var(--ng-gray-200); margin: 25px 0; background: #fff; }
.ng-table-wrap table { width: 100%; border-collapse: collapse; min-width: 680px; }
.ng-table-wrap th { background: var(--ng-primary); color: #fff; text-align: left; font-weight: 800; }
.ng-table-wrap th, .ng-table-wrap td { padding: 15px; border-bottom: 1px solid var(--ng-gray-200); vertical-align: top; }
.ng-table-wrap tr:last-child td { border-bottom: 0; }
.ng-table-wrap td { color: var(--ng-gray-700); }
.ng-table-wrap td strong { color: var(--ng-gray-900); }

/* --- Keyfact / Tip / Note --- */
.ng-keyfact {
  background: var(--ng-primary-light);
  border-left: 5px solid var(--ng-primary);
  padding: 20px;
  border-radius: 14px;
  margin: 22px 0;
}
.ng-keyfact p { margin: 0; color: var(--ng-gray-900); }
.ng-tip {
  background: var(--ng-gray-100);
  padding: 18px 24px;
  border-radius: 14px;
  border-left: 3px solid var(--ng-primary);
  margin: 20px 0;
  font-size: 15px;
  color: var(--ng-gray-700);
}
.ng-note { font-size: 14px; color: var(--ng-gray-600); }

/* --- Процес (нумеровані кроки, канон автовишки) --- */
.ng-process { counter-reset: step; display: grid; gap: 14px; margin-top: 22px; }
.ng-process-item {
  position: relative;
  padding: 18px 18px 18px 68px;
  border: 1px solid var(--ng-gray-200);
  border-radius: var(--ng-radius);
  background: #fff;
}
.ng-process-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ng-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* --- Steps (легасі-класи зі сторінок тарифного типу; той самий вигляд) --- */
.ng-steps { counter-reset: ngstep; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; }
.ng-step {
  position: relative;
  padding: 22px 22px 22px 68px;
  border: 1px solid var(--ng-gray-200);
  border-radius: var(--ng-radius);
  background: #fff;
}
.ng-step::before {
  counter-increment: ngstep;
  content: counter(ngstep);
  position: absolute;
  left: 18px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ng-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.ng-step h3 { font-size: 17px; margin: 0 0 8px; }
.ng-step p { font-size: 14px; margin: 0; color: var(--ng-gray-600); }

/* --- FAQ --- */
.ng-faq details {
  border: 1px solid var(--ng-gray-200);
  border-radius: 14px;
  margin: 10px 0;
  padding: 18px;
  background: #fff;
}
.ng-faq summary { font-weight: 800; cursor: pointer; color: var(--ng-gray-900); }
.ng-faq-content { margin-top: 12px; color: var(--ng-gray-700); }
.ng-faq-content p:last-child { margin: 0; }
.ng-faq-group { margin-bottom: 40px; }
.ng-faq-group-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ng-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--ng-primary);
}

/* --- Перелінковка (related) --- */
.ng-related-card { text-decoration: none !important; color: inherit; display: flex; gap: 14px; transition: .2s ease; }
.ng-related-card:hover { transform: translateY(-2px); border-color: var(--ng-primary); background: #fffaf6; }
.ng-related-emoji { font-size: 28px; line-height: 1; }
.ng-related-title { font-weight: 900; color: var(--ng-gray-900); }
.ng-related-desc { color: var(--ng-gray-600); font-size: 14px; margin-top: 3px; }

/* --- CTA-блок --- */
.ng-cta-block {
  text-align: center;
  background: linear-gradient(135deg, #fff4ec, #ffe5d0);
  border: 1px solid var(--ng-border-warm);
}
.ng-cta-block h2 { font-size: 34px; margin: 0 0 12px; }
.ng-cta-block p { max-width: 640px; margin-left: auto; margin-right: auto; }
.ng-cta-block .ng-cta-buttons { justify-content: center; align-items: center; }
.ng-cta-info { color: var(--ng-gray-700); margin-top: 18px; font-size: 14px; text-align: center; }
.ng-cta-contacts { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; text-align: center; }

/* ============================================================
   Класи зі сторінки тарифів — адаптовано під картковий стиль
   ============================================================ */

/* --- Price cards --- */
.ng-price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 26px 0;
}
.ng-price-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--ng-radius);
  border: 1px solid var(--ng-gray-200);
  transition: .2s ease;
  text-align: center;
  position: relative;
}
.ng-price-card:hover { border-color: var(--ng-primary); transform: translateY(-2px); background: #fffaf6; }
.ng-price-card.featured {
  border: 2px solid var(--ng-primary);
  background: linear-gradient(135deg, #fff 0%, var(--ng-primary-light) 100%);
}
.ng-price-card.featured::before {
  content: 'Популярний';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ng-primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ng-price-card-type { font-size: 17px; font-weight: 800; color: var(--ng-gray-900); margin-bottom: 8px; }
.ng-price-card-cap { font-size: 13px; color: var(--ng-gray-600); margin-bottom: 16px; }
.ng-price-card-price { font-size: 30px; font-weight: 900; color: var(--ng-primary); line-height: 1; margin-bottom: 6px; }
.ng-price-card-unit { font-size: 13px; color: var(--ng-gray-600); margin-bottom: 18px; }
.ng-price-card-city { font-size: 13px; color: var(--ng-gray-700); padding-top: 16px; border-top: 1px solid var(--ng-gray-200); }

/* --- Saving cards --- */
.ng-saving-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 26px 0;
}
.ng-saving-card {
  background: #fff;
  border: 1px solid var(--ng-gray-200);
  border-radius: var(--ng-radius);
  padding: 24px 22px;
  position: relative;
  transition: .2s ease;
}
.ng-saving-card:hover { border-color: var(--ng-primary); transform: translateY(-2px); background: #fffaf6; }
.ng-saving-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--ng-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 800;
}
.ng-saving-card h3 { margin: 0 0 12px; font-size: 17px; padding-right: 80px; }
.ng-saving-card p { margin: 0; font-size: 15px; }

/* --- Tabs info (входить / окремо) --- */
.ng-tabs-info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
.ng-tab { background: var(--ng-gray-100); padding: 26px; border-radius: var(--ng-radius); border: 1px solid var(--ng-gray-200); }
.ng-tab.positive { border-top: 4px solid #22c55e; }
.ng-tab.negative { border-top: 4px solid #f59e0b; }
.ng-tab h3 { margin: 0 0 18px; font-size: 17px; }
.ng-tab ul { list-style: none; padding: 0; margin: 0; }
.ng-tab ul li { padding: 8px 0 8px 30px; position: relative; margin: 0; font-size: 15px; }
.ng-tab ul li::marker { content: none; }
.ng-tab.positive ul li::before { content: '✓'; position: absolute; left: 0; color: #22c55e; font-weight: 800; font-size: 17px; }
.ng-tab.negative ul li::before { content: '+'; position: absolute; left: 0; color: #f59e0b; font-weight: 800; font-size: 20px; }

/* --- Services --- */
.ng-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 26px 0; }
.ng-service {
  background: #fff;
  padding: 28px 26px;
  border-radius: var(--ng-radius);
  border: 1px solid var(--ng-gray-200);
  transition: .2s ease;
  display: flex;
  flex-direction: column;
}
.ng-service:hover { transform: translateY(-2px); border-color: var(--ng-primary); background: #fffaf6; }
.ng-service-emoji { font-size: 28px; margin-bottom: 14px; }
.ng-service h3 { font-size: 18px; margin: 0 0 12px; }
.ng-service p { font-size: 15px; margin: 0 0 16px; color: var(--ng-gray-600); flex-grow: 1; }
.ng-service ul { list-style: none; padding: 0; margin: 0 0 18px; }
.ng-service ul li { padding: 6px 0 6px 24px; position: relative; font-size: 15px; color: var(--ng-gray-700); margin: 0; }
.ng-service ul li::before { content: '✓'; position: absolute; left: 0; color: var(--ng-primary); font-weight: 800; }
.ng-service ul li::marker { content: none; }
.ng-service-link { color: var(--ng-primary); font-weight: 700; font-size: 15px; margin-top: auto; }

/* --- City pills --- */
.ng-cities { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.ng-city-pill {
  background: var(--ng-gray-100);
  color: var(--ng-gray-900) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: .2s ease;
  border: 1px solid var(--ng-gray-200);
  text-decoration: none !important;
}
.ng-city-pill:hover { background: var(--ng-primary); color: #fff !important; border-color: var(--ng-primary); transform: translateY(-1px); }

/* --- Advantage --- */
.ng-advantage {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px;
  background: #fffaf6;
  border: 1px solid var(--ng-gray-200);
  border-left: 5px solid var(--ng-primary);
  border-radius: var(--ng-radius);
  margin-bottom: 18px;
}
.ng-advantage-icon {
  width: 70px;
  height: 70px;
  background: var(--ng-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.ng-advantage h3 { margin: 0 0 10px; font-size: 19px; }
.ng-advantage p { margin: 0; color: var(--ng-gray-700); }

/* --- Data list --- */
.ng-data-list {
  background: #fff;
  border: 1px solid var(--ng-gray-200);
  border-radius: var(--ng-radius);
  padding: 26px;
  margin: 20px 0;
}
.ng-data-list ul { list-style: none; padding: 0; margin: 0; }
.ng-data-list li { padding: 12px 0 12px 36px; position: relative; border-bottom: 1px solid var(--ng-gray-200); margin: 0; }
.ng-data-list li:last-child { border-bottom: none; }
.ng-data-list li::marker { content: none; }
.ng-data-list li::before { content: '📋'; position: absolute; left: 0; top: 12px; }

/* --- Misc --- */
.ng-updated {
  display: inline-block;
  color: var(--ng-gray-600);
  font-size: 14px;
  margin-bottom: 22px;
  padding: 6px 14px;
  background: var(--ng-gray-100);
  border-radius: 100px;
}
.ng-calc-placeholder {
  background: var(--ng-gray-100);
  border: 2px dashed var(--ng-gray-200);
  padding: 40px;
  border-radius: var(--ng-radius);
  text-align: center;
  color: var(--ng-gray-600);
  margin: 25px 0;
}
.ng-calc-placeholder strong { color: var(--ng-primary); }

/* --- Mobile --- */
@media (max-width: 640px) {
  .ng-hero h1 { font-size: 34px; }
  .ng-section h2, .ng-page h2 { font-size: 26px; }
  .ng-cta-block h2 { font-size: 28px; }
  .ng-hero, .ng-section, .ng-cta-block { padding: 30px 18px; }
  .ng-btn-primary, .ng-btn-outline { width: 100%; }
  .ng-stats { grid-template-columns: repeat(2, 1fr); }
  .ng-stat-num { font-size: 22px; }
  .ng-tabs-info { grid-template-columns: 1fr; }
  .ng-advantage { grid-template-columns: 1fr; gap: 15px; }
  .ng-table-wrap th, .ng-table-wrap td { padding: 10px 8px; font-size: 13px; }
  .ng-saving-card h3 { padding-right: 70px; }
}

/* ============================================================
   v3 — додано зі сторінки «Послуги вантажників» (2026-07-04)
   ============================================================ */

/* --- Кастомний калькулятор вантажників (перенесено 1:1) --- */
.ng-custom-calc {
  max-width: 450px;
  margin: 40px auto;
  padding: 35px;
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid #ffcc00;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.ng-custom-calc h2 { text-align: center; margin-bottom: 25px; font-size: 20px; font-weight: 800; }
.ng-custom-calc label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; color: #555; }
.ng-custom-calc select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  background-color: #fcfcfc;
  height: auto !important;
}
.ng-calc-btn {
  width: 100%;
  background: #ffcc00;
  color: #000;
  border: none;
  padding: 18px;
  font-weight: 800;
  font-size: 17px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}
.ng-calc-btn:active { transform: scale(0.98); }
#m_res_box {
  display: none;
  margin-top: 25px;
  padding: 20px;
  background: #fff9e6;
  border-radius: 12px;
  text-align: center;
  border: 1px dashed #ffcc00;
}

/* --- Split: текст + зображення у дві колонки --- */
.ng-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
  align-items: center;
}
.ng-split img {
  width: 100%;
  height: auto;
  border-radius: var(--ng-radius);
  box-shadow: var(--ng-shadow-card);
}

/* --- Альтернативний текст бейджа на featured-картці --- */
.ng-price-card.featured.ng-badge-opt::before { content: 'Оптимально'; }

@media (max-width: 640px) {
  .ng-split { grid-template-columns: 1fr; }
}

/* ============================================================
   v4 — додано зі сторінки «Вантажне таксі Харків» (2026-07-04)
   ============================================================ */

/* --- Tasks: картки завдань із посиланням --- */
.ng-tasks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 26px 0;
}
.ng-task {
  background: #fff;
  padding: 26px 24px;
  border-radius: var(--ng-radius);
  border: 1px solid var(--ng-gray-200);
  transition: .2s ease;
  display: flex;
  flex-direction: column;
}
.ng-task:hover { transform: translateY(-2px); border-color: var(--ng-primary); background: #fffaf6; }
.ng-task-emoji { font-size: 28px; margin-bottom: 14px; }
.ng-task h3 { margin: 0 0 12px; font-size: 17px; }
.ng-task p { font-size: 15px; margin: 0 0 16px; color: var(--ng-gray-600); flex-grow: 1; }
.ng-task-link { color: var(--ng-primary); font-weight: 700; font-size: 15px; margin-top: auto; }

/* --- Districts: пігулки районів міста --- */
.ng-districts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.ng-district {
  background: var(--ng-gray-100);
  color: var(--ng-gray-900);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: .2s ease;
  border: 1px solid var(--ng-gray-200);
}
.ng-district:hover { background: var(--ng-primary-light); border-color: var(--ng-primary); transform: translateY(-1px); }

/* ============================================================
   v5 — додано зі сторінки «Вивіз будівельного сміття» (2026-07-04)
   ============================================================ */

/* --- Case: картки реальних замовлень/кейсів --- */
.ng-case {
  background: #fff;
  border-left: 4px solid var(--ng-primary);
  border-radius: var(--ng-radius);
  padding: 24px 28px;
  margin: 18px 0;
  border: 1px solid var(--ng-gray-200);
  border-left: 4px solid var(--ng-primary);
}
.ng-case-meta {
  font-size: 13px;
  color: var(--ng-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.ng-case h3 { margin: 0 0 10px; font-size: 19px; }
.ng-case p { margin: 0; font-size: 15px; }

/* --- Process у форматі <ol><li> зі <strong> як заголовком --- */
/* (варіант поряд із .ng-process-item; тут кроки — це <li>) */
ol.ng-process {
  counter-reset: ngprocol;
  list-style: none;
  padding: 0;
  margin: 26px 0;
}
ol.ng-process li {
  position: relative;
  padding: 20px 25px 20px 75px;
  margin: 0 0 14px;
  background: #fff;
  border-radius: var(--ng-radius);
  border: 1px solid var(--ng-gray-200);
  counter-increment: ngprocol;
  transition: .2s ease;
}
ol.ng-process li:hover { border-color: var(--ng-primary); background: #fffaf6; }
ol.ng-process li::before {
  content: counter(ngprocol);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: var(--ng-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
}
ol.ng-process li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ng-gray-900);
  font-size: 17px;
}

/* ============================================================
   v6 — додано зі сторінки «Транспорт» (2026-07-04)
   ============================================================ */

/* --- Vehicle cards: картки авто із зображеннями --- */
.ng-vehicles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 26px 0;
}
.ng-vehicle-card {
  background: #fff;
  border: 1px solid var(--ng-gray-200);
  border-radius: var(--ng-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .2s ease;
  text-decoration: none !important;
  color: inherit;
}
.ng-vehicle-card:hover {
  transform: translateY(-3px);
  border-color: var(--ng-primary);
  box-shadow: var(--ng-shadow-card);
}
.ng-vehicle-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--ng-gray-100);
}
.ng-vehicle-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.ng-vehicle-title { font-size: 18px; font-weight: 800; color: var(--ng-gray-900); margin: 0 0 10px; }
.ng-vehicle-specs { list-style: none; padding: 0; margin: 0 0 16px; }
.ng-vehicle-specs li {
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: 14px;
  color: var(--ng-gray-700);
  margin: 0;
}
.ng-vehicle-specs li::marker { content: none; }
.ng-vehicle-specs li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ng-primary);
  font-weight: 800;
}
.ng-vehicle-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--ng-primary);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ng-gray-200);
}
.ng-vehicle-link { color: var(--ng-primary); font-weight: 700; font-size: 15px; margin-top: 8px; }

/* ============================================================
   КАЛЬКУЛЯТОР MAPS НА СТОРІНЦІ ТАРИФІВ (.ng-calcbox)
   ============================================================
   ЩО ЗРОБИТИ В ng-pages.css:
   1. ВИДАЛИТИ старий блок "КАЛЬКУЛЯТОР НА СТОРІНЦІ ТАРИФІВ
      (.ng-tarcalc)" (якщо він був доданий) — від його коментаря
      до кінця останнього @media з .ng-tarcalc правилами.
   2. ДОДАТИ цей блок у кінець файлу.
   3. Версію ng-pages.css?v= в index.php вже піднято до v=5
      у файлі index.php з цієї ж поставки.

   Той самий калькулятор, що на головній (Google Places +
   Distance Matrix), стилі скоуплені під .ng-page.
   ============================================================ */

.ng-page .ng-calcbox {
    max-width: 460px;
    margin: 24px auto;
    padding: 28px 24px;
    background: #fff;
    border: 1.5px solid #ff6b1a;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(255,107,26,0.12);
}
.ng-page .ng-calcbox-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    color: #1a1a1a;
}
.ng-page .ng-calc-field {
    margin-bottom: 16px;
}
.ng-page .ng-calc-field label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #4a5568;
    font-weight: 500;
}
.ng-page .ng-calc-field input,
.ng-page .ng-calc-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s;
}
.ng-page .ng-calc-field input:focus,
.ng-page .ng-calc-field select:focus {
    outline: none;
    border-color: #ff6b1a;
}

/* Google PlaceAutocompleteElement — custom element, який замінює
   звичайний input після ініціалізації Maps API */
.ng-page .ng-calc-field gmp-place-autocomplete {
    width: 100%;
    display: block;
}
.ng-page .ng-calc-field gmp-place-autocomplete::part(input) {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.ng-page .ng-calc-field gmp-place-autocomplete::part(input):focus {
    outline: none;
    border-color: #ff6b1a;
}

.ng-page .ng-calc-submit {
    width: 100%;
    background: #ff6b1a;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 8px 20px rgba(255,107,26,0.25);
}
.ng-page .ng-calc-submit:hover {
    background: #e85d10;
    transform: translateY(-1px);
}
.ng-page .ng-calc-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.ng-page .ng-calc-result {
    margin-top: 20px;
    padding: 16px;
    background: #fff4ec;
    border: 1px solid #ffd9b5;
    border-radius: 10px;
    text-align: center;
}
.ng-page .ng-calc-result-label {
    font-size: 13px;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.ng-page .ng-calc-result-price {
    font-size: 30px;
    color: #ff6b1a;
    font-weight: 800;
    margin: 8px 0;
    letter-spacing: -0.01em;
}
.ng-page .ng-calc-result small {
    display: block;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.5;
}
.ng-page .ng-calc-error-box {
    background: #fee;
    border-color: #fcc;
    color: #c00;
}
.ng-page .ng-calc-error-box small {
    color: #c00;
}

.ng-page .ng-calc-dogruz {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255,107,26,0.08);
    border: 1px dashed rgba(255,107,26,0.4);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #4a5568;
    text-align: left;
}
.ng-page .ng-calc-dogruz-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.ng-page .ng-calc-dogruz-text {
    font-weight: 500;
}

.ng-page .ng-calcbox-note {
    font-size: 13px;
    color: #4a5568;
    text-align: center;
    border-top: 1px solid #ffd9b5;
    padding-top: 12px;
    margin-top: 16px;
    line-height: 1.5;
}
.ng-page .ng-calcbox-note a {
    color: #ff6b1a;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
}

@media (max-width: 480px) {
    .ng-page .ng-calcbox {
        padding: 22px 16px;
    }
    .ng-page .ng-calc-result-price {
        font-size: 26px;
    }
}

/* --- Warning block (небезпечні напрямки) --- */
.ng-warn {
  background: #fff8e6;
  border-left: 4px solid #f0a800;
  padding: 22px 28px;
  border-radius: var(--ng-radius);
  margin: 25px 0;
}
.ng-warn p { margin: 0; color: var(--ng-gray-900); font-size: 1em; }

/* --- Related card text wrapper (використовується в розмітці related-блоків) --- */
.ng-related-text { flex-grow: 1; }