:root {
    --graphite: #2B2A29;
    --black: #171716;
    --near-black: #111111;
    --red: #DC3B23;
    --orange: #EF7F1A;
    --coral: #EC6955;
    --terracotta: #C64522;
    --paper: #FAF9F7;
    --off-white: #F5F3F0;
    --line: rgba(43, 42, 41, .10);
    --line-dark: rgba(255, 255, 255, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--graphite);
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a, button, input, select, textarea, .filter-tab, .process-label {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--graphite); color: white; padding: 12px 18px; border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .04em;
    transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

::selection { background: var(--graphite); color: white; }

a { color: inherit; text-decoration: none; }

.mono { font-family: 'IBM Plex Mono', monospace; }

.label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    display: inline-block;
    position: relative;
}
.dot::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 1px solid var(--orange); opacity: 0; animation: dotPulse 2.4s ease-out infinite;
}
@keyframes dotPulse {
    0% { transform: scale(.6); opacity: .55; }
    100% { transform: scale(2.1); opacity: 0; }
}

.h1 {
    font-size: clamp(40px, 5.4vw, 80px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 700;
}

.h2 {
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 700;
}

.body-large {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.55;
}

.btn {
    height: 56px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: transform .3s cubic-bezier(.16,1,.3,1), background .3s ease, border-color .3s ease, color .3s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--graphite); color: white; }
.btn-primary:hover { background: var(--red); }

.btn:disabled, .btn[disabled] {
    opacity: .35; cursor: not-allowed; pointer-events: none;
}
.btn:disabled:hover, .btn[disabled]:hover { transform: none; }

.btn-white { background: white; color: var(--graphite); }
.btn-white:hover { background: var(--orange); color: white; }

.btn-secondary { border: 1px solid rgba(43,42,41,.2); background: transparent; }
.btn-secondary:hover { border-color: var(--graphite); background: white; }

.btn-secondary-light { border: 1px solid rgba(255,255,255,.24); background: transparent; color: white; }
.btn-secondary-light:hover { border-color: white; background: rgba(255,255,255,.06); }

.hairline { border-color: var(--line); }
.hairline-dark { border-color: var(--line-dark); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

/* HEADER */
header { height: 80px; }
#mobileMenuButton[aria-expanded="true"] .menu-line:first-child { transform: translateY(3.5px) rotate(45deg); }
#mobileMenuButton[aria-expanded="true"] .menu-line:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.header-link { position: relative; }
.header-link::after {
    content: ''; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px;
    background: var(--red); transition: width .25s ease;
}
.header-link:hover::after { width: 100%; }

/* ===== HEADER CONTACT (НОВОЕ) ===== */
.header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: .04em;
    white-space: nowrap;
}
.header-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--graphite);
    transition: color .25s ease;
}
.header-contact a:hover {
    color: var(--red);
}
.header-contact svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.header-contact-separator {
    width: 1px;
    height: 18px;
    background: var(--line);
}

/* ===== CONTACT INFO BLOCK (НОВОЕ) ===== */
.contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.contact-info-row:last-child {
    border-bottom: none;
}
.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-icon svg {
    width: 18px;
    height: 18px;
}
.contact-info-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
    margin-bottom: 4px;
}
.contact-info-value {
    font-size: 16px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}
.contact-info-value:hover {
    color: var(--orange);
}

/* HERO */
.hero { min-height: min(920px, 100vh); padding-top: 148px; padding-bottom: 80px; }

/* ===== HERO PROCESS BLOCK ===== */
.process-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 470px;
    margin: 0 auto;
}

/* Корректировка контейнера и шрифтов на мобильных */
@media (max-width: 640px) {
    .process-container {
        max-width: 100%;
        /* Масштабируем весь круг вместе с кнопками, чтобы ничего не вылезало */
        transform: scale(0.78);
        transform-origin: center center;
    }

    .process-label {
        font-size: 9.5px !important;
        padding: 4px 6px !important;
        letter-spacing: .04em !important;
    }
}

