/* Modern CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page Transition */
.page-transition2 {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition2.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(20px, 4vw, 60px);
    height: 100px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.logo img {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
    align-items: center;
}

nav a {
    font-size: 16px;
    color: #2d2d2d;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f06292, #e91e63);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #e91e63;
    transform: translateY(-2px);
}

nav a[href^="tel"] {
    font-weight: 600;
    color: #e91e63;
    font-size: 17px;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(233, 30, 99, 0.08);
}

nav a[href^="tel"]:hover {
    background: rgba(233, 30, 99, 0.15);
    transform: translateY(-2px);
}

nav a[href^="tel"]::after {
    display: none;
}

/* Main Section */
.contact-specialist {
    padding: clamp(60px, 10vw, 100px) 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(50px, 8vw, 80px);
    flex-wrap: wrap;
}

.contact-details {
    flex: 1 1 550px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.contact-photo-mobile {
    display: none;
}

.contact-details h1 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 12px;
    color: #e91e63;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.specialist-title {
    font-size: clamp(16px, 2vw, 18px);
    color: #555;
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.specialist-title strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Contact Highlight */
.contact-highlight {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 32px;
    border-radius: 20px;
    margin-bottom: 32px;
    border: 2px solid rgba(233, 30, 99, 0.15);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-highlight:hover {
    border-color: rgba(233, 30, 99, 0.3);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.1);
}

.contact-highlight h2 {
    font-size: clamp(20px, 2.5vw, 24px);
    color: #e91e63;
    margin-bottom: 16px;
    font-weight: 600;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.phone-number {
    display: inline-block;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: #e91e63;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.phone-number:hover {
    transform: scale(1.05);
    color: #d81b60;
}

.phone-note {
    color: #666;
    font-size: clamp(14px, 1.8vw, 16px);
    margin: 0;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Specializations */
.specializations {
    margin-bottom: 32px;
}

.specializations h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 600;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.spec-item {
    background: #fafafa;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 500;
    color: #444;
    border: 2px solid rgba(233, 30, 99, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.spec-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.15);
    border-color: #e91e63;
    background: #fff;
    color: #1a1a1a;
}

/* Contact Methods */
.contact-methods {
    margin-bottom: 32px;
}

.contact-methods h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 600;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

.contact-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #fafafa;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2d2d2d;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(14px, 1.8vw, 16px);
    border: 2px solid transparent;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.phone-icon:hover {
    background: #e91e63;
    color: white;
    border-color: #e91e63;
}

.whatsapp-icon:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.telegram-icon:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.instagram-icon:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #e6683c;
}

/* Email Section */
.email-section {
    margin-bottom: 32px;
}

.email-section h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 600;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

.email-link {
    display: inline-block;
    font-size: clamp(18px, 2.2vw, 20px);
    color: #e91e63;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.email-link:hover {
    color: #d81b60;
    transform: translateX(4px);
}

.email-note {
    font-size: clamp(13px, 1.6vw, 14px);
    color: #999;
    margin: 0;
    font-style: italic;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Contact Photo - Larger */
.contact-photo {
    flex: 0 0 clamp(450px, 40vw, 550px);
    max-width: 100%;
    position: sticky;
    top: 120px;
}

.contact-photo img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    object-fit: cover;
}

.contact-photo img:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 80px rgba(233, 30, 99, 0.2);
}

/* Footer */
.footer {
    background: #fafafa;
    border-top: 1px solid #eee;
    padding: 50px 20px;
    text-align: center;
    color: #666;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-note {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

.footer-privacy {
    margin-top: 12px;
    font-size: 13px;
}

.footer-privacy a {
    color: #e91e63;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-privacy a:hover {
    color: #d81b60;
    text-decoration: underline;
}

.footer-socials {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-socials a:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.2);
    background: linear-gradient(135deg, #f06292, #e91e63);
}

.footer-socials a svg {
    width: 22px;
    height: 22px;
    stroke: #666;
    fill: none;
    transition: all 0.3s ease;
}

.footer-socials a:hover svg {
    stroke: #fff;
}

/* Burger Menu */
.burger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    color: #2d2d2d;
    transition: transform 0.3s ease;
}

.burger:hover {
    transform: scale(1.1);
}

.mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    right: 8px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    z-index: 999;
}

.mobile-menu.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding: 12px;
}

.mobile-menu a {
    display: block;
    padding: 14px 16px;
    color: #2d2d2d;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-menu a:hover {
    background: rgba(233, 30, 99, 0.08);
    color: #e91e63;
    transform: translateX(4px);
}

.mobile-phone {
    display: none;
    align-items: center;
    gap: 8px;
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(233, 30, 99, 0.08);
    transition: all 0.3s ease;
}

.mobile-phone:hover {
    background: rgba(233, 30, 99, 0.15);
    transform: translateY(-2px);
}

