/* ===========================
   NEME5WEB — Main Stylesheet
   Dark Industrial + Bold Typography
   =========================== */

:root {
    --bg: #0a0a0b;
    --bg-2: #111114;
    --bg-3: #1a1a1f;
    --bg-card: #141418;
    --border: #2a2a32;
    --border-light: #3a3a44;
    --text: #f0f0f4;
    --text-muted: #8888a0;
    --text-dim: #5a5a70;
    --accent: #e63946;
    --accent-2: #c1121f;
    --accent-glow: rgba(230, 57, 70, 0.25);
    --gold: #f4a261;
    --gold-dim: rgba(244, 162, 97, 0.15);
    --success: #2d6a4f;
    --success-light: #52b788;
    --warning: #e9c46a;
    --error: #e63946;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Golos Text', sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.5);
    --shadow-accent: 0 0 32px rgba(230, 57, 70, 0.2);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-h: 70px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(10, 10, 11, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: border-color var(--transition);
}

.navbar.scrolled { border-bottom-color: var(--accent); }

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-text {
    display: flex;
    align-items: center;
    line-height: 1;
    letter-spacing: 0;
    gap: 0;
}
.logo-neme5 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--accent);
    letter-spacing: 0.5px;
}
.logo-web {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    letter-spacing: 0.3px;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-3); }
.nav-link.active { color: var(--accent); }
.nav-admin { color: var(--gold) !important; }

.nav-btn {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius);
    transition: all var(--transition);
    letter-spacing: 0.3px;
}
.nav-btn--outline {
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}
.nav-btn--outline:hover { color: var(--text); border-color: var(--text-muted); }
.nav-btn--solid {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}
.nav-btn--solid:hover { background: var(--accent-2); }

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-avatar {
    width: 32px; height: 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.user-name { font-size: 13px; color: var(--text-muted); }

/* FAB Menu button (mobile only) */
.menu-fab {
    display: none;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 997;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px 0 0 10px;
    padding: 14px 8px;
    cursor: pointer;
    box-shadow: -2px 0 16px rgba(0,0,0,0.35);
    transition: background var(--transition), transform var(--transition);
}
.menu-fab:hover { background: #c1121f; }
.menu-fab-icon { font-size: 18px; line-height: 1; }
.menu-fab-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    line-height: 1;
}

/* ====== MESSAGES ====== */
.messages-wrapper {
    position: fixed;
    top: calc(var(--nav-h) + 12px);
    right: 16px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
    width: calc(100vw - 32px);
}

.message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 14px;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow);
}
.message--success { border-color: var(--success-light); }
.message--error { border-color: var(--error); }
.message-icon { font-size: 16px; flex-shrink: 0; }
.message--success .message-icon { color: var(--success-light); }
.message--error .message-icon { color: var(--error); }
.message-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ====== MAIN CONTENT ====== */
.main-content { padding-top: var(--nav-h); min-height: calc(100vh - 200px); }

/* ====== FOOTER ====== */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    margin-top: 80px;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: start;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { text-align: right; }
.footer-copy p { color: var(--text-dim); font-size: 13px; margin-bottom: 4px; }

