﻿/* =========================================================
   VENDPOINT — Code-editor / Terminal style
   ========================================================= */

:root {
    --bg:        #111111;
    --bg-alt:    #181818;
    --gutter-bg: #0d0d0d;
    --text:      #e0e0e0;
    --muted:     #666666;
    --line-num:  #333333;
    --border:    #222222;
    --yellow:    #e8d44d;
    --cyan:      #00cfcf;
    --purple:    #a855f7;
    --gutter-w:  52px;
    --font-px:   'VT323', monospace;
    --font-mono: 'Share Tech Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    line-height: 1.7;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── EDITOR SHELL ── */
.editor-wrap {
    display: flex;
    min-height: 100vh;
}

.gutter {
    width: var(--gutter-w);
    flex-shrink: 0;
    background: var(--gutter-bg);
    border-right: 1px solid var(--border);
}

.gutter-nums {
    padding: 74px 10px 40px 4px; /* top matches header height */
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--line-num);
    line-height: 2;
    text-align: right;
    user-select: none;
}

.editor-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 16px 48px;
    background: rgba(17, 17, 17, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    font-family: var(--font-mono);
}

.brand-comment { color: var(--muted); display: inline; }
.brand-name    { color: var(--text);  font-weight: bold; font-size: 1rem; }
.brand-sub     { color: var(--cyan);  font-size: 0.8rem; }

.brand-logo {
    height: 90px;
    width: auto;
    display: block;
    max-width: none;
    object-fit: contain;
    padding: 2px 4px;
}

.site-nav {
    display: flex;
    gap: 28px;
    font-size: 0.92rem;
    color: var(--muted);
    margin-left: auto;
}

.site-nav a {
    transition: color 160ms;
    position: relative;
    padding-bottom: 2px;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--yellow);
    transform: scaleX(0);
    transition: transform 160ms;
}

.site-nav a:hover { color: var(--yellow); }
.site-nav a:hover::after { transform: scaleX(1); }

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 34px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 160ms, background 160ms, transform 160ms;
}

.lang-btn:hover {
    border-color: var(--cyan);
    background: rgba(0, 207, 207, 0.08);
}

.lang-btn.is-active {
    border-color: var(--yellow);
    background: rgba(232, 212, 77, 0.12);
}

.lang-btn:focus-visible {
    outline: 1px solid var(--yellow);
    outline-offset: 2px;
}

/* ── HERO ── */
.s-hero {
    min-height: calc(100svh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px 80px;
    border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
    color: var(--muted);
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.hero-display {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    justify-content: center;
    font-family: var(--font-px);
    font-size: clamp(2.2rem, 5.5vw, 9rem);
    line-height: 1;
    margin-bottom: 48px;
    gap: 0.15em;
    white-space: nowrap;
    overflow: hidden;
}

.syn         { color: var(--text); opacity: 0.55; }
.hero-typed  { color: var(--yellow); }
.hero-cursor {
    color: var(--yellow);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
    max-width: 56ch;
    line-height: 1.85;
    margin-bottom: 48px;
}

/* ── HERO CARDS ── */
.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border);
    outline: 1px solid var(--border);
    width: 100%;
    max-width: 620px;
    margin-bottom: 56px;
}

.hero-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: var(--bg-alt);
    color: inherit;
    text-decoration: none;
    aspect-ratio: 1;
    transition: background 200ms;
}

.hero-card:hover { background: #1e1e1e; }

.hero-card-num {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.14em;
    margin-bottom: 14px;
}

.hero-card-title {
    font-family: var(--font-px);
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    color: var(--cyan);
    line-height: 1.15;
    margin-bottom: 12px;
    transition: color 200ms;
}

.hero-card:hover .hero-card-title { color: var(--yellow); }

.hero-card-sub {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.65;
    margin-top: auto;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.8rem;
}

.scroll-v { animation: bounce 2s ease infinite; }
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(7px); }
}

/* ── CONTENT SECTIONS (shared) ── */
.s-content {
    padding: 80px clamp(28px, 7vw, 80px);
    border-bottom: 1px solid var(--border);
    max-width: 1080px;
    width: 100%;
}

/* ── ALTERNATING ALIGNMENT ── */
.s-left {
    border-left: 2px solid var(--cyan);
}

.s-left .sec-tag,
.s-left .sec-title {
    text-align: left;
}

.s-left .sec-sub {
    text-align: left;
    margin-left: 0;
}

.s-right {
    border-right: 2px solid var(--yellow);
    margin-left: auto;
}

.s-right .sec-tag,
.s-right .sec-title {
    text-align: right;
}

