:root {
  color-scheme: light;
  --page: #f5f7fa;
  --ink: #111827;
  --muted: #64748b;
  --line: #dbe3ee;
  --dark: #071017;
  --yellow: #ffd319;
  --yellow-ink: #171300;
  --blue: #1062ff;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05), 0 16px 40px rgba(15, 23, 42, 0.06);
  --container: 1440px;
  --radius: 8px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-data: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}

body,
button,
input,
select {
  font: 15px/1.5 var(--font);
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 10px 14px;
  color: var(--white);
  background: #071017;
}

.skip-link:focus {
  top: 12px;
  left: 12px;
}

.visually-hidden-pixel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  padding: 24px 0 18px;
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  text-transform: uppercase;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.34));
}

.brand-text {
  display: grid;
  font-size: 21px;
  font-style: italic;
  line-height: 0.9;
}

.brand-text strong:last-child {
  color: var(--yellow);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(7, 16, 23, 0.42);
}

.favorite-button b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--yellow-ink);
  background: var(--yellow);
  font-size: 12px;
}

.mobile-jump-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.mobile-jump-nav a {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: #1b3c6d;
  font-size: 13px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 424px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 10, 16, 0.94) 0%, rgba(5, 10, 16, 0.78) 39%, rgba(5, 10, 16, 0.27) 75%, rgba(5, 10, 16, 0.12) 100%),
    url("/img/hero-tire-garage.webp") right center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  padding: 132px 0 44px;
}

.hero-copy {
  max-width: 930px;
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 10px;
  font-size: clamp(34px, 3.3vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-sub {
  max-width: 680px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

.decoder-form {
  width: min(100%, 940px);
}

.decoder-form label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.decoder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  width: 100%;
}

.decoder-row input {
  width: 100%;
  height: 64px;
  border: 2px solid rgba(16, 98, 255, 0.75);
  border-radius: var(--radius);
  padding: 0 20px;
  color: #09111a;
  background: var(--white);
  font-family: var(--font-data);
  font-size: 28px;
  font-weight: 600;
  outline: none;
}

.decoder-row input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 211, 25, 0.22);
}

.decoder-row input[aria-invalid="true"] {
  border-color: #ff5b5b;
  box-shadow: 0 0 0 4px rgba(255, 91, 91, 0.22);
}

.decoder-row button,
.quick-selector button[type="submit"] {
  min-height: 54px;
  border: 0;
  border-radius: var(--radius);
  color: var(--yellow-ink);
  background: var(--yellow);
  font-weight: 800;
  text-transform: uppercase;
}

.examples,
.form-error {
  min-height: 24px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.examples button {
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.form-error {
  color: #ffd7d7;
  font-weight: 800;
}

.inline-result {
  display: none;
  margin-top: 12px;
  border: 1px solid rgba(255, 211, 25, 0.42);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--white);
  background: rgba(7, 16, 23, 0.68);
}

.inline-result strong,
.inline-result span {
  display: block;
}

.inline-result strong {
  margin-bottom: 3px;
  font-family: var(--font-data);
}

.inline-result span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

main {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.parameters-panel,
.visual-panel,
.selector-panel,
.article-main,
.articles-panel,
.faq {
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.12;
  letter-spacing: 0;
}

.parameter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.metric-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon hint";
  align-items: center;
  column-gap: 11px;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: left;
}

.metric-icon {
  grid-area: icon;
  display: block;
  width: 50px;
  height: 50px;
  background-image: url("/img/tire-icons-blue.png");
  background-repeat: no-repeat;
  background-size: 150px 100px;
}

.icon-width { background-position: 0 0; }
.icon-profile { background-position: 50% 0; }
.icon-rim { background-position: 100% 0; }
.icon-load { background-position: 0 100%; }
.icon-speed { background-position: 50% 100%; }
.icon-stack { background-position: 100% 100%; }

.metric-label {
  grid-area: label;
  display: block;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

.metric-card strong {
  grid-area: value;
  display: block;
  margin: 3px 0 3px;
  font-family: var(--font-data);
  font-size: 24px;
  line-height: 1.05;
  white-space: nowrap;
}

.metric-card small {
  grid-area: hint;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.notice {
  margin-top: 14px;
  border: 1px solid #cfe0ff;
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #21416f;
  background: #edf5ff;
  font-size: 14px;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.result-actions button,
.saved-sizes button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 11px;
  color: #173b72;
  background: #f8fbff;
  font-weight: 900;
}

.result-actions button:first-child,
.result-actions button[data-save-size] {
  color: var(--yellow-ink);
  border-color: var(--yellow);
  background: var(--yellow);
}

.action-status,
.selector-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: #24507e;
  font-size: 13px;
  font-weight: 800;
}

.saved-sizes {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fbfdff;
}

.saved-sizes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.saved-sizes h3,
.saved-sizes p {
  margin: 0;
}

.saved-sizes h3 {
  font-size: 16px;
}

.saved-sizes p {
  color: var(--muted);
  font-size: 13px;
}

.saved-sizes-list {
  display: grid;
  gap: 8px;
}

.saved-size-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--white);
}

.saved-size-item strong {
  display: block;
  font-family: var(--font-data);
}

.saved-size-item small {
  color: var(--muted);
}

.saved-size-item button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
}

.tire-visual {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.tire-visual img {
  width: 100%;
  height: 370px;
  object-fit: contain;
  object-position: center bottom;
}

.measurement {
  position: absolute;
  z-index: 1;
  color: #202938;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  padding: 2px 5px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.measurement::before,
.measurement::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.measure-tread {
  top: 55px;
  left: 6%;
  width: 15%;
  border-top: 3px solid var(--blue);
  padding-top: 7px;
}

.measure-width {
  top: 54px;
  left: 35.5%;
  width: 43%;
  border-top: 3px solid var(--blue);
  padding-top: 7px;
}

.measure-rim {
  left: 39%;
  right: 18%;
  bottom: 113px;
  border-top: 3px solid var(--blue);
  padding-top: 8px;
}

.measure-outer {
  left: 38%;
  right: 13%;
  bottom: 39px;
  border-top: 3px solid var(--blue);
  padding-top: 8px;
}

.measure-profile {
  top: 135px;
  right: 3%;
  width: 178px;
  padding: 0 12px 0 0;
  background: linear-gradient(var(--blue), var(--blue)) right top / 3px 100% no-repeat;
  text-align: right;
}

.measure-tread::before,
.measure-tread::after,
.measure-width::before,
.measure-width::after,
.measure-rim::before,
.measure-rim::after,
.measure-outer::before,
.measure-outer::after {
  top: -16px;
  width: 0;
  height: 31px;
  border-left: 2px dashed rgba(16, 98, 255, 0.55);
}

.measure-tread::before,
.measure-width::before,
.measure-rim::before,
.measure-outer::before {
  left: 0;
}

.measure-tread::after,
.measure-width::after,
.measure-rim::after,
.measure-outer::after {
  right: 0;
}

.measure-profile::before {
  right: -7px;
  top: -28px;
  width: 80px;
  border-top: 2px dashed rgba(16, 98, 255, 0.55);
}

.calc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.calc-list div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #fbfdff;
}

.calc-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calc-list dd {
  margin: 2px 0 0;
  font-family: var(--font-data);
  font-weight: 700;
}

.selector-panel,
.method-panel,
.explain-grid,
.trust-band,
.faq {
  margin-top: 18px;
}

.quick-selector {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.quick-selector label {
  display: grid;
  gap: 6px;
  grid-column: span 2;
}

.quick-selector span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-selector select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--white);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.quick-selector button {
  grid-column: span 3;
  min-height: 44px;
}

.selector-status {
  grid-column: 1 / -1;
}

.ghost-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--white);
  font-weight: 800;
}

.explain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.marking-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.marking-strip span {
  display: grid;
  place-items: center;
  min-height: 64px;
  background: #f9fbfe;
  font-family: var(--font-data);
  font-size: 25px;
  font-weight: 700;
}

.meaning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meaning-grid article {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfdff;
}

.meaning-grid h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.25;
}

.meaning-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.method-panel {
  padding: 18px;
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.formula-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfdff;
}

.formula-grid strong {
  font-size: 16px;
}

.formula-grid code {
  display: block;
  border-radius: 6px;
  padding: 8px 10px;
  color: #08245a;
  background: #edf5ff;
  font-family: var(--font-data);
  font-weight: 800;
}

.formula-grid span,
.method-note {
  color: var(--muted);
}

.method-note {
  margin: 12px 0 0;
  font-size: 14px;
}

.articles-panel {
  align-self: start;
}

.articles-panel a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: #18457e;
  background: #fbfdff;
  font-weight: 800;
}

.articles-panel a::after {
  content: ">";
  color: var(--ink);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  background: #1f2a36;
}

.trust-band article {
  min-height: 108px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 211, 25, 0.13), transparent 32%),
    linear-gradient(135deg, #071017, #142231);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band strong {
  margin-bottom: 6px;
}

