@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f8f6f1;
  --paper: #fffefb;
  --ink: #111111;
  --text: #34353a;
  --muted: #62646b;
  --line: #e2ddd2;
  --gold: #ebc57c;
  --gold-dark: #8a6420;
  --gold-light: #f6ead0;
  --dark: #111111;
  --on-dark: #d9d6cf;

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1160px;
  --pad: clamp(16px, 4vw, 40px);
  --space: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.08; margin: 0 0 .55em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--gold-dark); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
::selection { background: var(--gold-light); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.block { padding: var(--space) 0; }
.block--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 58ch; }
.label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px; border: 1px solid var(--ink); border-radius: 3px;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(248, 246, 241, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo img { height: 38px; width: auto; }
.menu { display: flex; align-items: center; gap: 34px; }
.menu ul { display: flex; gap: 30px; }
.menu ul a { color: var(--text); text-decoration: none; font-size: .96rem; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.menu ul a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.menu ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.menu .btn { padding: 12px 20px; font-size: .92rem; }
.burger { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .menu {
    position: fixed; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 28px;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu ul a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu ul a[aria-current="page"] { border-bottom-color: var(--line); color: var(--gold-dark); }
  .menu .btn { margin-top: 20px; justify-content: center; padding: 16px; }
  .logo img { height: 32px; }
}

/* hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 10vw, 136px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 96px); align-items: end; }
.hero h1 { margin-bottom: 28px; }
.hero .intro { margin-bottom: 38px; }
.hero__card { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: 40px 36px 36px; border-radius: 4px; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__card .mark { position: absolute; right: -60px; top: -40px; width: 330px; opacity: .14; pointer-events: none; }
.hero__card .num { position: relative; font-family: var(--serif); font-size: 5.2rem; line-height: 1; color: var(--gold); margin-bottom: 12px; }
.hero__card p { position: relative; margin: 0; max-width: 30ch; font-size: 1.02rem; }
.hero__card .rule { position: relative; height: 1px; background: rgba(255, 255, 255, .14); margin: 28px 0 20px; }
.hero__card small { position: relative; display: block; font-size: .88rem; color: #a9a6a0; }

/* service index (home) */
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.head h2 { margin: 0; }
.head p { margin: 0; color: var(--muted); }
.index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; border-top: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.index h3 { margin: 0; font-size: 1.55rem; transition: color .2s; }
.index p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .97rem; max-width: 46ch; }
.index .arr { color: var(--gold-dark); font-size: 1.2rem; transition: transform .25s; align-self: center; }
.index a:hover h3 { color: var(--gold-dark); }
.index a:hover .arr { transform: translateX(4px); }

/* reasons */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); }
.split__side { position: sticky; top: 120px; align-self: start; }
.reasons li { padding: 30px 0; border-top: 1px solid var(--line); }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons h3 { margin-bottom: 10px; }
.reasons p { margin: 0; color: var(--muted); }
.aside-note { margin-top: 36px; padding-left: 20px; border-left: 2px solid var(--gold); color: var(--text); font-size: .98rem; }
.aside-note strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--ink); display: block; line-height: 1.1; margin-bottom: 4px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 22px; border-top: 1px solid var(--ink); }
.steps li::before { content: counter(s) "."; display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--gold-dark); margin-bottom: 18px; }
.steps h3 { font-size: 1.35rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* closing band */
.band { background: var(--dark); color: var(--on-dark); padding: clamp(64px, 9vw, 112px) 0; }
.band__in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: end; }
.band h2 { color: #fff; margin-bottom: 16px; }
.band p { margin: 0; max-width: 52ch; }
.band .mail { display: inline-block; margin-top: 22px; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(235, 197, 124, .4); word-break: break-word; }
.band .mail:hover { color: #fff; border-bottom-color: #fff; }
.band__cta { justify-self: end; }

/* page heading */
.pagehead { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.pagehead h1 { max-width: 17ch; }
.pagehead .intro { margin: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 36px; font-size: .94rem; }
.jump a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.jump a:hover { color: var(--ink); border-bottom-color: var(--gold); }

/* services page */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 18px; }
.service__note { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--gold-dark); background: var(--gold-light); padding: 4px 10px; border-radius: 2px; margin-bottom: 18px; }
.service h3 { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.dash li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); font-size: .98rem; line-height: 1.5; }
.dash li:first-child { border-top: 1px solid var(--line); }
.dash li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 1.5px; background: var(--gold-dark); }
.fit { margin: 18px 0 0; font-size: .95rem; color: var(--muted); }
.fit b { color: var(--ink); font-weight: 600; }

