@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --border: #e2e8f0;
    --success: #10b981;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    margin: 0; padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex; flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    margin-bottom: 3rem;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.logo-wrapper { display: flex; align-items: center; gap: 1rem; text-decoration: none; }

.tech-logo {
    width: 40px; height: 40px; background: var(--primary);
    border-radius: 8px; display: flex; justify-content: center; align-items: center;
    color: white; font-weight: 800; font-size: 1.4rem;
}

.brand h1 { font-size: 1.3rem; margin: 0; color: var(--text-main); font-weight: 800; letter-spacing: -0.5px; }
.brand p { font-size: 0.75rem; color: var(--text-muted); margin: 0; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }

nav { display: flex; gap: 2rem; align-items: center; }
nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
nav a:hover { color: var(--text-main); }
nav a.nav-cta {
    background: var(--text-main); color: white; padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; transition: background 0.2s;
}
nav a.nav-cta:hover { background: var(--primary); color: white; }

main { flex: 1; }

.section-title { font-size: 2.2rem; font-weight: 800; color: var(--text-main); margin-top: 0; margin-bottom: 1.5rem; letter-spacing: -0.5px; }

.hero { margin: 2rem 0 4rem 0; text-align: center; }
.hero h2 { font-size: 3.2rem; font-weight: 800; color: var(--text-main); margin-top: 0; margin-bottom: 1.5rem; line-height: 1.2; letter-spacing: -1px; }
.intro-text { font-size: 1.15rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 3rem auto; line-height: 1.7; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.card {
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.card h3 { font-size: 1.3rem; margin-top: 0; margin-bottom: 0.8rem; font-weight: 700; color: var(--text-main); }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-top: 0; flex-grow: 1; }

.price { display: block; font-size: 1.25rem; font-weight: 800; margin: 1.5rem 0 1rem 0; color: var(--text-main); }

.form-container { max-width: 600px; margin: 0 auto; width: 100%; }
.corporate-form { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.corporate-form-mini { padding: 0; border: none; background: transparent; box-shadow: none; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
input, textarea {
    width: 100%; background: var(--bg-main); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text-main); font-family: inherit; font-size: 1rem; padding: 0.75rem 1rem; box-sizing: border-box; transition: all 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); background: var(--bg-surface); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }

.btn {
    display: inline-flex; justify-content: center; align-items: center; background: var(--primary); color: white;
    border: 1px solid var(--primary); border-radius: 8px; padding: 0.8rem 1.5rem; font-family: inherit; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; text-decoration: none; box-sizing: border-box;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: white;}
.btn-outline { background: transparent; color: var(--text-main); border-color: var(--border); }
.btn-outline:hover { background: var(--bg-main); color: var(--text-main); border-color: #cbd5e1; }
.btn-dark { background: var(--text-main); border-color: var(--text-main); color: white; }
.btn-dark:hover { background: #1e293b; border-color: #1e293b; color: white;}

.success-box { padding: 2rem; border: 1px solid var(--success); border-radius: var(--radius); background: #ecfdf5; text-align: center; color: #064e3b; }

footer {
    margin-top: 5rem; padding: 3rem 0; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; font-size: 0.95rem; color: var(--text-muted); flex-wrap: wrap; gap: 1rem;
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text-main); }

.back-link {
    display: inline-flex; align-items: center; text-decoration: none; color: var(--text-muted);
    font-size: 0.95rem; font-weight: 500; margin-bottom: 2rem; transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }
.back-link::before { content: '←'; margin-right: 8px; }

.legal-text { font-size: 0.95rem; line-height: 1.7; background: var(--bg-surface); padding: 2.5rem; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 1.5rem; }
.legal-text h4 { margin-top: 2rem; margin-bottom: 1rem; color: var(--text-main); font-size: 1.1rem; }

.telegram-float {
    position: fixed; bottom: 30px; right: 30px; height: 60px; width: 60px; background-color: #229ED9; color: white;
    border-radius: 30px; display: flex; align-items: center; justify-content: center; text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(34, 158, 217, 0.4); z-index: 9999; transition: width 0.3s ease, background-color 0.2s; overflow: hidden;
}
.telegram-float svg { width: 28px; height: 28px; fill: white; flex-shrink: 0; margin: 0; }
.tg-text { white-space: nowrap; font-weight: 600; font-size: 0.95rem; max-width: 0; opacity: 0; transition: all 0.3s ease; }
.telegram-float:hover { width: 260px; background-color: #1c85b5; padding-left: 0; justify-content: center; }
.telegram-float:hover svg { margin-right: 12px; }
.telegram-float:hover .tg-text { max-width: 200px; opacity: 1; }

.btn-telegram { background: #229ED9 !important; color: white !important; border-color: #229ED9 !important; }
.btn-telegram:hover { background: #1c85b5 !important; border-color: #1c85b5 !important; }
.text-telegram { color: #229ED9; text-decoration: none; font-weight: 600; }
.text-telegram:hover { text-decoration: underline; }

.product-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.features-list { margin: 2rem 0; padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-surface); }
.features-list ul { padding-left: 1.2rem; color: var(--text-muted); margin: 0; }
.features-list li { margin-bottom: 0.5rem; }

.cookie-banner {
    position: fixed; bottom: 30px; left: 30px; width: 320px; max-width: calc(100vw - 110px);
    background: var(--text-main); color: white; padding: 1.5rem; border-radius: var(--radius);
    z-index: 9998; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow-lg);
}
.cookie-banner p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: #cbd5e1; }
.cookie-banner .btn-outline { border-color: #475569 !important; color: white !important; }
.cookie-banner .btn-outline:hover { background: white !important; color: var(--text-main) !important; }

@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 1rem; }
    nav { justify-content: center; flex-wrap: wrap; }
    .hero h2 { font-size: 2.4rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero h2 { font-size: 2rem; }
    .cookie-banner { bottom: 20px; left: 10px; width: auto; right: 90px; }
    .telegram-float:hover { width: 60px; padding-left: 0; }
    .telegram-float:hover .tg-text { display: none; }
    .telegram-float:hover svg { margin-right: 0; }
}
