.bottom-section {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin: 0 auto;
    flex-wrap: wrap;
}

.contact-block, .rating-container, .services-grid {
    flex: 1;
    min-width: 280px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-block {
    gap: 12px;
    background-color: #222;
    padding: 20px;
    border: 1px solid rgba(128, 192, 255, 0.15);
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    position: relative;
}

.contact-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, rgba(128, 192, 255, 0), rgba(128, 192, 255, 0.5), rgba(128, 192, 255, 0));
    opacity: 0.7;
}

.contact-item:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: #80c0ff;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color 0.3s ease, filter 0.3s ease;
}

.contact-item:hover h4 {
    color: #ffffff;
    filter: drop-shadow(0 0 3px rgba(128, 192, 255, 0.5));
}

.contact-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-align: center;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.contact-item a {
    color: #80c0ff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.contact-item a:hover {
    color: #ffffff;
    transform: scale(1.03);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.contact-item .btn {
    display: inline-block;
    padding: 8px 18px;
    background-color: transparent;
    color: #80c0ff;
    border: 1px solid #80c0ff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item .btn:hover {
    background-color: #80c0ff;
    color: #1a1a1a;
    transform: scale(1.03);
    box-shadow: 0 0 8px rgba(128, 192, 255, 0.4);
    animation: buttonPulse 0.5s ease-in-out;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 8px 0;
}

.social-links a {
    color: #80c0ff;
    font-size: 1.3rem;
    transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
    transform: scale(1.15);
    filter: drop-shadow(0 0 3px rgba(128, 192, 255, 0.5));
}

.rating-container {
    gap: 15px;
}

.rating-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #222;
    border-radius: 6px;
    transition: transform 0.3s ease;
    justify-content: space-evenly;
}

.rating-block:hover {
    transform: scale(1.03);
}

.score {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #80c0ff;
}

.stars {
    font-size: 1.3rem;
    color: #80c0ff;
    margin-bottom: 5px;
}

.reviews {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 6px;
    background-color: #222;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
/*    aspect-ratio: 1/1;*/
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000000, #3c3c3c, #000000);
    opacity: 0.15;
    animation: gradientShift 8s ease-in-out infinite;
    z-index: 0;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0 0;
    color: #80c1ff;
    text-align: center;
    text-transform: initial;
    font-weight: 700;
}

.service-card svg {
    width: 40px;
    height: 40px;
    fill: #80c0ff;
    transition: fill 0.3s ease;
}

.service-card:hover svg {
    fill: #ffffff;
}

.service-card p {
    font-size: 12px;
    text-transform: none;
    margin-top: 5px;
    color: #797979;
    height: 90px;
}

/* Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes morph {
    0%, 100% { d: path("M6 6h12v12H6z"); }
    50% { d: path("M8 6h12v12H8z"); }
}

@keyframes scan {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes strike {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

@keyframes neonGlow {
    0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 2px #80c0ff); }
    50% { opacity: 1; filter: drop-shadow(0 0 5px #ffffff); }
}

@keyframes gridShift {
    0%, 100% { d: path("M6 6h12v12H6z"); }
    50% { d: path("M8 8h10v10H8z"); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.api svg .nodes {
    animation: rotate 10s linear infinite;
}

.api svg .pulse {
    animation: neonGlow 2s ease-in-out infinite;
}

.catalog svg .page {
    animation: gridShift 3s ease-in-out infinite;
}

.monitoring svg .radar {
    animation: scan 4s linear infinite;
}

.auction svg .gavel {
    animation: strike 1.5s ease-in-out infinite;
}

.stars .img img {
    width: 30px;
    border-radius: 3px;
}
.service-card a {
    font-size: 12px;
    text-transform: initial;
    color: #e4e4e4;
}

    .container-text {
      display: flex;
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px;
      gap: 40px;
      min-height: calc(100vh + 1000px); /* Ensure enough height for sticky */
      position: relative;
    }

    .container-text::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(200, 200, 200, 0.1));
      z-index: -1;
      display: none;
    }

    .content {
      flex: 2;
      max-width: 700px;
    }

    .content h1 {
      font-size: 2.5rem;
      margin-bottom: 1.5rem;
      color: #1a1a1a;
      font-weight: 600;
    }

    .content h2 {
      font-size: 1.8rem;
      margin: 2rem 0 1rem;
      color: #1a1a1a;
      font-weight: 700;
      line-height: 1.6;
    }

    .content p {
      font-size: 1.1rem;
      margin-bottom: 1rem;
      color: #555;
    }

    .content a {
      color: #007bff;
      text-decoration: none;
      font-weight: 500;
    }

    .content a:hover {
      text-decoration: underline;
    }

    .content img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    .sidebar {
      flex: 1;
      max-width: 350px;
      position: sticky;
      top: 180px; /* Adjust to your header height + buffer */
      align-self: flex-start;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(200, 200, 200, 0.75));
      backdrop-filter: blur(10px);
      border-radius: 18px;
      padding: 24px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      min-height: 300px;
      display: flex;
      align-items: center;
      z-index: 10;
      transition: background 0.5s ease;
        margin-top: 70px;
      --gradient-start: #0fffc1;
      --gradient-end: #7e0fff;
    }

    .sidebar:after {
      position: absolute;
      content: "";
      top: -10px;
      left: -10px;
      right: -10px;
      bottom: -10px;
      z-index: -1;
      transform: scale(1.1);
      filter: blur(2vw);
      background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
      background-size: 400% 400%, cover;
      background-blend-mode: overlay;
      opacity: 0.5;
      transition: background-position 0.5s ease, filter 0.5s ease;
    }

    .sidebar[data-section="auctions"] {
      background: linear-gradient(135deg, rgba(86, 203, 255, 0.4), rgba(138, 187, 255, 0.4));
      --gradient-start: #56cbff;
      --gradient-end: #8abbff;
    }

    .sidebar[data-section="calculator"] {
      background: linear-gradient(135deg, rgba(251, 193, 255, 0.4), rgba(255, 190, 190, 0.4));
      --gradient-start: #fbc1ff;
      --gradient-end: #ffbebe;
    }

    .sidebar[data-section="export"] {
      background: linear-gradient(135deg, rgba(255, 193, 7, 0.4), rgba(191, 144, 0, 0.4));
      --gradient-start: #ffc107;
      --gradient-end: #bf9000;
    }

    .sidebar[data-section="payment"] {
      background: linear-gradient(135deg, rgba(176, 241, 255, 0.4), rgba(174, 130, 255, 0.4));
      --gradient-start: #b0f1ff;
      --gradient-end: #ae82ff;
    }

    .sidebar[data-section="why-usa"] {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(201, 225, 255, 0.4));
      --gradient-start: #ffffff;
      --gradient-end: #c9e1ff;
    }

    .sidebar-form {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 16px;
      opacity: 1;
      transform: translateX(0);
      transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar-form.exiting {
      opacity: 0;
      transform: translateX(-100%);
      transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }


    .sidebar-form h3 {
        font-size: 1.5rem;
        font-weight: 800;
        color: #0071ab;
        margin-bottom: 16px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        /* text-shadow: 1px 1px 1px #7d7d7d; */
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        background: linear-gradient(to right, #00a2ff 0%, #0071ff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: #ffffff99;
        text-shadow: 0px 0px 3px #45454587;
    }

    .sidebar-form h3 svg {
      width: 20px;
      height: 20px;
      fill: none;
      stroke: #1a1a1a;
      stroke-width: 2;
    }

    .sidebar-form p {
      font-size: 0.9rem;
      color: #fff;
      text-align: center;
    }

    .sidebar-form input, .sidebar-form select {
      padding: 12px 16px;
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 50px;
      font-size: 1rem;
      background: rgba(255, 255, 255, 1);
      outline: none;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .sidebar-form input:focus, .sidebar-form select:focus {
      border-color: transparent;
      box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2), 0 0 8px rgba(0, 123, 255, 0.3);
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 255, 255, 0.95));
    }

    .sidebar-form button {
      padding: 12px;
      background: linear-gradient(135deg, #007bff, #0056b3);
      color: white;
      border: none;
      border-radius: 10px;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .sidebar-form button:hover {
      background: linear-gradient(135deg, #0056b3, #003d7a);
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    }

    .sidebar-form button::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.4s ease, height 0.4s ease;
    }

    .sidebar-form button:hover::after {
      width: 200px;
      height: 200px;
    }

    .form-icon {
      position: absolute;
      width: 60px;
      height: 60px;
      top: -30px;
      left: -30px;
      opacity: 0.3;
      animation: sway 4s ease-in-out infinite;
      background-size: cover;
    }

    @keyframes sway {
      0%, 100% { transform: rotate(-5deg); }
      50% { transform: rotate(5deg); }
    }

    section {
      padding: 30px 0;
      scroll-margin-top: 120px; /* Adjust to header height + buffer */
    }

    @media (max-width: 768px) {
      .container-text {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
        padding-bottom: 0px; /* Reserve space for fixed sidebar */
      }

      .container-text::before {
        display: block;
        filter: url(#lg-dist);
      }

      .content {
        max-width: 100%;
        padding: 0 10px;
      }

      .content h1 {
        font-size: 2rem;
      }

      .content h2 {
        font-size: 1.5rem;
      }

      .content p {
        font-size: 1rem;
      }

      .content img {
        border-radius: 12px;
      }

      .content img[style*="screen_20_09"] {
        height: 200px;
      }

      .sidebar {
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        min-height: auto;
        padding: 16px;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
        z-index: 100;
      }

      .sidebar:after {
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        filter: blur(1vw);
        opacity: 0.4;
        transition: background-position 0.4s ease, filter 0.4s ease;
      }

      .sidebar-form {
        padding: 16px;
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .sidebar-form.exiting {
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .form-icon {
        width: 40px;
        height: 40px;
        top: -20px;
        left: -15px;
        opacity: 0.2;
      }

      .sidebar-form h3 {
        font-size: 1.3rem;
      }

      .sidebar-form h3 svg {
        width: 18px;
        height: 18px;
      }

      .sidebar-form input, .sidebar-form select {
        padding: 10px 12px;
        font-size: 0.9rem;
      }

      .sidebar-form button {
        padding: 10px;
        font-size: 0.9rem;
      }

      .sidebar-form p {
        font-size: 0.8rem;
      }
    }

    @media (max-width: 480px) {
      .content h1 {
        font-size: 1.8rem;
      }

      .content h2 {
        font-size: 1.3rem;
      }

      .content p {
        font-size: 0.9rem;
      }

      .sidebar {
        padding: 12px;
        width: 100%;
      }

      .sidebar:after {
        filter: blur(10px);
      }

      .sidebar-form {
        padding: 12px;
        gap: 5px;
      }

      .sidebar-form h3 {
        font-size: 1.2rem;
      }

      .sidebar-form h3 svg {
        width: 16px;
        height: 16px;
      }

      .sidebar-form input, .sidebar-form select {
        padding: 8px 10px;
        font-size: 0.85rem;
      }

      .sidebar-form button {
        padding: 8px;
        font-size: 0.85rem;
      }

      .form-icon {
        width: 30px;
        height: 30px;
        top: -15px;
        left: -10px;
      }
    }



    .content a, .content p {
    margin: 10px 0;
    display: block;
}
.container-text {
/*    overflow-x: hidden;*/
        background-image: url(https://huly.io/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Flines-bg.dffccec4.png&w=1200&q=75);
    background-size: 570px;
    background-repeat: no-repeat;
    background-position: right;
}
.xai-price-block{
    display: flex;
    justify-content: space-between;
    background: #f6f7f8;
    padding: 5px 10px;
    border-radius: 10px;
    margin-top: 5px;
}
.xai-car-image {
    position: relative;
}
.xai-damage-report {
    color: #e74c3c;
    margin-bottom: 8px;
    font-size: 12px;
    position: absolute;
    bottom: 0;
    left: 10px;
    font-weight: 900;
}
.xai-auction-odometer {
    font-size: 12px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #0000007a;
    backdrop-filter: blur(5px);
    padding: 0px 5px;
    border-radius: 3px;
    color: #ffffffcc; 
    font-weight: 700;
}
.swiper {
    max-width: 100%;
}

i.fas.fa-info {
    padding: 2px;
    background: #d8e6ff;
    height: 15px;
    width: 15px;
    text-align: center;
    border-radius: 3px;
    color: #027bffa3;
    margin-left: 5px;
    font-size: 10px;
    position: relative;
    top: -2px;
}
.xai-car-catalog {
    position: relative;
}


.xai-button-group a {
    text-align: center;
    padding: 10px;
    width: 100%;
}
        :root {
            --xai-primary-color: #007aff;
            --xai-bg-color: rgba(255, 255, 255, 1);
            --xai-border-radius: 10px;
            --xai-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            --xai-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
            --xai-font-size: 12px;
            --xai-transition: all 0.3s ease-in-out;
        }



        .xai-brands-section {
            padding: 32px 0;
            background: linear-gradient(180deg, #f5f5f7 0%, #ececf0 100%);
            position: relative;
            text-align: center;
        }

        .xai-brands-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 16px;
        }

        /* Стилі для заголовків */
        .xai-section-heading {
            font-family: var(--xai-font-family);
            font-size: 14px;
            font-weight: 600;
            color: #6e6e73;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
        }

        .xai-section-title {
            font-family: var(--xai-font-family);
            font-size: 28px;
            font-weight: 700;
            color: #1d1d1f;
            margin-bottom: 12px;
            margin-top: 50px;
            text-align: center;
        }

        .xai-section-subtitle {
            font-family: var(--xai-font-family);
            font-size: 16px;
            font-weight: 400;
            color: #6e6e73;
            line-height: 1.5;
            max-width: 600px;
            margin: 0 auto 24px;
        }

        .xai-most-traded {
            margin-bottom: 24px;
        }

        .xai-most-traded h2 {
            font-family: var(--xai-font-family);
            font-size: 16px;
            color: #000000;
            font-weight: 600;
            margin-bottom: 12px;
            text-align: left;
        }

        .xai-most-traded-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 16px;
            padding: 8px 0;
        }

        .xai-most-traded-card {
            background: var(--xai-bg-color);
            border-radius: var(--xai-border-radius);
            box-shadow: var(--xai-shadow);
            padding: 8px;
            transition: var(--xai-transition);
            cursor: pointer;
            position: relative;
        }

        .xai-most-traded-card:hover {
            background: rgba(255, 255, 255, 1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .xai-most-traded-link {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .xai-most-traded-link img {
            width: 32px;
            height: 32px;
            object-fit: contain;
            margin-right: 8px;
            display: block;
        }

.xai-most-traded-info {
    display: flex;
    flex-direction: column;
    line-height: normal;
    justify-content: center;
    align-content: space-between;
    width: 100%;
    text-align: left;
}

        .xai-most-traded-name {
            font-family: var(--xai-font-family);
            font-size: 12px;
            color: #1d1d1f;
            font-weight: 500;
            display: block;
        }

        .xai-most-traded-details {
            font-family: var(--xai-font-family);
            font-size: 10px;
            color: #6e6e73;
            display: block;
        }

        .xai-most-traded-view {
            font-family: var(--xai-font-family);
            font-size: 10px;
            color: var(--xai-primary-color);
            text-decoration: none;
            margin-top: 4px;
            display: block;
        }

        .xai-most-traded-view:hover {
            text-decoration: underline;
        }

        .xai-popular-models {
            margin-bottom: 24px;
        }

        .xai-popular-models h2, .xai-brands-filter h2 {
            font-family: var(--xai-font-family);
            font-size: 16px;
            color: #000000;
            font-weight: 600;
            margin-bottom: 12px;
            text-align: left;
        }

        .xai-popular-models-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 16px;
            padding: 8px 0;
        }

        .xai-popular-model-card {
            background: var(--xai-bg-color);
            border-radius: var(--xai-border-radius);
            box-shadow: var(--xai-shadow);
            padding: 8px;
            transition: var(--xai-transition);
            cursor: pointer;
            position: relative;
        }

        .xai-popular-model-card:hover {
            background: rgba(255, 255, 255, 1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .xai-popular-model-link {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .xai-popular-model-link img {
            width: 32px;
            height: 32px;
            object-fit: contain;
            margin-right: 8px;
            display: block;
        }

        .xai-popular-model-info {
    display: flex
;
    flex-direction: column;
    line-height: normal;
    width: 100%;
    text-align: left;
}

        .xai-popular-model-name {
            font-family: var(--xai-font-family);
            font-size: 12px;
            color: #1d1d1f;
            font-weight: 500;
            display: block;
        }

        .xai-popular-model-brand {
            font-family: var(--xai-font-family);
            font-size: 10px;
            color: #6e6e73;
            display: block;
        }

        .xai-brands-filter {
            margin-bottom: 12px;
            display: flex;
            justify-content: flex-start;
        }

        .xai-brands-search {
            width: 200px;
            padding: 6px 12px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            font-family: var(--xai-font-family);
            font-size: 12px;
            color: #1d1d1f;
            background: #fff;
            transition: var(--xai-transition);
        }

        .xai-brands-search:focus {
            outline: none;
            border-color: var(--xai-primary-color);
            box-shadow: 0 0 4px rgba(0, 122, 255, 0.2);
        }

        .xai-brands-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 16px;
            padding: 8px 0;
            position: relative;
        }

        .xai-brand-card {
            background: var(--xai-bg-color);
            border-radius: var(--xai-border-radius);
            box-shadow: var(--xai-shadow);
            padding: 8px;
            transition: var(--xai-transition);
            position: relative;
            cursor: pointer;
            min-height: 50px; /* Гарантуємо мінімальну висоту картки */
        }

        .xai-brand-card:hover {
            background: rgba(255, 255, 255, 1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .xai-brand-card.xai-popular {
            border: 1px solid var(--xai-primary-color);
        }

        .xai-brand-card.xai-hidden {
            display: none;
        }

        .xai-brand-link {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .xai-brand-link img {
            width: 32px;
            height: 32px;
            object-fit: contain;
            margin-right: 8px;
            display: block;
        }

.xai-brand-info {
    display: flex
;
    flex-direction: column;
    align-content: space-between;
    width: 100%;
    text-align: left;
    line-height: normal;
}

        .xai-brand-name {
            font-family: var(--xai-font-family);
            font-size: 12px;
            color: #1d1d1f;
            font-weight: 500;
            display: block;
        }

        .xai-brand-count {
            font-family: var(--xai-font-family);
            font-size: 10px;
            color: #6e6e73;
            display: block;
        }

        .xai-brand-tooltip {
            background: #ffffff;
            border: 1px solid #e0e0e0;
            color: #000000;
            font-family: var(--xai-font-family);
            font-size: 12px;
            padding: 16px;
            border-radius: 12px;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
            width: 220px;
            z-index: 9999;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0;
            transform-origin: center;
            transform: scale(0.9) translateX(-50%);
            transition: opacity 0.2s ease-out, transform 0.2s ease-out;
            will-change: opacity, transform;
            display: none;
        }

        .xai-brand-card:hover .xai-brand-tooltip {
            display: block;
            opacity: 1;
            transform: scale(1) translateX(-50%);
            transition-delay: 0.1s;
        }

        .xai-brand-tooltip.xai-top {
            bottom: calc(100% + 8px);
            top: auto;
        }

        .xai-brand-tooltip.xai-top::after {
            top: 100%;
            border-top-color: #e0e0e0;
        }

        .xai-brand-tooltip.xai-bottom {
            top: calc(100% + 8px);
            bottom: auto;
        }

        .xai-brand-tooltip.xai-bottom::after {
            bottom: 100%;
            border-bottom-color: #e0e0e0;
        }

        .xai-brand-tooltip::after {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            z-index: 10000;
        }

        .xai-brand-tooltip p {
            margin: 0 0 12px;
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 400;
            font-size: 12px;
            color: #1d1d1f;
        }

        .xai-brand-tooltip p span {
            font-weight: 600;
            color: #000;
        }

        .xai-brand-tooltip p svg {
            width: 16px;
            height: 16px;
            fill: #6e6e73;
        }

        .xai-brand-tooltip .xai-tooltip-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 12px;
        }

        .xai-brand-tooltip a {
            flex: 1 1 calc(50% - 6px);
            padding: 8px 10px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 500;
            text-decoration: none;
            text-align: center;
            transition: var(--xai-transition);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: #e0e0e0;
            color: #000;
            border: none;
        }

        .xai-brand-tooltip a:hover {
            background: #d0d0d0;
        }

        .xai-brand-tooltip a.xai-primary {
            background: var(--xai-primary-color);
            color: #fff;
            flex: 1 1 100%;
            padding: 10px 12px;
            font-size: 12px;
        }

        .xai-brand-tooltip a.xai-primary:hover {
            background: #005bb5;
        }

        .xai-brand-tooltip a svg {
            width: 14px;
            height: 14px;
            fill: currentColor;
        }

        .xai-brand-tooltip .xai-popular-models-links {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #e0e0e0;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .xai-brand-tooltip .xai-popular-models-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 6px;
            font-size: 11px;
            color: #1d1d1f;
            text-decoration: none;
            background: linear-gradient(135deg, #ffffff 0%, #e6f0fa 100%);
            border-radius: 6px;
            transition: all 0.3s ease;
            border: 1px solid transparent;
            position: relative;
            overflow: hidden;
            opacity: 0;
            animation: xai-fadeIn 0.3s ease forwards;
        }

        .xai-brand-tooltip .xai-popular-models-links a:hover {
            background: linear-gradient(135deg, #e6f0fa 0%, #d0e1f9 100%);
            border-color: #007aff;
        }

        .xai-brand-tooltip .xai-popular-models-links a svg {
            width: 12px;
            height: 12px;
            fill: #007aff;
        }

        /* Анімація для моделей */
        @keyframes xai-fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .xai-brand-tooltip .xai-popular-models-links a:nth-child(1) { animation-delay: 0.1s; }
        .xai-brand-tooltip .xai-popular-models-links a:nth-child(2) { animation-delay: 0.15s; }
        .xai-brand-tooltip .xai-popular-models-links a:nth-child(3) { animation-delay: 0.2s; }
        .xai-brand-tooltip .xai-popular-models-links a:nth-child(4) { animation-delay: 0.25s; }
        .xai-brand-tooltip .xai-popular-models-links a:nth-child(5) { animation-delay: 0.3s; }
        .xai-brand-tooltip .xai-popular-models-links a:nth-child(6) { animation-delay: 0.35s; }

        .xai-brand-tooltip .xai-service-description {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #e0e0e0;
            font-size: 12px;
            color: #555;
            line-height: 1.4;
            text-align: center;
        }

        .xai-load-more-container {
            text-align: center;
            margin-top: 16px;
        }

        .xai-load-more-btn {
            background: linear-gradient(135deg, #007aff 0%, #00c6ff 100%);
            color: #fff;
            border: none;
            border-radius: 12px;
            padding: 12px 24px;
            font-family: var(--xai-font-family);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .xai-load-more-btn:hover {
            background: linear-gradient(135deg, #005bb5 0%, #0096c7 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
        }

        .xai-load-more-btn svg {
            width: 16px;
            height: 16px;
            fill: #fff;
        }

        .xai-load-more-btn.xai-hidden {
            display: none;
        }

        @media (max-width: 600px) {
            .xai-most-traded-grid {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                gap: 12px;
            }

            .xai-most-traded-card {
                padding: 6px;
            }

            .xai-most-traded-link img {
                width: 28px;
                height: 28px;
                margin-right: 6px;
            }

            .xai-most-traded-name {
                font-size: 11px;
            }

            .xai-most-traded-details,
            .xai-most-traded-view {
                font-size: 9px;
            }

            .xai-popular-models-grid {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                gap: 12px;
            }

            .xai-popular-model-card {
                padding: 6px;
            }

            .xai-popular-model-link img {
                width: 28px;
                height: 28px;
                margin-right: 6px;
            }

            .xai-popular-model-name {
                font-size: 11px;
            }

            .xai-popular-model-brand {
                font-size: 9px;
            }

            .xai-brands-filter {
                margin-bottom: 8px;
            }

            .xai-brands-search {
                width: 160px;
                padding: 4px 8px;
                font-size: 10px;
            }

            .xai-brands-grid {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                gap: 12px;
            }

            .xai-brand-card {
                padding: 6px;
            }

            .xai-brand-link img {
                width: 28px;
                height: 28px;
                margin-right: 6px;
            }

            .xai-brand-name {
                font-size: 11px;
            }

            .xai-brand-count {
                font-size: 9px;
            }

            .xai-brand-tooltip {
                width: 200px;
                font-size: 11px;
                padding: 12px;
            }

            .xai-brand-tooltip a {
                font-size: 11px;
                padding: 6px 8px;
            }

            .xai-brand-tooltip a svg {
                width: 12px;
                height: 12px;
            }

            .xai-brand-tooltip .xai-popular-models-links {
                grid-template-columns: repeat(2, 1fr);
                gap: 6px;
            }

            .xai-load-more-btn {
                padding: 10px 20px;
                font-size: 12px;
            }
        }


        .odc-apple-card.odc-apple-large ul li {
    margin-left: 20px;
    list-style-type: circle;
}
.odc-apple-left-column img, .odc-apple-right-column img {
    position: absolute;
    width: 50px;
    right: 30px;
    top: 20px;
}
    /* Apple-Style Section with Unique Classes */
.odc-apple-section {
  padding: 0px 20px;
  background-color: #fafafa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}

/* Container */
.odc-apple-container {
  display: flex;
  max-width: 1400px;
  width: 100%;
  gap: 20px;
}

/* Left Column (Two Cards) */
.odc-apple-left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Right Column (One Large Card) */
.odc-apple-right-column {
  flex: 1;
}

/* Card Styling */
.odc-apple-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(50% - 10px); /* Two cards fit the height of one large card */
}

.odc-apple-card.odc-apple-large {
  height: 100%;
}

.odc-apple-card:hover {
  transform: translateY(-4px);
}

.odc-apple-card i {
  font-size: 2.5rem;
  color: #007aff;
  margin-bottom: 16px;
}

.odc-apple-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
}

.odc-apple-card p {
  font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', sans-serif;
  font-size: 1rem;
  color: #515154;
  line-height: 1.5;
  margin-bottom: 5px;
}

.odc-apple-card-link {
  font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', sans-serif;
  font-size: 1rem;
  color: #007aff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.odc-apple-card-link:hover {
  color: #005bb5;
}
.benefit-card p {
    color: #000;
}
/* Responsive Design */
@media (max-width: 768px) {
  .odc-apple-section {
    padding: 40px 15px;
    min-height: auto;
  }

  .odc-apple-container {
    flex-direction: column;
    gap: 16px;
  }

  .odc-apple-left-column, .odc-apple-right-column {
    width: 100%;
  }

  .odc-apple-card {
    height: auto;
    padding: 24px;
  }

  .odc-apple-card.odc-apple-large {
    height: auto;
  }

  .odc-apple-card h3 {
    font-size: 1.3rem;
  }

  .odc-apple-card p {
    font-size: 0.9rem;
  }

  .odc-apple-card i {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .odc-apple-section {
    padding: 30px 10px;
  }

  .odc-apple-card {
    padding: 20px;
  }

  .odc-apple-card h3 {
    font-size: 1.2rem;
  }

  .odc-apple-card p {
    font-size: 0.85rem;
  }

  .odc-apple-card-link {
    font-size: 0.9rem;
  }
}
.benefit-card h3 {
    color: #3e3e3e;
    font-size: 16px;
}
.tag_time {
    background: #fff;
    padding: 3px 5px;
    font-size: 12px;
    color: #27803d;
    border-radius: 5px;
    border: 1px solid #51ab2c;
}
.benefit-card {
    text-align: center;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.benefit-card .progress-bar {
    width: 100%;
    height: 4px;
    display: block;
    position: relative;
}
.benefit-card .progress-bar span {
    height: 4px;
    position: absolute;
    top: 0;
    background: #0c15ff;
    left: 0;
}
.benefit-card ul li {
    display: flex;
    align-content: space-between;
    width: 100%;
    justify-content: space-between;
    color: #000;
    border-bottom: 1px solid #0000000d;
    padding: 5px;
}
.benefit-card ul li i {
    font-size: 13px;
    color: #2bb71a;
}




    .header-calc {
      text-align: center;
      margin-bottom: 0.5rem;
    }
    .header-calc h2 {
      font-size: 0.85rem;
      font-weight: 500;
      color: #8e8e93;
      text-transform: uppercase;
      margin-bottom: 0.2rem;
    }
    .header-calc h1 {
      font-size: 1.1rem;
      font-weight: 600;
      color: #1d1d1f;
      margin-bottom: 0.2rem;
    }
    .header-calc p {
      font-size: 16px;
      color: #8e8e93;
      margin-bottom: 0.5rem;
    }
    .budget-section {
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(12px);
      border-radius: 12px;
      padding: 0.5rem;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      border: 1px solid rgba(255, 255, 255, 0.3);
      transition: all 0.3s ease;
        justify-content: center;
    }
    .budget-section:hover {
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    .budget-section label {
        font-size: 18px;
        font-weight: 900;
        color: #456277;
        margin-right: 0.5rem;
    }
    .budget-section input[type="number"] {
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 10px;
      padding: 0.3rem;
      font-size: 0.75rem;
      color: #1d1d1f;
      width: 70px;
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
      transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .budget-section input[type="number"]:focus {
      box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
      border-color: #007aff;
      outline: none;
    }
    .budget-section input[type="range"] {
      width: 100px;
      height: 3px;
      background: rgba(0, 0, 0, 0.1);
      border-radius: 2px;
      outline: none;
      -webkit-appearance: none;
      appearance: none;
      transition: all 0.3s ease;
      margin: 0 0.5rem;
    }
    .budget-section input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 12px;
      height: 12px;
      background: #007aff;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .budget-section input[type="range"]::-webkit-slider-thumb:hover {
      transform: scale(1.2);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    .budget-section .buttons {
      display: flex;
      gap: 0.3rem;
    }
    .budget-section .buttons button {
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 10px;
      padding: 0.3rem 0.6rem;
      font-size: 0.7rem;
      color: #1d1d1f;
      cursor: pointer;
      transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }
    .budget-section .buttons button.active {
      background: #007aff;
      color: #ffffff;
      box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
      border-color: transparent;
    }
    .budget-section .buttons button:hover {
      background: rgba(229, 231, 235, 0.5);
      transform: translateY(-1px);
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
    .budget-section p {
      font-size: 0.7rem;
      color: #8e8e93;
      margin-left: 0.5rem;
    }
    .main-layout {
      display: flex;
      gap: 0.5rem;
      padding: 0.1rem 0;
    }
    .left-column, .right-column {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .right-column {
      position: relative;
    }
    .stage-block {
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(12px);
      border-radius: 14px;
      padding: 0.75rem;
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }
    .stage-block:hover {
      transform: translateY(-1px);
    }
    .stage-block.summary {
        background: linear-gradient(135deg, #007aff 0%, #00c6ff 100%);
        padding: 0.75rem;
        position: sticky;
        top: 80px;
        z-index: 2;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    .stage-block.summary .stage-title {
        color: #fff;
    }
    .stage-block.summary .cost-details .breakdown div{
        color: #fff;
    }
    .stage-block.summary .cost-details .visual-breakdown {
        color: #fff;
    }
    .stage-block.summary .cost-details .visual-breakdown p {
        color: #fff !important;
    }
    .stage-block.rastamojka {
      background: linear-gradient(135deg, #dcf6f7 0%, #f1fdff 100%);
      padding: 0.75rem;
    }
    .stage-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.3rem;
    }
    .stage-title {
      font-size: 18px;
      font-weight: 600;
      color: #1d1d1f;
      margin: 0;
    }
    .price-container {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      position: relative;
    }
    .price-display {
      display: flex;
      gap: 0.15rem;
      background: rgba(229, 231, 235, 0.5);
      padding: 0.3rem;
      border-radius: 10px;
    }
    .price-display:after {
        content: "USD";
        color: #666676;
        padding-top: 4px;
        line-height: normal;
        padding-left: 5px;
        font-size: 12px;
    }

    p#lot-range {
        background: linear-gradient(135deg, #007aff 0%, #00c6ff 100%);
        color: #fff;
        padding: 10px;
        border-radius: 7px;
        font-weight: 900;
        width: fit-content;
        text-shadow: 0 0 21px black;
    }

    .price-digit {
      background: white;
      color: #1d1d1f;
      width: 18px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      font-weight: 600;
      border-radius: 6px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
      transition: transform 0.1s ease;
    }
    .price-digit.active {
      transform: scale(1.1);
    }
    .info-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      color: #007aff;
      background: rgba(255, 255, 255, 0.8);
      border-radius: 50%;
      width: 18px;
      height: 18px;
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    }
    .info-icon:hover {
      transform: scale(1.2);
      background: #007aff;
      color: #ffffff;
    }
    .tooltip {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      bottom: 100%;
      left: 0%;
      transform: translateX(-50%);
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(12px);
      color: #1d1d1f;
      padding: 0.75rem;
      border-radius: 12px;
      font-size: 0.75rem;
      width: 240px;
      text-align: left;
      transition: opacity 0.2s ease, visibility 0.2s ease;
      z-index: 10;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
      border: 1px solid rgba(0, 0, 0, 0.05);
    }
    .price-container:hover .tooltip {
      visibility: visible;
      opacity: 1;
    }
    .tooltip ul {
      list-style-type: none;
      padding: 0;
      margin: 0;
    }
    .tooltip li {
      display: flex;
      justify-content: space-between;
      padding: 0.2rem 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    .tooltip li:last-child {
      border-bottom: none;
    }
    .tooltip li span:first-child {
      font-weight: 500;
      color: #1d1d1f;
    }
    .tooltip li span:last-child {
      font-weight: 600;
      color: #007aff;
    }
.cost-details {
    font-size: 14px;
    color: #000;
    line-height: 1.2;
    position: relative;
    width: 100%;
}
    .cost-details p {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.2rem 0;
      position: relative;
      transition: color 0.2s ease;
    }
    .cost-details p:hover {
      color: #1d1d1f;
    }
    .cost-details p span {
      font-weight: 500;
      color: #1d1d1f;
      transition: color 0.2s ease;
    }
    .cost-details .breakdown {
      margin-top: 0.3rem;
      padding: 0.3rem 0;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    .cost-details .breakdown div {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 1rem;
        color: #8e8e93;
        padding: 0.2rem 0;
        justify-content: space-between;
    }
    .left-column {
    padding: 10px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
    .cost-details .breakdown svg {
      width: 14px;
      height: 14px;
      fill: #8e8e93;
    }
  .cost-details .visual-breakdown {
      margin-top: 0.3rem;
      display: flex;
      gap: 50px;
      font-size: 0.8rem;
      color: #1d1d1f;
      justify-content: space-between;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
      padding-top: 10px;
  }
    .cost-details .visual-breakdown div {
      flex: 1;
/*      text-align: center;*/
/*      max-width: 100px;*/
    }
    .cost-details .visual-breakdown p {
        font-weight: 500;
        margin-bottom: 0.5rem;
        padding: 0;
        border: none;
    }
    .cost-details .visual-breakdown .progress-bar {
      width: 100%;
      height: 4px;
      background: rgba(0, 0, 0, 0.1);
      border-radius: 2px;
      overflow: hidden;
      position: relative;
    }
    .cost-details .visual-breakdown .progress-bar span {
      display: block;
      height: 100%;
      transition: width 0.5s ease;
    }
    .cost-details .visual-breakdown .progress-bar.lot span {
      background: #007aff;
    }
    .cost-details .visual-breakdown .progress-bar.delivery span {
      background: #34c759;
    }
    .cost-details .visual-breakdown .progress-bar.taxes span {
      background: #ff9500;
    }
    .cost-details .visual-breakdown .amount {
      font-size: 0.6rem;
      color: #8e8e93;
      margin-bottom: 0.05rem;
    }
    .cost-details .rastamojka-details {
      display: flex;
      justify-content: space-between;
      gap: 0.5rem;
      font-size: 0.7rem;
      color: #8e8e93;
    }
    .cost-details .rastamojka-details span {
      font-weight: 500;
      color: #1d1d1f;
    }
    .cost-details .delivery-details {
      font-size: 0.7rem;
      color: #8e8e93;
      display: flex;
      flex-wrap: wrap;
      gap: 0.3rem;
    }
    .cost-details .delivery-details span {
      font-weight: 500;
      color: #1d1d1f;
    }
.lot-range {
    font-size: 14px;
    color: #000000;
    margin-top: 0.2rem;
}
    .warning {
      font-size: 0.75rem;
      color: #ff9500; /* М’який помаранчевий для macOS */
      text-align: center;
      margin-top: 0.3rem;
    }
    .fuel-buttons, .damage-buttons, .engine-selection {
      display: flex;
      flex-wrap: wrap;
      gap: 0.3rem;
      margin-bottom: 0.3rem;
      padding: 0.3rem 0;
    }
    .fuel-button, .damage-button, .engine-button, .custom-engine-btn, .year-adjust-btn {
        background: rgb(0 122 255 / 28%);
        border: 1px solid rgb(0 79 222 / 10%);
        border-radius: 3px;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        color: #1d1d1f;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }
    .fuel-button.active, .damage-button.active, .engine-button.active, .custom-engine-btn.active, .year-adjust-btn.active {
      background: #007aff;
      color: #ffffff;
      border-color: transparent;
      box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
    }
    .fuel-button:hover, .damage-button:hover, .engine-button:hover, .custom-engine-btn:hover, .year-adjust-btn:hover {
      background: rgba(229, 231, 235, 0.5);
      border-color: #007aff;
      transform: translateY(-1px);
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
    .damage-reduction {
      font-size: 0.7rem;
      margin-top: 0.3rem;
      display: flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.3rem 0;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    .damage-reduction.severe {
      color: #ff453a; /* М’який червоний для macOS */
    }
    .damage-reduction.moderate {
      color: #ff9500; /* М’який помаранчевий */
    }
    .damage-reduction.minimal {
      color: #34c759; /* Зелений */
    }
    .damage-reduction span {
      font-weight: 600;
    }
    .damage-reduction::before {
      content: '↓';
      font-size: 0.8rem;
    }
    .engine-button.disabled, .custom-engine-btn.disabled {
      opacity: 0.5;
      cursor: not-allowed;
      pointer-events: none;
    }
    .budget-input, .engine-input, .year-input {
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 10px;
      padding: 0.4rem;
      font-size: 0.75rem;
      color: #1d1d1f;
      width: 100%;
      max-width: 70px;
    }
    .year-adjust-btn {
      padding: 0.3rem;
      font-size: 0.8rem;
      line-height: 1;
    }
    .budget-slider, .engine-slider, .year-slider {
      width: 100%;
      height: 3px;
      background: rgba(0, 0, 0, 0.1);
      border-radius: 2px;
      outline: none;
      margin: 0.3rem 0;
      -webkit-appearance: none;
      appearance: none;
    }
    .budget-slider::-webkit-slider-thumb, .engine-slider::-webkit-slider-thumb, .year-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 14px;
      height: 14px;
      background: #007aff;
      border-radius: 50%;
      cursor: pointer;
    }
    .recommendations {
      margin-top: 0.5rem;
      padding: 0.75rem;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(12px);
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }
    .recommendations h4 {
      font-size: 0.85rem;
      font-weight: 600;
      color: #1d1d1f;
      margin-bottom: 0.3rem;
    }
    .recommendations ul {
      list-style-type: disc;
      padding-left: 1rem;
      font-size: 0.75rem;
      color: #8e8e93;
    }
    .recommendations li {
      margin-bottom: 0.1rem;
    }
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    .modal-content {
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(12px);
      border-radius: 14px;
      padding: 0.75rem;
      width: 280px;
      text-align: center;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.3);
    }
    .modal-content p {
      font-size: 0.85rem;
      margin-bottom: 0.5rem;
      color: #1d1d1f;
    }
    .modal-content button {
      margin-top: 0.5rem;
      background: #007aff;
      color: #ffffff;
      border: none;
      border-radius: 10px;
      padding: 0.4rem 0.8rem;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .modal-content button:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    }
    @media (max-width: 768px) {
      .section {
        padding: 0.5rem;
        margin: 20px 0;
        width: 100%;
      }
      .main-layout {
        flex-direction: column;
        gap: 0.5rem;
      }
      .left-column, .right-column {
        width: 100%;
      }
      .stage-block {
        padding: 0.5rem;
        gap: 0.5rem;
      }
      .budget-section {
        flex-direction: column;
        align-items: stretch;
      }
      .budget-section input[type="range"] {
        width: 100%;
      }
      .budget-section .buttons {
        justify-content: center;
      }
      .budget-section p {
        margin-left: 0;
        text-align: center;
      }
      .budget-input, .engine-input, .year-input {
        max-width: 100%;
      }
      .budget-button, .engine-button, .custom-engine-btn, .year-adjust-btn {
        padding: 0.3rem;
        font-size: 0.7rem;
      }
      .price-digit {
        width: 16px;
        height: 18px;
        font-size: 0.7rem;
      }

      .cost-details .visual-breakdown {
        margin-top: 0.3rem;
        display: flex;
        gap: 0;
        font-size: 0.8rem;
        color: #1d1d1f;
        justify-content: space-between;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding-top: 10px;
        flex-direction: column;
    }

    }


    /* Стилі для контейнера слайдера */
.swiper {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 20px 0;
    user-select: none;

    margin: 0 auto;
    box-sizing: border-box;
}

/* Стилі для wrapper слайдів */
.swiper-wrapper {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
}

/* Стилі для слайдів */
.xai-swiper-slide {
    width: 320px !important;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--xai-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Забезпечуємо правильний margin */
.swiper-slide {
    margin-right: 8px !important;
    text-align: left;
}

.xai-swiper-slide:hover {
/*    transform: translateY(-5px);*/
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.xai-auction-timer {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffffff4d;
    backdrop-filter: blur(5px);
    padding: 5px 10px;
    border-radius: 7px;
}
/* Стилі для кнопок навігації */
.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #0056b3;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
    content: '';
}

.swiper-button-prev::before {
    content: '←';
}

.swiper-button-next::before {
    content: '→';
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

/* Стилі для інформації про авто */
.xai-car-info {
    padding: 12px;
    font-size: 13px;
}

.xai-car-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
    color: #333;
}


.xai-car-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.xai-price {
    font-weight: bold;
    color: #007bff;
}

.xai-damage-report {
    color: #e74c3c;
    margin-bottom: 8px;
    font-size: 12px;
}

.xai-extra-info {
    grid-template-columns: unset;
    gap: 4px;
    margin-bottom: 8px;
    color: #999;
    display: inline;
}


.xai-extra-info span {
    display: inline;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    text-align: left;
    white-space: pre;
    background: #000;
    background: #f6f7f8;
    display: inline-flex;
    padding: 1px 5px;
    border-radius: 3px;
    color: #626b79;
}

.xai-extra-info img {
    width: 14px;
    height: 14px;
    opacity: 0.3;
    border-radius: 0;
}

/* Стилі для кнопок у групі */
.xai-button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xai-calc-button,
.xai-bid-button,
.xai-favorite-button,
.xai-details-button {
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s ease;
    text-align: center;
    text-decoration: none;
}
button.xai-calc-button {
    color: #1271ed;
    font-size: 16px;
    background: transparent;
}
.xai-calc-button {
/*    background: #28a745;*/
/*    color: #fff;*/
    padding: 0px;
    font-weight: 800;
}

.xai-calc-button:hover {
    background: #218838;
}

.xai-bid-button {
    background: #007bff;
    color: #fff;
}

.xai-bid-button:hover {
    background: #0056b3;
}

.xai-favorite-button {
    background: #f1c40f;
    color: #fff;
}

.xai-favorite-button.xai-active {
    background: #d4ac0d;
}

.xai-details-button {
    background: #6c757d;
    color: #fff;
}

.xai-details-button:hover {
    background: #5a6268;
}

/* Стилі для tooltip */
.xai-calc-tooltip {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    font-size: 12px;
}

.xai-calc-button.xai-active + .xai-calc-tooltip,
.xai-calc-button.xai-hovered + .xai-calc-tooltip {
    display: block;
}

/* Стилі для навігації зображень */
.xai-image-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.xai-image-nav button:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Стилі для модального вікна */
.xai-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    font-family: system-ui, sans-serif;
}
#xai-bid-modal {
    background: rgb(0 0 0 / 66%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 16px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgb(0 0 0 / 66%);
    border: 2px solid transparent;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 16px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.xai-modal-content {
    position: relative;
    background: rgb(0 0 0 / 0%);
    border: 0px solid transparent;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 16px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: #fff;
    background: repeating-linear-gradient(45deg, #fff, #fff 10px, #fbfbfb 10px, #fdfdfd 20px);
}

.xai-modal-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.xai-modal-image {
    width: 33%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.xai-modal-content h2 {
    margin: 0 0 15px;
    font-size: 18px;
}

.xai-modal-lot-details p {
    margin: 5px 0;
    font-size: 14px;
}

.xai-modal-message {
    margin: 15px 0;
    font-size: 14px;
    color: #ddd;
}

.xai-glass-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xai-glass-form label {
    font-size: 14px;
}

.xai-glass-form input[type="tel"] {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.xai-glass-button {
    position: relative;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 8px 16px rgba(0, 0, 0, 0.12);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.xai-glass-button:hover {
    background: rgba(255, 255, 255, 0.15);
}



.xai-modal-close {
    background: #dc3545;
    color: #fff;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    font-size: 14px;
}

.xai-modal-close:hover {
    background: #c82333;
}
.xai-modal-lot-details {
    color: #000;
}