/* ====== SECTIONS ====== */
.section { padding: 80px 0; }
.section--hero { padding: 0; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: var(--gold-dim);
    border: 1px solid rgba(244, 162, 97, 0.3);
    border-radius: 100px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title span { color: var(--accent); }

.section-subtitle {
    color: var(--text-muted);
    font-size: clamp(15px, 2vw, 18px);
    max-width: 600px;
    line-height: 1.7;
}

/* ====== HERO ====== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    padding: 120px 24px 80px calc((100vw - 1280px) / 2 + 24px);
    position: relative;
    z-index: 1;
}

@media (max-width: 1280px) { .hero-content { padding-left: 24px; } }

.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-eyebrow::before {
    content: '';
    width: 32px; height: 2px;
    background: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(52px, 8vw, 110px);
    line-height: 0.92;
    letter-spacing: 3px;
    margin-bottom: 32px;
}

.hero-title .line-accent { color: var(--accent); display: block; }
.hero-title .line-muted { color: var(--text-dim); display: block; }

.hero-desc {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.75;
    max-width: 460px;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

.hero-code-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    width: 440px;
    box-shadow: var(--shadow), -20px 20px 60px rgba(0,0,0,0.4);
    position: relative;
}

.code-header {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.code-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-line { display: flex; gap: 8px; }
.code-kw { color: #c792ea; }
.code-fn { color: #82aaff; }
.code-str { color: #c3e88d; }
.code-comment { color: #546e7a; font-style: italic; }
.code-num { color: var(--gold); }
.code-indent { padding-left: 20px; }
.code-indent2 { padding-left: 40px; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--accent);
    letter-spacing: 1px;
    line-height: 1;
}
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
}
.btn--primary:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}
.btn--outline:hover {
    border-color: var(--text-muted);
    background: var(--bg-3);
}

.btn--ghost {
    background: var(--bg-3);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn--ghost:hover { color: var(--text); border-color: var(--border-light); }

.btn--gold {
    background: var(--gold);
    color: #0a0a0b;
}
.btn--gold:hover { background: #e08a3d; transform: translateY(-1px); }

.btn--danger {
    background: rgba(230, 57, 70, 0.15);
    color: var(--accent);
    border: 1px solid rgba(230, 57, 70, 0.3);
}
.btn--danger:hover { background: var(--accent); color: #fff; }

.btn--success {
    background: rgba(82, 183, 136, 0.15);
    color: var(--success-light);
    border: 1px solid rgba(82, 183, 136, 0.3);
}
.btn--success:hover { background: var(--success-light); color: #0a0a0b; }

.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ====== CARDS ====== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--border-light); }

/* ====== GRID LAYOUTS ====== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ====== BADGE ====== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}
.badge--red { background: rgba(230,57,70,0.15); color: var(--accent); border: 1px solid rgba(230,57,70,0.25); }
.badge--yellow { background: rgba(233,196,106,0.15); color: var(--warning); border: 1px solid rgba(233,196,106,0.25); }
.badge--green { background: rgba(82,183,136,0.15); color: var(--success-light); border: 1px solid rgba(82,183,136,0.25); }
.badge--gold { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(244,162,97,0.3); }
.badge--muted { background: var(--bg-3); color: var(--text-muted); border: 1px solid var(--border); }

/* ====== FORMS ====== */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control::placeholder { color: var(--text-dim); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

.form-error {
    font-size: 12px;
    color: var(--accent);
    margin-top: 6px;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition);
}
.form-check:hover { border-color: var(--border-light); }
.form-check input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}
.form-check-label { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.form-check-label strong { color: var(--text); display: block; margin-bottom: 2px; }

/* Feature Checkboxes Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}
.feature-item:hover { border-color: var(--border-light); background: var(--bg-2); }
.feature-item input[type="checkbox"] { accent-color: var(--accent); margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.feature-item-info { flex: 1; }
.feature-item-name { font-size: 14px; font-weight: 500; color: var(--text); }
.feature-item-price { font-size: 13px; color: var(--gold); margin-top: 2px; }
.feature-item-desc { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.feature-item.selected { border-color: var(--accent); background: rgba(230,57,70,0.05); }

/* Radio rating */
.rating-group {
    display: flex;
    gap: 8px;
}
.rating-radio { display: none; }
.rating-label {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 18px;
    transition: all var(--transition);
}
.rating-label:hover { border-color: var(--gold); background: var(--gold-dim); }
.rating-radio:checked + .rating-label { border-color: var(--gold); background: var(--gold-dim); color: var(--gold); }

/* Select */
select.form-control { cursor: pointer; }

/* ====== PAGE HEADERS ====== */
.page-header {
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 60px;
}

/* ====== DIVIDER ====== */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 40px 0;
}

/* ====== AUTH PAGES ====== */
.auth-wrapper {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -1px; left: 24px; right: 24px; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 0 0 3px 3px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
    font-size: 32px;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 36px;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 36px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}
