/* Manrope (SIL Open Font License 1.1), self-hosted — see fonts/OFL.txt */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/manrope-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: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/manrope-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: #faf8f5;
  --bg-alt: #f1ede6;
  --surface: #ffffff;
  --ink: #1f2326;
  --muted: #6b6f72;
  --line: #e2ddd4;
  --accent: #c64d16;      /* logo orange */
  --accent-ink: #ffffff;
  --accent-soft: #f8e3d8;
  --ok: #2f7d4f;
  --dark: #22272b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* lang="bg" switches Cyrillic to cursive Bulgarian forms (т looks like m); keep standard forms */
  font-feature-settings: "locl" 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40ch; }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--accent); color: var(--accent-ink);
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid var(--accent);
  cursor: pointer; font: inherit; font-weight: 700; text-align: center;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-small { padding: .45em 1em; font-size: .92rem; }
.btn-block { display: block; width: 100%; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250,248,245,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); }
.header-row { gap: 20px; }
.brand { margin-right: auto; }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-switch a { text-decoration: none; font-size: .78rem; font-weight: 700; color: var(--muted); padding: .3em .6em; border-radius: 999px; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { background: var(--ink); color: var(--bg); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5em; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.hero-card-title { font-weight: 800; margin-bottom: 1em; }
.hero-card-note { font-size: .85rem; color: var(--muted); margin: 1em 0 0; }
.mini-status { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.mini-status small { color: var(--muted); }
.mini-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .95rem; }
.mini-row a { text-decoration: none; }
.mini-pct { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

.bar { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 999px; min-width: 4px; }

/* notice */
.notice { background: var(--accent-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notice-row { display: flex; gap: 16px; padding-top: 16px; padding-bottom: 16px; align-items: baseline; flex-wrap: wrap; }
.notice strong { color: var(--accent); white-space: nowrap; }

/* sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #eef0f1; }
.section-dark p { color: #c4c9cc; }
.section-lead { color: var(--muted); max-width: 60ch; margin-bottom: 2em; }
.sub { margin-top: 2.5em; }
.sub-tight { margin-top: 0; }

/* project cards */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.project-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-body h3 { margin: 0; font-size: 1.3rem; }
.project-body h3 a { text-decoration: none; }
.project-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .88rem; }
.project-body .btn-block { margin-top: auto; }

.ph {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, rgba(181,86,43,.10), rgba(34,39,43,.06)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,.025) 14px 28px),
    var(--bg-alt);
  color: var(--muted); font-weight: 600; font-size: .9rem;
}

.badge { display: inline-block; padding: .25em .75em; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge-soon { background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line); }
.badge-available { background: #e3f1e8; color: var(--ok); }
.badge-reserved { background: #fdf0d5; color: #8a5a00; }
.badge-sold { background: #ececec; color: #555; }

.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0; }
.facts div { background: var(--bg); border-radius: 10px; padding: 8px 6px; text-align: center; }
.facts dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; font-weight: 700; font-size: .95rem; }

/* cards & how */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.card p { color: var(--muted); margin: 0; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.how-item p { color: var(--muted); }
.how-num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }
.stage-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 24px; padding-left: 1.2em; margin: 0; color: var(--muted); }
.stage-legend li::marker { color: var(--accent); font-weight: 800; }

/* team */
.team { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.lead-card { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.lead-inner { display: flex; gap: 24px; align-items: flex-start; }
.lead-inner p:last-child { color: var(--muted); margin: 0; }
.avatar { flex: 0 0 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.partners { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.partners li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: grid; gap: 2px; }
.partners strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: .8em 0 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-list { list-style: none; padding: 0; margin: 2em 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #9aa1a5; }
.contact-list a { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: #fff; }
.form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: inherit; padding: .7em .9em; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .85rem; color: var(--muted); }
.form .consent input { margin-top: .3em; }
.hidden-field { display: none; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .85rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* project page */
.back { text-decoration: none; color: var(--muted); font-weight: 600; }
.project-head { margin-bottom: 24px; }
.project-head h1 { margin-bottom: .1em; }
.project-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.project-layout h2 { margin-top: 1.6em; font-size: 1.5rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery > :first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.features { padding-left: 1.2em; color: var(--muted); }
.features li::marker { color: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.plans > * { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.plans img { background: var(--surface); }
.plans .ph { aspect-ratio: 4 / 3; }

.project-aside { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.project-aside .badge { justify-self: start; }
.price { font-size: 1.5rem; font-weight: 800; margin: 0; }
.project-aside .facts { grid-template-columns: repeat(3, 1fr); }
.dates { margin: 0; display: grid; gap: 8px; }
.dates div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.dates dt { color: var(--muted); }
.dates dd { margin: 0; font-weight: 700; text-align: right; }
.aside-note { font-size: .88rem; color: var(--muted); background: var(--accent-soft); border-radius: 10px; padding: 12px; margin: 0; }

.timeline { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; }
.timeline li { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.tl-done:not(:last-child)::before { background: var(--accent); }
.tl-dot { flex: 0 0 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; background: var(--bg-alt); color: var(--muted); border: 2px solid var(--line); }
.tl-done .tl-dot { background: var(--accent); color: #fff; border-color: var(--accent); }
.tl-current .tl-dot { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.timeline strong { display: block; }
.timeline small { color: var(--muted); }
.tl-todo strong { color: var(--muted); font-weight: 600; }

.diary { display: grid; gap: 16px; }
.diary-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.diary-item time { font-weight: 800; color: var(--accent); font-size: .9rem; }
.diary-item p { margin: .3em 0 0; }
.diary-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 12px; }
.diary-photos img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .team, .contact-grid, .project-layout { grid-template-columns: 1fr; }
  .projects, .cards-3 { grid-template-columns: 1fr 1fr; }
  .how, .stage-legend { grid-template-columns: 1fr 1fr; }
  .project-aside { position: static; }
}
.brand, .nav a { white-space: nowrap; }
@media (max-width: 920px) {
  .nav-toggle { display: block; order: 3; }
  .lang-switch { order: 2; }
  .header-row { gap: 12px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .nav .btn { margin-top: 8px; }
}
@media (max-width: 680px) {
  .hero { padding: 40px 0 32px; }
  .section { padding: 48px 0; }
  .projects, .cards-3, .how, .stage-legend, .gallery, .plans { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .lead-inner { flex-direction: column; }
  .avatar { flex-basis: 96px; width: 96px; height: 96px; }
}

/* hero photo */
.hero-photo { margin: 48px 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 21 / 9; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
@media (max-width: 680px) { .hero-photo { aspect-ratio: 4 / 3; margin-top: 32px; } }

/* lightbox */
.gallery img, .diary-photos img { cursor: zoom-in; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(15, 17, 19, .88); }
.lightbox img { max-width: 96vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* logo */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { height: 40px; width: auto; }
.footer-row { align-items: center; }
.footer-logo { height: 64px; width: auto; }
.thanks-logo { height: 140px; width: auto; margin: 0 auto 24px; }

/* floor plans & room areas */
.small { font-size: .88rem; }
.facts { grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); }
.floor-plans { display: grid; gap: 28px; }
.floor { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.floor-img img { width: 100%; border-radius: 10px; cursor: zoom-in; background: #fff; }
.floor-info h3 { margin: 4px 0 2px; }
.rooms { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .95rem; }
.rooms th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.rooms td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.rooms .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.rooms tfoot td { font-weight: 800; border-bottom: 0; padding-top: 10px; }
.area-summary { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; }
.area-total { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 6px; font-weight: 600; }
.area-total strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.area-summary .small { margin: 8px 0 0; }
.facades { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.facades figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facades img { width: 100%; cursor: zoom-in; }
.facades figcaption { font-size: .85rem; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); }
@media (max-width: 680px) {
  .floor { grid-template-columns: 1fr; }
  .facades { grid-template-columns: 1fr; }
}
.project-card .facts, .project-aside .facts { grid-template-columns: repeat(3, 1fr); }
.facts dd { white-space: nowrap; }
.plot-note { margin: -6px 0 0; }
.form-status { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.2em; }
.form-status.form-error { color: #b42318; font-weight: 600; }
.form button[disabled] { opacity: .6; cursor: wait; }
