/* Shared interaction layer. Keep the warm Graphite identity and stationary targets. */
:root { --site-feedback-time: 140ms; --site-arrival: cubic-bezier(.16, 1, .3, 1); }
::selection { background: #e2703a; color: #1c1714; }
:is(.redesign, .brand-view-home) :is(input, textarea) { caret-color: #a84a1a; }
:is(.redesign, .brand-view-home) :is(.price, [data-price]) { font-variant-numeric: tabular-nums; }
:is(.redesign, .brand-view-home) :is(a, button, summary):focus-visible {
  outline: 2px solid #a84a1a;
  outline-offset: 4px;
}
:is(.redesign, .brand-view-home) :is(.keyring-hero, .work-hero, .contact-banner, .brand-home-hero, .site-footer) :focus-visible {
  outline-color: #e2703a;
}
:is(.redesign, .brand-view-home) :is(.button, .btn),
.inside-header :is(.inside-config, .inside-mobile-config, .inside-toggle),
.redesign :is(.work-filters, .product-photo-controls) button {
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--site-feedback-time) ease, color var(--site-feedback-time) ease,
    border-color var(--site-feedback-time) ease;
}
/* A pressed target stays under the finger; only its surface changes. */
:is(.redesign, .brand-view-home) :is(.button, .btn):active,
.inside-header :is(.inside-config, .inside-mobile-config):active {
  filter: brightness(.92);
  transform: none;
  scale: 1;
}
:is(.redesign, .brand-view-home) :is(button:disabled, button[aria-disabled=true], button[aria-busy=true]) {
  cursor: not-allowed;
}
.redesign .product-photo-controls button { min-width: 44px; }
.redesign .product-photo-controls button[aria-pressed=true] {
  background: #1c1714;
  color: #f4efe9;
  border-color: #1c1714;
}
.product-photo-status { margin: 12px 0 0; color: #a13c20; font-size: 14px; }
.product-photo-status[hidden] { display: none; }
.inside-nav summary::after { transition: transform 180ms var(--site-arrival); }
.inside-nav details[open] > .inside-nav-menu { animation: site-menu-arrive 180ms var(--site-arrival); }
.inside-toggle span { transition: transform 180ms var(--site-arrival), top 180ms var(--site-arrival); }
.inside-header :is(a, summary) { transition: color var(--site-feedback-time) ease, background-color var(--site-feedback-time) ease; }
@keyframes site-menu-arrive {
  from { opacity: .65; clip-path: inset(0 0 12px); }
  to { opacity: 1; clip-path: inset(0); }
}
@media (max-width: 1200px) {
  .inside-header.nav-ready.is-menu-open .inside-nav { animation: site-menu-arrive 180ms var(--site-arrival); }
}
/* Long product names retain their ordinary letter case and wrap on phones. */
.redesign .product-detail h1 { text-transform: none; overflow-wrap: break-word; }
.redesign :is(.model-card-title, .overview-tile h3, .product-card h3) { overflow-wrap: break-word; }
@media (prefers-reduced-motion: reduce) {
  :root { --site-feedback-time: 100ms; }
  .inside-nav details[open] > .inside-nav-menu,
  .inside-header.nav-ready.is-menu-open .inside-nav { animation: none !important; }
  .inside-nav summary::after, .inside-toggle span { transition: none; }
  :is(.redesign, .brand-view-home) :is(.button, .btn),
  .inside-header :is(a, summary, button),
  .redesign :is(.work-filters, .product-photo-controls) button {
    transition: background-color 100ms ease, color 100ms ease, border-color 100ms ease !important;
  }
}

/* Action targets remain stationary; feedback belongs to their surface or icon. */
.redesign :is(.quiet-button, .dialog-close, .icon-button),
.redesign.engraving-page :is(.side-switch, .studio-view-switch, .settings-tabs) button,
.redesign #stamp-app :is(.studio-view-switch, .studio-step-switch) button {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}
.redesign.engraving-page .quiet-button,
.redesign.engraving-page .side-switch button { min-height: 44px; }
.redesign.engraving-page [role=tab] { min-height: 44px; }
.engraving-page .studio-view-switch button { min-height: 44px !important; }
.redesign :is(.dialog-close, .icon-button) { width: 44px; height: 44px; flex-shrink: 0; }
aside[aria-label="Настройки аналитики"] button { min-height: 44px; text-underline-offset: 4px; }
.redesign :is(.studio-scene, .studio-stage-footer, .engraving-fullscreen) :focus-visible {
  outline: 2px solid var(--graphite-orange, #e2703a);
  outline-offset: 3px;
}
.redesign button:disabled { opacity: .55; cursor: not-allowed; }
:is(.redesign, .brand-view-home) :is(.button, .btn):hover { transform: none; scale: 1; }
.brand-view-home .brand-hero-actions .button > svg,
.inside-header .inside-config > span { transition: transform 140ms var(--site-arrival); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand-view-home .brand-hero-actions .button:hover > svg,
  .inside-header .inside-config:hover > span { transform: translate(2px, -2px); }
}
.public-editor-action { margin-inline-end: 10px; }
.modal-backdrop { animation: none !important; }
.modal-backdrop .modal {
  max-height: calc(100dvh - 40px);
  padding: clamp(20px, 3vw, 32px);
  border: 0;
  border-radius: 12px;
  background: var(--graphite-paper, #f4efe9);
  color: var(--graphite-ink, #1c1714);
  font-family: var(--graphite-body, Manrope, sans-serif);
  scrollbar-color: #a99481 #e8dfd4;
}
.modal-backdrop .modal-top { justify-content: flex-end; margin-bottom: 18px; }
.modal-backdrop .modal-top .eyebrow, .modal .product-detail > div > .eyebrow { display: none; }
.modal-backdrop .icon-button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%; background: var(--graphite-panel, #ebe1d6); color: #1c1714; }
.modal-backdrop :is(a, button, input, select, textarea):focus-visible { outline: 2px solid #a84a1a; outline-offset: 3px; }
.modal .product-detail h2 { font: 500 clamp(26px, 2.5vw, 34px)/1.13 var(--graphite-heading, Jost, sans-serif); letter-spacing: -.025em; }
.modal .product-detail p { color: #62564d; line-height: 1.65; }
.modal .product-detail .detail-list > div { padding-block: 12px; border-color: var(--graphite-line, #d8cabe); }
.modal .product-detail .detail-list dt { color: #6f665e; }
.modal .product-detail .detail-list dd { color: #1c1714; }
.modal .product-detail .public-editor-action { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; margin-block: 4px 8px; padding: 12px 18px; border: 0; border-radius: 3px; background: #e2703a; color: #1c1714; font-size: 14px; font-weight: 700; text-decoration: none; }
.modal .product-detail .public-editor-action:hover { background: #ed8c5d; }
.modal .product-detail-image { background: var(--graphite-panel, #ebe1d6); border-radius: 6px; overflow: hidden; }
@media (max-width: 640px) {
  .modal .product-detail-image img { width: 100%; height: min(27svh, 230px); object-fit: contain; }
  .modal .product-detail { gap: 20px; }
}
.inside-footer-bottom .site-motion-control {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #89796c;
  border-radius: var(--graphite-control-radius, 3px);
  background: transparent;
  color: var(--graphite-paper, #f4efe9);
  font: inherit;
  cursor: pointer;
  text-align: start;
}
.inside-footer-bottom .site-motion-control[aria-pressed=true] {
  border-color: var(--graphite-orange, #e2703a);
  background: #3c2a20;
}
.inside-footer-bottom .site-motion-control:hover { background: #3c2a20; }
.inside-footer-bottom .site-motion-control:focus-visible { outline: 2px solid #e2703a; outline-offset: 3px; }
.inside-footer-bottom .site-motion-control:disabled { opacity: 1; cursor: default; }
.inside-toggle span { top: 22px; transform: translateY(-4px); transition: transform 180ms var(--site-arrival); }
.inside-toggle span:last-child { top: 22px; transform: translateY(3px); }
.inside-toggle[aria-expanded=true] span { top: 22px; transform: rotate(45deg); }
.inside-toggle[aria-expanded=true] span:last-child { transform: rotate(-45deg); }
@keyframes site-sheet-arrive {
  from { opacity: .8; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes site-panel-change { from { opacity: .75; } to { opacity: 1; } }
@keyframes site-sending { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .redesign dialog[open], .modal-backdrop .modal { animation: site-sheet-arrive 240ms var(--site-arrival); }
  .engraving-page [role=tabpanel]:not([hidden]) { animation: site-panel-change 140ms ease-out; }
}
.redesign .engraving-request button[aria-busy=true]::after {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: site-sending 800ms linear infinite;
}
:root[data-site-motion=reduce] { --site-feedback-time: 100ms; }
:root[data-site-motion=reduce] :is(.inside-nav-menu, .inside-nav, dialog[open], .modal-backdrop .modal,
  .engraving-page [role=tabpanel], .brand-hero-title-line > span, .brand-hero-copy > p,
  .brand-hero-actions, .brand-hero-image, .brand-hero-reflection, .brand-materials) {
  animation: none !important;
}
:root[data-site-motion=reduce] :is(.inside-toggle span, .inside-nav summary::after,
  .inside-config > span, .brand-hero-actions .button > svg) { transition: none !important; }
:root[data-site-motion=reduce] :is(.inside-config > span, .brand-hero-actions .button > svg) { transform: none; }
:root[data-site-motion=reduce] .brand-hero-title-line > span { transform: none; opacity: 1; }
:root[data-site-motion=reduce] .engraving-request button[aria-busy=true]::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .engraving-request button[aria-busy=true]::after { animation: none !important; }
}
