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

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #fae8ff 50%, #d1fae5 100%);
    background-attachment: fixed;
    color: #1e293b;
    line-height: 1.5;
    min-height: 100vh;
    animation: softPulse 15s ease infinite alternate;
    position: relative;
    overflow-x: hidden;
}

@keyframes softPulse {
    0% { opacity: 0.9; }
    100% { opacity: 1; }
}

.floating-icon {
    position: fixed;
    font-size: 2.5rem;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    animation: floatAround 40s infinite alternate ease-in-out;
}

.icon1 { top: 10%; left: 5%; animation-duration: 35s; }
.icon2 { top: 70%; left: 85%; animation-duration: 45s; animation-delay: -10s; }
.icon3 { top: 40%; left: 90%; animation-duration: 50s; animation-delay: -5s; }
.icon4 { top: 80%; left: 10%; animation-duration: 38s; animation-delay: -20s; }
.icon5 { top: 20%; left: 50%; animation-duration: 42s; animation-delay: -15s; }
.icon6 { top: 60%; left: 30%; animation-duration: 55s; animation-delay: -25s; }
.icon7 { top: 50%; left: 70%; animation-duration: 48s; animation-delay: -30s; }
.icon8 { top: 90%; left: 60%; animation-duration: 52s; animation-delay: -8s; }

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    20% { transform: translate(30px, -20px) rotate(10deg) scale(1.05); }
    40% { transform: translate(-20px, 40px) rotate(-10deg) scale(0.95); }
    60% { transform: translate(40px, 10px) rotate(5deg) scale(1.1); }
    80% { transform: translate(-30px, -30px) rotate(-5deg) scale(0.9); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.menu-icon {
    width: 32px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1e293b;
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-icon:hover span {
    background: #3b82f6;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.telegram-icon {
    display: inline-flex;
    transition: transform 0.2s;
}

.telegram-icon:hover {
    transform: scale(1.1);
}

.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    padding: 2rem 1.5rem;
    transition: left 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
}

.side-menu.open {
    left: 0;
}

.side-menu ul {
    list-style: none;
    margin-top: 2rem;
}

.side-menu li {
    margin: 1.5rem 0;
}

.side-menu a {
    text-decoration: none;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 500;
    display: block;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.side-menu a:hover {
    background: #f1f5f9;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

header p {
    color: #475569;
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

.payment-block {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255,255,255,0.5);
}

.payment-card {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.payment-icon {
    font-size: 1.8rem;
}

.payment-contact {
    color: #1e293b;
    font-size: 1rem;
}

.payment-contact a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.custom-request-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 40px;
    cursor: pointer;
    margin: 1rem 0 2rem;
    transition: background 0.2s;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(16,185,129,0.2);
}

.custom-request-btn:hover {
    background: #059669;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

#searchInput {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 60px;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -2px rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
}

#searchInput:focus {
    border-color: #3b82f6;
    box-shadow: 0 8px 12px -4px rgba(59,130,246,0.2);
    background: white;
}

.filter-row {
    margin-top: 0.8rem;
}

#categoryFilter {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 30px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    font-size: 0.95rem;
    outline: none;
}

#searchStats {
    margin-top: 0.5rem;
    color: #475569;
    font-size: 0.9rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.article-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,s0,0.05);
    transition: transform 0.2, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.1);
    background: rgba(255,255,255,1);
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0f172a;
    line-height: 1.4;
}

.article-desc {
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
    margin-top: auto;
}

.price {
    font-weight: 700;
    color: #059669;
    background: rgba(209,250,229,0.7);
    padding: 0.25rem 0.75rem;
    border-radius: 40px;
    font-size: 0.9rem;
}

.request-btn {
    background: #8b5cf6;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(139,92,246,0.2);
}

.request-btn:hover {
    background: #7c3aed;
}

.request-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #475569;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.welcome-message {
    text-align: center;
    padding: 3rem;
    color: #475569;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-top: 2rem;
}

.top-articles {
    margin-top: 2rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.5);
}

.top-articles h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.top-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.top-title {
    color: #1e293b;
}

.top-price {
    font-weight: 600;
    color: #059669;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#customRequestForm label {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
}

#customRequestForm input {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.3rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
}

#customRequestForm button {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.8rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.5);
}

.useful-links {
    text-align: center;
    color: #1e293b;
}

.useful-links h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.useful-links ul {
    list-style: none;
    padding: 0;
}

.useful-links li {
    margin: 0.5rem 0;
}

.useful-links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #64748b;
}

@media (max-width: 640px) {
    h1 { font-size: 1.8rem; }
    .container { padding: 1rem; }
    .menu-icon { width: 28px; height: 20px; }
}
.top-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    gap: 1rem;
}
.top-title {
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
    flex: 1;
}
.top-price {
    font-weight: 600;
    color: #059669;
    background: rgba(209,250,229,0.5);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.article-checkbox {
    margin-right: 0.5rem;
    transform: scale(1.2);
    cursor: pointer;
}
.batch-request-btn {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 40px;
    cursor: pointer;
    margin: 1rem 0 2rem;
    transition: background 0.2s;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(245,158,11,0.2);
    display: inline-block;
}
.batch-request-btn:hover {
    background: #d97706;
}
.batch-request-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}
.batch-panel {
    display: none;
    text-align: center;
    margin-top: 1rem;
}
.batch-panel.active {
    display: block;
}
.selected-count {
    font-weight: bold;
    color: #f59e0b;
}
.welcome-modal .modal-content {
    max-width: 500px;
}
.welcome-steps {
    margin: 1.5rem 0;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.step-number {
    background: #3b82f6;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}
.step p {
    margin: 0;
    color: #334155;
    line-height: 1.5;
}
.welcome-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.welcome-btn:hover {
    background: #059669;
}
