:root { color-scheme: light; --paper: #fff; --cream: #f3f5f6; --ink: #1c252e; --muted: #56616d; --accent: #982f2b; --accent-dark: #77231f; --line: #dce1e5; --header-height: 88px; --anchor-offset: 168px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: default; opacity: .6; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 750; line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: 19px; line-height: 1.45; font-weight: 650; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: var(--anchor-offset); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 14px; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 10px 16px; background: #fff; z-index: 100; }
.skip-link:focus { top: 8px; }
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px #1c252e08; }
.header-inner { position: relative; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { position: relative; z-index: 1; flex-shrink: 0; width: 148px; height: 100%; }
.brand img { position: absolute; top: 0; left: 0; width: 148px; height: 148px; max-width: none; object-fit: contain; border-radius: 0 0 50% 50%; background: #fff; }
#site-menu { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
#site-menu > a { padding-block: 12px; }
#site-menu a:hover { color: var(--accent); }
#site-menu > .nav-contact { padding: 10px 20px; border: 1px solid var(--line); border-radius: 7px; }
#site-menu > .nav-contact:hover { border-color: var(--accent); background: #fff5f4; }
.social-links { display: flex; gap: 4px; }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 7px; }
.social-links a:hover { background: var(--cream); }
#menu-toggle { display: none; background: transparent; padding: 12px; border-radius: 7px; }
.menu-close { display: none; }
#menu-toggle[aria-expanded=true] .menu-lines { display: none; }
#menu-toggle[aria-expanded=true] .menu-close { display: block; }
.hero { position: relative; display: flex; align-items: center; min-height: clamp(560px, calc(100svh - 88px), 780px); padding-block: 100px; background: url('/static/tlo-13c6e10e7f01b641e6b9636f77fdc4c2.webp') center / cover; color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,18,18,.72), rgba(12,18,18,.38) 55%, rgba(12,18,18,.08)); }
.hero-inner { position: relative; }
.hero .eyebrow { color: #fff; }
.hero h1 { max-width: 820px; font-size: clamp(48px, 5.4vw, 76px); text-wrap: balance; text-shadow: 0 2px 12px #0003; }
.hero-subtitle { max-width: 700px; font-size: clamp(19px, 2vw, 26px); line-height: 1.5; margin-top: 24px; text-shadow: 0 1px 8px #0005; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 52px; padding: 13px 24px; border: 1px solid transparent; border-radius: 7px; font-size: 16px; line-height: 1.5; font-weight: 650; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); }
.button-light { border-color: #fff; color: #fff; background: #0003; }
.button-light:hover { background: #fff; color: var(--ink); }
.catalog-section { padding-block: 80px; }
.section-tinted { background: var(--cream); }
.section-heading { margin-bottom: 36px; text-align: center; }
.section-lead { max-width: 600px; margin: 16px auto 0; color: var(--muted); font-size: 17px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.product-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px #1c252e09; }
.product-gallery { position: relative; margin: 12px 12px 0; }
.product-photo { cursor: zoom-in; display: block; width: 100%; padding: 0; background: transparent; }
.product-photo img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; }
.product-badge { position: absolute; pointer-events: none; top: 12px; left: 12px; border-radius: 5px; padding: 6px 11px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px #0002; }
.product-badge.featured { background: var(--accent); color: #fff; }
.gallery-controls { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 6px; padding: 3px; border: 1px solid #fff; border-radius: 30px; background: #fffffff5; font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: 0 2px 12px #0002; white-space: nowrap; }
.gallery-controls button { display: grid; place-items: center; background: transparent; border-radius: 50%; width: 44px; height: 44px; font-size: 28px; line-height: 1; }
.gallery-controls button:hover { background: var(--cream); }
.gallery-controls button:focus-visible { outline-offset: 0; }
.product-info { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-info h3 { margin-bottom: 12px; }
.product-info h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.product-description { font-size: 15px; color: var(--muted); margin-bottom: 18px; overflow-wrap: anywhere; }
.product-price { font-size: 23px; line-height: 1.4; font-weight: 750; margin-top: auto; padding-top: 4px; overflow-wrap: anywhere; }
.product-price > span { display: inline; font-size: 14px; font-weight: 400; color: var(--muted); }
.product-inquiry { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border: 1px solid var(--line); border-radius: 7px; padding: 11px 14px; margin-top: 18px; background: #f7f8f9; font-size: 14px; font-weight: 650; color: var(--accent); }
.product-inquiry:hover { border-color: var(--accent); background: #fff5f4; color: var(--accent-dark); }
.availability-note { font-size: 13px; color: #735219; background: #fff2d7; padding: 6px 10px; border-radius: 5px; align-self: flex-start; margin-bottom: 14px; }
.empty-catalog { color: var(--muted); text-align: center; }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 88px; }
.about-section > div { min-width: 0; }
.about-copy { margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.8; overflow-wrap: anywhere; }
.about-section > img { width: 100%; border-radius: 10px; }
.contact-section { padding-block: 80px; }
.contact-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.contact-details > div { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow-wrap: anywhere; }
.contact-details h3 { margin-bottom: 14px; }
.contact-phones { display: grid; gap: 2px; font-size: 20px; font-weight: 650; }
.contact-phones a { display: flex; align-items: center; min-height: 44px; }
.contact-email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; overflow-wrap: anywhere; }
.contact-details a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.opening-hours { color: var(--muted); }
.points-list { display: grid; gap: 20px; }
.point-address > p:not(:first-child), .point-info { color: var(--muted); }
.point-address > p:first-child { font-weight: 650; }
.route-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-grid > div { min-width: 0; }
.map-heading { margin-bottom: 16px; }
.points-map { height: 440px; border: 1px solid var(--line); border-radius: 10px; z-index: 0; }
.points-map .leaflet-popup-content { font-size: 14px; line-height: 1.45; }
.points-map .leaflet-popup-content a { display: inline-block; margin-top: 6px; color: var(--accent); text-decoration: underline; }
#contact-form { display: grid; gap: 18px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
#contact-form h3 { font-size: 22px; }
#contact-form label:not(.consent) { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
#contact-form input:not([type=checkbox]), #contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #89949f; border-radius: 7px; background: #fff; font-size: 16px; line-height: 1.5; font-weight: 400; }
#contact-form textarea { resize: vertical; min-height: 150px; }
#contact-form input::placeholder, #contact-form textarea::placeholder { color: #64707d; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.consent input { margin: 2px 0 0; accent-color: var(--accent); width: 20px; height: 20px; flex-shrink: 0; }
.privacy-details { margin-top: -8px; font-size: 13px; color: var(--muted); }
.privacy-details summary { cursor: pointer; padding-block: 8px; }
.privacy-details p { margin-top: 8px; }
.privacy-details a { text-decoration: underline; }
#contact-form .button { justify-self: start; min-width: 180px; }
#contact-status { font-size: 15px; padding: 12px 14px; border-radius: 7px; background: var(--cream); overflow-wrap: anywhere; }
#contact-status[data-state=success] { color: #18552c; background: #eaf5ed; }
#contact-status[data-state=error] { color: #822421; background: #fff0ef; }
#contact-status:empty { display: none; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; color: var(--muted); font-size: 14px; }
.admin-footer-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.detail-section { padding-block: 80px 72px; }
.detail-section h1 { font-size: clamp(32px, 4vw, 48px); margin-block: 20px 28px; }
.detail-section > p { margin-bottom: 24px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--accent); }
.back-link:hover { text-decoration: underline; }
.detail-grid { display: block; }
.detail-grid .product-card { display: grid; grid-template-columns: 1fr 1fr; max-width: 1040px; }
.detail-grid .product-gallery { margin: 20px; align-self: start; }
.detail-grid .product-info { padding: 32px; }
.detail-grid .product-info h3 { font-size: 24px; }
.detail-grid .product-description { font-size: 17px; }
.detail-grid .product-price { margin-top: 28px; }
.preview-banner { background: #ffe8aa; color: #63480e; padding: 12px 24px; font-size: 14px; text-align: center; }
#photo-dialog { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
#photo-dialog[open] { display: flex; align-items: center; justify-content: center; }
#photo-dialog::backdrop { background: rgba(0,0,0,.94); }
#photo-dialog figure { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 150px); }
#photo-dialog img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; border-radius: 4px; }
#photo-dialog figcaption { display: grid; gap: 4px; max-width: 640px; text-align: center; font-size: 15px; line-height: 1.4; }
#photo-dialog figcaption span { font-size: 13px; color: #cbd5e0; }
#photo-dialog figcaption span:empty { display: none; }
.zoom-description { white-space: pre-line; max-height: 80px; overflow-y: auto; }
.zoom-close, .zoom-nav { position: absolute; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 50%; line-height: 1; }
.zoom-close { top: 12px; right: 16px; width: 48px; height: 48px; font-size: 34px; background: transparent; }
.zoom-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 36px; background: rgba(255,255,255,.14); }
.zoom-close:hover, .zoom-nav:hover { background: rgba(255,255,255,.28); }
.zoom-prev { left: 20px; }
.zoom-next { right: 20px; }
@media (max-width: 960px) {
  #site-menu { gap: 14px; font-size: 14px; }
  #site-menu > .nav-contact { padding-inline: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .about-section { gap: 32px; }
  .contact-details { grid-template-columns: 1fr 1fr; }
  .contact-details > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-height: 80px; --anchor-offset: 124px; }
  .container { width: calc(100% - 40px); }
  .brand { width: 104px; }
  .brand img { width: 104px; height: 104px; }
  #menu-toggle { display: block; }
  #site-menu { display: none; position: absolute; top: var(--header-height); left: -20px; right: -20px; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; background: #fff; padding: 20px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px #1c252e14; }
  #site-menu.menu-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #site-menu > a { padding: 13px 12px; font-size: 16px; }
  #site-menu > .nav-contact { padding: 13px 12px; margin-top: 8px; }
  .social-links { margin-top: 12px; padding-inline: 4px; }
  .hero { min-height: clamp(440px, calc(100svh - 80px), 640px); padding-block: 80px; background-position: 56% center; }
  .hero::before { background: linear-gradient(90deg, rgba(12,18,18,.7), rgba(12,18,18,.36)); }
  .hero h1 { max-width: 620px; font-size: clamp(40px, 11.8vw, 58px); }
  .hero-subtitle { font-size: 20px; }
  .hero-actions { gap: 12px; margin-top: 28px; }
  .hero-actions .button { padding-inline: 20px; gap: 14px; }
  .catalog-section, .contact-section { padding-block: 56px; }
  .section-heading { margin-bottom: 28px; }
  .section-lead { font-size: 16px; }
  .about-section { grid-template-columns: 1fr; padding-block: 56px; gap: 32px; }
  .about-copy { font-size: 17px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  #contact-form { padding: 24px; }
  #contact-form .button { width: 100%; }
  .points-map { height: 340px; }
  .detail-section { padding-block: 48px; }
  .detail-grid .product-card { grid-template-columns: 1fr; }
  .detail-grid .product-info { padding: 24px; }
  #photo-dialog figure { max-width: calc(100vw - 24px); }
  #photo-dialog img { max-height: calc(100dvh - 180px); }
  .zoom-nav { width: 48px; height: 48px; font-size: 32px; background: rgba(0,0,0,.55); }
  .zoom-prev { left: 8px; }
  .zoom-next { right: 8px; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; gap: 16px; }
  .contact-details > :last-child { grid-column: auto; }
  .contact-details > div { padding: 22px; }
  .site-footer { gap: 8px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
