:root {
  --black: #050505;
  --black-2: #0d0d0d;
  --yellow: #ffb000;
  --white: #fff;
  --muted: #aaa7a0;
  --line: rgba(255,255,255,.14);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
html { background: var(--black); }
body {
  margin: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }

.home {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  background: #090909;
}
.home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("assets/facade-01.webp") 63% 50% / cover no-repeat;
  transform: scale(1.02);
}
.home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,5,5,.98) 0%, rgba(5,5,5,.91) 43%, rgba(5,5,5,.38) 72%, rgba(5,5,5,.18) 100%),
    linear-gradient(0deg, rgba(5,5,5,.74) 0%, transparent 38%);
}
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.shell {
  width: min(1260px, calc(100% - 64px));
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(18px + var(--safe-top)) 0 calc(18px + var(--safe-bottom));
}
.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: .015em;
}
.brand-icon {
  position: relative;
  width: 35px;
  height: 35px;
  border: 2px solid var(--yellow);
  border-top: 0;
  transform: translateY(2px);
}
.brand-icon::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: -11px;
  border-top: 2px solid var(--yellow);
  border-left: 2px solid var(--yellow);
  transform: rotate(45deg);
}
.brand-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 7px;
  bottom: 7px;
  background: var(--yellow);
  box-shadow: 10px 0 0 var(--yellow), 0 -10px 0 var(--yellow), 10px -10px 0 var(--yellow);
}
.brand span span, .panel-brand span { color: var(--yellow); }
.brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.58);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.top-actions { display: flex; align-items: center; gap: 10px; }
.phone-link {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s ease, background .2s ease;
}
.phone-link:hover { border-color: var(--yellow); background: rgba(255,176,0,.08); }
.phone-link svg { width: 16px; height: 16px; color: var(--yellow); }
.menu-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.menu-button:hover { transform: rotate(4deg); background: #ffc23d; }
.menu-lines, .menu-lines::before, .menu-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #090909;
  border-radius: 2px;
}
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  gap: 60px;
  align-items: center;
  min-height: 0;
  padding: 42px 0 30px;
}
.hero-content { align-self: center; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 38px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(46px, 6.1vw, 86px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 780;
  text-wrap: balance;
}
h1 em { color: var(--yellow); font-style: normal; }
.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.71);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: #070707; background: var(--yellow); }
.button.primary:hover { background: #ffc23d; }
.button.secondary { color: #fff; border-color: rgba(255,255,255,.31); background: rgba(255,255,255,.05); }
.button.secondary:hover { border-color: var(--yellow); background: rgba(255,176,0,.08); }
.button svg { width: 17px; height: 17px; }
.hero-meta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255,255,255,.6);
  font-size: 12px;
}
.hero-meta strong { color: #fff; font-size: 15px; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--yellow); }
.hero-logo {
  justify-self: end;
  align-self: end;
  width: min(330px, 29vw);
  margin-bottom: 10px;
  opacity: .96;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.5));
}
.bottom-nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.bottom-caption { color: rgba(255,255,255,.45); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.service-jump {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.83);
  background: rgba(255,255,255,.09);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(10px);
  transition: background .2s ease, color .2s ease;
}
.service-jump:hover { color: #080808; background: var(--yellow); }
.service-jump span { color: var(--yellow); }
.service-jump:hover span { color: #080808; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  opacity: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  transition: opacity .28s ease, visibility .28s ease;
}
.backdrop.open { visibility: visible; opacity: 1; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(500px, 100%);
  height: 100vh;
  height: 100dvh;
  padding: calc(22px + var(--safe-top)) 32px calc(24px + var(--safe-bottom));
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #0a0a0a;
  border-left: 1px solid var(--line);
  transform: translateX(101%);
  transition: transform .34s cubic-bezier(.22,.8,.28,1);
}
.drawer.open { transform: translateX(0); }
.drawer-head { min-height: 60px; display: flex; align-items: center; justify-content: space-between; }
.drawer-label, .panel-kicker { color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.icon-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.icon-button:hover { border-color: var(--yellow); background: rgba(255,176,0,.09); }
.icon-button svg { width: 20px; height: 20px; }
.menu-list { align-self: center; display: grid; }
.menu-item {
  width: 100%;
  padding: 21px 0;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.menu-item:first-child { border-top: 1px solid var(--line); }
.menu-item .num { color: var(--yellow); font-size: 11px; font-weight: 800; }
.menu-item .label { font-size: clamp(25px, 5vw, 40px); line-height: 1; font-weight: 700; letter-spacing: -.035em; }
.menu-item svg { width: 20px; height: 20px; color: rgba(255,255,255,.42); transition: transform .2s ease, color .2s ease; }
.menu-item:hover svg { color: var(--yellow); transform: translateX(5px); }
.drawer-footer { display: grid; gap: 8px; color: rgba(255,255,255,.55); font-size: 12px; }
.drawer-footer a:hover { color: var(--yellow); }

.panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--black-2);
  transform: translateY(26px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.panel.open { visibility: visible; opacity: 1; transform: none; }
.panel-top {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: calc(14px + var(--safe-top)) 0 14px;
  background: rgba(13,13,13,.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.panel-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.panel-brand { font-size: 13px; font-weight: 850; letter-spacing: .04em; }
.panel-content { padding: 70px 0 90px; }
.panel-intro {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  gap: 72px;
  align-items: end;
  margin-bottom: 52px;
}
.panel-kicker { margin-bottom: 14px; }
.panel h2 { margin-bottom: 0; font-size: clamp(44px, 6vw, 84px); line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.panel-copy { max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.72; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: rgba(255,255,255,.74); font-size: 11px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 12px; }
.photo {
  position: relative;
  grid-column: span 4;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #202020;
  cursor: zoom-in;
}
.photo.wide { grid-column: span 8; }
.photo.tall { min-height: 430px; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.photo::after {
  content: "Переглянути";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(5,5,5,.65);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 10px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(10px);
}
.photo:hover img { transform: scale(1.025); filter: brightness(.88); }
.photo:hover::after { opacity: 1; transform: none; }
.panel-cta {
  margin-top: 42px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #151515;
}
.panel-cta h3 { margin-bottom: 7px; font-size: 25px; }
.panel-cta p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.contacts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.contact-card {
  min-height: 190px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #151515;
  transition: border-color .2s ease, transform .2s ease;
}
.contact-card:hover { border-color: var(--yellow); transform: translateY(-2px); }
.contact-card small { color: var(--yellow); font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.contact-card strong { font-size: clamp(22px, 3vw, 34px); letter-spacing: -.03em; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  opacity: 0;
  display: grid;
  grid-template-columns: 68px 1fr 68px;
  grid-template-rows: 70px 1fr 62px;
  background: rgba(0,0,0,.95);
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { visibility: visible; opacity: 1; }
.lightbox-close { grid-column: 3; justify-self: center; align-self: center; }
.lightbox-figure { grid-column: 2; grid-row: 2; min-height: 0; margin: 0; display: grid; place-items: center; }
.lightbox-image { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 3px; }
.lightbox-prev, .lightbox-next { align-self: center; justify-self: center; }
.lightbox-prev { grid-column: 1; grid-row: 2; }
.lightbox-next { grid-column: 3; grid-row: 2; }
.lightbox-caption { grid-column: 2; grid-row: 3; align-self: center; text-align: center; color: rgba(255,255,255,.62); font-size: 12px; }

@media (max-width: 920px) {
  .shell { width: min(100% - 38px, 1260px); }
  .hero { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .home::before { background-position: 68% center; }
  .home::after { background: linear-gradient(90deg, rgba(5,5,5,.97), rgba(5,5,5,.66) 72%, rgba(5,5,5,.35)); }
  .panel-intro { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .photo, .photo.wide { grid-column: span 6; }
  .photo.wide { min-height: 380px; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 26px, 1260px); }
  .topbar { min-height: 64px; }
  .brand-icon { width: 29px; height: 29px; }
  .brand-icon::before { width: 20px; height: 20px; left: 2px; top: -9px; }
  .brand-icon::after { width: 6px; height: 6px; left: 5px; bottom: 5px; box-shadow: 9px 0 0 var(--yellow), 0 -9px 0 var(--yellow), 9px -9px 0 var(--yellow); }
  .brand small { display: none; }
  .phone-link span { display: none; }
  .phone-link { width: 44px; padding: 0; justify-content: center; }
  .menu-button { width: 44px; height: 44px; }
  .hero { padding: 22px 0 16px; }
  .eyebrow { margin-bottom: 12px; font-size: 9px; }
  h1 { margin-bottom: 15px; font-size: clamp(38px, 12.4vw, 58px); }
  .hero-copy { margin-bottom: 20px; font-size: 14px; line-height: 1.52; }
  .button { min-height: 48px; padding: 0 17px; font-size: 12px; }
  .hero-meta { margin-top: 22px; gap: 12px; font-size: 10px; }
  .hero-meta strong { font-size: 13px; }
  .bottom-nav { grid-template-columns: 1fr 1fr; }
  .bottom-caption { display: none; }
  .service-jump { justify-content: center; padding: 0 10px; font-size: 11px; }
  .drawer { padding-left: 20px; padding-right: 20px; }
  .menu-item { grid-template-columns: 35px 1fr auto; padding: 18px 0; }
  .panel-wrap { width: min(100% - 26px, 1180px); }
  .panel-content { padding: 38px 0 60px; }
  .panel-intro { margin-bottom: 30px; }
  .panel h2 { font-size: clamp(40px, 13vw, 60px); }
  .panel-copy { font-size: 14px; line-height: 1.62; }
  .gallery { gap: 8px; }
  .photo, .photo.wide { grid-column: span 12; min-height: 280px; }
  .photo.tall { min-height: 420px; }
  .panel-cta { padding: 22px; grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 150px; }
  .lightbox { grid-template-columns: 48px 1fr 48px; grid-template-rows: 60px 1fr 55px; }
}

@media (max-width: 640px) and (max-height: 720px) {
  .hero {
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .hero-copy {
    margin-bottom: 14px;
  }

  .hero-meta {
    display: none;
  }
}
@media (max-height: 720px) and (min-width: 641px) {
  .shell { padding-top: 8px; padding-bottom: 10px; }
  .topbar { min-height: 62px; }
  .hero { padding-top: 20px; padding-bottom: 15px; }
  h1 { font-size: clamp(42px, 5.5vw, 68px); margin-bottom: 14px; }
  .hero-copy { margin-bottom: 18px; }
  .hero-meta { margin-top: 20px; }
  .bottom-nav { padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
