/* ============ ПЕРЕМЕННЫЕ И ТЕМЫ ============ */
:root {
    --bg: #0b0d16;
    --bg-soft: #11142a;
    --card: rgba(255, 255, 255, 0.045);
    --card-border: rgba(255, 255, 255, 0.09);
    --text: #e8eaf2;
    --text-dim: #c9cedd;
    --accent: #7c3aed;
    --accent-2: #06b6d4;
    --gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --glow: rgba(124, 58, 237, 0.25);
    --font-main: 'Manrope', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 22px;
}

[data-theme="light"] {
    --bg: #f4f5fb;
    --bg-soft: #ffffff;
    --card: rgba(255, 255, 255, 0.75);
    --card-border: rgba(20, 20, 60, 0.08);
    --text: #1a1d33;
    --text-dim: #5b6178;
    --glow: rgba(124, 58, 237, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

.mono { font-family: var(--font-mono); }

::selection { background: var(--accent); color: #fff; }

/* ============ AURORA-ФОН ============ */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.aurora__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.55;
    animation: float 18s ease-in-out infinite alternate;
}

[data-theme="light"] .aurora__blob { opacity: 0.35; }

.aurora__blob--1 {
    width: 55vmax; height: 55vmax;
    background: #7c3aed;
    top: -20vmax; left: -15vmax;
}

.aurora__blob--2 {
    width: 45vmax; height: 45vmax;
    background: #06b6d4;
    bottom: -18vmax; right: -12vmax;
    animation-delay: -6s;
    animation-duration: 22s;
}

.aurora__blob--3 {
    width: 35vmax; height: 35vmax;
    background: #db2777;
    top: 40%; left: 45%;
    animation-delay: -12s;
    animation-duration: 26s;
    opacity: 0.25;
}

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(6vmax, -4vmax) scale(1.15); }
    100% { transform: translate(-5vmax, 5vmax) scale(0.95); }
}

/* Лёгкий шум поверх фона — придаёт глубину */
.noise {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ СВЕЧЕНИЕ ЗА КУРСОРОМ ============ */
.cursor-glow {
    position: fixed;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* ============ ОБЩИЕ ЭЛЕМЕНТЫ ============ */
.page {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.btn--primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
}

.btn--ghost {
    border-color: var(--card-border);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.icon { width: 18px; height: 18px; }

/* ============ ВЕРХНЯЯ ПАНЕЛЬ ============ */
.topbar {
    position: sticky;
    top: 16px;
    z-index: 10;
    max-width: 860px;
    margin: 16px auto 0;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topbar__logo { font-weight: 600; color: var(--accent-2); }

.topbar__nav {
    display: flex;
    gap: 18px;
    margin-left: auto;
}

.topbar__nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.topbar__nav a:hover { color: var(--accent-2); }

.topbar__cta { padding: 8px 14px; font-size: 0.85rem; }


/* ============ ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ ============ */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 20;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: var(--card);
    backdrop-filter: blur(18px);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.2s, border-color 0.2s;
}

.theme-toggle:hover { transform: scale(1.1); border-color: var(--accent); }
.theme-toggle .icon { width: 22px; height: 22px; }
.icon--moon { display: none; }
[data-theme="light"] .icon--moon { display: block; }
[data-theme="light"] .icon--sun { display: none; }

/* ============ HERO ============ */
.hero {
    margin-top: 8px;
    padding: 56px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Деликатная градиентная подсветка сверху карточки */
.hero::before {
    content: "";
    position: absolute;
    inset: -60% 20% auto;
    height: 140%;
    background: var(--gradient);
    filter: blur(90px);
    opacity: 0.12;
    pointer-events: none;
}

.hero__badge {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-2);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 28px;
}

.hero__avatar-wrap { position: relative; display: inline-block; }

.hero__avatar {
    width: 132px; height: 132px;
    border-radius: 50%;
    background: var(--gradient);
    display: grid;
    place-items: center;
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.15), 0 0 60px rgba(124, 58, 237, 0.4);
    animation: pulse 3.5s ease-in-out infinite;
    margin-bottom: 24px;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.15), 0 0 60px rgba(124, 58, 237, 0.35); }
    50%      { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.08), 0 0 90px rgba(6, 182, 212, 0.45); }
}

.hero__status {
    position: absolute;
    bottom: 34px; right: -4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #22c55e;
    border: 4px solid var(--bg);
    animation: blink 2s ease-in-out infinite;
}

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

.hero__name {
    font-size: clamp(1.8rem, 5vw, 2.9rem);
    font-weight: 800;
    line-height: 1.15;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
}

