/* =========================================
   БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ (SaaS-стиль)
   ========================================= */
:root {
    --bg-main: #ffffff;
    --bg-secondary: #f4f7f9;
    --text-main: #333333;
    --text-muted: #7a848e;
    --primary-color: #105efb; 
    --primary-hover: #0d4ed1;
    --border-color: #e5e8ed;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 15px 35px rgba(16, 94, 251, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; 
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   НАВИГАЦИЯ И ШАПКА
   ========================================= */
.navbar {
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s, padding 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.logo span { color: var(--primary-color); }

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    margin: 0 15px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary-color); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* =========================================
   КНОПКИ И АНИМАЦИИ
   ========================================= */
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(16, 94, 251, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.5s ease-in-out;
}

.btn-primary:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(16, 94, 251, 0.4);
}
.btn-primary:hover::after { left: 150%; }

.btn-secondary, .btn-outline {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-secondary { background: #fff; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--primary-color); color: var(--primary-color); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); padding: 10px 20px; }
.btn-outline:hover { background: var(--primary-color); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(16, 94, 251, 0.2); }

.full-width { width: 100%; display: block; padding: 14px 20px;}

/* Анимация появления (Fade-in) */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, visibility;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* Анимация парения для иконок */
.floating { animation: float 3s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   ГЛАВНЫЙ ЭКРАН И ОБЩИЕ СЕКЦИИ
   ========================================= */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; color: var(--text-main); margin-bottom: 15px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
    text-align: center;
}
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.25; margin-bottom: 25px; color: #1a1a1a; letter-spacing: -1px; }
.hero h1 span { color: var(--primary-color); }
.hero p { font-size: 1.15rem; max-width: 700px; margin: 0 auto 40px; color: var(--text-muted); }
.hero-buttons { display: flex; justify-content: center; gap: 15px; }

/* Общие стили для карточек */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.card, .case-card, .price-card, .blog-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.card:hover, .case-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--card-shadow-hover); 
    border-color: rgba(16, 94, 251, 0.2);
}

/* =========================================
   УСЛУГИ И SVG ИКОНКИ
   ========================================= */
.services { padding: 90px 0; background: var(--bg-main); }
.card { padding: 35px 25px; }
.card h3 { font-size: 1.2rem; margin-bottom: 15px; color: #1a1a1a; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.custom-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: inline-block;
}

/* =========================================
   БЛОК ОБО МНЕ (LEAD4SELL)
   ========================================= */
.about-me { padding: 100px 0; background: var(--bg-secondary); }
.about-wrapper { display: flex; align-items: center; gap: 60px; background: #fff; border-radius: 16px; padding: 50px; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); }
.about-image-col { flex: 0 0 350px; position: relative; }
.photo-placeholder { width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); transform: rotate(-2deg); transition: transform 0.4s ease; }
.photo-placeholder:hover { transform: rotate(0deg) scale(1.02); }
.photo-placeholder img { width: 100%; height: auto; display: block; object-fit: cover; }
.brand-tag { position: absolute; bottom: -20px; right: -20px; background: var(--primary-color); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 1.1rem; font-weight: 700; box-shadow: 0 10px 25px rgba(16, 94, 251, 0.3); }

.about-text-col { flex: 1; }
.about-text-col h2 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 20px; color: var(--text-main); }
.greeting { font-size: 1.25rem; font-weight: 700; color: var(--primary-color); margin-bottom: 15px; }
.about-desc { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 30px; }

.benefits-list { list-style: none; margin-bottom: 40px; }
.benefits-list li { position: relative; padding-left: 35px; margin-bottom: 15px; font-size: 1.05rem; color: var(--text-muted); }
.benefits-list li strong { color: var(--text-main); }
.check-icon { position: absolute; left: 0; top: 2px; background: #e6f0ff; color: var(--primary-color); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold; }

.guarantee-box { display: flex; gap: 20px; background: var(--bg-main); padding: 25px; border-radius: 12px; border-left: 4px solid #00d26a; border: 1px solid var(--border-color); }
.custom-icon-guarantee { width: 40px; height: 40px; flex-shrink: 0; }
.guarantee-text h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text-main); }
.guarantee-text p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

