/* Основные стили для страницы borisov.html */
:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #1a1a1a;
    --accent: #4361ee;
    --accent-hover: #3a56d4;
    --text: #f8f9fa;
    --text-light: #e9ecef;
    --text-muted: #adb5bd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* Герой секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

/* .hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    z-index: -1;
} */

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, var(--text-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--text-muted);
    /* margin-bottom: 1rem; */
}

.hero-text p {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-image img.profile-image {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 10px solid var(--card-bg);
    transition: transform 0.5s ease;
    margin-left:20%;
}

.menu-profile-image {
    display: none;
}

.hero-image:hover img.profile-image {
    transform: scale(1.02);
}

/* Секции */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--text-light);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
    border-radius: 3px;
}

.section-subtitle {
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Обо мне */
.about {
    background-color:#101012;
    border-radius: 20px;
    margin: 0 5%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-left:20%;
}

/* Услуги */
/* .services {
    background-color:#101012;
    border-radius: 20px;
    margin: 0 5%;
} */

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

.service-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(67, 97, 238, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Образование */
.education {
    background-color:#101012;
    border-radius: 20px;
    margin: 0 5%;
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
    text-align: left;
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-content h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--text-muted);
}

.timeline-year {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--accent);
    color: white;
    font-weight: bold;
    border-radius: 20px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-year {
    right: calc(100% + 2rem);
}

.timeline-item:nth-child(even) .timeline-year {
    left: calc(100% + 2rem);
}

.timeline-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 50%;
    margin-left: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(67, 97, 238, 0.2);
    z-index: 1;
}

/* Опыт работы */
.work-experience-list {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.work-experience-list li {
    background-color: var(--card-bg);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    color: var(--text);
    font-size: 1.1rem;
    list-style: none;
    position: relative;
}

/* Контакты */
.contact {
    background-color:#101012;
    border-radius: 20px;
    margin: 0 5%;
    margin-bottom: 10%;
}

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

.contact-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.contact-info {
    color: var(--text-muted);
    line-height: 1.6;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* Плавающая кнопка */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--accent-hover);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Адаптация для мобильных устройств */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-image {
        order: -1;
        text-align: center;
    }
    
    .hero-image img.profile-image {
        margin-left: 0;
        max-width: 400px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image img {
        margin-left: 0;
        margin-top: 2rem;
    }

    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: calc(50px + 2rem) !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        left: 0;
        right: auto;
        transform: translateX(-50%) translateY(-50%);
    }
    
    .timeline-dot {
        left: 30px;
        margin-left: 0;
        display: none;
    }

    .timeline-year {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 5% 2rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
        justify-content: center;
    }
    
    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: calc(50px + 2rem) !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        left: 0;
        right: auto;
        transform: translateX(-50%) translateY(-50%);
    }
    
    .timeline-dot {
        left: 30px;
        margin-left: 0;
        display: none;
    }

    .timeline-year {
        width: 50px;
        margin-left: 7%;
    }
    
    .hero-image img.profile-image {
        max-width: 300px;
        border-width: 5px;
    }
    
    .about, .education, .contact, .services {
        margin: 0 3%;
        border-radius: 15px;
    }
    
    .work-experience-list {
        padding-left: 1rem;
    }
    
    .work-experience-list li {
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .contact-card {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 3%;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-year {
        width: 50px;
        margin-left: 9%;
        height: 30px;
        line-height: 30px;
        font-size: 0.9rem;
    }

    .timeline-dot {
        display: none;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    .hero-image {
        display: none;
    }
    
    .menu-profile-image {
        display: block;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        object-fit: cover;
        border: 5px solid var(--card-bg);
        margin: 0 auto 2rem;
    }
    
    .hero-text .hero-image {
        display: block;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-icon,
    .contact-icon {
        font-size: 2rem;
    }
    
    .service-title,
    .contact-title {
        font-size: 1.3rem;
    }
    
    .menu-profile-image {
        width: 180px;
        height: 180px;
    }
}

/* Модальное окно выбора записи */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(26, 26, 26, 0.8);
}

.modal-header h2 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-body {
    padding: 1.5rem;
}

.booking-option {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.booking-option:last-child {
    margin-bottom: 0;
}

.booking-option:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(67, 97, 238, 0.3);
    transform: translateY(-2px);
}

.booking-option:active {
    transform: translateY(0);
}

.booking-option[data-type="website"]:hover {
    border-color: rgba(67, 97, 238, 0.5);
}

.booking-option[data-type="telegram"]:hover {
    border-color: rgba(0, 136, 204, 0.5);
}

.option-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.booking-option[data-type="website"] .option-icon {
    color: var(--accent);
}

.booking-option[data-type="telegram"] .option-icon {
    color: #0088cc;
}

.option-title {
    color: var(--text-light);
    font-size: 1.3rem;
    margin: 0;
}

.option-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.option-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.3s ease;
}

.booking-option:hover .option-arrow {
    opacity: 1;
    right: 1.2rem;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .modal-header {
        padding: 1.2rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1.2rem;
    }
    
    .booking-option {
        padding: 1.2rem;
    }
    
    .option-title {
        font-size: 1.1rem;
    }
    
    .option-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 95%;
    }
    
    .modal-header {
        padding: 1rem 1.2rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .booking-option {
        padding: 1rem;
    }
    
    .option-icon {
        font-size: 1.8rem;
    }
}