
/* =========================================================
   DANA CASE PAGE — FULL CORRECTED CSS
   Файл: /assets/components/themematerialize/css/case-page.css
   ========================================================= */

.dana-case-body {
  background: #f4f7fb;
}

.dana-case-template {
  background: #f4f7fb;
  min-height: 100vh;
}

.dana-case-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 40px;
}

/* Защита от случайно вставленных символов ``` в MODX */
.dana-case-page {
  font-size: 0;
  line-height: 0;
}

.dana-case-page * {
  box-sizing: border-box;
}

.dana-case-page {
  width: 100%;
  color: #0f172a;
  background: #f4f7fb;
  overflow: visible;
}

.dana-case-page h1,
.dana-case-page h2,
.dana-case-page h3,
.dana-case-page p,
.dana-case-page a,
.dana-case-page span,
.dana-case-page strong,
.dana-case-page div {
  line-height: normal;
}

/* =========================================================
   HERO
   ========================================================= */

.dana-case-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: stretch;
  width: 100%;
  min-height: 560px;
  padding: 56px 28px !important;
  margin: 0 0 34px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.28), transparent 32%),
    radial-gradient(circle at 90% 8%, rgba(14, 165, 233, 0.20), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #0b1f3a 48%, #0f172a 100%) !important;
  color: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

/* Принудительно ставим контент и карточку в правильные колонки */
.dana-case-hero-content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  max-width: 740px;
  z-index: 2;
}

.dana-case-hero-card {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  z-index: 2;
}

.dana-case-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  color: #bfdbfe !important;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dana-case-hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
  color: #ffffff !important;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.dana-case-hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #dbeafe !important;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 600;
}

.dana-case-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.dana-case-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.dana-case-btn-primary {
  background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.35);
}

.dana-case-btn-primary:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.45);
}

.dana-case-btn-secondary {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.dana-case-btn-secondary:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.dana-case-hero .dana-case-btn-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  box-shadow: none;
}

.dana-case-hero .dana-case-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

/* =========================================================
   HERO CARD
   ========================================================= */

