:root {
    color-scheme: light;
    --forest: #153e32;
    --forest-deep: #103328;
    --lime: #d3ee82;
    --ink: #223a30;
    --muted: #59665e;
    --line: #dce5df;
    --surface: #f4f7f3;
    --white: #fff;
    --font-body: "Aptos", "Segoe UI", Arial, sans-serif;
    --font-heading: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    -webkit-text-size-adjust: 100%;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

:focus-visible {
    outline: 3px solid #47733a;
    outline-offset: 4px;
}

::selection {
    color: var(--forest-deep);
    background: var(--lime);
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    color: var(--forest-deep);
    background: var(--lime);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

/* Hlavička */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: min(100%, 80rem);
    min-height: 5.5rem;
    margin-inline: auto;
    padding: 1rem 2rem;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    min-width: 0;
}

.np-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--forest);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.np-brand__mark {
    display: grid;
    place-items: center;
    flex: 0 0 2.8rem;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 20% 50% 20% 50%;
    color: var(--lime);
    background: var(--forest);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 400;
}

.np-brand__name span {
    display: block;
}

.header-ul {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-ul > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    border-bottom: 2px solid transparent;
    color: var(--forest);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 160ms ease;
}

.header-ul > li > a:hover {
    border-bottom-color: var(--forest);
}

.header-search-mobile,
.burger {
    display: none;
}

.burger {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--forest);
    background: var(--white);
}

.burger span {
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

html:not(.js) .header-inner {
    flex-wrap: wrap;
}

html:not(.js) .site-search,
html:not(.js) .header-search-mobile {
    display: none;
}

/* Hlavní nadpis */

.home-text {
    border-bottom: 0.4rem solid var(--lime);
    color: var(--white);
    background: var(--forest);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15rem;
    align-items: center;
    gap: 4.5rem;
    width: min(100%, 80rem);
    margin-inline: auto;
    padding: 5.25rem 2rem 5.5rem;
}

.hero-eyebrow {
    margin: 0 0 1.5rem;
    color: #d3dfd7;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main {
    max-width: 17ch;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 5.2vw, 4.75rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.045em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.hero-emphasis {
    color: var(--lime);
    font-style: italic;
}

.np-hero__subject {
    display: block;
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-fact {
    padding-left: 2rem;
    border-left: 1px solid #608073;
}

.hero-fact__number {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--lime);
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.075em;
    white-space: nowrap;
}

.hero-fact__number span {
    font-size: 0.46em;
    letter-spacing: -0.04em;
}

.hero-fact p {
    margin: 0;
    color: #dae4df;
    font-size: 1rem;
    line-height: 1.65;
}

.hero-fact strong {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--white);
    font-size: 1.0625rem;
}

/* Obsah a boční navigace */

.np-layout {
    display: grid;
    grid-template-columns: 13.5rem minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 6.5rem);
    width: min(100%, 80rem);
    margin-inline: auto;
    padding: 4.75rem 2rem 5.5rem;
}

.np-toc {
    position: sticky;
    top: 7.5rem;
}

