.home-hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background-image: url('/assets/images/hero-office.webp');
    background-position: center 58%;
    background-size: cover;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .68);
}

.home-hero__inner {
    position: relative;
    display: flex;
    min-height: 540px;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 68px;
}

.home-hero__content {
    width: min(720px, 68%);
}

.home-hero__eyebrow {
    margin: 0 0 16px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 850;
}

.home-hero h1 {
    margin: 0;
    font-size: 64px;
    line-height: 1.08;
}

.home-hero__lead {
    margin: 14px 0 0;
    color: var(--primary-dark);
    font-size: 26px;
    font-weight: 700;
}

.home-hero__copy {
    max-width: 670px;
    margin: 14px 0 0;
    color: #344148;
    font-size: 17px;
}

.home-search {
    display: grid;
    width: min(650px, 100%);
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 28px;
    border: 1px solid #7d8b90;
    border-radius: 5px;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.home-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 102, 93, .13);
}

.home-search input {
    min-width: 0;
    height: 54px;
    padding: 0 17px;
    border: 0;
    outline: 0;
}

.home-search button {
    min-width: 140px;
    border: 0;
    color: var(--white);
    font-weight: 750;
    background: var(--primary);
    cursor: pointer;
}

.home-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 18px;
    font-size: 14px;
}

.home-hero__links a {
    color: var(--primary-dark);
    border-bottom: 1px solid rgba(7, 72, 64, .36);
}

.home-software {
    padding: 72px 0 78px;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.software-entry {
    position: relative;
    min-height: 250px;
    padding: 22px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--primary);
    border-radius: 6px;
    background: var(--white);
    transition: transform .16s ease, box-shadow .16s ease;
}

.software-entry:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.software-entry--word {
    border-top-color: #3268a8;
}

.software-entry--ppt {
    border-top-color: #bd5d3c;
}

.software-entry--wps {
    border-top-color: #ba3946;
}

.software-entry--pdf {
    border-top-color: var(--accent);
}

.software-entry__mark {
    display: grid;
    width: 50px;
    height: 46px;
    place-items: center;
    color: var(--white);
    font-size: 13px;
    font-weight: 850;
    background: var(--primary);
    border-radius: 4px;
}

.software-entry--word .software-entry__mark {
    background: #3268a8;
}

.software-entry--ppt .software-entry__mark {
    background: #bd5d3c;
}

.software-entry--wps .software-entry__mark {
    background: #ba3946;
}

.software-entry--pdf .software-entry__mark {
    color: #3c2c09;
    background: var(--accent);
}

.software-entry h3 {
    margin: 20px 0 8px;
    font-size: 20px;
}

.software-entry p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.software-entry > span:last-child {
    position: absolute;
    left: 22px;
    bottom: 20px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 750;
}

.home-tasks {
    padding: 72px 0;
    color: var(--white);
    background: var(--navy);
}

.home-tasks__layout {
    display: grid;
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.55fr);
    gap: 70px;
    align-items: start;
}

.home-tasks .section-kicker {
    color: #f0c55f;
}

.home-tasks h2 {
    margin: 5px 0 14px;
    font-size: 34px;
    line-height: 1.25;
}

.home-tasks__intro > p:last-child {
    margin: 0;
    color: #c6d0d5;
}

