* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #08080f;
    --bg-secondary: #0c0c18;
    --surface: #111122;
    --surface-hover: #181830;
    --border: #1c1c38;
    --border-light: #242450;
    --text: #f0f0f5;
    --text-secondary: #a0a0c0;
    --text-muted: #6868a0;
    --accent: #e85d3a;
    --accent-hover: #ff6b4a;
    --accent-glow: rgba(232, 93, 58, 0.2);
    --accent-light: rgba(232, 93, 58, 0.06);
    --blue: #5b8def;
    --blue-glow: rgba(91, 141, 239, 0.2);
    --blue-light: rgba(91, 141, 239, 0.06);
    --green: #34c97e;
    --green-light: rgba(52, 201, 126, 0.08);
    --gradient-text: linear-gradient(135deg, #e0e0f0 0%, #8888b0 100%);
    --gradient-card: linear-gradient(135deg, rgba(232, 93, 58, 0.08) 0%, rgba(91, 141, 239, 0.08) 100%);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow: 0 1px 3px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 1px 4px rgba(0,0,0,0.6), 0 12px 50px rgba(0,0,0,0.5);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 38px;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 52px;
    font-weight: 400;
}

.page {
    padding: 80px 0;
    animation: pageIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    background: rgba(8, 8, 15, 0.92);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo-img {
    height: 34px;
    transition: transform 0.2s, filter 0.2s;
    flex-shrink: 0;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.3);
}

nav {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    position: relative;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.2s;
}

nav a:hover {
    color: #fff;
    background: var(--surface-hover);
}

nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

nav a.active-page {
    background: #fff;
    color: #000;
    -webkit-text-fill-color: #000;
    font-weight: 600;
}

nav a.active-page::after {
    display: none;
}

nav a.btn-header {
    background: #fff;
    color: #000;
    -webkit-text-fill-color: #000;
    font-weight: 600;
    box-shadow: none;
}

nav a.btn-header:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

nav a.btn-header::after {
    display: none;
}

.hero {
    padding: 100px 0 60px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 19px;
    margin-bottom: 32px;
    max-width: 460px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #fff;
    color: #000;
    padding: 14px 28px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 14px 28px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    background: transparent;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.04);
}

.hero-animation-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 32px 28px;
    width: 320px;
    height: 300px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.anim-scene {
    width: 100%;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.scene-step {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scene-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: none;
    -webkit-text-fill-color: #fff;
}

.scene-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.scene-desc strong {
    color: #fff;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.anim-progress {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.anim-progress .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-progress .dot.active {
    background: #fff;
    width: 32px;
    border-radius: 4px;
}

.anim-progress .dot.done {
    background: rgba(255,255,255,0.4);
}

.steps-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-new {
    background: var(--surface);
    border-radius: 20px;
    padding: 32px 24px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-new:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: var(--shadow-lg);
}

.step-new .step-number {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-new h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    background: none;
    -webkit-text-fill-color: #fff;
}

.step-new p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.pricing {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.price-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    width: 320px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,255,255,0.1);
}

.price-card.popular {
    border-color: rgba(255,255,255,0.2);
}

.popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 5px 18px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
}