.trust-band span {
  color: rgba(255, 255, 255, 0.72);
}

.faq {
  margin-bottom: 22px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  margin-top: 10px;
  padding: 16px 0;
}

.faq details:last-child {
  padding-bottom: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
  padding: 0 16px;
}

.faq p {
  margin: 10px 0 0;
  padding: 0 16px;
  color: var(--muted);
}

.site-footer {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin-bottom: 10px;
  color: #174b91;
  font-weight: 800;
}

.article-body {
  background: #f5f7fa;
}

.article-body .site-header {
  position: static;
  width: min(100% - 48px, var(--container));
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 18px 22px;
  background: #071017;
}

.article-body .main-nav {
  justify-content: flex-end;
}

.article-shell {
  width: min(100% - 48px, 1120px);
  margin: 28px auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: #174b91;
  font-weight: 800;
}

.article-content {
  padding: 28px;
}

.article-kicker {
  margin: 0 0 10px;
  color: #174b91;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.article-content h1 {
  max-width: 820px;
  font-size: clamp(32px, 4vw, 52px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 10px 0 16px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
}

.article-lead {
  max-width: 760px;
  color: #45556d;
  font-size: 18px;
}

.article-hero {
  margin: 24px 0;
}

.article-hero img,
.article-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef3f8;
}

.article-hero figcaption,
.article-media figcaption {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
}

.article-summary,
.article-field-notes,
.article-audit-block,
.article-proof,
.article-faq,
.article-author {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #ffffff;
}

.article-summary strong,
.article-author strong {
  color: #102033;
}

.article-summary ul,
.article-proof ul,
.article-audit-block ul {
  margin-bottom: 0;
}

.article-media {
  margin: 20px 0 24px;
}

.article-content h2 {
  margin-top: 28px;
  font-size: 26px;
}

.article-content h3 {
  margin-top: 20px;
  font-size: 19px;
}

.article-content p,
.article-content li {
  color: #43546d;
  font-size: 16px;
}

.article-content a {
  color: #174b91;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-table th,
.article-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.article-table th {
  color: #1f3558;
  background: #edf5ff;
}

.article-note {
  border: 1px solid #cfe0ff;
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #21416f;
  background: #edf5ff;
}

.article-checklist {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.article-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
  border: 1px solid rgba(255, 210, 26, 0.38);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 210, 26, 0.16), transparent 42%),
    #071017;
  box-shadow: 0 18px 42px rgba(7, 16, 23, 0.14);
}

.article-inline-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  text-decoration: none;
}

.article-inline-cta .article-inline-cta-main {
  color: var(--yellow-ink);
  border-color: var(--yellow);
  background: var(--yellow);
}

.article-field-notes {
  background:
    linear-gradient(135deg, rgba(255, 211, 25, 0.12), transparent 32%),
    #ffffff;
}

.article-audit-block {
  background:
    linear-gradient(135deg, rgba(35, 162, 199, 0.1), transparent 34%),
    #ffffff;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  border: 1px solid rgba(255, 210, 26, 0.36);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 210, 26, 0.18), transparent 40%),
    #071017;
  box-shadow: 0 18px 42px rgba(7, 16, 23, 0.14);
}

.article-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--yellow-ink);
  background: var(--yellow);
  font-weight: 900;
}

.article-cta a:last-child {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.article-decision-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 28px 0;
  border: 1px solid rgba(255, 210, 26, 0.42);
  border-radius: var(--radius);
  padding: 20px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 210, 26, 0.22), transparent 34%),
    linear-gradient(135deg, #071017 0%, #102033 100%);
  box-shadow: 0 22px 54px rgba(7, 16, 23, 0.18);
}

.article-decision-cta strong,
.article-decision-cta p {
  color: #ffffff;
}

.article-decision-cta strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.article-decision-cta p {
  margin: 0;
  opacity: 0.78;
}

.article-decision-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--yellow-ink);
  background: var(--yellow);
  font-weight: 950;
  text-decoration: none;
}

.article-faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.article-faq details:first-of-type {
  border-top: 0;
}

.article-faq summary {
  color: #102033;
  cursor: pointer;
  font-weight: 900;
}

