/* Doctor Rybkin - Medical Sleep Clinic Theme */

:root {
    --primary: #1a5f7a;
    --primary-dark: #134b61;
    --primary-light: #2980b9;
    --secondary: #2c3e50;
    --accent: #16a085;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #ecf0f1;
    --border: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
}

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

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

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

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

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

/* Header */
.header {
    background: var(--secondary);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.logo-text p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

.nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    opacity: 0.85;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav a:hover,
.nav a.active {
    opacity: 1;
    border-bottom-color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

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

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

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

.btn-light:hover {
    background: var(--bg-light);
}

.btn-esia {
    background: #0066B3;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.btn-esia:hover {
    background: #005299;
    color: #fff;
}

.esia-logo {
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature {
    display: flex;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: var(--radius);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature strong {
    display: block;
    margin-bottom: 0.25rem;
}

.feature p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

/* Services */
.services {
    padding: 4rem 0;
    background: var(--bg-light);
}

.services h2,
.articles-preview h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-3px);
}

.service-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

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

/* Articles Preview */
.articles-preview {
    padding: 4rem 0;
}

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

.article-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.article-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.article-card h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.article-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.link {
    font-size: 0.9rem;
    font-weight: 500;
}

/* CTA Section */
.cta {
    background: var(--primary);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #fff;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-info p,
.footer-partners p,
.footer-links a {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    opacity: 0.85;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Consultation Page */
.consultation-page {
    padding: 3rem 0;
}

.consultation-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.consultation-info h2 {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-block {
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: var(--radius);
}

.info-block h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.info-block ol,
.info-block ul {
    margin-left: 1.25rem;
}

.info-block li {
    margin-bottom: 0.5rem;
}

.partner-block {
    border-left: 4px solid var(--accent);
}

/* Auth Card */
.auth-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-header {
    background: var(--primary);
    color: #fff;
    padding: 1.25rem;
    text-align: center;
}

.auth-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.auth-header h3 {
    font-size: 1.25rem;
}

.auth-body {
    padding: 1.5rem;
}

.auth-body > p {
    margin-bottom: 1rem;
    text-align: center;
}

.auth-note {
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 0.75rem;
    border-radius: var(--radius);
}

.auth-disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

.auth-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
}

.security-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    font-size: 0.75rem;
    background: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--text-light);
}

/* Chat Preview */
.chat-preview {
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.chat-header {
    background: var(--bg-dark);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.chat-status {
    color: var(--text-light);
    font-size: 0.8rem;
}

.chat-body {
    height: 150px;
    background: #fff;
    position: relative;
}

.chat-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
}

.lock-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.chat-overlay p {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    padding: 0 1rem;
}

.chat-input-wrapper {
    display: flex;
    border-top: 1px solid var(--border);
}

.chat-input-wrapper input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    font-size: 0.9rem;
}

.chat-input-wrapper button {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border: none;
    color: var(--text-light);
    cursor: not-allowed;
}

/* About Page */
.about-page {
    padding: 3rem 0;
}

.about-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.doctor-photo {
    flex-shrink: 0;
}

.photo-placeholder {
    width: 180px;
    height: 180px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.doctor-intro h2 {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.doctor-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.doctor-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-section h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

/* Timeline */
.timeline {
    list-style: none;
}

.timeline li {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.timeline li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.year {
    font-weight: 600;
    color: var(--primary);
    min-width: 50px;
}

.timeline-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

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

/* Specialization Grid */
.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.spec-icon {
    font-size: 1.5rem;
}

.spec-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* Certificates */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.cert-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.cert-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

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

.about-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Articles Page */
.articles-page {
    padding: 3rem 0;
}

.articles-page h2 {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.page-description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-full {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.article-full h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content h4 {
    font-size: 1rem;
    color: var(--secondary);
    margin: 1.25rem 0 0.75rem;
}

.article-content ul,
.article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Contacts Page */
.contacts-page {
    padding: 3rem 0;
}

.contacts-page h2 {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
}

.contact-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.contact-card h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.contact-card a {
    font-size: 1.1rem;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.online-consultation-block {
    background: var(--primary);
    color: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 2rem;
}

.online-consultation-block h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.online-consultation-block p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.legal-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.legal-info h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.info-table td:first-child {
    width: 120px;
    color: var(--text-light);
}

/* Privacy Page */
.privacy-page {
    padding: 3rem 0;
}

.privacy-page h2 {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.privacy-content h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin: 1.5rem 0 0.75rem;
}

.privacy-content h3:first-child {
    margin-top: 0;
}

.privacy-content p {
    margin-bottom: 0.75rem;
}

.privacy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        justify-content: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 1.75rem;
    }

    .consultation-wrapper {
        grid-template-columns: 1fr;
    }

    .about-header {
        flex-direction: column;
        text-align: center;
    }

    .doctor-stats {
        justify-content: center;
    }
}
