/* 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-transition3 {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition3.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 */
.about-specialist {
    padding: clamp(60px, 10vw, 100px) 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(40px, 6vw, 60px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Photos */
.about-photo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: 0 0 auto;
}

.about-photo img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-photo img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Text Content */
.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #1a1a1a;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.about-text h2 {
    font-size: clamp(24px, 3vw, 28px);
    color: #e91e63;
    margin: 32px 0 20px 0;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.specialist-title {
    font-size: clamp(16px, 2vw, 18px);
    color: #555;
    margin-bottom: 24px;
    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;
}

.intro-text {
    font-size: clamp(16px, 2vw, 17px);
    color: #444;
    background: #fafafa;
    border-left: 4px solid #e91e63;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Education Section */
.education-section {
    margin-bottom: 32px;
}

.education-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-left: 4px solid #e91e63;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.12);
}

.year {
    font-weight: 700;
    color: #e91e63;
    font-size: clamp(18px, 2.5vw, 22px);
    min-width: 70px;
    text-align: center;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.details {
    flex: 1;
    font-size: clamp(15px, 2vw, 16px);
    color: #444;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.highlight {
    color: #e91e63;
    font-weight: 600;
}

/* Qualifications List */
.qualifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qualifications-list li {
    font-size: clamp(15px, 2vw, 16px);
    color: #444;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.qualifications-list li:last-child {
    border-bottom: none;
}

.qualifications-list li strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* 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;
}

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

.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: 1024px) {
    header {
        padding: 0 30px;
        height: 90px;
    }

    .logo img {
        height: 75px;
    }

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

    .about-container {
        gap: 40px;
        padding: 30px 20px;
    }
}

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

    header.scrolled {
        height: 70px;
    }

    .logo img {
        height: 65px;
    }

    nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }

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

    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        padding: 20px;
    }

    .about-photo {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        max-width: 100%;
        gap: 20px;
    }

    .about-photo img {
        width: 48%;
        min-width: 280px;
        max-width: 100%;
    }

    .about-text {
        text-align: left;
        max-width: 100%;
    }

    .about-text h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .about-text h2 {
        font-size: 22px;
        margin: 28px 0 18px 0;
    }

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

    .intro-text {
        font-size: 16px;
        padding: 20px;
        line-height: 1.7;
        margin-bottom: 28px;
    }

    .education-item {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        margin-bottom: 16px;
    }

    .year {
        font-size: 20px;
        min-width: auto;
        margin-bottom: 8px;
    }

    .details {
        font-size: 15px;
        line-height: 1.7;
    }

    .qualifications-list li {
        font-size: 15px;
        padding: 12px 0;
        line-height: 1.7;
    }

    .education-section {
        margin-bottom: 28px;
    }
}

@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;
    }

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

    .about-container {
        padding: 15px;
        gap: 24px;
    }

    .about-photo {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .about-photo img {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .about-text {
        text-align: left;
        padding: 0;
    }

    .about-text h1 {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .about-text h2 {
        font-size: 20px;
        margin: 24px 0 16px 0;
    }

    .specialist-title {
        font-size: 15px;
        margin-bottom: 18px;
        line-height: 1.6;
    }

    .intro-text {
        font-size: 15px;
        padding: 18px;
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .education-item {
        padding: 18px;
        margin-bottom: 14px;
        gap: 12px;
    }

    .year {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .details {
        font-size: 14px;
        line-height: 1.7;
    }

    .qualifications-list li {
        font-size: 14px;
        padding: 10px 0;
        line-height: 1.7;
    }

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

    .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) {
    
    .about-text h1 {
        font-size: 28px;
    }

    .about-text h2 {
        font-size: 22px;
    }

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

    .intro-text {
        font-size: 16px;
    }

    .details {
        font-size: 15px;
    }

    .qualifications-list li {
        font-size: 15px;
    }
}

/* 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;
}
