  :root {
    /* paleta: fundal gri, carduri gri mai deschis */
    --background: 240 5% 90%;
    --foreground: 220 15% 12%;
    --card: 240 6% 95%;
    --border: 220 8% 72%;
    --primary: 220 12% 28%;
    --primary-foreground: 0 0% 100%;
    --accent: 32 100% 49%;
    --muted-foreground: 220 8% 38%;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { -webkit-font-smoothing: antialiased; }

  body {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
  }

  h1, h2, h3 { font-family: 'Inter', system-ui, sans-serif; }
  code { font-size: 0.9em; opacity: 0.85; }

  .bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
  }
  /* fundal gri simplu */
  .bg-decor {
    background:
      hsl(var(--background));
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    position: relative;
    z-index: 1;
  }

  .lang-switcher {
    position: fixed;
    top: 24px;
    right: clamp(1.5rem, 5vw, 4rem);
    z-index: 10;
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 9999px;
    background: hsl(var(--card) / 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border));
  }
  .lang-switcher button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    overflow: hidden;
    line-height: 0;
    opacity: 0.55;
    transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  }
  .lang-switcher button:hover { opacity: 0.85; transform: translateY(-1px); }
  .lang-switcher button.active {
    opacity: 1;
    border-color: hsl(var(--primary));
  }
  .lang-switcher button img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 60px;
    padding: 0 40px;
    border-radius: 9999px;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(220 12% 18%) 100%);
    color: hsl(var(--primary-foreground));
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    box-shadow: 0 0 40px -8px hsl(var(--primary) / 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
  }
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px -6px hsl(var(--primary) / 0.65);
  }

  main { position: relative; z-index: 1; }

  .hero {
    padding: clamp(6rem, 12vw, 9rem) 0 clamp(3rem, 8vw, 6rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .hero h1 {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    font-weight: 700;
    max-width: 18ch;
  }
  .hero h1 span {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero p {
    font-size: 19px;
    color: hsl(var(--muted-foreground));
    max-width: 46ch;
  }

  section.flow {
    padding: clamp(4rem, 10vw, 7rem) 0;
    border-top: 1px solid hsl(var(--border));
  }
  .flow-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 16px;
  }
  .flow-title {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    font-weight: 600;
    max-width: 20ch;
    margin-bottom: clamp(3rem, 6vw, 5rem);
  }

  .steps {
    display: flex;
    flex-direction: column;
  }
  .step {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 32px;
    align-items: start;
    padding: 40px 0;
    border-top: 1px solid hsl(var(--border) / 0.6);
  }
  .step:first-child { border-top: none; }
  .step-num {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: hsl(var(--primary));
    opacity: 0.85;
    line-height: 1;
  }
  .step h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
  }
  .step p {
    color: hsl(var(--muted-foreground));
    font-size: 17px;
    max-width: 60ch;
  }

  .cta-band {
    padding: clamp(4rem, 10vw, 7rem) 0;
    text-align: center;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .cta-band h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    letter-spacing: -0.02em;
    font-weight: 600;
  }

  footer {
    padding: 40px 0 56px;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 14px;
    text-align: center;
  }

  @media (max-width: 640px) {
    .step { grid-template-columns: 1fr; gap: 12px; }
    .lang-switcher { top: 16px; }
  }

  .back-link {
    position: fixed;
    top: 24px;
    left: clamp(1.5rem, 5vw, 4rem);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 20px;
    border-radius: 9999px;
    background: hsl(var(--card) / 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
  }
  .back-link:hover { border-color: hsl(var(--primary)); transform: translateY(-1px); }

  .btn.is-disabled {
    background: hsl(var(--card));
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
    box-shadow: none;
    pointer-events: none;
  }

  section.services {
    padding: 0 0 clamp(4rem, 10vw, 7rem);
  }
  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
  .card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
    padding: 36px;
    border-radius: 24px;
    background: hsl(var(--card) / 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid hsl(var(--border) / 0.6);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 70%;
    height: 80%;
    border-radius: 50%;
    background: hsl(var(--card-glow, var(--primary)) / 0.12);
    filter: blur(60px);
    pointer-events: none;
  }
  .card:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--card-glow, var(--primary)) / 0.6);
    box-shadow: 0 20px 60px -20px hsl(var(--card-glow, var(--primary)) / 0.45);
  }
  .card-tag {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: hsl(var(--card-glow, var(--primary)));
  }
  .card h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.05;
  }
  .card p {
    color: hsl(var(--muted-foreground));
    font-size: 17px;
    max-width: 40ch;
  }
  .card-go {
    margin-top: auto;
    font-weight: 600;
    color: hsl(var(--card-glow, var(--primary)));
  }
  .card-go::after { content: ' \2192'; transition: margin 0.2s ease; }
  .card:hover .card-go::after { margin-left: 6px; }
  .card.accent { --card-glow: var(--accent); }

  @media (max-width: 640px) {
    .back-link { top: 16px; height: 44px; padding: 0 16px; }
    .card { padding: 28px; min-height: 0; }
    .hero { padding-top: 7rem; }
  }

  /* Prima pagina: cele doua carduri mari, vizibile imediat la deschidere */
  .hero.hero-compact {
    padding: clamp(5.5rem, 9vh, 7rem) 0 clamp(1.5rem, 4vh, 2.5rem);
  }
  .hero.hero-compact h1 {
    text-transform: capitalize;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    max-width: 22ch;
  }
  .hero.hero-compact p { font-size: 17px; }

  .cards.cards-big {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 2.5vw, 32px);
  }
  .cards-big .card {
    min-height: clamp(340px, 52vh, 560px);
    padding: clamp(32px, 4vw, 56px);
    justify-content: flex-end;
    border-radius: 32px;
  }
  .cards-big .card h3 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    letter-spacing: -0.03em;
  }
  .cards-big .card p { font-size: 18px; }
  .cards-big .card-go { margin-top: 12px; font-size: 18px; }
  .cards-big .card::before { width: 90%; height: 100%; }

  @media (max-width: 760px) {
    .cards.cards-big { grid-template-columns: 1fr; }
    .cards-big .card { min-height: 280px; }
  }

  .card-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(96px, 9vw, 128px);
    height: clamp(96px, 9vw, 128px);
    margin-bottom: auto;
    padding: 10px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 40px -16px hsl(var(--card-glow, var(--primary)) / 0.6);
    transition: transform 0.2s ease;
  }
  .card-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .card-logo-wide { width: clamp(220px, 22vw, 300px); padding: 10px 20px; }
  .card-logo-wide img { object-fit: cover; }
  .card:hover .card-logo { transform: scale(1.04); }

  /* Card mare de promovare sub cele doua carduri principale (Ceraman 3DS8 PRO) */
  .promo {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    margin-top: clamp(16px, 2.5vw, 32px);
    padding: clamp(32px, 4vw, 56px);
    border-radius: 32px;
    background: hsl(var(--card) / 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid hsl(var(--border));
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .promo:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--primary) / 0.6);
    box-shadow: 0 20px 60px -20px hsl(var(--primary) / 0.45);
  }
  .promo-text { display: flex; flex-direction: column; gap: 16px; }
  .promo-badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 9999px;
    background: hsl(var(--accent) / 0.15);
    color: hsl(var(--accent));
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .promo h3 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    letter-spacing: -0.03em;
    font-weight: 700;
    line-height: 1;
  }
  .promo-text p { color: hsl(var(--muted-foreground)); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; max-width: 30ch; }
  .promo-text p strong {
    font-weight: 700;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .promo-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
  .promo-specs li {
    padding: 8px 14px;
    border-radius: 9999px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background) / 0.5);
    color: hsl(var(--foreground) / 0.85);
    font-size: 14px;
  }
  .promo .card-go { margin-top: 12px; font-size: 18px; color: hsl(var(--primary)); }
  .promo-foto {
    aspect-ratio: 1;
    border-radius: 24px;
    background: linear-gradient(180deg, #f1f4f6 0%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .promo-foto img { width: 88%; height: 88%; object-fit: contain; transition: transform 0.5s ease; }
  .promo:hover .promo-foto img { transform: scale(1.05); }
  @media (max-width: 760px) {
    .promo { grid-template-columns: 1fr; }
    .promo-foto { order: -1; }
  }

  /* Rolbar Ceraman: banda de produse din josul paginii (ca pe ceraman.store) */
  .rolbar {
    position: relative;
    z-index: 1;
    padding: clamp(4rem, 8vw, 5rem) 0 1rem;
    border-top: 1px solid hsl(var(--border));
  }
  .rb-titlu {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    font-weight: 600;
  }
  .rb-titlu em { font-style: normal; color: hsl(var(--primary)); }
  .marquee-wrap {
    overflow: hidden;
    /* spatiu deasupra pentru cardurile marite de efectul Dock, ca sa nu acopere titlul */
    padding: 220px 0 56px;
    margin-top: -100px;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  }
  .marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee var(--durata, 80s) linear infinite;
  }
  .marquee-wrap:hover .marquee-track,
  .marquee-wrap:focus-within .marquee-track { animation-play-state: paused; }
  .marquee-list { display: flex; gap: 20px; }
  /* deplasare cu exact o lista + jumatate de spatiu, ca bucla sa nu se vada */
  @keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

  .rb-card {
    display: flex;
    flex-direction: column;
    width: 270px;
    flex-shrink: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    color: #0f1720;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 10px 28px -10px rgba(0,0,0,0.5);
    position: relative;
    transform-origin: 50% 100%;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
  }
  .rb-foto {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(180deg, #f1f4f6 0%, #fff 100%);
  }
  .rb-foto img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    object-fit: contain;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .rb-foto .rb-foto2 { opacity: 0; }
  .rb-card.has-2:hover .rb-foto img:first-child { opacity: 0; }
  .rb-card.has-2:hover .rb-foto2 { opacity: 1; }
  .rb-card:not(.has-2):hover .rb-foto img { transform: scale(1.05); }
  .rb-text { display: flex; flex-direction: column; flex: 1; padding: 18px 24px 24px; }
  .rb-tag {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: hsl(220 12% 28%);
  }
  .rb-text h3 { margin-top: 6px; font-family: 'Inter', system-ui, sans-serif; font-size: 19px; font-weight: 600; line-height: 1.3; }
  .rb-go { margin-top: 16px; font-size: 14px; font-weight: 500; color: hsl(220 12% 28%); }
  .rb-arrow { display: inline-block; transition: transform 0.3s ease; }
  .rb-card:hover .rb-arrow { transform: translateX(4px); }
  @media (min-width: 640px) { .rb-card { width: 300px; } }

  /* fara animatie pentru cei care au redus miscarea: banda devine derulabila cu mana */
  @media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .marquee-wrap { overflow-x: auto; }
    .marquee-dup { display: none; }
  }

  /* Subpagina Ceraman 3DS8 PRO */
  .pro-hero { padding: clamp(7rem, 12vw, 9rem) 0 clamp(3rem, 7vw, 5rem); }
  .pro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
  .pro-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
  .pro-text h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.98; letter-spacing: -0.03em; font-weight: 700; }
  .pro-lead { font-size: clamp(18px, 1.7vw, 21px); color: hsl(var(--muted-foreground)); max-width: 38ch; line-height: 1.5; }
  .pro-lead strong {
    font-weight: 700;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .pro-text .btn { margin-top: 8px; }
  .pro-foto { box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6); }

  .tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
  .tech {
    display: flex; flex-direction: column; gap: 8px;
    padding: 28px 24px; border-radius: 24px;
    background: hsl(var(--card) / 0.55);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid hsl(var(--border) / 0.6);
  }
  .tech-val { white-space: nowrap; font-family: 'Inter', system-ui, sans-serif; font-size: clamp(1.5rem, 2.8vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
  .tech-val small { font-size: 0.45em; font-weight: 600; margin-left: 4px; color: hsl(var(--primary)); }
  .tech-key { color: hsl(var(--muted-foreground)); font-size: 14px; }
  .tech-list { margin-top: 32px; display: grid; gap: 0; }
  .tech-list div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid hsl(var(--border) / 0.5); }
  .tech-list dt { color: hsl(var(--muted-foreground)); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; }
  .tech-list dd { font-size: 17px; }

  .art-note { color: hsl(var(--muted-foreground)); margin: -2.5rem 0 2rem; font-size: 15px; }
  .articles { display: flex; flex-direction: column; gap: 16px; }
  .art {
    border-radius: 24px;
    background: hsl(var(--card) / 0.55);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid hsl(var(--border) / 0.6);
    overflow: hidden;
    transition: border-color 0.2s ease;
  }
  .art:hover, .art[open] { border-color: hsl(var(--primary) / 0.6); }
  .art summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 20px;
  }
  .art summary::-webkit-details-marker { display: none; }
  .art summary::after {
    content: '+';
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 32px;
    color: hsl(var(--primary));
    padding-right: 12px;
    transition: transform 0.25s ease;
  }
  .art[open] summary::after { transform: rotate(45deg); }
  .art summary img { width: 200px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; background: #fff; }
  .art-meta { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: hsl(var(--primary)); }
  .art summary h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.2; margin: 8px 0; }
  .art summary p { color: hsl(var(--muted-foreground)); font-size: 15px; }
  .art-body { padding: 8px clamp(20px, 5vw, 64px) 48px; max-width: 860px; font-size: 17px; line-height: 1.7; }
  .art-body > * + * { margin-top: 1em; }
  .art-body h4 { font-family: 'Inter', system-ui, sans-serif; font-size: 1.5rem; margin-top: 1.8em; }
  .art-body h5 { font-size: 1.1rem; margin-top: 1.4em; }
  .art-body ul, .art-body ol { padding-left: 1.4em; }
  .art-body li + li { margin-top: 0.4em; }
  .art-body strong { color: hsl(var(--foreground)); } /* negru, ca restul textului (albul ramasese de la tema inchisa) */
  .art-body img { display: block; width: 100%; border-radius: 16px; margin: 1.6em 0 0.6em; background: #fff; }
  .art-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
  .art-body th, .art-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid hsl(var(--border) / 0.5); }
  .art-body th { color: hsl(var(--primary)); font-weight: 600; }

  @media (max-width: 860px) {
    .pro-grid { grid-template-columns: 1fr; }
    .pro-foto { order: -1; max-width: 420px; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-list div { grid-template-columns: 1fr; gap: 4px; }
    .art summary { grid-template-columns: 1fr auto; }
    .art summary img { grid-column: 1 / -1; width: 100%; }
  }

  .version-note {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: hsl(var(--muted-foreground));
    margin-top: -12px;
  }

  /* Pagina de produs (ex. UP 3D): logo in hero + subcarduri care raman inguste chiar daca e unul singur */
  .product-logo { margin-bottom: 8px; }
  .cards.cards-sub { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
  .cards-sub .card .version-note { margin-top: 4px; }
  .card-produs { --card-glow: var(--primary); }
  .card-foto {
    display: flex; align-items: center; justify-content: center;
    height: 180px; padding: 16px; border-radius: 18px; background: #fff;
  }
  .card-foto img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .card-specs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; color: hsl(var(--muted-foreground)); }
  .card-specs li::before { content: '\2022'; margin-right: 8px; color: hsl(var(--card-glow, var(--primary))); }

  /* Magazia de freze UP 3D P55D: schema (3 coloane, privita din fata) + pozitii cu frezele Dentstore */
  .slot {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 52px; height: 52px; border-radius: 50%;
    font-weight: 700; font-family: 'Space Grotesk', sans-serif; font-size: 18px;
    color: #fff; background: hsl(var(--slot) / 0.9);
    box-shadow: inset 0 0 0 4px hsl(0 0% 100% / 0.25), 0 6px 18px -8px hsl(var(--slot));
  }
  .slot.zr  { --slot: 205 85% 52%; }
  .slot.pm  { --slot: 330 70% 55%; }
  .slot.cr  { --slot: 150 55% 40%; }
  .slot.sp  { --slot: 220 8% 55%; }
  .slot.cal { --slot: 38 90% 50%; }
  .slot.empty { background: none; box-shadow: none; }
  .magazie { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
  .magazie-schema {
    position: sticky; top: 96px;
    padding: 28px; border-radius: 28px; background: hsl(var(--card) / 0.55);
    border: 1px solid hsl(var(--border) / 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .magazie-grid { display: grid; grid-template-columns: repeat(3, 64px); gap: 14px; justify-items: center; justify-content: center; }
  .magazie-grid .slot { width: 60px; height: 60px; font-size: 20px; }
  .magazie-note { margin-top: 18px; text-align: center; font-size: 14px; color: hsl(var(--muted-foreground)); }
  .magazie-extra { margin-top: 24px; }
  .magazie-pozitii { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; }
  .poz {
    display: flex; gap: 18px; align-items: flex-start; padding: 18px;
    border-radius: 20px; background: hsl(var(--card) / 0.45); border: 1px solid hsl(var(--border) / 0.5);
  }
  .poz .slot { width: 44px; height: 44px; font-size: 16px; }
  .poz-body { flex: 1; min-width: 0; }
  .poz h3 { font-size: 19px; font-weight: 600; margin: 8px 0 10px; }
  .poz-nota { color: hsl(var(--muted-foreground)); font-size: 15px; margin: 0; }
  .freze { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
  .freza {
    display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px;
    color: inherit; text-decoration: none; border: 1px solid hsl(var(--border) / 0.5);
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  .freza:hover { border-color: hsl(var(--primary) / 0.6); transform: translateY(-2px); }
  .freza img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #fff; flex: none; }
  .freza-text { display: grid; gap: 2px; min-width: 0; }
  .freza-nume { font-size: 14px; font-weight: 600; }
  .freza-dim, .freza-cod { font-size: 13px; color: hsl(var(--muted-foreground)); }
  .freza-go { font-size: 13px; font-weight: 600; color: hsl(var(--primary)); }
  .freza-go::after { content: ' \2197'; }
  .mini-magazie { display: grid; grid-template-columns: repeat(3, 30px); gap: 6px; margin-bottom: auto; }
  .mini-magazie .slot { width: 28px; height: 28px; font-size: 12px; box-shadow: none; }
  @media (max-width: 860px) {
    .magazie { grid-template-columns: 1fr; }
    .magazie-schema { position: static; justify-self: center; }
  }

  /* Subcardurile de produs (UP 3D): verticale, cate 3 pe rand */
  .cards.cards-sub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-sub .card { min-height: clamp(440px, 60vh, 560px); padding: 32px; }
  .cards-sub .card h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
  .cards-sub .card-logo-wide { width: 100%; max-width: 260px; height: 110px; }
  .cards-sub .card-foto { height: 200px; margin-bottom: auto; }
  @media (max-width: 1000px) { .cards.cards-sub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px)  { .cards.cards-sub { grid-template-columns: 1fr; } .cards-sub .card { min-height: 0; } }

  /* Frezele de pe pagina magaziei: carduri verticale (poza sus, text dedesubt) */
  .freze { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
  .freza { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; border-radius: 18px; background: hsl(var(--card) / 0.35); }
  .freza img { width: 100%; height: 180px; border-radius: 12px; padding: 10px; box-sizing: border-box; }
  .freza-text { gap: 4px; }
  .freza-nume { font-size: 15px; line-height: 1.3; }
  .freza-go { margin-top: 6px; }

  /* Pagina magaziei: toate frezele intr-un singur grid de carduri verticale egale, cu pozitia sus */
  .magazie-pozitii { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
  .magazie-pozitii > li { display: flex; }
  .magazie-pozitii .freza { width: 100%; height: 100%; padding: 16px; border-radius: 20px; background: hsl(var(--card) / 0.45); }
  .freza-antet { display: flex; align-items: center; gap: 12px; }
  .freza-antet .slot { width: 40px; height: 40px; font-size: 15px; }
  .freza-antet h3 { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.25; }
  .freza-goala { justify-content: flex-start; }
  .freza-goala .poz-nota { margin-top: 4px; }
  .magazie-pozitii .freza-go { margin-top: auto; padding-top: 6px; }
  .magazie-pozitii .freza-text { flex: 1; display: flex; flex-direction: column; }

  /* Cardurile de freza din pagina magaziei = acelasi stil ca subcardul frezei complementare */
  .magazie-pozitii { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
  .magazie-pozitii .freza-card { width: 100%; height: auto; min-height: 0; padding: 28px; border-radius: 24px; gap: 14px; }
  .freza-card .card-foto { height: 200px; margin-bottom: 4px; }
  .freza-card h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); }
  .freza-card p { font-size: 16px; }
  .freza-card .freza-antet { gap: 10px; }
  .freza-card .freza-antet .slot { width: 34px; height: 34px; font-size: 14px; }
  .freza-card .card-go { margin-top: auto; }

  /* carduri gri deschis (#f1f1f3) pe fundal alb, text inchis */
  .card, .promo, .tech, .art, .lang-switcher, .back-link {
    --border: 240 5% 88%;
    color: hsl(var(--foreground));
  }
  .card, .promo, .tech, .art { background: hsl(var(--card)); }
  .lang-switcher, .back-link { background: hsl(var(--card) / 0.9); }

  /* fara reflexii: fara pata de lumina in carduri, fara text in degrade, fara stralucire colorata */
  .card::before { display: none; }
  .card:hover, .promo:hover { box-shadow: 0 8px 24px -12px rgba(0,0,0,0.15); border-color: hsl(var(--border)); }
  .hero h1 span, h1 span, h2 span, .promo-text p strong, .pro-lead strong {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: hsl(var(--foreground));
  }
  .btn { background: hsl(var(--primary)); box-shadow: none; }
  .btn:hover { box-shadow: none; }
  .card-logo { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

  /* trei carduri egale pe primul rand (INNO, UP 3D, Adin), fara sa se strice continutul:
     pagina se lateste putin, titlurile raman pe un rand, logo-ul lat nu iese din card */
  @media (min-width: 1100px) {
    .services .container { max-width: 1440px; }
    .cards.cards-big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cards-big .card { padding: clamp(32px, 3vw, 44px); }
    .cards-big .card h3 { font-size: clamp(2.25rem, 3.2vw, 3rem); white-space: nowrap; }
  }
  .card-logo-wide { max-width: 100%; }
  /* card "in curand": nu e link, nu se ridica la hover */
  .card-soon { cursor: default; }
  .card-soon:hover { transform: none; box-shadow: none; }
  .card-logo-text {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #1d2a5c;
  }
  .soon-badge {
    align-self: flex-start;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    background: hsl(var(--foreground) / 0.08);
    color: hsl(var(--muted-foreground));
  }
  .card-logo-adin { padding: 18px 28px; }
  .card-logo-adin img { object-fit: contain; }

  /* carduri mari: textul ramane jos, iar descrierile primesc aceeasi inaltime (cea mai lunga, vezi fitHero),
     ca eticheta, titlul, descrierea si "Deschide" sa fie la aceeasi linie in toate cardurile */
  .cards-big .card p { line-height: 1.5; }
  .cards-big .card-go, .cards-big .soon-badge { margin-top: 12px; }
  .cards-big .soon-badge { padding: 3px 14px; }
  .card-logo-cwm { padding: 12px 22px; }
  .card-logo-cwm img { object-fit: contain; }

  /* titlul si subtitlul de sus: pe ecrane late, fiecare pe un rand, cat de mare incape (vezi fitHero in index.html) */
  @media (min-width: 900px) {
    .hero.hero-compact h1, .hero.hero-compact p { white-space: nowrap; max-width: none; }
  }

  /* cuptorul F10 e o poza inalta: intra intreg in miniatura, fara sa schimbe marimea casetei */
  .art summary img[src$="cuptor-f10.jpg"] { object-fit: contain; padding: 10px; }

  /* subsol: Protectia consumatorilor (ANPC, SAL) si politica de cookie (vezi assets/legal.js) */
  .legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
  }
  footer > .legal:first-child { margin-top: 0; }
  .legal-prot {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
  }
  .legal-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .legal-icon { display: inline-flex; line-height: 0; transition: opacity 0.2s ease; }
  .legal-icon img { height: 48px; width: auto; }
  .legal-icon:hover { opacity: 0.7; }
  .legal-link { color: hsl(var(--muted-foreground)); text-decoration: none; }
  .legal-link:hover { color: hsl(var(--foreground)); text-decoration: underline; }

  /* pagina de politica de cookie */
  .legal-page { padding: clamp(7rem, 12vw, 9rem) 0 clamp(3rem, 8vw, 5rem); }
  .legal-page h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.05; }
  .legal-page .legal-date { margin-top: 12px; color: hsl(var(--muted-foreground)); font-size: 14px; }
  .legal-body { max-width: 760px; margin-top: 40px; font-size: 17px; line-height: 1.7; }
  .legal-body > * + * { margin-top: 1em; }
  .legal-body h2 { font-size: 1.4rem; letter-spacing: -0.01em; margin-top: 2em; }
  .legal-body ul { padding-left: 1.4em; }
  .legal-body code { font-size: 14px; }

  /* fereastra de cookie (vezi assets/legal.js) */
  .cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 50;
    width: min(680px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 16px 24px;
    padding: 18px 22px;
    border: 1px solid hsl(var(--border));
    border-radius: 18px;
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    box-shadow: 0 16px 40px -16px rgba(0,0,0,0.25);
    font-size: 15px;
    line-height: 1.5;
  }
  .cookie-banner p { flex: 1; margin: 0; }
  .cookie-actions { display: flex; align-items: center; gap: 18px; flex: none; }
  .cookie-ok {
    border: 0;
    border-radius: 9999px;
    padding: 10px 22px;
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .cookie-ok:hover { opacity: 0.9; }
  @media (max-width: 640px) {
    .cookie-banner { flex-direction: column; align-items: stretch; bottom: 12px; }
    .cookie-actions { justify-content: space-between; }
  }

  /* contact in subsol (pagina principala) */
  .contact { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 28px; }
  .contact-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; }
  .contact-mail { font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; color: hsl(var(--foreground)); text-decoration: none; }
  .contact-mail:hover { color: hsl(var(--accent)); }
