:root {
  color-scheme: light;
  --paper: #f8f6ee;
  --white: #fffdf7;
  --ink: #202820;
  --muted: #4d594a;
  --olive: #303f31;
  --line: #dedfd2;
  --lime: #dcee84;
  --yellow: #f5dc92;
  --ease: cubic-bezier(.2,.75,.25,1);
  font-family: "Noto Sans Georgian", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #6c8040; outline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }
.wrap { width: min(100% - 88px, 1280px); margin-inline: auto; }
.skip-link { position: fixed; inset: 10px auto auto 10px; z-index: 8; padding: 12px; background: var(--white); translate: 0 -150%; }
.skip-link:focus { translate: 0; }

.site-header { position: relative; z-index: 2; }
.header-inner { min-height: 83px; border-bottom: 1px solid #ddded0; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; font-family: "Segoe UI", system-ui, sans-serif; font-weight: 770; letter-spacing: -.055em; white-space: nowrap; font-size: 27px; }
.wordmark-shoes { margin-inline-start: .26em; }
.brand-mark { position: relative; display: inline-block; width: 27px; height: 27px; border-radius: 50%; margin-right: 8px; background: var(--ink); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; height: 13px; width: 5px; border-radius: 100px; background: var(--lime); rotate: -33deg; }
.brand-mark::before { left: 8px; top: 7px; }
.brand-mark::after { left: 15px; top: 9px; height: 10px; }
nav { display: flex; align-items: center; gap: clamp(16px, 4vw, 47px); font-size: 15px; font-weight: 650; }
nav > a { transition: color .2s, background .2s; }
nav > a:hover { color: #65773d; }
.nav-order { border: 1px solid #c9cdbf; border-radius: 100px; padding: 9px 16px 10px; }
.nav-order:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }

.hero { min-height: min(660px, 55vw); display: grid; grid-template-columns: 1fr 1.01fr; align-items: center; gap: clamp(25px, 6vw, 92px); padding-block: 46px 55px; }
.hero-copy { padding-bottom: 16px; }
.hero-copy > * { animation: intro .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .17s; }
.hero-copy > :nth-child(4) { animation-delay: .26s; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 660; color: var(--olive); }
.eyebrow span { width: 9px; height: 9px; background-color: #b9ce60; border-radius: 50%; flex: none; }
.hero h1 { font-size: clamp(37px, 6vw, 91px); font-weight: 750; line-height: 1.16; letter-spacing: -.07em; margin: 15px 0 19px -3px; }
.hero-description { color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.75; max-width: 36ch; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px 12px; border: 1px solid transparent; border-radius: 100px; font-size: 15px; font-weight: 700; line-height: 1.45; text-align: center; transition: background .24s, color .24s, border-color .24s, transform .24s var(--ease); }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--lime); color: var(--ink); }
.button-primary:hover { background: #d1e56f; }
.button-secondary { background: transparent; border-color: #a9b0a2; }
.button-secondary:hover { background: var(--white); }
.hero-cta { margin-top: 28px; }

.hero-art { isolation: isolate; position: relative; min-width: 0; aspect-ratio: 1.12; border-radius: 28px; padding: 26px 27px 21px; background: #f2dfaa; overflow: hidden; animation: art-in 1.05s var(--ease) both; transition: background .65s var(--ease); }
.hero-art[data-tone="viking"] { background: #d9e5e8; }
.hero-art[data-tone="richter-tall"] { background: #e2e9c9; }
.hero-orbit { position: absolute; z-index: -1; width: 72%; aspect-ratio: 1; border: 1px solid #fff9; border-radius: 50%; right: -29%; top: -36%; box-shadow: 0 0 0 24px #ffffff32, 0 0 0 58px #ffffff23, 0 0 0 94px #ffffff21; pointer-events: none; }
.feature-photo { position: absolute; left: 5.2%; top: 5.9%; width: 76%; height: 77%; padding: 0; border: 0; border-radius: 19px; overflow: hidden; background: #e3dccb; box-shadow: 0 23px 40px -30px #30210d90; transform: translate(var(--photo-x, 0), var(--photo-y, 0)); transition: transform .44s var(--ease); }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; transition: scale .7s var(--ease); }
.feature-photo:hover img { scale: 1.043; }
.feature-photo.is-changing img { animation: photo-in .6s var(--ease) both; }
.hero-postcard { display: grid; position: absolute; right: 5%; bottom: 19%; width: 33%; padding: 7px 7px 0; border: 0; border-radius: 13px; background: var(--white); transform: translate(var(--post-x, 0), var(--post-y, 0)) rotate(8deg); box-shadow: 0 16px 42px -19px #493632a6; transition: transform .5s var(--ease); }
.hero-postcard:hover { transform: translateY(-6px) rotate(3deg); }
.hero-postcard img { width: 100%; height: auto; aspect-ratio: 1.15; border-radius: 8px; object-fit: cover; }
.hero-postcard > span { display: flex; justify-content: space-between; align-items: center; gap: 3px; padding: 8px 4px 10px; font-size: 14px; font-weight: 730; }
.hero-postcard > span span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.feature-bar { position: absolute; left: 5.2%; right: 5%; bottom: 3.1%; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.feature-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; background: none; border: 0; padding: 6px 0; text-align: left; }
.feature-label:hover { text-decoration: underline; text-underline-offset: 4px; }
.feature-label strong { font-size: 18px; }
.feature-label span { font-size: 14px; color: #3a4838; }
.feature-picker { display: flex; gap: 1px; margin-right: -4px; }
.feature-picker button { width: 29px; height: 33px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.feature-picker button::before { content: ""; border-radius: 50%; width: 8px; height: 8px; background: #47493758; transition: background .2s, scale .2s; }
.feature-picker button[aria-pressed="true"]::before, .feature-picker button:hover::before { background: var(--ink); scale: 1.29; }

.catalog { background: #fffdf6; padding-block: clamp(46px, 5.6vw, 84px) clamp(53px, 6vw, 93px); }
#catalog, #order { scroll-margin-top: 16px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.catalog-heading h2, .order-panel h2 { font-size: clamp(31px, 4.3vw, 58px); font-weight: 740; line-height: 1.2; letter-spacing: -.065em; }
.catalog-heading p { font-size: 15px; color: var(--muted); white-space: nowrap; }
.catalog-toolbar { padding-block: 11px; border-block: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.categories { display: flex; flex-wrap: wrap; gap: 6px; }
.categories button { border: 1px solid transparent; padding: 9px 15px 10px; border-radius: 100px; background: transparent; font-size: 15px; font-weight: 650; min-height: 42px; transition: background .25s, color .25s, border-color .25s; }
.categories button:hover { border-color: var(--line); }
.categories button[aria-pressed="true"] { color: var(--white); background: var(--olive); }
.filter-tools { display: flex; align-items: center; gap: 8px; }
.size-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; font-size: 14px; }
.size-filter select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--white); min-height: 42px; }
.reset-filters { background: transparent; border: 0; min-height: 44px; padding: 6px 8px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
.product-card { min-width: 0; }
.product-card button { display: grid; align-content: start; width: 100%; height: 100%; padding: 0; border: 1px solid #e7e5da; border-radius: 19px; overflow: hidden; background: var(--white); text-align: left; transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.product-card button:hover { transform: translateY(-6px); border-color: #c5cbb8; box-shadow: 0 17px 28px -24px #26332590; }
.product-image { display: block; position: relative; aspect-ratio: 1.16; overflow: hidden; background: #e9e5d9; }
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; transition: transform .7s var(--ease); }
.product-card button:hover img { transform: scale(1.06); }
.size-chip { display: inline-flex; padding: 6px 10px 7px; border-radius: 100px; background: #e8eddc; color: #35402c; font-size: 14px; font-weight: 670; white-space: nowrap; }
.product-image .size-chip { position: absolute; top: 10px; left: 10px; background: #fffdf4f5; box-shadow: 0 3px 12px #0001; }
.card-photo-count, .detail-photo-index { display: none; }
.card-info { display: grid; gap: 5px; padding: 13px 14px 15px; }
.card-brand { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.card-brand-name { font-family: "Segoe UI", system-ui, sans-serif; font-size: clamp(18px, 1.8vw, 24px); font-weight: 750; letter-spacing: -.035em; }
.card-price { font-size: 17px; font-weight: 740; white-space: nowrap; }
.card-name { font-size: 15px; line-height: 1.45; color: var(--muted); }
.empty-state { padding: 35px 0 12px; }
.empty-state p { margin-bottom: 14px; }
.product-arrival { animation: card-in .47s var(--ease) both; animation-delay: var(--delay, 0ms); }

.order-section { padding-block: 49px 44px; }
.order-panel { min-height: 225px; display: flex; justify-content: space-between; align-items: center; gap: 26px; border-radius: 23px; padding: clamp(24px, 5vw, 61px); color: var(--white); background: var(--olive); }
.order-panel h2 { font-size: clamp(27px, 3.65vw, 49px); }
.order-phone { display: inline-flex; align-items: center; min-height: 44px; margin-top: 5px; color: var(--white); font-size: 19px; font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.order-phone:hover { color: var(--lime); }
.order-phone:focus-visible, .order-actions .button:focus-visible { outline-color: var(--lime); }
.order-actions, .detail-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.button-on-dark { flex-shrink: 0; color: var(--white); border-color: #a4b397; }
.button-on-dark:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.button-on-dark:focus-visible { outline-color: var(--lime); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-block: 19px 23px; }
.site-footer > a:not(.wordmark) { color: var(--muted); font-size: 15px; }
.site-footer .wordmark { font-size: 21px; }
.site-footer .brand-mark { scale: .85; margin-right: 4px; }

dialog { color: var(--ink); background: var(--white); border: 0; border-radius: 24px; padding: 20px; width: min(925px, calc(100% - 36px)); max-width: none; max-height: calc(100dvh - 38px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 24px 110px #131f14a6; }
dialog[open] { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-rows: auto auto auto 1fr; grid-template-areas: "photos summary" "photos description" "photos action" "photos ."; column-gap: 24px; animation: detail-in .4s var(--ease) both; }
dialog::backdrop { background: #1c261dd0; backdrop-filter: blur(4px); }
html:has(dialog[open]), body:has(dialog[open]) { overflow: hidden; }
.detail-scroll, .detail-layout { display: contents; }
.detail-controls { grid-column: 1 / -1; grid-row: 1; align-self: start; position: sticky; z-index: 1; top: 12px; height: 0; margin: -8px -8px 0; display: flex; justify-content: flex-end; pointer-events: none; }
.detail-close { pointer-events: auto; padding: 0 0 3px; border: 1px solid var(--line); width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 29px; line-height: 1; }
.detail-close:hover { background: var(--lime); }
.detail-photos { grid-area: photos; display: grid; align-content: start; min-width: 0; gap: 10px; }
.detail-photo { position: relative; min-width: 0; aspect-ratio: 1 / 1.09; background: #efeade; border-radius: 14px; overflow: hidden; }
.detail-photo img { width: 100%; height: 100%; object-fit: contain; }
.detail-summary { grid-area: summary; min-width: 0; padding: 12px 47px 0 0; }
.detail-brand { color: var(--muted); font-weight: 720; }
.detail-summary h2 { margin: 6px 0 10px; letter-spacing: -.04em; font-size: clamp(23px, 3.1vw, 36px); line-height: 1.27; }
.detail-meta { display: flex; gap: 10px; align-items: center; }
.detail-meta strong { font-size: 21px; }
.detail-description { grid-area: description; margin: 14px 17px 0 0; display: grid; gap: 11px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.detail-action { grid-area: action; margin-top: 17px; }
.copy-status { font-size: 14px; line-height: 1.4; color: var(--muted); }
.copy-status:not(:empty) { margin-top: 6px; }
#copy-fallback { width: 100%; padding: 7px; margin-block: 6px; }

.reveal.is-pending { opacity: 0; transform: translateY(22px); }
.reveal.is-revealed { animation: intro .7s var(--ease) both; animation-delay: var(--delay, 0ms); }
@keyframes intro { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes art-in { from { opacity: 0; transform: translateY(17px) scale(.969); clip-path: inset(7% 7% 7% 7% round 34px); } to { opacity: 1; transform: none; clip-path: inset(0 round 28px); } }
@keyframes photo-in { from { opacity: .36; scale: 1.105; } to { opacity: 1; scale: 1; } }
@keyframes card-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes detail-in { from { opacity: 0; transform: translateY(15px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 1070px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 36px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --mobile-gutter: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .wrap { width: calc(100% - 2 * var(--mobile-gutter)); }
  .site-header { position: static; z-index: auto; }
  .header-inner { min-height: 62px; padding-top: env(safe-area-inset-top, 0px); gap: 8px; }
  .wordmark { font-size: clamp(19px, 5.2vw, 23px); min-height: 44px; }
  .brand-mark { margin-right: 4px; scale: .87; }
  nav { gap: 7px; font-size: 14px; }
  nav > a { display: inline-flex; min-height: 44px; align-items: center; padding-inline: 4px; }
  .nav-order { padding: 5px 10px; }
  .hero { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 22px 26px; }
  .hero-copy { padding: 0; }
  .eyebrow { font-size: 14px; gap: 7px; }
  .hero h1 { font-size: clamp(34px, 11.25vw, 66px); line-height: 1.08; letter-spacing: -.06em; margin: 8px 0 10px -2px; }
  .hero-description { line-height: 1.5; max-width: 38ch; }
  .hero-cta { width: 100%; margin-top: 14px; box-shadow: 0 6px 16px #687c281e; }
  .hero-art { width: 100%; min-height: 187px; max-height: 380px; aspect-ratio: 1.43; padding: 0; border-radius: 21px; }
  .feature-photo { inset: 10px auto 51px 10px; width: 78%; height: auto; border-radius: 13px; }
  .feature-photo img { object-position: center 58%; }
  .hero-postcard { right: 12px; bottom: 58px; width: 32%; min-width: 74px; padding: 4px 4px 0; border-radius: 9px; transform: rotate(6deg); }
  .hero-postcard img { border-radius: 6px; aspect-ratio: 1.28; }
  .hero-postcard > span { padding: 5px 2px 6px; font-size: 12px; }
  .hero-postcard > span span { font-size: 11px; }
  .feature-bar { inset: auto 6px 3px 11px; }
  .feature-label { min-height: 44px; align-content: center; gap: 0 7px; }
  .feature-label strong { font-size: 16px; }
  .feature-label span { font-size: 13px; }
  .feature-picker { flex: none; gap: 0; margin: 0; }
  .feature-picker button { width: 44px; height: 44px; }
  .feature-picker button[aria-pressed="true"]::before { width: 15px; border-radius: 12px; scale: 1; }

  .catalog { padding-block: 25px 31px; border-top: 1px solid #edeadf; }
  .catalog-heading { margin-bottom: 13px; }
  .catalog-heading h2 { font-size: clamp(31px, 8.3vw, 46px); }
  .catalog-heading p { font-size: 14px; }
  .catalog-toolbar { display: grid; gap: 9px; padding-block: 10px; margin-bottom: 14px; }
  .categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 14px; background: #efefe4; }
  .categories button { min-height: 44px; padding: 6px 2px; border-radius: 11px; font-size: 14px; line-height: 1.2; }
  .filter-tools { min-width: 0; justify-content: space-between; }
  .size-filter { flex: 1; min-width: 0; }
  .size-filter select { flex: 1; min-height: 45px; min-width: 0; font-size: 16px; }
  .reset-filters { padding-inline: 5px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .product-card button { border-radius: 14px; box-shadow: 0 3px 9px #35352509; }
  .product-image { aspect-ratio: 1.08; }
  .product-image .size-chip { left: 7px; top: 7px; font-size: 13px; padding: 4px 8px 5px; }
  .card-photo-count { display: block; position: absolute; bottom: 6px; right: 6px; padding: 4px 7px; border-radius: 7px; background: #202820e8; color: #fffdf7; font-size: 12px; line-height: 1.2; }
  .card-info { padding: 10px 10px 13px; gap: 5px; min-width: 0; }
  .card-brand-name { font-size: clamp(17px, 4.75vw, 23px); }
  .card-price { font-size: 15px; }
  .card-name { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
  .empty-state { padding-top: 16px; }
  .order-section { padding-block: 24px; }
  .order-panel { align-items: stretch; flex-direction: column; gap: 16px; min-height: auto; border-radius: 18px; }
  .order-actions .button { flex: 1 0 auto; }
  .site-footer { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
  .site-footer > a { display: inline-flex; align-items: center; min-height: 44px; }

  dialog { position: fixed; inset: auto 0 0; width: 100%; height: min(835px, calc(100dvh - max(12px, env(safe-area-inset-top, 0px)))); max-height: none; margin: 0; padding: 0; border-radius: 23px 23px 0 0; overflow: hidden; }
  dialog[open] { display: flex; flex-direction: column; animation-name: sheet-in; }
  .detail-controls { position: absolute; top: 12px; right: var(--mobile-gutter); height: auto; margin: 0; }
  .detail-close { box-shadow: 0 3px 15px #20282019; }
  .detail-scroll { display: block; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior-y: contain; }
  .detail-layout { display: flex; flex-direction: column; padding: 15px var(--mobile-gutter) 20px; gap: 14px; }
  .detail-summary { padding: 2px 52px 0 0; }
  .detail-brand { font-size: 14px; }
  .detail-summary h2 { font-size: clamp(21px, 5.7vw, 32px); margin: 5px 0 10px; }
  .detail-meta strong { font-size: 23px; }
  .detail-photos { gap: 10px; }
  .detail-photo { aspect-ratio: 1.19; max-height: 62dvh; border-radius: 14px; }
  .detail-photo-index { display: block; position: absolute; bottom: 9px; right: 9px; background: #202820e8; color: var(--white); border-radius: 100px; padding: 5px 8px; font-size: 13px; line-height: 1.2; font-variant-numeric: tabular-nums; }
  .detail-description { margin: 2px 0 0; font-size: 16px; line-height: 1.65; }
  .detail-action { flex: 0 0 auto; margin: 0; padding: 10px var(--mobile-gutter) max(10px, env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -7px 23px #2028200c; }
  .detail-action .button { width: 100%; min-height: 48px; font-size: 15px; }
  #copy-fallback { font-size: 16px; }
}

@media (max-width: 355px) {
  nav { font-size: 13px; gap: 4px; }
  .nav-order { padding-inline: 8px; }
  .categories button { font-size: 13px; }
  .card-info { padding-inline: 8px; }
  .card-price { font-size: 14px; }
}

@media (hover: none) {
  .button:hover, .product-card button:hover { transform: none; }
  .product-card button:hover img { transform: none; }
  .feature-photo:hover img { scale: 1; }
  .hero-postcard:hover { transform: rotate(6deg); }
  .product-card button:active { transform: scale(.985); }
}

@keyframes sheet-in { from { opacity: .6; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}
