:root {
  --text: #23253a; --stins: #55586e; --linie: #cbcddb; --fond: #f0f1f7; --alb: #fff; --accent: #35358f;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--alb); color: var(--text); font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif; overflow-wrap: break-word; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .45rem; }
img { max-width: 100%; height: auto; }
.cadru { max-width: 68rem; margin-inline: auto; padding-inline: 1.25rem; }
.mic, figcaption { color: var(--stins); font-size: .95rem; }
.sari { position: absolute; left: -999px; }
.sari:focus { left: 1rem; top: 1rem; background: var(--alb); padding: .5rem; z-index: 1; }

.antet { border-bottom: 1px solid var(--linie); }
.antet .cadru { display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: center; justify-content: space-between; padding-block: .8rem; }
.nume { display: flex; gap: .65rem; align-items: center; font-weight: 650; color: var(--text); text-decoration: none; line-height: 1.2; }
.antet nav, .subsol nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.antet nav a, .subsol nav a { padding-block: .3rem; }

main > section { padding-block: 3.25rem; }
main > section > :last-child, main > section > .cadru > :last-child { margin-bottom: 0; }
.fond { background: var(--fond); }
.doua { display: grid; gap: 2rem 4rem; }
.doua > * { min-width: 0; }
.intro { font-size: 1.2rem; max-width: 34em; }
.buton { display: inline-block; background: var(--accent); color: var(--alb); font-weight: 650; text-decoration: none; padding: .8rem 1.5rem; border-radius: 4px; }
.buton:hover { background: var(--text); }

.calcul table { width: 100%; border-collapse: collapse; }
.calcul caption { text-align: left; font-weight: 650; padding-bottom: .6rem; }
.calcul caption span { display: block; font-weight: 400; color: var(--stins); font-size: .95rem; }
.calcul th { text-align: left; font-weight: 400; padding: .75rem 1rem .75rem 0; border-top: 1px solid var(--linie); line-height: 1.35; }
.calcul td { text-align: right; font-size: 1.6rem; font-variant-numeric: tabular-nums; white-space: nowrap; border-top: 1px solid var(--linie); }
.calcul tfoot th, .calcul tfoot td { border-top: 2px solid var(--text); border-bottom: 5px double var(--text); font-weight: 700; }
.calcul tfoot td { font-size: 3.2rem; line-height: 1.3; color: var(--accent); }
.calcul p { margin: .7rem 0 0; color: var(--stins); font-size: .95rem; }

.pilot { background: var(--accent); color: var(--alb); }
.pilot a { color: inherit; }
.pilot :focus-visible { outline-color: var(--alb); }

.rand { display: grid; gap: .25rem 3rem; border-top: 1px solid var(--linie); padding-top: 1.4rem; margin-top: 1.2rem; }
.rand ul { max-width: 42rem; }
/* ca o coloană de calcul: rând subțire, rând subțire, total subliniat dublu */
.drum { list-style: none; padding: 0; display: grid; gap: 1.5rem 2.5rem; }
.drum li { margin: 0; padding: .9rem 0 1rem; border-top: 1px solid var(--linie); }
.drum li:last-child { border-top: 2px solid var(--text); border-bottom: 5px double var(--text); }
.drum .cine { display: block; color: var(--stins); font-size: .95rem; }
.drum li:nth-child(2) .cine { color: var(--accent); font-weight: 650; }
.drum strong { display: block; font-size: 1.3rem; line-height: 1.3; }
.drum p { margin: .3rem 0 0; }
.nu { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.nu th, .nu td { text-align: left; vertical-align: top; padding: .8rem 1rem .8rem 0; border-top: 1px solid var(--linie); }
.nu thead th { border-top: 0; color: var(--stins); font-weight: 400; font-size: .95rem; padding-block: 0 .5rem; }
.nu tbody th { width: 45%; font-weight: 650; }

figure { margin: 0 0 2.5rem; max-width: 60rem; }
figure img, .ghid img { display: block; border: 1px solid var(--linie); }
figcaption { margin-top: .7rem; max-width: 45rem; }
.suma { font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin-bottom: .5rem; }
dt { font-weight: 650; }
dd { margin: 0 0 1rem; }
details { border-top: 1px solid var(--linie); max-width: 48rem; }
details:last-child { border-bottom: 1px solid var(--linie); }
summary { padding: .85rem 0; font-weight: 650; cursor: pointer; }

.text { max-width: 48rem; padding-block: 3rem; }
.text h2 { margin-top: 2.8rem; }
.text h3 { margin-top: 2rem; }
.cuprins { background: var(--fond); padding: 1.1rem 1.4rem; margin-bottom: 2rem; }
.cuprins ul { list-style: none; padding: 0; margin: 0; }
.cuprins li { margin: 0; }
.cuprins a { display: inline-block; padding-block: .2rem; }
.ghid hr { display: none; }
.ghid table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 1rem; line-height: 1.45; }
.ghid th, .ghid td { text-align: left; vertical-align: top; padding: .6rem .9rem .6rem 0; border-bottom: 1px solid var(--linie); }
.ghid blockquote { margin: 1.4rem 0; padding: 1rem 1.2rem; background: var(--fond); }
.ghid blockquote > :last-child { margin: 0; }
.ghid code { font-size: .92em; background: var(--fond); padding: .1em .3em; overflow-wrap: anywhere; }
.nota-captura { color: var(--stins); font-size: .95rem; border: 1px dashed var(--linie); padding: .5rem .8rem; }

.subsol { background: var(--fond); border-top: 1px solid var(--linie); font-size: .95rem; padding-block: 2rem; }
.subsol p { color: var(--stins); margin: .8rem 0 0; max-width: 46rem; }

@media (min-width: 50rem) {
  .doua { grid-template-columns: 1fr 1fr; }
  .prim .doua { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .rand { grid-template-columns: 1fr 2fr; }
  .drum { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
@media (max-width: 35rem) {
  main > section { padding-block: 2.5rem; }
  .nu thead, .ghid thead { display: none; }
  .nu tr, .nu th, .nu td, .ghid tr, .ghid td { display: block; width: 100%; }
  .nu tbody th { width: 100%; padding-bottom: 0; }
  .nu td { border-top: 0; padding-top: .2rem; }
  .ghid tr { border-bottom: 1px solid var(--linie); padding-block: .6rem; }
  .ghid td { border: 0; padding: .15rem 0; }
  .ghid td:first-child { font-weight: 650; }
  .ghid td:not(:first-child)::before { content: attr(data-col) ": "; color: var(--stins); }
}