.article-faq details p {
  margin-bottom: 0;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(620px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 9px 10px 9px 14px;
  color: var(--white);
  background: #101922;
  box-shadow: var(--shadow);
  font-size: 14px;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.cookie-actions button {
  border: 0;
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--yellow-ink);
  background: var(--yellow);
  font-weight: 800;
}

#cookie-reject {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(16, 98, 255, 0.55);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .dashboard,
  .explain-grid {
    grid-template-columns: 1fr;
  }

  .dashboard > *,
  .explain-grid > * {
    min-width: 0;
  }

  .quick-selector {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .quick-selector label,
  .quick-selector button {
    grid-column: span 2;
  }
}

  @media (max-width: 760px) {
  .mobile-jump-nav {
    display: grid;
  }

  .site-header,
  .hero-inner,
  main,
  .site-footer {
    width: calc(100% - 28px);
    max-width: var(--container);
  }

  .site-header {
    gap: 12px;
    padding-top: 18px;
  }

  .article-body .site-header {
    width: 100%;
    border-radius: 0;
  }

  .article-shell {
    width: calc(100% - 28px);
    margin-top: 16px;
  }

  .article-content {
    padding: 18px;
  }

  .article-table {
    display: block;
    overflow-x: auto;
  }

  .article-decision-cta {
    grid-template-columns: 1fr;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text {
    font-size: 17px;
  }

  .favorite-button span:last-child {
    display: none;
  }

  .hero {
    min-height: 590px;
    background-position: 65% center;
  }

  .hero-inner {
    padding-top: 118px;
  }

  h1 {
    max-width: 320px;
    font-size: 31px;
    overflow-wrap: break-word;
  }

  .hero-copy {
    width: calc(100vw - 56px);
    max-width: calc(100vw - 56px);
  }

  .hero-sub {
    width: 315px;
    max-width: 100%;
    font-size: 15px;
    overflow-wrap: break-word;
  }

  .decoder-form {
    width: calc(100vw - 56px);
    max-width: calc(100vw - 56px);
  }

  .examples { width: calc(100vw - 56px); max-width: calc(100vw - 56px); }

  .decoder-row {
    grid-template-columns: 1fr;
  }

  .decoder-row input {
    height: 58px;
    font-size: 23px;
  }

  .inline-result {
    display: block;
  }

  .parameter-grid,
  .meaning-grid,
  .trust-band,
  .calc-list,
  .formula-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 104px;
    width: 100%;
  }

  .metric-icon {
    width: 48px;
    height: 48px;
    background-size: 144px 96px;
  }

  .metric-card small {
    font-size: 11px;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .saved-size-item {
    grid-template-columns: 1fr;
  }

  .tire-visual,
  .tire-visual img {
    height: 305px;
    min-height: 305px;
  }

  .measurement {
    font-size: 11px;
  }

  .measure-profile {
    top: 114px;
    right: 2%;
    width: 118px;
  }

  .measure-width {
    left: 35%;
    width: 47%;
  }

  .measure-rim {
    left: 35%;
    right: 8%;
  }

  .measure-outer {
    left: 34%;
    right: 5%;
  }

  .quick-selector {
    grid-template-columns: 1fr 1fr;
  }

  .quick-selector label,
  .quick-selector button {
    grid-column: span 2;
  }

  .section-heading {
    display: block;
  }

  .marking-strip span {
    min-height: 48px;
    font-size: 20px;
  }

  .cookie-banner {
    left: 14px;
    right: auto;
    bottom: 10px;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    max-width: calc(100vw - 28px);
    padding: 8px 10px;
    font-size: 13px;
  }

  .cookie-actions button {
    padding: 7px 10px;
  }
}

@media (max-width: 460px) {
  .quick-selector,
  .marking-strip {
    grid-template-columns: 1fr;
  }

  .quick-selector button {
    grid-column: auto;
  }

  .parameters-panel,
  .visual-panel,
  .selector-panel,
  .article-main,
  .articles-panel,
  .faq {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Live browser polish */
.site-header {
  grid-template-columns: auto 1fr;
}

.favorite-button,
.saved-sizes,
.selector-panel,
.quick-selector,
[data-save-size],
[data-compare-size] {
  display: none !important;
}

.brand {
  min-width: 300px;
  gap: 14px;
}

.brand-mark {
  position: relative;
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(circle, transparent 0 18px, rgba(255, 255, 255, 0.22) 19px 20px, transparent 21px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(7, 16, 23, 0.52));
  box-shadow: inset 0 0 0 7px rgba(7, 16, 23, 0.94), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  inset: 13px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
}

.brand-mark::after {
  inset: 21px;
  border-color: var(--yellow);
}

.brand-mark span {
  inset: 6px;
  border-color: rgba(255, 255, 255, 0.26);
}

.brand-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero {
  border-radius: 10px;
}

.mobile-jump-nav {
  grid-template-columns: repeat(3, 1fr);
}

.decoder-row {
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: stretch;
}

.tire-builder {
  display: grid;
  grid-template-columns: 1.1fr auto 0.9fr auto 0.85fr 0.9fr 0.86fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 64px;
  border: 2px solid rgba(16, 98, 255, 0.78);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.tire-builder:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 211, 25, 0.22), 0 10px 28px rgba(0, 0, 0, 0.12);
}

.tire-builder.is-invalid {
  border-color: #ff5b5b;
  box-shadow: 0 0 0 4px rgba(255, 91, 91, 0.22);
}

.tire-builder label {
  min-width: 0;
  margin: 0;
  color: #101827;
}

.tire-builder label span {
  display: block;
  margin: 0 0 1px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.decoder-row .tire-builder input,
.decoder-row .tire-builder select {
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #071017;
  background: transparent;
  font-family: var(--font-data);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  outline: 0;
  box-shadow: none;
}

.decoder-row .tire-builder select {
  appearance: auto;
}

.tire-builder b {
  align-self: end;
  padding-bottom: 3px;
  color: #071017;
  font-family: var(--font-data);
  font-size: 25px;
  line-height: 1;
}

.examples {
  margin-top: 12px;
  gap: 8px;
}

.examples button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 7px;
  padding: 4px 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  font-weight: 900;
  text-decoration: none;
}

.examples button:hover,
.examples button:focus-visible {
  border-color: rgba(255, 211, 25, 0.72);
  background: rgba(255, 211, 25, 0.16);
  text-decoration: none;
}

.result-actions {
  display: flex;
}

.result-actions button {
  width: min(100%, 380px);
  color: var(--yellow-ink);
  background: var(--yellow);
}

.tire-visual {
  border: 2px solid #c5d8f5;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.tire-visual img {
  filter: contrast(1.08) saturate(1.03);
}

.measurement {
  color: #071b43;
  border: 1px solid rgba(16, 98, 255, 0.3);
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.measure-profile {
  top: var(--profile-top, 135px);
}

.measure-rim {
  bottom: var(--rim-bottom, 113px);
}

.measure-outer {
  bottom: var(--outer-bottom, 39px);
}

.article-main {
  position: relative;
  overflow: hidden;
  padding: 24px 28px 28px;
  background:
    linear-gradient(135deg, rgba(16, 98, 255, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.article-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--yellow), var(--blue));
}

.article-main .section-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.article-main .section-heading p {
  color: #486381;
}

.marking-strip {
  border-color: #c9d8eb;
  background: #c9d8eb;
  box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgba(15, 23, 42, 0.08);
}

.marking-strip span {
  min-height: 70px;
  color: #071b43;
  background: linear-gradient(180deg, #ffffff, #edf5ff);
  font-size: 29px;
  font-weight: 900;
}

.meaning-grid article {
  border-color: #d3e1f1;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.meaning-grid h3 {
  color: #092147;
  font-size: 17px;
}

.trust-band article {
  position: relative;
  padding-left: 82px;
}

.trust-icon {
  position: absolute;
  left: 24px;
  top: 26px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 211, 25, 0.58);
  border-radius: 50%;
  color: var(--yellow);
  background: rgba(255, 211, 25, 0.08);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.cookie-banner {
  z-index: 9999;
  pointer-events: auto;
}

.cookie-actions,
.cookie-actions button,
.cookie-banner a {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* Top-design polish: stronger decoder moment without changing the approved visual direction. */
::selection {
  color: #071017;
  background: var(--yellow);
}

.decoder-row input {
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.decoder-row input:focus {
  transform: translateY(-1px);
}

.marking-reader {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 760px;
  margin-top: 14px;
}

.marking-reader span,
.marking-reader i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-family: var(--font-data);
  font-size: 19px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.marking-reader span::after {
  display: block;
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.marking-reader [data-reader-part="width"]::after { content: "мм"; }
.marking-reader [data-reader-part="profile"]::after { content: "%"; }
.marking-reader [data-reader-part="rim"]::after { content: "диск"; }
.marking-reader [data-reader-part="load"]::after { content: "кг"; }
.marking-reader [data-reader-part="speed"]::after { content: "км/ч"; }

.marking-reader.is-updated span {
  border-color: rgba(255, 211, 25, 0.72);
  background: rgba(255, 211, 25, 0.14);
  transform: translateY(-2px);
}

.result-brief {
  display: grid;
  gap: 6px;
  margin: -4px 0 18px;
  border: 1px solid #cfe0ff;
  border-radius: var(--radius);
  padding: 15px 16px;
  color: #11305b;
  background:
    linear-gradient(135deg, rgba(255, 211, 25, 0.16), transparent 34%),
    #edf5ff;
}

.result-brief span {
  color: #526d8e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-brief strong {
  font-family: var(--font-data);
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.35;
}

.result-brief.is-updated {
  animation: resultPulse 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card {
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 98, 255, 0.34);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.metric-card:nth-child(4),
.metric-card:nth-child(5) {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 211, 25, 0.16), transparent 36%),
    linear-gradient(135deg, #071017, #132131);
}

.metric-card:nth-child(4) .metric-label,
.metric-card:nth-child(5) .metric-label,
.metric-card:nth-child(4) small,
.metric-card:nth-child(5) small {
  color: rgba(255, 255, 255, 0.72);
}

.metric-card:nth-child(4) strong,
.metric-card:nth-child(5) strong {
  color: var(--yellow);
}

.metric-card.is-updated {
  animation: cardPulse 540ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tire-visual.is-updated .measurement {
  animation: measurePulse 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner {
  left: auto;
  right: 16px;
  bottom: 14px;
  transform: none;
  width: min(460px, calc(100vw - 32px));
  padding: 8px 10px 8px 12px;
  font-size: 13px;
}

@keyframes resultPulse {
  0% { transform: translateY(0); box-shadow: 0 0 0 rgba(16, 98, 255, 0); }
  35% { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(16, 98, 255, 0.14); }
  100% { transform: translateY(0); box-shadow: 0 0 0 rgba(16, 98, 255, 0); }
}

@keyframes cardPulse {
  0% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

@keyframes measurePulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.035); border-color: rgba(255, 211, 25, 0.86); }
  100% { transform: scale(1); }
}

@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(5, 10, 16, 0.94) 0%, rgba(5, 10, 16, 0.78) 39%, rgba(5, 10, 16, 0.27) 75%, rgba(5, 10, 16, 0.12) 100%),
      url("/img/hero-tire-garage-mobile.webp") right center / cover no-repeat;
  }

  .marking-reader {
    gap: 6px;
    margin-top: 12px;
  }

  .marking-reader span,
  .marking-reader i {
    min-width: 46px;
    min-height: 36px;
    font-size: 16px;
  }

  .marking-reader span::after {
    display: none;
  }

  .result-brief {
    margin-bottom: 14px;
    padding: 13px;
  }

  .parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .metric-card {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 96px;
    padding: 11px;
  }

  .metric-icon {
    width: 36px;
    height: 36px;
    background-size: 108px 72px;
  }

  .metric-card strong {
    font-size: 20px;
  }

  .metric-card small {
    display: none;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 8px;
    width: auto;
    max-width: none;
    padding: 7px 8px;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    top: 42px;
    left: 14px;
    right: 14px;
    width: auto;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-mark::before,
  .brand-mark::after,
  .brand-mark span {
    inset: 11px;
  }

  .brand-mark::after {
    inset: 17px;
  }

  .brand-mark span {
    inset: 5px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    border-radius: 8px;
  }

  .mobile-jump-nav {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    grid-template-columns: repeat(3, 33.3333%);
    overflow: hidden;
  }

  .mobile-jump-nav a {
    min-width: 0;
    padding: 0 6px;
    white-space: nowrap;
  }

  .hero-copy,
  .decoder-form,
  .examples {
    width: 100%;
    max-width: 100%;
  }

  .decoder-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .decoder-row input {
    min-width: 0;
  }

  .tire-builder {
    grid-template-columns: minmax(64px, 1fr) auto minmax(54px, 0.8fr) auto minmax(54px, 0.8fr);
    row-gap: 10px;
  }

  .tire-builder label:nth-of-type(4),
  .tire-builder label:nth-of-type(5) {
    grid-column: span 2;
  }

  .decoder-row .tire-builder input,
  .decoder-row .tire-builder select,
  .tire-builder b {
    font-size: 22px;
  }

  .result-actions button {
    width: 100%;
  }

  .marking-strip span {
    min-height: 52px;
    font-size: 20px;
  }

  .trust-band article {
    padding-left: 76px;
  }
}

@media (max-width: 460px) {
  .hero-inner {
    padding-top: 124px;
  }

  .mobile-jump-nav a {
    font-size: 12px;
  }

  .decoder-row input {
    font-size: 21px;
  }

  .examples {
    flex-wrap: wrap;
    overflow-x: clip;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .examples button {
    padding: 4px 8px;
    font-size: 12px;
  }

  .examples::-webkit-scrollbar {
    display: none;
  }
}

/* Frontend art-direction pass: lock the hero to one grid and make the tool feel intentional. */
.site-header {
  width: min(100% - 96px, var(--container));
  padding-top: 28px;
}

.main-nav {
  justify-self: end;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(7, 16, 23, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.main-nav a {
  text-decoration: none;
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--yellow);
  text-decoration: none;
  transform: translateY(-1px);
}

.brand {
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.26));
}

.hero {
  background:
    linear-gradient(90deg, rgba(5, 10, 16, 0.96) 0%, rgba(5, 10, 16, 0.84) 38%, rgba(5, 10, 16, 0.34) 72%, rgba(5, 10, 16, 0.12) 100%),
    radial-gradient(circle at 42% 98%, rgba(16, 98, 255, 0.18), transparent 34%),
    url("/img/hero-tire-garage.webp") right center / cover no-repeat;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: -20px;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--yellow), rgba(16, 98, 255, 0.08));
  opacity: 0.72;
}

.decoder-row {
  gap: 14px;
}

.decoder-row input {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 34px rgba(0, 0, 0, 0.22);
}

.decoder-row button,
.quick-selector button[type="submit"],
.result-actions button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), 0 15px 28px rgba(255, 211, 25, 0.18);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.decoder-row button:hover,
.decoder-row button:focus-visible,
.quick-selector button[type="submit"]:hover,
.quick-selector button[type="submit"]:focus-visible,
.result-actions button:hover,
.result-actions button:focus-visible {
  background: #ffe052;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 20px 34px rgba(255, 211, 25, 0.24);
}

.decoder-row button:active,
.quick-selector button[type="submit"]:active,
.result-actions button:active {
  transform: translateY(0) scale(0.99);
}

.marking-reader {
  position: relative;
  gap: 7px;
}

.marking-reader span,
.marking-reader i {
  min-width: 56px;
  border-color: rgba(255, 211, 25, 0.44);
  background: rgba(7, 16, 23, 0.54);
}

.inline-result {
  border-color: rgba(255, 211, 25, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 211, 25, 0.1), transparent 40%),
    rgba(7, 16, 23, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard {
  gap: 20px;
  margin-top: 20px;
}

.panel {
  border-color: #cdd9ea;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 38px rgba(15, 23, 42, 0.07);
}

.parameters-panel,
.visual-panel {
  position: relative;
  overflow: hidden;
}

.parameters-panel::before,
.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--yellow);
  opacity: 0.92;
}

.result-brief {
  border-color: #b9cdf0;
  background:
    linear-gradient(135deg, rgba(255, 211, 25, 0.22), transparent 32%),
    linear-gradient(180deg, #f4f8ff, #eaf2ff);
}

.metric-card {
  border-color: #d3deec;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.section-heading p,
.metric-label,
.result-brief span {
  color: #5c6f89;
}

.result-brief strong,
.metric-card strong,
.measurement {
  font-variant-numeric: tabular-nums;
}

.tire-visual {
  border-color: #b9cdf0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

@media (max-width: 1180px) {
  .site-header {
    width: min(100% - 96px, var(--container));
  }
}

@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(5, 10, 16, 0.97) 0%, rgba(5, 10, 16, 0.9) 45%, rgba(5, 10, 16, 0.72) 100%),
      linear-gradient(90deg, rgba(5, 10, 16, 0.96) 0%, rgba(5, 10, 16, 0.74) 64%, rgba(5, 10, 16, 0.42) 100%),
      url("/img/hero-tire-garage.webp") 62% center / cover no-repeat;
  }

  .site-header {
    top: 42px;
    right: 28px;
    left: 28px;
    width: auto;
    padding-top: 18px;
  }

  .hero-inner {
    padding-top: 124px;
  }

  .hero-copy::before {
    left: -10px;
    top: 4px;
    bottom: auto;
    height: 72px;
  }

  .brand {
    width: max-content;
    max-width: 100%;
  }

  .decoder-row input {
    height: 56px;
    padding-inline: 18px;
  }

  .examples {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, max-content);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 0 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 0 calc(100% - 28px), transparent);
  }

  .examples button {
    scroll-snap-align: start;
  }

  .marking-reader {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
  }

  .marking-reader span,
  .marking-reader i {
    min-width: 0;
    min-height: 38px;
    padding-inline: 4px;
  }

  .inline-result {
    margin-top: 14px;
  }
}

