:root {
  --orange: #ff6b00;
  --orange-dark: #e85d00;
  --orange-soft: #fff4eb;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-muted: #f1f5f9;
  --green: #059669;
  --green-soft: #ecfdf5;
  --yellow: #ca8a04;
  --red: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --ad-rail-width: 168px;
  --content-max: 1120px;
  --page-max: calc(var(--content-max) + (var(--ad-rail-width) * 2) + 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 220px, #f8fafc 100%);
  line-height: 1.55;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
}

.page-shell {
  width: min(var(--page-max), calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--ad-rail-width) minmax(0, 1fr) var(--ad-rail-width);
  gap: 24px;
  align-items: start;
}

.page-content {
  min-width: 0;
}

.ad-rail {
  position: sticky;
  top: 92px;
  min-height: 600px;
}

.ad-slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-label {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-placeholder {
  background: var(--surface);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  min-height: 600px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.ad-placeholder-inner {
  text-align: center;
  padding: 16px;
  color: var(--muted);
}

.ad-placeholder-inner strong {
  display: block;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.ad-placeholder-inner span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ad-placeholder-inner small {
  display: block;
  font-size: 11px;
  line-height: 1.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.header-shell {
  padding: 14px 0;
  width: min(var(--page-max), calc(100% - 24px));
  margin: 0 auto;
}

.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: #fff;
}

.logo-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  min-width: 0;
}

.logo-copy strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}

.logo-accent {
  color: #38bdf8;
}

.logo-copy small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
}

.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  outline: none;
  min-width: 0;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.header-search button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
}

.header-nav {
  display: flex;
  gap: 10px;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.header-nav a:hover,
.header-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-pill {
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
}

.site-main {
  min-height: calc(100vh - 180px);
  padding-bottom: 96px;
}

.page-banner {
  padding: 28px 0 18px;
}

.banner-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.banner-inner h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.banner-copy {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 620px;
}

.banner-stats {
  display: flex;
  gap: 12px;
}

.stat-card {
  min-width: 110px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-size: 28px;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 40px;
}

.filter-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.filter-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 0;
}

.filter-panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.reset-link {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 600;
}

.filter-form {
  padding: 12px 18px 18px;
}

