/* ========================================================
   Agency Page CSS — matching neuro42.ru/agency/
   Source: Agency.html (SingleFile capture)
   ======================================================== */

/* -------------------------------------------------------
   1. ROOT / CSS VARIABLES
   ------------------------------------------------------- */
:root {
  --container-max-width: 1140px;
  --e-global-typography-primary-font-family: "Bounded", Sans-serif;
  --e-global-typography-primary-font-weight: 700;
  --e-global-typography-text-font-family: "Bounded", Sans-serif;
  --e-global-typography-text-font-weight: 400;
  --e-global-typography-accent-font-weight: 500;
  --e-global-color-primary: #FFFFFF;
  --e-global-color-accent: #000000;
  --e-global-color-5944cb6: #BF1158;
  --neuro-primary-gray: #7A7A7A;
  --neuro-primary-border-purple: #7D5294;
  --neuro-primary-background-black: #181818;
  --neuro-hover-purple: #874FA8;
  --kit-widget-spacing: 20px;
}

/* -------------------------------------------------------
   2. GLOBAL BASE
   ------------------------------------------------------- */
.elementor-kit-6 {
  background-color: #101010;
  color: #FFFFFF;
}
.elementor-kit-6 a { color: #CA3ACA; }
.e-con { --container-max-width: 1140px; }
p { margin-block-end: 0; }
ul { padding-inline-start: 20px; }

/* -------------------------------------------------------
   3. HERO SECTION
   ------------------------------------------------------- */
.agency-hero {
  position: relative;
  padding: 180px 20px 0;
  text-align: center;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
}
.agency-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25,25,25,0) 0%, #101010 100%);
  z-index: 1;
}
.agency-hero > * { position: relative; z-index: 2; }
.agency-hero h1 {
  font-family: "Bounded", Sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.agency-hero .hero-sub {
  font-family: "Bounded", Sans-serif;
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 32px;
}
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,16,16,1) 0%, rgba(16,16,16,0) 100%);
  z-index: 1;
}

/* -------------------------------------------------------
   4. SECTION HEADINGS
   ------------------------------------------------------- */
