:root {
    --primary: #0057d9;
    --primary-light: #0070ff;
    --primary-dark: #0040a6;
    --secondary: #ff6b35;
    --dark: #1a1a1a;
    --light: #f8faff;
    --lighter: #f0f6ff;
    --success: #28a745;
    --danger: #dc3545;
    --gray: #666666;
    --gray-light: #cccccc;
    --transition: all 0.3s ease;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    color: var(--dark);
}

h1,
h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--dark);
}

p {
    margin: 0 0 1rem 0;
}

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

/* Layout */
main {
    flex-grow: 1;
}

.section {
    padding: 3rem 0;
}

.section.bg-light {
    background-color: var(--lighter);
}

.section-bg {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.section-title-large {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.logo a {
    text-decoration: none;
    color: var(--primary);
}

.logo-suffix {
    color: var(--dark);
}

.nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--dark);
    border-radius: var(--radius-md);
    transition: var(--transition);
    margin: 0 2px;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-light);
    color: #fff;
}

.nav-link.active {
    background-color: var(--primary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--dark);
    transition: var(--transition);
}

.header[data-menu-open="true"] .nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 500;
}

.header[data-menu-open="true"] .nav-list {
    flex-direction: column;
}

.header[data-menu-open="true"] .nav-link {
    margin: 0.5rem 1rem;
    padding-left: 1.5rem;
}

.header[data-menu-open="true"] .nav-link:hover {
    background-color: var(--lighter);
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .header[data-menu-open="true"] .header-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 1rem;
        gap: 0.5rem;
    }

    .header[data-menu-open="true"] .header-actions .btn {
        width: 100%;
    }
}

/* Hero */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 Q 25 25, 50 50 T 100 50" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 30, 100, 0.82), rgba(0, 50, 150, 0.78));
    opacity: 0.95;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 87, 217, 0.15);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    color: #fff;
}

/* Workflow Steps */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-card {
    text-align: center;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 87, 217, 0.15);
    border-color: var(--primary-light);
}

.step-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 2.5rem 0 1.5rem;
}

.footer-light {
    background-color: #f0f6ff;
    color: #444;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.footer-logo a {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-logo a:hover {
    text-decoration: underline;
}

.footer-logo a span {
    color: #fff;
}

.footer-contact a,
.footer-contact a:hover {
    color: #ccc;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
    font-size: 0.85rem;
    color: #aaa;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    min-width: 120px;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: #fff;
}

.btn-secondary {
    background-color: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-white {
    background-color: #fff;
    color: var(--primary);
    border-color: #fff;
}

.btn-white:hover {
    background-color: #f0f6ff;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
}

.cta-content h2 {
    font-size: 1.8rem;
    margin: 0 0 1rem;
}

.cta-subtitle {
    font-size: 1rem;
    margin: 0 0 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.about-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
}

.values-list {
    margin-top: 1rem;
}

.values-list li {
    margin: 0.7rem 0 0.7rem 1.5rem;
    padding-left: 0.5rem;
    position: relative;
}

.values-list li::before {
    content: "- ";
    position: absolute;
    left: -1rem;
    color: var(--primary);
}

/* Services Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 87, 217, 0.15);
    border-color: var(--primary-light);
}

.service-card .btn {
    margin-top: auto;
}

.service-card h3 {
    margin-bottom: 0.6rem;
    color: var(--primary-dark);
}

.service-card ul {
    margin: 0.6rem 0 1rem 1.5rem;
}

.service-card li {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-info {
    padding-right: 1.5rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-details li {
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 87, 217, 0.1);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Password Toggle */
.password-input-group {
    position: relative;
}

.toggle-password-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
}

/* Password Rules */
.password-rules {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.password-rules ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.password-rules li {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    margin: 0 0.3rem 0.3rem 0;
    border-radius: 2rem;
    border: 1px solid var(--gray-light);
    color: var(--gray);
    transition: var(--transition);
}

.password-rules li.valid {
    background-color: rgba(40, 167, 69, 0.15);
    color: var(--success);
    border-color: var(--success);
}

.password-rules li.valid::before {
    content: '✓ ';
    font-weight: bold;
}

/* Messages */
.form-message {
    margin-top: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.form-message.success {
    background-color: rgba(40, 167, 69, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.15);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* Errors */
.error-message {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--danger);
    min-height: 1.2rem;
}

/* Auth Pages */
.auth-section {
    background-color: #f0f6ff;
    padding: 4rem 0;
}

.auth-form {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin: 0 auto;
    max-width: 480px;
    border: 1px solid rgba(0, 87, 217, 0.1);
}

.auth-title {
    font-size: 1.7rem;
    margin-bottom: 0.4rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.password-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.auth-footer {
    margin-top: 1.2rem;
    text-align: center;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}


.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    flex-direction: row;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Legal */
.legal-article {
    line-height: 1.7;
}

.legal-article h2 {
    margin: 1.5rem 0 0.7rem;
    font-size: 1.4rem;
    color: var(--dark);
}

.legal-article ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.legal-article ul li {
    margin: 0.4rem 0;
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        height: 55vh;
    }

    .hero-title {
        font-size: clamp(1.6rem, 5vw, 2.3rem);
    }

    .features-grid,
    .workflow-steps,
    .about-content,
    .service-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-top {
        flex-direction: column;
    }

    .footer-links ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {

    .section,
    .cta-section {
        padding: 2rem 0;
    }

    .auth-form {
        padding: 1.5rem;
    }
}