/* ===== CSS Variables ===== */
:root {
    --primary-color: #2A9D8F;
    --primary-dark: #238B7E;
    --secondary-color: #264653;
    --accent-color: #E9C46A;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #1A1A2E;
    --border-color: #E5E5E5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-lg: 20px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Utility Classes ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.4);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

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

.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(48%) sepia(52%) saturate(497%) hue-rotate(127deg) brightness(93%) contrast(87%);
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

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

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

.btn-header {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    padding: 30px 20px;
    box-shadow: var(--shadow);
    z-index: 999;
    opacity: 0;
    transform: translateY(-20px);
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.mobile-nav-list a {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== Hero Section ===== */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #F8F9FA 0%, #E8F4F2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.hero-phone:hover {
    color: var(--primary-color);
}

.phone-icon {
    font-size: 1.3rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.hero-image {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-image-wrapper {
    position: relative;
    max-width: 420px;
}

.doctor-photo {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 8px rgba(42, 157, 143, 0.1),
        0 0 0 16px rgba(42, 157, 143, 0.05);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.hero-image-wrapper:hover .doctor-photo {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    transform: scale(1.02);
}

.hero-image-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    opacity: 0.15;
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 0;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
}

/* ===== Hero Clinic Block ===== */
.hero-clinic-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 35px;
}

.clinic-logo-img {
    max-width: 280px;
    height: auto;
    border-radius: var(--radius);
}

.clinic-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary-color);
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.clinic-phone-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.4);
}

.clinic-phone-btn .phone-icon {
    font-size: 1.2rem;
}

/* ===== About Section ===== */
.about {
    background: white;
}

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

.about-text {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-list li {
    font-weight: 500;
    color: var(--text-color);
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ===== Works Section ===== */
.works {
    background: var(--bg-light);
}

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

.work-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.work-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.work-before, .work-after {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.work-before img, .work-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.work-info {
    padding: 25px;
}

.work-info h3 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.work-info p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ===== Awards Section ===== */
.awards {
    background: white;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.award-card {
    background: var(--bg-light);
    padding: 35px 25px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

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

.award-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.award-card h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.award-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.award-year {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.certificates-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.certificate {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.certificate:hover {
    transform: scale(1.05);
}

.certificate img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ===== ProDoctors Section ===== */
.prodoctorov {
    background: var(--bg-light);
    padding: 60px 0;
}

.prodoctorov-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a3a47 100%);
    padding: 50px 60px;
    border-radius: var(--radius-lg);
    color: white;
}

.prodoctorov-left {
    flex: 1;
}

.prodoctorov-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
}

.prodoctorov-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.prodoctorov-text {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 500px;
}

.prodoctorov-right {
    flex-shrink: 0;
}

.prodoctorov-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: white;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.prodoctorov-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.prodoctorov-btn:hover .btn-arrow {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .prodoctorov-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .prodoctorov-text {
        max-width: 100%;
    }

    .prodoctorov-title {
        font-size: 1.6rem;
    }
}

/* ===== Reviews Section ===== */
.reviews {
    background: var(--bg-light);
}

.reviews-slider {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.reviews-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.review-card {
    flex: 0 0 calc(33.333% - 20px);
    background: white;
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.review-rating {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.review-text {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.review-info {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-weight: 600;
    color: var(--secondary-color);
}

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

.reviews-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
}

.reviews-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ===== Contacts Section ===== */
.contacts {
    background: white;
}

.contacts-content {
    display: flex;
    justify-content: center;
}

.contacts-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 60px;
    max-width: 800px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-text p, .contact-text a {
    color: var(--text-light);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.messengers {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.messenger {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.messenger.whatsapp {
    background: #25D366;
}

.messenger.telegram {
    background: #0088cc;
}

.messenger:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.contact-form h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

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

.btn-form {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-logo {
    display: block;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .hero-image-wrapper {
        max-width: 350px;
    }

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

    .about-image {
        order: -1;
        text-align: center;
    }

    .about-image img {
        max-width: 400px;
        margin: 0 auto;
    }

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

    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-card {
        flex: 0 0 calc(50% - 15px);
    }

    .contacts-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

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

    .nav, .btn-header {
        display: none;
    }

    .burger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
    }

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

    .hero-container {
        text-align: center;
    }

    .hero-clinic-block {
        align-items: center;
        width: 100%;
    }

    .clinic-logo-img {
        max-width: 260px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 25px;
    }

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

    .about-list {
        grid-template-columns: 1fr;
    }

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

    .review-card {
        flex: 0 0 100%;
    }

    .reviews-slider {
        padding: 0 20px;
    }

    .contacts-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .contact-form {
        padding: 25px;
    }

    .work-comparison {
        grid-template-columns: 1fr;
    }

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

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

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Burger menu animation */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
