/* Reset и базовые стили для лендинга */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Хедер лендинга */
.landing-header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.landing-nav {
    display: flex;
    gap: 30px;
}

.landing-nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.landing-nav a:hover {
    opacity: 0.8;
}

.landing-login-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.landing-login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Основной контент лендинга */
.landing-content {
    display: flex;
    flex: 1;
    gap: 20px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 80vh;
}

/* Стили для карты и слайдера (оставляем из предыдущих версий) */
.landing-map-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 0;
    background: white;
}

.landing-map {
    flex: 1; /* Карта занимает всё оставшееся пространство */
    min-height: 0;
    position: relative;
}

#landingMap {
    width: 100%;
    height: 100%;
}

.landing-slider-section {
    width: 30%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 0;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.slider-header h3 {
    margin: 0;
    color: #2c3e50;
}

.slider-controls {
    display: flex;
    gap: 5px;
}

.slider-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #f5f7f9;
}


.flyers-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.flyer-slide {
    padding: 20px;
    display: none;
    flex-direction: column;
    height: 100%;
}

.flyer-slide.active {
    display: flex;
}

.flyer-image {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.flyer-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.flyer-info {
    padding: 15px 0 0;
    flex-shrink: 0;
}

.flyer-info h4 {
    margin: 0 0 8px;
    color: #2c3e50;
}

.flyer-info p {
    margin: 0 0 8px;
    color: #7f8c8d;
    font-size: 14px;
}

.flyer-date {
    font-size: 12px;
    color: #95a5a6;
}

/* Стили для состояния загрузки и ошибок */
.flyer-slide.loading .flyer-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.flyer-slide.loading .fa-spinner {
    font-size: 32px;
    color: #3498db;
}

.flyer-slide .fa-exclamation-circle,
.flyer-slide .fa-exclamation-triangle {
    font-size: 32px;
    color: #e74c3c;
}

.flyer-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    width: 100%;
    height: 100%;
}


.history-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.history-item:hover {
    background-color: #f9f9f9;
}

.history-item:last-child {
    border-bottom: none;
}