.auth-footer a { color: var(--accent); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ====== PROJECTS PAGE ====== */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
}

.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.project-img-placeholder {
    width: 100%;
    height: 220px;
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 48px;
}

.project-body { padding: 24px; }
.project-title {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.project-desc { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.project-actions { display: flex; gap: 10px; align-items: center; }

/* ====== REVIEWS ====== */
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color var(--transition);
}
.review-card:hover { border-color: var(--border-light); }

.review-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review-avatar {
    width: 44px; height: 44px;
    background: var(--bg-3);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}
.review-meta { flex: 1; }
.review-author { font-weight: 600; font-size: 15px; }
.review-date { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.review-stars { display: flex; gap: 3px; font-size: 16px; }
.star-filled { color: var(--gold); }
.star-empty { color: var(--bg-3); }

.review-type-badge { margin-bottom: 12px; }
.review-text { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.review-project { font-size: 13px; color: var(--text-dim); margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }

/* ====== EMPTY STATE ====== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}
.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.3; }
.empty-title { font-family: var(--font-display); font-size: 28px; letter-spacing: 1px; margin-bottom: 8px; }
.empty-text { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }

/* ====== ORDER PAGE ====== */
.order-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.order-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}

.price-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.price-title {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.price-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.price-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); }
.price-row .price-val { color: var(--text); font-weight: 500; }
.price-divider { height: 1px; background: var(--border); margin: 16px 0; }
.price-total { display: flex; justify-content: space-between; align-items: center; }
.price-total-label { font-weight: 600; font-size: 15px; }
.price-total-value {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--accent);
    letter-spacing: 1px;
}
.price-discount { color: var(--success-light); font-size: 13px; margin-top: 8px; text-align: right; }

/* ====== ADMIN DASHBOARD ====== */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - var(--nav-h));
    gap: 0;
}

.admin-sidebar {
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    padding: 32px 0;
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
}

.admin-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0 24px 12px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav-item:hover { color: var(--text); background: var(--bg-3); }
.admin-nav-item.active { color: var(--accent); background: rgba(230,57,70,0.08); border-left-color: var(--accent); }
.admin-nav-icon { font-size: 16px; width: 20px; text-align: center; }

.admin-content { padding: 32px; overflow: auto; }

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-page-title {
    font-family: var(--font-display);
    font-size: 40px;
    letter-spacing: 2px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
}
.stat-card--red::before { background: var(--accent); }
.stat-card--yellow::before { background: var(--warning); }
.stat-card--green::before { background: var(--success-light); }
.stat-card--gold::before { background: var(--gold); }

.stat-card-label { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.stat-card-value { font-family: var(--font-display); font-size: 48px; letter-spacing: 2px; line-height: 1; }
.stat-card--red .stat-card-value { color: var(--accent); }
.stat-card--yellow .stat-card-value { color: var(--warning); }
.stat-card--green .stat-card-value { color: var(--success-light); }
.stat-card--gold .stat-card-value { color: var(--gold); }

/* Table */
.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

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

.table-title { font-family: var(--font-display); font-size: 22px; letter-spacing: 1px; }

table { width: 100%; border-collapse: collapse; }
th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}
td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ====== TABS ====== */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; overflow-x: auto; }
.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ====== MODAL ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 560px;
    transform: translateY(20px);
    transition: transform var(--transition);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.modal-title { font-family: var(--font-display); font-size: 28px; letter-spacing: 1px; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-3); color: var(--text); }

/* ====== SERVICES SECTION ====== */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { border-color: var(--border-light); transform: translateY(-4px); }

