:root {
  --paper: #f2f3ef;
  --paper-deep: #e8eae4;
  --ink: #1e2b27;
  --ink-soft: #4a5751;
  --moss: #3b5f4e;
  --moss-deep: #2c4a3c;
  --bark: #5c4536;
  --gold: #d9c58a;
  --line: #d4d8d0;
  --shadow: 0 1px 2px rgba(30, 43, 39, 0.06), 0 12px 32px -12px rgba(30, 43, 39, 0.18);
  --radius: 14px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 60px); font-variation-settings: "opsz" 72; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-variation-settings: "opsz" 48; }
h3 { font-size: 23px; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1em; }
a { color: var(--moss); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--moss-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
small { font-size: 0.85em; color: var(--ink-soft); }
time { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* antet */
.site-head {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(242, 243, 239, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 44px; height: 44px; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-family: var(--serif); font-weight: 500; font-size: 21px; }
.brand small { font-size: 13px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: 16px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--moss); }
.site-nav .phone { color: #fff; background: var(--moss); padding: 10px 16px; border-radius: 999px; font-variant-numeric: tabular-nums; border-bottom: 0; transition: background-color 180ms ease; }
.site-nav .phone:hover { background: var(--moss-deep); border-bottom: 0; }
.nav-toggle { display: none; }

/* conținut */
main { padding: 0 var(--gutter); max-width: 1180px; margin: 0 auto; }
section { padding: clamp(40px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
section:first-child { border-top: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 6vw, 80px); align-items: center; padding-top: clamp(32px, 6vw, 72px); }
.kicker { color: var(--ink-soft); margin-bottom: 18px; }
.lead { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; max-width: 36em; font-variation-settings: "opsz" 20; }
.hero-meta { color: var(--ink-soft); font-size: 15px; margin-top: 28px; }
.hero-art { display: flex; justify-content: center; }
.hero-panel {
  position: relative; width: min(100%, 460px); aspect-ratio: 1; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--paper-deep) 70%, var(--paper-deep) 100%);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); opacity: 0.08; mix-blend-mode: multiply; pointer-events: none; }
.emblem { width: 78%; height: auto; color: var(--ink); }
.emblem .roots { color: var(--bark); }
.emblem .water { color: var(--moss); }
.emblem .leaves, .mark .leaves { color: var(--moss); }
.mark .roots { color: var(--bark); }

@media (prefers-reduced-motion: no-preference) {
  .emblem .roots path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.6s ease-out forwards; }
  .emblem .roots path:nth-child(n+2) { animation-delay: 0.25s; }
  .emblem .roots path:nth-child(n+6) { animation-delay: 0.55s; }
  .emblem .roots path:nth-child(n+14) { animation-delay: 0.85s; }
  .emblem .roots path:nth-child(n+30) { animation-delay: 1.1s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

.trust { padding: 0; border-top: 0; }
.trust ul { list-style: none; margin: 0; padding: 22px 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.trust li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); line-height: 1.4; }
.trust svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--moss); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.trust strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.trust + section { border-top: 0; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 28px 0 0; }
.btn {
  display: inline-block; background: var(--moss); color: #fff; text-decoration: none;
  padding: 14px 22px; border: 0; border-radius: 4px; font: 500 16px var(--sans); cursor: pointer;
  min-height: 48px; transition: background-color 180ms ease, transform 120ms ease;
}
.btn:hover { background: var(--moss-deep); color: #fff; box-shadow: 0 8px 20px -8px rgba(44, 74, 60, 0.6); transform: translateY(-1px); }
.btn-light { background: var(--paper); color: var(--ink); font-size: 20px; padding: 14px 26px; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: default; }
.tel { color: var(--ink); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.services-grid article { padding: 28px 26px 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--moss); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 200ms ease, box-shadow 200ms ease; }
.services-grid article:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(30,43,39,.06), 0 24px 44px -16px rgba(30,43,39,.28); }
.services-grid article p:first-of-type { flex: 1; }
.services-grid h3 a { color: var(--ink); text-decoration: none; }
.services-grid h3 a:hover { color: var(--moss); }
.price { display: inline-block; align-self: flex-start; margin: 4px 0 0; padding: 6px 12px; background: var(--paper); border-radius: 999px; color: var(--bark); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.services-note { max-width: var(--measure); color: var(--ink-soft); margin-top: 28px; }

.guide-list, .article-list { list-style: none; margin: 0; padding: 0; }
.guide-list li, .article-list li { display: grid; gap: 4px 28px; padding: 20px 0; border-top: 1px solid var(--line); }
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-list li { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; border-top: 0; padding: 26px 26px 24px; background: var(--paper-deep); border-radius: var(--radius); align-content: start; }
.step-n { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--moss); font-variation-settings: "opsz" 72; margin-bottom: 12px; }
.guide-list a, .article-list a { font-family: var(--serif); font-size: 22px; font-variation-settings: "opsz" 24; color: var(--ink); text-decoration: none; }
.guide-list a:hover, .article-list a:hover { color: var(--moss); text-decoration: underline; }
.guide-list span, .article-list span { color: var(--ink-soft); }
.article-list li { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "excerpt"; }
.article-list a { grid-area: title; }
.article-list span { grid-area: excerpt; max-width: var(--measure); }
.article-list li { position: relative; transition: background-color 160ms ease; }
.article-list li:hover { background: linear-gradient(90deg, rgba(255,255,255,.7), transparent); }
.article-list.long li { padding: 26px 0; }