.filter-group {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.filter-group summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  margin-bottom: 10px;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-options {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.filter-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.filter-radio:hover {
  background: var(--surface-muted);
}

.filter-radio input {
  accent-color: var(--orange);
}

.filter-radio em {
  margin-left: auto;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.filter-form select,
.filter-form input[type="text"] {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

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

.catalog-toolbar h2 {
  margin: 0;
  font-size: 22px;
}

.sort-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-toolbar label {
  color: var(--muted);
  font-size: 14px;
}

.sort-toolbar select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.active-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border: 1px solid #ffd6b3;
  font-size: 13px;
  font-weight: 600;
}

.phone-list {
  display: grid;
  gap: 18px;
}

.phone-list-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.phone-list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.score-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  min-width: 84px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
}

.score-pill span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.9;
}

.score-pill strong {
  font-size: 18px;
}

.score-pill.excellent { background: #059669; }
.score-pill.very-good { background: #65a30d; }
.score-pill.good { background: #ca8a04; }
.score-pill.average { background: #ea580c; }

.detail-summary .score-pill {
  position: static;
  display: inline-flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.phone-list-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fafafa, #f3f4f6);
  border-radius: var(--radius);
  min-height: 240px;
  padding: 18px;
}

.phone-list-media img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.phone-list-content {
  min-width: 0;
  padding-right: 92px;
}

.phone-list-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.phone-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.phone-title:hover {
  color: var(--orange-dark);
}

.phone-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.phone-submeta span:not(:last-child)::after {
  content: "•";
  margin-left: 10px;
}

.phone-price-block {
  text-align: right;
  white-space: nowrap;
}

.phone-price-block span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.phone-price-block strong {
  font-size: 28px;
  color: var(--orange-dark);
}

.spec-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.spec-chip {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.phone-list-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.rating-stack {
  display: grid;
  gap: 6px;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.rating-line span:first-child {
  color: var(--muted);
  min-width: 42px;
}

.star {
  color: #cbd5e1;
}

.star.filled {
  color: #fbbf24;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff8f3d);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(0.96);
}

.btn-secondary,
.btn-outline {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}

.btn-block {
  width: 100%;
}

.award-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.award-tag {
  background: var(--green-soft);
  color: #047857;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.empty-panel {
  background: var(--surface);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.compare-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
}

.compare-dock .container {
  width: min(var(--page-max), calc(100% - 24px));
}

.compare-dock-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.compare-dock-list {
  display: flex;
  gap: 10px;
  overflow: auto;
}

.compare-dock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 10px;
  min-width: 220px;
}

.compare-dock-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.compare-dock-item strong,
.compare-dock-item span {
  display: block;
}

.compare-dock-item span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.compare-dock-item button {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.compare-dock-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer .container {
  width: min(var(--page-max), calc(100% - 24px));
}

.site-footer {
  position: relative;
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.1), transparent 38%),
    radial-gradient(circle at 82% 100%, rgba(99, 102, 241, 0.08), transparent 32%),
    linear-gradient(180deg, #111827 0%, #0a101c 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: 0 0 24px;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
}

.footer-accent {
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #6366f1 50%, #38bdf8 100%);
  opacity: 0.85;
}

.footer-shell {
  padding-top: 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.75fr));
  gap: 36px 32px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0;
}

.footer-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  width: fit-content;
}

.footer-about {
  margin: 16px 0 0;
  max-width: 380px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer-email:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
}

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.footer-col nav {
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-col a:hover {
  color: #38bdf8;
  transform: translateX(2px);
}

.footer-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 36px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.footer-trust-bar a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.footer-trust-bar a:hover {
  color: #38bdf8;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
}

.footer-note {
  color: rgba(255, 255, 255, 0.38);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 18, 32, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.86);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-banner-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: #fff;
}

.cookie-banner-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.cookie-banner-copy a {
  color: #7dd3fc;
  font-weight: 600;
}

.cookie-banner-actions {
  flex-shrink: 0;
}

body.has-cookie-banner .compare-dock {
  bottom: 92px;
}

.detail-page {
  padding: 24px 0 40px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.detail-gallery {
  background: linear-gradient(180deg, #fafafa, #f3f4f6);
  border-radius: var(--radius);
  padding: 24px;
}

.main-image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto;
}

.thumb-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
}

.thumb-row img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.detail-summary h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 38px);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}

.price-box {
  background: var(--orange-soft);
  border: 1px solid #ffd6b3;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}

.price-label {
  color: var(--muted);
  font-size: 13px;
}

.price-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--orange-dark);
}