.dana-case-hero-card {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(147, 197, 253, 0.28);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.dana-case-card-title {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: rgba(219, 234, 254, 0.16);
  color: #bfdbfe !important;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dana-case-stat strong {
  display: block;
  margin: 0;
  color: #ffffff !important;
  font-size: 82px;
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.dana-case-stat span {
  display: block;
  margin-top: 10px;
  color: #dbeafe !important;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
}

.dana-case-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.dana-case-list p {
  margin: 0;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.48);
  color: #e0f2fe !important;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

/* =========================================================
   COMMON SECTIONS
   ========================================================= */

.dana-case-section {
  width: 100%;
  margin: 0 0 24px;
  padding: 36px 28px !important;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.dana-case-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.dana-case-section-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e0f2fe;
  color: #0369a1 !important;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
}

.dana-case-section h2 {
  margin: 0;
  color: #0f172a !important;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.dana-case-section h3 {
  margin: 0 0 10px;
  color: #0f172a !important;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.dana-case-lead,
.dana-case-section > p {
  max-width: 980px;
  margin: 0;
  color: #475569 !important;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 500;
}

/* =========================================================
   FEATURES GRID
   ========================================================= */

.dana-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.dana-case-feature {
  min-width: 0;
  padding: 20px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.dana-case-feature p {
  margin: 0;
  color: #64748b !important;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

/* =========================================================
   SOLUTION PRODUCTS
   ========================================================= */

.dana-case-solution-section {
  background:
    radial-gradient(circle at 90% 20%, rgba(14, 165, 233, 0.08), transparent 34%),
    #ffffff;
}

.dana-case-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.dana-case-product-card {
  min-width: 0;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff !important;
  border: 1px solid #dbeafe !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08) !important;
  overflow: hidden;
}

.dana-case-product-photo {
  display: block;
  position: relative;
  margin-bottom: 18px;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(219, 234, 254, 0.75);
  text-decoration: none !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.dana-case-product-photo img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  padding: 14px;
  background: #ffffff;
  transition: transform 0.28s ease;
}

.dana-case-product-photo span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #ffffff !important;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.dana-case-product-photo:hover img {
  transform: scale(1.04);
}

.dana-case-product-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #e0f2fe !important;
  color: #0369a1 !important;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.dana-case-product-card h3 {
  color: #0f172a !important;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.dana-case-product-card p {
  margin: 0;
  color: #334155 !important;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}

/* =========================================================
   RESULT BOX
   ========================================================= */

.dana-case-result-box {
  margin-top: 20px;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, #eaf2ff 0%, #dbeafe 100%) !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.12) !important;
}

.dana-case-result-box h3 {
  margin: 0 0 12px;
  color: #0f172a !important;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.dana-case-result-box p {
  margin: 0;
  color: #334155 !important;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}

/* =========================================================
   BENEFITS
   ========================================================= */

.dana-case-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.dana-case-benefits > div {
  min-width: 0;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc, #eef6ff);
  border: 1px solid #dbeafe;
}

.dana-case-benefits strong {
  display: block;
  margin-bottom: 8px;
  color: #2563eb !important;
  font-size: 46px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.dana-case-benefits p {
  margin: 0;
  color: #334155 !important;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 800;
}

/* =========================================================
   ANALYTICS
   ========================================================= */

.dana-case-analytics {
  background: linear-gradient(180deg, #ffffff, #f0f9ff);
}

/* =========================================================
   CTA
   ========================================================= */

.dana-case-cta {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  margin: 0 0 34px;
  padding: 34px 28px !important;
  border-radius: 26px;
  background:
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.25), transparent 32%),
    linear-gradient(135deg, #0f172a, #1e3a8a) !important;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.dana-case-cta h2 {
  margin: 0 0 10px;
  color: #ffffff !important;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.dana-case-cta p {
  margin: 0;
  color: #dbeafe !important;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
}

.dana-case-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
}

.dana-case-cta .dana-case-btn-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: none;
}

.dana-case-cta .dana-case-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

/* Якоря под фиксированное меню */
.dana-case-page #dana-case-solution,
.dana-case-page #dana-case-cta {
  scroll-margin-top: 135px;
}

/* =========================================================
   CART MODAL BASIC FIXES
   ========================================================= */

.cart-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(15, 23, 42, 0.62);
}

.cart-modal-content {
  position: relative;
  width: calc(100% - 32px);
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 5% auto;
  padding: 26px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.cart-modal-content .close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.cart-modal-actions {
  text-align: right;
  margin-top: 20px;
}

#order-payment {
  display: block !important;
  width: 100%;
  margin-top: 10px;
}

.order-button {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #00a046;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.dana-order-privacy {
  max-width: 330px;
  margin: 12px auto 0;
  color: #64748b;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.dana-order-privacy a {
  color: #00a046;
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .dana-case-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .dana-case-hero-content,
  .dana-case-hero-card {
    grid-column: 1;
    grid-row: auto;
  }

  .dana-case-hero-content {
    max-width: 100%;
  }

  .dana-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dana-case-products {
    grid-template-columns: 1fr;
  }

  .dana-case-cta {
    grid-template-columns: 1fr;
  }

  .dana-case-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .dana-case-container {
    width: 94%;
    padding-top: 16px;
  }

  .dana-case-hero {
    padding: 30px 18px !important;
    border-radius: 22px;
  }

  .dana-case-hero h1 {
    font-size: 34px;
  }

  .dana-case-hero p {
    font-size: 16px;
  }

  .dana-case-hero-actions,
  .dana-case-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dana-case-btn {
    width: 100%;
  }

  .dana-case-section,
  .dana-case-cta {
    padding: 26px 18px !important;
    border-radius: 22px;
  }

  .dana-case-grid,
  .dana-case-benefits {
    grid-template-columns: 1fr;
  }

  .dana-case-product-photo img {
    height: 190px;
  }

  .dana-case-stat strong {
    font-size: 62px;
  }
}

@media (max-width: 420px) {
  .dana-case-hero h1 {
    font-size: 30px;
  }

  .dana-case-section h2,
  .dana-case-cta h2 {
    font-size: 26px;
  }

  .dana-case-product-card h3 {
    font-size: 26px;
  }
}