/* ============================================================ */
/* style.css — темная тема + рельеф по всему сайту              */
/* ============================================================ */

:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.3);
    --scanline-color: rgba(0, 0, 0, 0.15);
    --card-bg: rgba(255, 255, 255, 0.02);
    --emoji-filter: grayscale(1) brightness(2);
    --logo-filter: brightness(0) invert(1);
    --glow-soft: 0 0 20px rgba(255, 255, 255, 0.3);
    --glow-strong: 0 0 15px rgba(255, 255, 255, 0.4);
    --glow-text: 0 0 8px rgba(255, 255, 255, 0.5);
    --header-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    --float-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    --grid-color: rgba(255, 255, 255, 0.045);
    --grid-size: 50px;
    --font-main: 'Fira Code', 'Courier New', monospace;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ============================================================ */
/* РЕЛЬЕФНАЯ СЕТКА НА ВСЮ СТРАНИЦУ                              */
/* ============================================================ */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    background-attachment: fixed;
    background-position: center top;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(13, 13, 13, 0) 0%, rgba(13, 13, 13, 0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--text-color); text-decoration: none; transition: var(--transition); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes swipeArrow { 0% { transform: translateX(0); opacity: 0.5; } 50% { transform: translateX(10px); opacity: 1; } 100% { transform: translateX(0); opacity: 0.5; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.fade-in { opacity: 0; animation: fadeInUp 0.8s ease-out forwards; }
.delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.4s; } .delay-3 { animation-delay: 0.6s; } .delay-4 { animation-delay: 0.8s; } .delay-5 { animation-delay: 1.0s; } .delay-6 { animation-delay: 1.2s; }

/* ============================================================ */
/* HEADER                                                       */
/* ============================================================ */
header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 2rem;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    background-attachment: fixed;
    background-position: center top;
    box-shadow: var(--header-shadow);
    gap: 1rem;
}
header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.6);
    pointer-events: none;
    z-index: -1;
}

.home-link { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; color: var(--text-color); cursor: pointer; user-select: none; position: relative; z-index: 1; }

.logo-container { width: 85px; height: 85px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.home-link:hover .logo-container { transform: scale(1.05); }
.logo-container img { width: 100%; height: 100%; object-fit: contain; filter: var(--logo-filter); }

.site-name { font-size: 2.2rem; font-weight: 600; letter-spacing: 1px; display: flex; align-items: center; white-space: nowrap; }
.site-name .text { display: inline-block; white-space: nowrap; min-width: 8ch; }
.site-name::after { content: '_'; animation: blink 1s step-end infinite; margin-left: 3px; flex-shrink: 0; }

.nav-wrapper { display: flex; align-items: center; gap: 2rem; flex-shrink: 0; position: relative; z-index: 1; }
nav { display: flex; gap: 1.8rem; }
nav a { color: var(--text-dim); position: relative; font-size: 1.1rem; font-weight: 400; letter-spacing: 0.5px; }
nav a:hover { color: var(--text-color); }
nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background-color: var(--text-color); transition: var(--transition); }
nav a:hover::after { width: 100%; box-shadow: 0 0 8px var(--text-color); }

.login-btn { border: 1px dashed var(--text-color); padding: 0.5rem 1.3rem; font-size: 1rem; font-weight: 600; letter-spacing: 1px; transition: var(--transition); white-space: nowrap; }
.login-btn:hover { background-color: var(--text-color); color: var(--bg-color); box-shadow: var(--glow-strong); }

.burger-menu { display: none; background: transparent; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 5px; z-index: 1100; position: relative; }
.burger-menu span { display: block; width: 25px; height: 2px; background-color: var(--text-color); transition: var(--transition); }

main { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; position: relative; z-index: 1; }
section { margin-bottom: 8rem; }
h2 { font-size: 2.5rem; letter-spacing: 3px; margin-bottom: 1rem; text-transform: uppercase; text-align: center; }
.subtitle { text-align: center; color: var(--text-dim); margin-bottom: 4rem; font-size: 1.1rem; max-width: 750px; margin-left: auto; margin-right: auto; }

#process, #pricing, #about, #contact, #portfolio { scroll-margin-top: 110px; }

#contact { margin-bottom: 2rem; }

