/* CSS Reset and Variables */
:root {
    --primary-color: #2b4b45; /* Deep teal/green for accents from reference */
    --primary-hover: #1e3632;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #fdfdfd;
    --bg-section: #f4f5f6;
    --hero-bg: #090b0e;
    --border-radius: 12px;
    --transition: 0.3s ease;
    
    font-family: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Elegant serif for headings */
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Typography & Utilities */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.title-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(43, 75, 69, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 75, 69, 0.3);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

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

/* Header */
.header {
    background-color: rgba(253, 253, 253, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    background-color: var(--bg-light);
    padding-top: 100px;
    padding-bottom: 40px;
}

.hero-simple {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-full-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: block;
}

.hero-action {
    position: absolute;
    top: 78%;
    left: calc(55% + 15px);
    z-index: 10;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 50px;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.advantages-title {
    font-size: 2rem;
    margin-bottom: 30px;
}

.advantages-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.adv-card {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.adv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #d1d5db;
}

.adv-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 2px;
}

.adv-card p {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Toggles Wrapper */
.toggles-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
}

.toggles-wrapper .education-section {
    margin-top: 0;
    flex: 1;
    max-width: 500px;
    width: 100%;
}

/* Education Toggle */
.education-section {
    text-align: center;
    margin-top: 30px;
}

.toggle-edu-btn {
    width: 100%;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 1.1rem;
}

.toggle-edu-btn {
    border-radius: 12px;
}

.toggle-edu-btn .arrow {
    transition: transform 0.3s ease;
}

.toggle-edu-btn.active .arrow {
    transform: rotate(180deg);
}

.education-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    opacity: 0;
    text-align: left;
    background: white;
    margin-top: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.education-content.open {
    opacity: 1;
    padding: 40px;
    border: 1px solid #e5e7eb;
}

.edu-block {
    margin-bottom: 30px;
}

.edu-block:last-child {
    margin-bottom: 0;
}

.edu-block h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.edu-block ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.edu-block li {
    font-size: 1rem;
    color: var(--text-light);
    display: flex;
    gap: 15px;
}

.edu-block li span {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Services Sections */
.services {
    padding: 100px 0;
}

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

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.section-light .service-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-img-wrap {
    height: 200px;
    overflow: hidden;
}

.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrap img {
    transform: scale(1.05);
}

.service-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 20px 20px 10px;
    text-align: center;
}

.service-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0 20px 24px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Steps Section */
.steps {
    padding: 100px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr; /* Делаем первый и второй ряд абсолютно одинаковыми по высоте */
    grid-template-areas: 
        "step1 img step2"
        "step3 step4 step5";
    gap: 30px;
    align-items: stretch;
    margin-top: 50px;
}

.steps-center-img {
    grid-area: img;
    position: relative;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.steps-center-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
    filter: contrast(1.15) brightness(1.05);
    object-fit: cover;
}

.step-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.step-item-1 { grid-area: step1; text-align: left; }
.step-item-2 { grid-area: step2; text-align: left; }
.step-item-3 { grid-area: step3; text-align: left; }
.step-item-4 { grid-area: step4; text-align: left; }
.step-item-5 { grid-area: step5; text-align: left; }

.step-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
}

.step-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Reviews Section */
.reviews {
    padding: 100px 0;
}

.reviews-slider-wrapper {
    position: relative;
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviews-slider-container {
    overflow: hidden;
    flex-grow: 1;
}

.reviews-slider {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
}

.slider-btn {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: white;
    color: #9ca3af;
    border-color: #e5e7eb;
    transform: none;
    box-shadow: none;
}

.review-card {
    background: white;
    padding: 25px;
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 12px;
}

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

.review-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    width: fit-content;
}

.oncology-tag {
    background-color: #e0f2fe;
    color: #0284c7;
}

.plastic-tag {
    background-color: #fce7f3;
    color: #db2777;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    font-style: italic;
}

.reviews-more {
    text-align: center;
    margin-top: 50px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.link-prodoctorov {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition);
}

.link-prodoctorov:hover {
    color: var(--primary-hover);
}

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

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.footer-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.footer-address {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.footer-phone {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.footer-contacts .btn {
    background: white;
    color: var(--primary-color);
}

.footer-contacts .btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "img"
            "step1"
            "step2"
            "step3"
            "step4"
            "step5";
        gap: 20px;
    }
    
    .step-item-1, .step-item-2, .step-item-3, .step-item-4, .step-item-5 {
        text-align: left;
    }

    .review-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
    
    .hero-full-img {
        border-radius: 12px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .nav-links {
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
        width: 100%;
        justify-content: center;
        gap: 15px;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    
    .nav-links::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    
    .nav-links a {
        font-size: 0.95rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .toggles-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
    }
    
    .toggles-wrapper .education-section {
        max-width: 100%;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-simple {
        margin-bottom: 40px;
    }
    
    .hero-action {
        top: auto;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 320px;
    }
    
    .btn-large {
        padding: 14px 20px;
        font-size: 1rem;
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .advantages-title {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .about, .services {
        padding: 60px 0;
    }
    
    .about-intro {
        font-size: 1.05rem;
        margin-bottom: 40px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 25px;
    }
    
    .footer-contacts {
        align-items: center;
    }
    
    .footer-info h3 {
        font-size: 1.5rem;
    }
    
    .review-card {
        flex: 0 0 100%;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-title {
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 1.8rem;
    color: var(--primary-color);
}

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

.modal-phone {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding: 10px 20px;
    background: var(--bg-section);
    border-radius: 12px;
    transition: var(--transition);
}

.modal-phone:hover {
    color: var(--primary-color);
    background: #eaebec;
}

.modal-subtext {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    margin: 0;
}