.service-icon { font-size: 36px; margin-bottom: 20px; }
.service-title { font-family: var(--font-display); font-size: 24px; letter-spacing: 1px; margin-bottom: 12px; }
.service-desc { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ====== PROCESS SECTION ====== */
.process-list { display: flex; flex-direction: column; gap: 0; }
.process-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.process-item:last-child { border-bottom: none; }
.process-num {
    font-family: var(--font-display);
    font-size: 72px;
    color: var(--bg-3);
    line-height: 1;
    letter-spacing: -2px;
    text-align: center;
}
.process-body { padding-top: 8px; }
.process-title { font-family: var(--font-display); font-size: 28px; letter-spacing: 1px; margin-bottom: 10px; }
.process-desc { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ====== TECH STACK ====== */
.tech-list { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-badge {
    padding: 8px 16px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
}
.tech-badge:hover { color: var(--text); border-color: var(--border-light); }

/* ====== UTILITY ====== */
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }

/* ====== LOADING ====== */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.5s ease forwards; }

/* ====== LARGE SCREENS (1600px+, 4K) ====== */
@media (min-width: 1600px) {
    .container { max-width: 1480px; }
    .footer-container { max-width: 1480px; }
    .hero-content { padding-left: calc((100vw - 1480px) / 2 + 24px); }
}
@media (min-width: 1920px) {
    .container { max-width: 1760px; }
    .footer-container { max-width: 1760px; }
    .hero-content { padding-left: calc((100vw - 1760px) / 2 + 24px); }
    .hero-title { font-size: clamp(80px, 6vw, 130px); }
}
@media (min-width: 2560px) {
    .container { max-width: 2200px; }
    .footer-container { max-width: 2200px; }
    .hero-content { padding-left: calc((100vw - 2200px) / 2 + 24px); }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; overflow: visible; }
    .hero-visual { height: 380px; overflow: visible; }
    .hero-content { padding: 120px 24px 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .order-layout { grid-template-columns: 1fr; }
    .order-sidebar { position: static; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: static;
        height: auto; overflow-y: visible;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px; padding: 8px;
        border-right: none; border-bottom: 1px solid var(--border);
        background: var(--bg-2);
    }
    .admin-sidebar-title { display: none; }
    .admin-sidebar > div { grid-column: 1 / -1; padding: 4px 8px 2px; margin-top: 0 !important; }
    .admin-nav-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px; padding: 8px 4px;
        border-left: none; border-bottom: 2px solid transparent;
        border-radius: var(--radius);
        font-size: 11px; text-align: center; line-height: 1.2;
    }
    .admin-nav-item.active { background: rgba(230,57,70,0.08); border-bottom-color: var(--accent); color: var(--accent); }
    .admin-nav-icon { font-size: 20px; width: auto; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .footer-links { flex-direction: row; justify-content: center; }
    .footer-copy { text-align: center; }
}

@media (max-width: 900px) {
    .menu-fab { display: flex; }

    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 998;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 80vw);
        height: 100vh;
        height: 100dvh;
        background: var(--bg-2);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: calc(var(--nav-h) + 16px) 12px 48px;
        transform: translateX(100%);
        pointer-events: none;
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -4px 0 24px rgba(0,0,0,0.3);
        box-sizing: border-box;
    }
    .nav-links.open { transform: translateX(0); pointer-events: all; }
    .nav-links li { display: block; width: 100%; }
    .nav-link { display: block; padding: 12px 14px; width: 100%; border-radius: var(--radius); box-sizing: border-box; font-size: 15px; }
    .nav-btn { display: block; padding: 12px 14px; width: 100%; text-align: center; box-sizing: border-box; margin-top: 4px; font-size: 15px; border-radius: var(--radius); }
    .nav-user { display: flex; align-items: center; padding: 12px 14px; width: 100%; box-sizing: border-box; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .process-item { grid-template-columns: 50px 1fr; gap: 20px; }
    .process-num { font-size: 48px; }
    .auth-card { padding: 32px 24px; }
    .admin-content { padding: 20px 16px; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 12px; }
    .section { padding: 60px 0; }
    table { font-size: 13px; }
    th, td { padding: 10px 12px; }
}

/* ====== HERO SHOWCASE (replaces code block) ====== */
.hero-showcase {
    position: relative;
    width: 400px;
    height: 360px;
}

.showcase-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
    width: 280px;
}
.showcase-card:hover { border-color: var(--accent); transform: translateX(6px); }

