.partner-hero, .dealer-lead, .store-feature {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border-radius: var(--panel-radius);
}

.partner-hero, .dealer-lead {
  color: var(--feature-text);
  background: var(--feature-bg);
}

.partner-hero-copy {
  align-content: center;
  padding: clamp(26px, 4.2vw, 72px);
}

.partner-hero h1, .dealer-lead h1, .store-feature h1, .office-heading h1 {
  font-size: clamp(2.65rem, 5.45vw, 5.9rem);
  font-weight: 610;
  letter-spacing: var(--tracking-display);
  line-height: .99;
  overflow-wrap: anywhere;
}

.partner-hero-copy > p, .dealer-lead-copy > p {
  max-width: 38ch;
  margin-block-start: 20px;
  color: var(--feature-muted);
  font-size: clamp(.975rem, 1.28vw, 1.2rem);
  line-height: 1.55;
}

.partner-actions, .store-actions, .partner-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 21px;
}

.partner-actions { margin-block-start: clamp(22px, 2.6vw, 42px); }
.partner-actions .button, .store-actions .button, .partner-form-actions .button, .office-page .button {
  min-block-size: 48px;
}

.partner-hero .button {
  background: var(--feature-action);
  color: var(--feature-action-text);
}

.partner-hero .text-link { color: var(--feature-text); }

.partner-hero-photo, .dealer-lead-photo, .store-feature-photo {
  position: relative;
  isolation: isolate;
  min-block-size: 210px;
  background: var(--secondary);
}

.partner-hero-photo {
  min-block-size: clamp(370px, 35vw, 510px);
  background: #101115;
}

.partner-hero-photo img, .dealer-lead-photo img, .store-feature-photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-hero-photo img { object-position: 62% center; }
.dealer-lead-photo img { object-position: 72% center; }

.partner-hero-photo figcaption, .store-feature-photo figcaption {
  position: absolute;
  inset: auto auto 14px 14px;
  max-inline-size: calc(100% - 28px);
}

.partner-hero-photo figcaption a, .store-feature-photo figcaption a {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 13px;
  border-radius: var(--radius);
  background: var(--shade);
  color: var(--photo-text);
  font-size: .8rem;
  font-weight: 570;
}

.partner-hero :focus-visible, .dealer-lead :focus-visible, .store-feature-photo a:focus-visible {
  outline-color: var(--feature-focus);
  box-shadow: 0 0 0 4px var(--feature-bg);
}

.partner-section {
  margin-block-start: clamp(38px, 5.1vw, 82px);
  scroll-margin-block-start: 24px;
}

.partner-section h2, .partner-contact h2, .office-subhead h2, .office-draft h2 {
  color: var(--heading);
  font-size: clamp(1.65rem, 3vw, 2.85rem);
  font-weight: 610;
  letter-spacing: var(--tracking-title);
  line-height: 1.08;
}

.partner-section > p, .partner-contact p, .office-heading p, .store-info > p {
  margin-block-start: 12px;
  max-width: 65ch;
  color: var(--muted-foreground);
}

.partner-brands, .partner-topics, .store-models, .office-items, .draft-items {
  padding: 0;
  margin: 0;
  list-style: none;
}

.partner-brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
  gap: 8px;
  margin-block-start: 18px;
}

.partner-brands a {
  display: grid;
  place-items: center;
  min-block-size: 76px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--brand-surface);
}

.partner-brands img { width: 100px; height: 48px; object-fit: contain; }

.partner-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 48px);
  margin-block-start: 24px;
  border-block-start: 1px solid var(--border);
  padding-block-start: 20px;
}

.partner-topics h3, .store-models h3 { font-weight: 620; }
.partner-topics p { color: var(--muted-foreground); margin-block-start: 5px; max-width: 45ch; }
.partner-topics .text-link { margin-block-start: 3px; }

.partner-contact {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  column-gap: clamp(24px, 5vw, 84px);
  row-gap: 24px;
  align-items: start;
  padding: clamp(22px, 4.1vw, 62px);
  border-radius: var(--panel-radius);
  background: var(--muted);
}

.partner-contact .contact-links { margin-block-start: 16px; }
.partner-contact .contact-links a { overflow-wrap: anywhere; min-height: 44px; align-content: center; }