.price-value {
    font-size: 40px;
    font-weight: 800;
    margin: 14px 0;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-card ul {
    list-style: none;
    margin: 22px 0 28px;
    text-align: left;
}

.price-card ul li {
    padding: 7px 0;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-card ul li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
}

.order-options {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.order-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px 24px;
    width: 260px;
    text-align: center;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.order-card:hover {
    border-color: rgba(255,255,255,0.2);
}

.order-card.active {
    border-color: #fff;
    background: rgba(255,255,255,0.03);
}

.order-card-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.order-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.order-card .price {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.order-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    color: #000;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 700;
}

.order-form {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 560px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.hidden {
    display: none !important;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border 0.2s;
    font-family: var(--font);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255,255,255,0.3);
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-row .form-group {
    flex: 1;
}

textarea {
    height: 100px;
    resize: vertical;
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.delivery-types {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    background: var(--bg);
    transition: all 0.2s;
}

.delivery-option:hover {
    border-color: rgba(255,255,255,0.2);
}

.delivery-option.active {
    border-color: #fff;
    background: rgba(255,255,255,0.03);
}

.delivery-option input {
    display: none;
}

.delivery-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.delivery-info strong {
    display: block;
    font-size: 14px;
}

.delivery-info small {
    color: var(--text-muted);
    font-size: 12px;
}

.delivery-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.2s;
    margin-left: auto;
    flex-shrink: 0;
}

.delivery-option.active .delivery-check {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.help-text {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    line-height: 1.9;
    font-size: 15px;
    color: var(--text-secondary);
}

.help-text b {
    color: #fff;
}

.help-text ul {
    padding-left: 22px;
    margin: 10px 0;
}

footer {
    background: var(--bg-secondary);
    padding: 56px 0 20px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-col h4 {
    margin-bottom: 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: none;
    -webkit-text-fill-color: var(--text-muted);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.type-btn {
    flex: 1;
    padding: 13px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    background: var(--bg);
    transition: all 0.2s;
}

.type-btn.active {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.03);
}

.type-btn:hover {
    border-color: rgba(255,255,255,0.3);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg);
}

.form-success {
    display: none;
    text-align: center;
    color: var(--green);
    margin-top: 18px;
    font-size: 15px;
    background: var(--green-light);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(52, 201, 126, 0.15);
}

.form-success a {
    color: var(--green);
    text-decoration: underline;
    font-weight: 600;
}

/* ===== Hamburger Menu ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger:hover {
    background: var(--surface-hover);
}
.nav-open .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-open .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== Nav Links Wrapper ===== */
.nav-links {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    h2 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .page {
        padding: 40px 0;
    }

    header .container {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
    }

    nav {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    body.nav-open-body {
        overflow: hidden;
    }

    nav.nav-open {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 12px 16px 20px;
        z-index: 99;
        box-shadow: var(--shadow-lg);
        flex-wrap: wrap;
        justify-content: center;
    }

    nav.nav-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: 100%;
    }

    nav.nav-open .nav-links a {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 15px;
        border-radius: 12px;
    }

    nav.nav-open .nav-links a:hover {
        background: var(--surface-hover);
    }

    nav.nav-open .nav-links a::after {
        display: none;
    }

    nav.nav-open .nav-right {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
        margin-top: 10px;
    }

    nav.nav-open .nav-right .cart-btn,
    nav.nav-open .nav-right .btn-header {
        font-size: 14px;
        padding: 10px 20px;
        border-radius: 12px;
        text-align: center;
    }

    nav a {
        font-size: 12px;
        padding: 6px 10px;
    }

    .logo-img {
        height: 30px;
    }

    .hero {
        padding: 60px 0 30px;
    }

    .hero .container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-animation-card {
        width: 100%;
        max-width: 340px;
        height: 260px;
        padding: 24px 22px;
    }

    .scene-step {
        font-size: 48px;
    }

    .scene-title {
        font-size: 18px;
    }

    .scene-desc {
        font-size: 12px;
    }

    .btn-primary,
    .btn-outline {
        padding: 12px 22px;
        font-size: 14px;
    }

    .steps-new {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .step-new {
        padding: 24px 18px;
    }

    .step-new .step-number {
        font-size: 44px;
    }

    .step-new h3 {
        font-size: 16px;
    }

    .pricing {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .price-card {
        width: 100%;
        padding: 26px 20px;
    }

    .price-value {
        font-size: 32px;
    }

    .order-options {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .order-card {
        width: 100%;
        padding: 22px;
    }

    .order-form {
        padding: 24px 16px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group input,
    .form-group textarea {
        padding: 11px;
        font-size: 14px;
    }

    .delivery-option {
        padding: 12px 14px;
    }

    .delivery-icon {
        font-size: 22px;
    }

    footer {
        padding: 36px 0 14px;
    }

    .footer-content {
        gap: 20px;
        flex-direction: column;
    }
}

.btn-chat, .btn-cancel, .btn-logout, .btn-primary, .btn-outline, button, .order-item, .delivery-option, .type-btn, .order-card, .coop-card {
    cursor: pointer;
}

.help-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.help-step {
    background: var(--surface);
    border-radius: 20px;
    padding: 24px 28px;
    border: 1px solid var(--border);
    display: flex;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-step:hover {
    border-color: rgba(255,255,255,0.15);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.help-num {
    font-size: 20px;
    font-weight: 800;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    background: none;
    -webkit-text-fill-color: #fff;
}

.help-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.help-content strong {
    color: #fff;
    font-weight: 600;
}

.help-content a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.help-content a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .help-step {
        padding: 20px 18px;
        gap: 14px;
    }
    
    .help-num {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }
    
    .help-content h3 {
        font-size: 15px;
    }
    
    .help-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .steps-new {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .nav-links a {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Мобильная версия — добавляем в конец style.css */

@media (max-width: 768px) {
    .cabinet-layout {
        flex-direction: column;
    }
    
    .chat-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 9999;
        background: var(--bg);
        padding: 0;
        display: none;
    }
    
    .chat-panel.active {
        display: block;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
        border: none;
        display: flex;
        flex-direction: column;
    }
    
    .chat-title {
        padding: 16px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }
    
    .messages {
        flex: 1;
        padding: 12px;
    }
    
/* Мобильный чат — фикс кнопок */

.chat-input {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-input input[type="text"] {
    flex: 1;
    padding: 12px 14px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: #fff;
    font-size: 16px;
    outline: none;
    min-width: 0;
}

.chat-input input[type="text"]:focus {
    border-color: rgba(255,255,255,0.3);
}

.chat-input button {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 14px;
    border-radius: 22px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-input button:hover {
    background: #e0e0e0;
}
    
    .msg {
        max-width: 85%;
        font-size: 14px;
    }
    
    .msg img {
        max-width: 150px;
    }
    
    .orders-panel {
        width: 100%;
    }
    
    .order-item {
        padding: 16px;
    }
    
    .order-header h3 {
        font-size: 16px;
    }
    
    .hero-animation-card {
        width: 100%;
        max-width: 300px;
        height: 240px;
        padding: 20px 16px;
    }
    
    .scene-step {
        font-size: 42px;
    }
    
    .scene-title {
        font-size: 17px;
    }
    
    .scene-desc {
        font-size: 12px;
    }
    
    .steps-new {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .step-new {
        padding: 20px 16px;
    }
    
    .step-new .step-number {
        font-size: 38px;
    }
    
    .btn-primary, .btn-outline {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .order-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-card {
        width: 100%;
        padding: 20px;
    }
    
    .order-form {
        padding: 20px 14px;
    }
    
    .cooperation-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .coop-card {
        padding: 20px 16px;
    }
    
    .price-card {
        width: 100%;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }
    
    .page {
        padding: 40px 0;
    }
    
    .nav-links a {
        font-size: 11px;
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 22px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-primary, .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .order-card-icon {
        font-size: 32px;
    }
    
    .order-card h3 {
        font-size: 16px;
    }
    
    .status-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-chat, .btn-cancel {
        width: 100%;
        text-align: center;
    }
}

/* ===== Nav Right (cart + auth) ===== */
.nav-right {
    display: flex;
    gap: 2px;
    align-items: center;
    margin-left: auto;
}

/* ===== Cart Button in Nav ===== */
.cart-btn {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cart-btn:hover {
    color: #fff;
    background: var(--surface-hover);
}
.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    transform: translate(4px, -4px);
}

/* ===== Cart Drawer ===== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}
.cart-drawer.active {
    display: block;
}
.cart-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}
.cart-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: var(--bg);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.cart-drawer-header h3 {
    font-size: 20px;
    background: none;
    -webkit-text-fill-color: #fff;
}
.cart-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}
.cart-close-btn:hover {
    color: #fff;
    background: var(--surface-hover);
}
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}
.cart-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0;
    font-size: 16px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-price {
    font-size: 12px;
    color: var(--text-muted);
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.cart-qty-btn:hover {
    background: var(--surface-hover);
    border-color: rgba(255,255,255,0.3);
}
.cart-qty-val {
    font-weight: 700;
    font-size: 15px;
    min-width: 20px;
    text-align: center;
    color: #fff;
}
.cart-item-subtotal {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    min-width: 60px;
    text-align: right;
    flex-shrink: 0;
}
.cart-drawer-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}
.cart-total span:last-child {
    font-size: 22px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.prod-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.prod-card:hover {
    border-color: rgba(255,255,255,0.15);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.prod-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
}
.prod-emoji {
    font-size: 48px;
}
.prod-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.prod-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.prod-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
    flex: 1;
}
.prod-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.prod-price {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}
.prod-add-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.prod-add-btn:hover {
    background: #e0e0e0;
    transform: scale(1.04);
}
.prod-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-hover);
    border-radius: 20px;
    padding: 3px;
}
.prod-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.prod-qty-btn:hover {
    background: rgba(255,255,255,0.15);
}
.prod-qty-val {
    font-weight: 700;
    font-size: 15px;
    min-width: 24px;
    text-align: center;
    color: #fff;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    .prod-img {
        height: 90px;
    }
    .prod-emoji {
        font-size: 36px;
    }
    .prod-body {
        padding: 10px 12px 12px;
    }
    .prod-name {
        font-size: 14px;
    }
    .prod-desc {
        font-size: 12px;
        margin-bottom: 8px;
    }
    .prod-price {
        font-size: 16px;
    }
    .prod-add-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    .cart-drawer-content {
        width: 100%;
        max-width: 100%;
    }
    .cart-drawer-body {
        padding: 12px 16px;
    }
    .cart-drawer-header {
        padding: 16px;
    }
    .cart-drawer-footer {
        padding: 12px 16px 20px;
    }
    .cart-item-subtotal {
        min-width: 50px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .prod-img {
        height: 80px;
    }
    .prod-emoji {
        font-size: 32px;
    }
    .prod-body {
        padding: 8px 10px 10px;
    }
    .prod-name {
        font-size: 13px;
    }
    .prod-desc {
        font-size: 11px;
        margin-bottom: 6px;
    }
    .prod-price {
        font-size: 14px;
    }
    .prod-add-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    .prod-controls {
        gap: 4px;
    }
    .prod-qty-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
    .prod-qty-val {
        font-size: 13px;
        min-width: 20px;
    }
}
