/* Solarii Dobrogene 2027 – „planșa tehnică”: hârtie de desen, linii de cotă, roșu Mirex */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
    src: url(/assets/fonts/archivo-latin-ext-wdth-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
    src: url(/assets/fonts/archivo-latin-wdth-normal.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 {
    --film: #eef3ee;        /* folia de solar */
    --ink: #15231b;         /* oțel brunat */
    --steel: #55645b;
    --red: #d12f25;         /* roșul Mirex – butoane */
    --red-ink: #c42a21;     /* roșu pentru text (AA) */
    --field: #2d6a43;       /* verde de câmp – linii constructive */
    --white: #fff;
    --grid: rgb(21 35 27 / .07);
    --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 1.0625rem/1.6 var(--font); color: var(--ink); background-color: var(--film);
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 40px 40px; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: var(--red-ink); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: .5rem; }
.muted { color: var(--steel); }

/* Titluri: condensat greu, ca pe bannerul original */
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-stretch: 68%; font-weight: 850; line-height: .95; letter-spacing: -.01em; }
h1 { font-size: clamp(3.4rem, 13.5vw, 6.6rem); text-transform: uppercase; line-height: .86; letter-spacing: -.015em; }
h2 { display: flex; align-items: center; gap: 1rem; font-size: clamp(2.4rem, 7vw, 4.2rem); margin-bottom: .7em; }
h2::after { content: ""; flex: 1; height: 3px; background: var(--ink); }
h3 { font-size: 1.7rem; font-stretch: 75%; }
h4 { font-size: 1rem; font-stretch: 100%; font-weight: 700; color: var(--steel); letter-spacing: 0; margin: 1.6rem 0 .6rem; }

/* Butoane: ștampilă cu umbră dură */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.5rem; border: 2px solid var(--ink); background: var(--red); color: #fff; font: 750 1.05rem/1 var(--font); font-stretch: 90%; text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { color: #fff; background: var(--red); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-sm { min-height: 42px; padding: .55rem 1rem; font-size: .98rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(238 243 238 / .92); backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-stretch: 68%; font-weight: 850; font-size: 1.7rem; line-height: .9; }
.brand:hover { color: var(--ink); }
.brand img { width: 58px; height: auto; border: 2px solid var(--ink); }
.nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { display: block; width: 22px; height: 2.5px; background: currentColor; transition: transform .2s; }
.nav-toggle i { position: relative; }
.nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; }
.nav-toggle i::before { top: -7px; } .nav-toggle i::after { top: 7px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }
.menu { position: absolute; inset: 100% 0 auto 0; display: none; flex-direction: column; padding: .5rem 1rem 1.2rem; background: var(--film); border-bottom: 2px solid var(--ink); }
.menu.open { display: flex; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; padding: .85rem .25rem; font-weight: 700; font-stretch: 85%; font-size: 1.2rem; border-bottom: 1px solid rgb(21 35 27 / .18); }
.menu a[aria-current="true"] { color: var(--red-ink); }
.menu .btn { margin-top: 1rem; align-self: flex-start; }
@media (min-width: 920px) {
    .nav-toggle { display: none; }
    .menu { position: static; display: flex; flex-direction: row; align-items: center; gap: 1.6rem; padding: 0; border: 0; background: none; }
    .menu a:not(.btn) { padding: .3rem 0; border: 0; font-size: 1.1rem; box-shadow: inset 0 -3px 0 transparent; transition: box-shadow .15s; }
    .menu a:not(.btn):hover { box-shadow: inset 0 -3px 0 var(--ink); }
    .menu a[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--red); }
    .menu .btn { margin: 0 0 0 .4rem; }
}

/* Hero */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.lead { font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.45; max-width: 32ch; }
.cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3rem; } .hero h1 { font-size: min(7.4vw, 6.6rem); } }