.np-toc__title {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.np-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.np-toc a {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
}

.np-toc a span {
    color: var(--muted);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.np-toc a:hover {
    color: #3f661a;
}

.np-toc__law {
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.np-article {
    min-width: 0;
    max-width: 54rem;
    counter-reset: chapter;
    overflow-wrap: break-word;
}

.np-article section {
    counter-increment: chapter;
}

.np-article section + section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}

.np-article h2 {
    margin: 0 0 1.75rem;
    color: var(--forest);
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.np-article h2::before {
    content: counter(chapter, decimal-leading-zero);
    display: block;
    width: fit-content;
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 3px solid var(--lime);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.np-article p,
.np-article li {
    font-size: 1.0625rem;
    line-height: 1.85;
}

.np-article p {
    margin: 0 0 1.4rem;
}

.np-article section > :last-child {
    margin-bottom: 0;
}

.np-article strong {
    color: var(--forest);
    font-weight: 650;
}

.np-article .np-example {
    margin-block: 1.75rem;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--forest);
    background: var(--surface);
}

.np-article ul {
    margin: 1.5rem 0 1.75rem;
    padding-left: 1.25rem;
}

.np-article li {
    margin-bottom: 0.85rem;
    padding-left: 0.45rem;
}

.np-article li::marker {
    color: #527329;
}

.np-article .np-methods {
    margin-top: 1.5rem;
    padding: 0;
    list-style: none;
    counter-reset: method;
}

.np-methods li {
    position: relative;
    margin: 0;
    padding: 1.25rem 0 1.25rem 3rem;
    border-top: 1px solid var(--line);
    counter-increment: method;
}

.np-methods li::before {
    content: counter(method);
    position: absolute;
    top: 1.5rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    color: var(--forest);
    background: var(--lime);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

.np-conclusion {
    margin-top: 3.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-top: 5px solid var(--lime);
    color: var(--white);
    background: var(--forest);
}

.np-conclusion p {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    line-height: 1.55;
}

/* Jednoduchá patička */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(100%, 80rem);
    margin-inline: auto;
    padding: 1.75rem 2rem;
}

.footer-name {
    margin: 0;
    font-weight: 650;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.75rem;
    font-size: 0.9375rem;
    text-decoration: none;
}

.back-to-top:hover {
    text-decoration: underline;
}

/* Vyhledávání */

.site-search {
    position: relative;
}

.site-search__toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--forest);
    background: var(--white);
    transition: background-color 160ms ease;
}

.site-search__toggle:hover {
    background: var(--surface);
}

.site-search svg {
    flex-shrink: 0;
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.site-search__desktop-panel {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    width: min(25rem, calc(100vw - 3rem));
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.3rem);
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.site-search--desktop.open .site-search__desktop-panel {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.site-search__input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    padding: 0 0.5rem 0 1rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    color: var(--muted);
    background: var(--white);
    box-shadow: 0 0.5rem 2rem #10332812;
}

.site-search__input-wrap:focus-within {
    outline: 2px solid var(--forest);
    outline-offset: 2px;
}

.site-search__input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0;
    border: 0;
    outline: 0;
    color: var(--forest);
    background: transparent;
    font-size: 1rem;
}

.site-search__input::-webkit-search-cancel-button {
    display: none;
}

.site-search__input::placeholder {
    color: var(--muted);
}

.site-search__clear {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    visibility: hidden;
    color: var(--forest);
    background: var(--surface);
    font-size: 1.4rem;
}

.site-search.has-value .site-search__clear {
    visibility: visible;
}

.site-search__results {
    display: none;
    max-height: min(24rem, 55vh);
    margin-top: 0.5rem;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    background: var(--white);
    box-shadow: 0 0.75rem 2rem #10332814;
}

.site-search.show-results .site-search__results {
    display: block;
}

.site-search__result {
    display: block;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--forest);
    text-decoration: none;
}

.site-search__result:last-child {
    border-bottom: 0;
}

.site-search__result:hover {
    background: var(--surface);
}

.site-search__result-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
}

