.public-home {
    overflow: hidden;
    background: var(--laf-white);
}

.public-hero {
    position: relative;
    min-height: 650px;
    padding: 2rem max(2rem, calc((100% - 1180px) / 2));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--laf-white);
    background:
        linear-gradient(
            115deg,
            rgba(75, 2, 2, 0.98) 0%,
            rgba(102, 11, 11, 0.91) 58%,
            rgba(159, 133, 103, 0.72) 100%
        );
}

.public-navigation {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--laf-white);
    font-size: 1.05rem;
    font-weight: 700;
}

.brand-mark img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    min-height: 470px;
    padding: 4rem 0 5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 7rem);
}

.hero-content h1 {
    max-width: 720px;
    margin: 0;
    color: var(--laf-white);
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero-logo-column {
    min-height: 100%;
    display: grid;
    place-items: center;
}

.hero-content h1 span {
    display: block;
    color: var(--laf-accent);
}

.hero-content p {
    max-width: 540px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-logo {
    width: clamp(240px, 30vw, 410px);
    height: clamp(240px, 30vw, 410px);
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.28));
}

.laf-button-light {
    color: var(--laf-primary);
    background: var(--laf-white);
}

.laf-button-light:hover {
    color: var(--laf-white);
    background: transparent;
    border-color: var(--laf-white);
}

.laf-button-accent {
    color: var(--laf-primary);
    background: var(--laf-accent);
}

.laf-button-accent:hover {
    color: var(--laf-white);
    background: var(--laf-secondary);
}

.about-section,
.gallery-section {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 6rem 0;
}

.about-section .section-heading h2 {
    white-space: nowrap;
}

.section-heading {
    max-width: 620px;
    margin-bottom: 3rem;
}

.section-heading h2 {
    margin: 0;
    color: var(--laf-primary);
    font-size: clamp(2rem, 4vw, 3.8rem);
    white-space: nowrap;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.about-item {
    min-height: 240px;
    padding: 2rem;
    border-top: 4px solid var(--laf-accent);
    background: var(--laf-surface);
}

.about-item span {
    color: var(--laf-accent);
    font-weight: 700;
}

.about-item h3 {
    margin: 2.5rem 0 0.75rem;
    color: var(--laf-primary);
}

.about-item p {
    margin: 0;
    color: var(--laf-muted);
    line-height: 1.65;
}

.gallery-section {
    padding-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 0.75rem;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(0.86);
    transition:
        filter 180ms ease,
        transform 180ms ease;
}

.gallery-grid img:hover {
    filter: saturate(1.1);
    transform: scale(1.015);
}

.gallery-grid img:first-child {
    grid-row: 1 / 3;
}

.public-footer {
    padding: 2rem max(2rem, calc((100% - 1180px) / 2));
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--laf-white);
    background: var(--laf-primary);
}

.dashboard-page {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4rem 0;
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--laf-border);
}

.dashboard-header h1 {
    margin: 0;
    color: var(--laf-primary);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.dashboard-header p {
    margin: 1rem 0 0;
    color: var(--laf-muted);
}

.account-page {
    width: min(860px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0;
}

.account-page-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--laf-border);
}

.account-page-header h1 {
    margin: 0;
    color: var(--laf-primary);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.account-page-header p {
    margin: 0.85rem 0 0;
    color: var(--laf-muted);
}

.account-password-form {
    max-width: 510px;
    margin-top: 2rem;
    display: grid;
    gap: 1.25rem;
}

.account-password-form .form-label {
    color: var(--laf-primary);
    font-weight: 700;
}

.account-password-form .form-control {
    min-height: 48px;
    border-color: var(--laf-border);
    border-radius: 4px;
}

.account-password-form .form-control:focus {
    border-color: var(--laf-accent);
    box-shadow: 0 0 0 3px rgba(159, 133, 103, 0.2);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 2rem;
}

.dashboard-card {
    min-height: 230px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 4px;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(36, 25, 25, 0.16);
}

.dashboard-card strong {
    font-size: 1.4rem;
}

.dashboard-card-icon {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.dashboard-card-primary {
    color: var(--laf-white);
    background: var(--laf-primary);
}

.dashboard-card-secondary {
    color: var(--laf-white);
    background: var(--laf-secondary);
}

.dashboard-card-accent {
    color: var(--laf-primary);
    background: var(--laf-accent);
}

.dashboard-card-light {
    color: var(--laf-primary);
    background: var(--laf-white);
    border: 1px solid var(--laf-border);
}

@media (max-width: 900px) {
    .public-navigation,
    .app-navigation {
        width: min(100% - 2rem, 680px);
    }

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

@media (max-width: 600px) {
    .hero-content {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .about-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2, 180px);
    }

    .gallery-grid img:first-child {
        grid-row: auto;
    }

    .public-footer {
        flex-direction: column;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .hero-content {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .hero-logo-column {
        min-height: 220px;
        width: 100%;
    }

    .hero-logo {
        width: 190px;
        height: 190px;
    }
}