.s-right .sec-sub {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

.s-right .code-btn {
    display: block;
    margin-left: auto;
    width: fit-content;
}

.s-right .proc-item {
    flex-direction: row-reverse;
}

.s-right .proc-item > div {
    text-align: right;
}

.s-right .proc-item > div p {
    margin-left: auto;
}

.s-center {
    margin: 0 auto;
    text-align: center;
}

.s-center .sec-tag,
.s-center .sec-title {
    text-align: center;
}

.s-center .sec-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.s-center .contact-btns {
    justify-content: center;
}

.sec-tag {
    text-align: center;
    font-size: 1.1rem;
    color: var(--purple);
    margin-bottom: 14px;
    letter-spacing: 0.1em;
}

.sec-title {
    font-family: var(--font-px);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1;
    text-align: center;
    margin-bottom: 18px;
    color: var(--text);
}

.sec-sub {
    font-size: 0.88rem;
    color: var(--muted);
    text-align: center;
    max-width: 55ch;
    margin: 0 auto 44px;
    line-height: 1.75;
}

/* ── ABOUT ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 36px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
}

.about-lead {
    font-size: 1rem;
    line-height: 1.75;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(255,255,255,0.18);
}

.about-body {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.8;
    padding-left: 32px;
    border-left: 1px solid var(--border);
}

/* ── SERVICES ── */
.svc-list { margin-bottom: 40px; }

.svc-row {
    display: flex;
    align-items: center;
    font-family: var(--font-px);
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    cursor: default;
    transition: background 200ms, color 200ms;
}

.svc-row:first-child { border-top: 1px solid var(--border); }

.svc-row:hover { background: var(--yellow); }
.svc-row:hover .syn,
.svc-row:hover .svc-name { color: #111; }

.svc-yellow { color: var(--yellow); }
.svc-cyan   { color: var(--cyan); }
.svc-purple { color: var(--purple); }

/* ── SECTION IMAGE ── */

/* Sections with side image go full width; padding moves into sec-body */
.s-full {
    max-width: 100%;
    padding: 0;
}

.s-full .sec-body {
    padding: 80px clamp(28px, 7vw, 80px);
}

.sec-with-img {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.sec-with-img .sec-body {
    flex: 1 1 0;
    min-width: 0;
}

.sec-with-img .sec-img {
    flex: 0 0 38%;
    max-width: 38%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-left: 1px solid var(--border);
    margin: 0;
    position: relative;
}

.sec-img-right { flex-direction: row; }
.sec-img-left  { flex-direction: row; }

.sec-img-right .sec-img { border-left: 1px solid var(--border); border-right: none; }
.sec-img-left  .sec-img { border-right: 1px solid var(--border); border-left: none; }

.sec-img-photo {
    padding: 24px;
}

.sec-img-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sec-img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: brightness(0.36) saturate(0.1);
    transition: filter 500ms ease;
}

.sec-img:hover img {
    filter: brightness(1) saturate(1);
}

/* ── AUTOMATER ── */
.auto-wrap {
    width: 100%;
    padding: 80px clamp(28px, 7vw, 80px);
}

.auto-wrap .sec-tag,
.auto-wrap .sec-title {
    text-align: center;
}

.auto-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border);
    outline: 1px solid var(--border);
    margin: 0;
}

.auto-photo {
    margin: 0;
    overflow: hidden;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    height: 480px;
    padding: 32px;
}

.auto-photo img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.45) saturate(0.15);
    transition: filter 500ms ease;
}

.auto-photo:hover img {
    filter: brightness(1) saturate(1);
}

.auto-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border);
    outline: 1px solid var(--border);
}

.auto-card {
    padding: 36px 32px;
    background: var(--bg-alt);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
}

.auto-card-title {
    font-family: var(--font-px);
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    color: var(--cyan);
    line-height: 1.1;
    margin-bottom: 4px;
    text-transform: lowercase;
}

.auto-card-body { color: var(--muted); }

.auto-card-label {
    color: var(--text);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    margin-top: 6px;
    margin-bottom: 0;
}

.auto-ol {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auto-ol li {
    display: flex;
    gap: 10px;
    counter-increment: auto-counter;
}

.auto-ol { counter-reset: auto-counter; }

.auto-ol li::before {
    content: counter(auto-counter, decimal-leading-zero) ' >';
    color: var(--yellow);
    font-family: var(--font-px);
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1.5;
}

.auto-card-note {
    font-size: 0.82rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
}

/* ── MACHINES (kept for compatibility) ── */
.machine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
    outline: 1px solid var(--border);
}

.machine-card {
    padding: 28px;
    background: var(--bg-alt);
    transition: background 180ms;
}