/* Для самых узких экранов (iPhone SE и аналоги) */
@media (max-width: 380px) {
    .process-container {
        transform: scale(0.68);
    }
}

.process-label {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--graphite);
    background: var(--paper);
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 3px;
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease, background .25s ease;
    white-space: nowrap;
    z-index: 2;
}

.process-label:hover {
    color: white;
    background: var(--graphite);
    border-color: var(--graphite);
}

.process-label .red-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    margin-right: 6px;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 23, 22, 0.6);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: opacity;
    transition: opacity .15s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: white;
    max-width: 620px;
    width: calc(100% - 40px);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    will-change: transform, opacity;
    transition: transform .2s cubic-bezier(.16,1,.3,1), opacity .2s cubic-bezier(.16,1,.3,1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    color: var(--graphite);
    cursor: pointer;
    border: 1px solid var(--line);
    background: transparent;
    transition: border-color .25s ease, background .25s ease, color .25s ease;
}

.modal-close:hover {
    border-color: var(--red);
    background: var(--red);
    color: white;
}

/* Стили для триггера в модальном окне */
.process-trigger {
    margin-top: 24px;
    padding: 14px 16px;
    border-left: 3px solid var(--red);
    background: rgba(220, 59, 35, .06);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .02em;
    color: var(--graphite);
}

/* ===== END HERO PROCESS BLOCK ===== */

.stripe { border-top: 1px solid var(--line); }
.stripe-item {
    padding: 16px 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
    letter-spacing: .1em; text-transform: uppercase; color: rgba(43,42,41,.5);
}

/* WHY */
.problem { border-top: 1px solid var(--line); padding-top: 22px; }
.problem-number { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--orange); }

