
:root {
    --primary: #ee6c2f;
    --primary-dark: #c44d1c;
    --navy: #14253d;
    --navy-dark: #0a1525;
    --text: #2d394a;
    --muted: #657184;
    --white: #ffffff;
    --light: #f4f6f8;
    --border: #dce2e9;
    --success: #1c9b68;
    --shadow: 0 18px 50px rgba(20, 37, 61, 0.12);
    --radius: 18px;
    --container: 1160px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--white);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid rgba(220, 226, 233, 0.9);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
}

.nav-wrap {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(20, 37, 61, 0.16);
}

.brand-text {
    display: flex;
    flex-direction: column;
    color: var(--navy);
    line-height: 1.05;
}

.brand-text strong {
    font-size: 1.05rem;
}

.brand-text span {
    color: var(--primary);
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.menu-button {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: var(--light);
    color: var(--navy);
    font-size: 1.4rem;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 800;
    transition: 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(238, 108, 47, 0.24);
}

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

.button-secondary {
    border-color: var(--border);
    background: var(--white);
    color: var(--navy);
}

.button-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero {
    padding: 80px 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(238, 108, 47, 0.13), transparent 30%),
        linear-gradient(135deg, #f5f7fa 0%, #ffffff 60%, #fff2ea 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 65px;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: var(--primary);
    font-size: 0.77rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
    width: 26px;
    height: 2px;
    background: currentColor;
    content: "";
}

.hero h1 {
    color: var(--navy);
    font-size: clamp(3rem, 6.5vw, 5.6rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero p {
    max-width: 630px;
    margin: 24px 0 30px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.hero-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
}

.hero-card-bottom strong {
    color: var(--navy);
}

.hero-card-bottom span {
    color: var(--muted);
    font-size: 0.9rem;
}

.section {
    padding: 82px 0;
}

.section.alt {
    background: var(--light);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 40px;
}

.section-heading.center {
    margin-inline: auto;
    text-align: center;
}

.section-heading.center .section-label {
    justify-content: center;
}

.section-heading h2,
.page-hero h1 {
    color: var(--navy);
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
    margin-top: 15px;
    color: var(--muted);
    font-size: 1.04rem;
}

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

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 29px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(20, 37, 61, 0.05);
}

.card-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 19px;
    place-items: center;
    border-radius: 14px;
    background: #fff0e8;
    font-size: 1.6rem;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--navy);
    font-size: 1.2rem;
}

.card p {
    color: var(--muted);
}

.card a {
    display: inline-block;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 800;
}

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

.step {
    border-radius: var(--radius);
    padding: 28px;
    background: var(--white);
}

.step-number {
    margin-bottom: 28px;
    color: var(--primary);
    font-weight: 900;
}

.step h3 {
    margin-bottom: 9px;
    color: var(--navy);
}

.step p {
    color: var(--muted);
}

.cta {
    border-radius: 28px;
    padding: 46px;
    background: var(--navy);
    color: var(--white);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

.cta p {
    margin-top: 12px;
    color: #c2ccd8;
}

.page-hero {
    padding: 70px 0 54px;
    background: linear-gradient(135deg, #f5f7fa, #fff3eb);
}

.page-hero .container {
    max-width: 820px;
    text-align: center;
}

.form-shell {
    max-width: 900px;
    margin-inline: auto;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    background: var(--white);
    box-shadow: var(--shadow);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: var(--white);
    color: var(--text);
}

.form-group input,
.form-group select {
    min-height: 50px;
    padding: 0 14px;
}

.form-group textarea {
    min-height: 130px;
    padding: 13px 14px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(238, 108, 47, 0.12);
}

.upload-area {
    display: flex;
    min-height: 160px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 2px dashed var(--border);
    border-radius: 16px;
    background: var(--light);
    text-align: center;
    cursor: pointer;
}

.upload-area strong {
    color: var(--navy);
}

.upload-area small {
    margin-top: 4px;
    color: var(--muted);
}

.hidden-input {
    display: none;
}

.photo-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--light);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item button {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(10, 21, 37, 0.82);
    color: var(--white);
}

.form-submit {
    width: 100%;
    margin-top: 22px;
}

.notice {
    margin-top: 13px;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.auth-shell {
    max-width: 480px;
    margin-inline: auto;
}

.auth-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 17px;
    object-fit: cover;
}

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

.contact-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    background: var(--white);
    text-align: center;
}

