.brum-tyre-rates,
.brum-tyre-scope {
  --tyre-line: #dedbd6;
  --tyre-ink: #282522;
  --tyre-muted: #534e48;
  --tyre-link: #84400b;
  color: var(--tyre-ink);
  text-align: left;
  font-family: inherit;
}

.brum-tyre-rates { clear: both; margin: 1rem 0 2rem; }
.brum-tyre-rates *,
.brum-tyre-scope { box-sizing: border-box; }
.brum-tyre-rates a,
.brum-tyre-scope a { color: var(--tyre-link); text-underline-offset: .16em; }
.brum-tyre-rates a:hover,
.brum-tyre-scope a:hover { color: #642c00; text-decoration: underline; }
.brum-tyre-rates a:focus-visible,
.brum-tyre-scope a:focus-visible { outline: 2px solid #954500; outline-offset: 3px; }

.brum-tyre-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.brum-tyre-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .35rem .85rem;
  border: 1px solid #d7cabe;
  border-radius: .45rem;
  background: #fffaf4;
  color: #67350e;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}
.brum-tyre-nav a:hover { background: #ffeed8; }

.brum-tyre-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.brum-tyre-panel {
  min-width: 0;
  padding: clamp(14px, 1.7vw, 24px);
  border: 1px solid var(--tyre-line);
  border-radius: .75rem;
  background: #fff;
  scroll-margin-top: 7rem;
}
.brum-tyre-panel:target { border-color: #cc7225; }
.brum-tyre-panel h2,
.brum-tyre-panel h3 { color: var(--tyre-ink); line-height: 1.22; margin: 0 0 .55rem; text-align: left; }
.brum-tyre-panel h2 { font-size: clamp(1.19rem, 2vw, 1.55rem); font-weight: 720; }
.brum-tyre-panel h3 { font-size: 1.05rem; font-weight: 650; }
.brum-tyre-panel h3 a { text-decoration: underline; }
.brum-tyre-intro,
.brum-tyre-scope p { margin: 0 0 .8rem; color: var(--tyre-muted); font-size: .96rem; line-height: 1.5; }
.brum-tyre-service + .brum-tyre-service,
.brum-tyre-scroll + .brum-tyre-service { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--tyre-line); }
.brum-tyre-fixed { margin: .12rem 0 .35rem; color: var(--tyre-muted); font-size: 1rem; line-height: 1.35; }
.brum-tyre-fixed strong { color: var(--tyre-ink); font-size: 1.3rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.brum-tyre-link { margin: .55rem 0 0; }
.brum-tyre-panel > :last-child,
.brum-tyre-service > :last-child,
.brum-tyre-scope p:last-child { margin-bottom: 0; }

.brum-tyre-scroll { position: relative; max-width: 100%; overflow-x: auto; }
.brum-tyre-rates table { width: 100%; border-collapse: collapse; margin: 0; color: var(--tyre-ink); font-size: 1rem; line-height: 1.35; }
.brum-tyre-rates caption { caption-side: top; color: var(--tyre-ink); text-align: left; font-size: 1.05rem; font-weight: 650; padding: 0 0 .55rem; }
.brum-tyre-rates--catalog caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.brum-tyre-rates th,
.brum-tyre-rates td { vertical-align: middle; text-align: right; padding: .44rem .55rem; border: 0; border-bottom: 1px solid #e9e5df; }
.brum-tyre-rates thead th { background: #f4eee6; color: #332c25; font-size: .91em; font-weight: 680; line-height: 1.3; }
.brum-tyre-rates th:first-child { text-align: left; }
.brum-tyre-rates thead a { color: #67350e; text-decoration: underline; }
.brum-tyre-rates tbody th { font-weight: 600; }
.brum-tyre-rates tbody tr:nth-child(even) { background: #faf8f5; }
.brum-tyre-rates tbody tr:last-child > * { border-bottom: 0; }
.brum-tyre-rates .brum-money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.brum-repair-methods tbody th,
.brum-repair-methods tbody td { vertical-align: top; padding-block: .7rem; }
.brum-repair-methods tbody th { width: 66%; }
.brum-repair-methods tbody a,
.brum-tyre-scope a { text-decoration: underline; }
.brum-repair-note,
.brum-repair-unit { display: block; margin-top: .2rem; color: var(--tyre-muted); font-size: .9em; font-weight: 400; line-height: 1.4; }
.brum-repair-unit { white-space: nowrap; }
.brum-tyre-panel .brum-repair-sizes { margin: 1rem 0 .5rem; }

#brum-tyre-otdelno,
#brum-tyre-razval,
#brum-tyre-drugie { grid-column: 1 / -1; }
.brum-tyre-services { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1.4rem; }
.brum-tyre-services > .brum-tyre-service { margin: 0; padding: 0; border: 0; min-width: 0; }
.brum-tyre-scope {
  max-width: 38rem;
  margin: .45rem 0 1rem;
  padding: .7rem .9rem;
  border-left: 3px solid #da7728;
  border-radius: .15rem .45rem .45rem .15rem;
  background: #fff4e5;
}
.brum-tyre-scope strong { display: block; color: #33271e; font-size: 1.03rem; line-height: 1.35; }
.brum-tyre-scope p { margin-top: .22rem; }
.brum-tyre-rates--detail { max-width: 38rem; margin-top: 0; }

@media (max-width: 900px) {
  .brum-tyre-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .brum-tyre-rates { margin-bottom: 1.25rem; }
  .brum-tyre-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .38rem; }
  .brum-tyre-nav a { min-height: 44px; padding: .4rem .6rem; font-size: .88rem; }
  .brum-tyre-panel { padding: .82rem; }
  .brum-tyre-services { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .brum-tyre-rates table { font-size: .92rem; }
  .brum-tyre-rates th,
  .brum-tyre-rates td { padding: .41rem .3rem; }
  .brum-tyre-compare thead th { overflow-wrap: anywhere; hyphens: auto; }
  .brum-tyre-rates .brum-tyre-compare { table-layout: fixed; }
  .brum-tyre-compare th:first-child { width: 15%; }
  .brum-tyre-compare thead th:nth-child(2),
  .brum-tyre-compare thead th:nth-child(3) { width: 25%; }
}