.hero__typing {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.hero__accent { color: var(--accent); margin: 0 6px; }

.typed { color: var(--text); }

.caret {
    display: inline-block;
    width: 9px; height: 1.1em;
    background: var(--accent-2);
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

.hero__location { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 28px; }

.hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ============ СЕКЦИИ ============ */
.section { scroll-margin-top: 90px; }

.section__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section__num { color: var(--accent-2); font-size: 1.1rem; }

.card--wide { padding: 32px; }

/* ---- Обо мне ---- */
.about__text {
    color: var(--text-dim);
    line-height: 1.75;
    margin-bottom: 12px;
    display: inline;
}

.about__text + .about__text::before { content: " "; }

.about__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.fact {
    text-align: center;
    padding: 18px 12px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(124, 58, 237, 0.05);
    transition: transform 0.2s, border-color 0.2s;
}

.fact:hover { transform: translateY(-3px); border-color: var(--accent); }

.fact__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fact__label {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ---- Проекты ---- */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.project {
    display: flex;
    flex-direction: column;
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.18);
}

.project__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.project__folder {
    color: var(--accent-2);
}

.project__folder svg { width: 26px; height: 26px; }

.project__meta { font-size: 0.75rem; color: var(--text-dim); }

.project__title { font-size: 1.12rem; font-weight: 800; margin-bottom: 10px; }

.project__desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.project__stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }

.chip {
    font-size: 0.72rem;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    color: var(--accent-2);
    background: rgba(6, 182, 212, 0.06);
}

.projects__more { text-align: center; margin-top: 24px; }

/* ---- Аватар с фото ---- */
.hero__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ---- Навыки ---- */
.skills { display: flex; flex-direction: column; gap: 22px; }

/* ============ НОВЫЕ БЛОКИ ГЛАВНОЙ ============ */
.hero__subrole {
    color: var(--text-dim);
    font-size: 1.02rem;
    max-width: 52ch;
    margin: 10px auto 0;
}

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

.service {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.18);
}
.service__title { font-size: 1.12rem; font-weight: 800; }
.service__desc { color: var(--text-dim); font-size: 0.95rem; }

.service__points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 2px;
}
.service__points li {
    position: relative;
    padding-left: 18px;
    font-size: 0.92rem;
    color: var(--text-dim);
}
.service__points li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-2);
}

.skills__group { display: flex; flex-direction: column; gap: 14px; }
.skills__cat {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.project__result {
    margin: 2px 0 14px;
    padding: 8px 12px;
    border-left: 3px solid var(--accent-2);
    background: var(--bg-soft);
    border-radius: 0 10px 10px 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-dim);
}

.project--featured { border-color: var(--accent); }

.skill__head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;
    font-size: 0.92rem;
    font-weight: 700;
}

.skill__pct { color: var(--accent-2); font-size: 0.82rem; }

.skill__bar {
    height: 9px;
    border-radius: 999px;
    background: var(--card-border);
    overflow: hidden;
}

.skill__fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--gradient);
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

/* ---- Контакты ---- */
.contact__text { color: var(--text-dim); line-height: 1.7; margin-bottom: 24px; }

.contact__links { display: flex; flex-direction: column; gap: 12px; }

.contact__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

/* ============ БЛОГ ============ */
/* Страницы блога собраны из тех же классов, что и главная:
   hero (hero__badge / hero__name / hero__location), section__title,
   projects + card project, chip. Здесь только мелкие доводки. */
.blog-hero { padding: 52px 32px 48px; }

/* — плотная подложка карточек поверх aurora-фона: текст всегда читается — */
.blog-hero,
.post,
.article__body,
.article__toc,
.article__project {
    background: rgba(16, 19, 35, 0.82);
}

[data-theme="light"] .blog-hero,
[data-theme="light"] .post,
[data-theme="light"] .article__body,
[data-theme="light"] .article__toc,
[data-theme="light"] .article__project {
    background: rgba(255, 255, 255, 0.92);
}

.post__empty { color: var(--text-dim); }

/* ============ СТАТЬЯ ============ */
.article {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 8px;
}

.article__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem; /* как hero__location */
    width: fit-content;
    transition: color 0.2s, gap 0.2s;
}

.article__back:hover { color: var(--accent-2); gap: 10px; }

/* Футер статьи — как hero__actions на главной */
.article__footer { display: flex; gap: 14px; flex-wrap: wrap; }

/* Шапка статьи — точная копия hero-блока главной: по центру, те же отступы */
.article__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    padding: 48px 32px 44px;
    background: rgba(16, 19, 35, 0.82);
}

[data-theme="light"] .article__head { background: rgba(255, 255, 255, 0.92); }

.article__head .article__title {
    margin: 20px 0 12px;
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
}

.article__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 20px; /* как hero__location */
}

.article__tags { justify-content: center; margin-bottom: 26px; }

.article__project {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 24px;
    overflow: hidden;
}

.article__project::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gradient);
}

.article__project-name { font-size: 0.85rem; }

