:root {
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --lh-text: #111827;
    --lh-text-dim: #6b7280;
    --lh-bg: #ffffff;
    --lh-bg-soft: #f8fafc;
    --lh-border: #dbe2ea;
    --lh-accent: #2563eb;
    --lh-accent-soft: rgba(37, 99, 235, 0.08);
    --lh-hover: #eef4ff;
    --lh-error: #dc2626;
    --lh-success: #0f766e;
    --lh-radius-sm: 10px;
    --lh-radius-md: 18px;
    --lh-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --lh-shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.lh-vin {
    max-width: 980px;
    margin: var(--space-lg) 0;
}

.lh-vin__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.lh-vin__hero-content,
.lh-vin__hero-note {
    border: 1px solid rgba(219, 226, 234, 0.85);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,248,252,0.95) 100%);
    box-shadow: var(--lh-shadow-md);
}

.lh-vin__hero-content {
    padding: 24px 26px;
}

.lh-vin__hero-note {
    padding: 18px;
    display: grid;
    gap: 12px;
}

.lh-vin__hero-note-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.7);
    box-shadow: inset 0 0 0 1px rgba(219, 226, 234, 0.7);
}

.lh-vin__hero-note-item strong {
    font-size: 15px;
    color: var(--lh-text);
}

.lh-vin__hero-note-item span {
    font-size: 13px;
    color: var(--lh-text-dim);
}

.lh-vin__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--lh-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lh-vin__title {
    margin: 0 0 var(--space-md);
    font-size: 28px;
    line-height: 1.15;
    color: var(--lh-text);
}

.lh-vin__lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--lh-text-dim);
    max-width: 58ch;
}

.lh-vin__content {
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-md);
    padding: var(--space-lg);
    box-shadow: var(--lh-shadow-md);
}

.lh-vin__section {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255,255,255,.6);
    box-shadow: inset 0 0 0 1px rgba(219, 226, 234, 0.85);
}

.lh-vin__section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.lh-vin__section-title {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.2;
    color: var(--lh-text);
}

.lh-vin__section-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--lh-text-dim);
}

.lh-vin__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.lh-vin__step {
    border: 1px solid var(--lh-border);
    border-radius: 999px;
    background: var(--lh-bg);
    color: var(--lh-text-dim);
    height: 48px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.lh-vin__step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: var(--lh-text);
}

.lh-vin__step.is-active {
    background: var(--lh-accent);
    border-color: var(--lh-accent);
    color: #fff;
}

.lh-vin__step.is-active span {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.lh-vin__step-panel {
    display: none;
}

.lh-vin__step-panel.is-active {
    display: block;
}

.lh-vin__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
}

@media (max-width: 960px) {
    .lh-vin__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .lh-vin__grid {
        grid-template-columns: 1fr;
    }
    .lh-vin__steps {
        grid-template-columns: 1fr;
    }
}

.lh-vin__field {
    margin: 0 0 var(--space-md);
}

.lh-vin__field--hero {
    margin-bottom: 18px;
}

.js-vin-nick {
    padding-top: 12px;
}

.lh-vin__label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--lh-text);
}

.lh-vin__input,
.lh-vin__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    box-shadow: inset 0 0 0 1px var(--lh-border);
    outline: none;
    border: 0;
    border-radius: var(--lh-radius-sm);
    background: var(--lh-bg);
    color: var(--lh-text);
    transition: box-shadow .2s, transform .15s;
    min-height: 46px;
}

.lh-vin__textarea {
    min-height: 120px;
    resize: vertical;
}

.lh-vin__input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--lh-accent);
}

.lh-vin__input.is-error {
    box-shadow: inset 0 0 0 2px var(--lh-error);
}

.lh-vin__parts {
    display: grid;
    gap: var(--space-sm);
}

.lh-vin__part-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-sm);
}

.lh-vin__btn {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-sm);
    background: var(--lh-bg);
    color: var(--lh-text);
    cursor: pointer;
    transition: background .15s;
}

.lh-vin__btn:hover {
    background: var(--lh-hover);
}

.lh-vin__link {
    border: 0;
    background: transparent;
    color: var(--lh-accent);
    padding: 0;
    cursor: pointer;
    font-weight: 600;
}

