:root {
    --primary-color: #f20c3c;
    --secondary-color: #ff3355;
    --background: #000000;
    --surface: #0c0c0c;
    --surface-alt: #141414;
    --on-surface: #ffffff;
    --on-surface-muted: #888888;
    --accent: #f20c3c;
    --border-color: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--background);
    color: var(--on-surface);
    line-height: 1.3;
    height: 100vh;
    overflow: hidden;
    cursor: none;
    padding: 2rem;
}

.container {
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: auto;
    max-height: 80vh;
}

.about-section, .projects-section {
    display: flex;
    flex-direction: column;
}

.bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
}

.card {
    background-color: var(--surface);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: box-shadow 0.2s ease;
    overflow: auto;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

h1, h2 {
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.25rem;
    position: relative;
    display: inline-block;
    text-transform: lowercase;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background-color: var(--primary-color);
}

h3 {
    color: var(--on-surface);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
    background-color: transparent;
}

.icon img {
    width: 24px;
    height: 24px;
}

.title {
    display: flex;
    flex-direction: column;
}

.title h1 {
    font-size: 1.4rem;
    margin: 0;
}

.title h3 {
    font-size: 0.9rem;
    color: var(--on-surface-muted);
    margin: 0.25rem 0 0 0;
    font-weight: 400;
}

.content {
    margin-top: 0;
}

.content p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: var(--on-surface-muted);
}

.info {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
}

.info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--on-surface);
}

.info img {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: rgba(242, 12, 60, 0.08);
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid rgba(242, 12, 60, 0.1);
}

.button img {
    width: 18px;
    height: 18px;
    filter: invert(14%) sepia(97%) saturate(5375%) hue-rotate(342deg) brightness(92%) contrast(101%);
}

.button:hover {
    background-color: var(--primary-color);
    color: var(--on-surface);
    border-color: var(--primary-color);
}

.button:hover img {
    filter: brightness(0) invert(1);
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    overflow-y: auto;
    max-height: 100%;
}

.project {
    background-color: var(--surface-alt);
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    height: 100%;
}

.project-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-icon {
    width: 36px;
    height: 36px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.project-icon img {
    width: 26px;
    height: 26px;
    filter: invert(14%) sepia(97%) saturate(5375%) hue-rotate(342deg) brightness(92%) contrast(101%);
}

.project-info {
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--primary-color);
}

.project-info p {
    font-size: 0.85rem;
    color: var(--on-surface-muted);
    margin-bottom: 0;
}

.project .button {
    width: 100%;
    margin-top: auto;
    font-size: 0.85rem;
    background-color: rgba(242, 12, 60, 0.05);
    padding: 0.5rem 0;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--surface);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.social-card h2 {
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    background-color: transparent;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease;
    cursor: none;
}

.social-icon:hover {
    opacity: 0.7;
}

.social-icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

/* Стили для кастомного курсора */
#custom-cursor {
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    margin: -6px 0 0 -6px; /* Центрирование курсора */
    transition: width 0.15s, height 0.15s, background-color 0.15s, transform 0.08s;
    mix-blend-mode: difference;
}

#custom-cursor.active {
    transform: scale(0.8);
    background-color: var(--primary-color);
}

#custom-cursor.hover {
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    background-color: rgba(242, 12, 60, 0.2);
}

/* Стиль для выделения текста */
::selection {
    background-color: rgba(242, 12, 60, 0.3);
    color: var(--on-surface);
}

/* Стили для скроллбара */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Адаптивность для планшетов */
@media (max-width: 1200px) {
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .top-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        padding: 1rem;
    }
    
    .container {
        height: auto;
        overflow-y: visible;
        display: flex;
        flex-direction: column;
    }
    
    .top-section {
        max-height: none;
        height: auto;
    }
    
    .card {
        margin-bottom: 1rem;
        height: auto;
        overflow: visible;
    }
    
    .projects {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        max-height: none;
        overflow-y: visible;
    }
    
    .project {
        padding: 1rem;
        margin-bottom: 0.5rem;
        min-height: auto;
    }
    
    .project-header {
        margin-bottom: 0.75rem;
    }
    
    .project-info h3 {
        font-size: 0.95rem;
    }
    
    .project-info p {
        font-size: 0.8rem;
    }
    
    .project .button {
        padding: 0.4rem 0;
        font-size: 0.8rem;
    }
}

.content-card {
    background-color: var(--surface-alt);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.main-info .content {
    margin-top: 0;
}

/* Добавляем стили для блога */
.blog-preview {
    background-color: var(--surface-alt);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    margin: 1rem 0;
    max-height: 200px;
    overflow-y: auto;
    position: relative;
    width: 100%;
}

.blog-preview h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-transform: lowercase;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-post-link {
    color: var(--on-surface);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-icon img {
    width: 20px;
    height: 20px;
    filter: invert(14%) sepia(97%) saturate(5375%) hue-rotate(342deg) brightness(92%) contrast(101%);
}

.blog-post-link:hover {
    background-color: rgba(242, 12, 60, 0.05);
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
}

/* Стили для кастомной прокрутки */
.blog-preview::-webkit-scrollbar {
    width: 4px;
}

.blog-preview::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 3px;
}

.blog-preview::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.blog-preview::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Стиль для кастомного курсора при нажатии */
body:active #custom-cursor {
    transform: scale(0.8);
    background-color: var(--primary-color);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .blog-preview {
        max-height: 180px;
    }
    
    .blog-post-link {
        font-size: 0.8rem;
    }
}

/* Стили для юридических страниц */
.legal-card {
    background-color: var(--surface);
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-y: auto;
    max-height: calc(100vh - 12rem);
}

.legal-card .section {
    margin-bottom: 2rem;
}

.legal-card h2 {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
}

.legal-card p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--on-surface);
    line-height: 1.6;
}

.legal-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-card li {
    margin-bottom: 0.5rem;
    color: var(--on-surface);
    font-size: 0.95rem;
}

.footer {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: var(--on-surface-muted);
    font-size: 0.9rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    margin: 0.5rem;
    background-color: rgba(242, 12, 60, 0.08);
    border: 1px solid rgba(242, 12, 60, 0.1);
    font-weight: 500;
}

.footer a:hover {
    background-color: var(--primary-color);
    color: var(--on-surface);
    border-color: var(--primary-color);
}

.footer p {
    margin-bottom: 1rem;
}

.footer div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Стиль для email-ссылки наподобие блока кода */
.legal-card a[href^="mailto"] {
    background-color: #1a1a1a;
    color: var(--primary-color);
    font-weight: bold;
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.legal-card a[href^="mailto"]:hover {
    background-color: var(--primary-color);
    color: var(--on-surface);
}

/* Стили для скроллбара в .legal-card */
.legal-card::-webkit-scrollbar {
    width: 4px;
}

.legal-card::-webkit-scrollbar-track {
    background: var(--surface-alt);
    border-radius: 3px;
}

.legal-card::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.legal-card::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Специальные стили для контейнера на юридических страницах */
.container.legal-container {
    height: 100vh;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .legal-card {
        padding: 1.25rem;
        max-height: calc(100vh - 8rem);
    }
    
    .legal-card .section {
        margin-bottom: 1.5rem;
    }
    
    .footer {
        margin-top: 1rem;
    }
    
    .footer div {
        flex-direction: column;
        align-items: center;
    }
    
    .footer a {
        width: 100%;
        max-width: 250px;
    }
} 