.task-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.task-list a {
    display: grid;
    min-height: 92px;
    align-content: center;
    padding: 16px 20px;
    border-right: 1px solid rgba(255, 255, 255, .18);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.task-list a:nth-child(2n) {
    border-right: 0;
}

.task-list a:hover {
    background: rgba(255, 255, 255, .07);
}

.task-list strong {
    font-size: 16px;
}

.task-list span {
    color: #b9c5ca;
    font-size: 13px;
}

.home-focus {
    padding: 78px 0;
    background: var(--paper);
}

.home-focus__inner {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(460px, 1.2fr);
    gap: 64px;
    align-items: center;
}

.home-focus h2 {
    margin: 6px 0 14px;
    font-size: 36px;
    line-height: 1.2;
}

.home-focus__copy > p:not(.section-kicker) {
    color: var(--muted);
}

.formula-sheet {
    border: 1px solid #aab6ba;
    border-radius: 6px;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.formula-sheet__bar {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    background: #e8edef;
}

.formula-sheet__bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #879499;
}

.formula-sheet__bar span:nth-child(2) {
    background: var(--accent);
}

.formula-sheet__bar span:nth-child(3) {
    background: var(--primary);
}

.formula-sheet__bar strong {
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
}

.formula-sheet code {
    display: block;
    padding: 24px;
    color: #0b584f;
    font: 600 15px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
    white-space: pre-wrap;
}

.formula-sheet dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--line);
}

.formula-sheet dl div {
    padding: 16px;
    border-right: 1px solid var(--line);
}

.formula-sheet dl div:last-child {
    border-right: 0;
}

.formula-sheet dt {
    color: var(--primary);
    font: 700 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.formula-sheet dd {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.home-latest {
    padding: 76px 0 82px;
}

.latest-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.latest-item {
    min-height: 200px;
    padding: 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.latest-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
}

.latest-item__meta a {
    color: var(--primary);
}

.latest-item__meta a:hover {
    text-decoration: underline;
}

.latest-item__info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 10px;
    margin-left: auto;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

.latest-item h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.45;
}

.latest-item h3 a:hover {
    color: var(--primary);
}

.latest-item > span {
    color: var(--muted);
    font-size: 14px;
}

.home-standard {
    padding: 64px 0;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.home-standard__inner {
    display: grid;
    grid-template-columns: minmax(250px, .7fr) minmax(0, 1.5fr);
    gap: 60px;
}

.home-standard h2 {
    margin: 5px 0 0;
    font-size: 32px;
}

.standard-list {
    display: grid;
    gap: 14px;
}

.standard-list p {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.standard-list span {
    color: var(--muted);
}

@media (max-width: 1040px) {
    .software-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-focus__inner {
        grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr);
    }
}

@media (max-width: 820px) {
    .home-hero,
    .home-hero__inner {
        min-height: 500px;
    }

    .home-hero__content {
        width: 88%;
    }

    .home-hero h1 {
        font-size: 52px;
    }

    .software-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-tasks__layout,
    .home-focus__inner,
    .home-standard__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .latest-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .home-hero {
        min-height: 560px;
        background-position: 62% center;
    }

    .home-hero::before {
        background: rgba(255, 255, 255, .78);
    }

    .home-hero__inner {
        min-height: 560px;
        align-items: flex-start;
        padding-top: 54px;
        padding-bottom: 48px;
    }

    .home-hero__content {
        width: 100%;
    }

    .home-hero h1 {
        font-size: 44px;
    }

    .home-hero__lead {
        font-size: 22px;
    }

    .home-search {
        grid-template-columns: 1fr;
    }

    .home-search input,
    .home-search button {
        height: 48px;
    }

    .home-search button {
        min-width: 0;
    }

    .home-software,
    .home-focus,
    .home-latest {
        padding-top: 58px;
        padding-bottom: 60px;
    }

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

    .software-entry {
        min-height: 210px;
    }

    .home-tasks {
        padding: 56px 0;
    }

    .task-list {
        grid-template-columns: 1fr;
    }

    .task-list a,
    .task-list a:nth-child(2n) {
        border-right: 0;
    }

    .formula-sheet {
        max-width: 100%;
    }

    .formula-sheet code {
        overflow-x: auto;
        white-space: nowrap;
    }

    .formula-sheet dl {
        grid-template-columns: 1fr;
    }

    .formula-sheet dl div,
    .formula-sheet dl div:last-child {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .formula-sheet dl div:last-child {
        border-bottom: 0;
    }

    .latest-list {
        grid-template-columns: 1fr;
    }

    .standard-list p {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