/* Design-taste pass: remove template tells while preserving the tire-service direction. */
.parameter-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr) minmax(0, 1.02fr);
}

.metric-label {
  text-wrap: auto;
}

.metric-card:nth-child(6) {
  background:
    linear-gradient(135deg, rgba(255, 211, 25, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

@media (max-width: 760px) {
  .hero,
  #decoder {
    scroll-margin-top: 43px;
  }

  .parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Selected redesign: dark service console + technical passport. */
:root {
  --page: #f4f7fb;
  --ink: #0d1726;
  --muted: #64748b;
  --line: #d8e2ef;
  --dark: #061018;
  --yellow: #ffd21a;
  --yellow-ink: #211900;
  --blue: #185cff;
  --container: 1328px;
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 44px rgba(15, 23, 42, 0.07);
}

body {
  color: var(--ink);
  background:
    linear-gradient(180deg, #eef3f8 0, #f8fafc 680px, #f4f7fb 100%);
  font-variant-numeric: tabular-nums;
}

main {
  width: 100%;
  max-width: none;
  margin: 0;
}

main > :not(.hero) {
  width: min(100% - 112px, var(--container));
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  width: min(100% - 112px, var(--container));
  padding-top: 44px;
}

.brand {
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 56px;
  height: 56px;
}

.brand-text {
  font-size: 25px;
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.hero {
  min-height: 596px;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 16, 0.98) 0%, rgba(5, 10, 16, 0.88) 46%, rgba(5, 10, 16, 0.2) 100%),
    url("/img/hero-tire-garage.webp") right center / cover no-repeat;
}

.hero::after {
  background: rgba(255, 255, 255, 0.08);
}

.hero-inner {
  width: min(100% - 112px, var(--container));
  padding-top: 158px;
  padding-bottom: 78px;
}

.hero-copy {
  max-width: 1010px;
}

.hero-copy::before,
.hero-overlay {
  display: none;
}

h1 {
  max-width: 830px;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(44px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.article-body .article-content h1,
.article-body .article-content h2,
.article-body .article-content h3 {
  color: #071017;
}

.article-body .article-content h1 {
  max-width: 860px;
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.03;
}

.hero-sub {
  max-width: 730px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 21px;
  line-height: 1.48;
}

.decoder-form {
  width: min(100%, 1010px);
}

.decoder-form label {
  display: none;
}

.decoder-row {
  grid-template-columns: minmax(0, 734px) 260px;
  gap: 16px;
}

.decoder-row input {
  height: 72px;
  border: 0;
  border-radius: 8px;
  padding: 0 28px;
  color: #071017;
  background: #fff;
  font-family: var(--font-data);
  font-size: 30px;
  font-weight: 850;
  letter-spacing: 0.01em;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.decoder-row input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(255, 210, 26, 0.24), 0 24px 50px rgba(0, 0, 0, 0.24);
}

.decoder-row input[aria-invalid="true"] {
  box-shadow: 0 0 0 4px rgba(255, 91, 91, 0.24), 0 24px 50px rgba(0, 0, 0, 0.24);
}

.decoder-row button {
  min-height: 72px;
  border-radius: 8px;
  color: var(--yellow-ink);
  background: var(--yellow);
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 22px 42px rgba(255, 210, 26, 0.25);
}

.decoder-row button:hover,
.decoder-row button:focus-visible {
  background: #ffdc3c;
}

.examples {
  min-height: auto;
  margin-top: 14px;
  gap: 8px;
}

.examples button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.examples button:hover,
.examples button:focus-visible {
  border-color: rgba(255, 210, 26, 0.72);
  background: rgba(255, 210, 26, 0.16);
}

.form-error {
  margin-top: 10px;
  color: #ffd7d7;
  font-weight: 900;
}

.dashboard {
  grid-template-columns: minmax(0, 682px) minmax(0, 646px);
  gap: 24px;
  margin-top: 26px;
}

.panel {
  border-color: #cad8ea;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--shadow-soft);
}

.parameters-panel,
.visual-panel,
.method-panel,
.article-main,
.articles-panel,
.faq {
  padding: 0;
  overflow: hidden;
}

.parameters-panel::before,
.visual-panel::before {
  height: 3px;
  background: var(--yellow);
  opacity: 1;
}

.section-heading {
  align-items: end;
  margin: 0;
  padding: 28px 24px 16px;
}

.section-heading p {
  color: #66758b;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.section-heading h2 {
  font-family: var(--font-data);
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.result-brief {
  display: none !important;
}

.result-brief span {
  display: none;
}

.result-brief strong {
  font-family: var(--font-data);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.45;
}

.parameter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 24px;
}

.metric-card {
  display: block;
  min-height: 106px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 210, 26, 0.13), transparent 34%),
    linear-gradient(135deg, #071017, #111d29);
  box-shadow: none;
}

.metric-icon {
  display: none;
}

.metric-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.metric-card strong {
  margin-top: 9px;
  margin-bottom: 0;
  font-size: 26px;
  font-weight: 850;
}

.metric-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.35;
}

.metric-card strong {
  color: var(--yellow);
}

.notice {
  margin: 0 24px 18px;
  border-color: #c7d8f3;
  background: #edf5ff;
}

.result-actions {
  padding: 0 24px 24px;
  margin-top: 0;
}

.result-actions button {
  width: min(100%, 380px);
  min-height: 46px;
  border-color: var(--yellow);
  background: var(--yellow);
  box-shadow: 0 16px 30px rgba(255, 210, 26, 0.2);
}

.action-status {
  margin: -14px 24px 18px;
}

.tire-visual {
  min-height: 414px;
  margin: 0 24px 24px;
  border-color: #c7d8f3;
  border-width: 1px;
  background: #fff;
  box-shadow: none;
}

.tire-visual img {
  position: absolute;
  right: -96px;
  bottom: -144px;
  width: 710px;
  max-width: none;
  height: 530px;
  object-fit: cover;
  object-position: center;
}

.measurement {
  border: 1px solid rgba(24, 92, 255, 0.28);
  border-radius: 5px;
  padding: 8px 12px;
  color: #071b43;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  font-size: 13px;
  line-height: 1;
}

.measure-tread {
  top: 68px;
  left: 70px;
  width: auto;
  border-top: 0;
  padding-top: 8px;
}

.measure-width {
  display: none;
}

.measure-profile {
  top: var(--profile-top, 116px);
  right: 72px;
  width: auto;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
}

.measure-rim {
  right: auto;
  bottom: var(--rim-bottom, 80px);
  left: 260px;
  width: auto;
  border-top: 0;
  padding-top: 8px;
}

.measure-outer {
  display: none;
}

.measurement::before,
.measurement::after {
  display: none;
}

.calc-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0 24px 24px;
}

.calc-list div {
  background: #fbfdff;
}

.method-panel,
.explain-grid,
.trust-band,
.faq {
  margin-top: 24px;
}

.method-panel {
  padding-bottom: 24px;
}

.method-panel .section-heading {
  justify-content: flex-start;
}

.formula-grid {
  gap: 14px;
  padding: 0 24px;
}

.formula-grid article,
.meaning-grid article,
.articles-panel a,
.faq details {
  border-color: #d5dfec;
  background: #fbfdff;
  box-shadow: none;
}

.method-note {
  margin: 14px 24px 0;
}

.explain-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.article-main .section-heading {
  border-bottom: 1px solid var(--line);
  margin: 0 24px 18px;
  padding-right: 0;
  padding-left: 0;
}

.marking-strip {
  margin: 0 24px 18px;
}

.marking-strip span {
  min-height: 64px;
  background: #f9fbfe;
  font-size: 25px;
}

.meaning-grid {
  gap: 12px;
  padding: 0 24px 24px;
}

.articles-panel a {
  margin-right: 18px;
  margin-left: 18px;
}

.articles-panel a:last-child {
  margin-bottom: 18px;
}

.trust-band {
  border-radius: 8px;
}

.trust-band article {
  min-height: 116px;
  padding: 22px 24px 22px 82px;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 210, 26, 0.13), transparent 32%),
    linear-gradient(135deg, #071017, #142231);
}

.trust-icon {
  color: var(--yellow);
  border-color: rgba(255, 210, 26, 0.58);
  background: rgba(255, 210, 26, 0.08);
}

.faq {
  padding-bottom: 18px;
}

.faq details {
  margin: 10px 18px 0;
}

.site-footer {
  width: min(100% - 112px, var(--container));
  padding-top: 26px;
}

@media (max-width: 1180px) {
  main > :not(.hero),
  .site-header,
  .hero-inner,
  .site-footer {
    width: min(100% - 64px, var(--container));
  }

  .dashboard,
  .explain-grid {
    grid-template-columns: 1fr;
  }

  .decoder-row {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .tire-visual img {
    right: -60px;
  }
}

@media (max-width: 760px) {
  main > :not(.hero),
  .site-header,
  .hero-inner,
  .site-footer {
    width: min(100% - 32px, var(--container));
  }

  .mobile-jump-nav {
    display: none !important;
  }

  .site-header {
    top: 0;
    right: 16px;
    left: 16px;
    width: auto;
    padding-top: 18px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    min-height: 600px;
    background:
      linear-gradient(180deg, rgba(5, 10, 16, 0.98) 0%, rgba(5, 10, 16, 0.92) 50%, rgba(5, 10, 16, 0.8) 100%),
      linear-gradient(90deg, rgba(5, 10, 16, 0.98) 0%, rgba(5, 10, 16, 0.78) 58%, rgba(5, 10, 16, 0.5) 100%),
      url("/img/hero-tire-garage.webp") 58% center / auto 100% no-repeat;
  }

  .hero-inner {
    padding-top: 128px;
    padding-bottom: 34px;
  }

  h1 {
    max-width: 520px;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.02;
  }

  .hero-sub {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.5;
  }

  .decoder-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .decoder-row input,
  .decoder-row button {
    min-height: 58px;
  }

  .decoder-row input {
    height: 58px;
    padding-inline: 18px;
    font-size: 22px;
  }

  .examples {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .examples button {
    flex: 0 1 auto;
    padding: 7px 9px;
    font-size: 12px;
    white-space: nowrap;
  }

  .dashboard {
    gap: 16px;
    margin-top: 18px;
  }

  .section-heading {
    display: grid;
    gap: 8px;
    padding: 22px 18px 14px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .result-brief,
  .notice {
    margin-right: 18px;
    margin-left: 18px;
  }

  .parameter-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 0 18px 18px;
  }

  .metric-card {
    min-height: 92px;
    padding: 14px;
  }

  .metric-card strong {
    font-size: 22px;
  }

  .metric-card small {
    display: block;
  }

  .result-actions,
  .calc-list,
  .formula-grid,
  .meaning-grid {
    padding-right: 18px;
    padding-left: 18px;
  }

  .tire-visual {
    min-height: 340px;
    margin-right: 18px;
    margin-left: 18px;
  }

  .tire-visual img {
    right: auto;
    left: 50%;
    bottom: -18px;
    width: clamp(520px, 115%, 700px);
    height: auto;
    transform: translateX(-50%);
  }

  .measure-tread {
    left: 26px;
    top: 38px;
  }

  .measure-profile {
    top: 96px;
    right: 18px;
    max-width: 170px;
  }

  .measure-rim {
    left: 50%;
    bottom: 42px;
    max-width: 210px;
    transform: translateX(-50%);
  }

  .calc-list,
  .formula-grid,
  .meaning-grid,
  .trust-band {
    grid-template-columns: 1fr;
  }

  .article-main .section-heading,
  .marking-strip {
    margin-right: 18px;
    margin-left: 18px;
  }

  .marking-strip {
    grid-template-columns: repeat(7, minmax(42px, 1fr));
    overflow-x: auto;
  }

  .marking-strip span {
    min-height: 54px;
    font-size: 20px;
  }

  .trust-band article {
    min-height: 96px;
  }
}

@media (max-width: 440px) {
  .hero {
    min-height: 616px;
  }

  .hero-inner {
    padding-top: 122px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .parameter-grid {
    grid-template-columns: 1fr;
  }

  .result-brief strong {
    font-size: 15px;
  }

  .tire-visual {
    min-height: 310px;
  }

  .tire-visual img {
    right: auto;
    left: 50%;
    bottom: -10px;
    width: 500px;
    height: auto;
    transform: translateX(-50%);
  }

  .measurement {
    font-size: 11px;
    padding: 7px 9px;
  }

  .measure-profile {
    top: 86px;
    right: 14px;
    max-width: 150px;
  }

  .measure-rim {
    bottom: 28px;
    max-width: 170px;
  }

  .measure-rim {
    left: 50%;
  }
}

.parameter-grid > .metric-card {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 210, 26, 0.13), transparent 34%),
    linear-gradient(135deg, #071017, #111d29);
}

.parameter-grid > .metric-card .metric-label,
.parameter-grid > .metric-card small {
  color: rgba(255, 255, 255, 0.68);
}

.parameter-grid > .metric-card strong {
  color: var(--yellow);
}

/* Large technical formula icons. */
.formula-grid article {
  position: relative;
  grid-template-columns: 86px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon formula"
    "icon note";
  align-items: center;
  column-gap: 18px;
  min-height: 142px;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 210, 26, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.formula-grid article::before {
  content: "";
  grid-area: icon;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 210, 26, 0.46);
  border-radius: 10px;
  background-color: #071017;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 30px rgba(7, 16, 23, 0.14);
}

.formula-grid article:nth-child(1)::before {
  background:
    linear-gradient(90deg, transparent 0 51%, rgba(255, 210, 26, 0.95) 51% 56%, transparent 56%),
    linear-gradient(0deg, transparent 0 19%, rgba(255, 255, 255, 0.55) 19% 22%, transparent 22% 78%, rgba(255, 255, 255, 0.55) 78% 81%, transparent 81%),
    radial-gradient(ellipse at 32% 50%, transparent 0 25px, rgba(255, 255, 255, 0.85) 26px 29px, transparent 30px),
    radial-gradient(circle at 76% 22%, rgba(255, 210, 26, 0.22), transparent 24px),
    #071017;
}

.formula-grid article:nth-child(2)::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 210, 26, 0.95) 0 5px, transparent 6px),
    repeating-conic-gradient(from 8deg, rgba(255, 255, 255, 0.72) 0 8deg, transparent 8deg 30deg),
    radial-gradient(circle at 50% 50%, transparent 0 20px, rgba(255, 255, 255, 0.9) 21px 24px, transparent 25px 31px, rgba(255, 210, 26, 0.95) 32px 35px, transparent 36px),
    radial-gradient(circle at 76% 22%, rgba(255, 210, 26, 0.2), transparent 24px),
    #071017;
}

