:root {
  --bg-from: #eff6ff;
  --bg-via: #ffffff;
  --bg-to: #ecfeff;
  --text: #0f172a;
  --muted: #475569;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --line: #dbeafe;
  --card-line: #e5e7eb;
  --chip-bg: #ffffff;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-from) 0%, var(--bg-via) 45%, var(--bg-to) 100%);
  min-height: 100vh;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand-title {
  font-size: 24px;
  margin: 0;
  line-height: 1.15;
}

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

.hero {
  padding: 48px 0 20px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.02;
}

.hero p {
  margin: 0 auto;
  max-width: 860px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 20px 0 12px;
}

.chip {
  border: 1px solid var(--card-line);
  background: var(--chip-bg);
  color: #334155;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.chip:hover { border-color: #93c5fd; color: #1d4ed8; }
.chip.active {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 8px 20px rgba(59,130,246,.35);
}

.section-head {
  padding: 12px 0 6px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 14px 0 42px;
}

.card {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(2, 6, 23, .04);
  transition: .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: var(--shadow);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #ffffff;
}

.card-body {
  padding: 14px;
}

.card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.price-main {
  margin: 10px 0 8px;
  font-weight: 700;
  color: #0b5dd7;
}

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

.tariff {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  background: #f8fbff;
}

.tariff-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

.tariff-desc {
  margin-top: 6px;
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 9px 11px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  flex: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  border: none;
}

.btn-ghost {
  background: #fff;
  color: #1e40af;
}

.footer {
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 26px 0;
  text-align: center;
  color: #64748b;
}

.detail {
  padding: 24px 0 50px;
}

.breadcrumb {
  color: #475569;
  font-size: 14px;
}

.detail-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 20px;
}

.panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
}

.detail-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.05;
}

.detail-text {
  color: #334155;
  line-height: 1.6;
  white-space: pre-wrap;
}

.muted {
  color: #64748b;
}

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(1180px, calc(100% - 20px)); }
  .hero { padding-top: 32px; }
  .grid { grid-template-columns: 1fr; }
  .brand-title { font-size: 20px; }
}