.showcase-card--top  { top: 0;    left: 0; }
.showcase-card--mid  { top: 120px; left: 60px; border-color: var(--border-light); }
.showcase-card--bot  { top: 240px; left: 20px; }

.showcase-icon { font-size: 32px; flex-shrink: 0; }
.showcase-label { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.showcase-sub   { font-size: 12px; color: var(--text-dim); }

.showcase-badge {
    position: absolute;
    top: 60px; right: -10px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(230, 57, 70, 0.4);
    animation: pulse 3s ease-in-out infinite;
}
.badge-num { font-family: var(--font-display); font-size: 28px; line-height: 1; }
.badge-txt { font-size: 11px; line-height: 1.4; margin-top: 4px; opacity: 0.9; }

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

/* ====== FORM SECTION CARD ====== */
.form-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.form-section-title {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* ====== MY ORDERS PAGE ====== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition);
}
.order-card:hover { border-color: var(--border-light); }

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.order-card-id {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--text);
}
.order-hash { color: var(--accent); }

.order-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.order-date {
    font-size: 13px;
    color: var(--text-dim);
}

/* Status badge */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.order-status-badge.status-new {
    background: rgba(233,196,106,0.12);
    color: var(--warning);
    border: 1px solid rgba(233,196,106,0.3);
}
.status-new .status-dot {
    background: var(--warning);
    box-shadow: 0 0 6px var(--warning);
    animation: blink-dot 1.5s ease-in-out infinite;
}

.order-status-badge.status-in_progress {
    background: rgba(130,170,255,0.12);
    color: #82aaff;
    border: 1px solid rgba(130,170,255,0.3);
}
.status-in_progress .status-dot {
    background: #82aaff;
    box-shadow: 0 0 6px #82aaff;
    animation: blink-dot 1s ease-in-out infinite;
}

.order-status-badge.status-completed {
    background: rgba(82,183,136,0.12);
    color: var(--success-light);
    border: 1px solid rgba(82,183,136,0.3);
}
.status-completed .status-dot { background: var(--success-light); }

.order-status-badge.status-delivered {
    background: var(--gold-dim);
    color: var(--gold);
    border: 1px solid rgba(244,162,97,0.3);
}
.status-delivered .status-dot { background: var(--gold); }

@keyframes blink-dot {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* Progress track */
.order-progress {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}

.progress-track {
    display: flex;
    align-items: center;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.progress-step span {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.progress-step.done span { color: var(--text-muted); }

.ps-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--bg-3);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}
.progress-step.done .ps-dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-bottom: 22px;
    transition: background 0.3s ease;
    min-width: 40px;
}
.progress-line.active { background: var(--accent); }

/* Body */
.order-card-body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.order-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.order-feature-tag {
    padding: 5px 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-muted);
}
.order-feature-tag em {
    font-style: normal;
    color: var(--gold);
    margin-left: 6px;
}

.order-section-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
}

.order-section--admin .order-section-label { color: var(--gold); }
.order-section--admin .order-section-text {
    border-color: rgba(244,162,97,0.25);
    background: rgba(244,162,97,0.05);
}

.order-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.order-price-value {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--gold);
    letter-spacing: 1px;
    line-height: 1.1;
    margin-top: 4px;
}
.order-price-value--pending {
    color: var(--text-dim);
    font-size: 20px;
}

.order-discount-note {
    font-size: 12px;
    color: var(--success-light);
    margin-top: 4px;
}

.order-actions { display: flex; gap: 10px; align-items: center; }

@media (max-width: 640px) {
    .order-card-header { padding: 16px 20px; }
    .order-progress { padding: 20px; }
    .order-card-body { padding: 20px; }
    .progress-line { min-width: 20px; }
    .progress-step span { font-size: 10px; }
}

/* ── Logo icon ── */
.nav-logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
                filter 0.3s ease;
}
.nav-logo:hover .nav-logo-icon {
    transform: rotate(-6deg) scale(1.08);
    filter: drop-shadow(0 0 10px rgba(230,57,70,0.7));
}

/* ====== АДАПТИВНОСТЬ — глобальные фиксы ====== */