.contact-card span {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 15px;
    place-items: center;
    border-radius: 50%;
    background: #fff0e8;
    color: var(--primary);
    font-size: 1.35rem;
}

.contact-card h3 {
    margin-bottom: 7px;
    color: var(--navy);
}

.contact-card p,
.contact-card a {
    color: var(--muted);
}

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

.stat-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    background: var(--white);
}

.stat-card strong {
    display: block;
    color: var(--navy);
    font-size: 2rem;
}

.stat-card span {
    color: var(--muted);
}

.site-footer {
    padding-top: 58px;
    background: var(--navy-dark);
    color: #b9c4d2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
    gap: 60px;
    padding-bottom: 44px;
}

.footer-logo {
    width: 135px;
    height: 135px;
    margin-bottom: 16px;
    border-radius: 17px;
    object-fit: cover;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-links strong {
    margin-bottom: 5px;
    color: var(--white);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    text-align: center;
    font-size: 0.85rem;
}

.toast {
    position: fixed;
    z-index: 2000;
    right: 20px;
    bottom: 20px;
    max-width: min(380px, calc(100% - 40px));
    border-left: 5px solid var(--primary);
    border-radius: 10px;
    padding: 15px 18px;
    background: var(--navy-dark);
    color: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .menu-button {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 82px;
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 18px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        border-radius: 8px;
        padding: 9px 10px;
    }

    .main-nav a:hover {
        background: var(--light);
    }

    .nav-actions {
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

    .nav-actions .button {
        flex: 1;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 680px;
        margin-inline: auto;
    }

    .card-grid,
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand-text {
        display: none;
    }

    .hero {
        padding: 58px 0;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.3rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .card-grid,
    .steps,
    .contact-grid,
    .dashboard-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .form-shell {
        padding: 25px 18px;
    }

    .photo-preview {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta {
        padding: 34px 24px;
    }
}


/* ========================================
   Professional finishing touches
======================================== */

body {
    background:
        radial-gradient(circle at top left, rgba(238, 108, 47, 0.06), transparent 30rem),
        var(--background);
}

.site-header {
    border-bottom: 1px solid rgba(23, 35, 59, 0.08);
    box-shadow: 0 8px 28px rgba(23, 35, 59, 0.06);
}

.page-hero .container {
    max-width: 960px;
}

.form-shell,
.settings-card,
.contact-card,
.stat-card {
    border: 1px solid rgba(23, 35, 59, 0.09);
    box-shadow: 0 18px 50px rgba(23, 35, 59, 0.08);
}

.form-shell {
    position: relative;
    overflow: hidden;
}

.form-shell::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #ffb07a);
    content: "";
}

.form-group label {
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(238, 108, 47, 0.13);
    background: white;
}

.field-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.form-privacy-note {
    max-width: 700px;
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: center;
}

.form-status {
    min-height: 25px;
    margin: 14px auto 0;
    font-weight: 800;
    text-align: center;
}

.form-status.success {
    color: #176b46;
}

.form-status.error {
    color: #b42318;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.contact-card {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 56px rgba(23, 35, 59, 0.12);
}

.button {
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary:hover {
    box-shadow: 0 12px 28px rgba(238, 108, 47, 0.25);
}

.account-name,
.user-greeting {
    box-shadow: inset 0 0 0 1px rgba(238, 108, 47, 0.14);
}

@media (max-width: 720px) {
    .dashboard-actions {
        width: 100%;
        flex-direction: column;
    }

    .dashboard-actions .button {
        width: 100%;
    }
}
