/* ==========================================================================
   UC PR BOT — Modern Telegram Dark Mode Design System (stop-spam style)
   ========================================================================== */

:root {
    --bg-dark: #0e1621;
    --bg-card: #17212b;
    --bg-card-hover: #202b36;
    --bg-element: #242f3d;
    --accent-blue: #24a1de;
    --accent-blue-hover: #1e8bbd;
    --accent-gradient: linear-gradient(135deg, #24a1de 0%, #0088cc 100%);
    --text-main: #f5f5f5;
    --text-muted: #7f91a4;
    --border-color: rgba(255, 255, 255, 0.08);
    --badge-bg: rgba(36, 161, 222, 0.15);
    
    --success: #31b545;
    --success-bg: rgba(49, 181, 69, 0.15);
    --warning: #e5a93c;
    --warning-bg: rgba(229, 169, 60, 0.15);
    --danger: #e53935;
    --danger-bg: rgba(229, 57, 53, 0.15);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #46b7ed;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
}

.section {
    padding: 96px 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typography & Headings */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.25;
    font-weight: 700;
}

.section-header {
    margin-bottom: 56px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

p {
    margin-bottom: 1rem;
}

/* Buttons & Badges */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary, .btn:not(.btn-secondary):not(.ghost) {
    background: var(--accent-gradient);
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(36, 161, 222, 0.3);
}

.btn-primary:hover, .btn:not(.btn-secondary):not(.ghost):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(36, 161, 222, 0.45);
    color: #ffffff !important;
    text-decoration: none;
}

.btn-secondary, .btn.ghost {
    background: var(--bg-element);
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover, .btn.ghost:hover {
    background: var(--bg-card-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-accent {
    background: var(--badge-bg);
    color: var(--accent-blue);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 24px;
}

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

/* Header */
.header, header.site {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 22, 33, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

.header-container, header.site .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-badge {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
}

.nav, header.site nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link, header.site nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover, header.site nav a:hover {
    color: var(--text-main);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spacer {
    flex: 1;
}

/* 1. Hero Section */
.hero-section, .hero {
    padding: 80px 0 60px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--badge-bg);
    border: 1px solid rgba(36, 161, 222, 0.3);
    color: var(--accent-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(36, 161, 222, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(36, 161, 222, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(36, 161, 222, 0); }
    100% { box-shadow: 0 0 0 0 rgba(36, 161, 222, 0); }
}

.hero-title, .hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle, .hero p.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons, .cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 36px;
}

.hero-stats, .nums {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-item, .num-card {
    display: flex;
    flex-direction: column;
}

.stat-value, .num-card b {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.stat-label, .num-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background-color: var(--border-color);
}

/* Telegram Widget Mockup */
.hero-widget {
    position: relative;
}

.tg-window {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.tg-header {
    background: var(--bg-element);
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.tg-chat-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.tg-chat-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.tg-chat-status {
    font-size: 0.8rem;
    color: var(--accent-blue);
}

.tg-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tg-message {
    background: var(--bg-element);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.tg-bot-card {
    border-left: 4px solid var(--accent-blue);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-body-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.tg-btn {
    padding: 10px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
}

.btn-accent-soft {
    background: var(--badge-bg);
    color: var(--accent-blue);
}

.btn-accent-soft:hover {
    background: rgba(36, 161, 222, 0.25);
}

.btn-success-soft {
    background: var(--success-bg);
    color: var(--success);
}

.btn-success-soft:hover {
    background: rgba(49, 181, 69, 0.25);
}

/* Cards & Sections */
.card, .step-card, .cat-card, .tile, .step, .num-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.25s ease;
}

.card:hover, .step-card:hover, .cat-card:hover, .tile:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(36, 161, 222, 0.3);
}

/* Steps Section */
.steps-grid, .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card, .step {
    position: relative;
}

.step-number, .step .num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.8;
}

.step-card h3, .step b {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Features Tile Section */
.tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.tile b {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.tile span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Callout Box */
.callout {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 32px 0;
}

.callout.warn {
    border-left-color: var(--warning);
}

.callout h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* FAQ Accordion */
.faq details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    margin-bottom: 14px;
    transition: background 0.2s ease;
}

.faq details:hover {
    background: var(--bg-card-hover);
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent-blue);
    font-weight: 400;
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    content: '−';
}

.faq details[open] summary {
    margin-bottom: 14px;
}

.faq p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Final Banner */
.final {
    background: linear-gradient(135deg, rgba(23, 33, 43, 0.9) 0%, rgba(36, 161, 222, 0.15) 100%);
    border: 1px solid rgba(36, 161, 222, 0.3);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    text-align: center;
    margin: 64px 0 32px;
}

.final h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.final p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Footer */
.footer, footer.site {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 48px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-nav, footer.site nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a, footer.site nav a {
    color: var(--text-muted);
}

.footer-nav a:hover, footer.site nav a:hover {
    color: var(--text-main);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .grid-3, .steps-grid, .steps {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title, .hero h1 {
        font-size: 2.2rem;
    }
    .hero-subtitle, .hero p.lead {
        font-size: 1rem;
    }
    .nav, header.site nav {
        display: none;
    }
    .tiles {
        grid-template-columns: 1fr;
    }
    .hero-stats, .nums {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .stat-divider {
        display: none;
    }
}

/* ==========================================================================
   Скриншоты бота (2026-08-13). Кадры с телефона 590x1280 показываем в корпусе
   смартфона: без рамки они читаются как случайные картинки в полный экран.
   width/height проставлены в разметке, чтобы вёрстка не прыгала при загрузке.
   ========================================================================== */
.shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
    margin: 36px 0;
    align-items: start;
}
.shots.shots-2 { max-width: 620px; }
.shot { margin: 0; text-align: center; }
.shot .frame {
    display: block;
    position: relative;
    max-width: 250px;
    margin: 0 auto;
    padding: 12px 8px 16px;
    background: linear-gradient(180deg, #2c3746 0%, #1a232f 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}
.shot .frame::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin: 0 auto 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
}
.shot .frame::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
}
.shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    background: var(--bg-dark);
}
.shot figcaption {
    margin-top: 14px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-muted);
}
@media (max-width: 560px) {
    .shots { grid-template-columns: 1fr; }
}
