/* =============================================
   БИОРЕЗОНАНС ВАРНА - Main Stylesheet
   Optimized for Core Web Vitals
   ============================================= */

/* CSS Reset & Base */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

:root {
    --primary: #2d5a27;
    --primary-light: #4a9c3d;
    --secondary: #1a3a17;
    --accent: #7cb342;
    --accent-light: #8bc34a;
    --text: #333;
    --text-light: #666;
    --text-muted: #888;
    --bg: #fff;
    --bg-alt: #f8faf7;
    --bg-dark: #e8f0e6;
    --shadow: 0 2px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   HEADER
   ============================================= */
header {
    background: var(--bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo span {
    font-size: 1.2rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color var(--transition);
    padding: 5px 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

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

.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: #fff;
    background: var(--accent-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
}

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

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

/* =============================================
   HERO SECTIONS
   ============================================= */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.hero .btn {
    margin: 5px;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* =============================================
   SECTIONS
   ============================================= */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   FEATURES GRID
   ============================================= */
.features {
    background: var(--bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    fill: #fff;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
}

/* =============================================
   ABOUT SECTIONS
   ============================================= */
.about-preview,
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-grid.reverse {
    direction: rtl;
}

.about-grid.reverse > * {
    direction: ltr;
}

.about-image,
.about-image-box {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-image svg,
.about-image-box svg {
    width: 100%;
    height: 100%;
}

.about-text h2,
.about-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p,
.about-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-text ul,
.about-content ul {
    margin: 20px 0;
    padding-left: 20px;
    list-style: disc;
}

.about-text li,
.about-content li {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* =============================================
   SERVICES
   ============================================= */
.services-preview {
    background: var(--bg-alt);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.service-item {
    display: flex;
    gap: 20px;
    background: var(--bg);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.service-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.service-item h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.service-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Service Detail Pages */
.services-intro,
.pricing-intro {
    padding: 40px 0;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-light);
}

.service-detail {
    padding: 60px 0;
}

.service-detail.alt {
    background: var(--bg-alt);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-detail-grid.reverse {
    direction: rtl;
}

.service-detail-grid.reverse > * {
    direction: ltr;
}

.service-detail-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-detail-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-detail-content h4 {
    color: var(--text);
    margin: 20px 0 10px;
}

.service-detail-content ul {
    padding-left: 20px;
    list-style: disc;
}

.service-detail-content li {
    color: var(--text-light);
    margin-bottom: 8px;
}

.service-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-meta {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.service-meta span {
    color: var(--text-light);
}

.service-detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-image svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* =============================================
   STATS
   ============================================= */
.stats {
    background: var(--primary);
    color: #fff;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 5px;
}

.stat-item p {
    opacity: 0.9;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: var(--radius-lg);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.author-info h4 {
    color: var(--primary);
    font-size: 1rem;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* =============================================
   CTA
   ============================================= */
.cta {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    text-align: center;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   FAQ
   ============================================= */
.faq,
.faq-pricing,
.faq-contact {
    background: var(--bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg);
    margin-bottom: 15px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--bg-alt);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform var(--transition);
}

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

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
}

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

.faq-answer p {
    color: var(--text-light);
}

/* =============================================
   TEAM
   ============================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

.team-photo svg {
    width: 100%;
    height: 100%;
}

.team-card h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.team-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.team-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =============================================
   MISSION/VISION
   ============================================= */
.mission-vision {
    background: var(--bg-alt);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mv-card {
    background: var(--primary);
    color: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.mv-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mv-icon svg {
    width: 30px;
    height: 30px;
}

.mv-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.mv-card p {
    opacity: 0.9;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.value-card {
    background: var(--bg);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.value-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =============================================
   CERTIFICATIONS
   ============================================= */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.cert-item svg {
    margin: 0 auto 15px;
}

.cert-item h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.cert-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-light);
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-year {
    width: 100px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    text-align: right;
    padding-right: 20px;
    position: relative;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg);
}

.timeline-content {
    background: var(--bg-alt);
    padding: 20px;
    border-radius: var(--radius);
    flex: 1;
}

.timeline-content h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =============================================
   EQUIPMENT
   ============================================= */
.equipment-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.equipment-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-dark);
    color: var(--text-light);
}

.equipment-list li strong {
    color: var(--primary);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.equipment-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.equipment-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.equipment-image svg {
    max-height: 100%;
}

.equipment-card h3 {
    color: var(--primary);
    padding: 0 20px;
    margin-bottom: 10px;
}

.equipment-card p {
    color: var(--text-light);
    padding: 0 20px;
    font-size: 0.95rem;
}

.equipment-card ul {
    padding: 15px 20px 20px 40px;
    list-style: disc;
}

.equipment-card li {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* =============================================
   DIAGNOSTICS PAGE
   ============================================= */
.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.how-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.how-image {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.step-card {
    background: var(--bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-card h3 {
    color: var(--primary);
    margin: 10px 0 15px;
}

.step-card p {
    color: var(--text-light);
}

.process-steps {
    background: var(--bg-alt);
}

.detects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.detect-category {
    background: var(--bg);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.detect-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.detect-icon svg {
    width: 100%;
    height: 100%;
}

.detect-category h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.detect-category ul {
    padding-left: 20px;
    list-style: disc;
}

.detect-category li {
    color: var(--text-light);
    margin-bottom: 8px;
}

/* Categories Grid Section */
.categories-grid {
    background: var(--bg-alt);
}

.categories-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.category-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.category-card a {
    text-decoration: none;
}

.category-card a h3 {
    transition: color var(--transition);
}

.category-card a:hover h3 {
    color: var(--accent);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Text Section Variants */
.text-section {
    padding: 60px 0;
}

.text-section .text-content {
    max-width: 900px;
    margin: 0 auto;
}

.text-section .text-content p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.text-section .text-content h3 {
    color: var(--primary);
    margin: 30px 0 15px;
}

.text-section .text-content ul,
.text-section .text-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.text-section .text-content li {
    margin-bottom: 10px;
    color: var(--text-light);
}

.text-section .text-content ul {
    list-style: disc;
}

.text-section .text-content ol {
    list-style: decimal;
}

.text-section.highlighted {
    background: var(--bg-alt);
}

.text-section.highlighted .text-content {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.text-section.info-box .text-content {
    background: rgba(74, 156, 61, 0.1);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(74, 156, 61, 0.2);
}

.text-section.legal-text .text-content h3 {
    font-size: 1.2rem;
    margin-top: 40px;
}

.text-section.legal-text .text-content h3:first-child {
    margin-top: 0;
}

.text-section.contact-info .text-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-info-grid .contact-item {
    background: var(--bg-alt);
    padding: 25px;
    border-radius: var(--radius);
}

.contact-info-grid .contact-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
}

/* Package description */
.package-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.preparation {
    background: var(--bg-alt);
}

.prep-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.prep-item {
    padding: 25px;
    border-radius: var(--radius);
}

.prep-item.do {
    background: rgba(74, 156, 61, 0.1);
    border-left: 4px solid var(--primary-light);
}

.prep-item.dont {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
}

.prep-item h4 {
    margin-bottom: 15px;
    color: var(--text);
}

.prep-item ul {
    padding-left: 20px;
    list-style: disc;
}

.prep-item li {
    color: var(--text-light);
    margin-bottom: 8px;
}

.note {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 15px;
}

.contra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contra-card {
    padding: 30px;
    border-radius: var(--radius-lg);
}

.contra-card.absolute {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid rgba(231, 76, 60, 0.3);
}

.contra-card.relative {
    background: rgba(241, 196, 15, 0.1);
    border: 2px solid rgba(241, 196, 15, 0.3);
}

.contra-card h3 {
    margin-bottom: 15px;
    color: var(--text);
}

.contra-card ul {
    padding-left: 20px;
    list-style: disc;
}

.contra-card li {
    color: var(--text-light);
    margin-bottom: 8px;
}

.science-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.science-item {
    background: var(--bg-alt);
    padding: 25px;
    border-radius: var(--radius);
}

.science-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.science-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =============================================
   PRICING PAGE
   ============================================= */
.pricing-tables {
    padding: 60px 0;
}

.pricing-tables.alt {
    background: var(--bg-alt);
}

.price-table {
    overflow-x: auto;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.price-table th,
.price-table td {
    padding: 20px;
    text-align: left;
}

.price-table thead {
    background: var(--primary);
    color: #fff;
}

.price-table th {
    font-weight: 600;
}

.price-table tbody tr {
    border-bottom: 1px solid var(--bg-dark);
}

.price-table tbody tr:hover {
    background: var(--bg-alt);
}

.price-table tbody tr.featured-row {
    background: rgba(74, 156, 61, 0.05);
}

.service-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.discount {
    background: var(--accent);
    color: #fff;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.packages-section {
    background: var(--bg-alt);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.package-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform var(--transition);
}

.package-card:hover {
    transform: translateY(-5px);
}

.package-card.featured {
    border: 2px solid var(--accent);
    transform: scale(1.02);
}

.package-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.package-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.package-price .current {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.package-price .original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-left: 10px;
}

.savings {
    display: block;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.package-features {
    text-align: left;
    padding: 20px 0;
    list-style: none;
}

.package-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-dark);
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.package-card .btn {
    width: 100%;
}

/* Family packages */
.family-packages {
    padding: 60px 0;
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.family-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.family-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.family-icon svg {
    width: 100%;
    height: 100%;
}

.family-card h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.family-card > p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.family-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.family-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.family-card ul {
    text-align: left;
    padding-left: 20px;
    list-style: disc;
}

.family-card li {
    color: var(--text-light);
    margin-bottom: 8px;
}

/* Discounts */
.discounts {
    background: var(--bg-alt);
}

.discounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.discount-card {
    background: var(--bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.discount-percent {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.discount-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.discount-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.discount-note {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
    font-style: italic;
}

/* Payment */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.payment-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.payment-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.payment-icon svg {
    width: 100%;
    height: 100%;
}

.payment-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.payment-card p {
    color: var(--text-light);
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-main {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-text h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-text a:hover {
    color: var(--primary);
}

.social-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--bg-dark);
}

.social-links h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

/* Contact Form */
.contact-form-container {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.contact-form-container h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-form-container > p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bg-dark);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--bg);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 3px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.95rem;
}

.form-success {
    text-align: center;
    padding: 40px;
}

.form-success h3 {
    color: var(--primary);
    margin: 20px 0 10px;
}

.form-success p {
    color: var(--text-light);
}

/* Map */
.map-section {
    background: var(--bg-alt);
    padding: 60px 0;
}

.map-container {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder {
    padding: 20px;
    text-align: center;
}

.map-placeholder svg {
    width: 100%;
    max-height: 400px;
}

.map-note {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Directions */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.direction-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.direction-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.direction-icon svg {
    width: 100%;
    height: 100%;
}

.direction-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.direction-card p {
    color: var(--text-light);
}

/* Emergency */
.emergency-contact {
    padding: 40px 0;
}

.emergency-box {
    background: var(--primary);
    color: #fff;
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 25px;
}

.emergency-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.emergency-icon svg {
    width: 30px;
    height: 30px;
}

.emergency-text h3 {
    margin-bottom: 5px;
}

.emergency-text a {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}

.emergency-text a:hover {
    text-decoration: underline;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--secondary);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    opacity: 0.8;
    margin: 15px 0;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.footer-section a:hover {
    opacity: 1;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #fff;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .about-preview,
    .about-grid,
    .service-detail-grid,
    .how-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid.reverse,
    .service-detail-grid.reverse {
        direction: ltr;
    }

    .about-image,
    .about-image-box {
        height: 300px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prep-list,
    .contra-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }

    nav.active {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    nav a::after {
        display: none;
    }

    .hero {
        padding: 60px 0;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .package-card.featured {
        transform: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .emergency-box {
        flex-direction: column;
        text-align: center;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-year {
        width: 60px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 0;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 25px;
    }

    .feature-card,
    .package-card,
    .contact-form-container {
        padding: 25px 20px;
    }

    .service-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* =============================================
   ACCESSIBILITY
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header,
    footer,
    .cta,
    .mobile-menu {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: underline;
    }
}
