body:has(#home-content) { position: static; height: auto; min-height: 100vh; overflow: auto; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
body:has(#home-content) .main-header { height: 66px; }
body:has(#home-content) .logo-link { font-size: 24px; font-weight: 800; letter-spacing: -.7px; }
body:has(#home-content) a { color: var(--primary-color); text-decoration: none; }
body:has(#home-content) a:hover { text-decoration: underline; }
body:has(#home-content) .logo-link { color: var(--text-primary); }
body:has(#home-content) .main-header nav, #home-deliveries nav { display: flex; gap: 18px; flex-wrap: wrap; }
body:has(#home-content) .header-content { gap: 16px; }
#home-content { max-width: 1200px; margin: auto; padding: 24px 16px; }
#home-content section { margin-bottom: 28px; scroll-margin-top: 90px; }
#home-content h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.08; letter-spacing: -1.3px; margin: 12px 0 18px; }
#home-content h2 { font-size: 25px; line-height: 1.2; letter-spacing: -.5px; margin-bottom: 14px; }
#home-content h3 { font-size: 21px; margin: 12px 0; }
#home-content p { color: var(--text-secondary); line-height: 1.6; margin: 0 0 18px; }
#home-intro { display: grid; gap: 24px; align-items: center; }
#home-intro > div > p { max-width: 680px; }
#home-origin-note { color: var(--text-secondary); font-size: 14px; }
#home-content .feature-card { display: block; align-items: stretch; width: auto; padding: 24px; border: 1px solid var(--border-color); border-radius: 24px; background: var(--surface-color); color: var(--text-primary); box-shadow: none; text-align: left; }
#home-content .feature-card span { text-align: left; }
#home-content .feature-card:hover { transform: none; box-shadow: none; border-color: var(--border-color); }
#home-content a.feature-card:hover { transform: none; border-color: var(--primary-color); text-decoration: none; }
#home-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
#home-services .feature-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; }
#home-services span { color: var(--text-secondary); font-size: 13px; line-height: 1.4; }
#home-filter-form { display: grid; gap: 14px; }
#home-filter-form .form-group { margin: 0; min-width: 0; }
#home-filter-form label { display: block; color: var(--text-secondary); margin-bottom: 8px; font-size: 13px; }
#home-filter-form input, #home-filter-form select { width: 100%; min-height: 52px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-color); color: var(--text-primary); font: inherit; padding: 12px; }
#home-filter-form .auth-main-btn { margin: 0; border-radius: 14px; min-height: 52px; }
#home-filter-form [data-home-choice] { width: 100%; min-width: 0; justify-content: space-between; text-align: left; padding: 12px; background: var(--bg-color); font: inherit; overflow-wrap: anywhere; }
#home-filter-form [data-home-choice]::after { content: ''; flex: 0 0 8px; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
#home-filter-form [data-home-choice]:hover { background: var(--bg-color); border-color: var(--primary-color); transform: none; box-shadow: none; }
#home-filter-form :is(button, select):focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
#home-filter-form [data-home-choice]:disabled { opacity: .5; cursor: not-allowed; }
#home-choice-modal { width: min(560px, calc(100% - 24px)); max-height: 80vh; margin: auto; padding: 0; border: 1px solid var(--border-color); border-radius: 20px; background: var(--surface-color); color: var(--text-primary); }
#home-choice-modal > div { padding: 20px; }
#home-choice-modal::backdrop { background: var(--backdrop-color); }
#home-choice-modal .section-header { align-items: center; }
#home-choice-close { width: 44px; min-height: 44px; margin: 0; padding: 8px; }
#home-choice-search { width: 100%; min-height: 48px; margin: 8px 0 16px; padding: 12px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-color); color: var(--text-primary); font: inherit; }
#home-choice-options { display: grid; gap: 8px; max-height: 45vh; overflow-y: auto; }
#home-choice-options button { margin: 0; justify-content: flex-start; text-align: left; overflow-wrap: anywhere; }
#home-choice-modal [hidden], #home-filter-form [hidden] { display: none; }
#home-content .section-header { display: flex; align-items: baseline; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
#home-content .features-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: none; width: 100%; margin: 0; }
#home-content .features-grid a > span { font-weight: 800; color: var(--primary-color); }
#home-company ol { list-style: none; display: grid; gap: 18px; counter-reset: steps; }
#home-company li { display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; counter-increment: steps; }
#home-company li::before { content: counter(steps); grid-row: span 2; font-size: 24px; color: var(--primary-color); }
#home-company li span { grid-column: 2; color: var(--text-secondary); line-height: 1.5; }
#home-content footer { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-secondary); padding: 10px 0; font-size: 13px; }
#home-content footer details { max-width: 640px; }
#home-content footer summary { cursor: pointer; }
#home-bottom-nav { position: fixed; z-index: 100; bottom: 12px; left: 12px; right: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 10px 6px calc(10px + env(safe-area-inset-bottom)); border-radius: 24px; border: 1px solid var(--border-color); background: var(--surface-color); box-shadow: 0 8px 32px var(--shadow-medium); }
#home-bottom-nav a { display: flex; align-items: center; flex-direction: column; gap: 5px; color: var(--text-secondary); font-size: 11px; min-height: 42px; }
#home-bottom-nav a[aria-current] { color: var(--primary-color); }
#home-bottom-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body:has(#home-content) :focus-visible { outline: 2px solid var(--primary-color); outline-offset: 4px; }
@media (min-width: 769px) {
  body:has(#home-content) { padding-bottom: 0; }
  #home-content { padding: 48px 24px; }
  #home-content section { margin-bottom: 40px; }
  #home-intro { grid-template-columns: 1.05fr 1fr; }
  #home-services { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }
  #home-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  #home-filter-form .auth-main-btn { grid-column: 1 / -1; }
  #home-content .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #home-company ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #home-bottom-nav { display: none; }
}
#home-deliveries-gallery[hidden] { display: none; }
#home-content #home-deliveries-gallery { margin: 0 0 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#home-content #home-deliveries-gallery > .feature-card { min-width: 0; padding: 0; border-radius: 18px; overflow: hidden; }
#home-deliveries-gallery h3 { padding: 14px; margin: 0; overflow-wrap: anywhere; }
#home-deliveries-gallery h3[hidden] { display: none; }
#home-deliveries-gallery .stories-scroll { display: flex; gap: 0; overflow-x: auto; max-width: 100%; scroll-snap-type: x mandatory; scrollbar-width: none; }
#home-deliveries-gallery .stories-scroll::-webkit-scrollbar { display: none; }
#home-deliveries-gallery img { display: block; flex: 0 0 100%; width: 100%; min-width: 0; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; scroll-snap-align: start; cursor: zoom-in; }
#home-deliveries-gallery img:focus-visible { outline-offset: -4px; }
#delivery-photo-viewer { width: min(1000px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 12px; border: 1px solid var(--border-color); border-radius: 20px; background: var(--surface-color); color: var(--text-primary); }
#delivery-photo-viewer::backdrop { background: var(--backdrop-color); }
#delivery-photo-viewer button { margin: 0 0 12px auto; min-height: 44px; width: auto; }
#delivery-photo-viewer img { display: block; width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 12px; }
#home-deliveries nav { margin-top: 20px; }
#home-deliveries > p:last-of-type { margin-bottom: 0; }
@media (min-width: 769px) { #home-content #home-deliveries-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

[data-import-journey] { margin: 0; border: 1px solid var(--border-color); border-radius: 24px; overflow: hidden; background: var(--surface-color); }
[data-import-journey] video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 404; object-fit: cover; }
[data-import-journey] figcaption { margin: 0; padding: 14px 18px; color: var(--text-secondary); font-size: 13px; line-height: 1.5; text-align: center; }