/* SERVICES */
.service {
    position: relative; min-height: 320px; padding: 32px; background: white;
    border: 1px solid var(--line);
    transition: background .45s ease, color .45s ease, transform .45s cubic-bezier(.16,1,.3,1);
}
.service:hover { background: var(--graphite); color: white; transform: translateY(-5px); }
.service-number { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--orange); }
.service-title { font-size: clamp(24px, 2vw, 32px); line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.service-description { color: rgba(43,42,41,.55); line-height: 1.55; }
.service:hover .service-description { color: rgba(255,255,255,.6); }
.service-arrow { position: absolute; right: 28px; bottom: 28px; font-size: 20px; transition: transform .3s ease; }
.service:hover .service-arrow { transform: translate(4px,-4px); color: var(--orange); }

.services-cta { background: var(--graphite); color: white; }

/* PROJECTS */
.project-visual {
    position: relative; overflow: hidden; background: #efede9; border: 1px solid var(--line);
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.project:hover .project-visual { transform: translateY(-6px); }
.browser-frame {
    position: absolute; left: 6%; top: 8%; width: 88%; height: 84%; background: #fbfaf8;
    border: 1px solid rgba(43,42,41,.1); box-shadow: 0 25px 55px rgba(43,42,41,.1); overflow: hidden;
}
.browser-top { height: 28px; border-bottom: 1px solid rgba(43,42,41,.08); display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.browser-top i { width: 4px; height: 4px; border-radius: 50%; background: rgba(43,42,41,.18); }
.browser-body { padding: 22px; }
.browser-title { font-size: 22px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; width: 72%; }
.browser-line { height: 5px; background: rgba(43,42,41,.08); margin-top: 10px; }
.browser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 22px; }
.browser-grid div { height: 68px; background: #eeece8; }
.browser-grid.browser-grid-shots { gap: 8px; }
.browser-grid-shots img {
    width: 100%; height: 100%; display: block; object-fit: cover; object-position: top;
    border: 1px solid rgba(43,42,41,.08); background: #eeece8;
}

.project-meta-row { border-top: 1px solid var(--line); padding-top: 18px; }
.result-chip {
    font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
    border: 1px dashed rgba(43,42,41,.28); color: rgba(43,42,41,.42); padding: 6px 10px; display: inline-block;
}

.field-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase; color: var(--graphite);
    margin-bottom: 8px;
}
.field-tag::before { content: ''; width: 16px; height: 2px; background: var(--orange); flex: 0 0 auto; }
.field-tag-result {
    color: white; background: var(--graphite); padding: 5px 10px 5px 8px; margin-bottom: 10px;
}
.field-tag-result::before { background: var(--red); }

.metric-ticker {
    width: 100%; overflow: hidden; position: relative;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.metric-ticker-track { display: flex; align-items: center; gap: 10px; width: max-content; animation: metricTicker 16s linear infinite; }
@media (hover: hover) {
    .metric-ticker-track { animation-play-state: paused; }
    .project:hover .metric-ticker-track { animation-play-state: running; }
}
.metric-chip {
    display: flex; align-items: baseline; gap: 8px; white-space: nowrap;
    padding: 10px 14px; border-radius: 3px; transition: transform .25s ease, border-color .25s ease, background .25s ease;
    border: 1.5px dashed rgba(220,59,35,.45); background: rgba(220,59,35,.05);
}
.metric-chip:hover { border-color: rgba(220,59,35,.7); background: rgba(220,59,35,.09); }
.metric-chip b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--red); }
.metric-chip span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
@keyframes metricTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.ticker-hint {
    font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(43,42,41,.32); margin-top: 8px; display: flex; align-items: center; gap: 5px;
}
.ticker-hint svg { width: 11px; height: 11px; opacity: .6; }

.cat-label { font-weight: 700; }
.cat-landing { color: var(--coral); }
.cat-corporate { color: var(--graphite); }
.cat-catalog { color: var(--orange); }
.cat-ecommerce { color: var(--red); }
.cat-custom { color: var(--terracotta); }

.filter-tab {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
    padding: 10px 4px; color: rgba(43,42,41,.4); position: relative; transition: color .25s ease;
}
.filter-tab::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--red);
    transition: width .25s ease;
}
.filter-tab:hover { color: var(--graphite); }
.filter-tab.active { color: var(--graphite); }
.filter-tab.active::after { width: 100%; }

.project.is-hidden { display: none; }

@media (max-width: 767px) {
    .project-visual { aspect-ratio: 4 / 5 !important; }
    .browser-body { padding: 16px !important; }
    .browser-title { font-size: 16px !important; width: 85% !important; }
    .browser-grid-shots[style*="210px"] { grid-template-rows: repeat(2, 96px) !important; }
    .browser-grid-shots[style*="170px"] { grid-template-rows: 128px !important; }
}

.other-project-link {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
    border: 1px solid var(--line); padding: 10px 16px; transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.other-project-link:hover { border-color: var(--graphite); background: var(--graphite); color: white; }

/* ===== DEV PROJECTS (STATUS CARDS) ===== */
.dot-red { background: var(--red); }
.dot-red::after { border-color: var(--red); }

.dev-project-card {
    position: relative; display: block; padding: 28px 28px 24px;
    border: 1px solid var(--line); background: white;
    transition: border-color .3s ease, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.dev-project-card:hover { border-color: var(--graphite); transform: translateY(-4px); box-shadow: 0 24px 48px rgba(43,42,41,.09); }

.dev-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--red);
    white-space: nowrap; /* Запрещает перенос слова */
    flex-shrink: 0;      /* Запрещает сжатие элемента */
    margin-top: 2px;     /* Идеальное выравнивание по базовой линии заголовка */
}

