/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #10B981);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #F3F4F6;
    color: #374151;
    border: 1px solid #D1D5DB;
}

.btn-secondary:hover {
    background: #E5E7EB;
}

/* Icon Styles */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E5E7EB;
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3B82F6, #10B981);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #3B82F6;
}

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

.contact-btn {
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn.telegram {
    color: #0088cc;
}

.contact-btn.telegram:hover {
    background: rgba(0, 136, 204, 0.1);
}

.contact-btn.whatsapp {
    color: #25D366;
}

.contact-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
}

.language-switcher {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    display: none;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.language-option:hover {
    background: #F3F4F6;
}

.language-option.active {
    background: #EFF6FF;
    color: #3B82F6;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E5E7EB;
    padding: 20px;
}

.mobile-menu.show {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.mobile-nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
}

.mobile-contacts {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
    padding: 120px 0 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero .brand {
    background: linear-gradient(135deg, #3B82F6, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #6B7280;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-feature {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
}

.hero-feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: #3B82F6;
}

.hero-feature-icon svg {
    width: 100%;
    height: 100%;
}

/* Exchange Section */
.exchange {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #6B7280;
    margin-bottom: 48px;
}

.exchange-calculator {
    background: linear-gradient(135deg, #EFF6FF, #F0FDF4);
    border-radius: 16px;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.exchange-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.exchange-input {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.exchange-input label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.input-group {
    display: flex;
    gap: 16px;
}

.exchange-input input {
    flex: 1;
    padding: 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.exchange-input input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.exchange-input select {
    padding: 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    cursor: pointer;
}

.currency-badge {
    padding: 16px 20px;
    background: #F3F4F6;
    border-radius: 8px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-icon {
    width: 20px;
    height: 20px;
}

.rate-display {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.rate-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.notes-field {
    grid-column: 1 / -1;
}

.notes-field label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3B82F6, #10B981);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.status-message {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.status-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.status-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Admin Panel */
.admin-panel {
    background: #F9FAFB;
    padding: 40px 0;
    border-top: 1px solid #E5E7EB;
}

.admin-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.admin-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.admin-section h4 {
    margin-bottom: 20px;
    color: #111827;
    font-size: 1.25rem;
}

.rate-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.rate-control {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.rate-control label {
    font-weight: 600;
    color: #374151;
}

.rate-control input {
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
}

.telegram-config {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.telegram-config label {
    font-weight: 600;
    color: #374151;
}

.telegram-config input {
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
}

.admin-settings {
    margin-top: 16px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.admin-settings label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.admin-settings input {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    margin-right: 12px;
}

/* Why Choose Us */
.why-us {
    padding: 80px 0;
    background: linear-gradient(135deg, #F9FAFB, #EFF6FF);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3B82F6, #10B981);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.feature-card p {
    color: #6B7280;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3B82F6;
    margin-bottom: 8px;
}

.stat-label {
    color: #6B7280;
    font-weight: 500;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.review-card {
    background: linear-gradient(135deg, #EFF6FF, #F0FDF4);
    padding: 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.star {
    width: 20px;
    height: 20px;
    color: #FDE047;
}

.review-text {
    color: #374151;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.review-info p {
    color: #6B7280;
    font-size: 14px;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 32px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.trust-dot.green { background: #10B981; }
.trust-dot.blue { background: #3B82F6; }
.trust-dot.yellow { background: #F59E0B; }

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-tagline {
    color: #9CA3AF;
    margin-bottom: 24px;
    max-width: 400px;
}

.footer-contacts {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: #9CA3AF;
    font-size: 14px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10B981;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Floating Contact */
.floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.floating-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.floating-buttons.show {
    transform: scale(1);
    opacity: 1;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn.telegram {
    background: #0088cc;
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn svg {
    width: 24px;
    height: 24px;
}

.floating-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3B82F6, #10B981);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-toggle:hover {
    transform: scale(1.1);
}

.floating-toggle svg {
    width: 28px;
    height: 28px;
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
    background: white;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.last-updated {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.legal-section p {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-section ul {
    color: #374151;
    line-height: 1.7;
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-section li {
    margin-bottom: 8px;
}

.contact-info {
    background: #F9FAFB;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info a {
    color: #3B82F6;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Admin Access */
.admin-access {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    min-width: 300px;
}

.admin-access input {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 16px;
}

.admin-access button {
    width: 100%;
    padding: 12px;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        position: relative;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.125rem;
    }

    .hero-features {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .exchange-calculator {
        padding: 32px 24px;
    }

    .exchange-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 16px;
    }

    .admin-controls {
        grid-template-columns: 1fr;
    }

    .rate-control {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .floating-contact {
        bottom: 16px;
        right: 16px;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .rate-control {
        grid-template-columns: 1fr;
    }
}