/* Kovalent — стилове. Палитра и типография по одобрената визия. */
:root {
  --bg: #0e0d0c;
  --s1: #161412;
  --s2: #1d1a17;
  --line: #3a3226;
  --gold: #d9b35f;
  --gold-hi: #f0d189;
  --cream: #f2ece0;
  --muted: #a89f90;
  --red: #b3141e;
  --red-hi: #c91a26;
  --ser: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --pad: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ser); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--gold); color: #121110; padding: 12px 18px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 16px; color: #121110; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 16px 32px; border-radius: 2px; border: 1px solid transparent;
  font: 500 15px/1.2 var(--sans); letter-spacing: 0.04em; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hi); color: #fff; }
.btn--ghost { border-color: var(--gold); color: var(--cream); background: transparent; }
.btn--ghost:hover { background: rgba(217, 179, 95, .12); color: var(--cream); }
.btn--sm { min-height: 44px; padding: 11px 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Хедър ---------- */
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 20; background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand svg { width: 49px; height: 34px; flex: none; }
.brand-word { font: 700 26px/1 var(--sans); letter-spacing: -0.04em; }
.main-nav ul { display: flex; align-items: center; gap: 36px; }
.main-nav a { color: var(--cream); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; padding-block: 8px; border-bottom: 1px solid transparent; }
.main-nav a:hover { color: var(--gold); }
.main-nav a[aria-current='page'] { color: var(--gold); border-bottom-color: var(--gold); }
.main-nav .nav-cta { display: none; }
.header-cta { flex: none; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--gold); background: transparent; border-radius: 2px; cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.menu-toggle svg { width: 22px; height: 14px; }

@media (max-width: 1020px) {
  .header-inner { padding-block: 16px; }
  .brand-word { font-size: 22px; }
  .brand svg { width: 42px; height: 29px; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 24px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav a { display: block; padding-block: 16px; border-bottom: 0; font-size: 14px; }
  .main-nav .nav-cta { display: block; padding-top: 20px; border-top: 0; }
  .main-nav .nav-cta .btn { width: 100%; }
  html:not(.js) .main-nav { display: block; position: static; padding-top: 0; }
  html:not(.js) .menu-toggle { display: none; }
}

/* ---------- Секции ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--alt { background: var(--s1); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-title { font-size: clamp(2.3rem, 4.6vw, 4rem); }
.section-text { font-size: 17px; color: var(--muted); max-width: 560px; }

/* ---------- Начало: герой ---------- */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 5.75rem); line-height: .98; letter-spacing: -0.015em; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-copy { display: flex; flex-direction: column; gap: 32px; }
.hero-lead { font-size: 19px; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.hero-art { border: 1px solid var(--line); padding: 16px; }
.hero-art-inner { background: var(--s1); min-height: clamp(300px, 36vw, 520px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(28px, 4vw, 48px); padding: 32px; }
.hero-art svg { width: min(340px, 72%); height: auto; }
.hero-art-cap { font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); text-align: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Нужди ---------- */
.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 0; }
.need { display: flex; flex-direction: column; gap: 16px; padding: 8px 40px 8px 32px; border-left: 1px solid var(--line); text-decoration: none; color: var(--cream); }
.need:hover { color: var(--cream); }
.need:hover .need-title { color: var(--gold); }
.need-num { font: 500 72px/1 var(--ser); color: var(--gold); }
.need-title { font: 500 clamp(1.7rem, 2.6vw, 2rem)/1.1 var(--ser); transition: color .2s; }
.need-text { color: var(--muted); }
@media (max-width: 900px) {
  .needs { grid-template-columns: 1fr; gap: 0; }
  .need { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; row-gap: 6px; padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .need-num { grid-row: span 2; font-size: 40px; }
  .need:last-child { border-bottom: 1px solid var(--line); }
}

/* ---------- Редове за услуги ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px clamp(48px, 7vw, 88px); align-items: start; }
.split-head { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.rows { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 32px; gap: 16px; align-items: start; padding-block: 28px; border-top: 1px solid var(--line); text-decoration: none; color: var(--cream); }
.row:hover { color: var(--cream); }
.row:hover .row-title { color: var(--gold); }
.row-num { font: 500 28px/1.2 var(--ser); color: var(--gold); }
.row-body { display: flex; flex-direction: column; gap: 6px; }
.row-title { font: 500 clamp(1.6rem, 2.8vw, 2.25rem)/1.1 var(--ser); transition: color .2s; }
.row-text { color: var(--muted); }
.row-arrow { color: var(--gold); font-size: 22px; padding-top: 6px; transition: transform .2s; }
.row:hover .row-arrow { transform: translateX(4px); }
@media (max-width: 600px) { .row { grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 12px; padding-block: 22px; } .row-num { font-size: 22px; } }

/* ---------- Стъпки ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 40px; counter-reset: s; }
.step { border-top: 1px solid var(--gold); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.step-num { font: 500 clamp(2.75rem, 4.5vw, 4rem)/1 var(--ser); color: var(--gold); }
.step-title { font: 500 1.75rem/1.1 var(--ser); }
.step-text { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 4px; padding-top: 18px; }
  .step-num { grid-row: span 2; font-size: 2.75rem; }
  .step-title { font-size: 1.5rem; }
}

/* ---------- Проекти ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px 32px; }
.card { display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: var(--cream); }
.card:hover { color: var(--cream); }
.card:hover .card-title { color: var(--gold); }
.shot { aspect-ratio: 16 / 10; border: 1px solid var(--line); overflow: hidden; background: var(--s2); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot--type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; }
.shot-domain { font: 500 clamp(1.4rem, 2.4vw, 2.1rem)/1.1 var(--ser); color: var(--cream); overflow-wrap: anywhere; }
.shot-label { font-size: 11px; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; }
.card-title { font: 500 clamp(1.6rem, 2.4vw, 1.9rem)/1.1 var(--ser); transition: color .2s; }
.card-text { color: var(--muted); font-size: 15px; margin-top: 6px; }
.more-line { margin-top: 48px; color: var(--muted); }
.group-title { font: 500 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--ser); margin-bottom: 32px; }
.group + .group { margin-top: 72px; }

/* ---------- Принципи, въпроси ---------- */
.principles { border-bottom: 1px solid var(--line); }
.principle { display: flex; flex-direction: column; gap: 6px; padding-block: 22px; border-top: 1px solid var(--line); }
.principle h3, .qa h3 { font: 500 clamp(1.5rem, 2.4vw, 1.75rem)/1.15 var(--ser); }
.principle p { color: var(--muted); }
.about-copy { display: flex; flex-direction: column; gap: 24px; }
.about-copy p { color: var(--muted); font-size: 17px; }
.faq { border-bottom: 1px solid var(--line); }
.qa { display: flex; flex-direction: column; gap: 8px; padding-block: 28px; border-top: 1px solid var(--line); }
.qa h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.qa p { color: var(--muted); max-width: 600px; }

/* ---------- Форма / панел за запитване ---------- */
.contact-wrap { padding-bottom: clamp(72px, 9vw, 128px); }
.contact-panel { border: 1px solid var(--gold); background: var(--s1); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-panel { grid-template-columns: 1fr; } }
.contact-copy { display: flex; flex-direction: column; gap: 28px; }
.contact-copy h2 { font-size: clamp(2.2rem, 4.2vw, 3.75rem); }
.contact-copy p { color: var(--muted); font-size: 17px; max-width: 420px; }
.contact-lines { display: flex; flex-direction: column; gap: 10px; }
.contact-lines span { color: var(--muted); }
.contact-lines a { font-weight: 500; }
.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--cream); background: transparent; border: 0; border-bottom: 1px solid #8a7647;
  padding: 12px 0; min-height: 44px; border-radius: 0; width: 100%;
}
.field select { background: var(--s1); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--gold); padding-bottom: 11px; }
.field input::placeholder, .field textarea::placeholder { color: #7d7466; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status[data-state='ok'] { color: var(--gold); }
.form-status[data-state='error'] { color: #ff8a8f; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Вътрешни страници ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero-inner { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.page-hero-inner h1 { max-width: 860px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 680px; text-wrap: pretty; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px clamp(40px, 6vw, 88px); }
@media (max-width: 800px) { .cols-2 { grid-template-columns: 1fr; } }
.block h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 24px; }
.checklist li { position: relative; padding: 14px 0 14px 32px; border-top: 1px solid var(--line); color: var(--cream); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before { content: ''; position: absolute; left: 0; top: 1.35em; width: 16px; height: 1px; background: var(--gold); }
.mini-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.mini-steps li:last-child { border-bottom: 1px solid var(--line); }
.mini-steps .n { font: 500 2.25rem/1 var(--ser); color: var(--gold); }
.mini-steps h3 { font: 500 1.5rem/1.15 var(--ser); margin-bottom: 4px; }
.mini-steps p { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 104px); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.related a { display: flex; flex-direction: column; gap: 8px; padding: 28px 28px 28px 0; text-decoration: none; color: var(--cream); border-bottom: 1px solid var(--line); }
.related a:hover { color: var(--cream); }
.related a:hover strong { color: var(--gold); }
.related strong { font: 500 1.6rem/1.1 var(--ser); transition: color .2s; }
.related span { color: var(--muted); font-size: 15px; }
.cta-band { border: 1px solid var(--gold); background: var(--s1); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); max-width: 520px; }
.step-detail { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.step-detail:last-child { border-bottom: 1px solid var(--line); }
.step-detail .n { font: 500 4rem/1 var(--ser); color: var(--gold); }
.step-detail h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 20px; }
.step-detail dl { margin: 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px 24px; }
.step-detail dt { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.step-detail dd { margin: 0; color: var(--cream); }
@media (max-width: 700px) { .step-detail { grid-template-columns: 1fr; gap: 8px; } .step-detail .n { font-size: 3rem; } .step-detail dl { grid-template-columns: 1fr; gap: 2px; } .step-detail dd { margin-bottom: 14px; } }
.facts { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); margin: 0; }
.facts dt, .facts dd { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* Правни текстове */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--cream); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--gold); }

/* ---------- Футър ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-brand p { color: var(--muted); font-size: 15px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.footer-nav a { color: var(--cream); text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

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