.formula-grid article:nth-child(3)::before {
  background:
    linear-gradient(135deg, transparent 0 43%, rgba(255, 210, 26, 0.95) 43% 47%, transparent 47%),
    radial-gradient(circle at 50% 50%, transparent 0 23px, rgba(255, 255, 255, 0.86) 24px 28px, transparent 29px 32px, rgba(255, 210, 26, 0.96) 33px 36px, transparent 37px),
    radial-gradient(circle at 27% 74%, rgba(255, 210, 26, 0.18), transparent 22px),
    #071017;
}

.formula-grid strong {
  grid-area: title;
  align-self: end;
  font-size: 17px;
}

.formula-grid code {
  grid-area: formula;
  align-self: center;
}

.formula-grid article > span {
  grid-area: note;
  align-self: start;
}

@media (max-width: 760px) {
  .formula-grid article {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 118px;
    padding: 14px;
  }

  .formula-grid article::before {
    width: 62px;
    height: 62px;
  }
}

.formula-grid article {
  grid-template-columns: 100px minmax(0, 1fr);
}

.formula-grid article::before {
  width: 90px;
  height: 90px;
  border: 0;
  border-radius: 0;
  background: transparent url("/img/formula-icons-sprite.png") no-repeat 0 0 / 270px 90px;
  box-shadow: none;
}

