@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');



body {
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #FAFAF9;
    color: #1C1917;
}

.hero-gradient {
    background: radial-gradient(circle at top right, #f0fdfa, transparent 65%);
}

.tab-content {
    display: none; 
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-bottom 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.progress-bar-fill {
    width: 0;
    transition: width 2s ease-in-out;
}

.progress-bar-fill.no-transition {
    transition: none !important;
}


.interview-bubble-ai,
.interview-bubble-user {
    border-radius: 0.9rem;
    padding: 0.65rem 0.8rem;
    font-size: 0.82rem;
    line-height: 1.3;
}

.interview-bubble-ai {
    background: #ccfbf1;
    color: #115e59;
}

.interview-bubble-user {
    background: #f5f5f4;
    color: #44403c;
}

.voice-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.voice-wave span {
    width: 4px;
    border-radius: 999px;
    background: #0f766e;
    animation: wave 1s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { animation-delay: 0s; }
.voice-wave span:nth-child(2) { animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { animation-delay: 0.4s; }

.interview-element {
    opacity: 0;
    animation: fadeInUp 0.3s ease-out forwards;
}

.interview-element.hidden {
    display: none;
}

.skill-chip {
    padding: 0.35rem 0.6rem;
    border-radius: 0.55rem;
    font-size: 0.74rem;
    font-weight: 700;
    background: #ccfbf1;
    color: #0f766e;
    animation: fadeInUp 0.35s ease;
}

.art-transform-frame {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: none;
    outline: none;
    box-shadow: none;
}

.art-transform-frame video,
.art-transform-frame video:focus,
.art-transform-frame video:focus-visible {
    width: 100%;
    height: auto;
    border: none;
    outline: none;
    box-shadow: none;
}


.ats-trigger {
    background: transparent;
}

.ats-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: min(340px, 90vw);
    background: #1c1917;
    color: #fafaf9;
    border-radius: 0.85rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.77rem;
    line-height: 1.45;
    box-shadow: 0 14px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    text-align: left;
    z-index: 20;
}

.ats-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1c1917 transparent transparent transparent;
}

.ats-trigger:hover + .ats-tooltip,
.ats-trigger:focus + .ats-tooltip {
    opacity: 1;
}

/* Tooltip для списков тарифов */
.tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-trigger .tooltip-content {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: min(320px, 90vw);
    max-width: 90vw;
    background: #1c1917;
    color: #fafaf9;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    line-height: 1.45;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    text-align: left;
    z-index: 30;
}

/* Для мобильных устройств - центрирование по экрану */
@media (max-width: 768px) {
    .tooltip-trigger .tooltip-content {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 92vw;
        max-width: 92vw;
        max-height: 75vh;
        overflow-y: auto;
        bottom: auto;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .tooltip-trigger .tooltip-content::after {
        display: none;
    }
}

.tooltip-trigger .tooltip-content::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #1c1917 transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip-content,
.tooltip-trigger:focus .tooltip-content {
    opacity: 1;
}

.interview-item {
    padding: 0.55rem 0.65rem;
    border-radius: 0.75rem;
    background: #fafaf9;
    border: 1px solid #e7e5e4;
}

.interview-question {
    color: #0f766e;
    margin-bottom: 0.2rem;
}

.interview-answer {
    color: #57534e;
}

.interview-item.active {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.roles-skill-board {
    width: 100%;
    min-height: 3rem;
}

.role-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    animation: fadeInUp 0.35s ease;
}

.role-title {
    font-size: 1rem;
    color: #57534e;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-skill {
    font-size: 0.85rem;
    color: #0f766e;
    background: #ccfbf1;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
}

#faq-toggle-all.active {
    border-color: #14b8a6;
    color: #0f766e;
}

.resume-issue,
.resume-fix {
    border-radius: 0.75rem;
    padding: 0.55rem 0.65rem;
}

.resume-issue {
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.resume-fix {
    background: #ecfeff;
    border: 1px solid #99f6e4;
}

.error-mark {
    text-decoration: underline;
    text-decoration-color: #dc2626;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}


@keyframes wave {
    0%, 100% { height: 5px; opacity: 0.6; }
    50% { height: 18px; opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 767px) {
    .faq-item {
        padding: 1rem;
    }
}

/* Hide background elements on mobile to prevent horizontal scroll */
@media (max-width: 767px) {
    /* Hide FAQ background questions */
    section.relative.overflow-hidden > .absolute.inset-0.pointer-events-none {
        display: none;
    }

    /* Hide tooltips on mobile */
    .absolute.bottom-full.left-1\/2.-translate-x-1\/2 {
        display: none;
    }

    /* Add overflow-x: hidden to html and body on mobile */
    html, body {
        overflow-x: hidden;
    }

    /* Force max-width on all elements on mobile */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Disable transforms that might cause horizontal scroll */
    * {
        transform: none !important;
    }
}

@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;
    }
}

/* Success Stories Carousel Styles */
#carousel-track {
    transition: transform 0.5s ease-in-out;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d6d3d1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: #0d9488;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background-color: #14b8a6;
}
