/* Socotesc – stiluri. Mobile-first, fără framework. */

@font-face {
	font-family: "Jakarta";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/jakarta-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Jakarta";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/jakarta-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--bg: #fbfaf6;
	--paper: #ffffff;
	--tint: #f2f0e8;
	--ink: #17211f;
	--ink-2: #4a5754;
	--ink-3: #7a8582;
	--line: #e6e3d9;
	--brand: #0d6b5c;
	--brand-2: #0a5549;
	--brand-soft: #e3f1ed;
	--amber: #f2b541;
	--amber-soft: #fdf3dc;
	--minus: #9a3b2b;
	--radius: 20px;
	--radius-s: 12px;
	--shadow: 0 1px 2px rgba(23, 33, 31, .04), 0 8px 28px rgba(23, 33, 31, .06);
	--wrap: 1180px;
	--text: 720px;
	/* Ritm vertical: UN singur spațiu între toate secțiunile (și deasupra/dedesubtul reclamelor). */
	--section-gap: 48px;
	--font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (min-width: 900px) { :root { --section-gap: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--text { width: min(100% - 40px, var(--text)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(251, 250, 246, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo__word { font-weight: 800; font-size: 1.32rem; letter-spacing: -.035em; }
.logo:hover { color: var(--ink); }
.nav { position: relative; }
.nav__toggle { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 12px; }
.nav__toggle::-webkit-details-marker { display: none; }
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav__panel { position: absolute; right: 0; top: 52px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow); padding: 8px; min-width: 220px; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav__list a:hover { background: var(--tint); }

.nav--desktop { display: none; }
@media (min-width: 860px) {
	.nav--mobile { display: none; }
	.nav--desktop { display: block; }
	.nav--desktop .nav__list { display: flex; gap: 4px; }
	.nav--desktop .nav__list a { padding: 8px 14px; font-size: .95rem; color: var(--ink-2); }
	.nav--desktop .nav__list a:hover { color: var(--ink); background: var(--tint); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 14px; }

/* Hero */
.hero { padding: 0; }
.hero__in { display: grid; gap: 36px; align-items: center; }
.hero h1 span { color: var(--brand); }
.hero__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero__chips a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 600; }
.hero__chips a:hover { border-color: var(--brand); color: var(--brand); }
.hero__img { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
	.hero__in { grid-template-columns: 1.05fr 1fr; gap: 64px; }
	.hero__img { aspect-ratio: 5 / 4.4; }
}

/* Ritm vertical: fiecare bloc de pe pagină e despărțit de următorul prin --section-gap.
   Blocurile nu au margini/padding proprii pe verticală; doar secțiunile colorate au padding = gap. */
.site-main { padding-block: var(--section-gap); }
.site-main > *, .tool > *, .tool__body > * { margin-block: 0; }
.site-main > * + *, .tool > * + *, .tool__body > * + * { margin-top: var(--section-gap); }
.site-main > :last-child.section--tint, .tool:last-child > :last-child.section--tint { margin-bottom: calc(-1 * var(--section-gap)); }
.section { padding: 0; }
.section--tint { background: var(--tint); padding-block: var(--section-gap); }
.section__head { max-width: 640px; margin-bottom: 28px; }
.section__head p { color: var(--ink-2); }

/* Categories */
.cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cats { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.cat { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; color: #fff; text-decoration: none; background: var(--ink); }
.cat__img, .cat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat__img img { transition: transform .5s ease; }
a.cat:hover .cat__img img { transform: scale(1.04); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 18, 0) 35%, rgba(10, 20, 18, .72) 100%); }
.cat__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; z-index: 1; display: grid; gap: 4px; }
.cat__title { font-size: 1.3rem; font-weight: 750; letter-spacing: -.02em; }
.cat__meta { font-size: .9rem; opacity: .9; }
.cat--soon .cat__img img { filter: grayscale(.35) brightness(.92); }
.cat--soon .cat__title::after { content: "în curând"; margin-left: 10px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .22); vertical-align: middle; }

/* Cards */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card__img { aspect-ratio: 16 / 9; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 18px 20px 22px; display: grid; gap: 6px; }
.card__cat { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.card__title { font-size: 1.18rem; font-weight: 750; letter-spacing: -.015em; }
.card__text { color: var(--ink-2); font-size: .95rem; }

/* Promise */
.promise { display: grid; gap: 28px; }
@media (min-width: 860px) { .promise { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.promise h3 { display: flex; align-items: center; gap: 10px; }
.promise h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--amber); flex: none; }
.promise p { color: var(--ink-2); }

/* Tool page */
.tool__head { padding: 0; }
.tool__head-in { display: grid; gap: 24px; align-items: center; }
.tool__head h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
.tool__lead { font-size: 1.08rem; color: var(--ink-2); max-width: 36em; }
.tool__meta { font-size: .86rem; color: var(--ink-3); }
.tool__img { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; display: none; }
.tool__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
	.tool__head-in { grid-template-columns: 1fr 420px; gap: 56px; }
	.tool__img { display: block; aspect-ratio: 4 / 3; }
}
.crumbs { display: flex; gap: 8px; font-size: .88rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.tool__calc, .tool__body { padding: 0; }

/* Calculator */
.calc { display: grid; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 900px) {
	.calc { grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 32px; }
	.calc .schedule { grid-column: 1 / -1; }
}
.calc__inputs { display: grid; gap: 16px; align-content: start; }
.calc__group { margin: 6px 0 -6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.grid2, .grid3 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.grid3 { grid-template-columns: 1fr 1fr; }
@media (min-width: 560px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .pct input, .pct select {
	width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-s); appearance: none; -webkit-appearance: none;
	transition: border-color .15s, background .15s;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a5754' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .pct input:focus, .pct select:focus { outline: none; border-color: var(--brand); background: var(--paper); }
.field__unit { position: relative; }
.field__unit input { padding-right: 64px; }
.field__unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: .9rem; pointer-events: none; }
.field--big input { min-height: 62px; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin: 0; border: 0; background: var(--tint); border-radius: 14px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 10px 8px; border-radius: 11px; font-weight: 650; font-size: .93rem; color: var(--ink-2); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 33, 31, .1); }
.seg input:focus-visible + span { outline: 3px solid var(--amber); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.hint { font-size: .86rem; color: var(--ink-3); margin: 0; }
.more { border-top: 1px solid var(--line); padding-top: 12px; }
.more summary { cursor: pointer; font-weight: 650; color: var(--brand); font-size: .95rem; }
.more[open] summary { margin-bottom: 14px; }

.calc__result { background: linear-gradient(160deg, var(--brand-soft), #f6faf8 70%); border-radius: 20px; padding: 22px; align-self: start; }
@media (min-width: 900px) { .calc__result { position: sticky; top: 88px; padding: 28px; } }
.out__label { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0; }
.out__big { font-size: clamp(2.4rem, 8vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.out__big small { font-size: .4em; font-weight: 650; color: var(--ink-2); letter-spacing: 0; }
.out__note { font-size: .9rem; color: var(--ink-2); margin: 0 0 12px; }
.out__list { margin: 14px 0 0; }
.out__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(13, 107, 92, .12); font-size: .95rem; }
.out__row dt { color: var(--ink-2); }
.out__row dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.out__row.is-minus dd { color: var(--minus); }
.out__row.is-total { font-size: 1.05rem; }
.out__row.is-total dt, .out__row.is-total dd { color: var(--ink); font-weight: 800; }
.bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--line); margin: 16px 0 8px; }
.bar__net { background: var(--brand); transition: width .3s; }
.bar__tax { background: var(--amber); transition: width .3s; }

.calc--stack { grid-template-columns: 1fr; gap: 0; padding: 8px 20px; }
@media (min-width: 900px) { .calc--stack { grid-template-columns: 1fr; padding: 12px 32px; } }
.pct { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.pct:first-child { border-top: 0; }
@media (min-width: 760px) { .pct { grid-template-columns: 1fr 220px; align-items: center; gap: 24px; } }
.pct__q { margin: 0; font-size: 1.05rem; line-height: 2.5; }
.pct input { display: inline-block; width: 5.4em; min-height: 44px; text-align: center; font-weight: 650; margin: 0 4px; }
.pct select { display: inline-block; width: auto; min-height: 44px; margin: 0 4px; }
.pct__a { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .pct__a { text-align: right; } }

.schedule summary { cursor: pointer; font-weight: 650; color: var(--brand); padding: 6px 0; }
.table-wrap { overflow-x: auto; margin-top: 12px; max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { position: sticky; top: 0; background: var(--tint); font-weight: 650; color: var(--ink-2); }

/* Prose */
.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); }
.formula { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 10px; padding: 14px 18px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-x: auto; }
.example { background: var(--amber-soft); border-radius: var(--radius); padding: 26px 24px 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }
.sources ul { padding-left: 1.2em; font-size: .93rem; }
.sources li { margin-bottom: .5em; }
.disclaimer { font-size: .9rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; }

.partner { display: grid; gap: 12px; }
.partner__item { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--radius-s); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.partner__item:hover { border-color: var(--brand); color: var(--ink); }
.partner__item span:last-child { color: var(--ink-2); font-size: .94rem; }
.partner__kicker { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }

.picks h2 { font-size: 1.35rem; }
.picks__note { font-size: .85rem; color: var(--ink-3); }
.picks__list { list-style: none; padding: 0; display: grid; gap: 12px; }
.pick { display: flex; gap: 14px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); }
.pick img { width: 84px; height: 84px; object-fit: contain; }
.pick__price { font-weight: 800; }

/* Reclame: spațiu rezervat (min-height) ca să nu sară pagina; fără margini proprii, stau în ritmul secțiunilor. */
.ad-slot { width: min(100% - 40px, 970px); margin-inline: auto; text-align: center; }
.tool__body .ad-slot { width: 100%; }
.ad-slot__label { display: block; height: 16px; margin: 0 0 6px; font-size: .66rem; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); opacity: .75; }
.ad-slot__box { display: block; min-height: var(--ad-h-m, 250px); }
@media (min-width: 900px) { .ad-slot__box { min-height: var(--ad-h-d, 280px); } }
.ad-slot--preview .ad-slot__box, .slot-preview { display: grid; place-items: center; padding: 12px; border: 1.5px dashed #d6d1c1; border-radius: var(--radius-s); color: var(--ink-3); font-size: .78rem; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(0, 0, 0, .015) 10px 20px); }
.slot-preview { min-height: 110px; }

.soon { margin-top: 28px; color: var(--ink-3); }
.page-plain { padding: 0; }
.list { padding-left: 1.2em; }

/* Footer */
.site-footer { background: #13201d; color: #c7d1ce; padding: 56px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #e6ece9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { color: #fff; }
.site-footer .logo__mark rect:first-child { fill: #1c8a77; }
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer__brand p { max-width: 28em; margin-top: 14px; }
.site-footer__h { font-weight: 700; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .84rem; color: #94a3a0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Lotul 2: IMC, energie, zile, convertor */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seg--4 { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
@media (min-width: 560px) { .seg--4 { grid-auto-flow: column; grid-template-columns: none; } }
.scale { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: .8rem; text-align: center; }
@media (min-width: 560px) { .scale { grid-template-columns: repeat(6, 1fr); } }
.scale li { padding: 8px 4px; border-radius: 10px; background: var(--tint); color: var(--ink-2); font-weight: 650; line-height: 1.3; transition: background .2s, color .2s; }
.scale li span { font-weight: 500; font-size: .74rem; }
.scale li.is-on { background: var(--brand); color: #fff; }
.appl { display: grid; gap: 8px; }
.appl__head, .appl__row { display: grid; grid-template-columns: 1fr 72px 62px 48px 32px; gap: 6px; align-items: center; }
.appl__head { font-size: .74rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.appl__row input { width: 100%; min-height: 42px; padding: 8px 8px; font: inherit; font-size: .92rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; min-width: 0; }
.appl__row input:focus { outline: none; border-color: var(--brand); background: var(--paper); }
.appl__row input:not([name="nume"]) { text-align: right; }
.appl__del { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink-2); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.appl__del:hover { background: #f4dcd6; color: var(--minus); }
.appl__add select { width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; font-size: .95rem; color: var(--brand); font-weight: 650; background: var(--paper); border: 1.5px dashed var(--brand); border-radius: var(--radius-s); cursor: pointer; }
@media (max-width: 420px) { .appl__head, .appl__row { grid-template-columns: 1fr 58px 50px 40px 30px; gap: 4px; } }
.out__label--sub { margin-top: 18px; }
.holidays { list-style: none; margin: 14px 0 0; padding: 0; font-size: .88rem; display: grid; gap: 6px; }
.holidays li { padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .7); }
.holidays li span { font-weight: 700; display: block; }
.holidays li.is-weekend { opacity: .65; }
.holidays em { font-style: normal; color: var(--ink-3); }
.out__list--units .out__row dd { word-break: break-all; }
input[type="date"] { min-width: 0; width: 100%; max-width: 100%; -webkit-appearance: none; appearance: none; }

/* Ritm: ultimul element din fiecare bloc nu adaugă margine în plus peste --section-gap. */
.tool__body > * > :last-child, .section .wrap > :last-child, .section__head > :last-child, .hero__in > * > :last-child, .tool__head-in > * > :last-child, .page-plain > :last-child { margin-bottom: 0; }
.example { padding: 26px 24px; }
.prose > :last-child, .page-plain > :last-child > :last-child { margin-bottom: 0; }

/* Curs valutar */
.fx { display: block; }
.fx > * + * { margin-top: 20px; }
.fx__head h2 { margin-bottom: 4px; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.fx__meta { margin: 0; color: var(--ink-3); font-size: .9rem; }
.fx__empty { margin: 0; padding: 16px; border-radius: var(--radius-s); background: var(--amber-soft); }
.fx__top { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .fx__top { grid-template-columns: repeat(4, 1fr); } }
.fx__top a { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-s); background: linear-gradient(160deg, var(--brand-soft), #f6faf8 70%); color: var(--ink); text-decoration: none; }
.fx__top a:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.fx__code { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--brand); }
.fx__val { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fx__val small { font-size: .55em; color: var(--ink-2); font-weight: 650; }
.fx__chg { font-size: .85rem; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx__chg small { font-weight: 500; color: var(--ink-3); }
.fx__chg.is-up { color: #0d6b5c; }
.fx__chg.is-down { color: var(--minus); }
.fx__chg.is-flat { color: var(--ink-3); }
.fx__charts { display: grid; gap: 18px; }
@media (min-width: 900px) { .fx__charts { grid-template-columns: 1fr 1fr; } }
.fx__charts h3 { font-size: .95rem; margin: 0 0 8px; color: var(--ink-2); }
.chart { margin: 0; }
.chart svg { display: block; width: 100%; height: 150px; background: var(--bg); border-radius: var(--radius-s); }
.chart__line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.chart__area { fill: var(--brand-soft); opacity: .8; }
.chart__cap { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .76rem; color: var(--ink-3); }
.table-wrap--open { max-height: none; }
.fx__table, .data-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.fx__table th, .fx__table td, .data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.fx__table thead th, .data-table thead th { position: sticky; top: 0; background: var(--paper); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.fx__table tbody th { font-weight: 500; }
.fx__table tbody th a { color: var(--ink); text-decoration: none; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fx__table tbody th a span { color: var(--ink-2); font-size: .88rem; }
.fx__table tbody th a:hover strong { color: var(--brand); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tr.is-current td, .data-table tr.is-current th { background: var(--brand-soft); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.chips button:hover { border-color: var(--brand); color: var(--brand); }
.field-row--swap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.swap { width: 44px; height: 46px; border-radius: var(--radius-s); border: 1.5px solid var(--line); background: var(--paper); font-size: 1.2rem; cursor: pointer; color: var(--brand); }
.swap:hover { border-color: var(--brand); }
@media (max-width: 480px) { .field-row--swap { grid-template-columns: 1fr; } .swap { justify-self: center; transform: rotate(90deg); } }

/* Pagini generate: carduri de răspuns, statistici, liste de linkuri */
.answer { display: grid; gap: 18px; }
@media (min-width: 900px) { .answer { grid-template-columns: 1fr 1fr; align-items: start; } }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { padding: 12px 14px; border-radius: var(--radius-s); background: var(--paper); border: 1px solid var(--line); }
.stats b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.stats span { font-size: .8rem; color: var(--ink-3); }
.linkgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.linkgrid a { display: block; padding: 10px 12px; border-radius: var(--radius-s); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; }
.linkgrid a:hover { border-color: var(--brand); color: var(--brand); }
.linkgrid a small { display: block; color: var(--ink-3); font-size: .78rem; }
.linkgrid a[aria-current] { background: var(--brand-soft); border-color: var(--brand); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) {
	.fx__table th, .fx__table td, .data-table th, .data-table td { padding: 8px 6px; font-size: .88rem; }
	.fx__table tbody th a { display: block; }
	.fx__table tbody th a span { display: block; font-size: .76rem; }
	.fx__table .fx__chg small { display: none; }
	.chart__cap { font-size: .7rem; }
}
@media (max-width: 600px) { .fx__table .fx__chg { white-space: normal; } .fx__table td.num { white-space: normal; } }
.fx__table tbody th, .data-table tbody th { white-space: normal; }
.answer__side { display: grid; gap: 14px; align-content: start; padding: 4px 2px; }
.answer__side > * { margin: 0; }
.answer__h { font-size: 1.05rem; margin: 0; }
.answer .chart svg { height: 120px; }
.conv2 { display: grid; gap: 14px; }
@media (min-width: 700px) { .conv2 { grid-template-columns: 1fr 1fr; } }
.prog__sec h2 { margin-top: 0; }
.prog__links h3 { font-size: 1rem; margin: 0 0 10px; color: var(--ink-2); }
.prog__links > * + h3 { margin-top: 26px; }
ul.cols { columns: 2; column-gap: 24px; }
.data-table a { font-weight: 650; }
.answer .stats { grid-template-columns: 1fr 1fr; }
.answer__chg { margin: 0 0 8px; font-size: .95rem; }
.answer__chg > span:last-child { color: var(--ink-3); font-size: .85rem; }

/* Distribuire */
.share { display: grid; gap: 10px; }
.share__label { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.share__label span { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.share__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share__list li[hidden] { display: none; }
.share__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 650; text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s; }
.share__btn:hover { border-color: var(--brand); color: var(--brand); }
.share__btn--fb svg { color: #1877f2; }
.share__btn--wa svg { color: #1fa855; }
.share__btn--li svg { color: #0a66c2; }
.share__btn--tg svg { color: #229ed9; }
.share__status { margin: 0; min-height: 1.2em; font-size: .85rem; color: var(--brand); }
@media (max-width: 600px) { .share__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .share__btn { width: 44px; padding: 0; justify-content: center; } .share__btn--copy, .share__btn--more { width: auto; padding: 0 14px; } .share__btn--copy span, .share__btn--more span { position: static; width: auto; height: auto; clip: auto; } }
.tool__calc .share { margin-top: 18px; }
.section .cards + .share { margin-top: 28px; }