.history-date {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.history-flyer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-flyer img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.history-flyer-info {
    flex: 1;
}

.history-flyer-title {
    font-weight: 500;
    margin-bottom: 3px;
    color: #2c3e50;
}

.history-flyer-desc {
    font-size: 12px;
    color: #7f8c8d;
}

/* Кнопка повторной попытки */
.retry-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.retry-button:hover {
    background: #2980b9;
}

.loading-history {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.loading-history i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}
/* Стили для мета-информации листовок */
.flyer-meta {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.flyer-date,
.flyer-status,
.flyer-factor {
    font-size: 12px;
    color: #7f8c8d;
}

.flyer-status {
    color: #27ae60;
    font-weight: 500;
}

.flyer-factor {
    color: #e67e22;
}

/* Стили для балунов точек */
.point-balloon {
    padding: 10px;
    min-width: 200px;
}

.point-balloon h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.point-balloon p {
    margin: 5px 0;
    font-size: 14px;
}

.view-history-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

.view-history-btn:hover {
    background: #2980b9;
}

.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    color: #666;
}

.image-loading.error {
    color: #d32f2f;
    background: #ffebee;
}

.flyer-image {
    position: relative;
    min-height: 200px;
}

.flyer-image img {
    width: 100%;
    height: auto;
    display: none; /* Показываем только после загрузки */
}

/* Анимации для слайдера */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.flyer-slide.active {
    animation: slideIn 0.5s ease;
}

/* Кнопка возврата */
.back-button {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.back-button:hover {
    color: #2980b9;
}

/* Блок 2 и последующие секции */
.problems-solutions-section,
.legality-section,
.advantages-section,
.cta-section {
    padding: 80px 40px;
}

/* Стили для блока с демонстрацией приложения */
.app-demo-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.app-demo-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.app-demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.app-screenshot {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.screenshot-container {
    position: relative;
    padding: 20px;
    background: #2c3e50;
    border-radius: 16px 16px 0 0;
}

.screenshot-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.app-feature {
    position: absolute;
    transform: translate(-50%, -50%);
}

.feature-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e74c3c;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #e74c3c;
    cursor: pointer;
    pointer-events: auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.feature-tooltip {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.feature-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.feature-marker:hover + .feature-tooltip {
    opacity: 1;
    visibility: visible;
}

.feature-tooltip h4 {
    margin: 0 0 5px;
    font-size: 14px;
    color: #2c3e50;
}

.feature-tooltip p {
    margin: 0;
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.4;
}

.screenshot-cta {
    padding: 25px;
    text-align: center;
    background: white;
}

.screenshot-cta .cta-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.screenshot-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stats-header {
    text-align: center;
}

.stats-header h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.stats-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 20px;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 8px;
}

.stat-description {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
}

.simplicity-block {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.simplicity-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.simplicity-icon i {
    font-size: 24px;
    color: white;
}

.simplicity-content h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.simplicity-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* Стили для блока базы данных */
.database-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.database-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.benefit-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.benefit-header {
    margin-bottom: 20px;
}

.benefit-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.accuracy-badge {
    text-align: center;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 15px;
    border-radius: 12px;
    min-width: 100px;
}

.accuracy-percent {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.accuracy-label {
    font-size: 12px;
    opacity: 0.9;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon i {
    font-size: 24px;
    color: white;
}

.benefit-header h3 {
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.benefit-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.verification-process {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.process-step i {
    color: #3498db;
    width: 20px;
}

.process-step span {
    color: #2c3e50;
    font-size: 14px;
}

/* График охвата */
.coverage-chart {
    display: flex;
    align-items: end;
    gap: 10px;
    height: 120px;
    width: 100%;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #3498db, #2980b9);
    border-radius: 4px 4px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    padding: 5px;
    position: relative;
    min-height: 40px;
}

.chart-bar span {
    font-size: 10px;
    color: white;
    text-align: center;
    margin-bottom: 5px;
    font-weight: 500;
}

.bar-value {
    position: absolute;
    top: -25px;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
}

.coverage-factors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.factor {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.factor i {
    color: #3498db;
    width: 16px;
}

.factor span {
    font-size: 13px;
    color: #2c3e50;
}

/* Сравнение способов */
.comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.old-way, .new-way {
    text-align: center;
    flex: 1;
}

.way-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.old-way .way-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.new-way .way-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.way-icon i {
    font-size: 24px;
    color: white;
}

.way-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.way-time {
    font-size: 16px;
    font-weight: 700;
}

.old-way .way-time {
    color: #e74c3c;
}

.new-way .way-time {
    color: #2ecc71;
}

.vs {
    padding: 0 15px;
    font-weight: 700;
    color: #7f8c8d;
}

.time-savings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.savings-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.savings-item i {
    color: #3498db;
    width: 16px;
}

.savings-item span {
    font-size: 13px;
    color: #2c3e50;
}

/* Типы точек */
.points-types-section {
    margin-top: 60px;
}

.points-types-section .section-header {
    margin-bottom: 40px;
}

.points-types-section .section-header h3 {
    font-size: 28px;
    color: #2c3e50;
}

.points-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.point-type-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.point-type-card:hover {
    transform: translateY(-5px);
}

.type-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 25px 15px;
}

.type-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.type-icon.high-traffic {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.type-icon.residential {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.type-icon.specialized {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.type-icon i {
    font-size: 24px;
    color: white;
}

.type-info h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.coverage-range {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.type-content {
    padding: 0 25px 25px;
}

.type-examples {
    margin-bottom: 20px;
}

.type-examples strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
}

.type-examples ul {
    margin: 0;
    padding-left: 20px;
    color: #7f8c8d;
}

.type-examples li {
    margin-bottom: 5px;
    font-size: 14px;
}

.type-recommendation {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.type-recommendation i {
    color: #f39c12;
    flex-shrink: 0;
}

.type-recommendation span {
    font-size: 14px;
    color: #2c3e50;
    font-style: italic;
}

/* Стили для блока платформы */
.platform-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.platform-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.platform-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.platform-main {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.platform-benefit {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.workflow-animation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.workflow-step {
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.customer-step .step-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.system-step .step-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.poster-step .step-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.step-icon i {
    font-size: 28px;
    color: white;
}

.step-label {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.step-action {
    font-size: 14px;
    color: #7f8c8d;
}

.workflow-arrow {
    padding: 0 15px;
    color: #3498db;
    font-size: 20px;
}

.benefit-content h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 16px;
}

.benefit-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature i {
    color: #2ecc71;
    flex-shrink: 0;
}

.feature span {
    color: #2c3e50;
    font-size: 14px;
}

.platform-technologies {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.platform-technologies .technology-item {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.platform-technologies .technology-item:hover {
    transform: translateY(-5px);
}

.platform-technologies .tech-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.platform-technologies .tech-icon i {
    font-size: 24px;
    color: white;
}

.platform-technologies .tech-content h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.platform-technologies .tech-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tech-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #5a6c7d;
    font-size: 14px;
}

.tech-details li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.platform-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-card .stat-description {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.4;
}

/* Стили для блока легальности */
.legality-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.legality-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.legality-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.legality-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.legality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.legality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.risk-card::before {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.guarantee-card::before {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.advantage-card::before {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.risk-card .card-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.guarantee-card .card-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.advantage-card .card-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.card-icon i {
    font-size: 20px;
    color: white;
}

.card-header h3 {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.card-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.legal-reference {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff5f5;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.legal-reference i {
    color: #e74c3c;
}

.legal-reference span {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.card-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff5f5;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #ffeaea;
}

.card-warning i {
    color: #e74c3c;
}

.card-warning span {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.guarantee-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guarantee-item i {
    color: #2ecc71;
    flex-shrink: 0;
}

.guarantee-item span {
    font-size: 14px;
    color: #5a6c7d;
}

.eco-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.eco-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.eco-item i {
    color: #3498db;
    flex-shrink: 0;
}

.eco-item span {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.legality-summary {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.summary-content h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.summary-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 25px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.summary-stat {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.summary-stat .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.summary-stat .stat-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

.legality-cta {
    text-align: center;
}

.legality-cta .cta-button {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    width: 100%;
    margin-bottom: 15px;
}

.legality-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.cta-note {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
    margin: 0;
}

/* Боковая навигация */
.side-navigation {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: scale(1.1);
}

.nav-btn::after {
    content: attr(title);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-right: 10px;
}

.nav-btn:hover::after {
    opacity: 1;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Подсветка активного блока при скролле */
section {
    transition: all 0.3s ease;
}

section:target {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% { background-color: transparent; }
    50% { background-color: rgba(102, 126, 234, 0.05); }
    100% { background-color: transparent; }
}

/* Telegram виджет */
.telegram-widget {
    position: relative;
    margin-top: 20px;
}

.telegram-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0088cc 0%, #00aced 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    animation: pulse 2s infinite;
}

.telegram-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 136, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); }
}

.telegram-chat {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 320px;
    height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
}

.telegram-chat.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #0088cc 0%, #00aced 100%);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-info {
    flex: 1;
}

.chat-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.status {
    font-size: 12px;
    opacity: 0.8;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.bot-message {
    align-self: flex-start;
}

.message.user-message {
    align-self: flex-end;
}

.message-content {
    padding: 10px 12px;
    border-radius: 12px;
    position: relative;
}

.bot-message .message-content {
    background: white;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
    background: #0088cc;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 10px;
    opacity: 0.6;
    display: block;
    margin-top: 4px;
    text-align: right;
}

.chat-input {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
}

.chat-input input:focus {
    border-color: #0088cc;
}

.chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #0088cc;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

/* Быстрые ответы */
.quick-replies {
    margin: 10px 0;
}

.quick-replies p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.quick-reply-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    margin: 5px 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    transition: all 0.3s ease;
}

.quick-reply-btn:hover {
    background: #f8f9fa;
    border-color: #0088cc;
    transform: translateX(5px);
}

/* Прямая ссылка в Telegram */
.telegram-direct-link {
    margin-top: 15px;
}

.tg-direct-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0088cc 0%, #00aced 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

/* Сообщения с именами */
.message-content p {
    margin: 0;
    line-height: 1.4;
}

.message-content strong {
    color: #0088cc;
    font-weight: 600;
}

.user-message .message-content strong {
    color: #28a745;
}

/* Индикатор онлайн статуса */
.chat-header .status {
    color: #28a745;
    font-weight: 500;
}

.chat-header .status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    margin-right: 5px;
}

/* Анимация для новых сообщений */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message {
    animation: messageSlideIn 0.3s ease;
}

/* Стиль для кнопки домой */
.nav-btn.home-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.nav-btn.home-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
}

.nav-btn.home-btn.active {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    transform: scale(1.1);
}

/* Telegram Widget Styles */
.telegram-widget {
    position: relative;
    margin-top: 20px;
}

.telegram-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0088cc 0%, #00aced 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    animation: pulse 2s infinite;
}

.telegram-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 136, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); }
}

.telegram-chat {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 320px;
    height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
}

.telegram-chat.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #0088cc 0%, #00aced 100%);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-info {
    flex: 1;
}

.chat-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.status {
    font-size: 12px;
    opacity: 0.8;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.bot-message {
    align-self: flex-start;
}

.message.user-message {
    align-self: flex-end;
}

.message-content {
    padding: 10px 12px;
    border-radius: 12px;
    position: relative;
}

.bot-message .message-content {
    background: white;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
    background: #0088cc;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 10px;
    opacity: 0.6;
    display: block;
    margin-top: 4px;
    text-align: right;
}

.chat-input {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
}

.chat-input input:focus {
    border-color: #0088cc;
}

.chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #0088cc;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.chat-input button:hover {
    background: #0077b5;
}

/* Quick Replies */
.quick-replies {
    margin: 10px 0;
}

.quick-replies p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.quick-reply-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    margin: 5px 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    transition: all 0.3s ease;
}

.quick-reply-btn:hover {
    background: #f8f9fa;
    border-color: #0088cc;
    transform: translateX(5px);
}

/* Telegram Direct Link */
.telegram-direct-link {
    margin-top: 15px;
}

.tg-direct-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0088cc 0%, #00aced 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.tg-direct-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    color: white;
    text-decoration: none;
}

.tg-note {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    color: #666;
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

/* Side Navigation */
.side-navigation {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: scale(1.1);
}

.nav-btn::after {
    content: attr(title);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-right: 10px;
}

.nav-btn:hover::after {
    opacity: 1;
}

.nav-btn.home-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.nav-btn.home-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
}

.nav-btn.home-btn.active {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
}

/* Telegram Widget Styles - Убедитесь, что они есть */
.telegram-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.telegram-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0088cc 0%, #00aced 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    animation: pulse 2s infinite;
}

.telegram-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 136, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); }
}

.telegram-chat {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
}

/* Стили для хедера */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.landing-callback-btn {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-callback-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Стили для футера */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.footer-actions {
    text-align: center;
}

.footer-callback-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.footer-callback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Стили для модального окна */
.callback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.callback-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.callback-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.callback-modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-callback-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.callback-modal-body {
    padding: 25px;
}

.callback-modal-body p {
    margin-bottom: 20px;
    color: #666;
    text-align: center;
}

.callback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 14px;
}

.callback-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.callback-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.callback-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.callback-success {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 20px;
}

.callback-close-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-actions {
        gap: 10px;
    }
    
    .landing-callback-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .callback-modal {
        width: 95%;
        margin: 20px;
    }
    
    .callback-modal-header,
    .callback-modal-body {
        padding: 15px 20px;
    }
}

.telegram-chat.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingAnimation {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Temporary messages */
.message.temporary .message-content {
    opacity: 0.7;
    font-style: italic;
}

/* Mobile adaptation */
@media (max-width: 768px) {
    .telegram-chat {
        width: 280px;
        height: 350px;
        right: -10px;
    }
}

/* Индикатор загрузки */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    color: #666;
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingAnimation {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.tg-direct-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    color: white;
    text-decoration: none;
}

.tg-note {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Временные сообщения */
.message.temporary .message-content {
    opacity: 0.7;
    font-style: italic;
}

.chat-input button:hover {
    background: #0077b5;
}

/* Временные сообщения */
.message.temporary .message-content {
    opacity: 0.7;
    font-style: italic;
}

/* Ссылка на прямой Telegram */
.direct-telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0088cc 0%, #00aced 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.direct-telegram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    color: white;
    text-decoration: none;
}

.telegram-link-message {
    margin-top: 10px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .telegram-chat {
        width: 280px;
        height: 350px;
        right: -10px;
    }
    
    .side-navigation {
        right: 10px;
    }
}

/* Темная тема для сообщений */
@media (prefers-color-scheme: dark) {
    .telegram-chat {
        background: #2d3748;
        color: white;
    }
    
    .chat-messages {
        background: #1a202c;
    }
    
    .bot-message .message-content {
        background: #4a5568;
        color: white;
    }
    
    .chat-input {
        background: #2d3748;
        border-top-color: #4a5568;
    }
    
    .chat-input input {
        background: #4a5568;
        border-color: #4a5568;
        color: white;
    }
}

/* Улучшение читаемости навигации в шапке */
.landing-nav a {
    position: relative;
    transition: color 0.3s ease;
}

.landing-nav a:hover {
    color: #667eea;
}

.landing-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.landing-nav a:hover::after {
    width: 100%;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .side-navigation {
        right: 10px;
        gap: 10px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .nav-btn::after {
        display: none;
    }
}

/* Адаптивность для блока легальности */
@media (max-width: 992px) {
    .legality-summary {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .summary-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .legality-section {
        padding: 60px 20px;
    }
    
    .legality-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .legality-card {
        padding: 25px;
    }
    
    .legality-summary {
        padding: 30px 25px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .legality-cta .cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .legality-summary {
        padding: 20px;
    }
    
    .summary-content h3 {
        font-size: 20px;
    }
    
    .card-header h3 {
        font-size: 16px;
    }
}

/* Адаптивность для блока платформы */
@media (max-width: 992px) {
    .platform-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .platform-main {
        padding: 30px;
    }
    
    .workflow-animation {
        flex-direction: column;
        gap: 20px;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }
    
    .benefit-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .platform-section {
        padding: 60px 20px;
    }
    
    .platform-main {
        padding: 20px;
    }
    
    .platform-technologies .technology-item {
        padding: 20px;
    }
    
    .platform-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-card .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .platform-stats {
        grid-template-columns: 1fr;
    }
    
    .workflow-step {
        flex-direction: row;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .step-icon {
        margin: 0;
        width: 50px;
        height: 50px;
    }
    
    .step-icon i {
        font-size: 20px;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .database-section {
        padding: 60px 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card {
        padding: 20px;
    }
    
    .benefit-visual {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .coverage-factors {
        grid-template-columns: 1fr;
    }
    
    .comparison {
        flex-direction: column;
        gap: 20px;
    }
    
    .vs {
        padding: 10px 0;
    }
    
    .time-savings {
        grid-template-columns: 1fr;
    }
    
    .points-types-grid {
        grid-template-columns: 1fr;
    }
    
    .type-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Адаптивность для блока с демонстрацией приложения */
@media (max-width: 992px) {
    .app-demo-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .app-screenshot {
        order: 1;
    }
    
    .stats-container {
        order: 2;
    }
}

@media (max-width: 768px) {
    .app-demo-section {
        padding: 60px 20px;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .simplicity-block {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .screenshot-cta .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .feature-tooltip {
        width: 160px;
    }
}

/* Стили для блока технологий */
.technologies-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.technologies-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-header .subtitle {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.technology-item {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.technology-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tech-icon i {
    font-size: 32px;
    color: white;
}

.tech-content h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.tech-content p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 16px;
}

.tech-cta {
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

/* Адаптивность для блока технологий */
@media (max-width: 768px) {
    .technologies-section {
        padding: 60px 20px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header .subtitle {
        font-size: 16px;
    }
    
    .technologies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .technology-item {
        padding: 20px;
    }
    
    .tech-icon {
        width: 70px;
        height: 70px;
    }
    
    .tech-icon i {
        font-size: 28px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* Футер */
.landing-footer {
    background: #2c3e50;
    color: white;
    padding: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.right-panel-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.landing-banner {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    padding: 15px 20px;
    text-align: center;
    flex-shrink: 0;
}

.landing-banner h2 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.landing-banner p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 60px);
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 200px;
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #3498db;
}

.map-placeholder.hidden {
    display: none;
}

.map-placeholder p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .landing-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .landing-content {
        flex-direction: column;
        padding: 15px;
        height: auto;
    }
    
    .landing-slider-section {
        width: 100%;
        height: 300px;
        margin-top: 20px;
    }
    
    .problems-solutions-section,
    .calculator-section,
    .technologies-section,
    .legality-section,
    .advantages-section,
    .cta-section {
        padding: 40px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}