.rating-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.rating-card {
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.rating-card .label {
  color: var(--muted);
  font-size: 13px;
}

.rating-card .value.big {
  font-size: 28px;
  font-weight: 800;
}

.stars.large .star {
  font-size: 22px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.panel-section {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.panel-section h2 {
  margin: 0 0 16px;
}

.key-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.key-spec-card {
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.key-spec-card h3 {
  margin: 0 0 10px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

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

.spec-table th {
  width: 34%;
  color: var(--muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.related-card {
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.related-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.compare-page {
  padding: 24px 0 40px;
}

.compare-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.compare-phone-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  position: relative;
}

.compare-phone-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: #fee2e2;
  color: #991b1b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}

.compare-table-wrap,
.compare-section {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

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

.compare-table th {
  background: var(--surface-muted);
}

@media (max-width: 980px) {
  .header-top,
  .catalog-layout,
  .detail-hero,
  .banner-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-top {
    gap: 12px;
  }

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

  .phone-list-content {
    padding-right: 0;
  }

  .score-pill {
    position: static;
    justify-self: start;
    margin-bottom: 8px;
  }
}

@media (max-width: 640px) {
  .phone-list-top,
  .phone-list-bottom,
  .compare-dock-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .phone-price-block {
    text-align: left;
  }
}

/* Landing page */
.landing-hero {
  padding: 48px 0 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.landing-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
}

.landing-stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.landing-stats-inline div {
  display: flex;
  flex-direction: column;
}

.landing-stats-inline strong {
  font-size: 24px;
}

.landing-stats-inline span {
  color: var(--muted);
  font-size: 13px;
}

.landing-visual {
  display: grid;
  gap: 16px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.hero-card-main {
  background: linear-gradient(145deg, #111827, #1f2937);
  color: #fff;
}

.hero-card-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffb27a;
}

.hero-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-card-secondary h3 {
  margin: 0;
  font-size: 18px;
}

.landing-section {
  padding: 56px 0;
}

.landing-section-soft {
  background: var(--surface-muted);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 38px);
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 800;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.steps-grid {
  display: grid;
  gap: 24px;
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.steps-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.steps-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.steps-list span {
  color: var(--muted);
}

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

.featured-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.featured-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.featured-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.featured-card p {
  margin: 0;
  color: var(--orange-dark);
  font-weight: 700;
}

.landing-cta-band {
  padding: 42px 0 56px;
}

.landing-cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #111827, #0f172a);
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  padding: 32px;
}

.landing-cta-band h2 {
  margin: 0 0 8px;
}

.landing-cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.text-link {
  color: var(--orange-dark);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions .btn {
    width: 100%;
  }
}

.flash-stack {
  padding-top: 16px;
}

.flash {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-weight: 600;
}

.flash-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
}

.flash-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.flash-warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.btn-disabled,
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Product detail page */
.product-page {
  padding: 24px 0 48px;
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.product-gallery,
.product-tabs,
.rating-form-panel,
.rating-side-panel,
.panel-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-sm);
}

.product-gallery {
  padding: 24px;
}

.gallery-main {
  display: grid;
  place-items: center;
  min-height: 420px;
  background: linear-gradient(180deg, #fafafa, #f3f4f6);
  border-radius: var(--radius);
}

.gallery-main img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.gallery-main-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.gallery-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.88);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox img {
  max-width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
}

.gallery-thumb {
  border: 2px solid transparent;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  cursor: pointer;
}

.gallery-thumb.active {
  border-color: var(--orange);
}

.gallery-thumb img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.product-summary {
  padding: 8px 4px;
}

.summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.summary-badges .score-pill {
  position: static;
  display: inline-flex;
  flex-direction: column;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.meta-badge.soft {
  background: var(--surface-muted);
  color: var(--ink-soft);
}

.product-summary h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
}

.product-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
}

.price-panel {
  margin: 22px 0;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--orange-soft);
  border: 1px solid #ffd6b3;
}

.price-panel span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.price-panel strong {
  font-size: 34px;
  color: var(--orange-dark);
}

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

.rating-summary-card {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.rating-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

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

.rating-summary-card strong.big {
  font-size: 28px;
}

.rating-summary-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-tabs {
  overflow: hidden;
}

.tab-list {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  overflow-x: auto;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
  padding: 24px;
}

.tab-panel.active {
  display: block;
}

.panel-block + .panel-block,
.spec-block + .spec-block {
  margin-top: 24px;
}

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

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-muted);
}

.spec-item span {
  color: var(--muted);
  font-size: 13px;
}

.rating-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.rating-form-panel,
.rating-side-panel {
  padding: 22px;
}

.rating-form-panel h2,
.rating-side-panel h3 {
  margin-top: 0;
}

.field-label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 700;
}

.rating-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  resize: vertical;
}

.field-error {
  color: var(--red);
  font-size: 13px;
}

.star-picker {
  display: flex;
  gap: 8px;
}

.star-choice {
  position: relative;
  cursor: pointer;
}

.star-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-choice span {
  font-size: 34px;
  color: #cbd5e1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-choice.is-active span,
.star-choice input:checked + span {
  color: #fbbf24;
}

.star-choice input:checked + span {
  transform: scale(1.08);
}

.breakdown-card {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.breakdown-card.highlight {
  background: var(--orange-soft);
  border-color: #ffd6b3;
}

.breakdown-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.breakdown-card strong {
  font-size: 24px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.store-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-muted);
}

.related-section {
  margin-top: 28px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 1280px) {
  .ad-rail {
    display: none;
  }

  .page-shell {
    grid-template-columns: minmax(0, 1fr);
    width: min(var(--content-max), calc(100% - 32px));
  }
}

@media (max-width: 1100px) {
  .landing-hero-grid,
  .feature-grid,
  .featured-grid,
  .product-hero,
  .rating-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .catalog-layout,
  .banner-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .rating-summary-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .landing-cta-band-inner,
  .section-head-row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    padding-bottom: 20px;
  }

  .footer-shell {
    padding-top: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-trust-bar {
    margin-top: 28px;
    padding: 12px 14px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .featured-grid,
  .featured-grid.compact {
    grid-template-columns: 1fr;
  }
}

.legal-page {
  padding: 24px 0 40px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
}

.legal-card .eyebrow {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.legal-updated {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14px;
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
}

.legal-card ul {
  padding-left: 20px;
}

.legal-card a {
  color: var(--orange-dark);
  text-decoration: underline;
}

.contact-card {
  display: grid;
  gap: 16px;
  margin: 20px 0 28px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

/* Brand tabs */
.brand-tabs-section {
  padding: 28px 0 8px;
}

.brand-tabs-section + .landing-section,
.brand-tabs-section + .catalog-layout {
  padding-top: 20px;
}

.brand-tabs-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.brand-tabs-head h2 {
  margin: 6px 0 0;
  font-size: clamp(22px, 3vw, 30px);
}

.brand-tabs-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.brand-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}

.brand-tab:hover {
  border-color: #fdba74;
  color: var(--orange-dark);
  transform: translateY(-1px);
}

.brand-tab.is-active {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.22);
}

.brand-tab em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.brand-tab.is-active em {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.brand-tabs-inline {
  padding: 0 0 16px;
}

.brand-tabs-inline .brand-tabs-head {
  margin-bottom: 12px;
}

.brand-tabs-inline .brand-tabs-head h2 {
  font-size: 18px;
}

.brand-tabs-inline .brand-tabs-head .eyebrow {
  font-size: 11px;
}

/* Filter page refresh */
.catalog-banner {
  padding-bottom: 8px;
}

.filter-panel-v2 {
  top: 92px;
  max-height: calc(100vh - 108px);
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.filter-panel-v2 .filter-panel-head {
  flex-shrink: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.filter-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-close-btn {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.filter-sheet-footer {
  display: none;
  flex-shrink: 0;
  gap: 10px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

.filter-sheet-footer .btn {
  flex: 1;
}

.filter-backdrop {
  display: none;
}

.mobile-catalog-bar {
  display: none;
}

.filter-panel-v2 .filter-form-v2 {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 18px 18px;
}

.filter-panel-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.filter-form-v2 {
  display: grid;
  gap: 14px;
}

.filter-section {
  display: grid;
  gap: 8px;
}

.filter-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.filter-control {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.filter-control:focus {
  outline: none;
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.filter-collapse {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.filter-collapse summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 700;
  background: var(--surface-soft);
}

.filter-collapse summary::-webkit-details-marker {
  display: none;
}

.filter-collapse-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.filter-apply-btn {
  margin-top: 4px;
}

.catalog-toolbar-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-sm);
}

.catalog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 360px);
}

.catalog-search .filter-control {
  min-width: 220px;
}

.catalog-toolbar-v2 .sort-toolbar-v2 {
  grid-column: 1 / -1;
}

.toolbar-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sort-toolbar-v2 .filter-control {
  min-width: 190px;
}

.phone-list-card-v2 {
  grid-template-columns: 200px 1fr;
  padding: 18px;
  border-radius: 18px;
  position: relative;
}

.phone-list-card-v2.is-best-pick {
  border-color: #38bdf8;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.14);
}

.best-pick-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.filter-form-v2 .filter-apply-btn {
  margin-top: 4px;
}

.filter-panel-v2 .filter-form-v2 {
  gap: 12px;
}

.phone-list-card-v2 .phone-list-content {
  padding-right: 0;
}

.phone-list-card-v2 .score-pill {
  position: static;
}

.phone-brand-badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
}

.score-pill-inline {
  margin-top: 10px;
  min-width: auto;
  display: inline-flex;
  flex-direction: column;
  padding: 6px 10px;
}

.score-pill-inline strong {
  font-size: 15px;
}

.phone-list-card-v2 .phone-list-media {
  min-height: 210px;
}

@media (max-width: 980px) {
  .filter-section-grid {
    grid-template-columns: 1fr;
  }

  .phone-list-card-v2 {
    grid-template-columns: 1fr;
  }

  .phone-list-card-v2 .phone-list-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .phone-list-card-v2 .phone-price-block {
    text-align: left;
    align-self: stretch;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
  }

  .phone-list-card-v2 .phone-price-block span {
    width: 100%;
  }

  .phone-list-card-v2 .phone-price-block strong {
    font-size: 24px;
  }

  .phone-list-card-v2 .score-pill-inline {
    margin-top: 0;
  }

  .phone-list-card-v2 .phone-list-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .phone-list-card-v2 .rating-stack {
    order: 1;
    width: 100%;
  }

  .phone-list-card-v2 .rating-line {
    justify-content: flex-start;
  }

  .phone-list-card-v2 .card-actions {
    order: 2;
    width: 100%;
    display: flex;
  }

  .phone-list-card-v2 .card-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    padding-bottom: 88px;
  }

  .filter-panel-v2 {
    position: fixed;
    inset: auto 0 0;
    top: auto;
    z-index: 260;
    width: 100%;
    max-height: min(88vh, 760px);
    margin: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s;
    box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.18);
  }

  .filter-panel-v2.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .filter-panel-v2 .filter-form-v2 {
    max-height: calc(min(88vh, 760px) - 132px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .filter-close-btn,
  .filter-sheet-footer {
    display: flex;
  }

  .filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(15, 23, 42, 0.48);
  }

  .filter-backdrop:not([hidden]) {
    display: block;
  }

  body.filter-open {
    overflow: hidden;
  }

  .mobile-catalog-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
  }

  .mobile-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
    white-space: nowrap;
  }

  .mobile-bar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-bar-sort .filter-control {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
  }

  .mobile-bar-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
  }

  .catalog-toolbar-v2 .sort-toolbar-v2 {
    display: none;
  }

  body:has(.compare-dock) .catalog-layout {
    padding-bottom: 160px;
  }

  body:has(.compare-dock) .mobile-catalog-bar {
    bottom: 78px;
  }
}

@media (max-width: 768px) {
  .catalog-toolbar-v2 {
    grid-template-columns: 1fr;
  }

  .catalog-search {
    width: 100%;
    min-width: 0;
  }

  .catalog-search .filter-control {
    flex: 1;
    min-width: 0;
  }

  .catalog-banner .banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-banner .banner-stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .phone-list-card-v2 .phone-title {
    font-size: 20px;
  }

  .phone-list-card-v2 .phone-list-media {
    min-height: 180px;
  }

  .phone-list-card-v2 .phone-list-media img {
    width: 150px;
    height: 150px;
  }

  .mobile-catalog-bar {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "filters sort"
      "count count";
  }

  .mobile-bar-filters {
    grid-area: filters;
    justify-content: center;
  }

  .mobile-bar-sort {
    grid-area: sort;
    width: 100%;
  }

  .mobile-bar-count {
    grid-area: count;
    text-align: center;
    padding-top: 2px;
  }
}

/* SEO mobile pages */
.seo-catalog-banner .banner-copy {
  max-width: 760px;
}

.seo-keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.seo-keyword {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #0369a1;
  font-size: 12px;
  font-weight: 600;
}

.seo-related-links {
  padding: 0 0 18px;
}

.seo-related-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.seo-related-head h2 {
  margin: 0;
  font-size: 20px;
}

.seo-related-grid,
.seo-link-grid,
.seo-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.seo-related-card,
.seo-hub-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.seo-related-card:hover,
.seo-hub-card:hover,
.seo-link-grid a:hover {
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

.seo-related-card strong,
.seo-hub-card strong {
  color: var(--ink);
  font-size: 15px;
}

.seo-related-card span,
.seo-hub-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.seo-hub-section {
  padding: 8px 0 40px;
}

.guide-category-block {
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
}

.guide-category-block:first-child {
  border-top: none;
  padding-top: 0;
}

.guide-category-block h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.guide-primary-kw {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
}

.seo-brand-block {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.seo-brand-block:first-child {
  border-top: none;
  padding-top: 0;
}

.seo-brand-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.seo-brand-block-head h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.seo-brand-block-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.seo-link-grid a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  color: var(--ink-soft);
}

.seo-hub-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.seo-hub-toolbar h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.seo-hub-card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seo-hub-card-keywords em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
}

@media (max-width: 768px) {
  .seo-brand-block-head,
  .seo-related-head,
  .seo-hub-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}
