:root {
  --ink: #17191B;
  --ink-2: #22252A;
  --ink-line: #33363A;
  --paper: #EEEEEA;
  --card: #F7F6F3;
  --line: #CFCCC5;
  --text: #1B1D1F;
  --text-2: #45484B;
  --muted-dark: #A9A59E;
  --on-dark: #F2F1EE;
  --on-dark-2: #C9C6BF;
  --amber: #D08A3C;
  --amber-light: #E6A866;
  --amber-dark: #8F4E14;
  --display: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--amber-dark); }
a:hover { color: #5E320B; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: clamp(36px, 5vw, 66px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: 21px; font-weight: 500; line-height: 1.2; }
p { margin: 0; }
section { padding: 88px 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--ink); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.center { text-align: center; margin-top: 40px; }

.dark { background: var(--ink); color: var(--on-dark); }
.graphite { background: var(--ink-2); color: var(--on-dark); }
.amber { background: var(--amber); color: var(--ink); }
.paper { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark a, .graphite a { color: var(--amber-light); }

.kicker { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--amber-dark); margin-bottom: 10px; }
.kicker-light { color: var(--amber); }
.lead-muted { color: var(--on-dark-2); font-size: 18px; margin-top: 16px; max-width: 640px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 24px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-amber { background: var(--amber); color: var(--ink) !important; }
.btn-amber:hover { background: var(--amber-light); }
.btn-ghost { border-color: #5A5D60; color: var(--on-dark) !important; }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink) !important; }
.btn-outline:hover { background: var(--ink); color: var(--on-dark) !important; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--ink); color: var(--on-dark); border-bottom: 1px solid #2B2E31; }
.header-row { display: flex; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 25px; letter-spacing: 0.14em; }
.logo:hover { color: var(--on-dark); }
.logo-mark { width: 14px; height: 14px; background: var(--amber); display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1 1 auto; font-size: 15px; }
.site-nav a { color: #D9D6D0; text-decoration: none; padding: 10px 0; }
.site-nav a:hover { color: #fff; }
.header-phone { color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.header-phone:hover { color: var(--amber-light); }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; letter-spacing: 0.06em; color: #D9D6D0; border: 1px solid #3A3D40; text-decoration: none; }
.lang-switch a[aria-current] { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.header-cta { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: transparent; border: 1px solid #3A3D40; color: var(--on-dark); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; order: 3; margin-left: 0; }
  .header-row { flex-wrap: wrap; }
  .header-phone { margin-left: auto; }
  .site-nav { display: none; order: 10; flex-basis: 100%; flex-direction: column; gap: 0; border-top: 1px solid #2B2E31; padding-top: 6px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 17px; }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header-row { gap: 10px; }
  .header-phone { display: none; }
  .lang-switch { margin-left: auto; }
  .logo { font-size: 21px; letter-spacing: 0.12em; }
  .lang-switch a { min-width: 38px; }
  section { padding: 64px 0; }
}

/* hero */
.hero { padding: 56px 0 80px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.hero-text .kicker { margin: 0; }
.hero-sub { font-size: 19px; color: var(--on-dark-2); max-width: 580px; }
.facts { display: flex; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--ink-line); padding-top: 24px; margin: 8px 0 0; }
.facts div { flex: 1 1 140px; }
.facts dt { font-family: var(--display); font-size: 30px; font-weight: 500; }
.facts dd { margin: 2px 0 0; font-size: 14px; color: var(--muted-dark); }
.hero-img { flex: 1 1 420px; min-height: 460px; margin: 0; position: relative; overflow: hidden; border: 1px solid var(--ink-line); }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img figcaption { position: absolute; left: 16px; bottom: 16px; font-size: 13px; background: rgba(23,25,27,.85); padding: 6px 10px; }
@media (max-width: 560px) { .hero-img { min-height: 300px; } .hero { padding-top: 36px; } }

/* section heads */
.section-head { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-head-main { flex: 1 1 460px; }
.section-sub { flex: 1 1 340px; max-width: 480px; font-size: 17px; }
.dark .section-sub, .graphite .section-sub { color: var(--on-dark-2); }

/* rules + columns */
.cols-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; padding: 0; margin: 0; list-style: none; }
.rule-item { padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.rule-ink { border-top: 2px solid var(--ink); }
.rule-amber { border-top: 2px solid var(--amber); }
.amber h3 { font-weight: 600; font-size: 22px; }
.steps { margin-top: 44px; }
.step-num { font-family: var(--display); font-size: 44px; color: var(--amber); line-height: 1; }
.steps h3 { font-family: var(--body); text-transform: none; font-weight: 600; font-size: 19px; }
.steps p { color: var(--on-dark-2); }

/* tiles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--card); padding: 26px; min-height: 180px; display: flex; flex-direction: column; gap: 10px; }
.tile p { font-size: 15px; color: var(--text-2); }
.num { font-family: var(--display); font-size: 15px; color: var(--amber-dark); font-weight: 500; }
.tile-grid-dark { background: #3A3D42; border-color: #3A3D42; }
.tile-grid-dark .tile { background: var(--ink-2); }
.tile-grid-dark .tile p { color: var(--on-dark-2); }
.tile-grid-dark .num { color: var(--amber); }
.term { font-size: 13px; color: var(--amber-light); font-weight: 600; letter-spacing: 0.03em; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.card-grid + .card-grid { margin-top: 24px; }
@media (max-width: 400px) { .card-grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { color: var(--text); border-color: var(--amber); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #DAD7D0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.card-body .kicker { margin-bottom: 4px; font-size: 12px; }
.card-body p { font-size: 15px; color: var(--text-2); margin-top: 6px; }
.tag { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 600; padding: 6px 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.tag-dark { background: var(--ink); color: var(--on-dark); }
.tag-amber { background: var(--amber); color: var(--ink); }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--line); }
.ba-cell { position: relative; aspect-ratio: 3 / 4; overflow: hidden; margin: 0; }
.ba-cell img { width: 100%; height: 100%; object-fit: cover; }
.ba-large .ba-cell { aspect-ratio: 4 / 3; }

/* about */
.about-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about-grid > * { flex: 1 1 440px; min-width: 0; }
.about-img { margin: 0; border: 1px solid var(--line); }
.about-text { font-size: 18px; color: #33363A; margin: 20px 0 24px; }
.team { display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; margin: 0; }
.team div { flex: 1 1 160px; }
.team dt { font-family: var(--display); text-transform: uppercase; font-size: 18px; font-weight: 500; }
.team dd { margin: 2px 0 0; font-size: 14px; color: #55585B; }

/* contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 340px; min-width: 0; }
.contact-list { margin: 32px 0 0; display: flex; flex-direction: column; gap: 18px; font-size: 17px; }
.contact-list dt { font-size: 13px; color: var(--muted-dark); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list dd { margin: 2px 0 0; }
.lead-form { flex: 1 1 520px; min-width: 0; background: var(--card); color: var(--text); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.lead-form a { color: var(--amber-dark); }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #33363A; }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form input[type=email], .lead-form textarea { height: 48px; border: 1px solid #A9A59E; background: #fff; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--text); }
.lead-form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.lead-form input[type=file] { font-size: 14px; font-weight: 400; padding: 8px 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.lead-form fieldset { border: 0; margin: 0; padding: 0; }
.lead-form legend { font-size: 14px; font-weight: 600; color: #33363A; padding: 0; margin-bottom: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; }
.checks .check { border: 1px solid #BDB9B1; background: #fff; padding: 8px 12px; min-height: 40px; cursor: pointer; }
.checks .check:has(input:checked) { border-color: var(--amber-dark); background: #FBF1E6; }
.lead-form input[type=checkbox] { accent-color: var(--amber-dark); width: 18px; height: 18px; margin: 0; flex: none; }
.lead-form label.consent { align-items: flex-start; font-size: 14px; color: var(--text-2); display: block; }
.lead-form label.consent input { display: inline-block; vertical-align: -3px; margin-right: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; min-height: 1px; }
.form-status.ok { color: #1E6B35; font-weight: 600; }
.form-status.err { color: #A3261B; font-weight: 600; }
@media (max-width: 560px) { .lead-form { padding: 20px; } }

/* page head + project */
.page-head { padding: 56px 0; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 56px); }
.page-head .meta { color: var(--on-dark-2); margin-top: 12px; }
.back { display: inline-block; margin-bottom: 18px; text-decoration: none; }
.project-body { display: flex; flex-direction: column; gap: 32px; }
.project-text { font-size: 18px; max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; }
.nf p { margin-top: 10px; color: var(--on-dark-2); }

/* gallery */
.gallery { background: var(--card); border: 1px solid var(--line); }
.gallery-main { position: relative; margin: 0; aspect-ratio: 16 / 10; background: var(--ink); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main figcaption { position: absolute; left: 16px; bottom: 16px; right: 72px; color: var(--on-dark); background: rgba(23,25,27,.88); font-size: 14px; padding: 8px 12px; width: fit-content; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; background: rgba(23,25,27,.75); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gallery-nav:hover { background: var(--amber); color: var(--ink); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px; }
.thumb { flex: none; width: 112px; height: 76px; padding: 0; border: 3px solid transparent; background: #DAD7D0; cursor: pointer; opacity: .75; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current] { border-color: var(--amber); opacity: 1; }
@media (max-width: 560px) { .gallery-main { aspect-ratio: 4 / 3; } .gallery-main figcaption { font-size: 13px; } }

/* footer */
.site-footer { background: #111214; color: var(--muted-dark); font-size: 14px; }
.site-footer a { color: var(--muted-dark); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-top: 32px; padding-bottom: 104px; }
.footer-logo { font-size: 20px; }

/* chat */
.chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 50; background: var(--amber); color: var(--ink); border: 0; min-height: 54px; padding: 0 20px; display: flex; align-items: center; gap: 10px; font: 600 15px var(--body); cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.chat-launcher:hover { background: var(--amber-light); }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 380px; max-width: calc(100vw - 32px); height: min(600px, calc(100vh - 40px)); background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.3); display: flex; flex-direction: column; }
.chat[hidden] { display: none; }
.chat-head { background: var(--ink); color: var(--on-dark); padding: 6px 6px 6px 16px; display: flex; align-items: center; gap: 12px; }
.chat-dot { width: 10px; height: 10px; background: var(--amber); flex: none; }
.chat-titles { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 15px; }
.chat-titles span { font-size: 12px; color: var(--muted-dark); }
.chat-close { width: 44px; height: 44px; background: transparent; border: 0; color: var(--on-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg-bot { background: var(--paper); align-self: flex-start; }
.msg-user { background: var(--ink); color: var(--on-dark); align-self: flex-end; }
.msg-typing { color: var(--text-2); font-style: italic; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chip { border: 1px solid var(--amber-dark); color: var(--amber-dark); background: #fff; padding: 8px 14px; border-radius: 22px; min-height: 40px; font: 14px var(--body); cursor: pointer; }
.chip:hover { background: #FBF1E6; }
.chat-form { border-top: 1px solid #E2E0DA; padding: 8px; display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; height: 44px; border: 0; padding: 0 8px; font: 15px var(--body); }
.chat-form input:focus-visible { outline: 2px solid var(--amber); }
.chat-form button { width: 44px; height: 44px; background: var(--amber); border: 0; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-note { font-size: 11px; color: #6B6E71; padding: 0 12px 10px; }
@media (max-width: 560px) {
  .chat { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; }
  .chat-launcher span { display: none; }
  .chat-launcher { padding: 0 16px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