.hero { margin-bottom: 0; max-width: 900px; text-align: left; position: relative; }
.terminal-log { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; }
.cursor { display: inline-block; width: 10px; height: 1.2em; background-color: var(--text-color); animation: blink 1s step-end infinite; vertical-align: middle; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.1; font-weight: 600; letter-spacing: 2px; margin-bottom: 2rem; text-transform: uppercase; }
.hero-desc { border-left: 2px solid var(--text-color); padding-left: 1.5rem; margin-bottom: 3rem; font-size: 1.1rem; color: var(--text-dim); max-width: 650px; }
.hero-buttons { display: flex; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.status-text { font-size: 0.85rem; color: var(--text-dim); }

/* ============================================================ */
/* 3D EARTH                                                      */
/* ============================================================ */
.earth-container {
    width: 100%;
    height: 600px;
    margin: 0;
    position: relative;
    overflow: hidden;
    cursor: grab;
    background: transparent;
    border: none;
}
.earth-container:active {
    cursor: grabbing;
}
.earth-container canvas {
    display: block;
}

.btn { font-family: var(--font-main); font-size: 1rem; padding: 0.8rem 2rem; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; display: inline-block; }
.btn-solid { background-color: var(--text-color); color: var(--bg-color); border: 1px solid var(--text-color); font-weight: 600; }
.btn-solid:hover { background-color: transparent; color: var(--text-color); box-shadow: var(--glow-soft); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--text-color); border: 1px dashed var(--text-color); }
.btn-outline:hover { background-color: var(--text-color); color: var(--bg-color); box-shadow: var(--glow-soft); transform: translateY(-2px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
    margin-top: 0;
    margin-bottom: 0;
}
.stat-item { display: flex; flex-direction: column; gap: 0.5rem; }
.stat-label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.stat-value { font-size: 2.5rem; font-weight: 600; letter-spacing: 1px; }
.stat-sub { font-size: 0.8rem; color: var(--text-dim); }

/* ============================================================ */
/* БЕГУЩАЯ СТРОКА — на всю ширину + отступ сверху              */
/* ============================================================ */
.marquee-container {
    /* Ключевой приём: margin-left от левого края родителя до края viewport */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    /* НОВОЕ: небольшой отступ от блока статистики сверху */
    margin-top: 3rem;
    
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(13, 13, 13, 0.8);
    padding: 1.5rem 0;
    margin-bottom: 8rem;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    will-change: transform;
}

.marquee-content span {
    display: inline-block;
    padding: 0 1rem;
}

.marquee-dot {
    color: var(--text-color);
    opacity: 0.5;
    font-weight: bold;
    display: inline-block;
    padding: 0 0.5rem;
}

/* ============================================================ */
/* КАК РАБОТАЕМ                                                 */
/* ============================================================ */
.process-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.process-wrapper {
    position: relative;
    transition: max-height 0.6s ease, width 0.6s ease;
    touch-action: pan-y;
    margin: 0 auto;
}

.process-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    background-color: var(--card-bg);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    user-select: none;
    transition: var(--transition);
    position: relative;
}

.process-number {
    position: absolute;
    top: 1.2rem;
    left: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dim);
    opacity: 0.5;
    line-height: 1;
}

.process-icon {
    width: 60px;
    height: 60px;
    color: var(--text-dim);
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.process-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process-card:hover .process-icon { color: var(--text-color); transform: scale(1.05); }

.process-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.5px;
    margin: 0;
}

.process-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0;
    max-width: 90%;
}

.process-wrapper.stacked-mode { width: 380px; height: 520px; max-width: 100%; }

.process-wrapper.stacked-mode .process-card {
    position: absolute;
    top: 0; left: 0;
    background-color: var(--bg-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    cursor: grab;
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease, box-shadow 0.4s ease;
}

.process-wrapper.stacked-mode .process-card:active { cursor: grabbing; }

.process-wrapper.stacked-mode .process-card[data-stack-index="0"] { transform: translateY(0) scale(1); z-index: 5; }
.process-wrapper.stacked-mode .process-card[data-stack-index="1"] { transform: translateY(20px) scale(0.95); z-index: 4; }
.process-wrapper.stacked-mode .process-card[data-stack-index="2"] { transform: translateY(40px) scale(0.90); z-index: 3; }
.process-wrapper.stacked-mode .process-card[data-stack-index="3"] { transform: translateY(60px) scale(0.85); z-index: 2; }
.process-wrapper.stacked-mode .process-card[data-stack-index="4"] { transform: translateY(80px) scale(0.80); z-index: 1; }

.swipe-hint {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 1;
}

.swipe-hint::after { content: '→'; font-size: 1.4rem; animation: swipeArrow 1.5s infinite; }

.process-wrapper.grid-mode {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 4rem auto;
    position: static;
    justify-content: center;
    justify-items: center;
}

.process-wrapper.grid-mode .process-card {
    position: relative;
    box-shadow: none;
    background-color: var(--card-bg);
    cursor: default;
    padding: 1.5rem 1rem;
    transform: none !important;
    opacity: 1 !important;
}

.process-wrapper.grid-mode .process-number { top: 1rem; left: 1rem; font-size: 0.9rem; }
.process-wrapper.grid-mode .process-icon { width: 45px; height: 45px; }
.process-wrapper.grid-mode .process-title { font-size: 1rem; }
.process-wrapper.grid-mode .process-desc { font-size: 0.8rem; }
.process-wrapper.grid-mode .swipe-hint { opacity: 0; pointer-events: none; }

/* ============================================================ */
/* НАШИ РАБОТЫ                                                  */
/* ============================================================ */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; }

