/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f4f7fc;
    color: #1a1e2b;
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 20, 50, 0.08);
    padding: 40px 35px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 15px 0 40px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 35px;
}

header .logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 16px;
    background: #f8faff;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0a1a2f;
    letter-spacing: -0.5px;
}

header h1 span {
    color: #2563eb;
}

header p {
    font-size: 1.1rem;
    color: #5b6b7e;
    font-weight: 400;
    margin-top: 6px;
}

/* ===== TOOLS GRID ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 10px;
}

/* ===== TOOL CARD (Clean, Professional) ===== */
.tool-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 24px 24px;
    border: 1px solid #e8edf4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: #2563eb;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.08);
}

.tool-icon {
    font-size: 2.6rem;
    margin-bottom: 14px;
    display: block;
}

.tool-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a1a2f;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 48px;
}

.tool-card .price {
    font-size: 2rem;
    font-weight: 800;
    color: #0a1a2f;
    margin: 6px 0 10px;
    display: inline-block;
    background: #f0f5ff;
    padding: 2px 16px;
    border-radius: 40px;
    color: #2563eb;
    align-self: flex-start;
}

.tool-card .meta {
    color: #5b6b7e;
    font-size: 0.9rem;
    margin: 3px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-card .meta span {
    background: #f4f7fc;
    padding: 3px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #3d4e62;
    font-weight: 500;
}

/* ===== ORDER BUTTON (Professional Blue) ===== */
.order-btn {
    width: 100%;
    padding: 14px 18px;
    margin-top: 18px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.order-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transform: scale(1.01);
}

.order-btn:active {
    transform: scale(0.97);
}

/* ===== FOOTER ===== */
footer {
    margin-top: 50px;
    padding-top: 28px;
    border-top: 1px solid #eef2f7;
    text-align: center;
    color: #5b6b7e;
}

footer p {
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-links {
    margin: 14px 0 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-links span {
    cursor: pointer;
    color: #3d4e62;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.footer-links span:hover {
    color: #2563eb;
    background: #f0f5ff;
}

.footer-contact {
    font-size: 0.9rem;
    color: #5b6b7e;
    margin-top: 12px;
    line-height: 1.7;
}

.footer-contact a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ===== POPUP (Clean Modal) ===== */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 26, 47, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
}

#popup-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #ffffff;
    padding: 36px 32px;
    border-radius: 24px;
    max-width: 500px;
    width: 92%;
    z-index: 1000;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    animation: popIn 0.25s ease forwards;
    border: 1px solid #e8edf4;
}

@keyframes popIn {
    to { transform: translate(-50%, -50%) scale(1); }
}

#popup-box h3 {
    font-size: 1.5rem;
    color: #0a1a2f;
    margin-bottom: 12px;
    font-weight: 700;
}

#popup-box p {
    color: #3d4e62;
    line-height: 1.7;
    font-size: 0.95rem;
}

#popup-box button {
    margin-top: 20px;
    padding: 10px 28px;
    background: #eef2f7;
    color: #0a1a2f;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

#popup-box button:hover {
    background: #dce3ec;
}

.hidden {
    display: none !important;
}

/* ===== FLOATING ICONS (Clean, Subtle) ===== */
.float-icon {
    position: fixed;
    right: 24px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    text-align: center;
    line-height: 54px;
    color: white;
    font-size: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    z-index: 998;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
}

.float-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.whatsapp {
    bottom: 90px;
    background: #25D366;
}

.telegram {
    bottom: 20px;
    background: #0088cc;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .container { padding: 30px 25px; }
    header h1 { font-size: 2.4rem; }
    .tools-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 768px) {
    body { padding: 16px; }
    .container { padding: 20px 16px; border-radius: 18px; }
    header { padding: 10px 0 25px; }
    header h1 { font-size: 2rem; }
    header p { font-size: 0.95rem; }
    .tools-grid { grid-template-columns: 1fr; gap: 20px; }
    .tool-card { padding: 22px 18px; }
    .tool-card h3 { font-size: 1rem; min-height: auto; }
    .tool-card .price { font-size: 1.6rem; }
    .footer-links { gap: 6px 14px; }
    .footer-links span { font-size: 0.85rem; }
    .float-icon { width: 48px; height: 48px; line-height: 48px; font-size: 20px; right: 16px; }
    .whatsapp { bottom: 80px; }
    .telegram { bottom: 18px; }
    #popup-box { padding: 28px 20px; }
}

@media (max-width: 480px) {
    header h1 { font-size: 1.7rem; }
    header .logo { width: 60px; height: 60px; padding: 10px; }
    .container { padding: 14px 12px; border-radius: 14px; }
    .tool-card { padding: 18px 14px; }
    .order-btn { font-size: 0.95rem; padding: 12px; }
}