@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


/* --- Переменные CSS (Design Tokens) --- */
:root {
    --primary: #2962FF;
    --primary-dark: #1E4FD9;
    --primary-light: #E8F0FE;
    --text-main: #0B1B3D;
    --text-muted: #5A6B87;
    --text-light: #FFFFFF;
    --radius-card: 24px;
    --radius-btn: 50px;
    --shadow-card: 0 15px 40px -8px rgba(41, 98, 255, 0.15);
    --shadow-hero: 0 20px 60px 0 rgba(41, 98, 255, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.40);
    --glass-border: rgba(255, 255, 255, 0.8);
    --container-max: 1320px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Общие стили и сброс --- */
body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: #FFFFFF;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    letter-spacing: -0.03em;
}

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

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

.container {
    max-width: var(--container-max);
	padding-left: 3.96%;
    padding-right: 3.96%;
}

/* --- Анимации и эффекты --- */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-aos].active {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -10px rgba(41, 98, 255, 0.2);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-card);
}

/* --- Фоновые декорации (Сетки и SVG паттерны) --- */
.bg-pattern-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.glow-effect {
    position: relative;
}
.glow-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(41, 98, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Навигация (Хедер) --- */
.navbar {
    padding: 18px 0;
    background: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
	box-shadow: 3px 6px 9px rgb(0 0 0 / 0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-brand i { color: var(--primary); font-size: 1.8rem; }

.nav-link {
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: 8px 16px !important;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-link:hover {color: #2962ff !important;}

/* Переключатель языка */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    background: rgb(39 96 236 / 16%);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 63px;
    margin-left: 9px;
	width: fit-content;
}
.lang-link {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 50px;
    transition: all 0.2s ease;
}
.lang-link.active {
    color: white;
    background: var(--primary);
    box-shadow: 0 2px 10px rgba(41,98,255,0.2);
}
.lang-divider { color: #CBD5E1; font-size: 0.8rem; }

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.3);
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 98, 255, 0.4);
    color: white;
}
.btn-ghost-custom {
    background: rgb(255 255 255 / 69%);
    color: var(--text-main);
    border: 1px solid rgb(37 91 241 / 39%);
    padding: 10px 24px;
    border-radius: var(--radius-btn);
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-ghost-custom:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Hero Section --- */
#hero {
    padding-top: 36px;
    padding-bottom: 69px;
    background: linear-gradient(219deg, #9fe0ff 0%, #f3fbff 100%);
    position: relative;
    overflow: hidden;
	background-image: url(../img/bg-1.jpg);
    background-size: cover;
    background-position: top right;
	background-repeat: no-repeat;
}
.hero-deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero-deco-1 {width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgb(41 98 255 / 69%) 0%, transparent 69%);
    top: -200px;
    right: -116px;}
.hero-deco-2 {    width: 369px;
    height: 369px;
    background: radial-gradient(circle, rgb(125 191 238) 19%, rgb(255 255 255 / 93%) 96%);
    bottom: -69px;
    left: -69px;}
.hero-deco-3 {width: 96px;
    height: 96px;
    background: rgb(41 98 255 / 19%);
    backdrop-filter: blur(9px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    top: 13%;
    left: 9%;
    animation: float 9s ease-in-out infinite;}
.hero-deco-4 {width: 169px;
    height: 169px;
    background: rgb(41 98 255 / 19%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    bottom: 36%;
    right: 1%;
    animation: float 8s ease-in-out infinite reverse; }

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

.hero-title { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.1; margin-bottom: 24px; position: relative; z-index: 1;}
.hero-title span { background: linear-gradient(135deg, var(--primary) 0%, #00C6FF 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.6; max-width: 500px; position: relative; z-index: 1;}

.hero-avatars { display: flex; align-items: center; gap: 12px; margin-top: 32px; position: relative; z-index: 1; }
.avatar-group { display: flex; }
.avatar-group img {width: 30px;
    height: 30px;
    border-radius: 69%;
    border: 1px solid #2961fd;
    margin-right: -9px;
    box-shadow: 0 3px 9px rgb(41 98 255 / 36%);
    object-fit: cover;}
.hero-rating { font-size: 0.93rem; font-weight: 500; color: var(--text-main); margin-left: 9px; }
.hero-rating i { color: #FBBF24; }

.hero-chat-wrapper { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; }
.hero-chat-interface { width: 100%; max-width: 480px; background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 40px 80px -20px rgba(41, 98, 255, 0.3); padding: 24px; position: relative; overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(0,0,0,0.03); padding-bottom: 16px; margin-bottom: 20px; }
.chat-header-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary) 0%, #00C6FF 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; }
.chat-header h5 { font-weight: 600; font-size: 1rem; margin: 0; color: var(--text-main); }
.chat-header .status { margin-left: auto; font-size: 0.75rem; color: #22C55E; background: rgba(34, 197, 94, 0.1); padding: 4px 12px; border-radius: 50px; font-weight: 500; }
.chat-messages { display: flex; flex-direction: column; gap: 16px; }
.chat-bubble { padding: 12px 16px; border-radius: 16px; max-width: 85%; font-size: 0.95rem; line-height: 1.5; animation: fadeInUp 0.6s ease-out forwards; opacity: 0; transform: translateY(10px); }
.chat-bubble.bot { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(4px); color: var(--text-main); border-bottom-left-radius: 4px; align-self: flex-start; border: 1px solid rgba(255,255,255,0.4); }
.chat-bubble.user { background: var(--primary); color: white; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-bubble:nth-child(1) { animation-delay: 0.2s; } .chat-bubble:nth-child(2) { animation-delay: 0.5s; } .chat-bubble:nth-child(3) { animation-delay: 0.8s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.typing-indicator { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(4px); border-radius: 16px; align-self: flex-start; margin-top: 8px; width: fit-content; border: 1px solid rgba(255,255,255,0.5); }
.typing-dot { width: 8px; height: 8px; background: var(--text-muted); border-radius: 50%; animation: typingBounce 1.4s infinite ease-in-out both; }
.typing-dot:nth-child(1) { animation-delay: -0.32s; } .typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

/* Статистика (Стекло) */
.stats-row { margin-top: 63px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.stat-card { background: rgba(255, 255, 255, 0.69); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); border: 1px solid rgba(255, 255, 255, 0.93); border-radius: 19px; padding: 19px; text-align: center;box-shadow: 3px 19px 17px -9px rgb(82 152 219); transition: all 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(41, 98, 255, 0.15);
background: rgba(255, 255, 255, 0.96);}
.stat-number { font-size: 2.3rem; font-weight: 800; color: #1c84ff; display: block; }
.stat-label { font-size: 0.95rem; color: var(--text-muted); margin-top: 4px; }
.stat-card:hover .stat-label {color:#000;}
/* --- Features (Можливості) --- */
#features { padding: 69px 0; background: #dbf3ff; position: relative; z-index: 1; }
.section-header { margin-bottom: 39px; position: relative; z-index: 1; }
.section-header h2 { font-size: 2.8rem; font-weight: 700; margin-bottom: 12px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted);}
.feature-card { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(8px); border-radius: var(--radius-card); padding: 32px; height: 100%; border: 1px solid rgba(255,255,255,0.8); box-shadow: 0 4px 20px rgba(0,0,0,0.02); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px -10px rgba(41, 98, 255, 0.2); border-color: rgba(41, 98, 255, 0.1); }
.feature-icon { width: 60px; height: 60px; background: var(--primary-light); border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.8rem; margin-bottom: 20px; transition: all 0.3s; }
.feature-card:hover .feature-icon { background: var(--primary); color: white; box-shadow: 0 10px 20px rgba(41, 98, 255, 0.2); }
.feature-card h4 { font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.demo-header {padding-top: 36px; text-align: center;}

/* --- How it Works --- */
#how-it-works { padding: 69px 0; background: #b4dfff; background-image: url(../img/bg-1.jpg);
background-attachment: fixed; background-position: top center; background-size: cover; }
.step-card { text-align: center; padding: 20px; position: relative; background: rgba(255, 255, 255, 0.69); backdrop-filter: blur(9px); border: 2px solid #fff; border-radius: var(--radius-card); transition: all 0.3s; }
.step-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-card); }
.step-number { width: 30px; height: 30px; background: var(--primary); color: white; border-radius: 69%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; box-shadow: 0 10px 20px rgba(41, 98, 255, 0.15); float: left; margin-top: -36px; border: 3px solid #9acfff;}
.step-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; background: #d4eafe; width: 80px; height: 80px; line-height: 80px; border-radius: 69px; margin-left: auto; margin-right: auto; transition: all 0.3s; }
.step-card:hover .step-icon { background: var(--primary); color: white; transform: scale(1.05); }
.step-card h4 { font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Demo Section --- */
#demo { padding: 80px 0; background: #FAFCFF; position: relative; }
.demo-wrapper { border-radius: 32px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.3); background: #F8FAFC; padding: 40px; position: relative; }
.demo-window { background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(12px); border-radius: 20px; padding: 24px; border: 1px solid rgba(255,255,255,0.9); box-shadow: inset 0 2px 10px rgba(0,0,0,0.02); min-height: 300px; }

/* --- Testimonials (Відгуки) --- */
#testimonials { padding: 69px 0; background: white; }
.testimonial-card { background: rgba(248, 250, 252, 0.6); backdrop-filter: blur(8px); border-radius: var(--radius-card); padding: 32px; border: 1px solid #c9d1e8; box-shadow: 0 4px 20px rgba(0,0,0,0.01); transition: all 0.3s; height: 100%; }
.testimonial-card:hover { background: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-card); transform: translateY(-5px); }
.testimonial-card i.bi-quote { font-size: 2rem; color: var(--primary); opacity: 0.2; margin-bottom: 16px; display: block; }
.testimonial-text { font-size: 1rem; line-height: 1.7; color: var(--text-main); margin-bottom: 24px; font-weight: 500; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.stars { color: #FBBF24; font-size: 0.9rem; margin-left: auto;}

/* --- Pricing (Тарифи) --- */
#pricing { padding: 69px 0; background: #e5efff; }
.pricing-card { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); border-radius: var(--radius-card); padding: 40px; border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 4px 20px rgba(0,0,0,0.02); position: relative; transition: all 0.3s ease; height: 100%; }
.pricing-card.featured { border: 1px solid rgba(41, 98, 255, 0.3); background: rgba(255, 255, 255, 0.9); box-shadow: 0 20px 60px -10px rgba(41, 98, 255, 0.2); transform: scale(1.02); z-index: 2; }
.pricing-badge { position: absolute; top: -12px; right: 20px; background: var(--primary); color: white; padding: 4px 16px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; box-shadow: 0 4px 10px rgba(41,98,255,0.3); }
.pricing-title { font-weight: 700; font-size: 1.36rem; margin-bottom: 8px; color: #1c84ff; }
.pricing-price { font-size: 2.36rem; font-weight: 900; color: var(--text-main); margin: 16px 0; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-features { list-style: none; padding: 0; margin: 24px 0 32px; }
.pricing-features li { padding: 8px 0; display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.95rem; }
.pricing-features li i { color: var(--primary); }
.pricing-btn { width: 100%; padding: 14px; border-radius: var(--radius-btn); font-weight: 600; background: var(--primary-light); color: var(--primary); border: 1px solid transparent; transition: all 0.3s ease; }
.pricing-btn:hover { background: var(--primary); color: white; }

/* --- FAQ --- */
#faq { padding: 69px 0; background: white; }
.accordion-item { border: none; border-bottom: 1px solid #dbdbdb; background: transparent; margin-bottom: 8px; }
.accordion-button { background: transparent !important; font-weight: 600; font-size: 1.1rem; color: var(--text-main); padding: 20px 0; box-shadow: none !important; }
.accordion-body { padding: 0 0 20px 0; color: #4b5f95; font-size: 0.95rem; line-height: 1.7; }

/* --- Footer --- */
footer { background: #dbf3ff; border-top: 1px solid rgba(0,0,0,0.02); padding: 63px 0 33px; }
.footer-brand { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--text-main); margin-bottom: 16px; }
.footer-brand i { color: var(--primary); }
.footer-desc { color: var(--text-muted); font-size: 0.96rem; }
.footer-title { font-weight: 700; font-size: 1rem; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.footer-social a:hover { background: var(--primary); color: white; transform: translateY(-3px); }

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-chat-interface { max-width: 100%; margin-top: 40px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { transform: scale(1); margin: 20px 0; }
	.lang-switch {margin: 16px 0px 6px 0; padding: 9px 16px; }
	.btn-primary-custom {margin-top: 9px;}
	.nav-link {border-bottom: 1px solid #d3d6d9; padding: 9px 0 !important;}
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .section-header h2 { font-size: 2rem; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 16px; }
    .stat-card { padding: 16px; }
    .stat-number { font-size: 1.8rem; }
    .demo-wrapper { padding: 20px; }
	.lang-switch {margin: 16px 0px 6px 0; padding: 9px 16px; }
	.btn-primary-custom {margin-top: 9px;}
	.nav-link {border-bottom: 1px solid #d3d6d9; padding: 9px 0 !important;}
}
@media (max-width: 576px) {
    .hero-chat-interface { padding: 16px; border-radius: 24px; }
    .chat-bubble { font-size: 0.85rem; padding: 10px 14px; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-number { font-size: 1.4rem; }
    .stat-label { font-size: 0.8rem; }
    .lang-switch {margin: 16px 0px 6px 0; padding: 9px 16px; }
    .lang-link { font-size: 0.7rem; padding: 2px 4px; }
	.btn-primary-custom {margin-top: 9px;}
	.nav-link {border-bottom: 1px solid #d3d6d9; padding: 9px 0 !important;}
}

/* --- Стили для нового UI Чата и плавающих бейджей --- */
.chat-illustration-wrapper {
    position: relative;
    width: 96%;
    max-width: 540px;
    margin: 0 auto;
    padding: 9px 0;
}

/* Эффект стекла для бейджей и окна */
.glass-panel, .glass-browser-window {
    background: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgb(255 255 255 / 0.93);
    box-shadow: 0 39px 69px -19px rgb(82 152 219);
    border-radius: 19px;
    transition: all 0.3s ease;
}

/* Плавающие карточки */
.float-card {
    position: absolute;
    padding: 14px 20px;
    border-radius: 16px;
    z-index: 5;
    animation: floatY 6s ease-in-out infinite;
}
/* Иконки внутри бейджей */
.float-card .icon-circle {
    width: 42px; 
    height: 42px; 
    border-radius: 50%;
}
.float-card .icon-circle.bg-success-subtle { background: rgba(34, 197, 94, 0.1); }
.float-card .icon-circle.bg-primary-subtle { background: rgba(41, 98, 255, 0.1); }

.fc-1 { top: -6px; right: -36px; animation-delay: 0s; }
.fc-2 { bottom: 19px; left: -36px; animation-delay: 3s; }

/* Сама анимация (плавание вверх-вниз) */
@keyframes floatY {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Главное окно чата (браузер) */
.glass-browser-window {
    padding: 24px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Кнопки красно-желто-зеленые */
.browser-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.browser-dots .dot.red { background: #ef4444; }
.browser-dots .dot.yellow { background: #f59e0b; }
.browser-dots .dot.green { background: #10b981; }

/* Статус Онлайн */
.status-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-dot {
    width: 6px; 
    height: 6px; 
    background: #16a34a; 
    border-radius: 50%; 
    display: inline-block;
}

/* Пузырьки сообщений */
.browser-body .chat-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}
.browser-body .chat-bubble.ai {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.browser-body .chat-bubble.user {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

/* Индикатор печати */
.typing-indicator {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 12px 16px;
    border-radius: 16px;
}
.typing-indicator .typing-dot {
    width: 6px; 
    height: 6px; 
    background: var(--text-muted); 
    border-radius: 50%; 
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-indicator .typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator .typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Поле ввода */
.browser-input-wrapper .form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}
.browser-input-wrapper .form-control:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.1), inset 0 2px 4px rgba(0,0,0,0.01);
}

/* Адаптивность (Мобильные устройства) */
@media (max-width: 992px) {
    .fc-1 { right: -15px; top: 0px; }
    .fc-2 { left: -15px; bottom: 0px; }
}
@media (max-width: 768px) {
    .float-card { 
        padding: 10px 14px;
        transform: scale(0.9);
    }
    .fc-1 { right: 0px; top: -10px; }
    .fc-2 { left: 0px; bottom: -10px; }
}
@media (max-width: 576px) {
    .float-card { display: none; } /* На очень маленьких экранах скрываем бейджи */
    .glass-browser-window { padding: 16px; border-radius: 20px; }
    .chat-bubble { font-size: 0.85rem; padding: 10px 14px; }
}

.g-5, .gy-5 {
    --bs-gutter-y: 1.5rem;
}

.g-5, .gx-5 {
    --bs-gutter-x: 1.5rem;
}

/* --- Нативная карусель на CSS Scroll Snap --- */
.carousel-native-container {
    position: relative;
    padding: 0 40px; /* Отступы, чтобы стрелки не перекрывали контент */
}

.carousel-native-track {
    display: flex;
    flex-wrap: nowrap; /* ЗАПРЕЩАЕМ ПЕРЕНОС строк! */
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 5px 0 20px;
    
    /* Скрыть скроллбар для Chrome/Safari/Edge/Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-native-track::-webkit-scrollbar {
    display: none;
}

.carousel-native-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    /* По умолчанию для больших экранов: 33.33% (3 шт) минус отступ */
    width: calc(33.333% - 16px); 
}

/* Планшет: 2 карточки в ряд */
@media (max-width: 991px) {
    .carousel-native-item {
        width: calc(50% - 12px);
    }
}

/* Мобильные: 1 карточка в ряд */
@media (max-width: 576px) {
    .carousel-native-container {
        padding: 0 20px; /* Уменьшаем отступы на мобильных */
    }
    .carousel-native-item {
        width: 100%;
    }
}

/* Стеклянные кнопки-стрелки */
.carousel-native-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px -5px rgba(41, 98, 255, 0.15);
    color: var(--text-main);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    cursor: pointer;
}
.carousel-native-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px -5px rgba(41, 98, 255, 0.3);
    transform: translateY(-50%) scale(1.08);
    color: var(--primary);
}
.prev-btn { left: -20px; }
.next-btn { right: -20px; }

@media (max-width: 576px) {
    .carousel-native-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.9);
    }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
}

/* --- Нативная карусель на CSS Scroll Snap --- */
.carousel-native-container {
    position: relative;
    padding: 0 40px; /* Отступы для стрелок */
}

.carousel-native-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 5px 0 20px;
    
    /* Скрыть скроллбар */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-native-track::-webkit-scrollbar {
    display: none;
}

.carousel-native-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    /* По умолчанию: 3 в ряд (33.33% - отступ) */
    width: calc(33.333% - 16px);
}

/* Планшет: 2 в ряд */
@media (max-width: 991px) {
    .carousel-native-item {
        width: calc(50% - 12px);
    }
}

/* Мобильные: 1 в ряд */
@media (max-width: 576px) {
    .carousel-native-container {
        padding: 0 20px;
    }
    .carousel-native-item {
        width: 100%;
    }
}

/* Исправление структуры "Звезды слева под именем" */
.testimonial-author {
    display: flex;
    flex-wrap: wrap; /* Разрешаем переносить элементы */
    align-items: center;
    gap: 4px 12px; /* Небольшой отступ по вертикали и горизонтали */
}
.testimonial-author > div:nth-child(1) {
    flex: 1; /* Блок с именем и должностью занимает всю ширину первой строки */
}
.testimonial-author .stars {
    flex-basis: 100%; /* Принудительно переносим звезды на новую строку */
    text-align: left; /* Выравниваем звезды по ЛЕВОМУ краю */
    margin-top: 4px;
    margin-left: 0 !important;
}

/* Стеклянные стрелки */
.carousel-native-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px -5px rgba(41, 98, 255, 0.15);
    color: var(--text-main);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    cursor: pointer;
}
.carousel-native-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px -5px rgba(41, 98, 255, 0.3);
    transform: translateY(-50%) scale(1.08);
    color: var(--primary);
}
.prev-btn { left: -20px; }
.next-btn { right: -20px; }

@media (max-width: 576px) {
    .carousel-native-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.9);
    }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
}
.btn-group-lg>.btn, .btn-lg {--bs-btn-font-size: 1.1rem;}


 /* --- Стилі для цієї сторінки (не перекривають глобальні) --- */
        .guide-hero {
            background: linear-gradient(135deg, #2aabe2 0%, #6d5dfc 100%);
            padding-top: 36px;
            padding-bottom: 69px;
            position: relative;
            overflow: hidden;
        }
        .guide-hero .bg-pattern-overlay {
            background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 40%),
                              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
        }
        .guide-illustration {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 200px;
            background: rgba(255,255,255,0.12);
            border-radius: 32px;
            backdrop-filter: blur(4px);
            padding: 1.5rem;
        }
        .guide-illustration svg {
            max-width: 280px;
            width: 100%;
            height: auto;
        }

        /* Картки кроків */
        .step-card.guide-step {
            text-align: left;
            border-left: 4px solid var(--bs-primary);
            border-radius: 16px;
            background: rgba(255,255,255,0.85);
            backdrop-filter: blur(8px);
            padding: 1.75rem;
            box-shadow: 0 8px 24px rgba(0,0,0,0.04);
            height: 100%;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .step-card.guide-step:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 40px rgba(42,171,226,0.12);
        }

        /* Слово "Крок" – окремий текст, цифра – у колі */
        .step-label {
            display: inline-block;
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-right: 0.5rem;
            vertical-align: middle;
        }
        .step-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            background: var(--bs-primary);
            color: #fff;
            border-radius: 50%;
            font-weight: 700;
            font-size: 0.9rem;
            box-shadow: 0 4px 12px rgba(41,98,255,0.2);
            vertical-align: middle;
            flex-shrink: 0;
            border: 2px solid rgba(255,255,255,0.6);
        }
        .step-title {
            font-weight: 600;
            margin-top: 0.75rem;
            margin-bottom: 0.5rem;
        }
        .step-card.guide-step p {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.6;
        }
        .code-inline {
            background: rgba(0,0,0,0.06);
            padding: 0.2rem 0.6rem;
            border-radius: 6px;
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
        }

        /* Поради */
        .tip-box {
            border-radius: 16px;
            background: rgba(255,255,255,0.8);
            backdrop-filter: blur(8px);
            padding: 1.75rem;
            box-shadow: 0 8px 24px rgba(0,0,0,0.04);
            height: 100%;
        }
        .tip-icon {
            font-size: 1.75rem;
            margin-right: 0.75rem;
            color: var(--bs-primary);
        }

        /* CTA-блок */
        .guide-cta {
            background: rgba(255,255,255,0.85);
            backdrop-filter: blur(8px);
            border-radius: 24px;
            padding: 2.5rem 2rem;
            box-shadow: 0 12px 40px rgba(0,0,0,0.06);
        }

        @media (max-width: 767px) {
            .step-card.guide-step { padding: 1.25rem; }
            .guide-illustration { min-height: 160px; }
        }

.lang-switch .lang-link:not(.active) {
    color: var(--text-muted) !important;
    background: transparent !important;
    box-shadow: none !important;
}
.lang-switch .lang-link.active {
    color: white !important;
    background: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(41,98,255,0.2) !important;
}
