/* ============================================
   NEW SECTIONS: APPLE GLASSMORPHISM STYLE
   ============================================ */

/* ---------- BACKGROUND MESH BLOBS ---------- */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-primary);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: blob-float 20s infinite alternate ease-in-out;
}

.bg-blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(0, 113, 227, 0.15);
    animation-delay: 0s;
}

.bg-blob-2 {
    top: 40%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: rgba(16, 185, 129, 0.15);
    animation-delay: -5s;
}

.bg-blob-3 {
    bottom: -20%;
    left: 20%;
    width: 70vw;
    height: 70vw;
    background: rgba(0, 198, 137, 0.1);
    animation-delay: -10s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(10vw, -10vh) scale(1.1);
    }

    66% {
        transform: translate(-5vw, 5vh) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* ---------- TOP CATEGORIES ---------- */
.categories {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.category-card__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    transition: transform var(--transition-smooth);
}

.category-card:hover .category-card__icon {
    transform: scale(1.1) translateY(-5px);
}

.category-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ---------- CALCULATOR ---------- */
.calculator {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.calculator__container {
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.calc-group {
    margin-bottom: 32px;
}

.calc-label {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.calc-label span:last-child {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-primary);
}

.calc-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    outline: none;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.1s;
}

.calc-range::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.calc-result {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.calc-result p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.calc-result h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* ---------- HOW TO BUY STEPS ---------- */
.steps {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.steps__line {
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.3;
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 24px;
}

.step-card__num {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.step-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---------- BRANDS MARQUEE ---------- */
.brands {
    padding: 60px 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.brands__marquee {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.brands__marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.brand-item {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.brand-item:hover {
    color: var(--text-primary);
}

/* ---------- FAQ ACCORDION ---------- */
.faq {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.faq__container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    padding: 24px;
    cursor: pointer;
}

.faq-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-item__icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-item__content {
    max-height: 1000px;
    transition: max-height 0.8s ease-in-out;
}

.faq-item__content p {
    padding-top: 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- CONTACT FORM ---------- */
.contact-form {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.contact-form__container {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px;
    text-align: center;
}

.contact-form__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-form__desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.4);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ---------- TELEGRAM FAB ---------- */
.fab-telegram {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    background: #0088cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0, 136, 204, 0.3);
    z-index: 100;
    transition: all var(--transition-smooth);
}

.fab-telegram svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.fab-telegram:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 136, 204, 0.4);
}

/* ---------- RESPONSIVE TWEAKS FOR NEW SECTIONS ---------- */
@media (max-width: 1024px) {

    .categories__grid,
    .steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps__line {
        display: none;
    }
}

@media (max-width: 768px) {

    .categories__grid,
    .steps__grid {
        grid-template-columns: 1fr;
    }

    .calculator__container,
    .contact-form__container {
        padding: 32px 24px;
    }

    .fab-telegram {
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
    }
}