.partner-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.partner-form label { display: grid; gap: 5px; color: var(--foreground); font-size: .875rem; font-weight: 610; }
.partner-form .field-full { grid-column: 1 / -1; }
.partner-form textarea { resize: vertical; min-height: 96px; }

.partner-form :is(input,textarea), .office-filters :is(input,select), .office-stepper input, .draft-row input {
  color: var(--foreground);
  min-block-size: 48px;
  min-inline-size: 0;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  padding: 8px 10px;
  font: 400 1rem/1.4 var(--sans);
}

.partner-form :user-invalid { border-color: var(--destructive); }
.partner-form .form-status { font-size: .875rem; color: var(--heading); margin: 0; }
.partner-form .form-status:empty { margin-block-start: -14px; }

.dealer-lead { margin-block-end: 24px; }
.dealer-lead-copy {
  padding: clamp(22px, 3.7vw, 62px);
  align-content: center;
}

.dealer-lead h1 { font-size: clamp(2.5rem, 5.2vw, 5.5rem); }
.dealers-page :is(.dealer-model, .dealer-controls) { margin-block-end: 14px; }
.dealers-page .dealer-model { padding: 13px 16px; background: var(--muted); border-radius: var(--radius); }
.dealers-page .dealer-controls { margin-block-start: 0; gap: 9px 20px; }
.dealers-page .dealer-controls select { min-height: 48px; font-size: 1rem; }
.dealers-page .dealer-list { border-block-start: 1px solid var(--border); }
.dealers-page .dealer-card { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; }
.dealers-page .dealer-card h2 { overflow-wrap: anywhere; }
.dealers-page .dealer-address { margin-block-start: 7px; }
.dealers-page .dealer-address .icon { align-self: start; margin-block-start: 2px; }
.dealer-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; }
.dealer-card-actions :is(.button, .text-link) { min-block-size: 48px; }
.dealer-card-actions .dealer-call {
  justify-content: flex-start;
  gap: 9px;
  padding: 8px 12px;
}
.dealer-call strong, .dealer-call small { display: block; }
.dealer-call strong { font-weight: 620; font-size: .8125rem; }
.dealer-call small { color: var(--secondary); font-weight: 540; font-size: .8125rem; margin-block-start: 2px; }
:root.dark .dealer-call small { color: var(--primary-foreground); }
.dealer-card-actions .dealer-route { border-color: var(--input); color: var(--heading); padding-inline: 11px; }
.dealer-card-actions .dealer-details-link { padding-inline: 7px; }

.store-feature {
  background: var(--muted);
  border: 1px solid var(--border);
}

.store-info {
  align-content: center;
  padding: clamp(24px, 3.7vw, 60px);
}

.store-feature h1 {
  margin-block: 7px 16px;
  color: var(--heading);
  font-size: clamp(1.75rem, 3.65vw, 4.35rem);
}

.store-info address { color: var(--muted-foreground); font-size: 1.0625rem; font-style: normal; }
.store-info > p:not(.country) { font-size: .875rem; }
.store-actions { margin-block-start: 19px; }
.store-actions .map-link { background: var(--card); color: var(--heading); border-color: var(--input); }
.store-info .official-link { margin-block-start: 6px; }
.store-feature-photo { min-block-size: 320px; }
.store-feature-photo img { object-position: 68% center; }

.store-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3px 16px;
  margin-block-start: 22px;
  padding: 13px 18px;
  background: var(--muted);
  border-radius: var(--radius);
}

.store-selection a { min-block-size: 44px; text-decoration: underline; text-underline-offset: 4px; }
.store-selection > p { color: var(--muted-foreground); font-size: .875rem; }
.store-models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-block-start: 18px;
}

.store-models .item-card { display: block; }
.store-models .item-image { aspect-ratio: 1.75; }

.office-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 25px;
  padding: clamp(20px, 3.2vw, 44px);
  margin-block-end: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
}

.office-heading h1 { color: var(--heading); font-size: clamp(2.25rem, 4.6vw, 4.7rem); }
.office-heading p { font-size: .95rem; }
.office-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 47px);
  align-items: start;
}