.portfolio-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background-color: var(--card-bg);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.portfolio-card:hover { border-color: var(--text-color); transform: translateY(-3px); box-shadow: var(--glow-soft); }

.portfolio-sketch {
    width: 100%;
    height: 105px;
    color: var(--text-dim);
    transition: var(--transition);
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-sketch svg { width: 100%; height: 100%; display: block; stroke: currentColor; stroke-width: 1.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.portfolio-card:hover .portfolio-sketch { color: var(--text-color); }

.portfolio-category { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }

.portfolio-name { font-size: 1.15rem; font-weight: 600; color: var(--text-color); letter-spacing: 0.3px; line-height: 1.35; transition: var(--transition); }

.portfolio-card:hover .portfolio-name { text-shadow: var(--glow-text); }

.portfolio-desc { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; }

.portfolio-cta {
    margin-top: 3rem;
    padding: 2.5rem 2rem;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    text-align: center;
    background-color: var(--card-bg);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.portfolio-cta p { font-size: 1.1rem; color: var(--text-dim); max-width: 500px; margin: 0; }
.portfolio-cta .btn { width: auto; min-width: 240px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: stretch; }
.pricing-card { border: 1px solid var(--border-color); padding: 2.5rem 2rem; display: flex; flex-direction: column; position: relative; transition: var(--transition); background-color: var(--card-bg); backdrop-filter: blur(4px); }
.pricing-card:hover { border-color: var(--text-color); box-shadow: var(--glow-soft); transform: translateY(-5px); }
.pricing-card.recommended { border-color: var(--text-color); border-width: 2px; box-shadow: var(--glow-soft); }
.badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background-color: var(--text-color); color: var(--bg-color); padding: 0.3rem 1.5rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 1rem; letter-spacing: 2px; text-transform: uppercase; }
.price { font-size: 2.5rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: baseline; line-height: 1.2; }
.pricing-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 2rem; min-height: 40px; }
.pricing-features { list-style: none; margin-bottom: 3rem; flex-grow: 1; }
.pricing-features li { margin-bottom: 1rem; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.pricing-features li::before { content: '✓'; color: var(--text-color); font-weight: bold; }
.pricing-card .btn { width: 100%; text-align: center; margin-top: auto; }

.about-content { max-width: 800px; margin: 0 auto; border-left: 2px solid var(--text-color); padding-left: 2rem; }
.about-content p { font-size: 1.2rem; color: var(--text-dim); margin-bottom: 1.5rem; line-height: 1.8; }
.about-content p strong { color: var(--text-color); }

/* ============================================================ */
/* ФОРМА ОБРАТНОЙ СВЯЗИ                                          */
/* ============================================================ */

.contact-header {
    text-align: left;
    margin-bottom: 3rem;
}

.contact-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    text-transform: none;
    letter-spacing: 1px;
    text-align: left;
    margin-bottom: 2rem;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
    background-color: var(--card-bg);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-color);
}

.info-card:hover {
    border-color: var(--text-color);
    box-shadow: var(--glow-soft);
    transform: translateY(-2px);
}

.info-card.active-card {
    border-color: var(--text-color);
    box-shadow: var(--glow-soft);
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.info-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.info-card:hover .info-arrow {
    color: var(--text-color);
    transform: translate(2px, -2px);
}

.info-sub {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.green-dot {
    width: 8px;
    height: 8px;
    background-color: #2e9e4a;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(46, 158, 74, 0.5);
}

.contact-form-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form-new .form-group {
    margin-bottom: 0;
}

.contact-form-new label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.contact-form-new input,
.contact-form-new textarea,
.contact-form-new select {
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    padding: 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    backdrop-filter: blur(4px);
}

.contact-form-new select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
}

.contact-form-new input:focus,
.contact-form-new textarea:focus,
.contact-form-new select:focus {
    border-color: var(--text-color);
    box-shadow: 0 0 10px var(--border-color);
}

.contact-form-new textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit-new {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 0.5rem;
}

.form-checkbox {
    margin-bottom: 0;
}

.form-checkbox .checkbox-label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    margin: 0;
    position: relative;
}

.form-checkbox .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.form-checkbox .checkbox-custom {
    grid-column: 1;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    margin-top: 3px;
    flex-shrink: 0;
}

.form-checkbox .checkbox-custom::before {
    content: '';
    position: absolute;
    width: 11px;
    height: 6px;
    border-left: 2px solid var(--bg-color);
    border-bottom: 2px solid var(--bg-color);
    transform: rotate(-45deg) translate(0px, -1px) scale(0);
    transition: transform 0.2s ease;
}