.machine-card:hover { background: #1f1f1f; }

.card-num {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.14em;
    margin-bottom: 14px;
}

.machine-card h3 {
    font-family: var(--font-px);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: var(--cyan);
    margin-bottom: 10px;
    line-height: 1;
    text-transform: lowercase;
}

.machine-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ── INFO LIST ── */
.info-list {
    list-style: none;
    margin-bottom: 36px;
    border-top: 1px solid var(--border);
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.info-list li::before {
    content: '>';
    color: var(--cyan);
    font-family: var(--font-px);
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
}

/* ── TEXT PANEL ── */
.sec-text-panel {
    flex: 0 0 44%;
    max-width: 44%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
    background: var(--gutter-bg);
}

.sec-img-right .sec-text-panel { border-left: 1px solid var(--border); }
.sec-img-left  .sec-text-panel { border-right: 1px solid var(--border); }

.panel-inner {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 2;
}

.panel-line {
    display: block;
    white-space: pre-wrap;
}

.panel-indent { padding-left: 1.6em; }

/* ── PROCESS ── */
.proc-list { display: flex; flex-direction: column; }

.proc-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}

.proc-num {
    flex-shrink: 0;
    width: 64px;
    font-family: var(--font-px);
    font-size: 1.5rem;
    color: var(--yellow);
    padding-top: 2px;
}

.proc-item strong {
    display: block;
    font-family: var(--font-px);
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1;
}

.proc-item p {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 54ch;
}

/* ── STATS BAR ── */
.s-stats { width: 100%; }

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
}