.office-subhead, .draft-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.office-subhead h2, .office-draft h2 { font-size: clamp(1.5rem, 2.6vw, 2.45rem); }
.office-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(40%, 210px));
  gap: 8px 14px;
  margin-block: 14px;
}

.office-filters label {
  display: grid;
  gap: 4px;
  font-weight: 575;
  font-size: .875rem;
  color: var(--foreground);
}

.office-results { font-size: .8125rem; color: var(--muted-foreground); }
.office-items { border-block-start: 1px solid var(--border); }
.office-item {
  --office-thumb: clamp(58px, 7.5vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding-block: 8px;
  border-block-end: 1px solid var(--border);
}

.office-product {
  display: grid;
  grid-template-columns: var(--office-thumb) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.office-product img {
  width: 100%;
  height: 68px;
  object-fit: contain;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--product-stage);
}

.office-product b { color: var(--heading); font-size: 1rem; font-weight: 640; line-height: 1.25; }
.office-product small { display: block; color: var(--muted-foreground); font-size: .8125rem; line-height: 1.4; }
.office-item-action { justify-self: end; }
.office-quantity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
}

.office-stepper {
  display: grid;
  grid-template-columns: 44px 52px 44px;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--card);
}
.office-stepper button {
  display: grid;
  place-items: center;
  min-block-size: 44px;
  padding: 0;
  color: var(--heading);
}
.office-stepper button:disabled { color: var(--muted-foreground); background: var(--muted); }
.office-stepper button:first-child { border-radius: 4px 0 0 4px; }
.office-stepper button:last-child { border-radius: 0 4px 4px 0; }
.office-stepper button .icon { width: 18px; height: 18px; }
.office-stepper input {
  min-block-size: 44px;
  padding: 0 3px;
  border: 0;
  border-inline: 1px solid var(--input);
  border-radius: 0;
}
.office-stepper :focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
:is(.office-stepper, .draft-quantity-field) input { appearance: textfield; text-align: center; }
:is(.office-stepper, .draft-quantity-field) input::-webkit-inner-spin-button { appearance: none; }
[data-in-draft] .office-stepper { border-color: var(--link); background: var(--secondary); }
[data-in-draft] .office-stepper input { background: var(--card); }
.office-unit {
  min-inline-size: 2.9rem;
  color: var(--muted-foreground);
  font-size: .8125rem;
  white-space: nowrap;
}
.office-draft .button:disabled {
  background: var(--secondary);
  color: var(--muted-foreground);
  border-color: var(--border);
}

.office-archive {
  max-width: 12ch;
  color: var(--muted-foreground);
  text-align: right;
  font-size: .8rem;
}

.office-draft {
  padding: clamp(17px, 2.65vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  scroll-margin-block-start: 20px;
}

.draft-summary { color: var(--muted-foreground); font-weight: 580; font-size: .8125rem; }
.draft-empty, .draft-storage, .draft-status { color: var(--muted-foreground); font-size: .875rem; margin-block-start: 12px; }
.draft-status { color: var(--heading); min-block-size: 1.31em; }
.draft-status:empty { min-block-size: 0; margin-block-start: 0; }
.office-draft .button { margin-block-start: 13px; }
.draft-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px 44px;
  gap: 7px 10px;
  align-items: center;
  padding-block: 8px;
  border-block-end: 1px solid var(--border);
}

.draft-row:first-child { margin-block-start: 8px; }
.draft-row a { font-size: .875rem; font-weight: 620; color: var(--heading); overflow-wrap: anywhere; }
.draft-row input { padding-inline: 7px; }
.draft-quantity-field { display: grid; gap: 2px; text-align: center; }
.draft-remove {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 48px;
  border-radius: var(--radius);
  color: var(--heading);
}

.draft-remove .icon { width: 20px; height: 20px; }
.office-draft-dock { display: none; }
.draft-counter {
  min-inline-size: 28px;
  padding: 4px 7px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--heading);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .partner-hero .button:hover { background: var(--feature-action-hover); }
  .partner-brands a:hover { border-color: var(--link); background: var(--muted); }
  :root.dark .partner-brands a:hover { background: var(--brand-surface); border-color: var(--ring); }
  .partner-brands a:hover img { mix-blend-mode: multiply; }
  .partner-hero-photo a:hover, .store-feature-photo a:hover { background: var(--feature-bg); }
  .office-product:hover b, .draft-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .office-stepper button:hover:not(:disabled), .draft-remove:hover, .store-actions .map-link:hover, .dealer-card-actions .dealer-route:hover { background: var(--secondary); }
}

