:root {
            --primary-color: #2c3e50;
            --secondary-color: #34495e;
            --accent-color: #3498db;
            --gold-color: #d4af37;
            --light-color: #ecf0f1;
            --text-color: #333;
            --shadow: 0 4px 6px rgba(0,0,0,0.1);
            --transition: all 0.3s ease;
        }

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

        body {
            background-color: #f9f9f9;
            color: var(--text-color);
            line-height: 1.6;
            font-family: 'Roboto', sans-serif;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* Header Styles */
        header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            padding: 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        header.scrolled {
            padding: 0.5rem 0;
            background: rgba(44, 62, 80, 0.95);
            backdrop-filter: blur(10px);
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 0;
            transition: var(--transition);
        }

        header.scrolled .header-container {
            padding: 0.5rem 0;
        }

        .logo-area {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .logo-icon {
            font-size: 2rem;
            color: var(--gold-color);
            background: rgba(255, 255, 255, 0.1);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        header.scrolled .logo-icon {
            width: 45px;
            height: 45px;
            font-size: 1.5rem;
        }

        .logo-text {
            display: flex;
            flex-direction: column;
        }

        .logo-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: 0.5px;
        }

        .logo-subtitle {
            font-size: 0.9rem;
            opacity: 0.8;
            margin-top: 0.2rem;
            font-weight: 300;
            letter-spacing: 1px;
        }

        header.scrolled .logo-name {
            font-size: 1.5rem;
        }

        header.scrolled .logo-subtitle {
            font-size: 0.8rem;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        nav ul li a {
            color: white;
            text-decoration: none;
            transition: var(--transition);
            padding: 0.5rem 0;
            position: relative;
            font-weight: 500;
            font-size: 1.1rem;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        nav ul li a i {
            font-size: 1rem;
        }

        nav ul li a:hover {
            color: var(--gold-color);
        }

        nav ul li a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--gold-color);
            transition: var(--transition);
        }

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

        .nav-cta {
            background-color: var(--gold-color);
            color: var(--primary-color);
            padding: 0.7rem 1.5rem;
            border-radius: 30px;
            font-weight: 600;
            transition: var(--transition);
        }

        .nav-cta:hover {
            background-color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .nav-cta:hover::after {
            width: 0;
        }

        .menu-toggle {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
            background: none;
            border: none;
            color: white;
        }

        /* Hero Section */
        .page-hero {
            background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.9)), url('https://source.unsplash.com/random/1600x900/?history,library') no-repeat center center/cover;
            color: white;
            height: 60vh;
            display: flex;
            align-items: center;
            text-align: center;
            padding-top: 100px;
            margin-bottom: 3rem;
        }

        .page-hero-content {
            max-width: 800px;
            margin: 0 auto;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s forwards 0.5s;
        }

        .page-hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: 3.5rem;
            margin-bottom: 1rem;
            font-weight: 700;
            letter-spacing: 1px;
        }

        .page-hero p {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            font-weight: 300;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* About Section */
        .about-section {
            padding: 4rem 0;
        }

        .about-container {
            display: flex;
            gap: 4rem;
            align-items: flex-start;
        }

        .about-image {
            flex: 1;
            position: relative;
        }

        .main-photo {
            width: 100%;
            border-radius: 10px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .about-image:hover .main-photo {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }

        .experience-badge {
            position: absolute;
            bottom: -20px;
            right: -20px;
            background: var(--gold-color);
            color: var(--primary-color);
            width: 120px;
            height: 120px;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            box-shadow: var(--shadow);
            animation: pulse 2s infinite;
        }

        .experience-years {
            font-size: 2.5rem;
            font-weight: 700;
            line-height: 1;
        }

        .experience-text {
            font-size: 0.9rem;
            text-align: center;
        }

        .about-content {
            flex: 1.5;
        }

        .about-content h2 {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            position: relative;
            display: inline-block;
        }

        .about-content h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 80px;
            height: 3px;
            background-color: var(--accent-color);
        }

        .about-text {
            margin-bottom: 2rem;
            font-size: 1.1rem;
        }

        .about-highlights {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .highlight-card {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            display: flex;
            align-items: flex-start;
            gap: 1rem;
        }

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

        .highlight-icon {
            background: var(--accent-color);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .highlight-content h3 {
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        /* Education Section */
        .education-section {
            background: var(--light-color);
            padding: 4rem 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
        }

        .section-title h2 {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            color: var(--primary-color);
            display: inline-block;
            font-weight: 600;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: var(--accent-color);
        }

        .timeline {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }

        .timeline::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            width: 2px;
            background: var(--accent-color);
            transform: translateX(-50%);
        }

        .timeline-item {
            padding: 1.5rem;
            position: relative;
            width: 50%;
            opacity: 0;
            transform: translateY(30px);
            transition: var(--transition);
        }

        .timeline-item.animate {
            opacity: 1;
            transform: translateY(0);
        }

        .timeline-item:nth-child(odd) {
            left: 0;
            padding-right: 3rem;
        }

        .timeline-item:nth-child(even) {
            left: 50%;
            padding-left: 3rem;
        }

        .timeline-content {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: var(--shadow);
            position: relative;
        }

        .timeline-item:nth-child(odd) .timeline-content::after {
            content: '';
            position: absolute;
            top: 20px;
            right: -10px;
            width: 0;
            height: 0;
            border-top: 10px solid transparent;
            border-bottom: 10px solid transparent;
            border-left: 10px solid white;
        }

        .timeline-item:nth-child(even) .timeline-content::after {
            content: '';
            position: absolute;
            top: 20px;
            left: -10px;
            width: 0;
            height: 0;
            border-top: 10px solid transparent;
            border-bottom: 10px solid transparent;
            border-right: 10px solid white;
        }

        .timeline-date {
            font-weight: 600;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
        }

        .timeline-title {
            font-size: 1.2rem;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        /* Skills Section */
        .skills-section {
            padding: 4rem 0;
        }

        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .skill-category {
            background: white;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .skill-category:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        .skill-category h3 {
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            text-align: center;
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
        }

        .skill-item {
            margin-bottom: 1.5rem;
        }

        .skill-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }

        .skill-name {
            font-weight: 500;
        }

        .skill-percentage {
            color: var(--accent-color);
            font-weight: 600;
        }

        .skill-bar {
            height: 8px;
            background: #e0e0e0;
            border-radius: 4px;
            overflow: hidden;
        }

        .skill-progress {
            height: 100%;
            background: var(--accent-color);
            border-radius: 4px;
            width: 0;
            transition: width 1.5s ease;
        }

        /* Philosophy Section */
        .philosophy-section {
            background: var(--light-color);
            padding: 4rem 0;
        }

        .philosophy-content {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .philosophy-quote {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            line-height: 1.4;
            color: var(--primary-color);
            margin-bottom: 2rem;
            position: relative;
            padding: 0 2rem;
        }

        .philosophy-quote::before,
        .philosophy-quote::after {
            content: '"';
            font-size: 4rem;
            color: var(--gold-color);
            position: absolute;
            opacity: 0.3;
        }

        .philosophy-quote::before {
            top: -1rem;
            left: 0;
        }

        .philosophy-quote::after {
            bottom: -2rem;
            right: 0;
        }

        .philosophy-author {
            font-style: italic;
            color: var(--secondary-color);
        }

        /* Contact Section */
        .contact-section {
            padding: 4rem 0;
        }

        .contact-container {
            display: flex;
            gap: 3rem;
        }

        .contact-info {
            flex: 1;
        }

        .contact-info h3 {
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
        }

        .contact-details {
            margin-bottom: 2rem;
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }

        .contact-icon {
            background: var(--accent-color);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            flex-shrink: 0;
        }

        .contact-form {
            flex: 1;
            background: white;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: var(--shadow);
        }

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

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
            transition: var(--transition);
        }

        .form-control:focus {
            border-color: var(--accent-color);
            outline: none;
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }

        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }

        .btn {
            display: inline-block;
            background-color: var(--gold-color);
            color: var(--primary-color);
            padding: 0.9rem 2rem;
            border-radius: 30px;
            text-decoration: none;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .btn:hover {
            background-color: var(--accent-color);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }

        /* Footer */
        footer {
            background-color: var(--primary-color);
            color: white;
            padding: 3rem 0;
            text-align: center;
        }

        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .contact-info {
            margin-bottom: 2rem;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .social-links a {
            color: white;
            font-size: 1.5rem;
            transition: var(--transition);
        }

        .social-links a:hover {
            color: var(--accent-color);
        }

        .copyright {
            font-size: 0.9rem;
            opacity: 0.8;
        }

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

        @keyframes pulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
            100% {
                transform: scale(1);
            }
        }

        /* Responsive Styles */
        @media (max-width: 992px) {
            .about-container {
                flex-direction: column;
            }

            .about-image, .about-content {
                width: 100%;
            }

            .experience-badge {
                right: 0;
            }

            .contact-container {
                flex-direction: column;
            }
        }

        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
            }

            nav {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: rgba(44, 62, 80, 0.98);
                backdrop-filter: blur(10px);
                clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
                transition: var(--transition);
            }

            nav.active {
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            }

            nav ul {
                flex-direction: column;
                padding: 2rem 0;
                gap: 0;
            }

            nav ul li {
                margin: 0;
                text-align: center;
            }

            nav ul li a {
                display: flex;
                justify-content: center;
                padding: 1rem 0;
                font-size: 1.2rem;
            }

            .page-hero h1 {
                font-size: 2.5rem;
            }

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

            .timeline::before {
                left: 30px;
            }

            .timeline-item {
                width: 100%;
                padding-left: 70px;
                padding-right: 0;
            }

            .timeline-item:nth-child(even) {
                left: 0;
            }

            .timeline-item:nth-child(odd) .timeline-content::after,
            .timeline-item:nth-child(even) .timeline-content::after {
                left: -10px;
                border-right: 10px solid white;
                border-left: none;
            }
        }

        @media (max-width: 576px) {
            .page-hero h1 {
                font-size: 2rem;
            }

            .logo-area {
                gap: 0.7rem;
            }

            .logo-icon {
                width: 45px;
                height: 45px;
                font-size: 1.3rem;
            }

            .logo-name {
                font-size: 1.3rem;
            }

            .logo-subtitle {
                font-size: 0.7rem;
            }

            .experience-badge {
                width: 100px;
                height: 100px;
            }

            .experience-years {
                font-size: 2rem;
            }
        }

        /* Оптимизация для телефонов (дополнение к существующим медиа-запросам) */
@media (max-width: 480px) {
    /* Общие стили */
    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* Header оптимизация */
    .header-container {
        padding: 1rem 0;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        min-width: 40px;
    }

    .logo-name {
        font-size: 1.2rem;
        line-height: 1.1;
    }

    .logo-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.8px;
    }

    header.scrolled .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    header.scrolled .logo-name {
        font-size: 1.1rem;
    }

    /* Hero секция */
    .page-hero {
        height: 50vh;
        padding-top: 80px;
        margin-bottom: 2rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        padding: 0 10px;
    }

    .page-hero p {
        font-size: 1rem;
        padding: 0 15px;
        line-height: 1.4;
    }

    /* About секция */
    .about-section {
        padding: 2.5rem 0;
    }

    .about-container {
        gap: 2.5rem;
    }

    .about-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .about-content h2::after {
        width: 60px;
        bottom: -8px;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.5;
    }

    .experience-badge {
        width: 85px;
        height: 85px;
        bottom: -15px;
        right: 0;
    }

    .experience-years {
        font-size: 1.7rem;
    }

    .experience-text {
        font-size: 0.75rem;
    }

    .highlight-card {
        padding: 1.2rem;
        gap: 0.8rem;
    }

    .highlight-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        min-width: 40px;
    }

    .highlight-content h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    /* Education секция */
    .education-section {
        padding: 2.5rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title h2::after {
        width: 60px;
        bottom: -8px;
    }

    .timeline-item {
        padding: 1rem 0 1rem 50px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .timeline-date {
        font-size: 0.9rem;
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    /* Skills секция */
    .skills-section {
        padding: 2.5rem 0;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-category h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

    .skill-item {
        margin-bottom: 1.2rem;
    }

    .skill-header {
        font-size: 0.95rem;
    }

    /* Philosophy секция */
    .philosophy-section {
        padding: 2.5rem 0;
    }

    .philosophy-quote {
        font-size: 1.4rem;
        line-height: 1.3;
        padding: 0 1.5rem;
    }

    .philosophy-quote::before,
    .philosophy-quote::after {
        font-size: 3rem;
    }

    /* Contact секция */
    .contact-section {
        padding: 2.5rem 0;
    }

    .contact-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

    .form-control {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    textarea.form-control {
        min-height: 120px;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    /* Footer */
    footer {
        padding: 2rem 0;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-links a {
        font-size: 1.3rem;
    }

    /* Анимации для мобилок */
    .page-hero-content {
        animation-duration: 0.8s;
    }

    /* Улучшение отступов для timeline на мобилках */
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        top: 15px;
    }

    /* Уменьшение теней для лучшей производительности */
    .skill-category,
    .highlight-card,
    .timeline-content,
    .contact-form {
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    }

    .highlight-card:hover,
    .skill-category:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }

    /* Оптимизация текста для мобилок */
    body {
        font-size: 0.95rem;
    }

    h1, h2, h3 {
        line-height: 1.2;
    }

    /* Улучшение touch targets */
    nav ul li a,
    .btn,
    .nav-cta,
    .form-control {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    nav ul li a {
        justify-content: center;
    }

    /* Оптимизация контейнеров */
    .about-highlights,
    .skills-container {
        gap: 1rem;
    }

    /* Мелкие фиксы для выравнивания */
    .contact-item {
        align-items: flex-start;
    }

    .contact-icon {
        margin-top: 0.2rem;
    }
}

/* Дополнительная оптимизация для очень маленьких экранов */
@media (max-width: 360px) {
    .page-hero h1 {
        font-size: 1.6rem;
    }

    .logo-name {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    .about-content h2,
    .section-title h2 {
        font-size: 1.6rem;
    }

    .philosophy-quote {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .experience-badge {
        width: 75px;
        height: 75px;
    }

    .experience-years {
        font-size: 1.5rem;
    }

    .highlight-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .highlight-icon {
        margin-bottom: 0.5rem;
    }
}

/* Оптимизация для горизонтальной ориентации */
@media (max-height: 500px) and (orientation: landscape) {
    .page-hero {
        height: 70vh;
        min-height: 400px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    nav ul li a {
        padding: 0.8rem 0;
    }
}
}