/* =========================================
   КЕЙСЫ
   ========================================= */
.cases { padding: 90px 0; background: var(--bg-main); }
.cases-grid { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.case-card { padding: 40px; }
.case-tag { display: inline-block; background: #e6f0ff; color: var(--primary-color); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 15px; }
.case-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.case-card p { color: var(--text-muted); margin-bottom: 10px; font-size: 0.95rem; }
.case-card strong { color: var(--text-main); }

/* =========================================
   ЛИД-МАГНИТ (TELEGRAM ВОРОНКА)
   ========================================= */
.lead-magnet { padding: 80px 0; background: var(--bg-main); }
.lm-wrapper { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border-radius: 20px; padding: 60px; color: #ffffff; box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25); position: relative; overflow: hidden; }
.lm-wrapper::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(16, 94, 251, 0.15) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.lm-content { flex: 1; max-width: 600px; position: relative; z-index: 2; }
.lm-badge { display: inline-block; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #38bdf8; padding: 6px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.lm-content h2 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 20px; color: #ffffff; }
.lm-desc { font-size: 1.1rem; color: #94a3b8; margin-bottom: 25px; line-height: 1.6; }
.lm-list { list-style: none; margin-bottom: 35px; }
.lm-list li { font-size: 1.05rem; color: #e2e8f0; margin-bottom: 12px; display: flex; align-items: center; }
.lm-list li span { color: #00d26a; font-weight: bold; margin-right: 12px; font-size: 1.2rem; }

.btn-telegram { display: inline-flex; align-items: center; background: #2AABEE; color: #ffffff; padding: 16px 32px; border-radius: 10px; text-decoration: none; font-size: 1.1rem; font-weight: 700; transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(42, 171, 238, 0.3); position: relative; overflow: hidden; }
.btn-telegram::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); transition: 0.6s ease; }
.btn-telegram:hover { background: #229ED9; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(42, 171, 238, 0.4); }
.btn-telegram:hover::after { left: 150%; }
.tg-icon { width: 24px; height: 24px; margin-right: 12px; }
.lm-subtext { font-size: 0.85rem; color: #64748b; margin-top: 15px; }

.lm-image { flex: 0 0 300px; display: flex; justify-content: center; perspective: 1000px; }
.pdf-mockup { width: 240px; height: 320px; background: #ffffff; border-radius: 12px; box-shadow: 20px 20px 40px rgba(0,0,0,0.4); transform: rotateY(-15deg) rotateX(5deg); transition: transform 0.5s ease; overflow: hidden; position: relative; }
.lm-image:hover .pdf-mockup { transform: rotateY(0deg) rotateX(0deg) scale(1.05); }
.pdf-header { background: var(--primary-color); padding: 20px; text-align: center; }
.pdf-icon-white { width: 32px; height: 32px; display: block; margin: 0 auto; }
.pdf-body { padding: 20px; }
.pdf-body .line { height: 8px; background: #e2e8f0; border-radius: 4px; margin-bottom: 12px; width: 100%; }
.pdf-body .line.short { width: 60%; margin-bottom: 25px; }
.checklist-item { font-size: 0.9rem; color: #334155; margin-bottom: 15px; display: flex; align-items: center; }
.checklist-item .check { background: #f1f5f9; color: #00d26a; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 4px; margin-right: 10px; font-weight: bold; }

/* =========================================
   ИИ-ЧАТБОТ (DEMO)
   ========================================= */
.ai-demo { padding: 90px 0; background: var(--bg-main); }
.ai-demo-wrapper { display: flex; align-items: center; gap: 50px; background: var(--bg-secondary); border-radius: 16px; padding: 50px; transition: transform 0.3s, box-shadow 0.3s; }
.ai-demo-wrapper:hover { box-shadow: var(--card-shadow-hover); }
.ai-demo-text { flex: 1; }
.ai-demo-text h2 { font-size: 2.2rem; margin-bottom: 20px; }
.ai-demo-text p { color: var(--text-muted); font-size: 1.1rem; }

.chat-container { flex: 1; background: #fff; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border-color); }
.chat-header { background: #fafafa; padding: 15px 20px; font-weight: 700; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px; }
.status-dot { width: 10px; height: 10px; background: #00d26a; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px rgba(0, 210, 106, 0.5); animation: pulse 2s infinite; }
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 210, 106, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 106, 0); }
}
.chat-messages { height: 300px; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background: #fdfdfd; }
.msg { padding: 12px 16px; border-radius: 12px; max-width: 85%; font-size: 0.95rem; line-height: 1.4; animation: slideUp 0.3s ease-out; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.bot-msg { background: #f0f4f8; color: var(--text-main); align-self: flex-start; border-bottom-left-radius: 2px; }
.user-msg { background: var(--primary-color); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-input-wrapper { display: flex; padding: 15px; border-top: 1px solid var(--border-color); background: #fff; }
.chat-input-wrapper input { flex-grow: 1; border: 1px solid var(--border-color); border-radius: 6px; padding: 10px 15px; outline: none; font-size: 0.95rem; transition: border-color 0.3s; }
.chat-input-wrapper input:focus { border-color: var(--primary-color); }
.chat-input-wrapper button { background: var(--primary-color); color: #fff; border: none; padding: 0 20px; margin-left: 10px; border-radius: 6px; cursor: pointer; font-weight: 600; transition: 0.2s; }
.chat-input-wrapper button:hover { background: var(--primary-hover); transform: scale(1.05); }

/* =========================================
   ТАРИФЫ
   ========================================= */
.pricing { padding: 90px 0; background: var(--bg-main); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: stretch; }
.price-card { padding: 40px; display: flex; flex-direction: column; position: relative; }
.price-card:hover { transform: translateY(-8px); box-shadow: var(--card-shadow-hover); }
.price-card.popular { border: 2px solid var(--primary-color); transform: scale(1.03); z-index: 2; box-shadow: 0 10px 30px rgba(16, 94, 251, 0.1); }
.price-card.popular:hover { transform: scale(1.05) translateY(-5px); box-shadow: 0 15px 40px rgba(16, 94, 251, 0.2); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary-color); color: #fff; padding: 4px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.price-card h3 { font-size: 1.3rem; color: var(--text-main); }
.price { font-size: 2.2rem; font-weight: 700; color: #1a1a1a; margin: 15px 0 5px; }
.price-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 25px; }
.price-card ul { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.price-card ul li { padding: 10px 0; border-bottom: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.95rem; }
.price-card ul li:last-child { border-bottom: none; }

/* =========================================
   БЛОГ
   ========================================= */
.blog { padding: 100px 0; background: var(--bg-secondary); }
.blog-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.blog-card { display: flex; flex-direction: column; }
.blog-image { position: relative; height: 220px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-image img { transform: scale(1.08); }
.blog-category { position: absolute; top: 20px; left: 20px; background: var(--primary-color); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; z-index: 2; }
.blog-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; display: block; }
.blog-content h3 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 15px; }
.blog-content h3 a { color: var(--text-main); text-decoration: none; transition: color 0.2s; }
.blog-content h3 a:hover { color: var(--primary-color); }
.blog-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }
.read-more { display: inline-flex; align-items: center; color: var(--primary-color); text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: color 0.2s; }
.read-more span { margin-left: 8px; transition: transform 0.3s ease; }
.read-more:hover { color: var(--primary-hover); }
.read-more:hover span { transform: translateX(5px); }
.blog-footer { text-align: center; margin-top: 50px; }

/* =========================================
   КОНТАКТЫ
   ========================================= */
.contact { padding: 90px 0; background: var(--bg-main); }
.contact-wrapper { display: flex; align-items: center; gap: 50px; background: var(--primary-color); border-radius: 16px; padding: 60px; color: #fff; position: relative; overflow: hidden; }
.contact-wrapper::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%); pointer-events: none; }
.contact-info { flex: 1; position: relative; z-index: 1;}
.contact-info h2 { font-size: 2.5rem; margin-bottom: 20px; color: #fff; }
.contact-info p { font-size: 1.1rem; opacity: 0.9; }
.contact-form-block { flex: 1; background: #fff; padding: 40px; border-radius: 12px; position: relative; z-index: 1; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.form { display: flex; flex-direction: column; gap: 20px; }
.form input { width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; outline: none; transition: border-color 0.3s, box-shadow 0.3s; }
.form input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(16, 94, 251, 0.1); }
.hidden-message { display: none; color: #00d26a; margin-top: 20px; font-weight: bold; text-align: center; }

/* Подвал */
.footer { text-align: center; padding: 30px 0; background: #1a1a1a; color: #888; font-size: 0.9rem; }

/* =========================================
   МОБИЛЬНОЕ МЕНЮ (ГАМБУРГЕР)
   ========================================= */
.burger-menu { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; cursor: pointer; z-index: 1001; }
.burger-menu span { display: block; height: 3px; width: 100%; background-color: var(--primary-color); border-radius: 3px; transition: 0.3s; }

.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s ease; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; max-width: 85%; height: 100vh; background: var(--bg-main); z-index: 2001; padding: 25px 20px; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1); transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); overflow-y: auto; }
.mobile-menu.active { right: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.close-btn { font-size: 2.5rem; line-height: 1; color: var(--text-muted); cursor: pointer; transition: color 0.3s; }
.close-btn:hover { color: var(--primary-color); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.mobile-nav-links a { text-decoration: none; color: var(--text-main); font-size: 1.2rem; font-weight: 600; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }

.mobile-contacts { margin-bottom: 30px; background: var(--bg-secondary); padding: 20px; border-radius: 12px; }
.mobile-contacts p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.mobile-phone { display: block; font-size: 1.3rem; font-weight: 700; color: var(--primary-color); text-decoration: none; margin-bottom: 20px; }
.mobile-socials { display: flex; gap: 10px; }
.social-icon { flex: 1; text-align: center; padding: 10px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: transform 0.2s; }
.social-icon:active { transform: scale(0.95); }
.social-icon.tg { background: #2AABEE; }
.social-icon.max { background: #111111; }

/* =========================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ========================================= */

/* --- Планшеты (до 992px) --- */
@media (max-width: 992px) {
    .burger-menu { display: flex; }
    .nav-links { display: none; }
    .hidden-mobile { display: none; }
    
    .about-wrapper, .lm-wrapper, .ai-demo-wrapper, .contact-wrapper { flex-direction: column; padding: 40px 25px; text-align: center; }
    .about-image-col { flex: 0 0 auto; width: 100%; max-width: 320px; margin: 0 auto 30px; }
    .photo-placeholder { transform: rotate(0deg); }
    .brand-tag { right: 10px; bottom: -15px; font-size: 1rem; padding: 10px 18px; }
    
    .benefits-list li { text-align: left; }
    .guarantee-box { text-align: left; }
    
    .lm-list li { justify-content: center; }
    .lm-image { margin-top: 40px; perspective: none; }
    .pdf-mockup { transform: none; margin: 0 auto; }
    
    .price-card.popular { transform: scale(1); border: 1px solid var(--primary-color); }
    .price-card.popular:hover { transform: translateY(-5px); }
}

/* --- Смартфоны (до 768px) --- */
@media (max-width: 768px) {
    section { padding: 60px 0 !important; } 
    .hero { padding: 130px 0 60px !important; }
    
    .hero h1 { font-size: 2.2rem; margin-bottom: 15px; }
    .hero p { font-size: 1rem; margin-bottom: 30px; }
    .section-header h2, .about-text-col h2, .lm-content h2, .contact-info h2, .ai-demo-text h2 { font-size: 1.8rem; line-height: 1.3; }
    .section-header p, .lm-desc, .ai-demo-text p { font-size: 1rem; }
    
    .navbar { padding: 10px 0; }
    .logo { font-size: 1.2rem; }
    
    .grid, .cases-grid, .pricing-grid, .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .pricing-grid { max-width: 400px; margin: 0 auto; }
    
    .about-wrapper, .lm-wrapper, .ai-demo-wrapper, .contact-wrapper { padding: 30px 20px; border-radius: 12px; }
    
    .hero-buttons { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; gap: 15px; }
    .btn-primary, .btn-secondary, .btn-telegram { width: 100%; justify-content: center; }
    .btn-telegram { font-size: 1rem; padding: 14px 20px; }
    
    .lm-wrapper::before, .contact-wrapper::before { display: none; } 
    .chat-messages { height: 280px; }
}

/* --- Маленькие смартфоны (до 480px) --- */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .section-header h2, .about-text-col h2, .lm-content h2 { font-size: 1.5rem; }
    
    .guarantee-box { flex-direction: column; text-align: center; align-items: center; padding: 20px 15px; }
    .guarantee-icon { margin-bottom: 10px; }
    
    .lm-list li { font-size: 0.95rem; text-align: left; justify-content: flex-start; }
    .chat-header { font-size: 0.9rem; padding: 12px 15px; }
    .msg { font-size: 0.9rem; max-width: 90%; }
}

/* =========================================
   УВЕДОМЛЕНИЕ О COOKIES
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 320px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    z-index: 9999; /* Поверх всех элементов сайта */
    display: flex;
    flex-direction: column;
    gap: 15px;
    
    /* Скрываем плашку за пределами экрана внизу */
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cookie-banner.show {
    transform: translateY(0); /* Класс, который заставит плашку выехать */
}

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.btn-cookie {
    padding: 10px 16px;
    font-size: 0.9rem;
    width: 100%;
}

/* Мобильный адаптив для Cookies (растягиваем на всю ширину внизу без скролла) */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 20px;
        right: 20px;
        left: auto; /* Отключаем жесткую привязку к левому краю */
        width: calc(100% - 40px); /* Вычисляем ширину: 100% экрана минус отступы по бокам */
        max-width: none;
    }
}

/* Жесткая страховка от любого горизонтального скролла на сайте */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* =========================================
   СТРАНИЦА КЕЙСОВ (ШАБЛОН СТАТЬИ)
   ========================================= */
.case-page {
    padding: 120px 0 80px;
    background-color: #f8faff; /* Легкий фон, как на главной */
}

.case-page .container {
    max-width: 800px; /* Делаем текст уже для удобства чтения */
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #3051d3;
}

.case-header h1 {
    font-size: 2.5rem;
    color: #111928;
    margin-bottom: 30px;
    line-height: 1.3;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background-color: #e0e7ff;
    color: #4a6cf7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.case-hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.case-content h2 {
    font-size: 1.8rem;
    color: #111928;
    margin: 40px 0 20px;
}

.case-content p {
    font-size: 1.1rem;
    color: #637381;
    line-height: 1.7;
    margin-bottom: 20px;
}

.case-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.case-content li {
    font-size: 1.1rem;
    color: #637381;
    margin-bottom: 10px;
    line-height: 1.6;
}

.highlight-box {
    background-color: #ffffff;
    border-left: 4px solid #4a6cf7;
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
    font-size: 1.1rem;
    color: #111928;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.case-cta {
    background: linear-gradient(135deg, #4a6cf7 0%, #3051d3 100%);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 60px;
    color: white;
}

.case-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.case-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.case-cta .btn-primary {
    background-color: white;
    color: #4a6cf7;
}

.case-cta .btn-primary:hover {
    background-color: #f1f5f9;
    color: #3051d3;
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}