.stat {
    padding: 44px 28px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat strong {
    display: block;
    font-family: var(--font-px);
    font-size: clamp(2rem, 4vw, 3.8rem);
    color: var(--yellow);
    margin-bottom: 8px;
    line-height: 1;
}

.stat span { font-size: 0.82rem; color: var(--muted); }

/* ── CONTACT ── */
.s-contact { text-align: center; }

.contact-btns {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── BUTTONS ── */
.code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    transition: border-color 160ms, color 160ms, background 160ms;
    cursor: pointer;
}

.code-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.code-btn-primary {
    background: var(--cyan);
    color: #111;
    border-color: var(--cyan);
}

.code-btn-primary:hover {
    background: transparent;
    color: var(--cyan);
}

/* ── FOOTER ── */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 48px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { transition: color 160ms; }
.footer-links a:hover { color: var(--yellow); }

.footer-brand { display: flex; align-items: center; }

.footer-logo {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
    padding: 5px 12px;
    transition: opacity 160ms;
}

.footer-brand:hover .footer-logo { opacity: 0.85; }

/* ── ACCORDION ── */
.accordion {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.acc-item {
    border-bottom: 1px solid var(--border);
}

.acc-item:first-child {
    border-top: 1px solid var(--border);
}

.acc-q {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 14px 24px;
    list-style: none;
    cursor: pointer;
    font-family: var(--font-px);
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    color: var(--text);
    line-height: 1;
    transition: background 200ms, color 200ms;
    user-select: none;
    min-height: unset;
}

.acc-q::-webkit-details-marker { display: none; }

.acc-q::before {
    content: '{" ';
    color: var(--text);
    opacity: 0.55;
    flex-shrink: 0;
    transition: color 200ms, opacity 200ms;
}

.acc-q::after {
    content: ' "}';
    color: var(--text);
    opacity: 0.55;
    flex-shrink: 0;
    transition: color 200ms, opacity 200ms;
}

.acc-q:hover,
.acc-item[open] > .acc-q {
    background: var(--hover-bg, var(--yellow));
    color: #111111;
}

.acc-q:hover::before,
.acc-q:hover::after,
.acc-item[open] > .acc-q::before,
.acc-item[open] > .acc-q::after {
    color: #111111;
    opacity: 1;
}

.acc-q:hover .acc-num,
.acc-item[open] > .acc-q .acc-num {
    color: #111111;
}

.acc-num {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.14em;
    min-width: 26px;
    margin-right: 0.4em;
    transition: color 200ms;
}

.acc-body {
    padding: 16px 24px 28px 24px;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.8;
    border-top: 1px solid var(--border);
}

.acc-body p { margin-bottom: 10px; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-body strong { color: var(--text); }

.acc-ol, .acc-ul {
    padding-left: 1.4em;
    margin: 10px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acc-ol { list-style: decimal; }
.acc-ul { list-style: none; }

.acc-ul li::before {
    content: '> ';
    color: var(--cyan);
    font-family: var(--font-mono);
}

.acc-note {
    color: var(--muted);
    font-size: 0.86rem;
}

/* ── FAQ ── */
.faq-list {
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-q {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 14px 24px;
    list-style: none;
    cursor: pointer;
    font-family: var(--font-px);
    font-size: clamp(1.4rem, 2.5vw, 2.4rem);
    color: var(--text);
    line-height: 1.2;
    transition: background 200ms, color 200ms;
    user-select: none;
    min-height: unset;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::before {
    content: '{" ';
    color: var(--text);
    opacity: 0.55;
    flex-shrink: 0;
    transition: color 200ms, opacity 200ms;
}

.faq-q::after {
    content: ' "}';
    color: var(--text);
    opacity: 0.55;
    flex-shrink: 0;
    transition: color 200ms, opacity 200ms;
}

.faq-q:hover,
.faq-item[open] > .faq-q {
    background: var(--hover-bg, var(--yellow));
    color: #111111;
}

.faq-q:hover::before,
.faq-q:hover::after,
.faq-item[open] > .faq-q::before,
.faq-item[open] > .faq-q::after {
    color: #111111;
    opacity: 1;
}

.faq-q:hover .faq-num,
.faq-item[open] > .faq-q .faq-num {
    color: #111111;
}

.faq-num {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.14em;
    min-width: 24px;
    margin-right: 0.4em;
    transition: color 200ms;
}

.faq-a {
    padding: 16px 24px 22px 24px;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.8;
    border-top: 1px solid var(--border);
}

/* ── CONTACT CVR ── */
.contact-cvr {
    margin-top: 28px;
    font-size: 0.82rem;
    color: var(--muted);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
}

.contact-reveal-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 250ms ease, max-height 250ms ease, margin-top 250ms ease;
}

.contact-reveal-row.is-visible {
    opacity: 1;
    max-height: 2em;
    margin-top: 14px;
}

.contact-reveal-text {
    color: var(--cyan);
}

.contact-copy-btn {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 3px 9px;
    border: 1px solid var(--cyan);
    background: transparent;
    color: var(--cyan);
    cursor: pointer;
    transition: background 160ms, color 160ms;
    line-height: 1.4;
}

.contact-copy-btn:hover {
    background: #f5d800;
    border-color: #f5d800;
    color: #111;
}

.contact-copy-btn.copied {
    border-color: var(--muted);
    color: var(--muted);
}

/* ── REVEAL ANIMATION ── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ── BREAKPOINTS ── */
@media (max-width: 1000px) {
    .s-content { max-width: 100%; }
    .svc-row { font-size: clamp(2.2rem, 7vw, 4rem); }
    .sec-with-img .sec-img { flex: 0 0 38%; max-width: 38%; }
    .sec-with-img .sec-text-panel { flex: 0 0 38%; max-width: 38%; }
}

@media (max-width: 760px) {
    .sec-with-img { flex-direction: column !important; }
    .sec-with-img .sec-img { flex: none; max-width: 100%; margin: 20px 0 0 !important; }
    .sec-img img { min-height: 220px; height: 220px; }
    :root { --gutter-w: 32px; }

    .gutter-nums { font-size: 0.6rem; padding: 68px 6px 40px 2px; }

    .site-header {
        padding: 14px 20px;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: space-between;
    }

    .site-nav {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        gap: 12px 20px;
        font-size: 0.82rem;
        margin-left: 0;
    }

    .lang-switcher { margin-left: auto; }

    .s-hero { padding: 48px 20px 60px; }

    .s-content { padding: 56px 24px; }
    .s-full { padding: 0; }
    .s-full .sec-body { padding: 56px 24px; }

    .sec-with-img { flex-direction: column !important; }
    .sec-with-img .sec-img { flex: none; max-width: 100%; border-left: none !important; border-right: none !important; border-top: 1px solid var(--border); }
    .sec-with-img .sec-text-panel { flex: none; max-width: 100%; border-left: none !important; border-right: none !important; border-top: 1px solid var(--border); }
    .sec-img img { min-height: 260px; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-body {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 20px;
    }

    .svc-row { padding: 14px 16px; }

    .machine-grid { grid-template-columns: 1fr; }
    .auto-photos { grid-template-columns: 1fr; }
    .auto-photo { height: 300px; }
    .auto-cards { grid-template-columns: 1fr; }
    .auto-wrap { padding: 56px 24px; }

    .stats-bar { grid-template-columns: repeat(2, 1fr); }

    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(3) { border-top: 1px solid var(--border); }
    .stat:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 12px;
    }

    .contact-btns { flex-direction: column; width: 100%; }
    .code-btn { width: 100%; }
    .hero-cards { max-width: 100%; }
    .hero-card { aspect-ratio: auto; padding: 24px 20px; }
}

@media (max-width: 480px) {
    :root { --gutter-w: 0px; }
    .gutter { display: none; }
    .site-header { padding: 14px 16px; }
    .s-content { padding: 48px 16px; }
    .s-hero { padding: 40px 16px 50px; }
    .site-footer { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-cursor { animation: none; }
    .scroll-v { animation: none; }
    .site-nav a::after { transition: none; }
    .code-btn, .svc-row, .machine-card { transition: none; }
}