.dev-stage-track { display: flex; align-items: center; gap: 5px; margin-top: 24px; }
.dev-stage-step { flex: 1; height: 3px; border-radius: 2px; background: rgba(43,42,41,.12); position: relative; }
.dev-stage-step.is-done { background: var(--graphite); }
.dev-stage-step.is-current { background: var(--red); }
.dev-stage-step.is-current::after {
    content: ''; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
    width: 9px; height: 9px; border-radius: 50%; background: var(--red);
    box-shadow: 0 0 0 4px rgba(220,59,35,.15); animation: stagePulse 1.8s ease-in-out infinite;
}
@keyframes stagePulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(220,59,35,.15); }
    50% { box-shadow: 0 0 0 8px rgba(220,59,35,.04); }
}
/* ===== DEV STAGE TRACK & LABELS ===== */
.dev-stage-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    margin-top: 24px;
}

.dev-stage-step {
    height: 3px;
    background: rgba(0, 0, 0, .1);
    border-radius: 2px;
}

.dev-stage-step.is-done {
    background: rgba(0, 0, 0, .45);
}

.dev-stage-step.is-current {
    background: var(--red);
}

.dev-stage-labels {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    margin-top: 8px;
}

.dev-stage-labels span {
    min-width: 0;
    color: rgba(0, 0, 0, .3);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8.5px;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dev-stage-labels span.is-current {
    color: var(--red);
    font-weight: 600;
}

.dev-stage-labels span.is-done {
    color: rgba(0, 0, 0, .5);
}

/* ===== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 640px) {
    .dev-stage-track {
        gap: 3px;
    }

    .dev-stage-labels {
        grid-template-columns: repeat(6, minmax(0, 1fr)); /* Оставляем ровно 6 колонок под полосками! */
        gap: 3px;
    }

    .dev-stage-labels span {
        font-size: 7px; /* Уменьшаем шрифт, чтобы длинные слова влезали */
        letter-spacing: 0;
    }
}

/* PROCESS */
.process-row {
    display: grid;
    grid-template-columns: 80px 1fr 1.3fr;
    gap: 30px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
}

.process-row:last-child { border-bottom: 1px solid var(--line); }

.process-index {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--orange);
    letter-spacing: .08em;
    padding-top: 4px;
}

.process-title {
    font-size: clamp(22px, 2.2vw, 31px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.process-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(43,42,41,.4);
    margin-top: 8px;
}

.process-text {
    color: rgba(43,42,41,.55);
    line-height: 1.55;
    max-width: 420px;
}

@media (max-width: 767px) {
    .process-row { grid-template-columns: 40px 1fr; gap: 14px; }
    .process-text { grid-column: 2; margin-top: 6px; }
    .process-subtitle { grid-column: 2; }
}

/* DELIVERABLES */
.deliverable-cell { border-top: 1px solid rgba(255,255,255,.14); padding: 26px 22px 26px 0; }
.deliverable-num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--orange); }
.deliverable-title { font-size: 20px; font-weight: 700; letter-spacing: -.025em; margin-top: 10px; }
.deliverable-text { color: rgba(255,255,255,.5); line-height: 1.5; margin-top: 8px; font-size: 15px; }

/* TECH STRIP */
.stack-ticker { width: 100%; overflow: hidden; position: relative; mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.stack-ticker-track { display: flex; align-items: center; gap: 14px; width: max-content; animation: ticker 26s linear infinite; }
.stack-ticker:hover .stack-ticker-track { animation-play-state: paused; }
.stack-item { display: flex; align-items: center; gap: 9px; background: white; border: 1px solid var(--line); padding: 9px 16px; white-space: nowrap; transition: border-color .25s ease, background .25s ease; }
.stack-item:hover { border-color: var(--graphite); background: var(--off-white); }
.stack-item i { font-size: 18px; color: var(--graphite); }
.stack-item span { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .04em; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* FAQ */
.faq-item { border-top: 1px solid rgba(255,255,255,.14); }
.faq-item:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.faq-question {
    width: 100%; padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    text-align: left; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.02em; color: white;
}
.faq-icon {
    width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.22); display: flex; align-items: center;
    justify-content: center; flex: 0 0 auto; font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: white;
    transition: transform .3s ease, background .25s ease;
}
.faq-content { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.faq-content-inner { padding: 0 60px 28px 0; max-width: 720px; color: rgba(255,255,255,.55); line-height: 1.6; }
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--red); border-color: var(--red); }
.faq-item.active .faq-content { max-height: 320px; }