/* about */
.prose { max-width: 64ch; }
.quote { margin: 0; padding: 8px 0 8px 28px; border-left: 2px solid var(--gold); }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.35; color: var(--ink); margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.two li { padding: 26px 0; border-top: 1px solid var(--line); }
.two h3 { font-size: 1.4rem; margin-bottom: 8px; }
.two p { margin: 0; color: var(--muted); }

/* contact */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); }
.contact__mail { display: inline-block; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); margin: 6px 0 16px; word-break: break-word; }
.contact__mail:hover { color: var(--gold-dark); }
.copy { background: none; border: 0; padding: 0; font: 500 .9rem var(--sans); color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.copy:hover { color: var(--ink); }
.contact__tips { margin-top: 40px; }
.contact__tips li { padding: 14px 0; border-top: 1px solid var(--line); font-size: .96rem; color: var(--muted); }
form.enquiry { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.f { margin-bottom: 20px; }
.f label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.f label span { font-weight: 400; color: var(--muted); }
.f input, .f select, .f textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid #d3cdbf; border-radius: 2px; padding: 12px 14px;
  transition: border-color .2s, background-color .2s;
}
.f textarea { min-height: 160px; resize: vertical; }
.f select { appearance: none; -webkit-appearance: none; 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='%23626469' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.f .err { display: none; margin-top: 6px; font-size: .84rem; color: #a3261b; }
.f.bad input, .f.bad textarea { border-color: #a3261b; }
.f.bad .err { display: block; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); line-height: 1.55; margin: 4px 0 26px; }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.agree.bad { color: #a3261b; }
.send { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.send small { color: var(--muted); font-size: .85rem; max-width: 36ch; line-height: 1.5; }
.sent { display: none; margin: 22px 0 0; padding: 14px 16px; background: var(--gold-light); font-size: .93rem; }
.sent.show { display: block; }
.trap { position: absolute; left: -9999px; }

/* legal */
.legal-grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 6vw, 88px); }
.legal-grid > * { min-width: 0; }
.toc { position: sticky; top: 110px; align-self: start; font-size: .9rem; }
.toc ol { border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 16px; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.legal { max-width: 740px; }
.legal h2 { font-size: 1.75rem; margin: 52px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1.1em; }
.legal li { margin-bottom: .45em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 6px 0 20px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 11px 12px; border: 1px solid var(--line); }
.legal th { background: var(--paper); color: var(--ink); }
.scroll-x { overflow-x: auto; }
.updated { font-size: .9rem; color: var(--muted); margin-top: 18px; }

/* footer */
.foot { background: var(--dark); color: #a9a6a0; padding: clamp(56px, 7vw, 88px) 0 30px; font-size: .94rem; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 40px; }
.foot__logo img { width: 140px; }
.foot__about { margin: 22px 0 0; max-width: 32ch; }
.foot h4 { font: 600 .75rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.foot li { margin-bottom: 9px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 60px; padding-top: 24px; border-top: 1px solid #2a2a2a; font-size: .86rem; }

/* motion */
.fade { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.fade.in { opacity: 1; transform: none; }
.no-js .fade { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* responsive */
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__grid, .split, .contact, .legal-grid, .service, .band__in, .head { grid-template-columns: 1fr; }
  .hero__card { min-height: 280px; }
  .split__side, .toc { position: static; }
  .band__cta { justify-self: start; }
  .head { gap: 16px; }
  .toc { border: 1px solid var(--line); padding: 18px; background: var(--paper); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .index, .two, .row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 32px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__card { padding: 32px 26px 28px; }
  .hero__card .num { font-size: 4.2rem; }
}

/* --- Блоков редактор ---------------------------------------------------- */
/* Съдържанието от редактора се показва в .prose. Тези правила дават на
   блоковете същите ширини, които theme.json обещава на редактора. */

.prose > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose > .alignwide { max-width: 1160px; }
.prose > .alignfull { max-width: none; width: 100%; }
.prose > .alignleft { float: left; margin-right: 1.5rem; }
.prose > .alignright { float: right; margin-left: 1.5rem; }
.prose figure img { border-radius: 10px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--ink); margin-top: 2em; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 1rem; font-family: var(--serif); font-size: 1.2rem; }

/* Превключвател за език в менюто. */
.langs { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.langs li + li::before { content: "/"; color: var(--line); margin-right: .35rem; }
.langs a { font-size: .82rem; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs .is-current a { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .langs { margin: .5rem 0; } }
