/*
Theme Name: Lunithon Automobily
Version: 1.9
Requires PHP: 8.0
*/
:root{--paper:#faf9f6;--ink:#222521;--accent:#a23f25;--line:#d9dad4}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 'Segoe UI',Arial,sans-serif}.wrap{width:min(91%,1460px);margin:auto}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible{outline:3px solid #357dc4;outline-offset:4px}header{border-bottom:1px solid var(--line)}.bar,nav,.sectionhead,.filters,.eyebrow{display:flex;align-items:center}.bar{height:80px;justify-content:space-between;gap:24px}.brand{font:bold italic 43px/.9 Georgia,serif;letter-spacing:-3px}.brand span,em{color:var(--accent)}nav{gap:clamp(16px,2.8vw,45px)}nav a,.phone{font-size:15px;font-weight:600}nav a:hover,footer a:hover,.sectionhead>a:hover{text-decoration:underline}.phone{border:1px solid #797970;border-radius:4px;padding:9px 17px}.hero{display:grid;grid-template-columns:44% 56%;border-bottom:1px solid var(--line)}.heroText{padding:clamp(48px,6vw,105px) 6% clamp(48px,6vw,105px) max(10.2%,calc((100vw - 1460px)/2));align-self:center}.eyebrow{font-size:12px;line-height:1.4;font-weight:700;letter-spacing:.15em;gap:11px}.eyebrow i{width:27px;height:2px;background:var(--accent)}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;margin:0}h1{font-size:clamp(52px,5.6vw,98px);letter-spacing:-.06em;line-height:1.03;margin:28px 0 21px}.heroText p{max-width:385px;color:#50544e;font-size:17px;line-height:1.65;margin:0 0 30px}.button{display:inline-block;background:var(--accent);color:white;font-weight:600;border-radius:3px;padding:13px 21px}.button:hover{background:#80301c}figure{position:relative;margin:0;min-height:420px;background:#424b43}figure img{position:absolute;width:100%;height:100%;object-fit:cover}figcaption{position:absolute;bottom:18px;right:20px;color:white;background:#161a19cd;padding:5px 11px;font-size:13px}figcaption span{color:#b9b8b1;padding:0 5px}.section{padding:64px 0}.sectionhead{justify-content:space-between;gap:20px;margin:12px 0 27px}.sectionhead>a{text-decoration:underline;text-underline-offset:4px}h2{font-size:clamp(40px,4vw,68px);line-height:1.12;letter-spacing:-.055em}.filters{gap:4px;flex-wrap:wrap}.filters button{font:inherit;font-size:14px;cursor:pointer;padding:7px 13px;border:1px solid transparent;border-radius:30px;color:#444;background:none}.filters button[aria-pressed=true]{background:var(--ink);color:white}.filters button:hover{border-color:#8a8b83}.grid,.refs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:35px 24px}.card{display:block;border-bottom:1px solid var(--line);padding-bottom:15px}.card[hidden]{display:none}.photo{position:relative;aspect-ratio:1.64;background:#e3e4df;overflow:hidden}.photo img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.card:hover img{transform:scale(1.025)}.photo span{position:absolute;left:12px;bottom:12px;background:var(--paper);padding:3px 9px;font-weight:600;font-size:13px}.meta{color:#595c55;margin:14px 0 4px;font-size:14px}h3{font-size:clamp(23px,2.3vw,36px);line-height:1.2;letter-spacing:-.04em}.price{color:var(--accent);margin-top:10px;font-weight:650}.story{background:#eaece6;padding:62px 0}.split{display:grid;grid-template-columns:1fr 1fr;gap:6%;align-items:center}.split h2{margin-top:16px}.split p{max-width:560px;font-size:17px}.refs{grid-template-columns:1fr 1fr}footer{background:#232823;color:#fff;padding:55px 0 20px}.contact{display:grid;gap:10px;font-size:clamp(22px,2vw,34px)}.address,.legal{font-size:15px}.legal{margin-top:40px;padding-top:18px;border-top:1px solid #596057;color:#c6c9c3;font-size:13px}@media(max-width:850px){.bar{height:auto;padding:14px 0;flex-wrap:wrap;gap:12px}.brand{font-size:35px}nav{order:3;justify-content:space-between;width:100%;padding-top:8px}.hero{grid-template-columns:1fr 1fr}.heroText{padding:39px 6% 40px 9%}h1{font-size:clamp(42px,6vw,56px)}.grid{grid-template-columns:1fr 1fr}.sectionhead{align-items:flex-start;flex-direction:column}.section{padding:44px 0}}@media(max-width:600px){.hero,.split,.grid,.refs{grid-template-columns:1fr}.heroText{padding:36px 5%}.heroText p{margin-bottom:22px}h1{font-size:58px;margin:20px 0 16px}figure{min-height:0;aspect-ratio:1.55}.section{padding:36px 0}.photo{aspect-ratio:1.65}.split{gap:20px}.story{padding:38px 0}.phone{font-size:14px;padding:6px 10px}nav a{font-size:14px}.legal{line-height:1.8}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.photo img{transition:none}}

.vehicle{display:none;padding-block:32px 64px}.vehicle:target{display:block}body:has(.vehicle:target) main#uvod{display:none}.back{display:inline-block;margin-bottom:24px;text-decoration:underline;text-underline-offset:4px}.vehicle h1{font-size:clamp(36px,5vw,74px);margin:12px 0 24px}.vehicle-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:clamp(22px,4vw,64px);align-items:start}.vehicle img{width:100%;display:block;height:auto}.vehicle dl{margin:16px 0 24px}.vehicle dl div{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding:9px 0}.vehicle dd{margin:0;text-align:right;font-weight:600}.vehicle .price{font-size:26px}.vehicle p{max-width:68ch;line-height:1.7}.vehicle h2{font-size:32px;margin-top:28px}@media(max-width:720px){.vehicle-layout{grid-template-columns:1fr}.vehicle{padding-block:24px 40px}}
.brand{display:flex;align-items:center;width:clamp(176px,17vw,255px);height:48px;overflow:hidden}.brand img{display:block;width:100%;height:auto}.bar{background:var(--paper)}
.vehicle{display:none;padding-block:32px 64px}.vehicle:target{display:block}body:has(.vehicle:target) main#uvod{display:none}.back{display:inline-block;margin-bottom:24px;text-decoration:underline;text-underline-offset:4px}.vehicle-page h1{font-size:clamp(36px,5vw,74px);margin:12px 0 24px}.vehicle-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:clamp(22px,4vw,64px);align-items:start}.vehicle-page img{width:100%;display:block;height:auto}.vehicle-page dl{margin:16px 0 24px}.vehicle-page dl div{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding:9px 0}.vehicle-page dd{margin:0;text-align:right;font-weight:600}.vehicle-page .price{font-size:26px}.vehicle-page p{max-width:68ch;line-height:1.7}.vehicle-page h2{font-size:32px;margin-top:28px}@media(max-width:720px){.vehicle-layout{grid-template-columns:1fr}.vehicle{padding-block:24px 40px}}

.vehicle-page img,.description img{max-width:100%;height:auto}.vehicle-page .description{margin:32px 0}.vehicle-page h1{font-size:clamp(40px,5vw,76px)}
.featured-cars > :nth-child(n+4){display:none}.vehicle-page .vat-note{margin:0 0 12px}

.story-portrait{display:block;width:min(100%,360px);height:auto;margin-top:22px;border-radius:4px}

.photo-viewer[open]{box-sizing:border-box;position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#111;color:white;display:flex;flex-direction:column}.photo-bar{display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:10px 16px}.photo-bar a{color:white;text-decoration:underline}.photo-bar button{font:inherit;border:0;border-radius:3px;padding:6px 14px;cursor:pointer}.photo-stage{flex:1;min-height:0;overflow:auto}.photo-stage img{display:block;width:100%;height:100%;object-fit:contain;cursor:zoom-in}.actual-size .photo-stage img{width:auto;height:auto;max-width:none;max-height:none;margin:auto;cursor:zoom-out}.vehicle-layout a:has(img){display:block;cursor:zoom-in}

.vehicle-page .description,.vehicle-page .description p{max-width:100ch;font-size:clamp(17px,1.2vw,19px);line-height:1.65}

.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));gap:12px}.gallery img{aspect-ratio:4/3;object-fit:cover}.archive{margin-top:30px}.archive summary{cursor:pointer;font-weight:650;padding:14px 0}.archive .grid{margin-top:20px}[hidden]{display:none!important}
.car-contact{display:flex;flex-wrap:wrap;gap:10px}.car-contact .mail{background:transparent;color:inherit;border:1px solid currentColor}article.vehicle:focus{outline:none}.refs{grid-template-columns:repeat(3,minmax(0,1fr))}.vat-label{display:table;font-size:13px;font-weight:600;line-height:1.35;margin:.45rem 0 0;padding:.3em .7em;border-radius:4px}.vat-ano{background:#dcebdc;color:#25452b}.vat-ne{background:#f0efe9;color:#514f44}.story-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(30px,6vw,90px);align-items:center}.story-layout .story-photo{margin:0;width:100%;max-width:440px;justify-self:center}.story-layout .story-portrait{width:100%;height:auto;margin:0;border-radius:6px}.story-layout figcaption{font-size:14px;font-weight:600;margin-top:10px}.story-copy h2{margin:.35em 0}.story-copy p{max-width:54ch;line-height:1.65;margin:1em 0 0}@media(max-width:720px){.refs,.story-layout{grid-template-columns:1fr}.story-layout{gap:20px}.story-copy{grid-row:1}.story-layout .story-photo{justify-self:start;width:min(100%,360px)}}
.hero figure img{object-fit:cover}.vehicle-page .gallery img{aspect-ratio:4/3;object-fit:cover}

.card .photo{aspect-ratio:4/3}.card .photo img{width:100%;height:100%;object-fit:cover}

.photo-bar{flex-wrap:wrap;gap:10px}.photo-bar button{min-height:40px}.photo-bar span{white-space:nowrap}

.memo{max-width:1100px;padding-block:clamp(32px,6vw,85px)}.memo-lead{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:6%}.memo img{width:100%;height:auto;display:block}.memo p:not(.eyebrow){max-width:66ch;font-size:1.1rem;line-height:1.75}.memo section{margin-block:3.5rem}.memo h2{font-size:clamp(2rem,4vw,3.4rem)}.memo-gallery{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:1rem;align-items:center;margin-top:1.75rem}.memo-gallery img{max-height:28rem;object-fit:contain}.story-copy .button{margin-top:.6rem}.memo-gallery.memo-cars img{aspect-ratio:3/2;height:auto;max-height:none;object-fit:cover}.memo-cars img:first-child{object-position:55% center}.memo-sea{grid-template-columns:3fr 7fr 3fr;align-items:center}@media(max-width:650px){.memo-lead,.memo-gallery{grid-template-columns:1fr;grid-auto-flow:row;gap:1rem}.memo section{margin-block:2.4rem}}

