
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Это может помочь избежать проблем с шириной */
	overflow-x: hidden;
}

/* Базовый сброс и шрифты (как в предыдущем ответе) */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

footer{
    background: #303030;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    z-index: 2;
    position: relative;
}

h1, h2, h3 {
    color: #004a99;
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #e9ecef;
}

.bg-dark {
    background-color: #004a99; /* Темный фон для экосистемы */
}

.white-text {
    color: white !important;
}

/* --- Главный раздел (Hero + Шапка) --- */
.main-header {
    background-color: rgba(224, 240, 255, 1);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
	transition: all 0.3s;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo a {
    font-size: 1.5em;
    font-weight: bold;
    color: #004a99;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo a svg{
    width: 30px;
    height: 30px;
	flex-shrink: 0;
}
.logo a svg g path{
	fill: #004a99 !important;
}

.main-nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.main-nav li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
}
.main-nav li#auth a{
    border: 1px solid #303030;
    border-radius: 20px;
    box-sizing: border-box;
    padding: 8px 20px;
	transition: color 0.5s;
}

.main-nav li a:hover {
    color: #ff6f00;
}
.main-nav li#auth:hover a{
	color: white;
	background: #303030;
}

.hero-section {
    padding: 100px 20px 60px;
    background: linear-gradient(180deg, #e0f0ff 50%, #f8f9fa 100%);
    text-align: center;
}

.lead-text {
    font-size: 1.25em;
    margin-bottom: 40px;
}

/* Основные компоненты (Под Hero) */
.components-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.component-item {
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    color: #004a99;
    user-select: none;
    cursor: pointer;
	transition: all 0.3s;
}
.component-item:hover{
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.component-item i {
    margin-right: 8px;
    color: #ff6f00;
}


/* --- Второй раздел: Преимущества --- */
.advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.advantage-item {
    text-align: center;
    padding: 20px;
}

.advantage-item i {
    font-size: 3em;
    color: #ff6f00;
    margin-bottom: 15px;
}

/* --- Третий раздел: Кейсы --- */
.case-study-item {
    background: white;
    padding: 30px;
    border-left: 5px solid #004a99;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-style: italic;
    color: white;
    text-align: center;
    margin-top: 20px;
    background: #004a99;
    border-radius: 10px;
    padding: 10px;
}

/* --- Четвертый раздел: Кому подходит --- */
.segment-grid ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 20px auto;
}

.segment-grid li {
    padding: 15px;
    margin-bottom: 10px;
    border-bottom: 1px dotted #ccc;
    text-align: left;
    font-size: 1.1em;
}

.segment-grid li i {
    color: #004a99;
    margin-right: 15px;
}

/* --- Пятый раздел: Проблемы и Решения --- */
.problem-solution-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.problem-solution-item h4 {
    background: #ff6f00;
    margin-top: 0;
    color: white;
    padding: 15px 20px;
	margin: 0px;
}
.problem-solution-item p{
    padding: 15px 20px;
    margin: 0px;
}

/* --- Восьмой раздел: Инфографика --- */
.infographic-placeholder {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.data-point h4 {
    font-size: 3em;
    color: #004a99;
    margin: 0;
}
.data-point p {
    color: #555;
}

/* --- Девятый раздел: Экосистема --- */
.ecosystem-list {
    display: flex;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    gap: 20px;
    margin-top: 40px;
    text-align: center;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

.eco-item {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 20px;
    border-radius: 6px;
    font-weight: 500;
}
.eco-item i {
    font-size: 1.5em;
    margin-right: 10px;
    color: #ff6f00;
}

/* --- Footer и Контакты (как в предыдущем ответе, но с поправками) --- */
.contact-section {
    padding: 60px 0;
    text-align: center;
}
.contact-section .container{
	display: flex;
	flex-direction: column;
	align-items: center;
}

div.tech__list{
    background: #004a99;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
div.tech__list div{
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

#crm-form input {
    /* Добавьте стили, чтобы поля были заметны и выровнены по центру */
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    max-width: 400px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#crm-form button {
    width: 100%;
    max-width: 400px;
    margin: 10px 0px 0px 0px;
}
.hero-text-content{
    display: flex;
    flex-direction: column;
    align-items: center;
}
a.marketplace{
    display: block;
    border: 2px solid #303030;
    color: #303030;
    width: max-content;
	opacity: 0.7;
}

/* Медиа-запросы */
@media (max-width: 1280px) {
	
}
@media (max-width: 900px) {
    .main-nav {
        display: none; /* Скрываем меню на маленьких экранах для чистоты */
    }
}
@media (max-width: 600px) {
    .header-content {
        justify-content: center;
    }
    .hero-section {
        padding: 50px 10px;
    }
    .components-grid, .infographic-placeholder, .ecosystem-list {
        gap: 15px;
    }
}

/* --- Кнопки CTA (как в предыдущем ответе) --- */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px 0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.primary {
    background-color: #ff6f00;
    color: white;
    border: 2px solid #ff6f00;
}

.primary:hover {
    background-color: #e66400;
}

.large {
    font-size: 1.2em;
    padding: 15px 35px;
	border-radius: 50px;
}

footer p{
    position: relative;
    display: flex;
    justify-content: center;
}
footer div.social_networks a{
    position: relative;
    margin: 0px 0px 0px 10px;
}
footer div.social_networks a img{
    position: relative;
    width: 40px;
    opacity: 0.5;
}
footer div.social_networks a img:is(#tg, #instagram, #yt, #fb, #x){
    background: white;
    border-radius: 10px;
    padding: 5px;
    box-sizing: border-box;
}
footer div.social_networks{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

form#crm-form{
    background: white;
    box-shadow: 0px 0px 10px 0px #aaaaaa;
    border-radius: 10px;
    width: 300px;
    padding: 20px;
}
p#privacy_police{
    opacity: 0.6;
	user-select: none;
}
p#privacy_police a{
	text-decoration: none;
}
p#privacy_police:hover a{
	text-decoration: underline;
}

.sky {
    position: absolute;
    overflow: hidden;
    top: 0px;
    left: 0px;
    width: 100vw;
	width: 100dvw;
    height: 300px;
	opacity: 0.7;
}

/* Обёртка, которую двигает JS */
.cloud-wrapper {
    position: absolute; /* Обязательно */
    left: 0;
    top: 0;
    /* Размеры (width) и transform: translateX будут установлены JS */
}

/* Внутренний SVG-элемент */
.svg-content {
    /* Если у SVG есть ширина/высота, задайте ее здесь или в HTML */
}

/* Анимации применяются только к внутреннему SVG */
@keyframes vertical-float {
    /* Здесь можно использовать transform: translateY, так как translateX находится на родителе */
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); } 
    100% { transform: translateY(0); }
}