@media (max-width: 800px) {
  .office-workspace { grid-template-columns: 1fr; }
  .partner-brands { grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr)); }
  .office-page:has(.office-draft-dock:not([hidden])) #office-draft-link { display: none; }
  html:has(.office-draft-dock:not([hidden])) { scroll-padding-block-end: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .office-draft-dock {
    position: sticky;
    z-index: 3;
    inset-block-end: 0;
    display: block;
    margin-block-start: 12px;
    padding-block: 7px max(7px, env(safe-area-inset-bottom, 0px));
    border-block-start: 1px solid var(--border);
    background: var(--background);
  }
  .office-draft-dock .button {
    display: grid;
    grid-template-columns: 1fr auto auto;
    width: 100%;
    min-block-size: 48px;
    padding-block: 8px;
  }
}

@media (max-width: 710px) {
  .partner-hero, .partner-contact, .partner-topics, .store-feature { grid-template-columns: 1fr; }
  .partner-hero-copy, .store-info { padding-inline: 20px; }
  .partner-hero-photo { min-block-size: 0; aspect-ratio: 1.85; }
  .partner-topics { gap: 14px; }
  .partner-topics li + li { padding-block-start: 14px; border-block-start: 1px solid var(--border); }
  .dealer-lead { display: block; margin-block-end: 16px; background: none; color: var(--heading); }
  .dealer-lead-copy { padding: 3px 0 0; border: 0; }
  .dealer-lead-photo, .dealer-lead-copy > p { display: none; }
  .dealers-page .dealer-card { grid-template-columns: 1fr; gap: 10px; }
  .dealer-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 9px; }
  .dealer-card-actions .dealer-call { grid-column: 1 / -1; }
  .dealers-page .dealer-controls { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: 7px 10px; }
  .dealers-page .select-label { display: grid; gap: 4px; }
  .dealers-page .select-label select { min-width: 0; }
  .dealers-page .dealer-controls .result-count { grid-column: 1 / -1; }
  .store-feature h1 { font-size: clamp(1.72rem, 8.25vw, 3.7rem); }
  .store-feature-photo { min-block-size: 0; aspect-ratio: 1.85; }
  .store-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .office-page .crumbs { margin-block: 13px; }
  .office-heading { padding: 15px; margin-block-end: 16px; }
  .office-heading h1 { font-size: clamp(2rem, 8.25vw, 2.7rem); }
  .office-heading p { margin-block-start: 7px; font-size: .875rem; }
  .office-item { grid-template-columns: 1fr; gap: 7px; }
  .office-item-action { justify-self: start; margin-inline-start: calc(var(--office-thumb) + 10px); }
  .office-archive { text-align: start; max-width: none; }
}

@media (max-width: 440px) {
  .partner-form { grid-template-columns: 1fr; }
  .partner-actions, .partner-form-actions, .store-actions { gap: 4px 13px; }
  .dealer-lead h1 { font-size: clamp(2.2rem, 8.5vw, 2.7rem); }
  .office-filters { grid-template-columns: 1fr; }
  .office-product img { height: 53px; }
}

@media (max-width: 355px) {
  .dealers-page .dealer-controls { grid-template-columns: 1fr; }
  .dealers-page .select-label { grid-template-columns: 46px minmax(0, 1fr); align-items: center; }
}
/* Send is the main action; the CSV copy for 1C stays as a quiet link. */
.draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-block-start: 13px; }
.draft-actions .button { margin-block-start: 0; }
.draft-actions .text-link:disabled { color: var(--muted-foreground); }
.draft-sent { margin-block-start: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--secondary); color: var(--foreground); font-size: .875rem; line-height: 1.45; }
.draft-sent:focus { outline: none; }
.draft-sent:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.draft-sent-title { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums lining-nums; }
.draft-sent ul { display: grid; gap: 2px; margin: 8px 0 0; padding-inline-start: 1.1em; color: var(--muted-foreground); }