.form-checkbox .checkbox-label:hover .checkbox-custom {
    border-color: var(--text-color);
    box-shadow: 0 0 10px var(--border-color);
}

.form-checkbox .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--text-color);
    border-color: var(--text-color);
}

.form-checkbox .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::before {
    transform: rotate(-45deg) translate(0px, -1px) scale(1);
}

.form-checkbox .checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
    box-shadow: 0 0 0 3px var(--border-color);
}

.form-checkbox .checkbox-text {
    grid-column: 2;
    display: block;
    text-align: left;
    line-height: 1.4;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.form-checkbox .checkbox-text a {
    color: var(--text-color);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1px;
    transition: var(--transition);
}

.form-checkbox .checkbox-text a:hover {
    border-bottom-color: var(--text-color);
    text-shadow: var(--glow-text);
}

#form-status { text-align: center; margin-top: 1rem; font-size: 0.95rem; min-height: 24px; letter-spacing: 0.5px; }
#form-status.success { color: #2e9e4a; }
#form-status.error { color: #e53935; }
#form-status.loading { color: var(--text-dim); }

/* ============================================================ */
/* FOOTER                                                        */
/* ============================================================ */
.site-footer { 
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    background-attachment: fixed;
    background-position: center top;
    border-top: 1px solid var(--border-color); 
    padding: 5rem 2rem 2rem; 
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.6);
    pointer-events: none;
    z-index: 0;
}
.site-footer > * {
    position: relative;
    z-index: 1;
}

.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-color); }
.footer-brand { display: flex; flex-direction: column; gap: 1.2rem; }
.footer-logo-row { display: flex; align-items: center; gap: 0.7rem; }
.footer-logo-row .logo-container { width: 50px; height: 50px; }
.footer-site-name { font-size: 1.5rem; font-weight: 600; letter-spacing: 1px; }
.footer-site-name::after { content: '_'; animation: blink 1s step-end infinite; margin-left: 3px; }
.footer-desc { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; max-width: 320px; }
.footer-column h4 { font-size: 0.8rem; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.5rem; font-weight: 600; }
.footer-column ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-column ul li { color: var(--text-dim); font-size: 0.95rem; }
.footer-column ul li a { color: var(--text-dim); }
.footer-column ul li a:hover { color: var(--text-color); text-shadow: var(--glow-text); }
.footer-cta p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }
.footer-cta .btn { padding: 0.8rem 1.8rem; font-size: 0.9rem; width: 100%; text-align: center; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-dim); font-size: 0.85rem; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text-color); }

/* ============================================================ */
/* FLOATING CONTROLS                                             */
/* ============================================================ */
.floating-controls { position: fixed; bottom: 25px; left: 25px; z-index: 2000; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; align-items: center; gap: 0.5rem; background-color: var(--bg-color); color: var(--text-color); border: 1px solid var(--border-color); border-radius: 50px; padding: 0.55rem 1.1rem; font-family: var(--font-main); font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; cursor: pointer; transition: var(--transition); box-shadow: var(--float-shadow); user-select: none; }
.lang-switch:hover { border-color: var(--text-color); box-shadow: var(--glow-soft); transform: scale(1.05); }
.lang-switch:active { transform: scale(0.98); }
.lang-globe { font-size: 1rem; filter: var(--emoji-filter); line-height: 1; display: inline-flex; align-items: center; }
.lang-code { font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.8rem; }


/* ============================================================ */
/* АДАПТИВНОСТЬ                                                  */
/* ============================================================ */

