/* =====================================================
   ПроДиалоги — Landing Page Styles
   ===================================================== */

:root {
    --primary:      #4f46e5;
    --primary-h:    #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.35);
    --accent:       #06b6d4;
    --dark:         #0f172a;
    --dark-2:       #1e293b;
    --dark-3:       #334155;
    --text:         #1e293b;
    --text-muted:   #64748b;
    --bg:           #f8fafc;
    --border:       #e2e8f0;
    --white:        #ffffff;
    --success:      #10b981;
    --radius:       12px;
    --radius-lg:    20px;
    --shadow:       0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg:    0 20px 60px rgba(15, 23, 42, 0.15);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Кнопки ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-h);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px var(--primary-glow);
}
.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.4);
}
.btn-lg {
    padding: 16px 34px;
    font-size: 1.05rem;
    border-radius: 14px;
}

/* ── Навбар ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0;
    transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}
.nav.scrolled {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-container {
    display: flex;
    align-items: center;
    height: 68px;
    gap: 16px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-logo-img {
    height: 36px;
    width: auto;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
}
.nav-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { margin-left: 16px; }
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 20px;
    background: rgba(15,23,42,0.97);
    border-top: 1px solid rgba(255,255,255,0.07);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-mobile a:last-child { border-bottom: none; margin-top: 8px; }

/* ── Section header ── */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    color: var(--text);
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 540px;
    line-height: 1.7;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
    padding-top: 68px;
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -5%, rgba(79,70,229,0.5) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 50%, rgba(6,182,212,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.hero-grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 70%, transparent 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 80px 0 100px;
}
.hero-text { display: flex; flex-direction: column; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(79,70,229,0.18);
    border: 1px solid rgba(79,70,229,0.4);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 28px;
    align-self: flex-start;
    letter-spacing: 0.04em;
}
.hero-badge::before {
    content: '';
    width: 7px; height: 7px;
    background: #818cf8;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
.hero-title {
    font-size: clamp(2.1rem, 4.2vw, 3.3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--white);
    margin: 0 0 24px;
}
.hero-title-accent {
    background: linear-gradient(135deg, #a5b4fc 0%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.62);
    margin: 0 0 40px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.hero-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ── Mockup ── */
.hero-mockup { position: relative; }
.mockup-window {
    background: #1e293b;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
    overflow: hidden;
}
.mockup-bar {
    background: #0f172a;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mockup-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mockup-dot.red    { background: #f87171; }
.mockup-dot.yellow { background: #fbbf24; }
.mockup-dot.green  { background: #34d399; }
.mockup-title {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-left: 8px;
}
.mockup-chat {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.chat-msg.manager { flex-direction: row-reverse; }
.chat-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.chat-msg.client .chat-avatar  { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: white; }
.chat-msg.manager .chat-avatar { background: #334155; color: #94a3b8; }
.chat-bubble {
    padding: 9px 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 80%;
}
.chat-msg.client  .chat-bubble { background: #334155; color: #e2e8f0; border-bottom-left-radius: 4px; }
.chat-msg.manager .chat-bubble { background: var(--primary); color: white; border-bottom-right-radius: 4px; }

.chat-score {
    margin: 2px 0;
    padding: 12px 14px;
    background: #0f172a;
    border-radius: 10px;
    border: 1px solid rgba(79,70,229,0.28);
}
.score-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.score-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.7rem;
}
.score-bar:last-child { margin-bottom: 0; }
.score-bar > span:first-child { color: rgba(255,255,255,0.45); width: 80px; flex-shrink: 0; }
.bar-track { flex: 1; height: 4px; background: #1e293b; border-radius: 2px; overflow: hidden; }
.bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-fill.animated { /* width set inline */ }
.bar-fill--mid { background: linear-gradient(90deg, #f59e0b, #fb923c); }
.score-val { color: rgba(255,255,255,0.7); font-weight: 600; width: 28px; text-align: right; }

/* ── Боль ── */
.pain {
    padding: 80px 0;
    background: var(--bg);
}
.pain-quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.pain-quote {
    padding: 28px 28px 28px 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
}
.pain-quote-icon {
    position: absolute;
    top: 14px; left: 22px;
    font-size: 4rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.12;
    font-family: Georgia, serif;
    pointer-events: none;
}
.pain-quote p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    padding-top: 8px;
}
.pain-conclusion {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 28px 36px;
    background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(6,182,212,0.05));
    border: 1px solid rgba(79,70,229,0.12);
    border-radius: var(--radius-lg);
}
.pain-conclusion strong { color: var(--text); font-weight: 700; }

/* ── Шаги ── */
.steps {
    padding: 96px 0;
    background: var(--white);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 12px);
    right: calc(12.5% + 12px);
    height: 1px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0.2;
}
.step {
    padding: 0 20px 20px;
    text-align: center;
}
.step-number {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 1rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 8px 24px var(--primary-glow);
    position: relative;
    z-index: 1;
}
.step-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text);
}
.step-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Возможности ── */
.features {
    padding: 96px 0;
    background: var(--bg);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79,70,229,0.2);
}
.feature-icon {
    width: 50px; height: 50px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(79,70,229,0.09), rgba(6,182,212,0.09));
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    margin-bottom: 18px;
}
.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text);
}
.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Для кого ── */
.audience {
    padding: 96px 0;
    background: var(--white);
}
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.audience-card {
    padding: 36px 30px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    color: white;
}
.audience-card:nth-child(1) { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.audience-card:nth-child(2) { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.audience-card:nth-child(3) { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.audience-card::after {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.09);
    border-radius: 50%;
    pointer-events: none;
}
.audience-icon {
    margin-bottom: 16px;
    opacity: 0.9;
}
.audience-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: white;
}
.audience-card p {
    font-size: 0.875rem;
    opacity: 0.85;
    line-height: 1.65;
    margin: 0;
}

/* ── Цены ── */
.pricing {
    padding: 96px 0;
    background: var(--bg);
}
.pricing-card {
    max-width: 540px;
    margin: 0 auto;
    padding: 48px;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 0 0 6px rgba(79,70,229,0.06), var(--shadow-lg);
    position: relative;
}
.pricing-badge {
    display: inline-flex;
    padding: 5px 20px;
    background: var(--primary);
    color: white;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.pricing-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    color: var(--text);
}
.pricing-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 32px;
}
.pricing-free {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(79,70,229,0.05);
    border: 1px solid rgba(79,70,229,0.15);
    border-radius: var(--radius);
    margin-bottom: 28px;
}
.pricing-free-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.04em;
}
.pricing-free-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 3px;
}
.pricing-free-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}
.pricing-free-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.pricing-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 28px;
}
.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}
.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.pricing-feature svg {
    color: var(--success);
    flex-shrink: 0;
}

/* ── Footer CTA ── */
.footer-cta {
    padding: 100px 0;
    background: var(--dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.footer-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(79,70,229,0.28) 0%, transparent 70%);
    pointer-events: none;
}
.footer-cta-content { position: relative; z-index: 1; }
.footer-cta-content h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.04em;
    margin: 0 0 16px;
    line-height: 1.15;
}
.footer-cta-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    margin: 0 0 36px;
}

/* ── Footer ── */
.footer {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 36px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo img { height: 28px; width: auto; opacity: 0.55; }
.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-nav a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.38);
    transition: color 0.15s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.7); }
.footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.28);
}

/* ── Анимации появления ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ── Адаптив ── */
@media (max-width: 1024px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
        padding: 60px 0 80px;
    }
    .hero-badge { align-self: center; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .hero-note { text-align: center; }
    .hero-mockup { order: -1; }
    .mockup-window { max-width: 420px; margin: 0 auto; }
    .pain-quotes { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .pricing-card { padding: 36px 24px; }
    .footer-inner { justify-content: center; text-align: center; }
    .footer-nav { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .footer-cta-content h2 br { display: none; }
}
