html {
  scroll-padding-block-start: calc(var(--kls-header-height, var(--mast-height, 74px)) + 10px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* The root provides the clearance for native hash navigation on either header layout. */
:is(#top, #services, #cases, #founder, #contacts, #telegram-contact) {
  scroll-margin-block-start: 0;
}

:root { --editorial-ink: #815c37; }
:is(.entrance, .bm-band, .work-action, .lo-consultation, .booking-story) {
  --editorial-ink: #dfbd8a;
}

.brand-accent {
  color: var(--editorial-ink);
  font-family: var(--serif, Georgia, serif);
  font-weight: 400;
  font-style: italic;
}

.offer-text .brand-accent {
  font-size: 1.12em;
  line-height: 1;
}

.brand-wordmark {
  color: #826125;
  text-transform: none;
  white-space: nowrap;
}

:is(.entrance, .bm-band, .work-action, .lo-consultation, .booking-story, .lo-contacts) .brand-wordmark {
  color: #ddc885;
}

.mast-phone, .lo-footer-grid address > a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.mast-phone::before, .lo-footer-grid address > a[href^="tel:"]::before {
  content: "";
  flex: none;
  width: 1.03em;
  height: 1.03em;
  background: #dfbd8a;
  mask: url('/studio/phone.svg') center / contain no-repeat;
}
.masthead[data-theme="light"] .mast-phone::before { background: #815c37; }

/* The light action surface belongs on charcoal. Paper gets the deeper bronze. */
:is(.offer-actions .action-primary, .rv-tour-cta, .work-action a.lo-button, .lo-form button.lo-button) {
  --face: linear-gradient(128deg, #855c37, #684127 85%);
  --edge: #765032;
  --ring: #fff4d63b;
  --shade: #52371730;
  --button-ink: #fff9ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85em;
  min-height: 50px;
  padding: .78em 1.3em;
  color: var(--button-ink);
  border: 1px solid var(--edge);
  border-radius: 7px;
  background: var(--face);
  box-shadow: inset 0 1px 0 var(--ring), 0 4px 10px var(--shade);
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
:is(.offer-actions .action-primary, .work-action a.lo-button) {
  --face: linear-gradient(120deg, #f2d9af 0%, #e2b77d 75%, #dbad70);
  --edge: #eac696;
  --button-ink: var(--kls-graphite);
  --ring: #fff8e2c9;
  --shade: #090a0938;
}
:is(.offer-actions .action-primary, .rv-tour-cta, .work-action a.lo-button, .lo-form button.lo-button)::after {
  content: "";
  flex: none;
  width: 1em;
  height: 1em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10h15m-5-5 5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .18s ease;
}
.offer-actions .action-secondary {
  color: #f4eadb;
  border: 1px solid #b39872;
  border-radius: 7px;
  background: #ffffff05;
}
.offer-actions .action-secondary::before {
  content: "";
  width: 1em; height: 1em;
  flex: none;
  margin-right: .5em;
  background: #e4c393;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m20.6 4-3.4 16c-.2 1-1 1.1-1.8.5l-5.3-3.9-2.5 2.4c-.3.2-.5.4-.9.4l.4-5.3 9.5-8.6c.4-.4-.1-.5-.5-.3L4.4 12.6 1 11.5c-.9-.3-.9-.9.2-1.3L19.4 3.3c.8-.3 1.5.2 1.2.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (hover: hover) and (pointer: fine) {
  :is(.offer-actions .action-primary, .rv-tour-cta, .work-action a.lo-button, .lo-form button.lo-button):hover:not(:disabled) {
    background: var(--face);
    filter: brightness(1.07);
    box-shadow: inset 0 1px 0 var(--ring), 0 6px 17px var(--shade);
    transform: translateY(-1px);
  }
  :is(.offer-actions .action-primary, .rv-tour-cta, .work-action a.lo-button, .lo-form button.lo-button):hover:not(:disabled)::after {
    transform: translateX(3px);
  }
}
@media (max-width: 740px) {
  .offer-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-actions :is(.action-primary, .action-secondary) {
    min-height: 48px;
    padding-inline: .55rem;
    gap: .4em;
  }
  .offer-actions .action-secondary::before { margin: 0; }
}
@media (max-width: 375px) {
  .offer-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.offer-actions .action-primary, .rv-tour-cta, .work-action a.lo-button, .lo-form button.lo-button),
  :is(.offer-actions .action-primary, .rv-tour-cta, .work-action a.lo-button, .lo-form button.lo-button)::after {
    transition: none;
    transform: none !important;
  }
}
