/* ============================================
   ROCOSCLINIC - Bitrix Components Styles
   ============================================ */

/* Page Content Wrapper */
.page-content {
    padding: 120px 0 60px;
    min-height: calc(100vh - 400px);
}

.page-content .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

/* Breadcrumbs */
.bx-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.bx-breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bx-breadcrumb a:hover {
    color: var(--primary);
}

.bx-breadcrumb .bx-breadcrumb-item::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--gray-400);
}

.bx-breadcrumb .bx-breadcrumb-item:last-child::after {
    display: none;
}

/* News List - General */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.news-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-out-expo);
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-item-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.news-item:hover .news-item-image img {
    transform: scale(1.1);
}

.news-item-content {
    padding: 1.5rem;
}

.news-item-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item-title a:hover {
    color: var(--primary);
}

.news-item-text {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-item-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Doctors Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    z-index: 0;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.doctor-photo {
    position: relative;
    z-index: 1;
    width: 160px;
    height: 160px;
    margin: 40px auto 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    padding: 1.5rem;
    text-align: center;
}

.doctor-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.doctor-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.doctor-name a:hover {
    color: var(--primary);
}

.doctor-specialty {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.doctor-experience {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg,
.service-icon img {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.service-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title a:hover {
    color: var(--primary);
}

.service-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--accent);
    gap: 0.75rem;
}

.service-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* Price Table */
.price-table {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.price-table-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.5rem 2rem;
}

.price-table-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.price-table-body {
    padding: 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.3s ease;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row:hover {
    background: var(--gray-100);
}

.price-name {
    color: var(--gray-800);
    font-weight: 500;
}

.price-value {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
}

/* Reviews Section */
.reviews-slider {
    position: relative;
    padding: 0 60px;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

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

.review-text {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-author-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.review-author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-author-info {
    flex: 1;
}

.review-author-name {
    font-weight: 600;
    color: var(--gray-900);
}

.review-author-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.review-rating {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(79, 186, 213, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Pagination */
.pagination,
.bx-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span,
.bx-pagination a,
.bx-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a,
.bx-pagination a {
    background: var(--white);
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}

.pagination a:hover,
.bx-pagination a:hover {
    background: var(--primary);
    color: var(--white);
}

.pagination .active,
.pagination .current,
.bx-pagination .bx-active {
    background: var(--primary);
    color: var(--white);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Title */
.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Content Blocks */
.content-block {
    margin-bottom: 2rem;
}

.content-block h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.content-block h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.content-block p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content-block ul,
.content-block ol {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

.content-block a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-block a:hover {
    color: var(--accent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-content {
        padding: 100px 0 40px;
    }

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

    .reviews-slider {
        padding: 0;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
