/* ========================================
   SERVICE LANDING PAGES - UNIFIED STYLES
   For: ortopedichni-konsultatsii.php, endoprotezuvannia.php
   ======================================== */

/* ==========================================================================
   1. SIMPLE HERO
   ========================================================================== */

.service-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fcf6 0%, #fff 100%);
}

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

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-lead {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.hero-cta .btn-secondary:hover {
    background: var(--secondary-color);
    color: #fff;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    gap: 8px;
}

.hero-bullets li {
    position: relative;
    padding-left: 28px;
    font-size: 17px;
    color: #444;
    line-height: 1.6;
}

.hero-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color, #91d072);
}

.hero-note {
    font-size: 1rem;
    line-height: 1.7;
    color: #2c3e50;
    margin: 0 auto 36px;
    max-width: 720px;
    padding: 18px 24px;
    background: rgba(145, 208, 114, 0.1);
    border-left: 4px solid #91d072;
    border-radius: 12px;
    text-align: justify;
}

.service-hero--with-media .hero-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.service-hero--with-media .hero-note {
    margin: 0 0 32px;
    max-width: none;
}

.service-hero--with-media .hero-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 40px;
}

.service-hero--with-media .hero-text {
    max-width: 560px;
}

.service-hero--with-media .hero-cta {
    justify-content: flex-start;
}

.service-hero--with-media .hero-media {
    margin: 0;
}

.service-hero--with-media .hero-media img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   2. INTRO TEXT SECTION
   ========================================================================== */

.intro-text {
    padding: 80px 0;
}

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

.intro-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #1a1a1a;
}

.intro-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.intro-highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fcf6;
    border-left: 4px solid #91d072;
    padding: 24px;
    margin-top: 40px;
    border-radius: 8px;
}

.intro-highlight svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.intro-highlight p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* ==========================================================================
   3. SECTION HEADERS
   ========================================================================== */

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

.section-header-centered h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.section-header-centered p {
    font-size: 18px;
    color: #666;
}

/* ==========================================================================
   4. SERVICES ACCORDION (COMPACT)
   ========================================================================== */

.services-detailed {
    padding: 80px 0;
}

.services-accordion-list {
    max-width: 1000px;
    margin: 0 auto;
}

