:root {
    --bg-color: #0a0a0f;
    --card-bg: #12121a;
    --text-color: #f2f2f2;
    --text-muted: #9a9a9a;
    --accent-color: #ff3e3e;
    --accent-gradient: linear-gradient(135deg, #ff3e3e, #ff6b6b);
    --btn-color: #27ae60;
    --btn-gradient: linear-gradient(135deg, #27ae60, #2ecc71);
    --input-bg: #1a1a24;
    --input-border: #2a2a3a;
    --glow-color: rgba(255, 62, 62, 0.15);
    --section-gap: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    background-image: 
        linear-gradient(to bottom, rgba(10, 10, 15, 0.88), rgba(10, 10, 15, 0.95)),
        url('/static/images/background.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    min-height: 100vh;
}

.lang-switcher {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.lang-switcher button {
    background: rgba(30, 30, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-switcher button:hover {
    background: rgba(50, 50, 60, 0.95);
}

.lang-switcher button.active {
    background: var(--accent-gradient);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 62, 62, 0.4);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.3) 0%,
        rgba(10, 10, 15, 0.6) 70%,
        rgba(10, 10, 15, 0.9) 100%
    );
}

.hero-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    text-align: center;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 62, 62, 0.15), rgba(255, 107, 107, 0.1));
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 62, 62, 0.3);
    margin-bottom: 24px;
}

.badge-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}

.badge-text {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    letter-spacing: 1px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.hero-note {
    font-size: 15px;
    color: #777;
    margin: 0 0 28px 0;
    font-style: italic;
}

.btn-hero {
    display: inline-block;
    padding: 18px 48px;
    background: var(--btn-gradient);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(39, 174, 96, 0.5);
}

/* CONTAINER */
.container {
    max-width: 640px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* FORM SECTION */
.form-section {
    background: linear-gradient(145deg, rgba(20, 25, 35, 0.98), rgba(15, 20, 28, 0.99));
    padding: 32px 28px;
    border-radius: 20px;
    border: 2px solid rgba(39, 174, 96, 0.4);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(39, 174, 96, 0.1);
}

.form-section h2 {
    text-align: center;
    margin: 0 0 24px 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.input-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 16px;
    background: rgba(30, 35, 45, 0.95);
    border: 2px solid rgba(60, 70, 90, 0.5);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: #27ae60;
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.25);
}

input::placeholder {
    color: #555;
}

.input-error {
    border-color: #ff3e3e !important;
    box-shadow: 0 0 10px rgba(255, 62, 62, 0.3) !important;
}

.field-error {
    color: #ff3e3e;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-error::before {
    content: "⚠";
}

.consent-text {
    font-size: 12px;
    color: #888;
    margin: 16px 0;
    text-align: center;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--btn-gradient);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.5);
}

#status {
    margin-top: 16px;
    text-align: center;
    font-weight: 600;
}

/* SUCCESS MESSAGE */
.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: var(--btn-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 20px;
}

.success-message h3 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 12px 0;
}

.success-message p {
    color: var(--text-muted);
    margin: 0 0 24px 0;
}

.btn-telegram-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0088cc, #00a2ed);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
}

.btn-telegram-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.5);
}

/* CONTACTS SECTION */
.contacts-section {
    background: linear-gradient(145deg, rgba(18, 18, 26, 0.95), rgba(15, 15, 21, 0.98));
    padding: 24px;
    border-radius: 16px;
    margin-top: var(--section-gap);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contacts-section h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 16px 0;
    text-align: center;
}

.contacts-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.contact-item svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

/* CONTENT SECTIONS */
.content-section {
    margin-top: var(--section-gap);
}

.section-card {
    background: linear-gradient(145deg, rgba(18, 18, 26, 0.95), rgba(15, 15, 21, 0.98));
    padding: 28px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.section-card:hover {
    border-color: rgba(255, 62, 62, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.section-card h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-card p {
    color: var(--text-color);
    margin: 0 0 12px 0;
    font-size: 15px;
}

.text-muted {
    color: var(--text-muted) !important;
    font-size: 14px !important;
}

.subsection-title {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 14px 0;
}

.subsection-title:first-of-type {
    margin-top: 0;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 15px;
}

li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 14px;
}

ol {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

ol li {
    padding-left: 0;
}

ol li::before {
    content: none;
}

.note-box {
    background: rgba(39, 174, 96, 0.1);
    border-left: 3px solid #27ae60;
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 20px;
}

.highlight-text {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    margin: 8px 0 20px 0;
}

.important-box {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(39, 174, 96, 0.05));
    border: 1px solid rgba(39, 174, 96, 0.3);
    padding: 18px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    margin-top: 24px;
    line-height: 1.6;
}

/* STEPS */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: #fff;
    font-size: 16px;
    display: block;
    margin-bottom: 6px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* FAQ ACCORDION */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 62, 62, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
    font-size: 20px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 20px 18px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* CTA BLOCK */
.cta-block {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cta {
    display: inline-block;
    padding: 16px 40px;
    background: var(--btn-gradient);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.35);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.45);
}

/* FOOTER */
.site-footer {
    background: linear-gradient(to bottom, rgba(10, 10, 15, 1), rgba(5, 5, 8, 1));
    margin-top: 48px;
    padding: 48px 20px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    max-width: 640px;
    margin: 0 auto;
}

.footer-brand {
    text-align: center;
    margin-bottom: 32px;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 16px;
    border-radius: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

.footer-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-block {
    text-align: center;
}

.footer-block h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-block p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 6px 0;
}

.footer-block a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-block a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    color: #555;
    font-size: 14px;
    margin: 0;
}

/* MOBILE RESPONSIVE */
@media (max-width: 640px) {
    .hero-section {
        padding: 60px 16px 50px;
        min-height: auto;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .btn-hero {
        padding: 16px 36px;
        font-size: 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .form-section {
        padding: 24px 20px;
        margin-top: -40px;
    }
    
    .form-section h2 {
        font-size: 22px;
    }
    
    .section-card {
        padding: 24px 20px;
    }
    
    .section-card h2 {
        font-size: 20px;
    }
    
    .step-item {
        padding: 14px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .faq-question {
        padding: 16px;
        font-size: 14px;
    }
    
    .lang-switcher {
        top: 12px;
        right: 12px;
    }
    
    .lang-switcher button {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .footer-info {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contacts-grid {
        flex-direction: row;
    }
    
    .contact-item {
        flex: 1;
        justify-content: center;
    }
}
