:root {
    --orange: #F58220;
    --orange-dark: #d96d0f;
    --black: #111111;
    --dark: #1b1b1b;
    --gray: #f5f5f5;
    --border: #dddddd;
    --text: #2b2b2b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: var(--gray);
    color: var(--text);
}

.hero {
    min-height: 560px;
    background:
        linear-gradient(rgba(0,0,0,.84), rgba(0,0,0,.76)),
        url('/images/home-01-slide-01.jpg') center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 55px 20px;
    border-bottom: 7px solid var(--orange);
}

.hero-content { max-width: 920px; }

.hero img {
    max-width: 250px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 54px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 span { color: var(--orange); }

.hero p {
    max-width: 760px;
    margin: 20px auto 0;
    font-size: 20px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    margin-top: 35px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-btn:hover { background: var(--orange-dark); }

.section {
    max-width: 1120px;
    margin: 55px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 12px;
    color: var(--black);
}

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

.section-subtitle {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 35px;
    color: #666;
    line-height: 1.6;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.benefit {
    background: white;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    border-top: 5px solid var(--orange);
}

.benefit .icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.benefit h3 {
    margin: 0 0 10px;
    color: var(--black);
}

.benefit p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.qualities {
    background: var(--black);
    color: white;
    padding: 55px 20px;
    border-top: 5px solid var(--orange);
    border-bottom: 5px solid var(--orange);
}

.qualities-inner {
    max-width: 980px;
    margin: auto;
    text-align: center;
}

.qualities h2 {
    font-size: 32px;
    margin: 0 0 25px;
}

.quality-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.quality {
    border: 1px solid rgba(245,130,32,.8);
    border-radius: 999px;
    padding: 10px 18px;
    background: rgba(255,255,255,.06);
}

.form-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
}

.form-header {
    background: var(--black);
    color: white;
    padding: 28px 34px;
    border-bottom: 5px solid var(--orange);
}

.form-header h2 {
    margin: 0;
    font-size: 28px;
}

.form-header p {
    margin: 8px 0 0;
    color: #ddd;
}

.form-body { padding: 34px; }

.notice {
    padding: 15px 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 5px solid var(--orange);
    font-weight: 600;
}

.notice.success {
    background: #ecfdf3;
    color: #166534;
    border-left-color: #16a34a;
}

.notice.error {
    background: #fff3e8;
    color: #9a4b08;
}

.progress-wrap { margin-bottom: 28px; }

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.progress-bar {
    height: 10px;
    background: #eeeeee;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 20%;
    background: var(--orange);
    transition: .3s;
}

.step { display: none; }
.step.active { display: block; }

.step h3 {
    margin: 0 0 22px;
    font-size: 24px;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.step h3::before {
    content: "";
    width: 7px;
    height: 30px;
    background: var(--orange);
    border-radius: 8px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field.full { grid-column: 1 / -1; }

label {
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 14px;
    color: var(--dark);
}

input, textarea, select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: white;
}

textarea {
    min-height: 115px;
    resize: vertical;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(245,130,32,.15);
}


.file-rules {
    margin-top: 12px;
    padding: 15px 18px;
    background: #fff7ed;
    border-left: 5px solid var(--orange);
    border-radius: 12px;
    color: #7c2d12;
    font-size: 14px;
    line-height: 1.5;
}

.file-rules ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.file-rules li {
    margin-bottom: 4px;
}

.help {
    margin-top: 7px;
    font-size: 13px;
    color: #777;
}

.privacy {
    margin-top: 18px;
    padding: 18px;
    background: #f8f8f8;
    border-radius: 12px;
    border-left: 5px solid var(--orange);
    font-size: 14px;
    line-height: 1.6;
}

.checkbox-label {
    margin-top: 18px;
    display: block;
}

.checkbox-label input {
    width: auto;
    margin-right: 8px;
}

.actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 15px 22px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--orange);
    color: white;
    flex: 1;
}

.btn-primary:hover { background: var(--orange-dark); }

.btn-secondary {
    background: #222222;
    color: white;
}

.btn-secondary:hover { background: #000000; }

.footer {
    background: var(--black);
    color: #aaaaaa;
    text-align: center;
    padding: 24px 15px;
    border-top: 4px solid var(--orange);
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.success-modal {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 22px;
    padding: 34px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0,0,0,.35);
    border-top: 7px solid var(--orange);
    animation: modalIn .22s ease-out;
}

.success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 700;
}

.success-modal h2 {
    margin: 0 0 12px;
    color: var(--black);
    font-size: 28px;
}

.application-number {
    margin: 12px auto 18px;
    display: inline-block;
    background: #111111;
    color: #F58220;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

.success-modal p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.modal-close {
    margin-top: 26px;
    width: 100%;
}


.error-modal {
    border-top-color: #dc2626;
}

.error-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #dc2626;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 800;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 850px) {
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 17px; }
    .benefits { grid-template-columns: repeat(2, 1fr); }
    .grid { grid-template-columns: 1fr; }
    .form-body { padding: 24px; }
}

@media (max-width: 520px) {
    .benefits { grid-template-columns: 1fr; }
    .actions { flex-direction: column; }
    .hero { min-height: 480px; }
}
