﻿:root {
    --primary-color: #0A192F;
    --secondary-color: #64FFDA;
    --accent-color: #8A2BE2;
    --bg-color: #F8F9FA;
    --text-color: #333333;
    --white: #FFFFFF;
    --border-radius: 12px;
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* КРИТИЧНО ДЛЯ КОРЕЙСКОГО: запрещаем разрывать слова по слогам */
    word-break: keep-all; 
    overflow-wrap: break-word;
}

/* Утилита для скрытия */
.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover { color: var(--accent-color); }

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.15);
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 900;
}

/* About & Features */
.about-section, .features-section {
    padding: 80px 0;
}

.about-section h2, .features-section h2, .faq-section h2, .form-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.features-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.feature-image { flex: 1; }
.feature-image img { width: 100%; border-radius: 20px; }

.feature-text { flex: 1; }
.feature-list { list-style: none; }
.feature-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}
.feature-list i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}
.feature-list strong { font-size: 1.2rem; display: block; margin-bottom: 5px;}

/* FAQ */
.faq-section { padding: 60px 0; background: var(--white); }
.faq-item {
    max-width: 800px;
    margin: 0 auto 15px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    cursor: pointer;
}
.faq-item summary {
    font-weight: 700;
    font-size: 1.1rem;
    list-style: none;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    color: #555;
}

/* Form Section */
.form-section { padding: 80px 0; }
.form-container {
    max-width: 700px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-step { display: none; animation: fadeIn 0.5s ease-in-out; }
.form-step.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.radio-grid label {
    display: block;
    border: 2px solid #eee;
    padding: 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.radio-grid input[type="radio"] { display: none; }
.radio-grid input[type="radio"]:checked + span { color: var(--primary-color); }
.radio-grid label:has(input:checked) {
    border-color: var(--primary-color);
    background-color: rgba(10, 25, 47, 0.05);
}

.slider-container { margin-top: 30px; text-align: center; }
input[type="range"] { width: 100%; margin: 20px 0; }
.budget-display { font-size: 2rem; font-weight: 900; color: var(--accent-color); }
.slider-notice { font-size: 0.8rem; color: #888; }

.form-controls { margin-top: 30px; text-align: center; }
.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-top: 20px;
}

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; font-weight: bold; margin-bottom: 8px; }
.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.checkbox-group { display: flex; align-items: center; gap: 10px; margin-bottom: 20px;}
.recaptcha-text { font-size: 0.75rem; color: #999; margin-top: 15px; text-align: center;}

/* Loader */
.loader-container {
    display: none;
    text-align: center;
    padding: 50px 0;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Success */
#success-message { 
    display: none; /* Исправление: скрыто по умолчанию */
    text-align: center; 
    padding: 40px 0; 
}
#success-message i { font-size: 4rem; color: #28a745; margin-bottom: 20px; }
#success-message h2 { font-size: 2.2rem; margin-bottom: 15px; }

/* Legal Pages Wrapper */
.legal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin: 40px auto;
}
.legal-content h1 { margin-bottom: 20px; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; }
.legal-content h2 { margin: 20px 0 10px; font-size: 1.3rem;}
.legal-content p { margin-bottom: 15px; }

/* Footer */
footer {
    background: var(--primary-color);
    color: #aaa;
    padding: 60px 0 30px;
    text-align: center;
    font-size: 0.9rem;
}
.footer-links { margin-bottom: 30px; }
.footer-links a { color: var(--secondary-color); text-decoration: none; margin: 0 10px; }
.company-info p { margin-bottom: 5px; }
.cert-info { color: var(--white); margin-top: 15px !important; font-weight: bold;}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(10, 25, 47, 0.95);
    color: white;
    padding: 20px;
    z-index: 9999;
    display: none;
    backdrop-filter: blur(10px);
}
.cookie-content {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    gap: 20px;
}
.cookie-buttons { display: flex; gap: 10px; }
.btn-small { padding: 8px 16px; background: var(--secondary-color); color: var(--primary-color); border: none; font-weight: bold; cursor: pointer; border-radius: 5px;}
.btn-outline { background: transparent; border: 1px solid var(--secondary-color); color: var(--secondary-color); }

/* Mobile Responsive */
@media (max-width: 768px) {
    nav { display: none; }
    .features-flex { flex-direction: column; }
    .radio-grid { grid-template-columns: 1fr; }
    .cookie-content { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2rem; }
}