:root {
  --bg: #f5f2ec;
  --surface: #ffffff;
  --text: #242424;
  --muted: #6e6a64;
  --gold: #b8894b;
  --gold-dark: #946b36;
  --line: rgba(36, 36, 36, .13);
  --radius: 26px;
  --shadow: 0 24px 70px rgba(36, 36, 36, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; font-family: "Manrope", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,242,236,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav { min-height: 82px; display: flex; align-items: center; gap: 32px; }
.brand { width: 188px; height: 54px; display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.nav-links { display: flex; gap: 27px; margin-left: auto; align-items: center; font-size: 14px; font-weight: 700; }
.nav-links > a { transition: color .2s ease; }
.nav-links > a:hover { color: var(--gold-dark); }
.nav-mobile-contacts { display: none; }
.header-phone { padding: 11px 17px; border: 1px solid var(--text); border-radius: 999px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.menu-button { display: none; margin-left: auto; border: 0; background: transparent; padding: 9px; cursor: pointer; }
.menu-button span { display: block; width: 27px; height: 2px; margin: 5px 0; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.eyebrow { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: 12px; color: var(--gold-dark); }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(42px, 6vw, 76px); line-height: 1.03; letter-spacing: -.05em; }
h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 53px); line-height: 1.08; letter-spacing: -.04em; }
h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.2; }
.hero-text { max-width: 650px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; }
.button { min-height: 54px; padding: 0 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--text); color: white; }
.button-secondary { border: 1px solid var(--text); }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 20px; color: var(--muted); font-size: 13px; font-weight: 700; }
.hero-points span::before { content: "•"; color: var(--gold); margin-right: 8px; }
.hero-card { min-height: 590px; padding: 42px; border-radius: 42px; background: radial-gradient(circle at 72% 18%, rgba(184,137,75,.28), transparent 36%), linear-gradient(145deg,#f7f2e9,#d8cbb9); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero-logo { width: min(100%, 430px); margin: auto; object-fit: contain; filter: drop-shadow(0 16px 30px rgba(0,0,0,.16)); }
.hero-card-footer { display: flex; justify-content: space-between; gap: 10px; color: rgba(36,36,36,.68); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.section { padding: 94px 0; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.heading-row { max-width: none; display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.heading-note { max-width: 410px; color: var(--muted); }
.services-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 20px; }
.service-card { grid-column: span 2; min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.5); display: flex; flex-direction: column; }
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card h3 { margin-top: auto; font-size: 26px; }
.service-card p { color: var(--muted); margin-bottom: 0; }
.service-number { color: var(--gold); font-size: 13px; font-weight: 800; }
.portfolio-section { background: #ebe6dc; }
.portfolio-filters { display: flex; gap: 10px; margin: 0 0 32px; overflow-x: auto; padding: 3px 0 9px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.filter-button { flex: 0 0 auto; border: 1px solid rgba(36,36,36,.18); background: rgba(255,255,255,.58); color: var(--text); border-radius: 999px; padding: 11px 18px; font-weight: 750; cursor: pointer; transition: .2s ease; }
.filter-button:hover { border-color: var(--gold); }
.filter-button.active { background: var(--text); color: white; border-color: var(--text); }
.portfolio-grid { column-count: 3; column-gap: 22px; }
.project { display: inline-block; width: 100%; margin: 0 0 22px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: white; box-shadow: 0 10px 32px rgba(36,36,36,.07); vertical-align: top; }
.project-media { position: relative; border: 0; padding: 0; width: 100%; display: block; background: #ddd5c8; cursor: zoom-in; overflow: hidden; }
.project-image { width: 100%; height: auto; object-fit: contain; background: #e2dbd0; transition: transform .35s ease; }
.project-media:hover .project-image { transform: scale(1.018); }
.project-category { position: absolute; top: 14px; left: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(24,24,24,.78); color: #fff; backdrop-filter: blur(8px); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.project-info { padding: 22px; }
.project-info p { margin-bottom: 0; color: var(--muted); overflow-wrap: anywhere; }
.portfolio-loading,.portfolio-empty { column-span: all; min-height: 220px; padding: 36px; display: grid; place-items: center; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.45); }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }
.process-grid article { padding: 30px 26px 20px 0; }
.process-grid span { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 42px; border: 1px solid var(--gold); color: var(--gold-dark); border-radius: 50%; font-weight: 800; }
.process-grid p { color: var(--muted); }
.cta { padding: 84px 0; color: white; background: var(--text); }
.cta-grid { display: grid; grid-template-columns: 1fr minmax(290px,390px); gap: 50px; align-items: center; }
.cta h2 { max-width: 760px; }
.cta p { color: rgba(255,255,255,.68); max-width: 720px; }
.eyebrow-light { color: #d6b17e !important; }
.contact-buttons { display: grid; gap: 12px; }
.contact-button { padding: 15px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: background .2s,border-color .2s,transform .2s; }
.contact-button:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); transform: translateY(-1px); }
.contact-button span { color: rgba(255,255,255,.63); font-size: 13px; }
.contact-button strong { color: white; }
.contact-call { background: var(--gold); border-color: var(--gold); }
.contact-call span { color: rgba(255,255,255,.82); }
footer { padding: 30px 0; background: #ede7dc; color: var(--muted); border-top: 1px solid var(--line); }
.footer-grid { display: flex; align-items: center; gap: 24px; }
.footer-brand { width: 180px; height: 52px; flex: 0 0 auto; }
.footer-brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.footer-grid p { margin: 0; font-size: 13px; }
.footer-links { margin-left: auto; display: flex; gap: 18px; align-items: center; font-weight: 750; font-size: 14px; }
.footer-links a:hover { color: var(--gold-dark); }
.mobile-contact-bar { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; padding: 24px; background: rgba(12,12,12,.94); display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(94vw,1500px); max-height: 84vh; object-fit: contain; }
.lightbox p { margin: 12px 50px 0; color: white; text-align: center; }
.lightbox-close { position: absolute; top: max(16px,env(safe-area-inset-top)); right: 18px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: rgba(0,0,0,.35); font-size: 32px; cursor: pointer; }
@media (max-width: 1000px) {
  .nav-links,.header-phone { display: none; }
  .menu-button { display: block; }
  .nav-links.open { position: absolute; top: 82px; left: 20px; right: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: white; border-radius: 18px; box-shadow: var(--shadow); max-height: calc(100vh - 100px); overflow-y: auto; }
  .nav-links.open > a { padding: 13px; border-radius: 10px; }
  .nav-links.open > a:hover { background: var(--bg); }
  .nav-mobile-contacts { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-mobile-contacts a { padding: 11px 6px; border-radius: 10px; background: var(--text); color: white; text-align: center; font-size: 12px; }
  .hero-grid,.cta-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 480px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .service-card,.service-card:nth-child(4) { grid-column: auto; }
  .service-card:last-child { grid-column: 1 / -1; }
  .portfolio-grid { column-count: 2; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .heading-row { display: block; }
  .footer-grid { flex-wrap: wrap; }
  .footer-links { width: 100%; margin-left: 0; }
}
@media (max-width: 700px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .container { width: min(100% - 28px,1180px); }
  .nav { min-height: 72px; }
  .brand { width: 158px; height: 46px; }
  .nav-links.open { top: 72px; left: 14px; right: 14px; }
  .hero { padding: 45px 0 58px; }
  h1 { font-size: clamp(39px,12vw,52px); }
  .hero-text { font-size: 16px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-card { min-height: 390px; padding: 24px; border-radius: 28px; }
  .hero-card-footer { flex-direction: column; gap: 3px; }
  .section { padding: 66px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; }
  .service-card { min-height: 210px; }
  .portfolio-filters { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .portfolio-grid { column-count: 1; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { padding-right: 0; }
  .process-grid span { margin-bottom: 18px; }
  .cta { padding: 62px 0; }
  .contact-button { min-height: 60px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-brand { width: 170px; }
  .footer-links { flex-wrap: wrap; gap: 13px 18px; }
  .mobile-contact-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); background: rgba(24,24,24,.96); backdrop-filter: blur(14px); box-shadow: 0 -10px 30px rgba(0,0,0,.14); }
  .mobile-contact-bar a { min-height: 48px; display: grid; place-items: center; padding: 5px; color: white; text-align: center; font-size: 12px; font-weight: 800; border-radius: 10px; }
  .mobile-contact-bar a:first-child { background: var(--gold); }
  .lightbox { padding: 12px; }
  .lightbox img { max-width: 100%; max-height: 78vh; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; } }


.project-image-error {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  background: #e2dbd0;
  font-weight: 800;
}
.project-image-error[hidden] { display: none; }
.viber-fallback {
  position: fixed;
  z-index: 120;
  right: 18px;
  bottom: 18px;
  width: min(390px, calc(100% - 36px));
  padding: 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: #242424;
  color: white;
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
}
.viber-fallback[hidden] { display: none; }
.viber-fallback strong { display: block; padding-right: 34px; font-size: 18px; }
.viber-fallback p { margin: 8px 0 14px; color: rgba(255,255,255,.72); font-size: 14px; }
.viber-fallback-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 24px;
  cursor: pointer;
}
.copy-number-button {
  min-height: 44px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 700px) {
  .viber-fallback {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: calc(100% - 24px);
  }
  .project-media { min-height: 180px; }
  .filter-button { min-height: 46px; }
}
