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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    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"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

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

/* Sections */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 20px;
}

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

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.condition-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.condition-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.condition-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.condition-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Rates Section */
.rates-info {
    margin-bottom: 40px;
}

.rates-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.rates-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.rates-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.rates-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.rates-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.rates-table tbody tr {
    transition: background-color 0.3s ease;
}

.rates-table tbody tr:hover {
    background-color: var(--bg-light);
}

.rates-table tbody tr:last-child td {
    border-bottom: none;
}

.rates-table .positive {
    color: var(--secondary-color);
    font-weight: 600;
}

.rates-table .negative {
    color: #ef4444;
    font-weight: 600;
}

.rates-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Clients Table */
.clients-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.clients-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.clients-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.clients-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.clients-table tbody tr {
    transition: background-color 0.3s ease;
}

.clients-table tbody tr:hover {
    background-color: var(--bg-light);
}

.clients-table tbody tr:last-child td {
    border-bottom: none;
}

.client-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-all;
}

.client-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Two-column clients table */
.clients-table-two-columns th:nth-child(2),
.clients-table-two-columns td:nth-child(2) {
    border-right: 2px solid rgba(99, 102, 241, 0.3);
    padding-right: 30px;
    position: relative;
}

.clients-table-two-columns th:nth-child(3),
.clients-table-two-columns td:nth-child(3) {
    padding-left: 30px;
}

.clients-table-two-columns td {
    width: 25%;
}

.clients-table-two-columns td:empty {
    border-bottom: none;
}

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

.direction-card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.direction-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.direction-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
}

.direction-card ul {
    list-style: none;
}

.direction-card li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.direction-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.direction-card li:hover {
    color: var(--text-dark);
}

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

.recommendation-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.recommendation-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.recommendation-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.recommendation-author h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.recommendation-role {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.recommendation-text {
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
    margin: 0;
    position: relative;
    padding-left: 20px;
}

.recommendation-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.5;
}

/* Contacts Section */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    word-break: break-all;
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-info {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin-bottom: 0 !important;
}

.contact-note {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-note p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.8;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-menu {
        gap: 20px;
        font-size: 0.9rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .conditions-grid,
    .directions-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .rates-table,
    .clients-table {
        font-size: 0.9rem;
    }

    .rates-table th,
    .rates-table td,
    .clients-table th,
    .clients-table td {
        padding: 15px 10px;
    }

    .clients-table-two-columns th:nth-child(2),
    .clients-table-two-columns td:nth-child(2) {
        border-right: none;
        padding-right: 10px;
    }

    .clients-table-two-columns th:nth-child(3),
    .clients-table-two-columns td:nth-child(3) {
        padding-left: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 60px;
    }

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

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

    .section {
        padding: 60px 0;
    }

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

    .recommendation-card,
    .contact-card {
        padding: 25px 20px;
    }

    .contact-note {
        padding: 20px;
    }
}