.agency-section-title {
  font-family: "Bounded", Sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 16px;
}
.agency-section-subtitle {
  font-family: "Bounded", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #FFFFFF;
  text-align: center;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* -------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------- */
.agency-btn {
  display: inline-block;
  font-family: "Bounded", Sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  padding: 12px 24px;
  background-color: #FFFFFF;
  color: #000000;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.agency-btn:hover { background-color: #E0E0E0; }

.agency-btn-outline {
  display: inline-block;
  font-family: "Bounded", Sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  padding: 12px 24px;
  background: linear-gradient(#101010, #101010) padding-box,
              linear-gradient(135deg, #BF1158, #CA3ACA, #7D5294) border-box;
  color: #FFFFFF;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.agency-btn-outline:hover {
  background: linear-gradient(135deg, #BF1158, #CA3ACA, #7D5294) padding-box,
              linear-gradient(135deg, #BF1158, #CA3ACA, #7D5294) border-box;
}

/* -------------------------------------------------------
   6. CONTAINER
   ------------------------------------------------------- */
.agency-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------------------------------------
   7. THREE-COLUMN INTRO
   ------------------------------------------------------- */
.agency-intro-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.agency-intro-col {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  border: 1px solid #C8C8C8;
  border-radius: 20px;
  padding: 30px;
}
.agency-intro-col img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.agency-intro-col p {
  font-family: "Bounded", Sans-serif;
  font-size: 16px;
  color: #FFFFFF;
  line-height: 1.6;
}

/* -------------------------------------------------------
   8. PROBLEM COMPARISON (3 columns)
   ------------------------------------------------------- */
.agency-compare-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.agency-compare-col {
  flex: 1;
  min-width: 280px;
  border: 1px solid #C8C8C8;
  border-radius: 20px;
  padding: 30px;
}
.agency-compare-col h3 {
  font-family: "Bounded", Sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.agency-compare-col ul {
  list-style-type: disc;
  padding-inline-start: 20px;
}
.agency-compare-col li {
  font-family: "Bounded", Sans-serif;
  font-size: 16px;
  color: #FFFFFF;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* -------------------------------------------------------
   9. CPA BANNER (gradient section)
   ------------------------------------------------------- */
.agency-cpa {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #BF1158, #7D5294);
}
.agency-cpa h3 {
  font-family: "Bounded", Sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

/* -------------------------------------------------------
   10. BUSINESS FUNCTION CARDS (3-col grid)
   ------------------------------------------------------- */
.agency-functions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.agency-function-card {
  flex: 1;
  min-width: 280px;
  background-color: transparent;
  border: 1px solid #C8C8C8;
  border-radius: 20px;
  padding: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.agency-function-card h3 {
  font-family: "Bounded", Sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.agency-function-card p {
  font-family: "Bounded", Sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  opacity: 0.8;
  line-height: 1.5;
}

/* -------------------------------------------------------
   11. PROJECT STEPS
   ------------------------------------------------------- */
.agency-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.agency-step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 30px;
  border: 1px solid #C8C8C8;
  border-radius: 20px;
}
.agency-step-num {
  font-family: "Bounded", Sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #CA3ACA;
  margin-bottom: 12px;
}
.agency-step p {
  font-family: "Bounded", Sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.5;
}

/* -------------------------------------------------------
   12. CASE CARDS (3 cards)
   ------------------------------------------------------- */
.agency-cases-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.agency-case-card {
  flex: 1;
  min-width: 280px;
  background-color: #1A1A1A;
  border: 1px solid #C8C8C8;
  border-radius: 20px;
  padding: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.agency-case-card img {
  width: 185px;
  height: 185px;
  object-fit: contain;
}
.agency-case-card h3 {
  font-family: "Bounded", Sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}
.agency-case-card .case-label {
  font-family: "Bounded", Sans-serif;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.agency-case-card p {
  font-family: "Bounded", Sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.6;
}

/* -------------------------------------------------------
   13. RESULTS (2x2 grid with gradient dividers)
   ------------------------------------------------------- */
.agency-results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.agency-result-item {
  flex: 1;
  min-width: 280px;
  text-align: center;
}
.agency-result-number {
  font-family: "Bounded", Sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
}
.res-divided {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(216,0,41,0.8), rgba(232,63,162,0.8), rgba(0,29,211,0.8));
  margin: 12px 0;
}
.res-divided-revers {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(0,29,211,0.8), rgba(232,63,162,0.8), rgba(216,0,41,0.8));
  margin: 12px 0;
}
.agency-result-text {
  font-family: "Bounded", Sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  opacity: 0.8;
  line-height: 1.5;
}

/* -------------------------------------------------------
   14. SECURITY (2-column bullets)
   ------------------------------------------------------- */
.agency-security-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}
.agency-security-col {
  flex: 1;
  min-width: 280px;
  border: 1px solid #508EE8;
  border-radius: 20px;
  padding: 30px;
}
.agency-security-col ul {
  list-style-type: disc;
  padding-inline-start: 20px;
}
.agency-security-col li {
  font-family: "Bounded", Sans-serif;
  font-size: 16px;
  color: #FFFFFF;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* -------------------------------------------------------
   15. FITS / DOESN'T FIT (2 columns)
   ------------------------------------------------------- */
.agency-fits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.agency-fits-col {
  flex: 1;
  min-width: 280px;
  border: 1px solid #508EE8;
  border-radius: 20px;
  padding: 30px;
}
.agency-fits-col:last-child {
  border-color: #C61698;
}
.agency-fits-col h3 {
  font-family: "Bounded", Sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-align: center;
}
.agency-fits-col ul {
  list-style-type: disc;
  padding-inline-start: 20px;
}
.agency-fits-col li {
  font-family: "Bounded", Sans-serif;
  font-size: 16px;
  color: #FFFFFF;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* -------------------------------------------------------
   16. FOOTER CTA
   ------------------------------------------------------- */
.agency-footer-cta {
  padding: 80px 20px 20px;
  text-align: center;
  background: linear-gradient(180deg, #1F002A 0%, #4D1839 100%);
  position: relative;
}
.agency-footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #101010 0%, transparent 100%);
  pointer-events: none;
}
.agency-footer-cta > * { position: relative; z-index: 1; }
.agency-footer-cta h2 {
  font-family: "Bounded", Sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  padding: 100px 0 20px;
}
.agency-footer-cta p {
  font-family: "Bounded", Sans-serif;
  font-size: 18px;
  color: #FFFFFF;
  margin-bottom: 24px;
}

/* -------------------------------------------------------
   17. FOOTER BOTTOM
   ------------------------------------------------------- */
.agency-footer-bottom {
  background-color: #1A1A1A;
  padding: 20px;
}
.agency-footer-heading {
  font-family: "Bounded", Sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.agency-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.agency-footer-links a {
  font-family: "Bounded", Sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  text-decoration: none;
}
.agency-footer-links a:hover { opacity: 0.7; }
.agency-copyright {
  font-family: "Bounded", Sans-serif;
  font-size: 12px;
  color: #7A7A7A;
}

/* -------------------------------------------------------
   18. RESPONSIVE
   ------------------------------------------------------- */
@media (max-width: 1024px) {
  .agency-hero h1 { font-size: 32px; }
  .agency-section-title { font-size: 28px; }
}
@media (max-width: 767px) {
  .agency-hero { padding: 120px 16px 0; }
  .agency-hero h1 { font-size: 28px; }
  .agency-section-title { font-size: 24px; }
  .agency-cpa { padding: 40px 16px; }
  .agency-footer-cta h2 { padding: 40px 0 20px; }
  .agency-intro-grid,
  .agency-compare-grid,
  .agency-functions-grid,
  .agency-cases-grid,
  .agency-results-grid,
  .agency-security-grid,
  .agency-fits-grid,
  .agency-steps {
    flex-direction: column;
  }
}
