@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

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

:root {
    --bg: #ffffff;
    --text: #0a0a0a;
    --text-secondary: #666666;
    --accent: #ff006e;
    --border: #e0e0e0;
    --card-bg: #f8f8f8;
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --text: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #ff006e;
    --border: #2a2a2a;
    --card-bg: #151515;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Курсор */
.cursor,
.cursor-follower {
    display: none;
}

/* Шум */
/* Фоновый шум */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' /%3E%3C/svg%3E");
}

/* Фоновая змейка */
#backgroundSnake {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.4;
}

[data-theme="dark"] #backgroundSnake {
    opacity: 0.5;
}

/* Вертикальная навигация */
.vertical-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-dot:hover,
.nav-dot.active {
    border-color: var(--accent);
    background: var(--accent);
    transform: scale(1.3);
}

.nav-label {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--border);
    pointer-events: none;
}

.nav-dot:hover .nav-label {
    opacity: 1;
}

.nav-dot::before {
    content: attr(data-section);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Space Mono', monospace;
}

.nav-dot:hover::before {
    opacity: 1;
    left: 130px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .header {
    background: rgba(10, 10, 10, 0.8);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    font-family: 'Space Mono', monospace;
}

.logo__bracket {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--text);
}

.nav__number {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--accent);
}

.header__right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: rotate(180deg);
}

.chat-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text);
}

.chat-toggle:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg);
}

.chat-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: opacity 0.3s ease;
    color: var(--text);
}

.theme-icon--moon {
    opacity: 0;
}

[data-theme="dark"] .theme-icon--sun {
    opacity: 0;
}

[data-theme="dark"] .theme-icon--moon {
    opacity: 1;
}

/* Chat Panel */
.chat-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

[data-theme="dark"] .chat-panel {
    background: #0f0f0f;
    border-left: 1px solid #555;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.chat-panel.active {
    right: 0;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .chat-header {
    border-bottom: 1px solid #555;
    background: #1a1a1a;
}

.chat-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.chat-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text);
}

.chat-close:hover {
    background: var(--card-bg);
}