.article__toc {
    padding: 20px 24px; /* как card--wide */
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article__toc-title {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

/* Каждая ссылка — отдельная строка-плашка (display:block — не склеятся ни при каком раскладе) */
.article__toc a {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    padding: 7px 12px;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
}

.article__toc a:hover {
    color: var(--accent-2);
    background: rgba(124, 58, 237, 0.10);
    padding-left: 18px;
}

.article__toc .toc-h3 { padding-left: 30px; font-size: 0.84rem; color: var(--text-dim); }
.article__toc .toc-h3:hover { padding-left: 36px; color: var(--accent-2); }

/* Нумерация пунктов — как "01."/"02." у заголовков секций главной */
.article__toc .toc-num {
    color: var(--accent-2);
    font-size: 0.78rem;
    margin-right: 6px;
}

/* --- текст статьи: та же card--wide, что и секции «Обо мне»/«Навыки» --- */
.article__body {
    padding: clamp(24px, 5vw, 32px);
    font-size: 1rem;
    line-height: 1.75; /* как about__text */
    color: var(--text);
    overflow-wrap: break-word;
}

/* Подзаголовки — в стиле section__title главной */
.article__body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 1.9em 0 0.7em;
    scroll-margin-top: 90px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article__body h2::before {
    content: "##";
    font-family: var(--font-mono);
    color: var(--accent-2);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Подподзаголовки — как project__title */
.article__body h3 {
    font-size: 1.12rem;
    font-weight: 800;
    margin: 1.6em 0 0.5em;
    scroll-margin-top: 90px;
}

.article__body p { margin-bottom: 1.15em; }

.article__body ul, .article__body ol { margin: 0 0 1.15em 1.4em; }
.article__body li { margin-bottom: 0.5em; }

.article__body a {
    color: var(--accent-2);
    text-decoration: underline;
    text-decoration-color: rgba(6, 182, 212, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.article__body a:hover { text-decoration-color: var(--accent-2); }

.article__body blockquote {
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent);
    padding: 14px 22px;
    margin: 1.4em 0;
    color: var(--text-dim);
    background: rgba(124, 58, 237, 0.06);
    border-radius: 0 16px 16px 0;
}

.article__body img {
    max-width: 100%;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    margin: 1.2em 0 1.4em;
}

.article__body hr { border: none; border-top: 1px solid var(--card-border); margin: 2.4em 0; }

.article__body > *:first-child { margin-top: 0; }
.article__body > *:last-child { margin-bottom: 0; }

/* --- инлайн-код --- */
.article__body code:not(pre code) {
    font-family: var(--font-mono);
    font-size: 0.86em;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 2px 7px;
    border-radius: 7px;
}

/* --- код-блоки с плашкой и кнопкой --- */
.codewrap {
    margin: 1.6em 0;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    background: #0c0f1e;
}

[data-theme="light"] .codewrap { background: #161a2e; }

.codewrap__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    font-size: 0.72rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
}

.codewrap__copy {
    border: none;
    background: none;
    color: var(--accent-2);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 2px 6px;
    transition: opacity 0.2s;
}

.codewrap__copy:hover { opacity: 0.75; }

.codewrap pre { padding: 16px 18px; overflow-x: auto; }

.codewrap code {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.65;
    color: #dbe2f0;
}

.tok-kw  { color: #c792ea; }
.tok-str { color: #a5e075; }
.tok-com { color: #7d8499; font-style: italic; }
.tok-num { color: #f78c6c; }

.article__footer { margin-top: 28px; }

@media (max-width: 640px) {
    .blog-hero { padding: 40px 20px; }
    .article__body { font-size: 0.98rem; }
    .codewrap pre { padding: 14px 16px; }
}

.contact__link:hover {
    border-color: var(--accent);
    background: rgba(124, 58, 237, 0.06);
    transform: translateX(6px);
}

.contact__arrow { color: var(--accent-2); transition: transform 0.2s; }
.contact__link:hover .contact__arrow { transform: translateX(4px); }

/* ---- Кнопка копирования email ---- */
button.contact__link {
    width: 100%;
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    background: transparent;   /* сброс белого фона button по умолчанию */
    text-align: left;
    color: var(--text);
}

.contact__link--copy {
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.contact__icon { color: var(--accent-2); }

.contact__hint {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-dim);
    opacity: 0.75;
}

.contact__link--copy .contact__arrow { font-size: 0.9rem; }

.contact__link--copy.copied {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.contact__link--copy.copied .contact__arrow { color: #22c55e; }

@media (max-width: 640px) {
    .contact__hint { display: none; }
}

/* ============ ФУТЕР ============ */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.footer__dim { opacity: 0.6; }

/* ============ SCROLL-REVEAL ============ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width: 640px) {
    .topbar { gap: 10px; padding: 10px 14px; }
    .topbar__nav { gap: 10px; }
    .topbar__nav a { font-size: 0.8rem; }
    .topbar__cta span { display: none; }
    .card--wide { padding: 24px 18px; }
    .service { padding: 20px 16px; }
    .hero { padding: 40px 20px; }
    .cursor-glow { display: none; }
}

/* Уважение к reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