/* Schița de solar care se desenează o singură dată */
.draft { position: relative; margin: 0; margin-right: 8px; padding: 1rem; background: var(--white); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.draft svg { width: 100%; height: auto; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.draft .guides path { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 4 5; opacity: .6; }
.draft .bars path { stroke: var(--field); stroke-width: 2.4; }
.draft .arches path { stroke: var(--ink); stroke-width: 4; }
.draft .dims path { stroke: var(--red); stroke-width: 1.4; }
.draft .dims text { fill: var(--red-ink); stroke: none; font: 800 17px/1 var(--font); font-stretch: 75%; }
.draft .arches path, .draft .bars path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.1s cubic-bezier(.65, .05, .25, 1) backwards; }
.draft .arches path:nth-child(1) { animation-delay: .15s; } .draft .arches path:nth-child(2) { animation-delay: .3s; }
.draft .arches path:nth-child(3) { animation-delay: .45s; } .draft .arches path:nth-child(4) { animation-delay: .6s; }
.draft .arches path:nth-child(5) { animation-delay: .75s; } .draft .arches path:nth-child(6) { animation-delay: .9s; }
.draft .bars path { animation-delay: 1.3s; }
.draft .dims { animation: fade .6s ease 2.1s backwards; }
/* Alegerea modelului (apare doar cu JavaScript) */
.models { display: none; gap: .5rem; margin-bottom: .6rem; flex-wrap: wrap; }
.js .models { display: flex; }
.model { display: inline-flex; align-items: baseline; gap: .5rem; min-height: 44px; padding: .5rem .9rem; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: 800 1.1rem/1 var(--font); font-stretch: 78%; cursor: pointer; transition: background .15s, color .15s, transform .12s; }
.model span { font-weight: 600; font-stretch: 100%; font-size: .9rem; color: var(--steel); }
.model:hover { transform: translateY(-2px); }
.model[aria-pressed="true"] { background: var(--ink); color: var(--film); }
.model[aria-pressed="true"] span { color: #cfe0d3; }

/* Sticker rotativ */
.draft .sticker { pointer-events: none; position: absolute; right: -10px; bottom: -44px; width: 112px; height: 112px; rotate: 8deg; filter: drop-shadow(3px 3px 0 var(--ink)); overflow: visible; }
.draft .sticker .spin { transform-origin: 60px 60px; animation: spin 26s linear infinite; }
.draft .sticker text { fill: #fff; font: 800 9.5px/1 var(--font); font-stretch: 75%; letter-spacing: .6px; }
.draft .sticker .mid { font-size: 21px; font-stretch: 70%; letter-spacing: 0; fill: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .draft .sticker { width: 84px; height: 84px; right: -4px; bottom: -34px; } }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Cartuș (title block) */
.titleblock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: clamp(2rem, 5vw, 3.5rem) auto 0; border: 2px solid var(--ink); background: var(--white); }
.titleblock > div { padding: .9rem 1rem 1rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.titleblock > div:nth-child(2n) { border-right: 0; }
.titleblock > div:nth-last-child(-n + 2) { border-bottom: 0; }
.titleblock dt { font-size: .85rem; font-weight: 700; color: var(--steel); }
.titleblock dd { margin: .15rem 0 0; font-weight: 750; font-stretch: 80%; font-size: clamp(1.2rem, 3.4vw, 1.6rem); line-height: 1.15; }
.titleblock a { color: var(--ink); text-decoration: none; }
.titleblock a:hover { color: var(--red-ink); }
@media (min-width: 860px) {
    .titleblock { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .titleblock > div { border-bottom: 0; border-right: 2px solid var(--ink) !important; }
    .titleblock > div:last-child { border-right: 0 !important; }
}

/* Bandă derulantă */
.ticker { margin-top: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; background: var(--red); color: #fff; border-block: 2px solid var(--ink); }
.ticker .track { display: flex; width: max-content; align-items: center; gap: 1.6rem; padding: .7rem 0; animation: marquee 38s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker span { font: 850 1.7rem/1 var(--font); font-stretch: 68%; white-space: nowrap; text-transform: uppercase; letter-spacing: .01em; }
.ticker i { flex: none; width: 1.1rem; height: .75rem; border: 3px solid #fff; border-bottom: 0; border-radius: 99px 99px 0 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Secțiuni */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.tint { background: rgb(255 255 255 / .55); border-block: 2px solid var(--ink); }
.green { background: #1d4a31; color: #eaf3ec; border-bottom: 2px solid var(--ink); }
.green h2, .green h3 { color: #fff; }
.green h2::after { background: #fff; }
.green .big { color: #fff; }
.green .points { border-top-color: rgb(255 255 255 / .8); }
.green .points > div { border-bottom-color: rgb(255 255 255 / .3); }
.green .arch::before { border-color: #ff6a5e; }
.green .arch img { border-color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 5rem; } }
.big { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.45; max-width: 52ch; }
.points { margin: 2rem 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); max-width: 52ch; }
.points > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgb(21 35 27 / .3); }
.points dt { font-weight: 800; font-stretch: 80%; font-size: 1.15rem; }
.points dd { margin: 0; }

/* Fotografia în formă de arcadă */
.arch { position: relative; margin: 0 auto; width: min(380px, 100%); }
.arch::before { content: ""; position: absolute; inset: 0; border: 3px solid var(--red); border-radius: 999px 999px 0 0; transform: translate(14px, 14px); }
.arch img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 3px solid var(--ink); border-radius: 999px 999px 0 0; background: var(--white); }

/* Specificații */
.specs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; margin-top: 1rem; }
@media (min-width: 880px) { .specs { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.sheet { background: var(--white); border: 2px solid var(--ink); padding: 1.4rem; }
.sheet h3 { margin-bottom: .8rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: .6rem .5rem; text-align: left; border-bottom: 1px solid rgb(21 35 27 / .3); }
thead th { font-size: .9rem; font-weight: 700; color: var(--steel); border-bottom: 2px solid var(--ink); }
tr[data-model] { transition: background .2s; }
tr.hl { background: rgb(209 47 37 / .09); box-shadow: inset 5px 0 0 var(--red); }
tbody th { font-weight: 850; font-stretch: 75%; font-size: 1.3rem; }
td { font-weight: 700; font-stretch: 85%; font-size: 1.2rem; }
.bom { margin: 0; padding-left: 0; list-style: none; counter-reset: bom; display: grid; gap: 0; }
.bom li { counter-increment: bom; display: grid; grid-template-columns: 2rem minmax(0, 1fr); padding: .5rem 0; border-bottom: 1px solid rgb(21 35 27 / .3); }
.bom li::before { content: counter(bom); font-weight: 850; font-stretch: 75%; color: var(--red-ink); font-size: 1.15rem; }
.note { margin: 1.4rem 0 0; padding: .9rem 1rem; border-left: 5px solid var(--red); background: var(--film); font-size: .98rem; }
.schemes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; margin-top: 1.6rem; }
@media (min-width: 760px) { .schemes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.schemes figure { margin: 0; background: var(--white); border: 2px solid var(--ink); }
.schemes figcaption { padding: .7rem 1rem; border-top: 2px solid var(--ink); font-weight: 800; font-stretch: 80%; font-size: 1.15rem; }

/* Galerie – poze lipite pe planșă */
.gallery { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }
.gallery li { padding: 6px 6px 22px; background: var(--white); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: rotate .2s, translate .2s, box-shadow .2s; }
.gallery li:nth-child(3n+1) { rotate: -1.6deg; } .gallery li:nth-child(3n+2) { rotate: 1.2deg; } .gallery li:nth-child(3n) { rotate: -.5deg; }
.gallery li:hover { rotate: 0deg; translate: 0 -4px; box-shadow: 7px 9px 0 var(--red); }
.gallery img { width: 100%; aspect-ratio: 240 / 117; object-fit: cover; background: var(--film); }

/* Întrebări */
.narrow { max-width: 820px; }
.faq { margin-top: 1rem; border-bottom: 2px solid var(--ink); }
details { border-top: 2px solid var(--ink); }
summary { cursor: pointer; list-style: none; padding: 1.1rem 3.2rem 1.1rem 0; position: relative; font-weight: 800; font-stretch: 78%; font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.05; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: 1.2rem; height: 1.2rem; translate: 0 -50%; background: linear-gradient(var(--red), var(--red)) center / 100% 3px no-repeat, linear-gradient(var(--red), var(--red)) center / 3px 100% no-repeat; transition: rotate .2s; }
details[open] summary::after { rotate: 135deg; }
details p { margin: 0; padding: 0 3rem 1.4rem 0; max-width: 60ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 4rem; } }
form.sheet-form, #contact-form { background: var(--white); border: 2px solid var(--ink); border-top: 8px solid var(--red); padding: 1.4rem; }
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 700; margin-bottom: .3rem; font-size: .98rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; min-height: 50px; padding: .7rem .85rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--film); border: 2px solid var(--ink); border-radius: 0; }
textarea { resize: vertical; min-height: 9rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--red); outline-offset: 2px; background: #fff; }
.field.invalid input:not([type="checkbox"]), .field.invalid textarea { border-color: #b00020; background: #fff5f5; }
.err { display: none; margin-top: .3rem; color: #b00020; font-weight: 700; font-size: .92rem; }
.field.invalid .err { display: block; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-items: start; }
.check input { width: 1.4rem; height: 1.4rem; margin: .15rem 0 0; accent-color: var(--red); }
.check label { font-weight: 400; margin: 0; }
.check .err { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { display: none; margin-bottom: 1rem; padding: .9rem 1rem; font-weight: 700; border: 2px solid var(--ink); }
.status.show { display: block; }
.status.ok { background: #dff3e4; color: #0f4d24; }
.status.err { background: #fde5e7; color: #8d0019; }
form .btn[disabled] { opacity: .6; cursor: progress; }
.contact-info { display: grid; gap: 0; align-content: start; border: 2px solid var(--ink); background: var(--white); }
.info { padding: 1.1rem 1.3rem; border-bottom: 2px solid var(--ink); }
.info:last-child { border-bottom: 0; }
.info h3 { font-size: 1rem; font-stretch: 100%; font-weight: 700; color: var(--steel); margin-bottom: .2rem; line-height: 1.2; }
.info p { margin: 0; font-weight: 750; font-stretch: 85%; font-size: 1.35rem; line-height: 1.2; overflow-wrap: anywhere; }
.info a { color: var(--ink); text-decoration-color: var(--red); }

/* Subsol */
.site-footer { background: var(--ink); color: #cfe0d3; padding: 1.8rem 0 calc(1.8rem + env(safe-area-inset-bottom)); text-align: center; font-size: .95rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.call-fab { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem; background: var(--red); color: #fff; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 800; text-decoration: none; }
.call-fab:hover { color: #fff; }
@media (min-width: 920px) { .call-fab { display: none; } }

.legal h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); text-transform: none; line-height: .95; }
.legal h2 { font-size: 1.8rem; display: block; margin-top: 2rem; }
.legal h2::after { display: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ticker .track { width: auto; flex-wrap: wrap; justify-content: center; padding: .7rem 1rem; }
    .ticker .track > :nth-child(n+11) { display: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .site-header, .call-fab, form { display: none !important; } body { background: #fff; } }