.mobile-phone svg {
    width: 18px;
    height: 18px;
    color: #e91e63;
}

/* Responsive Design */
@media (max-width: 1023px) {
    header {
        padding: 0 30px;
        height: 90px;
    }

    .logo img {
        height: 75px;
    }

    .contact-specialist {
        padding: 60px 20px;
    }

    .contact-container {
        gap: 50px;
    }

    .contact-photo {
        flex: 0 0 450px;
        position: static;
    }
}

/* iPad mini and tablets (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .contact-photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 600px;
        order: -1;
        position: static;
        margin-bottom: 40px;
        display: block !important;
    }

    .contact-photo img {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-details {
        order: 1;
        width: 100%;
        max-width: 800px;
    }

    .contact-photo-mobile {
        display: none;
    }
}

@media (max-width: 767px) {
    header {
        padding: 0 20px;
        height: 80px;
    }

    header.scrolled {
        height: 70px;
    }

    .logo img {
        height: 65px;
    }

    nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }

    .contact-specialist {
        padding: 40px 20px;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .contact-details {
        text-align: left;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .specialist-title {
        margin-bottom: 24px;
    }

    .contact-photo-mobile {
        display: block;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 30px auto;
    }

    .contact-photo-mobile img {
        width: 100%;
        height: auto;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
        object-fit: cover;
    }

    .contact-photo-mobile img:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 30px 80px rgba(233, 30, 99, 0.2);
    }

    .contact-photo {
        display: none;
    }

    .contact-highlight {
        padding: 28px 24px;
        text-align: center;
    }

    .specialization-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .contact-icon {
        justify-content: center;
        padding: 16px 24px;
    }

    .contact-photo-mobile {
        max-width: 100%;
        margin: 0 auto 24px auto;
    }

    .contact-photo {
        display: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
        height: auto;
        min-height: 70px;
    }

    .logo img {
        height: 55px;
    }

    .mobile-phone {
        display: inline-flex;
        margin-right: 8px;
        font-size: 14px;
        padding: 6px 12px;
    }

    .contact-specialist {
        padding: 30px 15px;
    }

    .contact-container {
        gap: 30px;
    }

    .contact-details h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .specialist-title {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .contact-highlight {
        padding: 24px 20px;
        margin-bottom: 24px;
    }

    .contact-highlight h2 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .phone-number {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .phone-note {
        font-size: 14px;
    }

    .specializations {
        margin-bottom: 24px;
    }

    .specializations h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .specialization-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .spec-item {
        padding: 14px 18px;
        font-size: 15px;
    }

    .contact-methods {
        margin-bottom: 24px;
    }

    .contact-methods h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .contact-icon {
        padding: 14px 20px;
        font-size: 15px;
    }

    .email-section {
        margin-bottom: 24px;
    }

    .email-section h3 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .email-link {
        font-size: 18px;
    }

    .email-note {
        font-size: 13px;
    }

    .footer {
        padding: 40px 15px;
    }

    .footer-socials a {
        width: 38px;
        height: 38px;
    }
}

/* iPhone 14 Pro Max and similar large mobile devices */
@media only screen 
    and (device-width: 430px) 
    and (device-height: 932px) 
    and (-webkit-device-pixel-ratio: 3) {
    
    .contact-details h1 {
        font-size: 30px;
    }

    .specialist-title {
        font-size: 16px;
    }

    .phone-number {
        font-size: 24px;
    }

    .phone-note {
        font-size: 15px;
    }

    .spec-item {
        font-size: 15px;
    }

    .contact-icon {
        font-size: 15px;
    }

    .email-link {
        font-size: 18px;
    }
}

/* iPad and tablets (excluding iPad Pro) */
@media (min-width: 481px) and (max-width: 1023px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 600px;
        order: -1;
        position: static;
        margin-bottom: 40px;
    }

    .contact-photo img {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-details {
        order: 1;
        width: 100%;
    }

    .contact-photo-mobile {
        display: none;
    }

    .specialization-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
}

/* iPad Pro specific (1024x1366 portrait) */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 700px;
        order: -1;
        position: static;
        margin-bottom: 50px;
    }

    .contact-photo img {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }

    .contact-details {
        order: 1;
        width: 100%;
        max-width: 900px;
    }

    .contact-photo-mobile {
        display: none;
    }
}

/* iPad Pro landscape (1366x1024) */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .contact-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .contact-photo {
        flex: 0 0 500px;
        order: 2;
        position: sticky;
        top: 120px;
    }

    .contact-details {
        order: 1;
        flex: 1 1 auto;
    }

    .contact-photo-mobile {
        display: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(233, 30, 99, 0.2);
    color: #1a1a1a;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid #e91e63;
    outline-offset: 4px;
    border-radius: 4px;
}