/* CONTACT */
.contact-input, .contact-select {
    width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.2);
    padding: 16px 0; outline: none; color: white; font-family: 'Manrope', sans-serif; font-size: 17px;
    transition: border-color .25s ease; appearance: none; -webkit-appearance: none; border-radius: 0;
}
.contact-select { background-image: none; }
.contact-select option { color: var(--graphite); }
.contact-input::placeholder { color: rgba(255,255,255,.4); }
.contact-input:focus, .contact-select:focus { border-color: var(--orange); }
.field-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); }

.consent-row {
    display: flex; align-items: flex-start; gap: 12px; cursor: pointer; user-select: none;
}
.consent-row input[type="checkbox"] {
    position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.consent-box {
    flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 3px;
    border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center;
    color: transparent; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.consent-box svg { width: 12px; height: 12px; }
.consent-row input[type="checkbox"]:checked ~ .consent-box {
    background: var(--orange); border-color: var(--orange); color: white;
}
.consent-row input[type="checkbox"]:focus-visible ~ .consent-box {
    outline: 2px solid var(--orange); outline-offset: 2px;
}
.consent-text { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.55); }
.consent-text a { color: rgba(255,255,255,.85); }

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
    }
}

/* ===== RESULT TICKER ===== */
.result-ticker {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    margin-top: 12px;
    touch-action: pan-y;
}

.result-ticker-track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    /* Анимация работает всегда по умолчанию */
    animation: resultTicker 18s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

/* На ПК ставим паузу при наведении на чипс, чтобы его можно было прочитать */
@media (hover: hover) and (pointer: fine) {
    .result-ticker:hover .result-ticker-track {
        animation-play-state: paused;
    }
}

.result-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 3px;
    border: 1.5px dashed rgba(220, 59, 35, .45);
    background: rgba(220, 59, 35, .05);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--graphite);
    transition: border-color .25s ease, background .25s ease;
    flex-shrink: 0;
}

.result-chip:hover {
    border-color: rgba(220, 59, 35, .7);
    background: rgba(220, 59, 35, .09);
}

.result-chip::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

@keyframes resultTicker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ===== DELIVERABLES BLOCK ENHANCEMENT ===== */
.deliverable-cell {
    border-top: 1px solid rgba(255,255,255,.14);
    padding: 26px 22px 26px 0;
    position: relative;
    transition: background .3s ease;
}

.deliverable-cell::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--orange);
}

.deliverable-cell:hover {
    background: rgba(255,255,255,.02);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    background: var(--graphite);
    color: white;
    border: 1px solid var(--graphite);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .25s ease, border-color .25s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--red);
    border-color: var(--red);
}