.about-teaser p { max-width: var(--measure); font-size: 18px; }

/* pagini de citit */
.prose-page { max-width: var(--measure); margin: 0 auto; padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.prose-page.wide { max-width: 980px; }
.prose-head { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.crumb { margin-bottom: 14px; font-size: 15px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-soft); font-size: 15px; }
.meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; background: var(--line); border-radius: 50%; margin-right: 18px; vertical-align: middle; }
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.65; font-variation-settings: "opsz" 18; max-width: var(--measure); }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin: 1.9em 0 0.6em; font-size: clamp(24px, 2.4vw, 30px); }
.prose h2::before { content: ""; display: block; width: 40px; height: 2px; margin-bottom: 0.7em; background: var(--gold); }
.prose > p:first-child, .prose > figure.portrait + p { font-size: 1.12em; line-height: 1.55; color: var(--ink); }
.prose em { font-style: italic; }
.prose .source { font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 0.5em; }
.prose p.source:first-of-type, .prose > p.source { margin-top: 2em; padding-top: 16px; border-top: 1px solid var(--line); }
.prose ul.source { padding-left: 1.1em; margin-top: 0; }
.prose ul.source + p.source, .prose p.source + ul.source { border-top: 0; }
.author { display: flex; gap: 20px; align-items: flex-start; margin-top: 48px; padding: 24px; background: var(--paper-deep); border-radius: var(--radius); }
.author .author-mark { flex: none; width: 56px; height: 56px; }
.author p { margin-bottom: 8px; }
.author .author-name { font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }
.author .author-note { font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 560px) { .author { flex-direction: column; gap: 12px; padding: 20px; } }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--gold); color: var(--ink-soft); }
.prose a { overflow-wrap: anywhere; }
.in-page { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-weight: 500; }
.service { padding: 40px 0; border-top: 1px solid var(--line); }
.service h2 { margin-bottom: 8px; }
.price-box { color: var(--bark); margin-bottom: 20px; }
.price-box strong { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-right: 8px; }
.prose .portrait { float: right; width: 260px; margin: 0 0 16px 28px; }
.prose .portrait img { display: block; width: 100%; height: auto; border-radius: 6px; }
.facts { clear: both; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 20px; margin: 0; }
.facts dt { color: var(--bark); font-weight: 500; font-variant-numeric: tabular-nums; }
.facts dd { margin: 0; }
@media (max-width: 640px) { .prose .portrait { float: none; width: 100%; max-width: 320px; margin: 0 0 24px; } }
.more { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.more h2 { font-size: 20px; }
.more ul { padding-left: 1.1em; }
.more li { margin-bottom: 6px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(28px, 5vw, 72px); }
.contact-info p { margin-bottom: 22px; }
.contact-form { display: flex; flex-direction: column; }
.contact-form label { font-weight: 500; margin: 14px 0 6px; }
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input:not([type=checkbox]), .contact-form textarea {
  width: 100%; font: 17px var(--sans); color: var(--ink); background: #fff;
  border: 1px solid #b9c0b7; border-radius: 4px; padding: 12px 14px; min-height: 48px;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--moss); outline: 3px solid var(--gold); outline-offset: 0; }
.contact-form textarea { resize: vertical; }
.contact-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 18px 0; font-size: 15px; }
.contact-form .check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.contact-form .btn { align-self: flex-start; }
.contact-form .form-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 14px; border-radius: 4px; margin-bottom: 16px; border: 1px solid; }
.notice.ok { background: #e6efe9; border-color: var(--moss); color: var(--moss-deep); }
.notice.err { background: #f6e9e3; border-color: #a24a2f; color: #7a3620; }

.band { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: center; padding: clamp(36px, 5vw, 60px) clamp(24px, 4vw, 56px); margin: 0 0 clamp(40px, 7vw, 88px); background: var(--moss-deep); color: #e9efe9; border-radius: var(--radius); border-top: 0; }
.band h2 { color: #fff; margin-bottom: 10px; }
.band p { margin: 0; max-width: 46ch; }
.band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; justify-self: end; }
.band-link { color: #cfdccf; }
.band-link:hover { color: #fff; }

/* subsol */
.site-foot { background: var(--ink); color: #b9c4bd; padding: 52px var(--gutter) 40px; font-size: 15px; }
.site-foot > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.site-foot a { color: #e3eae4; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-name { font-family: var(--serif); font-size: 22px; color: #fff; }
.foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.foot-powered { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .65; }
.foot-powered img { display: block; border-radius: 4px; }

/* ecrane mici */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-panel { width: min(70vw, 320px); }
  .services-grid, .foot-grid, .contact-grid, .band { grid-template-columns: 1fr; }
  .band-actions { justify-self: start; }
  .trust ul { grid-template-columns: 1fr 1fr; }
  .services-grid article { padding-bottom: 20px; }
  .guide-list { grid-template-columns: 1fr; }
  .article-list li { grid-template-columns: 1fr; grid-template-areas: "title" "excerpt"; }
  .facts dl { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dt { margin-top: 12px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .prose { font-size: 18px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 10px; background: none; border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform 180ms ease, opacity 180ms ease; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .trust ul { grid-template-columns: 1fr; }
  .site-nav .phone { background: none; color: var(--moss); padding: 14px 0; border-radius: 0; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; z-index: 20; }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--moss); }
  .site-head { position: relative; }
  .brand small { display: none; }
}
