:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: rgba(12, 22, 39, 0.92);
  --panel-strong: rgba(10, 18, 32, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #f5f7fb;
  --muted: #b7c2d3;
  --accent: #2f80ed;
  --accent-hover: #1f6fda;
  --success-bg: rgba(17, 124, 74, 0.22);
  --success-line: rgba(47, 212, 124, 0.28);
  --success-text: #c9f6db;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(47, 128, 237, 0.15), transparent 28%),
    linear-gradient(180deg, #06101c 0%, #091423 50%, #07111f 100%);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

/* TOP BAR */
.topbar {
  background: rgba(5, 11, 20, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar .container {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.topbar a:hover {
  color: #ffffff;
}

/* HERO */
.hero {
  padding: 72px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.hero-card,
.contact-card,
.footer-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 34px;
}

.contact-card {
  padding: 30px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fc3ff;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.12;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 760px;
  font-size: 18px;
  color: #dce5f3;
}

.muted,
.note {
  color: var(--muted);
}

p {
  margin: 0 0 16px;
}

strong {
  font-weight: 700;
}

/* BUTTONS */
.btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* SECTIONS */
.section {
  padding: 28px 0 72px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

/* CARD */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #1b2940, #0d1727);
  overflow: hidden;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ascunde orice placeholder vechi ramas in html */
.card-media .placeholder,
.gallery-item .placeholder {
  display: none !important;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--success-bg);
  border: 1px solid var(--success-line);
  color: var(--success-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.card h3 {
  margin-bottom: 12px;
  min-height: 54px;
}

.card-body p.muted {
  margin-bottom: 14px;
}

.price {
  margin: 8px 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.spec {
  min-width: 0;
}

.spec .label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec .value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}

.card-actions {
  margin-top: auto;
  padding-top: 22px;
}

/* DETAIL PAGE */
.detail-hero {
  padding: 50px 0 24px;
}

.breadcrumbs {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #1b2940, #0d1727);
  border: 1px solid var(--line);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.panel {
  padding: 28px;
}

.detail-price {
  margin: 6px 0 18px;
  font-size: 38px;
  font-weight: 900;
}

.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.detail-item {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.detail-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(47, 128, 237, 0.1);
  border: 1px solid rgba(47, 128, 237, 0.2);
}

/* FOOTER */
.footer {
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-card {
  padding: 24px;
}

.footer p:last-child {
  margin-bottom: 0;
}

/* FORM ELEMENTS - optional future use */
input,
textarea,
select,
button {
  font: inherit;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }
}

@media (max-width: 680px) {
  .grid,
  .gallery,
  .detail-list,
  .specs {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .hero-card,
  .contact-card,
  .panel,
  .footer-card {
    padding: 20px;
  }

  .card-body {
    padding: 18px;
  }

  .card h3 {
    min-height: auto;
  }

  .price {
    font-size: 26px;
  }

  .detail-price {
    font-size: 32px;
  }

  .topbar .container {
    align-items: flex-start;
  }
}