.price-page {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  color: var(--text-color);
  overflow: visible;
}

.price-head {
  flex: 0 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(620px, 1.5fr);
  align-items: center;
  gap: clamp(12px, 2vw, 36px);
  overflow: hidden;
  padding: clamp(6px, 1vh, 11px) clamp(16px, 3vw, 52px);
  background: linear-gradient(120deg, var(--tenant-secondary), #050b16);
  color: #fff;
}

.price-head::after {
  content: attr(data-watermark);
  position: absolute;
  right: -1vw;
  bottom: -2.8vh;
  font: 800 clamp(48px, 8vw, 120px)/1 sans-serif;
  opacity: var(--watermark-opacity);
  white-space: nowrap;
  pointer-events: none;
}

.brand { display: grid; grid-template-columns: clamp(40px, 4.5vw, 64px) minmax(0, 1fr) clamp(40px, 4.5vw, 64px); align-items: center; gap: 10px; min-width: 0; }
.brand img,
.brand .fallback { grid-column: 1; grid-row: 1; width: clamp(42px, 4.5vw, 64px); height: clamp(42px, 4.5vw, 64px); object-fit: contain; border-radius: 9px; background: #fff; padding: 4px; }
.brand .fallback { display: grid; place-items: center; background: var(--tenant-accent); color: #111; font-size: 24px; font-weight: 900; }
.brand-title { grid-column: 2; min-width: 0; text-align: center; }
.brand::after { content: ""; grid-column: 3; }
.brand h1 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(20px, 2.2vw, 34px); line-height: 1.02; }
.brand small { display: block; margin-top: 2px; color: #d9e1eb; }

.ticker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(4px, .6vw, 8px); }
.ticker article { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(4px, .55vw, 8px); border: 1px solid #ffffff24; border-radius: 8px; background: #ffffff0e; }
.ticker h2 { width: 100%; margin: 0 0 2px; color: var(--tenant-accent); font-size: clamp(11px, .82vw, 13px); text-align: center; }
.ticker .values { width: 100%; display: flex; align-items: flex-start; justify-content: center; gap: clamp(6px, .8vw, 14px); }
.ticker .values > span { min-width: 0; display: flex; flex-direction: column; align-items: center; color: #d9e1eb; font-size: 10px; text-align: center; }
.ticker b { display: block; color: #fff; font-size: clamp(12px, 1.05vw, 17px); white-space: nowrap; }
.ticker .change { width: 100%; align-self: center; display: flex !important; align-items: center; justify-content: center; gap: 2px; font-size: clamp(10px, .78vw, 12px); white-space: nowrap; text-align: center; }

.change { white-space: nowrap; }
.change.up { color: var(--positive-color); }
.change.down,
.invalid { color: var(--negative-color); }
.change-up { color: var(--positive-color); }
.change-down { color: var(--negative-color); }
.change-neutral,
.change-unknown { color: var(--muted-color); }
.ticker .change-up,
.ticker .change-up [data-field] { color: var(--positive-color); }
.ticker .change-down,
.ticker .change-down [data-field] { color: var(--negative-color); }
.ticker .change-neutral,
.ticker .change-neutral [data-field],
.ticker .change-unknown,
.ticker .change-unknown [data-field] { color: #cbd5e1; }

.price-main { min-height: auto; flex-grow: 1; flex-shrink: 0; overflow: visible; padding: 3px clamp(5px, 1vw, 14px); display: block; }
.price-notice { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.price-table { min-height: auto; overflow-x: auto; overflow-y: visible; border: 1px solid var(--line-color); background: var(--table-bg); }
.price-table table { width: 100%; height: auto; table-layout: fixed; border-collapse: collapse; }
.price-table th,
.price-table td { padding: 0 clamp(8px, 1.15vw, 20px); border-bottom: 1px solid var(--line-color); line-height: 1.08; }
.price-table thead th { height: clamp(32px, 3.8vh, 42px); background: var(--tenant-secondary); color: #fff; font-size: clamp(21px, 1.75vw, 30px); font-weight: 500; text-transform: uppercase; letter-spacing: .035em; }
.price-table tbody tr { height: clamp(36px, 4vh, 44px); }
.price-table tbody tr:nth-child(even) { background: var(--row-alt); }
.price-table tbody td { font-size: clamp(20px, 1.6vw, 28px); font-weight: 400; }
.price-table th:first-child,
.price-table td:first-child { width: 50%; text-align: left; }
.price-table td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price-table th:not(:first-child),
.price-table td:not(:first-child) { text-align: right; }
.price-table th:nth-child(2),
.price-table th:nth-child(3) { width: 18%; }
.price-table .change-col { width: 14%; }
.price-table td.change-col { font-size: clamp(14px, 1.05vw, 19px); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-value { font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }

.price-foot { height: 28px; flex: 0 0 28px; display: flex; align-items: center; gap: 14px; padding: 0 clamp(12px, 3vw, 50px); background: var(--tenant-secondary); color: #d9e1eb; font-size: 11px; white-space: nowrap; }
.price-foot strong { color: var(--tenant-accent); }
.price-foot span:last-child { margin-left: auto; }

@media (max-height: 800px) {
  .price-head { padding-top: 3px; padding-bottom: 3px; }
  .brand img,
  .brand .fallback { width: 38px; height: 38px; }
  .brand small { display: none; }
  .ticker article { padding: 3px 5px; }
  .price-main { padding-block: 2px; }
  .price-table thead th { height: 31px; }
  .price-table tbody tr { height: 36px; }
  .price-foot { height: 24px; flex-basis: 24px; }
}

@media (max-width: 760px) {
  .price-head { grid-template-columns: 1fr; gap: 3px; padding: 4px 6px; }
  .brand { gap: 7px; }
  .brand { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .brand img,
  .brand .fallback { width: 34px; height: 34px; }
  .brand h1 { font-size: 18px; }
  .brand small { display: none; }
  .ticker { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .ticker article { padding: 2px 3px; border-radius: 4px; }
  .ticker h2 { margin-bottom: 1px; font-size: 10px; }
  .ticker span { font-size: 8px; }
  .ticker b { font-size: clamp(11px, 3vw, 13px); }
  .price-main { padding: 2px; }
  .price-table th,
  .price-table td { padding-inline: clamp(3px, 1vw, 5px); }
  .price-table thead th { height: 28px; font-size: clamp(16px, 4.2vw, 18px); letter-spacing: .015em; }
  .price-table tbody tr { height: 38px; }
  .price-table tbody td { font-size: clamp(16px, 4.3vw, 18px); line-height: 1.04; }
  .price-table td.price-value { font-size: clamp(17px, 4.6vw, 19px); font-weight: 400; }
  .price-table th:first-child,
  .price-table td:first-child { width: 46%; }
  .price-table th:nth-child(2),
  .price-table th:nth-child(3) { width: 27%; }
  .price-table .change-col { display: none; }
  .mobile-hidden { display: none; }
  .price-foot { height: 24px; flex-basis: 24px; gap: 6px; padding-inline: 6px; font-size: 9px; }
  .price-foot .contact-line { display: none; }
  .price-foot span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .price-head::after { opacity: calc(var(--watermark-opacity) * .55); }
}

@media (max-width: 380px) {
  .ticker article { padding-inline: 2px; }
  .ticker b { font-size: 11px; }
  .price-table th,
  .price-table td { padding-inline: 3px; }
  .price-table thead th { font-size: 16px; }
  .price-table tbody td { font-size: 16px; }
  .price-table td.price-value { font-size: 17px; }
  .price-table th:first-child,
  .price-table td:first-child { width: 44%; }
  .price-table th:nth-child(2),
  .price-table th:nth-child(3) { width: 28%; }
}

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