@media (max-width: 1200px) {
    .process-wrapper.grid-mode { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    header { padding: 0.15rem 1rem; }

    .logo-container { width: 65px; height: 65px; }
    .site-name { font-size: 1.7rem; }

    .nav-wrapper { gap: 1rem; }
    nav { gap: 0.9rem; }
    nav a { font-size: 1rem; }
    .login-btn { font-size: 0.88rem; padding: 0.45rem 1rem; }

    main { padding: 2.5rem 1.5rem; }
    section { margin-bottom: 4rem; }
    
    #contact { margin-bottom: 1.5rem; }
    
    h2 { font-size: 2rem; letter-spacing: 2px; }
    .subtitle { font-size: 1rem; margin-bottom: 2rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding-top: 2rem; margin-bottom: 0; }

    .marquee-container { 
        margin-top: 2rem;
        margin-bottom: 4rem; 
        padding: 1.2rem 0; 
    }
    .marquee-content { font-size: 1.15rem; letter-spacing: 1.5px; }

    .pricing-grid { grid-template-columns: 1fr; gap: 1.5rem; max-width: 500px; margin: 0 auto; }

    #process, #pricing, #about, #contact, #portfolio { scroll-margin-top: 90px; }

    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    
    .contact-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .earth-container {
        height: 480px;
    }
}

@media (max-width: 768px) {
    header { padding: 0.1rem 0.9rem; }
    .logo-container { width: 46px; height: 46px; }
    .site-name { font-size: 1.35rem; }

    .burger-menu { display: flex; }
    .nav-wrapper {
        position: absolute; top: 100%; left: 0; width: 100%;
        background-color: var(--bg-color);
        background-image: 
            linear-gradient(var(--grid-color) 1px, transparent 1px),
            linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
        background-size: 30px 30px;
        flex-direction: column; padding: 1.2rem 1rem;
        border-bottom: 1px solid var(--border-color);
        display: none; gap: 1.2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nav-wrapper.active { display: flex; animation: fadeInUp 0.3s ease-out forwards; }
    nav { flex-direction: column; align-items: center; gap: 0.9rem; }
    nav a { font-size: 1.05rem; }
    .login-btn { width: 100%; text-align: center; padding: 0.7rem; font-size: 0.92rem; }

    main { padding: 1rem 0.9rem; }
    section { margin-bottom: 2rem; }
    
    #contact { margin-bottom: 1rem; }

    h2 { font-size: 1.4rem; letter-spacing: 1.5px; margin-bottom: 0.6rem; line-height: 1.25; }
    .subtitle { font-size: 0.85rem; margin-bottom: 1.2rem; padding: 0 0.25rem; line-height: 1.5; }

    .terminal-log { font-size: 0.78rem; margin-bottom: 0.7rem; gap: 6px; }
    .hero h1 { font-size: 1.7rem; letter-spacing: 0.8px; margin-bottom: 1rem; line-height: 1.15; }
    .hero-desc { font-size: 1rem; padding-left: 0.9rem; margin-bottom: 1.1rem; line-height: 1.55; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 0.55rem; margin-bottom: 0.8rem; }
    .btn { width: 100%; text-align: center; padding: 0.68rem 1.2rem; font-size: 0.85rem; }
    .status-text { font-size: 0.76rem; padding-top: 0.4rem; }
    
    .earth-container {
        height: 400px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem 1rem;
        padding-top: 1rem;
        margin-bottom: 0;
    }
    .stat-item { gap: 0.1rem; }
    .stat-label { font-size: 0.65rem; letter-spacing: 0.4px; line-height: 1.3; }
    .stat-value { font-size: 1.5rem; letter-spacing: 0.4px; line-height: 1.15; }
    .stat-sub { font-size: 0.68rem; line-height: 1.3; }

    /* Адаптив бегущей строки: уменьшен верхний отступ */
    .marquee-container { 
        margin-top: 1.5rem;
        padding: 1rem 0; 
        margin-bottom: 2rem; 
    }
    .marquee-content { 
        font-size: 1rem; 
        letter-spacing: 1px; 
    }
    .marquee-content span { 
        padding: 0 0.6rem; 
    }
    .marquee-dot {
        padding: 0 0.3rem;
    }

    #process h2 { font-size: 1.3rem; letter-spacing: 1.2px; margin-bottom: 0.4rem; line-height: 1.2; }
    #process .subtitle { font-size: 0.8rem; margin-bottom: 1rem; padding: 0 0.4rem; }

    .process-label { font-size: 0.66rem; letter-spacing: 1.1px; margin-bottom: 0.35rem; }

    .process-wrapper.stacked-mode { width: 100%; max-width: 300px; height: 285px; }
    .process-wrapper.stacked-mode .process-card { aspect-ratio: 4 / 3; }
    .process-wrapper.stacked-mode .process-card[data-stack-index="0"] { transform: translateY(0) scale(1); z-index: 5; }
    .process-wrapper.stacked-mode .process-card[data-stack-index="1"] { transform: translateY(14px) scale(0.96); z-index: 4; }
    .process-wrapper.stacked-mode .process-card[data-stack-index="2"] { transform: translateY(28px) scale(0.92); z-index: 3; }
    .process-wrapper.stacked-mode .process-card[data-stack-index="3"] { transform: translateY(42px) scale(0.88); z-index: 2; }
    .process-wrapper.stacked-mode .process-card[data-stack-index="4"] { transform: translateY(56px) scale(0.84); z-index: 1; }

    .process-card { padding: 0.9rem 0.85rem; gap: 0.45rem; border-radius: 12px; }
    .process-number { top: 0.6rem; left: 0.75rem; font-size: 0.76rem; }
    .process-icon { width: 36px; height: 36px; margin-bottom: 0.1rem; }
    .process-title { font-size: 0.9rem; letter-spacing: 0.3px; }
    .process-desc { font-size: 0.72rem; line-height: 1.4; max-width: 95%; }

    .swipe-hint { font-size: 0.68rem; bottom: -26px; gap: 6px; }
    .swipe-hint::after { font-size: 0.9rem; }

    .process-wrapper.grid-mode {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
        gap: 0.6rem;
        margin: 1rem auto;
    }
    .process-wrapper.grid-mode .process-card {
        aspect-ratio: auto;
        min-height: 130px;
        padding: 0.85rem 0.7rem;
        border-radius: 10px;
        justify-content: flex-start;
        gap: 0.35rem;
    }
    .process-wrapper.grid-mode .process-icon { width: 28px; height: 28px; margin-bottom: 0.1rem; }
    .process-wrapper.grid-mode .process-number { top: 0.5rem; left: 0.6rem; font-size: 0.66rem; }
    .process-wrapper.grid-mode .process-title { font-size: 0.82rem; }
    .process-wrapper.grid-mode .process-desc { font-size: 0.66rem; line-height: 1.35; max-width: 100%; }
    .process-wrapper.grid-mode .process-card:nth-child(5) {
        grid-column: 1 / -1;
        width: calc(50% - 0.3rem);
        justify-self: center;
    }

    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; margin-top: 1.2rem; }
    .portfolio-card { padding: 0.8rem 0.7rem; gap: 0.4rem; border-radius: 10px; }
    .portfolio-sketch { height: 55px; padding-bottom: 0.5rem; }
    .portfolio-category { font-size: 0.56rem; letter-spacing: 1.2px; }
    .portfolio-name { font-size: 0.8rem; line-height: 1.25; letter-spacing: 0.2px; }
    .portfolio-desc { font-size: 0.66rem; line-height: 1.4; }
    .portfolio-cta { padding: 1.1rem 1rem; margin-top: 1.2rem; gap: 0.8rem; border-radius: 12px; }
    .portfolio-cta p { font-size: 0.85rem; }
    .portfolio-cta .btn { width: 100%; min-width: 0; }

    #pricing .pricing-grid { margin-top: 0 !important; }
    #pricing h2 { margin-bottom: 0.9rem; }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
    .pricing-card {
        padding: 1rem 0.95rem;
        aspect-ratio: auto;
        border-radius: 12px;
    }
    .pricing-card h3 { font-size: 0.95rem; margin-bottom: 0.25rem; letter-spacing: 1.1px; }
    .price { font-size: 1.4rem; margin-bottom: 0.25rem; line-height: 1.1; }
    .pricing-desc { font-size: 0.72rem; margin-bottom: 0.6rem; min-height: auto; line-height: 1.35; }
    .pricing-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 0.6rem;
        margin-bottom: 0.9rem;
        flex-grow: 0;
    }
    .pricing-features li {
        margin-bottom: 0;
        font-size: 0.68rem;
        gap: 4px;
        line-height: 1.3;
        align-items: flex-start;
    }
    .pricing-features li::before {
        font-size: 0.64rem;
        line-height: 1.3;
        margin-top: 0.05rem;
        flex-shrink: 0;
    }
    .pricing-card .btn { padding: 0.55rem 1rem; font-size: 0.74rem; letter-spacing: 0.5px; }
    .badge { font-size: 0.6rem; padding: 0.2rem 0.75rem; top: -10px; letter-spacing: 0.6px; }

    .about-content { padding-left: 0.9rem; }
    .about-content p { font-size: 0.9rem; margin-bottom: 0.8rem; line-height: 1.6; }

    .contact-title { font-size: 1.5rem; text-align: center; }
    .contact-header { text-align: center; }
    .contact-split { gap: 1.5rem; }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .contact-form-new { gap: 1.2rem; }
    .contact-form-new label { font-size: 0.7rem; letter-spacing: 1px; }
    .contact-form-new input,
    .contact-form-new textarea,
    .contact-form-new select { padding: 0.8rem; font-size: 0.9rem; }
    .contact-form-new textarea { min-height: 100px; }
    
    .info-card { 
        padding: 1rem; 
        gap: 0.3rem; 
        border-radius: 10px; 
    }
    .info-label { 
        font-size: 0.7rem; 
        letter-spacing: 1.2px; 
    }
    .info-value { 
        font-size: 0.95rem; 
    }
    .info-arrow { 
        top: 1rem; 
        right: 1rem; 
        font-size: 1rem; 
    }
    .info-sub { 
        font-size: 0.7rem; 
        margin-top: 0.3rem; 
        line-height: 1.3;
    }
    
    .form-checkbox .checkbox-text { font-size: 0.78rem; }
    .form-checkbox .checkbox-custom { width: 18px; height: 18px; margin-top: 2px; }
    .form-checkbox .checkbox-label { gap: 0.5rem; }

    #form-status { font-size: 0.82rem; margin-top: 0.8rem; }

    .site-footer { 
        padding: 1.5rem 0.95rem 1rem; 
        margin-top: 0.5rem;
    }
    .footer-content { grid-template-columns: 1fr; gap: 1.1rem; padding-bottom: 1.1rem; }
    .footer-brand { gap: 0.55rem; }
    .footer-logo-row .logo-container { width: 36px; height: 36px; }
    .footer-site-name { font-size: 1.1rem; }
    .footer-desc { font-size: 0.8rem; line-height: 1.5; }
    .footer-column h4 { font-size: 0.68rem; letter-spacing: 1.4px; margin-bottom: 0.65rem; }
    .footer-column ul { gap: 0.45rem; }
    .footer-column ul li { font-size: 0.8rem; }
    .footer-cta p { font-size: 0.8rem; margin-bottom: 0.75rem; }
    .footer-cta .btn { padding: 0.6rem 1.1rem; font-size: 0.8rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.45rem; padding-top: 0.9rem; font-size: 0.74rem; }

    .floating-controls { bottom: 10px; left: 10px; gap: 6px; }
    .lang-switch { padding: 0.4rem 0.75rem; font-size: 0.72rem; }
    .lang-switch .lang-globe { font-size: 0.85rem; }

    #process, #pricing, #about, #contact, #portfolio { scroll-margin-top: 58px; }
    
    :root { --grid-size: 30px; }
}