.formula-grid article:nth-child(1)::before {
  background: transparent url("/img/formula-icons-sprite.png") no-repeat 0 0 / 270px 90px;
}

.formula-grid article:nth-child(2)::before {
  background: transparent url("/img/formula-icons-sprite.png") no-repeat -90px 0 / 270px 90px;
}

.formula-grid article:nth-child(3)::before {
  background: transparent url("/img/formula-icons-sprite.png") no-repeat -180px 0 / 270px 90px;
}

@media (max-width: 760px) {
  .formula-grid article {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .formula-grid article::before {
    width: 70px;
    height: 70px;
    background: transparent url("/img/formula-icons-sprite.png") no-repeat 0 0 / 210px 70px;
  }

  .formula-grid article:nth-child(1)::before {
    background: transparent url("/img/formula-icons-sprite.png") no-repeat 0 0 / 210px 70px;
  }

  .formula-grid article:nth-child(2)::before {
    background: transparent url("/img/formula-icons-sprite.png") no-repeat -70px 0 / 210px 70px;
  }

  .formula-grid article:nth-child(3)::before {
    background: transparent url("/img/formula-icons-sprite.png") no-repeat -140px 0 / 210px 70px;
  }
}

/* Generated PNG formula icons override. */
#method .formula-grid article::before {
  width: 90px;
  height: 90px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("/img/formula-icons-cross-section-sprite.png");
  background-repeat: no-repeat;
  background-size: 270px 90px;
  background-position: 0 0;
  box-shadow: none;
}

#method .formula-grid article:nth-child(1)::before {
  background: transparent url("/img/formula-icons-cross-section-sprite.png") no-repeat 0 0 / 270px 90px;
}

#method .formula-grid article:nth-child(2)::before {
  background: transparent url("/img/formula-icons-cross-section-sprite.png") no-repeat -90px 0 / 270px 90px;
}

#method .formula-grid article:nth-child(3)::before {
  background: transparent url("/img/formula-icons-cross-section-sprite.png") no-repeat -180px 0 / 270px 90px;
}

@media (max-width: 760px) {
  #method .formula-grid article::before {
    width: 70px;
    height: 70px;
    background-size: 210px 70px;
  }

  #method .formula-grid article:nth-child(1)::before {
    background: transparent url("/img/formula-icons-cross-section-sprite.png") no-repeat 0 0 / 210px 70px;
  }

  #method .formula-grid article:nth-child(2)::before {
    background: transparent url("/img/formula-icons-cross-section-sprite.png") no-repeat -70px 0 / 210px 70px;
  }

  #method .formula-grid article:nth-child(3)::before {
    background: transparent url("/img/formula-icons-cross-section-sprite.png") no-repeat -140px 0 / 210px 70px;
  }
}

/* Generated realistic icons for the dark trust cards. */
.trust-band article {
  min-height: 136px;
  padding-left: 118px;
}

.trust-icon {
  left: 24px;
  top: 50%;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 26, 0.38);
  border-radius: 16px;
  background-color: #071017;
  background-image: url("/img/trust-icons-realistic-sprite.png");
  background-repeat: no-repeat;
  background-size: 304px 76px;
  background-position: 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 34px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(255, 210, 26, 0.1);
  color: transparent;
  font-size: 0;
  transform: translateY(-50%);
}

.trust-band article:nth-child(1) .trust-icon {
  background-position: 0 0;
}

.trust-band article:nth-child(2) .trust-icon {
  background-position: -76px 0;
}

.trust-band article:nth-child(3) .trust-icon {
  background-position: -152px 0;
}

.trust-band article:nth-child(4) .trust-icon {
  background-position: -228px 0;
}

@media (max-width: 760px) {
  .trust-band article {
    min-height: 122px;
    padding-left: 108px;
  }

  .trust-icon {
    width: 70px;
    height: 70px;
    background-size: 280px 70px;
  }

  .trust-band article:nth-child(2) .trust-icon {
    background-position: -70px 0;
  }

  .trust-band article:nth-child(3) .trust-icon {
    background-position: -140px 0;
  }

  .trust-band article:nth-child(4) .trust-icon {
    background-position: -210px 0;
  }
}

/* Full-width article links below the marking explainer. */
.explain-grid {
  grid-template-columns: 1fr;
}

.articles-panel {
  align-self: stretch;
  display: block;
  padding: 24px;
}

.articles-panel .section-heading {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.articles-panel .section-heading p {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.article-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.articles-more {
  margin-top: 14px;
}

.articles-more summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid #b9c9dc;
  border-radius: var(--radius);
  padding: 0 18px;
  color: #082133;
  background: var(--accent);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.articles-more summary::-webkit-details-marker {
  display: none;
}

.articles-more summary::after {
  content: ">";
  margin-left: 10px;
  transition: transform 180ms ease;
}

.articles-more[open] summary::after {
  transform: rotate(90deg);
}

.articles-more .article-links {
  margin-top: 12px;
}

#faq .section-heading p {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.parameters-panel .section-heading {
  align-items: flex-start;
  gap: 14px;
}

.parameters-panel .section-heading h2,
.visual-panel .section-heading h2 {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.parameters-panel .section-heading .section-value,
.visual-panel .section-heading .section-value {
  margin: 0 0 0 auto;
  color: var(--ink);
  font-family: var(--font-data);
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.visual-panel .section-heading {
  align-items: flex-start;
  gap: 14px;
}

.articles-panel a,
.articles-panel a:last-child {
  min-height: 54px;
  margin: 0;
}

@media (max-width: 760px) {
  .articles-panel {
    padding: 18px;
  }

  .article-links {
    grid-template-columns: 1fr;
  }

  .articles-panel .section-heading {
    align-items: flex-start;
    padding-bottom: 14px;
  }
}

/* Generated logo emblem. */
.brand-mark {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  filter:
    drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 12px rgba(255, 210, 26, 0.16));
}

.brand-text {
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

@media (max-width: 760px) {
  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .parameters-panel .section-heading {
    align-items: flex-start;
  }

  .parameters-panel .section-heading .section-value {
    margin-left: 0;
    white-space: normal;
  }

  .visual-panel .section-heading {
    align-items: flex-start;
  }

  .visual-panel .section-heading .section-value {
    margin-left: 0;
    white-space: normal;
  }
}

/* Keep the hero tire visible on narrow screens. */
@media (max-width: 700px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(5, 10, 16, 0.9) 0%, rgba(5, 10, 16, 0.74) 52%, rgba(5, 10, 16, 0.5) 100%),
      linear-gradient(90deg, rgba(5, 10, 16, 0.98) 0%, rgba(5, 10, 16, 0.72) 47%, rgba(5, 10, 16, 0.08) 100%),
      url("/img/hero-tire-garage.webp") 72% 48% / auto 108% no-repeat;
  }
}

@media (max-width: 440px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(5, 10, 16, 0.92) 0%, rgba(5, 10, 16, 0.76) 50%, rgba(5, 10, 16, 0.52) 100%),
      linear-gradient(90deg, rgba(5, 10, 16, 0.98) 0%, rgba(5, 10, 16, 0.74) 49%, rgba(5, 10, 16, 0.1) 100%),
      url("/img/hero-tire-garage.webp") 76% 48% / auto 112% no-repeat;
  }
}