.site-search__result-subtitle {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.site-search__empty {
    margin: 0;
    padding: 1rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* Tablet */

@media (max-width: 1024px) {
    .header-ul {
        gap: 1.25rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 12.5rem;
        gap: 2rem;
    }

    .hero-fact {
        padding-left: 1.5rem;
    }

    .hero-fact__number {
        font-size: 6.5rem;
    }

    .np-layout {
        grid-template-columns: 11rem minmax(0, 1fr);
        gap: 2.75rem;
    }
}

/* Telefon */

@media (max-width: 768px) {
    html {
        scroll-padding-top: 6rem;
    }

    .header-inner {
        min-height: 4.75rem;
        padding: 0.85rem 1.25rem;
    }

    .site-search--desktop {
        display: none;
    }

    .js .burger {
        display: flex;
    }

    .header-ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .js .header-ul {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100dvh - 5rem);
        padding: 0.75rem 1.25rem 1.25rem;
        overflow-y: auto;
        border-bottom: 1px solid var(--line);
        background: var(--white);
        box-shadow: 0 0.8rem 1.5rem #10332812;
    }

    .js .header-ul.active {
        display: block;
    }

    .header-ul > li > a {
        display: flex;
        min-height: 3rem;
        padding: 0.6rem 0;
    }

    .header-search-mobile {
        display: block;
        margin-bottom: 0.75rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.75rem;
        padding: 3.5rem 1.25rem;
    }

    .main {
        max-width: 18ch;
        font-size: clamp(2.55rem, 7vw, 3.8rem);
    }

    .hero-fact {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        padding: 1.75rem 0 0;
        border-top: 1px solid #608073;
        border-left: 0;
    }

    .hero-fact__number {
        flex-shrink: 0;
        margin: 0;
        font-size: 5.5rem;
    }

    .hero-fact p {
        max-width: 24rem;
    }

    .hero-fact strong {
        margin-bottom: 0.25rem;
    }

    .np-layout {
        display: block;
        padding: 2.5rem 1.25rem 3.5rem;
    }

    .np-toc {
        position: static;
        margin-bottom: 3rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--line);
    }

    .np-toc ol {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 1rem;
    }

    .np-toc a {
        gap: 0.6rem;
        border: 0;
    }

    .np-toc__law {
        margin-top: 1rem;
    }

    .np-article p,
    .np-article li {
        font-size: 1rem;
    }

    .np-article section + section {
        margin-top: 2.25rem;
        padding-top: 2.25rem;
    }

    .footer-inner {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 380px) {
    .hero-eyebrow {
        font-size: 0.8125rem;
    }

    .hero-fact {
        gap: 1rem;
    }

    .hero-fact__number {
        font-size: 4.5rem;
    }

    .np-toc ol {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
/* Přidejte na konec stávajícího styly/style.css. */

.np-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.np-resource {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-top: 4px solid var(--forest);
    border-radius: 0.4rem;
    background: var(--surface);
    text-decoration: none;
    transition:
        background-color 160ms ease,
        border-color 160ms ease;
}

.np-resource:hover {
    border-color: var(--forest);
    background: #edf3e5;
}

.np-resource__label {
    color: var(--muted);
    font-size: 0.875rem;
}

.np-resource strong {
    font-size: 1.2rem;
    line-height: 1.4;
}

.np-resource__action {
    margin-top: auto;
    color: var(--forest);
    font-size: 0.9375rem;
    font-weight: 600;
}

.np-article .np-source-note {
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--lime);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.9375rem;
}

/* Přehled koeficientů */

.np-table-wrap {
    max-width: 100%;
    margin: 1.75rem 0;
    overflow-x: auto;
}

.np-table {
    width: 100%;
    min-width: 26rem;
    border-collapse: collapse;
    font-size: 1rem;
}

.np-table caption {
    margin-bottom: 1rem;
    color: var(--forest);
    font-weight: 650;
    text-align: left;
}

.np-table th,
.np-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.np-table thead th {
    color: var(--white);
    background: var(--forest);
    font-weight: 600;
}

.np-table tbody tr:nth-child(even) {
    background: var(--surface);
}

/* Výsledky vyhledávání uvnitř mobilního menu */

.header-ul .site-search__result {
    display: block;
    min-height: 0;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

/* Patička */

.site-footer.np-footer {
    margin-top: 0;
    border-top: 0.35rem solid var(--lime);
    color: #dbe6df;
    background: var(--forest-deep);
}

.np-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
    width: min(100%, 80rem);
    margin-inline: auto;
    padding: 3.5rem 2rem;
}

.np-footer h2 {
    margin: 0 0 1.25rem;
    color: var(--white);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.5;
}

.np-footer__brand {
    display: inline-block;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.15;
    text-decoration: none;
}

.np-footer__brand span {
    color: var(--lime);
}

.np-footer__intro p {
    max-width: 28ch;
    margin: 1.25rem 0 0;
    font-size: 1rem;
}

.np-footer__links {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.np-footer__links a {
    display: inline-block;
    padding-block: 0.2rem;
    text-decoration: none;
}

.np-footer__links a:hover {
    color: var(--lime);
    text-decoration: underline;
}

.np-footer__websites {
    display: grid;
    gap: 1rem;
}

.np-footer__logo-link,
.np-footer__external {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border: 1px solid #688073;
    border-radius: 0.4rem;
    text-decoration: none;
}

.np-footer__logo-link {
    color: var(--forest-deep);
    background: var(--white);
}

.np-footer__logo-link img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 3.5rem;
    object-fit: contain;
    object-position: left center;
}

.np-footer__logo-link img[hidden] {
    display: none;
}

.np-footer__logo-link span,
.np-footer__external small {
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.np-footer__external strong {
    color: var(--lime);
    font-size: 1.125rem;
}

.np-footer__logo-link:hover,
.np-footer__external:hover {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
}

.np-footer :focus-visible {
    outline-color: var(--lime);
}

.np-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, 76rem);
    margin-inline: auto;
    padding: 1.25rem 0;
    border-top: 1px solid #49675a;
    font-size: 0.9375rem;
}

.np-footer__bottom p {
    margin: 0;
}

@media (max-width: 1024px) {
    .np-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .np-footer__intro {
        grid-column: 1 / -1;
    }

    .np-footer__bottom {
        width: calc(100% - 4rem);
    }
}

@media (max-width: 600px) {
    .np-resource-grid,
    .np-footer__inner {
        grid-template-columns: 1fr;
    }

    .np-footer__inner {
        padding: 2.5rem 1.25rem;
    }

    .np-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        width: calc(100% - 2.5rem);
    }
}
.ffr{
    margin: 0 4px;
    position: relative;
    transition: all 0.2s;
    display: inline-block;
}
.ffr::after{
    content: "";
    height: 1px;
    width: 0;
    position: absolute;
    bottom: 3px;
    left: 0;
    background-color: rgb(15, 114, 17);
    transition: all 0.2s;
}
.ffr:hover::after{
    width: 100%;
    
}

.ffr:hover{
    transform: scale(1.1);
}

.ffr img{
    cursor: pointer;
    user-select: none;
}