@media (max-width: 480px) {
    header { padding: 0.1rem 0.8rem; }
    .logo-container { width: 42px; height: 42px; }
    .site-name { font-size: 1.15rem; }
    .site-name .text { min-width: 0; }

    main { padding: 0.9rem 0.75rem; }
    section { margin-bottom: 1.5rem; }
    
    #contact { margin-bottom: 0.8rem; }

    h2 { font-size: 1.2rem; letter-spacing: 1.2px; margin-bottom: 0.5rem; }
    .subtitle { font-size: 0.78rem; margin-bottom: 0.95rem; }

    .terminal-log { font-size: 0.72rem; margin-bottom: 0.6rem; }
    .hero h1 { font-size: 1.5rem; margin-bottom: 0.85rem; line-height: 1.13; }
    .hero-desc { font-size: 0.95rem; padding-left: 0.75rem; margin-bottom: 0.95rem; line-height: 1.5; }
    .hero-buttons { gap: 0.5rem; margin-bottom: 0.7rem; }
    .btn { padding: 0.62rem 1rem; font-size: 0.8rem; }
    .status-text { font-size: 0.72rem; padding-top: 0.35rem; }
    
    .earth-container {
        height: 320px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem 0.85rem;
        padding-top: 0.9rem;
        margin-bottom: 0;
    }
    .stat-item { gap: 0.1rem; }
    .stat-label { font-size: 0.6rem; letter-spacing: 0.3px; line-height: 1.25; }
    .stat-value { font-size: 1.3rem; letter-spacing: 0.3px; line-height: 1.1; }
    .stat-sub { font-size: 0.62rem; line-height: 1.25; }

    /* Адаптив бегущей строки для очень маленьких экранов */
    .marquee-container { 
        margin-top: 1rem;
        padding: 0.8rem 0; 
        margin-bottom: 1.5rem; 
    }
    .marquee-content { 
        font-size: 0.85rem; 
        letter-spacing: 0.8px; 
    }
    .marquee-content span { 
        padding: 0 0.4rem; 
    }
    .marquee-dot {
        padding: 0 0.2rem;
    }

    #process h2 { font-size: 1.1rem; letter-spacing: 1px; margin-bottom: 0.35rem; }
    #process .subtitle { font-size: 0.72rem; margin-bottom: 0.85rem; padding: 0 0.4rem; }

    .process-label { font-size: 0.58rem; letter-spacing: 0.9px; margin-bottom: 0.3rem; }

    .process-wrapper.stacked-mode { max-width: 260px; height: 245px; }
    .process-wrapper.stacked-mode .process-card { aspect-ratio: 4 / 3; }
    .process-wrapper.stacked-mode .process-card[data-stack-index="1"] { transform: translateY(12px) scale(0.96); }
    .process-wrapper.stacked-mode .process-card[data-stack-index="2"] { transform: translateY(24px) scale(0.92); }
    .process-wrapper.stacked-mode .process-card[data-stack-index="3"] { transform: translateY(36px) scale(0.88); }
    .process-wrapper.stacked-mode .process-card[data-stack-index="4"] { transform: translateY(48px) scale(0.84); }

    .process-card { padding: 0.75rem 0.65rem; gap: 0.35rem; }
    .process-number { top: 0.5rem; left: 0.6rem; font-size: 0.68rem; }
    .process-icon { width: 30px; height: 30px; margin-bottom: 0.05rem; }
    .process-title { font-size: 0.8rem; }
    .process-desc { font-size: 0.66rem; line-height: 1.35; }

    .swipe-hint { font-size: 0.6rem; bottom: -24px; }
    .swipe-hint::after { font-size: 0.82rem; }

    .process-wrapper.grid-mode { gap: 0.5rem; margin: 0.9rem auto; }
    .process-wrapper.grid-mode .process-card { min-height: 118px; padding: 0.7rem 0.6rem; gap: 0.3rem; }
    .process-wrapper.grid-mode .process-icon { width: 24px; height: 24px; }
    .process-wrapper.grid-mode .process-number { top: 0.45rem; left: 0.55rem; font-size: 0.62rem; }
    .process-wrapper.grid-mode .process-title { font-size: 0.76rem; }
    .process-wrapper.grid-mode .process-desc { font-size: 0.6rem; line-height: 1.3; }
    .process-wrapper.grid-mode .process-card:nth-child(5) {
        grid-column: 1 / -1;
        width: calc(50% - 0.25rem);
        justify-self: center;
    }

    .portfolio-grid { gap: 0.5rem; margin-top: 1rem; }
    .portfolio-card { padding: 0.65rem 0.6rem; gap: 0.3rem; }
    .portfolio-sketch { height: 46px; padding-bottom: 0.4rem; }
    .portfolio-category { font-size: 0.5rem; letter-spacing: 1px; }
    .portfolio-name { font-size: 0.72rem; line-height: 1.2; }
    .portfolio-desc { font-size: 0.6rem; line-height: 1.35; }
    .portfolio-cta { padding: 0.95rem 0.85rem; margin-top: 1rem; gap: 0.7rem; }
    .portfolio-cta p { font-size: 0.78rem; }

    #pricing .pricing-grid { margin-top: 0 !important; }
    #pricing h2 { margin-bottom: 0.7rem; }

    .pricing-grid {
        max-width: 320px;
        gap: 0.8rem;
        margin-left: auto;
        margin-right: auto;
    }
    .pricing-card { padding: 0.9rem 0.85rem; }
    .pricing-card h3 { font-size: 0.88rem; margin-bottom: 0.2rem; letter-spacing: 1px; }
    .price { font-size: 1.25rem; margin-bottom: 0.2rem; }
    .pricing-desc { font-size: 0.66rem; margin-bottom: 0.5rem; line-height: 1.3; }
    .pricing-features { gap: 0.4rem 0.5rem; margin-bottom: 0.8rem; }
    .pricing-features li { font-size: 0.62rem; gap: 3px; line-height: 1.28; }
    .pricing-features li::before { font-size: 0.58rem; }
    .pricing-card .btn { padding: 0.5rem 0.9rem; font-size: 0.68rem; }
    .badge { font-size: 0.55rem; padding: 0.18rem 0.65rem; top: -9px; }

    .about-content { padding-left: 0.7rem; }
    .about-content p { font-size: 0.85rem; margin-bottom: 0.65rem; line-height: 1.55; }

    .contact-title { font-size: 1.3rem; }
    
    .info-card { 
        padding: 0.85rem; 
        gap: 0.25rem; 
    }
    .info-value { 
        font-size: 0.9rem; 
    }
    .info-label { 
        font-size: 0.65rem; 
    }
    .info-sub { 
        font-size: 0.68rem; 
        margin-top: 0.2rem; 
    }
    .info-arrow { 
        top: 0.85rem; 
        right: 0.85rem; 
        font-size: 0.9rem; 
    }
    
    .contact-form-new input,
    .contact-form-new textarea,
    .contact-form-new select { padding: 0.7rem; font-size: 0.85rem; }
    .contact-form-new label { font-size: 0.65rem; }
    .contact-form-new textarea { min-height: 90px; }
    
    .form-checkbox .checkbox-text { font-size: 0.72rem; }
    .form-checkbox .checkbox-custom { width: 16px; height: 16px; margin-top: 2px; }
    .form-checkbox .checkbox-label { gap: 0.45rem; }

    #form-status { font-size: 0.78rem; margin-top: 0.7rem; }

    .site-footer { 
        padding: 1.2rem 0.75rem 0.85rem; 
        margin-top: 0.4rem;
    }
    .footer-content { gap: 1rem; padding-bottom: 1rem; }
    .footer-logo-row .logo-container { width: 32px; height: 32px; }
    .footer-site-name { font-size: 1rem; }
    .footer-desc { font-size: 0.76rem; }
    .footer-column h4 { font-size: 0.64rem; margin-bottom: 0.55rem; }
    .footer-column ul li { font-size: 0.76rem; }
    .footer-cta p { font-size: 0.76rem; margin-bottom: 0.65rem; }
    .footer-bottom { font-size: 0.68rem; padding-top: 0.75rem; }
    
    :root { --grid-size: 24px; }
}