/* Базовые сбросы */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    max-width: 600px;
    width: 100%;
}

/* Вкладки */
.tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}
.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}
.tab-btn.active {
    color: #3b82f6;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3b82f6;
    border-radius: 3px 3px 0 0;
}
.tab-btn:hover {
    color: #2563eb;
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Строки формы */
.form-row {
    margin-bottom: 16px;
}
.top-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.label-with-icon {
    font-size: 1.05rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #16a34a;          /* зелёный цвет иконки */
    cursor: pointer;
}
.info-icon-wrapper i {
    font-size: 1.3rem;
}
.info-tooltip {
    display: none;
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.85rem;
    color: #065f46;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 10;
    text-align: center;
}
.info-icon-wrapper:hover .info-tooltip {
    display: block;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.id-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    transition: 0.2s;
}
.id-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
}

.action-btn {
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
    transition: 0.2s;
    white-space: nowrap;
}
.action-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}
.center-btn {
    display: block;
    margin: 20px auto 0;
}

.bottom-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.link-howto {
    font-size: 0.9rem;
    color: #2563eb;
    text-decoration: none;
}
.link-howto:hover {
    text-decoration: underline;
}
.icons-group {
    display: flex;
    gap: 12px;
}
/* Иконки – можно менять размер и цвет здесь */
.icon-sample {
    font-size: 1.3rem;
    color: #9ca3af;
    cursor: default;
}

/* Модальные окна */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    /* убрать display: flex, justify-content, align-items */
}
.modal-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #9ca3af;
}
.modal-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1f2937;
}
.instruction-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.instruction-step {
    display: flex;
    align-items: center;
    gap: 15px;
}
.instruction-step img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

/* Результаты в модалке */
.result-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.sub-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.sub-field span {
    font-weight: 600;
    color: #111827;
}
.progress-bar {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0 15px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 10px;
    width: 0%;
}
.divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 15px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Адаптивность */
@media (max-width: 600px) {
    .container { padding: 20px; }
    .tabs { flex-direction: column; }
    .tab-btn { width: 100%; }
    .input-row { flex-direction: column; align-items: stretch; }
    .action-btn { justify-content: center; }
    .bottom-links { flex-direction: column; gap: 10px; align-items: flex-start; }
    .icons-group { margin-top: 10px; align-self: flex-end; }
}