/* --- Variable Definitions --- */
:root {
    /* Overriding Bootstrap default colors for brand consistency */
    --bs-primary-rgb: 0, 86, 179;
    --bs-danger-rgb: 229, 62, 62;
    
    /* Custom CSS Variables */
    --primary-color: #0056B3;
    --accent-color: #E53E3E;
    --text-color: #2D3748;
    --text-light: #F7FAFC;
    --bg-dark: #111827;
    --headline-color: #1A202C;
    --green-highlight: #38A169; /* Corrected Color */
    --font-family-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --transition-speed-slow: 0.8s;
}

/* --- Base & Typography Overrides --- */
body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .h1, .h2, .h3 {
    font-family: var(--font-family-heading);
    color: var(--headline-color);
    font-weight: 600;
}

.subheadline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.9;
    max-width: 65ch;
}

.section-padding-lg {
    padding-top: clamp(4rem, 8vw, 6rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* --- Component Styling --- */

/* 1. Navigation Bar */
nav.navbar {
    padding: 0.5rem 0;
}
nav.navbar-brand img {
    max-height: 48px;
    height: auto;
    vertical-align: middle;
}
.navbar.scrolled {
    box-shadow: var(--bs-box-shadow-sm);
}
.navbar .nav-link.live-chat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.status-pill {
    width: 8px;
    height: 8px;
    background-color: var(--green-highlight);
    border-radius: 50%;
}


.navbar-brand img {
  height: 36px; 
  max-height: 100%;
}


@media (min-width: 768px) {
  .navbar-brand img {
    height: 48px;
  }
}

/* 2. Hero Section */
.hero-section {
    min-height: 100vh;
    color: var(--text-light);
    background-color: var(--bg-dark);
}
.hero-section h1 {
    font-weight: 700;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-section .subheadline.lead {
    margin-top: 1rem;
}
.hero-image-container {
    position: relative;
    width: 100%;
    border-radius: var(--bs-border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0;
    transition: opacity var(--transition-speed-slow) ease-in-out;
}
.hero-slide.active { opacity: 1; }
.trust-strip img { height: 24px; border-radius: 3px;}
.trust-strip .trust-rating {
    font-size: 1rem;
    margin-left: 0.5rem;
    font-weight: 500;
    opacity: 0.9;
}

/* 3. Quick-Stats Strip */
.quick-stats-strip {
    top: 74px; z-index: 1019;
}
.quick-stats-strip .stat-item strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}
.quick-stats-strip .stat-item span {
    font-size: 1.25rem;
    font-weight: 600;
}



.custom-span {
    font-size: 0.8rem !important;;
    font-weight: 400 !important;;
    color: #333;

}


.highlight-green { color: var(--green-highlight); }
.tooltip-trigger {
  background: none;
  color: #777777; 
  border-radius: 50%;
  padding: 0;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}


/* 4. Deals Showcase */
#deals .text-center.mx-auto {
    margin-bottom: 1.5rem;
}
#deals .subheadline.lead {
    line-height: 1.5;
    margin-top: 0.5rem;
}
.deal-card { height: 100%; background-color: #f8f9fa!important;}
.deal-card .price { font-size: 2rem; font-weight: 600; color: var(--headline-color); }
.deal-card .price-unit { font-size: 1rem; font-weight: 400; color: var(--text-color); }
.deal-card .features-list .material-symbols-outlined { color: var(--green-highlight); }
.ribbon-wrapper {
    position: absolute; top: -1px; right: -1px;
    width: 150px; height: 150px; overflow: hidden;
}
.ribbon {
    font-size: 0.8rem; font-weight: 600; color: #fff; text-align: center;
    transform: rotate(45deg); -webkit-transform: rotate(45deg);
    position: absolute; top: 32px; right: -34px; width: 200px; padding: 4px 0;
}

/* --- 5. Trusted By (Logo Carousel) --- */
.logo-carousel-wrapper {
    --logo-height: 90px;
    --logo-width: 125px;
    --logo-count: 14;
    --animation-duration: calc(var(--logo-count) * 4s);
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE 10+ */
    cursor: pointer;
}
.logo-carousel-wrapper::-webkit-scrollbar {
    display: none;                /* Safari & Chrome */
}
.logo-track {
    display: flex;
    align-items: center;
    width: calc(var(--logo-width) * var(--logo-count) * 2);
    will-change: transform;
    -webkit-animation: scroll var(--animation-duration) linear infinite;
    -moz-animation: scroll var(--animation-duration) linear infinite;
    -o-animation: scroll var(--animation-duration) linear infinite;
    animation: scroll var(--animation-duration) linear infinite;
    -webkit-animation-play-state: running;
    animation-play-state: running;
}

.logo-carousel-wrapper:hover .logo-track,
.logo-carousel-wrapper.paused .logo-track {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}

.logo-track .logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--logo-width);
    height: var(--logo-height);
    padding: 0 1rem;
}
.logo-track img {
    max-width: 100%;
    max-height: var(--logo-height);
    filter: grayscale(1);
    opacity: 0.85;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    object-fit: contain;
}
.logo-track img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}
@-webkit-keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(var(--logo-width) * var(--logo-count) * -1)); }
}
@-moz-keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(var(--logo-width) * var(--logo-count) * -1)); }
}
@-o-keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(var(--logo-width) * var(--logo-count) * -1)); }
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(var(--logo-width) * var(--logo-count) * -1)); }
}
/* Smaller logos & faster loop on narrow screens */
@media (max-width: 576px) {
    .logo-carousel-wrapper {
        --logo-height: 60px;
        --logo-width: 150px;
        --animation-duration: calc(var(--logo-count) * 3s);
    }
}