@media (max-width: 640px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ===== COOKIE NOTICE ===== */
.cookie-notice {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, calc(100% - 32px));
    background: #ffffff;
    border: 1px solid rgba(43, 42, 41, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 24px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.cookie-notice.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cookie-icon {
    width: 42px;
    height: 42px;
    background: #fdf3e7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cookie-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: var(--graphite);
    margin-bottom: 6px;
}

.cookie-text {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(43, 42, 41, 0.65);
}

.cookie-text a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.cookie-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: 3px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.cookie-accept {
    background: var(--orange);
    color: white;
    border: 1px solid var(--orange);
}
.cookie-accept:hover {
    background: var(--red);
    border-color: var(--red);
}

.cookie-decline {
    background: transparent;
    color: rgba(43, 42, 41, 0.65);
    border: 1px solid rgba(43, 42, 41, 0.2);
}
.cookie-decline:hover {
    border-color: var(--graphite);
    color: var(--graphite);
}

@media (max-width: 640px) {
    .cookie-notice {
        bottom: 16px;
        padding: 20px;
    }
    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cookie-btn {
        text-align: center;
    }
}
/* Логотип */
.custom-logo-link img,
.header-logo {
    max-height: 40px;
    width: auto;
    display: block;
}

/* ===== SCROLLSPY ===== */
header nav a {
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width .25s ease;
}

header nav a.active {
    color: var(--red);
}

header nav a.active::after {
    width: 100%;
}

/* ===== HEADER ===== */
.site-header {
    min-height: 80px;
}

/* Стили только для десктопной навигации */
.site-header nav:not(.mobile-nav) ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header nav:not(.mobile-nav) a {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    color: rgba(43, 42, 41, 0.7);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: color .25s ease;
}

.site-header nav:not(.mobile-nav) a:hover,
.site-header nav:not(.mobile-nav) a.active {
    color: var(--graphite, #2B2A29);
}

.site-header nav:not(.mobile-nav) a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: var(--red, #DC3B23);
    transition: width .25s ease;
}

.site-header nav:not(.mobile-nav) a:hover::after,
.site-header nav:not(.mobile-nav) a.active::after {
    width: 100%;
}

/* ===== БУРГЕР И ИКОНКА ===== */
#mobileMenuButton {
    position: relative !important;
    z-index: 100000 !important;
    cursor: pointer !important;
}

.burger-line {
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

.is-open .burger-line-1 {
    transform: translateY(3.5px) rotate(45deg);
}

.is-open .burger-line-2 {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* ===== МОБИЛЬНОЕ МЕНЮ (ПАНЕЛЬ) ===== */
#mobileMenu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: var(--paper, #FAF9F7) !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

#mobileMenu.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ===== МОБИЛЬНАЯ НАВИГАЦИЯ (СПИСОК) ===== */
.mobile-nav ul,
.mobile-nav .mobile-menu-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.mobile-nav li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(43, 42, 41, 0.12) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-nav li:first-child {
    border-top: 1px solid rgba(43, 42, 41, 0.12) !important;
}

.mobile-nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 14px 0 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--graphite, #2B2A29) !important;
    text-decoration: none !important;
}

.mobile-nav a::after {
    content: "→" !important;
    color: rgba(43, 42, 41, 0.35) !important;
    font-size: 1.2rem !important;
}

.mobile-nav a:hover {
    color: var(--red, #DC3B23) !important;
}

/* ===== БУРГЕР ===== */
#mobileMenuButton {
    position: relative;
}

.menu-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--graphite);
    transition: transform .3s ease, top .3s ease;
}

.menu-line:first-child {
    top: 10px;
}

.menu-line:last-child {
    top: 16px;
}

.menu-open .menu-line:first-child {
    top: 13px;
    transform: rotate(45deg);
}

.menu-open .menu-line:last-child {
    top: 13px;
    transform: rotate(-45deg);
}

body.menu-is-open {
    overflow: hidden;
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 1024px) {
    .site-header {
        min-height: 64px;
    }

    .site-header nav:not(.mobile-nav) {
        display: none;
    }

    .site-header .btn-primary {
        display: none;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 56px;
    }

    #mobileMenuButton {
        width: 30px;
        height: 30px;
    }

    #mobileMenuButton .menu-line {
        width: 18px;
    }
}

/* Анимация вращения спиннера */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner-spin {
    animation: spin 0.8s linear infinite;
}

/* Контейнер бегущей строки */
.stack-ticker {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    position: relative;
}

/* Движущаяся дорожка */
.stack-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    animation: ticker 25s linear infinite;
}

.stack-ticker:hover .stack-ticker-track {
    animation-play-state: paused; /* Пауза при наведении */
}

/* Карточка элемента */
.stack-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stack-item i {
    font-size: 1.25rem;
}

/* Анимация бесконечной прокрутки */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}