@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500&display=swap');

:root {
  /* surfaces */
  --cream:    #f4f1e9;
  --cream-2:  #ece7da;
  --paper:    #faf8f2;
  --ink:      #1b231d;
  --ink-soft: #47524a;
  --ink-mut:  #6c766d;

  /* brand */
  --green:     #2f5135;
  --green-700: #233e28;
  --green-300: #71916f;
  --sage:      #9aa893;
  --clay:      #bd6a44;
  --clay-soft: #e7cdba;

  --line:      rgba(27,35,29,0.14);
  --line-soft: rgba(27,35,29,0.08);

  /* type */
  --display: 'Bricolage Grotesque', Georgia, serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(27,35,29,.05), 0 12px 30px -18px rgba(27,35,29,.28);
  --shadow-lg: 0 2px 4px rgba(27,35,29,.05), 0 40px 80px -40px rgba(27,35,29,.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.bg-paper { background: var(--paper); }
.bg-cream2 { background: var(--cream-2); }
.bg-green { background: var(--green); color: #f3f0e8; }
.bg-ink { background: var(--ink); color: #eef0ec; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); }
.display {
  font-size: clamp(2.6rem, 6.2vw, 5.1rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); color: var(--ink-soft); line-height: 1.5; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--clay);
  display: inline-block;
}
.bg-green .eyebrow, .bg-ink .eyebrow { color: var(--clay-soft); }
.bg-green .eyebrow::before, .bg-ink .eyebrow::before { background: var(--clay-soft); }
.bg-green h1, .bg-green h2, .bg-green h3, .bg-ink h1, .bg-ink h2, .bg-ink h3 { color: inherit; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--clay); color: #fff; box-shadow: 0 10px 24px -12px rgba(189,106,68,.9); }
.btn--primary:hover { background: #a85733; transform: translateY(-2px); }
.btn--green { background: var(--green); color: #f3f0e8; }
.btn--green:hover { background: var(--green-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { padding: 18px 32px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ---------- header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: var(--green); color: var(--cream);
  display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: .95rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand small { display: block; font-family: var(--mono); font-size: .58rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mut); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  font-weight: 500; font-size: .98rem; padding: 9px 14px; border-radius: 9px; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--cream-2); color: var(--ink); }
.nav-links a.is-active { color: var(--ink); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 500; font-size: .92rem; color: var(--ink); }
.nav-phone svg { width: 16px; height: 16px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--cream); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 22px;
    transform: translateY(-130%); transition: transform .28s ease; margin: 0;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 12px; font-size: 1.1rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-cta .nav-phone { display: none; }
  .nav-cta .btn { display: none; }
}

/* ---------- trust strip / badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px;
}
.badge svg { width: 17px; height: 17px; color: var(--green); flex: none; }
.bg-green .badge, .bg-ink .badge { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #eef0ec; }
.bg-green .badge svg, .bg-ink .badge svg { color: var(--clay-soft); }

/* ---------- cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* numbered process step */
.step { position: relative; padding-top: 8px; }
.step .num { font-family: var(--mono); font-size: .85rem; color: var(--clay); font-weight: 500; letter-spacing: .1em; }
.step h3 { margin: 12px 0 8px; font-size: 1.3rem; }
.step p { color: var(--ink-soft); font-size: 1rem; }

/* service card */
.svc { display: flex; flex-direction: column; gap: 14px; transition: transform .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--cream-2); display: grid; place-items: center; color: var(--green); }
.svc .ico svg { width: 24px; height: 24px; }
.svc .ico img { width: 24px; height: 24px; }
.svc h3 { font-size: 1.25rem; }
.svc p { color: var(--ink-soft); font-size: 1rem; flex: 1; }

/* ---------- image placeholder ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(47,81,53,.07) 0 14px, rgba(47,81,53,.02) 14px 28px),
    var(--cream-2);
  border: 1px solid var(--line);
  display: grid; place-items: center; min-height: 220px; color: var(--ink-mut);
  width: 100%; min-width: 0;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mut); padding: 7px 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
}
.ph-img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- real images (swappable from Django admin) ---------- */
img.shot {
  display: block; width: 100%; height: auto; object-fit: cover;
  background: var(--cream-2); border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.room .shot, .proj .shot { border-radius: 0; border: 0; }
.pj-gallery .shot { border-radius: var(--radius); border: 0; height: 100%; aspect-ratio: 16 / 9;}
.pj-gallery img.pj-tall { height: 100%; }
.split-grid img.shot { border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.18); }
img.hero-b-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; background: var(--ink); }

/* ---------- before / after slider ---------- */
.ba {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; user-select: none; touch-action: none; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ba .layer { position: absolute; inset: 0; display: grid; place-items: center; }
.ba .before {
  background: repeating-linear-gradient(135deg, #d9d2c4 0 16px, #d2cabb 16px 32px);
}
.ba .after {
  background:
    repeating-linear-gradient(135deg, rgba(47,81,53,.16) 0 16px, rgba(47,81,53,.06) 16px 32px), var(--green-300);
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.ba .tag {
  position: absolute; top: 16px; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; background: rgba(27,35,29,.78); color: #fff; padding: 6px 12px; border-radius: 999px;
}
.ba .tag.b { left: 16px; }
.ba .tag.a { right: 16px; }
.ba .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: var(--paper);
  transform: translateX(-50%); cursor: ew-resize;
}
.ba .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%,-50%);
  background: var(--paper); border-radius: 50%; box-shadow: var(--shadow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%232f5135' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.ba .ph-img { position: absolute; inset: 0; }
.ba .layer img.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .before img.ba-img { filter: grayscale(.55) contrast(1.04) brightness(.9); }

/* ---------- stats ---------- */
.stat .n { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.03em; color: var(--green); }
.bg-green .stat .n, .bg-ink .stat .n { color: var(--clay-soft); }
.stat .l { font-size: .95rem; color: var(--ink-soft); margin-top: 8px; }
.bg-green .stat .l, .bg-ink .stat .l { color: rgba(238,240,236,.74); }

/* ---------- testimonial ---------- */
.quote { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.1vw, 1.85rem); line-height: 1.28; letter-spacing: -.02em; }
.cite { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.cite .av { width: 46px; height: 46px; border-radius: 50%; background: var(--cream-2); border: 1px solid var(--line); flex: none; display: grid; place-items: center; font-family: var(--mono); font-size: .85rem; color: var(--green); }
.cite .who { font-size: .92rem; }
.cite .who b { display: block; font-weight: 600; }
.cite .who span { color: var(--ink-mut); }
.stars { display: inline-flex; gap: 2px; color: var(--clay); }
.stars svg { width: 17px; height: 17px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .9rem; font-weight: 600; }
.field .req { color: var(--clay); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 11px; padding: 13px 15px; width: 100%;
  transition: border .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,81,53,.13);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0492f; box-shadow: 0 0 0 3px rgba(192,73,47,.12); }
.field .err { font-size: .82rem; color: #c0492f; display: none; }
.field.invalid .err { display: block; }
.form-note { font-size: .85rem; color: var(--ink-mut); }
.form-ok {
  display: none; text-align: center; padding: 40px 24px;
}
.form-ok.show { display: block; }
.form-ok .ok-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.form-ok .ok-ico svg { width: 30px; height: 30px; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #cfd5cd; padding-block: clamp(54px, 7vw, 84px) 32px; }
.site-foot a { color: #cfd5cd; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #8c958a; font-family: var(--mono); }
.foot-brand { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff; display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.foot-brand .mark { width: 36px; height: 36px; border-radius: 9px; background: var(--green); display: grid; place-items: center; font-family: var(--mono); font-size: .9rem; color: var(--cream); }

/* ---------- variation switcher ---------- */
.vswitch {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80;
  display: flex; align-items: center; gap: 4px; padding: 6px; background: var(--ink); color: #eef0ec;
  border-radius: 999px; box-shadow: var(--shadow-lg); font-family: var(--mono); font-size: .8rem;
}
.vswitch .lbl { padding: 0 10px 0 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .65; font-size: .68rem; }
.vswitch a { padding: 8px 15px; border-radius: 999px; font-weight: 500; transition: background .15s; color: #eef0ec; }
.vswitch a:hover { background: rgba(255,255,255,.12); }
.vswitch a.is-active { background: var(--clay); color: #fff; }
@media (max-width: 520px) { .vswitch .lbl { display: none; } }

/* ---------- misc ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.divider { height: 1px; background: var(--line); border: 0; }
.pill { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); background: var(--cream-2); padding: 6px 12px; border-radius: 999px; display: inline-block; }
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.maxch { max-width: 56ch; }
.list-check { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; color: var(--ink-soft); }
.list-check li svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }
.about-hero { display:grid; grid-template-columns:1.2fr .8fr; gap:clamp(32px,5vw,64px); align-items:center; }
.timeline { display:grid; gap:0; max-width:760px; }
.tl { display:grid; grid-template-columns:120px 1fr; gap:28px; padding:26px 0; border-bottom:1px solid var(--line); position:relative; }
.tl:last-child { border-bottom:0; }
.tl-year { font-family:var(--display); font-weight:800; font-size:1.6rem; color:var(--green); letter-spacing:-.02em; }
.tl-body h3 { margin-bottom:8px; }
.tl-body p { color:var(--ink-soft); font-size:1.02rem; max-width:54ch; }
.creds { display:grid; grid-template-columns:1fr 1.1fr; gap:clamp(32px,5vw,64px); align-items:center; }
.cred { display:flex; gap:14px; align-items:flex-start; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.cred svg { width:26px; height:26px; color:var(--green); flex:none; }
.cred b { display:block; font-size:1.02rem; }
.cred span { color:var(--ink-mut); font-size:.9rem; }
.cta-band { display:flex; justify-content:space-between; align-items:center; gap:40px; flex-wrap:wrap; }
.cta-actions { display:flex; flex-direction:column; gap:12px; }
@media (max-width:820px){ .about-hero{ grid-template-columns:1fr; } .creds{ grid-template-columns:1fr; } .tl{ grid-template-columns:80px 1fr; gap:18px; } }
.ba-grid { display:grid; grid-template-columns:1fr 1.1fr; gap:clamp(32px,5vw,64px); align-items:center; }
.gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(18px,2.4vw,28px); }
.proj { border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--line); background:var(--paper); box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s; }
.proj:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.proj .ph { border-radius:0; border:0; border-bottom:1px solid var(--line); }
.proj-meta { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:18px 20px; }
.proj-meta b { display:block; font-family:var(--display); font-weight:600; font-size:1.08rem; }
.proj-meta span { color:var(--ink-mut); font-size:.9rem; }
@media (max-width:920px){ .gallery{ grid-template-columns:1fr 1fr; } .ba-grid{ grid-template-columns:1fr; } }
@media (max-width:560px){ .gallery{ grid-template-columns:1fr; } }
.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    overflow: hidden;
}
.hero-video-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25); /* степень затемнения */
    pointer-events: none;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.brand img{
  width: 60px;
}
.about-text p{
  margin-top: 16px;
}
.about-text h2{
  margin-top: 32px;
}
.about-text ul{
  padding-left: 30px;
}