.chat-close svg {
    width: 20px;
    height: 20px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.5;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-message--bot {
    background: var(--card-bg);
    align-self: flex-start;
}

[data-theme="dark"] .chat-message--bot {
    background: #1a1a1a;
    border: 1px solid #555;
}

.chat-message--user {
    background: var(--accent);
    color: white;
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-message--bot .chat-avatar {
    border: 2px solid var(--accent);
}

.chat-message--user .chat-avatar {
    border: 2px solid white;
}

.chat-message p {
    margin: 0;
    font-size: 14px;
    flex: 1;
}

.chat-form {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-initial-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-name,
.chat-phone {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease;
}

[data-theme="dark"] .chat-name,
[data-theme="dark"] .chat-phone {
    background: #0f0f0f;
    border: 1px solid #555;
    color: #e0e0e0;
}

[data-theme="dark"] .chat-name::placeholder,
[data-theme="dark"] .chat-phone::placeholder {
    color: #888;
}

.chat-name:focus,
.chat-phone:focus {
    border-color: var(--accent);
}

.chat-input {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 60px;
}

[data-theme="dark"] .chat-input {
    background: #0f0f0f;
    border: 1px solid #555;
    color: #e0e0e0;
}

[data-theme="dark"] .chat-input::placeholder {
    color: #888;
}

.chat-input:focus {
    border-color: var(--accent);
}

.chat-send {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.chat-send:hover {
    transform: scale(1.1);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-send svg {
    width: 20px;
    height: 20px;
}

/* Hero */
.hero {
    min-height: 100vh;
    padding: 150px 60px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero__label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero__line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.hero__title {
    font-size: clamp(50px, 10vw, 110px);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.05),
        2px 2px 0 rgba(0, 0, 0, 0.05);
}

.title-animate {
    display: inline-block;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.title-animate:hover {
    color: var(--accent);
}

.hero__title-line {
    display: block;
}

.word {
    display: inline-block;
    margin-right: 20px;
}

.hero__accent {
    color: var(--accent);
    font-style: italic;
}

.hero__desc {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 500px;
}

.hero__skills {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.hero__skill {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.hero__skill-number {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--accent);
}

.hero__skill-text {
    font-size: 16px;
    font-weight: 600;
}

.hero__skill-line {
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.hero__skill:hover .hero__skill-line {
    transform: scaleX(1);
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta__arrow {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.hero__cta:hover .cta__arrow {
    transform: translateX(5px);
}

/* Hero Visual - Photo */
.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-orbit {
    position: absolute;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.3;
}

.photo-orbit--1 {
    width: 420px;
    height: 420px;
    animation: orbitRotate 15s linear infinite;
}

.photo-orbit--2 {
    width: 460px;
    height: 460px;
    animation: orbitRotate 20s linear infinite reverse;
}

.photo-orbit--3 {
    width: 500px;
    height: 500px;
    animation: orbitRotate 25s linear infinite;
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.photo-orbit--1::before,
.photo-orbit--2::before,
.photo-orbit--3::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent);
}

.photo-orbit--1::before {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.photo-orbit--2::before {
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
}

.photo-orbit--3::before {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.photo-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-wrapper:hover .hero-photo {
    transform: scale(1.1);
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.scroll__line {
    width: 1px;
    height: 60px;
    background: var(--text-secondary);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); }
}

/* Marquee */
.marquee {
    padding: 32px 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee__track {
    display: flex;
    width: fit-content;
    animation: marquee 30s linear infinite;
}

.marquee__content {
    display: flex;
    gap: 48px;
    padding-right: 48px;
}

.marquee__content span {
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.marquee__star {
    color: var(--accent);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Work Section */
.work {
    padding: 120px 60px;
}

.section__header {
    display: flex;
    align-items: baseline;
    gap: 30px;
    margin-bottom: 80px;
}

.section__number {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--accent);
}

.section__title {
    font-size: clamp(50px, 8vw, 100px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.03),
        2px 2px 0 rgba(0, 0, 0, 0.03);
}

.work__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.project {
    perspective: 2000px;
    cursor: pointer;
    min-height: 300px;
}

.project:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 620px;
}

.project:nth-child(2) {
    grid-column: span 5;
    grid-row: span 1;
}

.project:nth-child(3) {
    grid-column: span 5;
    grid-row: span 1;
}

.project:nth-child(4) {
    grid-column: span 7;
    grid-row: span 1;
}

.work__more-card {
    grid-column: span 5;
    grid-row: span 1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.work__more-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.work__more-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text);
}

.work__more-text {
    font-size: 24px;
    font-weight: 700;
}

.work__more-arrow {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.work__more-card:hover .work__more-arrow {
    background: var(--accent);
    color: var(--bg);
    transform: rotate(45deg);
}

.project-3d .project__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-3d:hover .project__inner {
    transform: rotateY(180deg);
}

.project__front,
.project__back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.project__front {
    background: var(--card-bg);
}

.project__back {
    background: var(--text);
    color: var(--bg);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.project__image {
    width: 100%;
    height: 70%;
    position: relative;
    overflow: hidden;
}

.project__bg {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: transform 0.5s ease;
}

.project:hover .project__bg {
    transform: scale(1.1);
}

.project__year {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.project__info {
    padding: 30px;
}

.project__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.project__category {
    font-size: 14px;
    color: var(--text-secondary);
}

.project__details h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.project__details p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.project__tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.project__tech span {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
}

.project__link {
    color: var(--bg);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s ease;
}

.project__link:hover {
    gap: 15px;
}

.work__more {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    border: 2px solid var(--text);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.work__more:hover {
    background: var(--text);
    color: var(--bg);
}

.arrow-circle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Services */
.services {
    padding: 120px 60px;
    background: var(--card-bg);
}

.services__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 40px;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service:hover {
    padding-left: 30px;
}

.service__number {
    font-family: 'Space Mono', monospace;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
}

.service__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service__desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.service__tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.service__tags span {
    padding: 8px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
}

/* Contact */
.contact {
    padding: 120px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.contact__content {
    z-index: 2;
}

.contact__info {
    margin-top: 20px;
}

.contact__title {
    font-size: clamp(50px, 8vw, 90px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.contact__accent {
    color: var(--accent);
    font-style: italic;
}

.contact__email {
    font-size: 32px;
    color: var(--text);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.contact__email:hover {
    color: var(--accent);
}

.contact__links {
    display: flex;
    gap: 20px;
}

.contact__link {
    padding: 12px 30px;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact__link:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* Contact Form */
.contact__form-wrapper {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    z-index: 2;
}

[data-theme="dark"] .contact__form-wrapper {
    background: #1a1a1a;
    border: 1px solid #555;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__input,
.form__select,
.form__textarea {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .form__input,
[data-theme="dark"] .form__select,
[data-theme="dark"] .form__textarea {
    background: #0f0f0f;
    border: 1px solid #555;
    color: #e0e0e0;
}

[data-theme="dark"] .form__input::placeholder,
[data-theme="dark"] .form__select::placeholder,
[data-theme="dark"] .form__textarea::placeholder {
    color: #888;
}

[data-theme="dark"] .form__input:hover,
[data-theme="dark"] .form__select:hover,
[data-theme="dark"] .form__textarea:hover {
    border-color: #777;
    background: #1a1a1a;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1);
}

[data-theme="dark"] .form__input:focus,
[data-theme="dark"] .form__select:focus,
[data-theme="dark"] .form__textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.2);
}

.form__select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form__textarea {
    resize: vertical;
    min-height: 100px;
}

.form__submit {
    padding: 16px 32px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.form__submit:hover {
    background: #e6006a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.form__submit svg {
    width: 20px;
    height: 20px;
}

.contact__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__circle {
    width: 400px;
    height: 400px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: relative;
    animation: circleRotate 10s linear infinite;
}

@keyframes circleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact__circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
}

/* Footer */
.footer {
    padding: 40px 60px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer__left,
.footer__right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer__divider {
    color: var(--accent);
}

.footer__heart {
    color: var(--accent);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .vertical-nav {
        right: 20px;
        gap: 20px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        padding: 100px 40px 60px;
    }
    
    .hero__visual {
        order: -1;
        margin-bottom: 40px;
    }
    
    .photo-container {
        width: 300px;
        height: 300px;
    }
    
    .work__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .project--large {
        grid-column: span 2;
    }
    
    .work__more-card {
        grid-column: span 2;
    }
    
    .contact {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact__form-wrapper {
        order: 2;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    border-color: var(--accent);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-menu__link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 32px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.mobile-menu__link:hover {
    color: var(--accent);
}

.mobile-menu__number {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--accent);
}

@media (max-width: 768px) {
    .vertical-nav {
        display: none;
    }
    
    .header {
        padding: 15px 20px;
        height: auto;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .nav {
        display: none;
    }
    
    .header__status {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero__visual {
        display: none;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero__title {
        font-size: clamp(40px, 12vw, 60px);
    }
    
    .hero__desc {
        font-size: 16px;
    }
    
    .hero__skills {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hero__skill {
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
    }
    
    .photo-container {
        width: 250px;
        height: 250px;
    }
    
    .marquee__content span {
        font-size: 20px;
    }
    
    .section__title {
        font-size: clamp(40px, 10vw, 60px);
    }
    
    .work,
    .services,
    .contact {
        padding: 60px 20px;
    }
    
    .work__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 300px !important;
    }
    
    .project:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 300px;
    }
    
    .work__more-card {
        grid-column: span 1;
    }
    
    .services__list {
        gap: 20px;
    }
    
    .service {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 30px 20px;
    }
    
    .service__number {
        font-size: 40px;
    }
    
    .contact__title {
        font-size: clamp(35px, 10vw, 50px);
        margin-bottom: 30px;
    }
    
    .contact__email {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .contact__links {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .contact__link {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .contact__form-wrapper {
        padding: 30px 20px;
    }
    
    .contact__visual {
        display: none;
    }
    
    .footer {
        padding: 30px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .chat-panel {
        width: 100%;
        right: -100%;
        border-radius: 0;
    }
    
    .chat-panel.active {
        right: 0;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 36px;
    }
    
    .hero__skills {
        flex-direction: column;
    }
    
    .hero__skill {
        flex: 1 1 100%;
    }
    
    .photo-container {
        width: 200px;
        height: 200px;
    }
    
    .section__title {
        font-size: 36px;
    }
    
    .contact__title {
        font-size: 32px;
    }
    
    .form__input,
    .form__select,
    .form__textarea {
        font-size: 14px;
        padding: 12px 16px;
    }
}
