/* KFS — Klimes Filip Services
   Palette : crème #F5EFE1 · noir #15130F · jaune #FFC700 */
:root {
  --cream: #F5EFE1;
  --cream-2: #EDE4CF;
  --card: #FBF7EC;
  --ink: #15130F;
  --ink-2: #1E1B16;
  --line-dark: #3B362D;
  --yellow: #FFC700;
  --text-2: #3D382F;
  --muted: #5A5347;
  --muted-dark: #C9C0AE;
  --rule: #CFC4AA;
  --photo-bg: #D9CFB6;
  --display: Archivo, 'Arial Narrow', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

.d { font-family: var(--display); font-stretch: 118%; font-weight: 850; letter-spacing: -0.02em; }
.m { font-family: var(--mono); }
.muted { color: var(--muted); }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.show-mobile, .show-mobile-sr { display: none; }

.ic { width: 18px; height: 18px; flex-shrink: 0; }
.ic-sm { width: 15px; height: 15px; }

.chk { height: 22px; background: repeating-conic-gradient(var(--ink) 0 25%, var(--yellow) 0 50%) 0 0 / 22px 22px; }
.chk-sm { width: 24px; height: 12px; border-radius: 2px; background: repeating-conic-gradient(var(--ink) 0 25%, var(--yellow) 0 50%) 0 0 / 12px 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn-sm { height: 46px; padding: 0 18px; font-size: 15px; }
.btn-black { background: var(--ink); color: var(--cream); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-black-yellow { background: var(--ink); color: var(--yellow); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s; }
.icon-btn:hover { background: var(--yellow); }
.icon-btn-lg { width: 52px; height: 52px; background: var(--cream); }

.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eyebrow-yellow { color: var(--yellow); margin: 0; }
.tag { display: inline-block; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tag-yellow { background: var(--yellow); color: var(--ink); }
.tag-cream { background: var(--cream); color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--cream); border-bottom: 2px solid var(--ink); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 12px 12px 4px 4px; background: var(--yellow); border: 2px solid var(--ink); font-size: 24px; letter-spacing: .04em; color: var(--ink); }
.logo-sm { height: 32px; padding: 0 10px; font-size: 17px; border-radius: 9px 9px 3px 3px; background: var(--ink); color: var(--yellow); border: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 15px; }
.brand-sub { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.main-nav { display: flex; gap: 32px; font-size: 15px; font-weight: 600; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--yellow); text-underline-offset: 6px; }
.header-actions { display: flex; gap: 10px; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr)); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-title { font-size: clamp(44px, 5.6vw, 84px); line-height: .95; text-wrap: balance; }
.hero-title mark { background: var(--yellow); color: inherit; padding: 0 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { max-width: 540px; font-size: 19px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.hero-media { position: relative; padding: 0 28px 28px 0; }
.hero-block { position: absolute; left: 28px; top: 28px; right: 0; bottom: 0; border-radius: 28px; background: var(--yellow); border: 2px solid var(--ink); }
.hero-media img { position: relative; width: 100%; aspect-ratio: 5 / 4; height: auto; object-fit: cover; border-radius: 28px; border: 2px solid var(--ink); }
.sticker { position: absolute; left: -26px; bottom: 2px; width: 150px; height: 150px; border-radius: 50%; background: var(--ink); color: var(--cream); border: 4px solid var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; font-size: 12px; letter-spacing: .06em; }
.sticker-price { font-size: 34px; line-height: 1; color: var(--yellow); letter-spacing: -0.02em; }
.wob { animation: wob 6s ease-in-out infinite; }
@keyframes wob { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(-5deg); } }

/* Perks */
.perks { background: var(--ink); color: var(--cream); }
.perks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.perk { display: flex; align-items: center; gap: 22px; padding: 40px 32px; border-right: 1px solid var(--line-dark); }
.perk:first-child { padding-left: 0; }
.perk:last-child { border-right: 0; padding-right: 0; }
.perk-big { font-size: 54px; line-height: 1; color: var(--yellow); white-space: nowrap; }
.perk-text { display: flex; flex-direction: column; gap: 4px; }
.perk-text strong { font-size: 18px; }
.perk-text span { font-size: 15px; line-height: 1.45; color: var(--muted-dark); }

/* Sections */
.section { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1; }
.section-note { max-width: 380px; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.section-sub { margin-top: 14px; font-size: 17px; color: var(--text-2); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 18px; padding: 30px; border: 2px solid var(--ink); border-radius: 22px; background: var(--card); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-size: 24px; }
.step-title { font-size: 24px; line-height: 1.1; }
.step p { color: var(--text-2); line-height: 1.55; }
.docs { display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: 22px; background: var(--ink); color: var(--cream); }
.docs ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.docs li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.tick { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--yellow); color: var(--ink); }
.docs-note { font-size: 14px; color: var(--muted-dark); }

/* Fleet */
.fleet { background: var(--cream-2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.fleet .section { gap: 36px; padding-top: 96px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.chip-count { font-size: 12px; opacity: .75; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 12px 12px 20px; border: 2px solid var(--ink); border-radius: 22px; background: var(--card); text-align: left; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--ink); }
.card-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--photo-bg); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-photo img { transform: scale(1.05); }
.card-photo .tag { position: absolute; top: 10px; left: 10px; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.card-title { font-size: 21px; line-height: 1.1; }
.card-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.card-prices { display: flex; flex-direction: column; gap: 4px; }
.card-week .d { font-size: 32px; line-height: 1; }
.card-week .muted { font-size: 14px; }
.card-sub { font-size: 12px; color: var(--muted); }
.go { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); transition: background-color .2s; }
.card:hover .go { background: var(--yellow); }

/* Overlays */
.overlay { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: center; padding: 24px var(--gutter); overflow-y: auto; }
.overlay[hidden] { display: none; }
.overlay-bottom { align-items: flex-end; }
.overlay-bg { position: fixed; inset: 0; background: rgba(21, 19, 15, .72); cursor: pointer; }
.dialog { position: relative; border: 2px solid var(--ink); background: var(--cream); outline: none; animation: pop .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.car-dialog { width: min(1120px, 100%); margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 20px 40px 20px 20px; border-radius: 28px; box-shadow: 0 14px 0 var(--ink); }
.car-photo { position: relative; border-radius: 18px; overflow: hidden; background: var(--photo-bg); aspect-ratio: 1 / 1; touch-action: pan-y; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; }
.car-nav { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.car-pos { padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 600; }
.car-close-mobile { display: none; position: absolute; top: 10px; right: 10px; background: var(--cream); }
.car-body { display: flex; flex-direction: column; gap: 26px; padding: 20px 0; min-width: 0; }
.car-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.car-head-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.car-title { font-size: 40px; line-height: 1; }
.prices { display: flex; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; }
.prices > div { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.price-week { flex: 1.4; background: var(--yellow); }
.price-week .d { font-size: 44px; line-height: 1; }
.price-small { flex: 1; border-left: 2px solid var(--ink); }
.price-small .d { font-size: 26px; line-height: 1; }
.price-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.price-label.muted { color: var(--muted); }
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); grid-auto-flow: column; column-gap: 28px; }
.specs > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; }
.specs > div:nth-child(odd) { border-bottom: 1px solid var(--rule); }
.specs dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-size: 17px; font-weight: 700; }
.car-actions { margin-top: auto; }
.car-actions .btn { flex: 1 1 200px; }
.hint { font-size: 13px; color: var(--muted); }

.legal-dialog { width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 24px; }
.legal-title { font-size: 30px; }
.legal-list { margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.55; }
.legal-list dt { font-weight: 700; }
.legal-list dd { margin: 0; color: var(--text-2); }

/* Footer */
.site-footer { background: var(--yellow); color: var(--ink); }
.footer-inner { padding-top: 88px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 56px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 48px; align-items: end; }
.footer-cta { display: flex; flex-direction: column; gap: 24px; }
.footer-title { font-size: clamp(36px, 4.6vw, 68px); line-height: .98; }
.contacts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.contacts > div { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 2px solid var(--ink); }
.contacts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.contacts dd { margin: 0; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.contacts a { text-decoration: none; }
.contacts a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.copyright { display: flex; align-items: center; gap: 12px; }
.link-btn { height: 44px; padding: 0 4px; border: 0; background: transparent; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* Tablet */
@media (max-width: 1000px) {
  .main-nav { display: none; }
  .perks-grid { grid-template-columns: 1fr; }
  .perk, .perk:first-child, .perk:last-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .perk:last-child { border-bottom: 0; }
  .car-dialog { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .car-body { padding: 0 4px 4px; }
}

/* Mobile */
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .hide-mobile { display: none; }
  .show-mobile { display: inline; }
  .show-mobile-sr { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-row { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .logo { height: 40px; padding: 0 12px; font-size: 21px; }
  .brand-name { font-size: 14px; }
  .brand-sub { font-size: 10px; }
  .header-actions .btn-sm { width: 44px; height: 44px; padding: 0; gap: 0; }

  .hero { gap: 28px; padding-top: 28px; padding-bottom: 40px; }
  .hero-copy { gap: 22px; }
  .hero-title { font-size: 44px; }
  .hero-title mark { padding: 0 6px; }
  .lead { font-size: 17px; }
  .hero-copy .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; order: 2; }
  .hero-copy .btn-row .btn-black { grid-column: 1 / -1; }
  .hero-copy .btn-row .btn { height: 52px; padding: 0 12px; font-size: 15px; }
  .hero-media { padding: 0 16px 16px 0; }
  .hero-block { left: 16px; top: 16px; border-radius: 22px; }
  .hero-media img { aspect-ratio: 4 / 3; border-radius: 22px; }
  .sticker { left: auto; right: -2px; top: -18px; bottom: auto; width: 108px; height: 108px; border-width: 3px; font-size: 10px; }
  .sticker-price { font-size: 24px; }

  .perk { gap: 16px; padding: 20px 0; }
  .perk-big { width: 104px; flex-shrink: 0; font-size: 30px; }
  .perk-text strong { font-size: 16px; }
  .perk-text span { font-size: 14px; }

  .chk { height: 18px; background-size: 18px 18px; }
  .section { padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  .eyebrow { font-size: 12px; margin-bottom: 10px; }
  .h2 { font-size: 34px; }
  .section-note { display: none; }
  .section-sub { font-size: 15px; margin-top: 10px; }
  .steps { gap: 12px; }
  .step { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 20px; border-radius: 18px; }
  .step-n { width: 44px; height: 44px; font-size: 20px; }
  .step-title { font-size: 19px; flex: 1; }
  .step p { flex-basis: 100%; padding-left: 60px; font-size: 15px; }
  .docs { padding: 22px; border-radius: 18px; gap: 14px; }
  .docs li { font-size: 16px; }

  .fleet .section { padding-top: 52px; gap: 20px; }
  .fleet .section-head { flex-direction: column; align-items: stretch; gap: 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; height: 44px; padding: 0 16px; font-size: 14px; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card { flex-direction: row; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 18px; }
  .card:hover { transform: none; box-shadow: none; }
  .card-photo { width: 112px; height: 112px; flex-shrink: 0; aspect-ratio: auto; border-radius: 12px; }
  .card-photo .tag { display: none; }
  .card-body { padding: 0; flex: 1; min-width: 0; gap: 6px; }
  .card-title { font-size: 17px; }
  .card-week .d { font-size: 24px; }
  .card-week .muted { font-size: 13px; }
  .card-sub { display: none; }
  .go { width: 36px; height: 36px; }

  .overlay { padding: 10px; align-items: flex-start; }
  .car-dialog { padding: 10px 10px 18px; border-radius: 24px; gap: 18px; box-shadow: 0 10px 0 var(--ink); }
  .car-close-mobile { display: inline-flex; width: 44px; height: 44px; }
  .car-close-desktop { display: none; }
  .car-nav { left: 10px; right: 10px; bottom: 10px; }
  .icon-btn-lg { width: 48px; height: 48px; }
  .car-body { gap: 18px; padding: 0 6px; }
  .car-title { font-size: 28px; }
  .prices { flex-wrap: wrap; border-radius: 16px; }
  .prices > div { padding: 12px 16px; }
  .price-week { flex: 1 1 100%; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .price-week .d { font-size: 34px; }
  .price-small { border-left: 0; border-top: 2px solid var(--ink); }
  .price-small + .price-small { border-left: 2px solid var(--ink); }
  .price-small .d { font-size: 20px; }
  .specs { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .specs > div { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .specs > div:last-child { border-bottom: 0; }
  .specs dd { font-size: 15px; text-align: right; }
  .car-actions { flex-direction: column; }
  .car-actions .btn { flex: none; height: 54px; }
  .hint { text-align: center; font-size: 12px; }

  .footer-inner { padding-top: 48px; padding-bottom: 28px; gap: 28px; }
  .footer-top { gap: 28px; }
  .footer-title { font-size: 38px; }
  .footer-cta .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-cta .btn { height: 54px; padding: 0 12px; font-size: 15px; }
  .contacts { grid-template-columns: 1fr; }
  .contacts > div { padding: 14px 0; }
  .contacts dd { font-size: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; }
  .legal-dialog { padding: 22px; border-radius: 20px; }
  .legal-title { font-size: 24px; }
  .overlay-bottom { align-items: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