@media (max-width: 360px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(5, 10, 16, 0.94) 0%, rgba(5, 10, 16, 0.8) 50%, rgba(5, 10, 16, 0.56) 100%),
      linear-gradient(90deg, rgba(5, 10, 16, 0.98) 0%, rgba(5, 10, 16, 0.78) 50%, rgba(5, 10, 16, 0.12) 100%),
      url("/img/hero-tire-garage.webp") 78% 48% / auto 116% no-repeat;
  }
}

/* Stack result panels so the calculator reads top-to-bottom on desktop too. */
.dashboard {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.dashboard > .panel {
  height: auto;
}

/* Mobile trust cards become a horizontal slider. */
@media (max-width: 760px) {
  .trust-band {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82vw);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 16px 10px;
    border-radius: 0;
    background: transparent;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .trust-band::-webkit-scrollbar {
    display: none;
  }

  .trust-band article {
    min-height: 226px;
    padding: 24px 20px;
    text-align: center;
    border-radius: 8px;
    scroll-snap-align: center;
  }

  .trust-icon {
    position: relative;
    left: auto;
    top: auto;
    display: block;
    width: 86px;
    height: 86px;
    margin: 0 auto 16px;
    background-size: 344px 86px;
    transform: none;
  }

  .trust-band article:nth-child(1) .trust-icon {
    background-position: 0 0;
  }

  .trust-band article:nth-child(2) .trust-icon {
    background-position: -86px 0;
  }

  .trust-band article:nth-child(3) .trust-icon {
    background-position: -172px 0;
  }

  .trust-band article:nth-child(4) .trust-icon {
    background-position: -258px 0;
  }

  .trust-band strong {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.22;
  }

  .trust-band span:not(.trust-icon) {
    max-width: 230px;
    margin-right: auto;
    margin-left: auto;
    font-size: 14px;
    line-height: 1.45;
  }
}

/* Generated cutaway diagram: the art contains the rulers; CSS only places live text. */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 210, 26, 0.42);
  border-radius: 999px;
  padding: 5px 11px;
  color: #fff;
  background: rgba(7, 16, 23, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.hero-badges li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 210, 26, 0.74);
}

.tire-visual {
  min-height: auto;
  aspect-ratio: 3 / 2;
  background: #fff;
}

.tire-visual::before,
.tire-visual::after,
.measurement::before,
.measurement::after {
  display: none;
}

.tire-visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: none;
}

.measurement {
  z-index: 2;
  border: 0;
  padding: 0;
  color: #071b43;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-data);
  font-size: clamp(9px, 1.05vw, 13px);
  font-weight: 900;
  line-height: 1.12;
}

.measure-tread {
  top: 9.3%;
  left: 3.6%;
  width: 19%;
  text-align: center;
}

.measure-width {
  display: block;
  top: 77.2%;
  left: 3.6%;
  width: 19%;
  text-align: center;
}

.measure-profile {
  top: 23.3%;
  right: 16.7%;
  width: 17.5%;
  max-width: none;
  text-align: center;
}

.measure-rim {
  top: 56.3%;
  right: 17.2%;
  bottom: auto;
  left: auto;
  width: 15.5%;
  max-width: none;
  text-align: center;
  transform: none;
}

.measure-outer {
  top: 55.3%;
  right: 4.4%;
  width: 15.5%;
  height: auto;
  text-align: center;
}

@media (max-width: 760px) {
  .hero-badges {
    margin-bottom: 12px;
  }

  .hero-badges li {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 12px;
  }

  .tire-visual {
    aspect-ratio: 3 / 2;
    min-height: auto;
  }

  .measurement {
    font-size: clamp(7px, 2.15vw, 10px);
  }
}

/* Tire diagram pass: make rulers attach to the actual tire geometry. */
.tire-visual {
  min-height: 500px;
  isolation: isolate;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.tire-visual img {
  right: -132px;
  bottom: -96px;
  width: 860px;
  height: auto;
}

.tire-visual::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 76px;
  right: 38px;
  width: 2px;
  height: 328px;
  background: var(--yellow);
  box-shadow:
    -7px 0 0 rgba(255, 210, 26, 0.16),
    0 0 0 1px rgba(33, 25, 0, 0.08);
}

.tire-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 76px;
  right: 28px;
  width: 22px;
  height: 328px;
  border-top: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  pointer-events: none;
}

.measurement {
  z-index: 3;
  border: 1px solid rgba(255, 210, 26, 0.72);
  border-radius: 6px;
  padding: 8px 11px;
  color: #061221;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(7, 16, 23, 0.16);
  font-size: 13px;
  line-height: 1.1;
}

.measurement::before,
.measurement::after {
  display: block;
  background: var(--yellow);
  box-shadow: 0 0 0 1px rgba(33, 25, 0, 0.06);
}

.measure-tread {
  top: 52px;
  left: 54px;
  width: 174px;
  border-top: 1px solid rgba(255, 210, 26, 0.72);
  padding-top: 8px;
}

.measure-tread::before {
  left: 22px;
  right: 22px;
  top: calc(100% + 13px);
  height: 3px;
}

.measure-tread::after {
  left: 22px;
  right: 22px;
  top: calc(100% + 6px);
  height: 18px;
  border-right: 3px solid var(--yellow);
  border-left: 3px solid var(--yellow);
  background: transparent;
}

.measure-width {
  display: block;
  top: 22px;
  left: 332px;
  width: 384px;
}

.measure-width::before {
  left: 20px;
  right: 20px;
  top: calc(100% + 12px);
  height: 3px;
}

.measure-width::after {
  left: 20px;
  right: 20px;
  top: calc(100% + 5px);
  height: 18px;
  border-right: 3px solid var(--yellow);
  border-left: 3px solid var(--yellow);
  background: transparent;
}

.measure-profile {
  top: 104px;
  right: 82px;
  width: 238px;
  max-width: none;
}

.measure-profile::before {
  right: calc(100% - 3px);
  top: 50%;
  width: 78px;
  height: 3px;
  transform: translateY(-50%);
}

.measure-profile::after {
  right: calc(100% + 72px);
  top: 50%;
  width: 3px;
  height: 106px;
  transform: translateY(-50%);
}

.measure-rim {
  left: 334px;
  right: auto;
  bottom: 138px;
  width: 280px;
  transform: none;
}

.measure-rim::before {
  left: 22px;
  right: 22px;
  top: calc(100% + 12px);
  height: 3px;
}

.measure-rim::after {
  left: 22px;
  right: 22px;
  top: calc(100% + 5px);
  height: 18px;
  border-right: 3px solid var(--yellow);
  border-left: 3px solid var(--yellow);
  background: transparent;
}

.measure-outer {
  display: block;
  top: 232px;
  right: 62px;
  width: 188px;
}

.measure-outer::before {
  right: -24px;
  top: 50%;
  width: 24px;
  height: 3px;
  transform: translateY(-50%);
}

.measure-outer::after {
  display: none;
}

@media (max-width: 760px) {
  .tire-visual {
    min-height: 430px;
  }

  .tire-visual img {
    left: 48%;
    right: auto;
    bottom: -44px;
    width: 720px;
    transform: translateX(-50%);
  }

  .tire-visual::before {
    top: 106px;
    right: 18px;
    height: 250px;
  }

  .tire-visual::after {
    top: 106px;
    right: 8px;
    height: 250px;
  }

  .measurement {
    font-size: 11px;
    padding: 7px 8px;
  }

  .measure-tread {
    top: 34px;
    left: 28px;
    width: 126px;
  }

  .measure-width {
    top: 18px;
    left: 172px;
    width: 190px;
  }

  .measure-profile {
    top: 112px;
    right: 36px;
    width: 176px;
  }

  .measure-profile::before {
    width: 36px;
  }

  .measure-profile::after {
    right: calc(100% + 32px);
    height: 76px;
  }

  .measure-rim {
    left: 50%;
    bottom: 96px;
    width: 208px;
    transform: translateX(-50%);
  }

  .measure-outer {
    top: 240px;
    right: 40px;
    width: 150px;
  }
}

