* {
  box-sizing: border-box;
}

:root {
  --bg: #f8f7f2;
  --card: #ffffff;
  --black: #111111;
  --text: #121212;
  --muted: #77736a;
  --line: #e8e2d4;
  --yellow: #ffd21c;
  --yellow-dark: #e8b900;
  --radius: 28px;
  --shadow: 0 16px 45px rgba(17, 17, 17, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 1000;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 6px rgba(255, 210, 28, 0.12);
}

.brand-mark small {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 5px;
  color: #9a9487;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.install-btn,
.icon-btn,
.secondary-btn,
.load-more {
  background: #fff;
  color: var(--black);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.install-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.08;
}

.install-icon {
  font-size: 30px;
  line-height: 0.8;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.hero-section {
  overflow: hidden;
  margin-top: 38px;
}

.banner-track {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.banner-track::-webkit-scrollbar,
.brand-deals::-webkit-scrollbar,
.brand-filters::-webkit-scrollbar {
  display: none;
}

.banner-card {
  position: relative;
  min-width: min(86vw, 690px);
  min-height: 255px;
  scroll-snap-align: center;
  overflow: hidden;
  border-radius: 31px;
  background: linear-gradient(135deg, #111 0%, #191919 55%, #44360c 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.banner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--banner-image);
  background-size: cover;
  background-position: center;
  opacity: var(--banner-opacity, 0.95);
  transform: scale(1.01);
}

.banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 42%, rgba(0,0,0,0.08) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.2), transparent 45%);
}

.banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 255px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.banner-logo {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 1000;
}

.banner-logo i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 4px;
  border-radius: 50%;
  background: var(--yellow);
}

.banner-card h2 {
  max-width: 76%;
  margin: 0;
  font-size: clamp(35px, 9vw, 72px);
  font-weight: 1000;
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.banner-card p {
  max-width: 63%;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 4vw, 28px);
  font-weight: 650;
  line-height: 1.15;
}

.banner-discount {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  border-radius: 999px;
  border: 3px solid var(--yellow);
  padding: 12px 18px;
  color: var(--yellow);
  font-size: clamp(28px, 8vw, 56px);
  font-weight: 1000;
  line-height: 0.9;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  height: 18px;
  margin: 8px 0 10px;
}

.dots i {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 99px;
  background: #d6d1c6;
}

.dots i.active {
  width: 38px;
  background: var(--black);
}

.brand-deals {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: none;
}

.deal-card {
  min-width: 150px;
  min-height: 86px;
  border-radius: 23px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: var(--black);
  color: #fff;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.15s ease, border 0.15s ease;
}

.deal-card:active,
.filter-chip:active,
.station-card button:active,
.secondary-btn:active,
.load-more:active {
  transform: scale(0.98);
}

.deal-card b {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  opacity: 0.96;
}

.deal-card strong {
  display: block;
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: -0.05em;
}

.deal-card small {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,0.58);
  font-size: 11px;
}