.service-accordion-item {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-accordion-item:hover {
    border-color: #91d072;
    box-shadow: 0 4px 20px rgba(145, 208, 114, 0.1);
}

.service-accordion-item.featured {
    border-color: #91d072;
    box-shadow: 0 4px 20px rgba(145, 208, 114, 0.15);
}

.service-badge-top {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #91d072;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    pointer-events: none;
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.service-header::after {
    content: '';
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 12px;
    height: 12px;
    border-right: 3px solid #91d072;
    border-bottom: 3px solid #91d072;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.service-accordion-item.active .service-header::after {
    transform: rotate(-135deg);
}

.service-header:hover {
    background: #f8fcf6;
}

.service-icon-circle {
    width: 56px;
    height: 56px;
    background: #f8fcf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: #91d072;
}

.service-accordion-item:hover .service-icon-circle {
    background: #91d072;
    color: #fff;
}

.service-accordion-item.active .service-icon-circle {
    background: #91d072;
    color: #fff;
}

.service-title-group {
    flex: 1;
}

.service-title-group h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.service-title-group p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.service-body {
    display: none;
    padding: 0 24px 24px 96px;
    color: #444;
    line-height: 1.7;
}

.service-accordion-item.active .service-body {
    display: block;
}

.service-body p {
    margin-bottom: 16px;
}

.service-body p:last-child {
    margin-bottom: 0;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features li {
    padding-left: 28px;
    margin-bottom: 12px;
    position: relative;
    line-height: 1.6;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #91d072;
    font-weight: 700;
    font-size: 18px;
}

.service-note {
    background: #fff8e6;
    border-left: 3px solid #ffc107;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 14px;
    border-radius: 4px;
}

.service-body .btn {
    margin-top: 20px;
}

.service-links {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
}

.service-links span {
    font-weight: 600;
    color: #444;
}

.service-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(123, 192, 94, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.service-links a:hover {
    border-color: rgba(123, 192, 94, 0.8);
    color: #5aa543;
}

/* ==========================================================================
   5. CONSULTATION PROCESS TIMELINE (HORIZONTAL)
   ========================================================================== */

.consultation-process {
    padding: 80px 0;
    background: #f9f9f9;
}

.timeline-horizontal {
    max-width: 1200px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    position: relative;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: linear-gradient(to right, #91d072, #7bc05e);
    z-index: 0;
}

.timeline-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 4px solid #91d072;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #91d072;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.timeline-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.timeline-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   6. WHEN NEEDED - SYMPTOMS GRID
   ========================================================================== */

.when-needed {
    padding: 80px 0;
    background: #fff;
}

.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.symptom-card {
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.symptom-card:hover {
    border-color: #91d072;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(145, 208, 114, 0.2);
}

.symptom-card svg {
    margin-bottom: 20px;
}

.symptom-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.symptom-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   7. PREPARATION SECTION
   ========================================================================== */

.preparation-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.preparation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.prep-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.prep-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.prep-icon {
    width: 72px;
    height: 72px;
    background: #f8fcf6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.prep-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.prep-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prep-card ul li {
    padding: 12px 0;
    padding-left: 28px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    color: #555;
    line-height: 1.5;
}

.prep-card ul li:last-child {
    border-bottom: none;
}

.prep-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #91d072;
    font-size: 24px;
    line-height: 1;
}

/* ==========================================================================
   8. CTA INLINE BLOCK
   ========================================================================== */

.cta-inline-section {
    padding: 80px 0;
    background: #fff;
}

.cta-inline-block {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #91d072 0%, #7bc05e 100%);
    border-radius: 16px;
    padding: 40px 50px;
    box-shadow: 0 8px 24px rgba(145, 208, 114, 0.3);
}

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

.cta-inline-content {
    flex: 1;
    color: #fff;
}

.cta-inline-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-inline-content p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.95;
}

.cta-inline-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-inline-actions .btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
}

.cta-inline-actions .btn-primary {
    background: #fff;
    color: #91d072;
}

.cta-inline-actions .btn-primary:hover {
    background: #f0f0f0;
}

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

.cta-inline-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   9. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 968px) {
    .service-hero {
        padding: 60px 0 50px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-lead {
        font-size: 18px;
    }

    .timeline-horizontal {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 20px;
    }

    .timeline-horizontal::before {
        display: none;
    }

    .symptoms-grid,
    .preparation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .cta-inline-block {
        gap: 30px;
    }

    .cta-icon {
        width: 80px;
        height: 80px;
    }

    .cta-inline-content h3 {
        font-size: 28px;
    }

    .cta-inline-content p {
        font-size: 16px;
    }

    .service-hero--with-media .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-hero--with-media .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 50px 0 40px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-lead {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .service-hero--with-media .hero-content {
        text-align: center;
    }

    .service-hero--with-media .hero-layout {
        gap: 24px;
    }

    .intro-content h2,
    .section-header-centered h2 {
        font-size: 28px;
    }

    .intro-content p,
    .section-header-centered p {
        font-size: 16px;
    }

    .service-hero {
        padding: 30px 0;
    }

    .intro-text,
    .services-detailed,
    .consultation-process,
    .when-needed,
    .preparation-section,
    .cta-inline-section {
        padding: 30px 0;
    }

    .service-header {
        padding: 20px;
        padding-right: 50px;
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }

    /* Featured item - більше простору для бейджа */
    .service-accordion-item.featured .service-header {
        padding-top: 50px;
    }

    .service-header::after {
        right: 16px;
        bottom: 16px;
    }

    .service-icon-circle {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

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

    .service-title-group {
        flex: 1;
        min-width: 0;
    }

    .service-title-group h3 {
        font-size: 17px;
        margin-bottom: 4px;
    }

    .service-title-group p {
        font-size: 14px;
    }

    /* Badge positioning for mobile */
    .service-badge-top {
        top: 12px;
        right: 12px;
        font-size: 11px;
        padding: 5px 12px;
    }

    .service-body {
        padding: 0 20px 20px 20px;
    }

    .timeline-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 16px;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 18px;
        border-width: 3px;
    }

    .timeline-content h4 {
        font-size: 16px;
    }

    .timeline-content p {
        font-size: 13px;
    }

    .symptoms-grid,
    .preparation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .symptom-card {
        padding: 28px 20px;
    }

    .prep-card {
        padding: 28px 24px;
    }

    .cta-inline-block {
        flex-direction: column;
        text-align: center;
        padding: 32px 28px;
    }

    .cta-icon {
        width: 70px;
        height: 70px;
    }

    .cta-inline-content h3 {
        font-size: 22px;
    }

    .cta-inline-content p {
        font-size: 15px;
    }

    .cta-inline-actions {
        justify-content: center;
        flex-direction: column;
    }

    .cta-inline-actions .btn {
        width: 100%;
        text-align: center;
    }
}