@media (max-width: 440px) {
  .tire-visual {
    min-height: 392px;
  }

  .tire-visual img {
    left: 47%;
    bottom: -28px;
    width: 620px;
  }

  .tire-visual::before {
    top: 106px;
    right: 16px;
    height: 220px;
  }

  .tire-visual::after {
    top: 106px;
    right: 6px;
    height: 220px;
  }

  .measure-tread {
    left: 18px;
    width: 112px;
  }

  .measure-width {
    top: 18px;
    left: 132px;
    width: 184px;
  }

  .measure-profile {
    top: 112px;
    right: 32px;
    width: 150px;
  }

  .measure-rim {
    bottom: 86px;
    width: 178px;
  }

  .measure-outer {
    top: 230px;
    right: 34px;
    width: 132px;
  }
}

/* Final diagram correction: fewer labels, clearer tire, rulers pinned to edges. */
.tire-visual img {
  right: -150px;
  bottom: -70px;
  width: 780px;
  z-index: 1;
  filter: contrast(1.05) saturate(0.96);
}

.measure-width {
  display: none;
}

.measure-tread {
  top: 54px;
  left: 44px;
  width: 152px;
}

.measure-tread::before {
  left: 12px;
  right: 12px;
}

.measure-tread::after {
  left: 12px;
  right: 12px;
}

.measure-profile {
  top: 116px;
  right: 46px;
  width: 224px;
}

.measure-profile::before {
  width: 58px;
}

.measure-profile::after {
  right: calc(100% + 52px);
  height: 94px;
}

.measure-rim {
  left: auto;
  right: 36px;
  bottom: 132px;
  width: 238px;
}

.measure-rim::before {
  left: 16px;
  right: 16px;
}

.measure-rim::after {
  left: 16px;
  right: 16px;
}

.measure-outer {
  top: 224px;
  right: 58px;
  width: 168px;
  height: auto;
}

@media (max-width: 760px) {
  .tire-visual {
    min-height: 418px;
  }

  .tire-visual img {
    left: 39%;
    bottom: -6px;
    width: 570px;
  }

  .tire-visual::before {
    top: 122px;
    right: 18px;
    height: 232px;
  }

  .tire-visual::after {
    top: 122px;
    right: 8px;
    height: 232px;
  }

  .measure-tread {
    top: 42px;
    left: 34px;
    width: 118px;
  }

  .measure-profile {
    top: 142px;
    right: 34px;
    width: 158px;
  }

  .measure-profile::before {
    width: 32px;
  }

  .measure-profile::after {
    right: calc(100% + 28px);
    height: 72px;
  }

  .measure-rim {
    right: 34px;
    bottom: 76px;
    left: auto;
    width: 176px;
    transform: none;
  }

  .measure-outer {
    top: 258px;
    right: 42px;
    width: 132px;
  }
}

@media (max-width: 440px) {
  .tire-visual {
    min-height: 386px;
  }

  .tire-visual img {
    left: 38%;
    bottom: 0;
    width: 520px;
  }

  .tire-visual::before {
    top: 124px;
    height: 206px;
  }

  .tire-visual::after {
    top: 124px;
    height: 206px;
  }

  .measure-tread {
    top: 38px;
    left: 26px;
    width: 112px;
  }

  .measure-profile {
    top: 136px;
    right: 32px;
    width: 148px;
  }

  .measure-rim {
    right: 32px;
    bottom: 72px;
    width: 160px;
  }

  .measure-outer {
    top: 250px;
    right: 38px;
    width: 126px;
  }
}

/* Final generated size visualization. The raster image carries the tire and rulers. */
.tire-visual {
  aspect-ratio: 1586 / 992;
  box-sizing: border-box;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0 24px 24px;
  overflow: hidden;
  border: 1px solid #c7d8f3;
  border-radius: 8px;
  background: #fff;
}

.tire-visual::before,
.tire-visual::after,
.tire-visual .measurement::before,
.tire-visual .measurement::after {
  display: none !important;
}

.tire-visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: none;
}

.tire-visual .measurement {
  z-index: 2;
  border: 1px solid rgba(255, 210, 26, 0.72);
  border-radius: 6px;
  padding: 7px 10px;
  color: #071b43;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 24px rgba(7, 16, 23, 0.14);
  font-family: var(--font-data);
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
}

.tire-visual .measure-tread {
  inset: auto;
  top: 4.5%;
  left: 36%;
  right: auto;
  bottom: auto;
  width: 96px;
  height: auto;
  transform: translateX(-50%);
}

.tire-visual .measure-width {
  display: none;
}

.tire-visual .measure-profile {
  inset: auto;
  top: 19%;
  right: 20%;
  bottom: auto;
  left: auto;
  width: 170px;
  height: auto;
  max-width: none;
}

.tire-visual .measure-rim {
  inset: auto;
  top: 55%;
  right: 21%;
  bottom: auto;
  left: auto;
  width: 176px;
  height: auto;
  max-width: none;
  transform: none;
}

.tire-visual .measure-outer {
  inset: auto;
  top: 48%;
  right: 3.5%;
  bottom: auto;
  left: auto;
  width: 150px;
  height: auto;
}

@media (max-width: 760px) {
  .tire-visual {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin-right: 18px;
    margin-left: 18px;
  }

  .tire-visual img {
    height: 100% !important;
    min-height: 0 !important;
  }

  .tire-visual .measurement {
    padding: 5px 7px;
    font-size: clamp(7px, 2.1vw, 9px);
  }

  .tire-visual .measure-tread {
    top: 4%;
    left: 36%;
    width: 72px;
  }

  .tire-visual .measure-profile {
    top: 18.5%;
    right: 18%;
    width: 124px;
  }

  .tire-visual .measure-rim {
    top: 58%;
    right: 22%;
    width: 118px;
  }

  .tire-visual .measure-outer {
    top: 66%;
    right: 4%;
    width: 94px;
  }
}

@media (max-width: 440px) {
  .tire-visual .measurement {
    padding: 4px 6px;
    font-size: 7px;
  }

  .tire-visual .measure-profile {
    width: 112px;
  }

  .tire-visual .measure-rim {
    width: 106px;
  }

  .tire-visual .measure-outer {
    width: 86px;
  }
}

/* Complete marking passport inside the generated size visualization. */
.tire-visual .measurement {
  color: #061221;
  border-color: rgba(255, 210, 26, 0.88);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 26px rgba(7, 16, 23, 0.18);
  font-size: clamp(11px, 1.08vw, 14px);
  font-weight: 950;
  letter-spacing: 0;
}

.tire-visual .measure-marking {
  inset: auto;
  top: 3.6%;
  left: 3.8%;
  width: auto;
  min-width: 158px;
  color: var(--yellow);
  border-color: rgba(255, 210, 26, 0.5);
  background: #071017;
  font-size: clamp(15px, 1.45vw, 21px);
}

.tire-visual .measure-tread {
  top: 8.5%;
  left: 37%;
  width: 126px;
}

.tire-visual .measure-profile {
  top: 19%;
  right: 20%;
  width: 174px;
}

.tire-visual .measure-rim {
  top: 55%;
  right: 20.5%;
  width: 178px;
}

.tire-visual .measure-outer {
  top: 48%;
  right: 3.4%;
  width: 154px;
}

.tire-visual .measure-load,
.tire-visual .measure-speed,
.tire-visual .measure-construction {
  inset: auto;
  color: #fff;
  border-color: rgba(255, 210, 26, 0.42);
  background: rgba(7, 16, 23, 0.9);
}

.tire-visual .measure-load {
  left: 3.8%;
  bottom: 4.4%;
  width: 166px;
}

.tire-visual .measure-speed {
  left: 21.8%;
  bottom: 4.4%;
  width: 184px;
}

.tire-visual .measure-construction {
  left: 41.8%;
  bottom: 4.4%;
  width: 146px;
}

@media (max-width: 760px) {
  .tire-visual {
    aspect-ratio: auto;
    min-height: 310px !important;
  }

  .tire-visual img {
    object-position: center top;
  }

  .tire-visual .measurement {
    padding: 5px 6px;
    font-size: 9px;
    line-height: 1.08;
  }

  .tire-visual .measure-marking {
    top: 4%;
    left: 5%;
    min-width: 124px;
    font-size: 13px;
  }

  .tire-visual .measure-tread {
    top: 15%;
    left: 38%;
    width: 82px;
  }

  .tire-visual .measure-profile {
    top: 25%;
    right: 5%;
    width: 118px;
  }

  .tire-visual .measure-rim {
    top: 47%;
    right: 10%;
    width: 118px;
  }

  .tire-visual .measure-outer {
    top: 64%;
    right: 6%;
    width: 102px;
  }

  .tire-visual .measure-load,
  .tire-visual .measure-speed,
  .tire-visual .measure-construction {
    bottom: 5%;
    width: auto;
  }

  .tire-visual .measure-load {
    left: 5%;
    right: 67%;
  }

  .tire-visual .measure-speed {
    left: 35%;
    right: 31%;
  }

  .tire-visual .measure-construction {
    left: 70%;
    right: 5%;
  }
}
