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

:root {
    --primary: #004080;
    --primary-dark: #002d5a;
    --primary-light: #e6f0fa;
    --accent: #ffb522;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

/* Header */

header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.logo span {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.phone-link {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* Hero */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 1.5rem;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--text);
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 181, 34, 0.4);
}

/* Chat Section */

.chat-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.chat-container {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    max-height: 80vh;
    border: 1px solid var(--border);
}

.chat-header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-header h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.chat-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
    transition: background 0.3s;
}

.status-dot.active {
    background: #22c55e;
}

/* Chat Messages */

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    height: 100%;
}

.welcome-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-light);
}

.chat-welcome h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.chat-welcome p {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 400px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.start-chat-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}

.start-chat-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Messages */

.message {
    display: flex;
    max-width: 85%;
}

.message.user {
    align-self: flex-end;
}

.message.assistant {
    align-self: flex-start;
}

.message.system {
    align-self: center;
}

.bubble {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.bubble p {
    margin-bottom: 0.5rem;
}

.bubble p:last-child {
    margin-bottom: 0;
}

.message.user .bubble {
    background: var(--primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message.assistant .bubble {
    background: var(--primary-light);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.message.system .bubble {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.85rem;
    text-align: center;
}

/* Chat Input */

.chat-input-area {
    display: flex;
    padding: 1rem;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.chat-input-area input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--primary);
}

.chat-input-area button {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 1rem;
}

.chat-input-area button:hover {
    background: var(--primary-dark);
}

.chat-input-area button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Info Panel */

.info-panel {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.25rem;
    border: 1px solid var(--border);
    position: sticky;
    top: 80px;
}

.info-panel h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.info-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.info-field label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.info-field span {
    font-size: 0.85rem;
    color: #9ca3af;
    transition: color 0.3s;
}

.info-field span.filled {
    color: var(--text);
    font-weight: 500;
}

/* Services */

.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.services h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.25rem 1.25rem 0.5rem;
    color: var(--text);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0 1.25rem 1.25rem;
    line-height: 1.6;
}

/* Process */

.process {
    background: var(--primary-light);
    padding: 4rem 1.5rem;
}

.process h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.step p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* About */

.about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.credentials {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.credentials img {
    height: 50px;
    width: auto;
}

.credentials span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.about-contact {
    flex-shrink: 0;
}

.about-contact img {
    max-width: 300px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* Footer */

footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

footer p {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Responsive */

@media (max-width: 1024px) {
    .chat-section {
        flex-direction: column;
    }

    .info-panel {
        width: 100%;
        position: static;
    }

    .about-content {
        flex-direction: column;
    }

    .about-contact img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    nav {
        gap: 0.75rem;
    }

    nav a {
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .chat-container {
        min-height: 500px;
    }

    .chat-section {
        padding: 1.5rem 1rem;
    }

    .message {
        max-width: 92%;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .process-steps {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
}

/* Scrollbar */

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
