:root {
    --primary-color: #5b64de;
    --primary-dark: #4819e2;
    --primary-light: #a3aaf5;
    --secondary-color: #55587e;
    --gentle-rose: #f0eaff;
    --accent-color: #5e60ce;
    --accent-hover: #4a4db5;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background: #f9f9fc;
    --background-alt: #f8fafc;
    --surface: #ffffff;
    --text-primary: #2b245d;
    --text-secondary: #67648b;
    --text-muted: #9495b8;
    --border: #e2e2f0;
    --border-light: #f1f1f9;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #3119e2 0%, #5b99de 100%);
    --gradient-accent: linear-gradient(135deg, #5e60ce 0%, #4d2dc1 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

::selection {
    background-color: var(--primary-color);
    color: #ffffff;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

body {
    font-family: sans-serif;
    background: linear-gradient(to bottom, #e0ecff, #f6f7fb);
    color: var(--text-primary);
    letter-spacing: .5px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.blue {
    color: var(--secondary-color);
}
.logo {
    font-family: serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0;
}

.logo-mark {
    height: 30px;
    width: auto;
    display: block;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-button {
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: var(--accent-color);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: var(--background-alt);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: serif;
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 45%;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: var(--accent-color);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: scale(1.012);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 2px solid;
  border-color: transparent;
  font-size: 16px;
  border-radius: 12px;
  font-weight: 600;
  color: #1f387e;
  box-shadow: 0 0 0 2px var(--background);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.cta-content .animated-button {
  margin: 0 auto;
}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: #1f387e;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--border);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  color: #1f387e;
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #212121;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: #1f387e;
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px var(--surface);
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--background-alt);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-card {
    background: var(--surface);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-icon.science { background: var(--gradient-primary); }
.feature-icon.fast { background: var(--gradient-secondary); }
.feature-icon.detailed { background: var(--gradient-accent); }

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    height: 80px;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--background);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: var(--shadow);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--background-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--surface);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-style: italic;
    text-align: left;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}


/* Counter Section */
.counter-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.counter-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.counter-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.counter-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.counter-icon svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.counter-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

.counter-description {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 10px;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.hero-page {
    height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-page img {
    height: 100%;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.cta-button:focus,
.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


.page-hero {
    width: 100%;
    height: 230px;
    overflow: hidden;
    margin-top: 70px;
}

.page-hero picture,
.page-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--background);
}
.faq-section .hero-title {
    color: var(--primary-color);
}
.faq-list {
    list-style: none;
}

.faq-item {
    background: var(--surface);
    margin-bottom: 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    transition: all 0.3s ease;
    width: 100%;
    border: none;
    font-family: inherit;
    text-align: left;
}

.faq-question:hover {
    background: var(--background-alt);
}

.faq-question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-text {
    padding: 0 30px 25px 30px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    text-align: left;
}

/* Test Selection Modal */
body.modal-open,
html.modal-open {
    overflow: hidden !important;
}

.test-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.test-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--surface);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px 40px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s ease;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

.modal-tests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.modal-test-card {
    background: var(--background-alt);
    padding: 30px 25px;
    border-radius: 15px;
    border: 2px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modal-test-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.modal-test-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-test-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.modal-test-icon.science { background: var(--gradient-primary); }
.modal-test-icon.fast { background: var(--gradient-secondary); }
.modal-test-icon.detailed { background: var(--gradient-accent); }

.modal-test-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-test-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.modal-test-time {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Page */
.contact-hero {
    padding: 80px 20px 60px;
    background: #f9f9fc;
    text-align: center;
}

.contact-hero .page-title {
    font-family: serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.contact-hero .page-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid-section {
    padding: 60px 20px;
    background: #f9f9fc;
}

.contact-grid {
    display: grid;
    gap: 40px;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.contact-card a {
    font-family: serif;
    font-size: 1.3rem;
    font-weight: 400;
    padding-bottom: 30px;
    color: var(--primary-color);
    text-decoration: none;
}
.contact-bullets {
    margin-top: 12px;
    padding-left: 18px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-bullets li {
    margin-bottom: 10px;
}

.contact-image-card img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

.contact-image-caption {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form-card {
    grid-column: span 2;
}

.contact-form {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.contact-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form label {
    font-weight: 600;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-muted);
    background: #fff;
}

.contact-form textarea {
    resize: vertical;
    color: var(--text-muted);
    font: var(--text-secondary);
}

.contact-privacy {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.contact-form .btn-primary {
    width: fit-content;
    padding: 12px 20px;
}

/* About Page */
.about-hero {
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-hero-text h1.about-title {
    font-family: serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.about-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.about-mission,
.about-values {
    margin-bottom: 32px;
}

.about-mission h2,
.about-values h2 {
    font-family: serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.about-mission p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-bullets {
    list-style: none;
    padding-left: 0;
}

.about-bullets li {
    color: var(--text-secondary);
    padding-left: 28px;
    margin-bottom: 12px;
    position: relative;
}

.about-bullets li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.value-item {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    text-align: center;
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gentle-rose);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.value-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.about-hero-image {
    text-align: center;
}

.about-hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: block;
}

.image-caption {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 12px;
    font-style: italic;
}



@media (max-width: 1000px) {
    .page-hero {
        height: 141px;
    }
    .faq-section {
    padding: 60px 0;
}
}
@media (max-width: 450px) {
    .page-hero {
        height: 100px;
    }
    .faq-section {
    padding: 40px 0;
}
}
/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        justify-content: center;
        background-color: var(--surface);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 30px 0;
        gap: 0;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link,
    .cta-button {
        display: block;
        padding: 10px 20px;
    }

    .nav-link::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1000;
    }

    /* Mobile Dropdown - Show all items directly */
    .dropdown {
        position: relative;
    }

    .dropdown-toggle {
        display: none !important;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        margin-top: 0;
        border-radius: 0;
        max-height: none;
        overflow: visible;
        padding: 0;
    }

    .dropdown-menu li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .dropdown-menu li:last-child {
        border-bottom: 1px solid var(--border-light);
    }

    .dropdown-menu a {
        padding: 10px 20px;
        font-size: 1rem;
        border-left: none;
        display: block;
        background: transparent;
    }

    .dropdown-menu a:hover {
        background: transparent;
        color: var(--primary-color);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        display: flex;
        flex-direction: column-reverse;
    }
    .hero-image {
    width: 100%;
    }
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
        margin: 0 auto;
        margin-bottom: 30px;
    }
    .hero-feature {
        width: fit-content;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .features-grid,
    .steps-container,
    .testimonials-grid,
    .counters-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-card,
    .step-card,
    .testimonial-card,
    .counter-item {
        padding: 25px 20px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .counter-number {
        font-size: 2.5rem;
    }

    .counter-icon svg {
        width: 40px;
        height: 40px;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-stats {
        gap: 20px;
        flex-direction: column;
    }

    .stat-number {
        font-size: 2rem;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question-text {
        font-size: 1rem;
    }

    .faq-toggle {
        font-size: 0.9rem;
    }

    .faq-answer-text {
        padding: 0 20px 20px 20px;
        font-size: 0.95rem;
        text-align: left;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
@media (max-width: 992px) {
    .about-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-hero-text h1.about-title {
        font-size: 2.2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-card {
        grid-column: span 1;
    }
}
@media (max-width: 768px) {
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .hero-container {
        gap: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-feature {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .features-grid,
    .steps-container,
    .testimonials-grid,
    .counters-grid {
        gap: 20px;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-title {
        font-size: 1.2rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }
    .about-intro, .about-mission p, .about-bullets li, .value-item p, .image-caption {
        font-size: .9rem;
    }
    .step-card {
        padding: 20px 15px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .step-description {
        font-size: 0.9rem;
    }

    .testimonial-card {
        padding: 20px 15px;
    }

    .testimonial-quote {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .author-info h4 {
        font-size: 0.95rem;
    }

    .author-info p {
        font-size: 0.85rem;
    }

    .counter-item {
        padding: 20px 15px;
    }

    .counter-icon svg {
        width: 40px;
        height: 40px;
    }

    .counter-number {
        font-size: 2rem;
    }

    .counter-label {
        font-size: 1rem;
    }

    .counter-description {
        font-size: 0.85rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-description {
        font-size: 0.95rem;
    }

    .cta-stats {
        gap: 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .faq-question {
        padding: 15px;
        gap: 10px;
    }

    .faq-question-text {
        font-size: 0.95rem;
    }

    .faq-toggle {
        width: 25px;
        height: 25px;
        margin-left: 10px;
    }

    .faq-answer-text {
        padding: 0 15px 15px 15px;
        font-size: 0.9rem;
        text-align: left;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    /* Modal Responsive */
    .modal-tests-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .modal-title {
        font-size: 1.8rem;
    }
     .modal-content {
        padding: 40px 30px;
        max-height: 85vh;
    }
    .modal-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .modal-test-card {
        padding: 25px 20px;
    }
    .modal-test-icon {
        width: 60px;
        height: 60px;
    }

    .modal-test-title {
        font-size: 1.2rem;
    }


    .footer-bottom {
    flex-direction: column;
    text-align: center;
}
.about-hero {
        padding: 80px 20px 40px;
    }

    .about-hero-text h1.about-title {
        font-size: 1.8rem;
    }


    .about-mission h2,
    .about-values h2 {
        font-size: 1.2rem;
    }

    .value-item {
        padding: 12px;
    }
    .contact-hero {
        padding: 60px 20px 40px;
    }
    .contact-hero .page-title {
        font-size: 2rem;
    }
    .contact-hero .page-subtitle {
        font-size: 1rem;
    }
    .contact-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 60px;
    }
    .hero-content, .feature-card, .step-card, 
    .counter-item, .cta-content, .stat-item, .nav-menu,
    .contact-hero, .value-item {
        text-align: left;
    }
    .hero-buttons .btn-secondary {
            border: none;
    text-align: left;
    width: fit-content;
    }
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
    .hero-features {
        justify-content: flex-start;
    }
    .hero-feature {
        font-size: 0.85rem;
        width: 45%;
    }
    .feature-card, .step-card, .counter-item {
        border-top-right-radius: 80% 60%;
    border: solid 1px rgba(128, 128, 128, 0.464);
    border-top: #4819e2 solid 1px;
    }
    .feature-icon, .step-number {
        margin: 0 0 25px;
    }
    .cta-content .animated-button {
        margin: 0;
        width: 100%;
    }
    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    .section-header {
        text-align: left;
    }

    .section-title {
        font-size: 1.5rem;
        text-align: left;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }
    .how-it-works {
        padding-top: 0;
    }
.testimonial-quote {
        font-size: .85rem;
    }
    .feature-title,
    .step-title {
        font-size: 1rem;
    }

    .feature-description,
    .step-description, .about-intro, 
    .about-mission p, .about-bullets li, 
    .value-item p, .image-caption, 
    .faq-answer-text, .contact-privacy, 
    .contact-form input, .contact-form textarea, 
    .contact-image-caption, .contact-bullets li,
    .contact-card p  {
        font-size: 0.85rem;
    }
.contact-grid-section {
    padding: 0;
}
    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 0.85rem;
    }

    .container {
        padding: 0 15px;
    }

    /* Modal Small Screens */
    .modal-test-desc {
        font-size: 0.85rem;
    }

     .test-modal {
        padding: 15px;
    }

    .modal-content {
        padding: 35px 20px;
        border-radius: 15px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .modal-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .modal-tests-grid {
        gap: 15px;
    }

    .modal-test-card {
        padding: 20px 15px;
    }

    .modal-test-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .modal-test-title {
        font-size: 1.1rem;
    }
    .modal-test-time {
        font-size: 0.85rem;
    }
    .contact-card a {
    font-size: 1rem;
}
}