.svg-content.float {
    animation: vertical-float 15s ease-in-out infinite alternate;
}

section#price div.container{
    display: flex;
    flex-direction: column;
    align-items: center;
}
section#price p{
    display: flex;
    align-items: center;
    gap: 10px;
}
section#price p svg{
	width: 30px;
	height: 30px;
}
section#price p svg path{
    fill: white;
}
section#price div.price{
    color: white;
    font-weight: bold;
    font-size: 170%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 7px;
    background: midnightblue;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 5px 3px midnightblue;
    margin: 0px 0px 20px 0px;
}
section#price div.price del{
    opacity: 0.5;
    font-size: 70%;
}
section#price a.cta-button.primary.large{
    padding: 15px 70px;
    background: transparent;
    color: white;
    border-color: white;
    /* margin: 10px 0px 0px 0px; */
    /* position: relative; */
}

		.gallery-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 80px 20px;
        }
        
        .gallery-main {
            position: relative;
            height: 600px;
            margin-bottom: 20px;
            overflow: hidden;
            border-radius: 10px;
            background: #f5f5f5;
        }
        
        .main-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .main-image.loaded {
            opacity: 1;
        }
        
        .loading-spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50px;
            height: 50px;
            border: 5px solid #e0e0e0;
            border-top-color: #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }
        
        .gallery-nav {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .nav-btn {
            padding: 10px 20px;
            background: #3498db;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background 0.3s;
        }
        
        .nav-btn:hover:not(:disabled) {
            background: #2980b9;
        }
        
        .nav-btn:disabled {
            background: #bdc3c7;
            cursor: not-allowed;
        }
        
        .thumbnails-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }
        
        .thumbnail {
            width: 100px;
            height: 100px;
            object-fit: cover;
            cursor: pointer;
            border: 3px solid transparent;
            border-radius: 5px;
            transition: all 0.3s;
            opacity: 0.6;
        }
        
        .thumbnail:hover {
            opacity: 0.8;
        }
        
        .thumbnail.active {
            border-color: #3498db;
            opacity: 1;
        }
        
        .thumbnail.loading {
            background: #e0e0e0;
        }
        
        .preload-container {
            position: absolute;
            width: 0;
            height: 0;
            overflow: hidden;
        }
        
        .image-info {
            text-align: center;
            margin-top: 10px;
            color: #666;
        }
        
        .image-filename {
            font-family: monospace;
            background: #f0f0f0;
            padding: 2px 5px;
            border-radius: 3px;
            font-size: 14px;
        }
        
        @media (max-width: 768px) {
            .gallery-main {
                height: 400px;
            }
            
            .thumbnail {
                width: 80px;
                height: 80px;
            }
        }
        
        @media (max-width: 480px) {
            .gallery-main {
                height: 300px;
            }
            
            .thumbnail {
                width: 60px;
                height: 60px;
            }
        }