/* First local design variation. Remove the link in MasterPage.master to revert. */

:root {
    --duna-accent: #86b001;
    --duna-heading: 'Manrope', 'Inter', sans-serif;
    --duna-content-width: 90%;
}

/* Keep the selected realization category as light as the hover state. */
body .realizace-filter.is-active {
    background: #edf2df;
    color: #111;
    border-color: #86b001;
}

/* One outer content boundary across the public website, including hero text. */
body .page-inner, body .cookie-banner-inner {
    width: var(--duna-content-width);
    max-width: none;
}
body .z-dilny { padding-left: 0; padding-right: 0; }
body .sluzby, body .statistiky, body .footer-main, body .footer-bottom {
    padding-left: 5%;
    padding-right: 5%;
}
body .hero-obsah { margin-left: 5%; }
body .hero-spolecne { left: 5%; }
body .footer-about {
    align-items: flex-start;
    text-align: left;
    font-size: clamp(1.375rem, 1.5vw, 1.875rem);
    line-height: 1.4;
}
body .footer-about h3 {
    max-width: 100%;
    margin-bottom: 22px;
    font-family: var(--duna-heading);
    font-size: clamp(1.75rem, 2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
}
body .footer-about p {
    max-width: 100%;
    font-size: clamp(1.375rem, 1.5vw, 1.875rem);
    line-height: 1.4;
}
@media (max-width: 700px) {
    body .hero-obsah { width: var(--duna-content-width); }
}

body .hero h1, body .page-hero h1,
body .sluzby-header h2, body .z-dilny-header h2,
body .z-dilny-obsah h3, body .sluzba strong,
body .aktualita-text h2, body .aktualita-text h3,
body .kontakt-value {
    font-family: var(--duna-heading);
    font-weight: 800;
    letter-spacing: -.035em;
}

body .hero h1, body .page-hero h1 { line-height: 1.04; }
body .hero h1 span { display: inline-block; }
body .hero h2 { font-family: var(--duna-heading); letter-spacing: -.025em; }
body .hero-text { color: #e5e5e5; }
body .hero h2:empty { display: none; }

body .sluzby-header h2, body .z-dilny-header h2 { text-wrap: balance; }
body .sluzby-header > span, body .z-dilny-header > span, body .z-dilny-eyebrow {
    color: #607e00;
    font-size: .875rem;
    letter-spacing: .13em;
    margin-bottom: 10px;
}
body .sluzby-header h2::after, body .z-dilny-header h2::after {
    content: '';
    display: inline-block;
    width: .19em;
    height: .19em;
    margin-left: .12em;
    border-radius: 50%;
    background: var(--duna-accent);
}

body .sluzba {
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px;
    transition: background-color .22s ease, box-shadow .22s ease;
}
body .sluzba strong { font-size: 1rem; letter-spacing: -.025em; }
body .sluzba span { color: #555; font-size: .875rem; line-height: 1.55; }
body .sluzba img { transition: transform .22s ease; }
body .sluzba i { display: none; }
body .sluzba::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 38%;
    right: 38%;
    height: 2px;
    background: var(--duna-accent);
    transform: scaleX(0);
    transition: transform .22s ease;
}
body .sluzba:hover, body .sluzba:focus-visible { background: #f6f8f0; }
body .sluzba:hover::after, body .sluzba:focus-visible::after { transform: scaleX(1); }
body .sluzba:hover img { transform: translateY(-4px); }

body .z-dilny-obsah { padding-left: 8px; padding-right: 8px; text-align: left; }
body .z-dilny-obsah h3 { font-size: 1.2rem; line-height: 1.35; }
body .z-dilny-text { font-size: .9375rem; line-height: 1.7; }
body .z-dilny-obrazek { border-radius: 5px; }
body .z-dilny-obrazek img { transition: transform .35s ease; }
a.z-dilny-obrazek:hover img { transform: scale(1.025); }
body .z-dilny-text a::after { content: none; }
body .z-dilny-text a, body .z-dilny-text a:visited { color: #607e00; }
body .z-dilny-text a:hover, body .z-dilny-text a:focus-visible { color: #425800; }

/* Shared reference cards on the home page, listings and service pages. */
body .z-dilny-list { gap: clamp(28px, 2.6vw, 48px); }
body .home-content .z-dilny-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
body .home-content .z-dilny-item {
    grid-column: auto !important;
    width: auto !important;
}
body .z-dilny-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e4e6e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 18px #18200006;
}
body .z-dilny-item .z-dilny-obrazek { flex-shrink: 0; border-radius: 0; }
body .z-dilny-item .z-dilny-obsah { padding: clamp(20px, 1.5vw, 28px); background: #fff; }
body .z-dilny-item .z-dilny-obsah h3 { margin-bottom: 14px; font-size: 1.125rem; }
body .z-dilny-item .z-dilny-odkaz { align-self: flex-start; }

@media (max-width: 1100px) {
    body .home-content .z-dilny-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    body .home-content .z-dilny-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    body .z-dilny-item .z-dilny-obsah { padding: 22px; }
}

body .hero-tlacitka .btn, body .page-hero-actions .btn, body .header-cta {
    border-radius: 5px;
    font-weight: 600;
    text-transform: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
body .hero-tlacitka .btn { font-size: .9375rem; }
body .hero-tlacitka .btn span, body .page-hero-actions .btn span { display: none; }
body .hero-tlacitka .btn-primary { background: #a0c520; border-color: #a0c520; color: #131900; }
body .hero-tlacitka .btn-primary:hover { background: #b0d433; border-color: #b0d433; box-shadow: 0 4px 20px #86b00125; }
body .header-cta:hover { color: #111; }

/* Shared four-column blocks for services and information pages. */
body .page-principle h3 {
    color: #252525;
    font-family: var(--duna-heading);
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -.025em;
    text-transform: none;
    margin-bottom: 16px;
}
body .page-principle p {
    color: #555;
    font-size: 1em;
    font-weight: 300;
    line-height: 1.7;
}
body .page-section-header { margin-bottom: 40px; }
body .page-heading, body .page-section-heading, body .page-detail h2 { text-wrap: balance; }
body .page-column-left .page-heading { max-width: none; }
body .page-column-right strong { font-weight: 600; }
body .page-section-dark .page-column-right p { color: #bbb; }
body .page-section-dark .page-column-right strong { color: #fff; }

/* Paired information blocks share the same equal-width layout. */
body .page-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
    body .page-details { grid-template-columns: minmax(0, 1fr); }
}

/* Shared image-free hero: a compact introduction with a single brand-color stripe. */
body .page-hero-simple {
    min-height: 230px;
    background: #111;
}
body .page-hero-simple .page-hero-content {
    position: relative;
    z-index: 1;
    width: 60%;
    max-width: 850px;
    min-height: 230px;
    padding: 38px 0 52px;
}
body .page-hero-simple h1 {
    margin-bottom: 14px;
    font-size: clamp(2.5rem, 3vw, 3.5rem);
}
body .page-hero-simple::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 7%;
    width: 19%;
    background: var(--duna-accent);
    transform: skewX(-18deg);
    pointer-events: none;
}
@media (max-width: 700px) {
    body .page-hero-simple .page-hero-content { width: 100%; min-height: 210px; padding: 32px 0 42px; }
    body .page-hero-simple { min-height: 210px; }
    body .page-hero-simple::after { display: none; }
}

/* Workshop totals: illuminated panels with pictograms and a restrained green accent. */
body .home-content .statistiky { padding-block: clamp(56px, 4vw, 78px); background: #111; }
body .home-content .statistiky-header { margin-bottom: 36px; }
body .home-content .statistiky-header h2 { font-family: var(--duna-heading); font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
body .home-content .statistiky-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.5vw, 28px); }
body .home-content .statistiky-item {
    position: relative;
    min-width: 0;
    min-height: 242px;
    padding: 30px 16px 34px;
    border: 1px solid #34382b;
    border-radius: 8px;
    background: linear-gradient(145deg, #22251c, #181a16 65%);
    overflow: hidden;
    transition: border-color .2s ease;
}
body .home-content .statistiky-item::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 0 25px;
    background: url('/Images/ContentIcons/print.svg') center / 36px 36px no-repeat;
}
body .home-content .statistiky-item:nth-child(2)::before { background-image: url('/Images/ContentIcons/sign.svg'); }
body .home-content .statistiky-item:nth-child(3)::before { background-image: url('/Images/ContentIcons/document.svg'); }
body .home-content .statistiky-item:nth-child(4)::before { background-image: url('/Images/ContentIcons/car.svg'); }
body .home-content .statistiky-item::after { content: ''; position: absolute; bottom: 0; left: 35%; right: 35%; height: 3px; background: var(--duna-accent); border-radius: 3px 3px 0 0; }
body .home-content .statistiky-item strong { color: #f5f7ed; font-family: var(--duna-heading); font-size: clamp(1.7rem, 2.2vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -.04em; white-space: nowrap; }
body .home-content .statistiky-item small { margin-top: 12px; color: #c5cbb9; font-size: .9375rem; }
body .home-content a.statistiky-item:hover, body .home-content a.statistiky-item:focus-visible { border-color: var(--duna-accent); }
@media (max-width: 1100px) {
    body .home-content .statistiky-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body .home-content .statistiky-item strong { font-size: clamp(1.7rem, 3.4vw, 2.8rem); }
}
@media (max-width: 480px) {
    body .home-content .statistiky-list { grid-template-columns: minmax(0, 1fr); }
    body .home-content .statistiky-item { min-height: 205px; padding: 24px 16px 28px; }
    body .home-content .statistiky-item::before { margin-bottom: 16px; }
    body .home-content .statistiky-item strong { font-size: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) { body .home-content .statistiky-item { transition: none; } }

body a:focus-visible, body button:focus-visible { outline: 2px solid var(--duna-accent); outline-offset: 4px; }
body ::selection { background: #d7ea99; color: #161c00; }

@media (prefers-reduced-motion: reduce) {
body .sluzba, body .sluzba::after, body .sluzba img, body .z-dilny-obrazek img { transition: none; }
body .sluzba:hover img, body a.z-dilny-obrazek:hover img { transform: none; }
}