.deal-card.active {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.deal-gazprom { background: linear-gradient(135deg, #083267, #061522); }
.deal-rosneft { background: linear-gradient(135deg, #111, #2e2708); }
.deal-bashneft { background: linear-gradient(135deg, #1b1b1b, #594509); }
.deal-tatneft { background: linear-gradient(135deg, #042a13, #07160e); }
.deal-tnk { background: linear-gradient(135deg, #101010, #282828); }

.offers {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.offer-card {
  border-radius: 28px;
  background: radial-gradient(circle at 100% 0%, rgba(255,210,28,0.55), transparent 32%), #111;
  color: #fff;
  padding: 21px;
  box-shadow: var(--shadow);
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 99px;
  background: rgba(255,210,28,0.15);
  color: var(--yellow);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.offer-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}

.offer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
}

.offer-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.offer-card p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  font-weight: 600;
}

.offer-card button,
.station-map {
  border-radius: 20px;
  background: var(--yellow);
  color: #111;
  padding: 15px 19px;
  font-weight: 1000;
  white-space: nowrap;
}

.calculator {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 28px;
  background: #111;
  color: #fff;
  box-shadow: var(--shadow);
}

.calculator-head {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  background: transparent;
  color: #fff;
  padding: 24px 20px;
  text-align: left;
}

.calculator-head span {
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 1000;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.calculator-head strong {
  color: var(--yellow);
  font-size: clamp(16px, 4vw, 25px);
  line-height: 1.15;
}

.calculator-head i {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.11);
  font-size: 28px;
  font-style: normal;
}

.calculator-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.calculator-body label {
  padding-top: 18px;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.calculator-body input {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 17px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 13px 12px;
  outline: 0;
}

.calc-result {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-radius: 22px;
  background: #fff;
  color: #111;
  padding: 16px;
}

.calc-result span {
  color: #8a8376;
  font-size: 12px;
  font-weight: 900;
}

.calc-result b {
  display: block;
  margin-top: 3px;
  color: #111;
  font-size: 21px;
}

.calc-result span:nth-child(2) b {
  color: #138a3d;
}

.filters {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 15px;
  margin-bottom: 18px;
}

.brand-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 1px 1px 14px;
  scrollbar-width: none;
}

.filter-chip {
  flex: 0 0 auto;
  min-width: 135px;
  border-radius: 21px;
  border: 2px solid var(--line);
  background: #fff;
  color: #111;
  padding: 15px 18px;
  font-size: 17px;
  font-weight: 1000;
}

.filter-chip.active {
  border-color: var(--yellow);
  background: #111;
  color: #fff;
}

.search-field,
.select-field {
  position: relative;
  display: block;
  margin-top: 12px;
}

.search-field svg,
.select-field svg {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 22px;
  height: 22px;
  fill: #8a8376;
  transform: translateY(-50%);
}

.search-field input,
.select-field select {
  width: 100%;
  height: 61px;
  border: 2px solid var(--line);
  border-radius: 21px;
  background: #fff;
  color: #111;
  padding: 0 20px 0 52px;
  font-size: 20px;
  font-weight: 700;
  outline: 0;
}

.search-field input:focus,
.select-field select:focus {
  border-color: var(--yellow);
}

.select-field select {
  appearance: none;
}

.list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
}

.list-head h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -0.05em;
}

.list-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-badge {
  display: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255,255,255,0.78);
  color: var(--muted);
  padding: 9px 12px;
  font-size: 12px;
}

.secondary-btn,
.load-more {
  border-radius: 17px;
  padding: 12px 16px;
  font-weight: 1000;
}

.stations-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.station-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.04);
  padding: 19px;
}

.station-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.station-number {
  display: inline-flex;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 10px 16px;
  font-size: 20px;
  font-weight: 1000;
}

.station-number span {
  color: var(--yellow);
  margin-right: 7px;
}

.station-brand {
  border-radius: 999px;
  background: #f3f0e6;
  color: #4f4a41;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 1000;
  text-align: center;
}

.station-card h2 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.station-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
}

.station-tags span {
  border-radius: 999px;
  background: #f5f3ec;
  color: #6e675c;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.station-tags span.discount-tag {
  background: #fff3b0;
  color: #6c5200;
}

.station-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.station-copy {
  border-radius: 20px;
  background: #f1efe6;
  color: #111;
  padding: 15px 12px;
  font-weight: 1000;
}

.station-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f2eee4;
  color: #aaa294;
  font-size: 12px;
  font-weight: 800;
}

.load-more {
  display: block;
  width: 100%;
  margin: 18px 0 0;
  padding: 17px;
  background: #111;
  color: #fff;
  border-color: #111;
}

.empty-state,
.error-state {
  border: 1px dashed var(--line);
  border-radius: 28px;
  background: #fff;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.empty-state b,
.error-state b {
  display: block;
  margin-bottom: 6px;
  color: #111;
  font-size: 22px;
  font-weight: 1000;
}

.trust-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
  border-radius: 28px;
  background: #111;
  color: #fff;
  padding: 18px;
}

.trust-block div {
  display: grid;
  gap: 3px;
}

.trust-block b {
  font-size: 18px;
}

.trust-block span {
  color: rgba(255,255,255,0.63);
  font-size: 14px;
  font-weight: 600;
}

.toast {
  position: fixed;
  z-index: 99;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-radius: 99px;
  background: #111;
  color: #fff;
  padding: 13px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  font-size: 14px;
  font-weight: 1000;
}

@media (min-width: 720px) {
  .app-shell {
    padding-inline: 24px;
  }

  .topbar {
    margin-bottom: 24px;
  }

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

  .trust-block {
    grid-template-columns: repeat(3, 1fr);
  }

  .data-badge {
    display: inline-flex;
  }
}

@media (max-width: 520px) {
  .install-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .icon-btn {
    width: 42px;
    height: 42px;
  }

  .banner-card {
    min-height: 210px;
  }

  .banner-content {
    min-height: 210px;
  }

  .banner-card h2 {
    max-width: 88%;
  }

  .banner-card p {
    max-width: 82%;
  }

  .calculator-body {
    grid-template-columns: 1fr;
  }

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

  .offer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .offer-card button {
    width: 100%;
  }

  .list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-actions {
    width: 100%;
    justify-content: space-between;
  }
}


/* ===== v2 compact mobile fixes ===== */
.app-shell {
  width: min(100%, 760px);
  padding: max(12px, env(safe-area-inset-top)) 10px 28px;
}

.topbar {
  gap: 8px;
  margin-bottom: 10px;
}

.brand-mark {
  font-size: clamp(18px, 5.8vw, 28px);
}

.brand-mark i {
  width: 8px;
  height: 8px;
}

.brand-mark small {
  font-size: 7px;
  letter-spacing: 0.32em;
}

.install-btn {
  padding: 7px 10px;
  border-radius: 16px;
  font-size: 11px;
  line-height: 1.05;
}

.install-icon {
  font-size: 22px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 15px;
  font-size: 17px;
}

.hero-section {
  margin-top: 18px;
}

.banner-track {
  gap: 10px;
}

.banner-card {
  min-width: min(92vw, 620px);
  min-height: 178px;
  border-radius: 24px;
}

.banner-content {
  min-height: 178px;
  padding: 15px;
}

.banner-logo {
  margin-bottom: 8px;
  font-size: 12px;
}

.banner-card h2 {
  max-width: 62%;
  font-size: clamp(22px, 7vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.banner-card p {
  max-width: 54%;
  margin-top: 8px;
  font-size: clamp(11px, 3.2vw, 17px);
  line-height: 1.14;
}

.banner-discount {
  margin-top: 12px;
  padding: 8px 13px;
  border-width: 3px;
  font-size: clamp(18px, 6vw, 30px);
}

.dots {
  gap: 8px;
  height: 14px;
  margin: 7px 0 8px;
}

.dots i {
  width: 10px;
  height: 10px;
}

.dots i.active {
  width: 28px;
}

.brand-deals {
  gap: 10px;
  padding: 2px 0 12px;
}

.deal-card {
  min-width: 116px;
  min-height: 72px;
  border-radius: 19px;
  padding: 10px 11px;
}

.deal-card b {
  font-size: 12px;
}

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

.deal-card small {
  font-size: 10px;
}

.offers {
  gap: 10px;
  margin-bottom: 14px;
}

.offer-card {
  border-radius: 24px;
  padding: 15px;
}

.offer-badge {
  padding: 6px 10px;
  font-size: 11px;
}

.offer-row {
  gap: 12px;
  margin-top: 11px;
}

.offer-card h3 {
  font-size: 18px;
  line-height: 1.08;
}

.offer-card p {
  font-size: 13px;
  line-height: 1.25;
}

.offer-card button,
.station-map {
  border-radius: 18px;
  padding: 12px 16px;
}

.calculator {
  margin-bottom: 14px;
  border-radius: 24px;
}

.calculator-head {
  gap: 10px;
  padding: 15px;
}

.calculator-head span {
  font-size: clamp(19px, 6vw, 32px);
  line-height: 1;
}

.calculator-head strong {
  font-size: clamp(12px, 3.5vw, 17px);
}

.calculator-head i {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 21px;
}

.calculator-body {
  padding: 0 13px 13px;
}

.filters {
  border-radius: 24px;
  padding: 12px;
  margin-bottom: 14px;
}

.brand-filters {
  gap: 8px;
  padding-bottom: 10px;
}

.filter-chip {
  min-width: 108px;
  border-radius: 17px;
  padding: 11px 13px;
  font-size: 14px;
}

.search-field,
.select-field {
  min-height: 54px;
  border-radius: 20px;
}

.search-field input,
.select-field select {
  font-size: 18px;
}

.list-head {
  margin-bottom: 12px;
}

.list-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.list-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-badge {
  display: none;
}

.stations-list {
  display: grid;
  gap: 13px;
}

.station-card {
  border-radius: 24px;
  padding: 14px;
}

.station-top {
  margin-bottom: 12px;
  gap: 10px;
}

.station-number {
  padding: 9px 13px;
  font-size: 16px;
}

.station-brand {
  padding: 9px 12px;
  font-size: 12px;
}

.station-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.station-tags {
  gap: 7px;
  margin-bottom: 13px;
}

.station-tags span {
  padding: 8px 11px;
  font-size: 12px;
  line-height: 1;
}

.station-actions {
  gap: 11px;
  margin-bottom: 11px;
}

.station-copy,
.station-map {
  min-height: 52px;
  font-size: 16px;
}

.station-footer {
  padding-top: 9px;
  font-size: 11px;
}

.trust-block {
  display: none;
}

@media (min-width: 768px) {
  .app-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .banner-card {
    min-width: min(72vw, 620px);
    min-height: 220px;
  }

  .banner-content {
    min-height: 220px;
    padding: 18px;
  }

  .banner-card h2 {
    font-size: clamp(28px, 4vw, 48px);
  }

  .banner-card p {
    font-size: clamp(13px, 1.8vw, 18px);
  }

  .stations-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .topbar {
    align-items: flex-start;
  }

  .offer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .offer-card button {
    width: 100%;
    text-align: center;
  }

  .calculator-head {
    grid-template-columns: 1fr auto;
  }

  .calculator-head strong {
    grid-column: 1 / 2;
  }

  .calculator-head i {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
  }

  .calculator-body,
  .calc-result {
    grid-template-columns: 1fr;
  }
}