@media (max-width: 576px) {
  .logo-carousel-wrapper {
    --logo-height: 50px;     /* чуть ниже логотипы */
    --logo-width: 95px;      /* меньше ширина - лого плотнее */
    --animation-duration: calc(var(--logo-count) * 2.3s); /* чуть быстрее прокрутка */
  }
  .logo-track .logo-item {
    padding: 0 0.25rem;      /* минимальные боковые отступы */
  }
}



/* Map img section*/
.darkbg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.darkbg h2 {
  color: var(--text-light); /* можно переопределить, если нужен другой */
}

.darkbg p {
  color: var(--text-light); /* или свой отдельный: var(--text-muted-light), например */
}

/* 6. How It Works */
#how-it-works .material-symbols-outlined {
    font-size: 3rem;
}

#how-it-works .material-symbols-outlined {
  color: #007BFF; 
}

/* 8. Performance Tracking */
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow::after { content: ' →'; }

.section-padding-lg ul.list-unstyled {
  text-align: left;
  padding-left: 0;
  margin: 0;
}

.section-padding-lg ul.list-unstyled li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.section-padding-lg ul.list-unstyled li .item-text {
  display: inline;
  font-weight: 400;
  line-height: inherit;
  word-spacing: normal;
}

.section-padding-lg ul.list-unstyled li strong {
  font-weight: 600;
  display: inline;
  margin: 0 0.15em;
  padding: 0;
  white-space: normal;
  line-height: inherit;
}





/* 9. Testimonials */
.testimonial-section {
    position: relative; background-size: cover; background-position: center; background-attachment: fixed;
    /*background-image: url('https://placehold.co/1920x1080/2D3748/FFFFFF/jpg?text=Background');*/
}
.testimonial-bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(45, 55, 72);
}
.testimonial-section h2 { color: var(--text-light); }
.testimonial-ad-image {
    width: 100%; border-radius: var(--bs-border-radius-sm);
    aspect-ratio: 700 / 200; object-fit: cover; border: 1px solid var(--bs-border-color);
}
.testimonial-quote {
    font-size: 1rem; position: relative; padding-left: 1.5rem;
}
.testimonial-quote::before {
    content: '“'; position: absolute; left: 0; top: -0.25rem;
    font-size: 2.5rem; color: var(--bs-border-color); font-weight: 600; line-height: 1;
}
.testimonial-avatar { width: 50px; height: 50px; }
.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
    width: 3rem;
    height: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    opacity: 0.7;
}
.testimonial-carousel .carousel-control-prev:hover,
.testimonial-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0,0,0,0.2);
}
.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

/* -- 10b. Performance Tracking Block (Case Studies) --> */



/* 11. FAQ */
.faq-accordion .accordion-button { font-weight: 600; }
.faq-accordion .accordion-button:not(.collapsed) {
    background-color: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis);
}

/* 12. Final Conversion Panel */
.final-cta-panel {
    border-top: 1px solid #E2E8F0;
    background-color: #F7FAFC;
}
.final-cta-panel h2 { color: var(--headline-color); }
.final-cta-panel .subheadline { color: var(--text-color); opacity: 0.9; }
.final-cta-panel .d-sm-flex {
    gap: 1.5rem;
}


/* Floating Chat Bubble */
.chat-bubble {
    position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px;
    background-color: var(--accent-color); color: var(--text-light);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--bs-box-shadow-lg); cursor: pointer; z-index: 1031;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.chat-bubble.visible { opacity: 1; transform: translateY(0); }
.chat-bubble .material-symbols-outlined { font-size: 2rem; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   MOBILE STICKY NAV (≤767px) = activate it in html
   ========================= */
@media (max-width: 767.98px) {

  #mainNav {
    min-height: 100px;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    top: auto !important; 
  }


  #mainNav.navbar-fixed {
    position: fixed !important;
    top: 25px !important;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    min-height: 56px;
    padding: 0 !important;
  }

  #mainNav.navbar-fixed .container {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 !important;
  }

  #mainNav.navbar-fixed .navbar-brand {
    margin: 0 !important;
    padding: 0 !important;
  }

  #mainNav.navbar-fixed .navbar-brand img {
    height: 40px !important;
    display: block;
  }

  #mainNav.navbar-fixed .btn {
    margin: 0 !important;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
  }
}



/* ========================= */
.btn-green {
  background-color: #1e8e3e;
  border-color: #1e8e3e;
  color: #fff;
}
.btn-green:hover, .btn-green:focus {
  background-color: #157347;
  border-color: #157347;
  color: #fff;
}

/* */

@media (max-width: 767.98px) {

  .testimonial-carousel {
    padding-bottom: 3rem; /\
    position: relative;
  }
  .carousel-indicators {
    bottom: 0.3rem !important; 
    z-index: 2;
  }
  .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: #38A169;
    opacity: 0.4;
    border: none;
  }
  .carousel-indicators .active {
    opacity: 1;
    background-color: #198754;
  }
}

/* */

.material-symbols-outlined.text-info,
a.text-info, .link-arrow.text-info {
  color: #4A90E2 !important; 
}