
.senti-home { --radius: 14px; --surface: rgba(255,255,255,0.04); --border: rgba(255,255,255,0.08); --text: #e6e8ea; --muted: #a8b3cf; --primary: #3b82f6; --primary-contrast: #0b1220; color: var(--text); }
.senti-home a { color: inherit; }
.senti-section { padding: clamp(2.5rem, 4vw, 5rem) 0; }
.senti-container { width: min(1200px, 92%); margin: 0 auto; }
.senti-kicker { display:inline-block; font-size:.875rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:.5rem }
.senti-hero { display:grid; gap:clamp(1.25rem, 3vw, 3rem); grid-template-columns: 1.1fr 0.9fr; align-items:center; background: radial-gradient(1200px 400px at 20% -20%, rgba(59,130,246,.15), transparent), var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.senti-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height:1.1; margin: .25rem 0 .75rem; }
.senti-hero .lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.senti-hero-points { margin: 1rem 0 1.25rem; padding-left: 1.1rem; color: var(--muted); }
.senti-hero-points li { margin: .35rem 0; }
.senti-hero-badges { margin-top:.75rem; font-size:.95rem; color:var(--muted); }
.senti-hero-media img { 
  width:100%; 
  height:auto; 
  border-radius: var(--radius); 
  border:1px solid var(--border); 
  display:block;
  max-height: 400px;
  object-fit: cover;
}
.senti-cta { display:flex; gap:.75rem; flex-wrap:wrap; margin-top: 1rem; }
.senti-btn { display:inline-block; padding:.8rem 1.15rem; border-radius:10px; border:1px solid var(--border); text-decoration:none; font-weight:600; transition: transform .1s ease, background-color .2s ease; }
.senti-btn:hover { transform: translateY(-1px); }
.senti-btn--primary { background: var(--primary); color: white; border-color: transparent; }
.senti-btn--ghost { background: transparent; color: var(--text); }
.senti-cards { display:grid; gap:1rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.senti-card { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 1rem; display:flex; flex-direction:column; gap:.6rem; }
.senti-card img { 
  width:100%; 
  aspect-ratio: 4/3; 
  object-fit: cover; 
  border-radius: 10px; 
  border:1px solid var(--border);
  max-height: 200px;
}
.senti-card h3 { margin:.25rem 0; }
.senti-grid-3 { display:grid; gap:1rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.senti-grid-2 { display:grid; gap:1rem; grid-template-columns: repeat(2, minmax(0,1fr)); align-items:center; }
.senti-feature, .senti-use { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.senti-feature ul, .senti-list-check { padding-left: 1.15rem; color: var(--muted); }
.senti-link { display:inline-block; margin-top:.5rem; color:#93c5fd; text-decoration: none; }
.senti-steps { counter-reset: step; list-style: none; padding-left: 0; }
.senti-steps li { border-left: 3px solid var(--border); padding: .5rem 0 .5rem 1rem; margin: .35rem 0; color: var(--muted); }
.senti-cta-band { text-align:center; background: radial-gradient(900px 300px at 50% -20%, rgba(59,130,246,.15), transparent); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.senti-meta { color: var(--muted); font-size: .9rem; margin-top:.75rem; }

/* Technology section image constraints */
.senti-grid-2 figure img {
  width: 100%;
  height: auto;
  max-width: 400px;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media (max-width: 900px){
  .senti-hero { grid-template-columns: 1fr; }
  .senti-cards, .senti-grid-3 { grid-template-columns: 1fr; }
  .senti-grid-2 { grid-template-columns: 1fr; }
  
  .senti-grid-2 figure img {
    max-width: 100%;
    max-height: 250px;
  }
}

/* Mobile-first improvements */
@media (max-width: 768px) {
  .senti-container { width: 95%; }
  .senti-section { padding: clamp(1.5rem, 3vw, 3rem) 0; }
  
  .senti-hero { 
    padding: clamp(1rem, 3vw, 2rem);
    gap: clamp(1rem, 3vw, 2rem);
  }
  
  .senti-hero h1 { font-size: clamp(1.5rem, 6vw, 2.5rem); }
  .senti-hero .lead { font-size: clamp(0.9rem, 1.1vw, 1.1rem); }
  
  .senti-cta { 
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .senti-btn { 
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
  }
  
  .senti-hero-badges { 
    font-size: 0.8rem;
    text-align: center;
  }
  
  .senti-cards { gap: 1.5rem; }
  .senti-card { padding: 1.5rem; }
  
  .senti-feature, .senti-use { 
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .senti-steps li { 
    padding: 0.75rem 0 0.75rem 1.5rem;
    margin: 0.5rem 0;
  }
  
  .senti-hero-media img {
    max-height: 300px;
  }
  
  .senti-card img {
    max-height: 180px;
  }
}

@media (max-width: 480px) {
  .senti-container { width: 98%; }
  .senti-section { padding: 1rem 0; }
  
  .senti-hero { padding: 1rem; }
  .senti-hero h1 { font-size: 1.8rem; }
  
  .senti-card { padding: 1rem; }
  .senti-feature, .senti-use { padding: 1rem; }
  
  .senti-cta { gap: 0.75rem; }
  .senti-btn { padding: 0.875rem 1.25rem; }
  
  .senti-hero-media img {
    max-height: 250px;
  }
  
  .senti-card img {
    max-height: 150px;
  }
}

/* === Sentiorum Ambient Background (advanced) === */
  .senti-home { position: relative; }
  .senti-ambient {
  position: fixed;
  inset: 0;
  z-index: -3;          /* ниже всего контента */
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* не перехватывает клики */
  }

  /* Demo Modal Styles */
  .demo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .demo-modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .demo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .demo-modal-header h3 {
    margin: 0;
    color: var(--text);
  }

  .demo-modal-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
  }

  .demo-modal-close:hover {
    background: var(--border);
    color: var(--text);
  }

  .demo-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-group label {
    color: var(--text);
    font-weight: 500;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s ease;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
  }

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

  .demo-submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
  }

  .demo-submit-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
  }

  .demo-submit-btn:disabled {
    background: var(--muted);
    cursor: not-allowed;
    transform: none;
  }

  /* Result Modal Styles */
  .result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .result-modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
  }

  .result-modal-header {
    margin-bottom: 1.5rem;
  }

  .result-modal-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.5rem;
  }

  .result-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
  }

  .result-modal-close:hover {
    background: var(--border);
    color: var(--text);
  }

  .result-modal-body {
    margin-bottom: 2rem;
  }

  .result-modal-body p {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
  }

  .result-modal-footer {
    display: flex;
    justify-content: center;
  }

  .result-ok-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
  }

  .result-ok-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
  }

  /* Mobile responsiveness for modal */
  @media (max-width: 768px) {
    .demo-modal-content,
    .result-modal-content {
      padding: 1.5rem;
      margin: 1rem;
    }
    
    .demo-modal-header,
    .result-modal-header {
      margin-bottom: 1rem;
    }
    
    .demo-form {
      gap: 1rem;
    }
  }