:root {
    --bg-page: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    --card-bg: #FFFFFF;
    --primary-dark: #0F172A;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    --gradient-vibrant: linear-gradient(135deg, #06B6D4 0%, #7C3AED 50%, #EC4899 100%);
    --gradient-hero: linear-gradient(135deg, #E0F2FE 0%, #EEF2FF 50%, #FCE7F3 100%);
    --gradient-cta: linear-gradient(135deg, #0088B4 0%, #00B4D8 50%, #7C3AED 100%);
    
    --radius-card: 16px;
    --radius-inner: 10px;
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    transition: color 0.2s;
}

nav a:hover, nav a.active {
    color: #7C3AED;
}

.btn-login-highlight {
    background: var(--gradient-vibrant);
    color: #FFFFFF !important;
    padding: 0.45rem 1.2rem;
    border-radius: 20px;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login-highlight:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.container {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}

.hero-banner {
    background: var(--gradient-hero);
    border-radius: var(--radius-card);
    padding: 2.2rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.hero-banner h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.btn-contact {
    background-color: #FFFFFF;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.65rem 1.8rem;
    border-radius: 25px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background-color: #FFFFFF;
    border-color: #CBD5E1;
}

.grid-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.block-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 1.4rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid #F1F5F9;
    padding-bottom: 0.5rem;
}

.block-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
}

.list-items-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.list-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    background-color: #F8FAFC;
    border-radius: var(--radius-inner);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, transform 0.2s;
}

.list-item-row:hover {
    border-color: #CBD5E1;
    transform: translateY(-1px);
}

.item-info-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.icon-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.item-text {
    width: 100%;
}

.item-text h4 a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    transition: color 0.2s;
    display: block;
}

.item-text h4 a:hover {
    color: #7C3AED;
    text-decoration: underline;
}

.item-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loading-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 1rem;
    text-align: center;
}

.login-card-embedded {
    position: relative;
    background: #EAEFF2;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.embedded-header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    text-align: center;
}

.title-neon {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #00A6CE;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 166, 206, 0.15);
}

.title-neon span {
    display: inline-block;
    font-size: 20px;
    margin-top: 2px;
    color: #00A6CE;
}

.tech-banner {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
    display: block;
    mix-blend-mode: multiply;
}

.btn-google {
    width: 100%;
    padding: 12px;
    background: #FFFFFF;
    border: 2px solid #CBD5E1;
    border-radius: 6px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: background 0.2s, transform 0.1s;
}

.btn-google:hover {
    background: #F8FAFC;
    transform: translateY(-1px);
}

.security-badge {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #2D3748;
    font-size: 11px;
    font-weight: 600;
}

.security-badge svg {
    width: 14px;
    height: 14px;
    fill: #0088B4;
}

.cards-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.course-card {
    background-color: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-inner);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.course-card:hover {
    transform: translateY(-2px);
    border-color: #CBD5E1;
}

.course-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    background: linear-gradient(135deg, #CBD5E1 0%, #94A3B8 100%);
}

.course-content {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.course-content h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--primary-dark);
}

.course-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.course-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: #7C3AED;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.course-link:hover {
    text-decoration: underline;
}

.tests-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.test-cta-card {
    background: var(--gradient-hero);
    border: 2px dashed #00B4D8;
    border-radius: var(--radius-inner);
    padding: 1.1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.test-cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.25);
    border-color: #0088B4;
}

.test-pulse-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-vibrant);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(124, 58, 237, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

.test-cta-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.test-cta-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 95%;
    line-height: 1.3;
}

.test-price-tag {
    font-size: 0.8rem;
    font-weight: 800;
    color: #7C3AED;
    background: rgba(124, 58, 237, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
}

.btn-test-action {
    background: var(--gradient-cta);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 136, 180, 0.3);
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-test-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 136, 180, 0.45);
    background: linear-gradient(135deg, #007399 0%, #0088B4 50%, #6B21A8 100%);
}

footer {
    margin-top: 3rem;
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 1rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-col h5 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-col a {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: #7C3AED;
}

.copyright-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

@media (max-width: 850px) {
    .grid-row {
        grid-template-columns: 1fr;
    }
    .cards-grid-6 {
        grid-template-columns: 1fr;
    }
    nav ul {
        display: none;
    }
    .hero-banner h1 {
        font-size: 1.25rem;
    }
    .copyright-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}