.lh-vin__actions {
    margin-top: var(--space-lg);
    display: flex;
    gap: var(--space-sm);
}

.lh-vin__actions--between {
    justify-content: space-between;
}

.lh-vin__submit {
    min-height: 46px;
    padding: 0 var(--space-lg);
    border: 0;
    border-radius: var(--lh-radius-sm);
    background: var(--lh-accent);
    color: #fff;
    cursor: pointer;
    transition: background .15s, box-shadow .2s;
}

.lh-vin__submit:hover {
    background: #1d4ed8;
}

.lh-vin__thank {
    padding: var(--space-lg);
    background: var(--lh-bg);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-sm);
}

.lh-vin__thank-body {
    display: grid;
    gap: var(--space-sm);
}

.lh-vin__thank-id {
    font-weight: 700;
}

.lh-vin__cabinet-link {
    color: var(--lh-accent);
    font-weight: 600;
    text-decoration: none;
}

.lh-vin__policy {
    margin-top: var(--space-sm);
    font-size: 13px;
    color: var(--lh-text-dim);
}

.lh-vin__checkbox {
    margin-right: var(--space-xs);
    vertical-align: middle;
}

.lh-vin__hint,
.lh-vin__meta {
    color: var(--lh-text-dim);
    font-size: 13px;
    margin-top: 6px;
}

.lh-vin__error {
    min-height: 18px;
    margin-top: 6px;
    color: var(--lh-error);
    font-size: 13px;
}

.lh-vin__toolbar {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-md);
}

.lh-vin__manual {
    background: rgba(255,255,255,.55);
    border: 1px dashed var(--lh-border);
    border-radius: var(--lh-radius-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.lh-vin__combo {
    position: relative;
}

.lh-vin__combo.is-disabled .lh-vin__combo-trigger {
    opacity: .55;
    cursor: not-allowed;
}

.lh-vin__combo-trigger {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 0 0 1px var(--lh-border), 0 8px 20px rgba(37, 99, 235, 0.05);
    color: var(--lh-text);
    cursor: pointer;
    text-align: left;
}

.lh-vin__combo-trigger:hover {
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.35), 0 10px 22px rgba(37, 99, 235, 0.08);
}

.lh-vin__combo.is-open .lh-vin__combo-trigger {
    box-shadow: inset 0 0 0 2px var(--lh-accent), 0 14px 28px rgba(37, 99, 235, 0.12);
}

.lh-vin__combo-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-right: 4px;
    transition: transform .2s ease;
}

.lh-vin__combo.is-open .lh-vin__combo-icon {
    transform: rotate(-135deg);
    margin-top: 6px;
}

.lh-vin__combo-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(219, 226, 234, 0.95);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    padding: 10px;
    display: none;
}

.lh-vin__combo.is-open .lh-vin__combo-panel {
    display: block;
}

.lh-vin__combo-search-wrap {
    padding-bottom: 8px;
}

.lh-vin__combo-search {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px var(--lh-border);
    outline: none;
}

.lh-vin__combo-search:focus {
    box-shadow: inset 0 0 0 2px var(--lh-accent);
}

.lh-vin__combo-list {
    display: grid;
    gap: 6px;
    max-height: 260px;
    overflow: auto;
}

.lh-vin__combo-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--lh-text);
    cursor: pointer;
    text-align: left;
    transition: background .15s ease, transform .15s ease;
}

.lh-vin__combo-option:hover {
    background: #f1f6ff;
    transform: translateY(-1px);
}

.lh-vin__combo-option.is-active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--lh-accent);
    font-weight: 600;
}

.lh-vin__combo-option.is-active::after {
    content: '';
    width: 8px;
    height: 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-right: 4px;
}

.lh-vin__combo-empty {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lh-text-dim);
    font-size: 14px;
    border-radius: 12px;
    background: #f8fafc;
}

.lh-vin__files {
    display: grid;
    gap: 8px;
    margin-top: var(--space-sm);
}

.lh-vin__upload {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 26px 20px;
    border-radius: 18px;
    border: 1.5px dashed rgba(37, 99, 235, 0.28);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.98));
    text-align: center;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.lh-vin__upload:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.08);
}