/* Предотвращаем обрезание слов везде */
* { box-sizing: border-box; }
body { overflow-x: hidden; }

h1, h2, h3, h4, h5, h6,
.section-title, .hero-title, .stat-card-value,
.price-total-value, .order-price-value {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

p, span, a, li, td, th, label {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Таблицы — не обрезаются */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { min-width: 100%; }
td, th { white-space: nowrap; }
td p, td span { white-space: normal; }

/* Контейнер — защита от переполнения */
.container { padding-left: 16px; padding-right: 16px; }

/* Форма заказа — мобильная */
@media (max-width: 860px) {
    .order-layout { grid-template-columns: 1fr !important; }
    .order-sidebar { position: static !important; }
}

/* Форма редактирования заказа */
@media (max-width: 860px) {
    .order-layout { flex-direction: column; }
}

/* Навбар — нет переполнения */
.nav-container { min-width: 0; }
.nav-logo { min-width: 0; flex-shrink: 0; }

/* Мобильный навбар — ссылки не обрезаются */
@media (max-width: 900px) {
    .nav-links { max-height: none; overflow-y: auto; }
    .nav-link, .nav-btn { white-space: normal; overflow: visible; text-overflow: unset; }
}

/* Hero — адаптив */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr !important;
        min-height: 100svh !important;
        padding: 0 !important;
        overflow-x: clip !important;   /* не даём бейджам расширять страницу */
        overflow-y: visible !important; /* телефон может выходить вниз */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    .hero-content {
        padding: 90px 20px 24px !important;
        text-align: center;
        flex: 0 0 auto;
    }
    .hero-visual {
        display: flex !important;
        height: 370px !important;   /* scale(0.82)*420px=344px + запас для бейджей */
        overflow: visible !important;
        flex: 0 0 370px;
    }
    .hero-title { font-size: clamp(36px, 9vw, 72px) !important; margin-bottom: 20px !important; }
    .hero-desc { font-size: 15px !important; margin-bottom: 28px !important; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
}
@media (max-width: 600px) {
    .hero-content { padding: 80px 16px 16px !important; }
    .hero-title { font-size: clamp(32px, 9vw, 56px) !important; margin-bottom: 16px !important; }
    .hero-desc { font-size: 14px !important; margin-bottom: 20px !important; max-width: 100% !important; }
    .hero-visual { height: 310px !important; flex: 0 0 310px; } /* scale(0.72)*420=302px + запас */
}
@media (max-width: 400px) {
    .hero-visual { height: 250px !important; flex: 0 0 250px; } /* scale(0.56)*420=235px + запас */
}

/* Секции — отступы на мобиле */
@media (max-width: 600px) {
    .section { padding: 48px 0; }
    .page-header { padding: 60px 0 32px; }
    .section-title { font-size: clamp(28px, 8vw, 56px); }
    .form-section-card { padding: 20px 16px; }
    .why-grid { grid-template-columns: 1fr !important; }
    .ltype-list { grid-template-columns: 1fr !important; }
    .process-steps { grid-template-columns: 1fr !important; }
    .tech-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .order-layout { gap: 20px; }
}

/* Кастомные функции — мобиль */
@media (max-width: 560px) {
    .custom-feat-row { flex-wrap: wrap; }
    .custom-feat-row input[type="number"] { width: 100%; }
    .custom-feat-row .btn { width: 100%; justify-content: center; }
}

/* Прогресс-бар заказа — мобиль */
@media (max-width: 480px) {
    .progress-track { gap: 0; }
    .progress-step span { display: none; }
    .progress-line { min-width: 16px; }
}

/* Форма update_order sidebar */
@media (max-width: 860px) {
    .order-sidebar { width: 100% !important; }
    .price-summary { padding: 16px; }
}

/* Телефон — виден всегда */
.user-name { 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
    max-width: 100px;
}

/* Логотип — мобиль */
@media (max-width: 400px) {
    .logo-neme5, .logo-web { font-size: 18px; }
    .nav-logo-icon { width: 30px; height: 30px; }
    .nav-logo { gap: 7px; }
}