/* =============================================================================
   GIFTLY MAIN STYLES
   ============================================================================= */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

/* =============================================================================
   GLOBAL STYLES
   ============================================================================= */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #ffffff;
}

/* =============================================================================
   HEADER & NAVIGATION
   ============================================================================= */

.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    align-items: center;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav {
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5855eb 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    text-shadow: none;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    text-shadow: none;
}

/* Специальные стили для кнопок в hero-секции */
.hero-section .btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
    text-shadow: none;
    font-weight: 600;
}

.hero-section .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    text-shadow: none;
    font-weight: 600;
}

.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    text-shadow: 0 4px 16px rgba(0,0,0,0.7);
    font-weight: 900;
    color: white;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    font-weight: 600;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}



@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* =============================================================================
   FEATURES SECTION
   ============================================================================= */

.features-section {
    background: white;
}

.feature-card {
    padding: 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    color: var(--primary-color);
}

/* =============================================================================
   HOW IT WORKS SECTION
   ============================================================================= */

.how-it-works-section {
    background: var(--light-color);
}

.step-card {
    padding: 2rem 1rem;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto;
}

/* =============================================================================
   TELEGRAM SECTION
   ============================================================================= */

.telegram-section {
    background: white;
}

.telegram-preview {
    position: relative;
}

.telegram-mockup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.telegram-mockup:hover {
    transform: rotate(0deg) scale(1.05);
}

.mockup-header {
    font-weight: 600;
    font-size: 0.9rem;
}

.mockup-content {
    background: #f8f9fa;
    min-height: 200px;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 80%;
}

.bot-message {
    background: white;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
    text-align: right;
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.btn-light:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* =============================================================================
   FOOTER
   ============================================================================= */

footer {
    background: var(--dark-color);
}

footer h5 {
    color: white;
    font-weight: 600;
}

footer a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* =============================================================================
   ABOUT PAGE STYLES
   ============================================================================= */

.about-container {
    padding-top: 100px;
}

.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.mission-section {
    background: white;
}

.mission-image {
    animation: float 6s ease-in-out infinite;
}

.technology-section {
    background: white;
}

.tech-image {
    animation: float 6s ease-in-out infinite;
}

.tech-list {
    margin-top: 2rem;
}

.tech-item {
    padding: 0.5rem 0;
}

.team-section {
    background: var(--light-color);
}

.team-card {
    padding: 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.team-avatar {
    color: var(--primary-color);
}

/* =============================================================================
   CONTACT PAGE STYLES
   ============================================================================= */

.contact-container {
    padding-top: 100px;
}

.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-hero h1 {
    color: white;
    font-weight: 900;
    text-shadow: 0 4px 16px rgba(0,0,0,0.7);
}

.contact-hero .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-methods {
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card {
    padding: 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-left: 2rem;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.faq-section {
    background: var(--light-color);
}

.accordion-item {
    border: none;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.accordion-button {
    background: white;
    border: none;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    background: white;
    padding: 1.5rem;
    color: var(--text-secondary);
}

.support-section {
    background: white;
}

.support-features {
    margin-top: 2rem;
}

.support-item {
    padding: 0.5rem 0;
}

.support-image {
    animation: float 6s ease-in-out infinite;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.feature-card,
.step-card,
.team-card,
.contact-card {
    animation: fadeInUp 0.6s ease-out;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .navbar {
        align-items: center;
    }
    
    .navbar-brand {
        align-items: center;
    }
    
    .navbar-nav {
        align-items: center;
    }
    
    .nav-item {
        align-items: center;
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        text-shadow: 0 4px 12px rgba(0,0,0,0.7);
        font-weight: 900;
        color: white;
    }
    
    .hero-section .text-primary {
        color: white !important;
        text-shadow: 0 4px 12px rgba(0,0,0,0.7);
        font-weight: 900;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        text-shadow: 0 2px 6px rgba(0,0,0,0.5);
        font-weight: 600;
        color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .step-card {
        padding: 1.5rem 1rem;
    }
    
    .telegram-mockup {
        max-width: 250px;
        transform: rotate(0deg);
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        text-shadow: none;
        font-weight: 600;
    }
    
    .about-hero,
    .contact-hero {
        padding: 2rem 0;
    }
    
    .team-card,
    .contact-card {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-left: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        align-items: center;
    }
    
    .navbar-brand {
        align-items: center;
    }
    
    .navbar-nav {
        align-items: center;
    }
    
    .nav-item {
        align-items: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        text-shadow: 0 4px 12px rgba(0,0,0,0.7);
        font-weight: 900;
        color: white;
    }
    
    .hero-section .text-primary {
        color: white !important;
        text-shadow: 0 4px 12px rgba(0,0,0,0.7);
        font-weight: 900;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        text-shadow: 0 2px 6px rgba(0,0,0,0.5);
        font-weight: 600;
        color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .contact-hero .lead {
        font-size: 0.9rem;
        text-shadow: 0 2px 6px rgba(0,0,0,0.5);
        font-weight: 600;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .telegram-mockup {
        max-width: 200px;
    }
    
    .message {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        text-shadow: none;
        font-weight: 600;
    }
    
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2rem;
        text-shadow: 0 4px 12px rgba(0,0,0,0.7);
        font-weight: 900;
    }
    
    .team-card,
    .contact-card {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-left: 0.5rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

/* =============================================================================
   UTILITIES
   ============================================================================= */

.text-primary {
    color: var(--primary-color) !important;
}

/* Специальные стили для hero-секции */
.hero-section .text-primary {
    color: white !important;
    text-shadow: 0 4px 16px rgba(0,0,0,0.7);
    font-weight: 900;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
}

/* =============================================================================
   CUSTOM SCROLLBAR
   ============================================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5855eb;
} 

/* Telegram Comments Section */
.telegram-comments {
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    max-height: 500px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.telegram-comments-container {
    animation: slideComments 30s linear infinite;
}

@keyframes slideComments {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.telegram-comments:hover .telegram-comments-container {
    animation-play-state: paused;
}

.telegram-comment {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #0088cc;
}

.telegram-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.telegram-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #0088cc, #00a8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin-right: 10px;
    overflow: hidden;
}

.telegram-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.telegram-user-info {
    flex: 1;
}

.telegram-username {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin: 0;
}

.telegram-time {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.telegram-message {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.telegram-comment.positive {
    border-left-color: #28a745;
}

.telegram-comment.negative {
    border-left-color: #dc3545;
}

.telegram-comment.neutral {
    border-left-color: #ffc107;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .telegram-comments {
        margin-top: 30px;
        max-height: 400px;
    }
} 