.lh-vin__upload.is-dragover {
    border-color: var(--lh-accent);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 35%),
        linear-gradient(180deg, rgba(239,246,255,0.98), rgba(248,250,252,0.98));
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.12);
}

.lh-vin__upload.has-files {
    border-style: solid;
}

.lh-vin__upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.lh-vin__upload-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.06));
    position: relative;
}

.lh-vin__upload-icon::before,
.lh-vin__upload-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--lh-accent);
    transform: translate(-50%, -50%);
    border-radius: 999px;
}

.lh-vin__upload-icon::before {
    width: 24px;
    height: 3px;
}

.lh-vin__upload-icon::after {
    width: 3px;
    height: 24px;
}

.lh-vin__upload-title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--lh-text);
}

.lh-vin__upload-text {
    max-width: 42ch;
    font-size: 14px;
    line-height: 1.55;
    color: var(--lh-text-dim);
}

.lh-vin__upload-button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--lh-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.lh-vin__upload-button:hover {
    background: #1d4ed8;
}

.lh-vin__file-item {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    background: var(--lh-bg);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-sm);
    padding: 10px 12px;
    font-size: 14px;
}

.lh-vin__file-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lh-vin__file-badge {
    min-width: 52px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: var(--lh-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.lh-vin__file-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.lh-vin__file-text strong,
.lh-vin__file-text span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lh-vin__file-text span {
    font-size: 12px;
    color: var(--lh-text-dim);
}

.lh-vin__file-remove {
    border: 0;
    background: transparent;
    color: #b91c1c;
    cursor: pointer;
    font-weight: 600;
    padding: 0 4px;
}

.lh-vin__submit-state {
    margin-top: var(--space-md);
    padding: 12px 14px;
    border-radius: var(--lh-radius-sm);
    font-size: 14px;
}

.lh-vin__submit-state.is-error {
    background: rgba(220, 38, 38, 0.08);
    color: var(--lh-error);
}

.lh-vin__trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.lh-vin__contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-sm);
    padding-top: 5px;
}

.lh-vin__contact {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--lh-bg);
    box-shadow: inset 0 0 0 1px var(--lh-border);
    border-radius: var(--lh-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--lh-text);
    user-select: none;
    outline: none;
    border: 0;
}

.lh-vin__contact:hover {
    box-shadow: inset 0 0 0 2px var(--lh-accent);
    background: rgba(45, 123, 244, 0.02);
}

.lh-vin__contact input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lh-vin__contact::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid var(--lh-border);
    border-radius: 50%;
    background: var(--lh-bg);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lh-vin__contact:has(input[type="radio"]:checked) {
    border-color: var(--lh-accent);
    box-shadow: inset 0 0 0 2px var(--lh-accent);
    background: rgba(45, 123, 244, 0.08);
    color: var(--lh-accent);
    outline: none;
    border: 0;
}

.lh-vin__contact:has(input[type="radio"]:checked)::before {
    border-color: var(--lh-accent);
    background: var(--lh-accent);
    box-shadow: inset 0 0 0 3px var(--lh-bg);
}

.lh-vin__contact.is-checked {
    border-color: var(--lh-accent);
    background: rgba(45, 123, 244, 0.08);
    color: var(--lh-accent);
}

.lh-vin__contact.is-checked::before {
    border-color: var(--lh-accent);
    background: var(--lh-accent);
}

.lh-vin__contact:focus-within {
    outline: 2px solid rgba(45, 123, 244, 0.3);
    outline-offset: 0px;
}

@media (max-width: 600px) {
    .lh-vin__hero {
        grid-template-columns: 1fr;
    }

    .lh-vin__content {
        padding: var(--space-md);
    }

    .lh-vin__title {
        font-size: 24px;
    }

    .lh-vin__section {
        padding: 16px;
    }

    .lh-vin__toolbar,
    .lh-vin__actions--between,
    .lh-vin__section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .lh-vin__contacts {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xs);
    }

    .lh-vin__contact {
        padding: var(--space-xs) var(--space-sm);
        font-size: 14px;
    }

    .lh-vin__part-item {
        grid-template-columns: 1fr;
    }

    .lh-vin__file-item {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 390px) {
    .lh-vin__contacts {
        grid-template-columns: 1fr;
    }
}