@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #262521;
  --muted: #77756f;
  --paper: #f7f6f2;
  --white: #fff;
  --accent: #977451;
  --line: #e7e4dc;
  --green: #2faa6d;
  --red: #d35f55;
  font-family: 'DM Sans', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  font-size: 16px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
button, input { font: inherit; }

.site-header {
  height: 82px;
  padding: 0 6.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--white);
  position: relative;
  z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: .12em; font-size: 14px; }
.brand img { object-fit: contain; }
.brand small { display: block; color: #817e76; font-size: 9px; letter-spacing: .17em; font-weight: 600; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 54px); margin-left: auto; }
.main-nav a, .header-phone { font-size: 14px; text-decoration: none; transition: color .2s ease; }
.main-nav a { color: #56544f; }
.main-nav a:hover, .header-phone:hover { color: var(--accent); }
.header-phone { white-space: nowrap; font-weight: 600; margin-left: clamp(12px, 3vw, 52px); }
.header-phone span { font-size: 18px; margin-right: 5px; }
.menu-toggle { display: none; }

.hero { min-height: min(690px, calc(100vh - 82px)); height: 650px; max-height: 760px; position: relative; color: var(--white); display: flex; align-items: center; overflow: hidden; background: #302f2b; }
.hero-image { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(25,24,22,.79) 0%, rgba(25,24,22,.43) 46%, rgba(25,24,22,.06) 100%), url('./assets/dubko-2-small.webp'); background-size: cover; background-position: center 54%; transform: scale(1.01); }
.hero-content { position: relative; width: min(620px, 58%); margin-left: 10.2%; padding: 70px 0 80px; }
.eyebrow { margin: 0 0 23px; color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; font-weight: 700; }
.hero .eyebrow { color: #d8c3a9; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .empty-card h3 { font-family: Manrope, 'DM Sans', Arial, sans-serif; }
.hero h1 { margin: 0; font-size: clamp(52px, 7.1vw, 92px); line-height: .99; letter-spacing: -.065em; font-weight: 600; }
.hero-copy { max-width: 435px; margin: 25px 0 33px; color: rgba(255,255,255,.83); font-size: 17px; line-height: 1.8; }
.button { min-height: 52px; display: inline-flex; justify-content: center; align-items: center; gap: 30px; padding: 0 22px; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 700; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-light { border: 1px solid rgba(255,255,255,.75); color: var(--white); }
.button-light:hover { background: var(--white); color: var(--ink); }
.button span { font-size: 16px; }
.hero-caption { position: absolute; bottom: 37px; left: 6.2%; font-size: 11px; letter-spacing: .03em; color: rgba(255,255,255,.75); display: flex; gap: 11px; align-items: center; }
.caption-line { width: 28px; height: 1px; background: #d0b99d; }
.hero-index { position: absolute; right: 6.2%; bottom: 37px; font-size: 10px; letter-spacing: .12em; color: rgba(255,255,255,.7); }

.section-wrap { width: min(1140px, 87.6%); margin: 0 auto; }
.intro { padding: 112px 0 102px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 12%; align-items: end; }
.section-heading h2, .spaces-heading h2, .location h2, .contact-band h2 { margin-bottom: 0; font-size: clamp(34px, 4.1vw, 52px); line-height: 1.13; letter-spacing: -.055em; font-weight: 600; }
.section-heading h2 span, .spaces-heading h2 span { color: var(--accent); }
.intro-copy { padding-bottom: 4px; max-width: 410px; }
.intro-copy p, .body-copy, .spaces-intro { color: var(--muted); font-size: 15px; line-height: 1.9; }
.intro-copy p { margin-bottom: 22px; }
.text-link { display: inline-flex; gap: 18px; align-items: center; padding-bottom: 7px; border-bottom: 1px solid #c7b9a8; text-decoration: none; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.text-link span { font-size: 15px; }
.text-link:hover { color: var(--accent); }

.benefits { padding: 32px 6.2% 41px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefit { padding: 10px 9% 6px; border-right: 1px solid var(--line); }
.benefit:last-child { border-right: 0; }
.benefit-number { display: inline-block; margin-bottom: 22px; color: var(--accent); font-size: 10px; letter-spacing: .1em; }
.benefit h3 { margin: 0 0 9px; font-size: 16px; font-weight: 600; }
.benefit p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 205px; }

.location { padding: 110px 0; display: grid; grid-template-columns: 1.02fr .98fr; gap: 9%; align-items: center; }
.location-image { min-height: 415px; background: url('./assets/dubko-4-1-small.webp') center / cover no-repeat; }
.location-content { padding: 20px 0; max-width: 440px; }
.location h2 { margin-bottom: 24px; }
.body-copy { margin-bottom: 24px; }
.address { display: flex; gap: 15px; align-items: center; font-size: 13px; line-height: 1.7; margin-bottom: 26px; }
.address-mark { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; font-size: 22px; color: var(--accent); }

.spaces-section { padding: 105px 0 92px; background: var(--paper); }
.spaces-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.spaces-intro { width: min(350px, 36%); margin: 0 0 5px; }
.plan-shell { width: min(1320px, 91%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(290px, .72fr); background: var(--white); box-shadow: 0 18px 55px rgba(48,43,34,.07); }
.plan-column { min-width: 0; border-right: 1px solid var(--line); }
.plan-controls { min-height: 91px; padding: 17px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.floor-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.floor-tab { min-height: 34px; padding: 0 10px; border: 0; background: transparent; color: #77756f; cursor: pointer; font-size: 14px; transition: color .2s, background .2s; }
.floor-tab:hover { color: var(--ink); background: #f4f1eb; }
.floor-tab.is-active { background: var(--ink); color: var(--white); }
.floor-tab:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible + .toggle-ui { outline: 2px solid var(--accent); outline-offset: 3px; }
.available-toggle { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #696760; font-size: 14px; cursor: pointer; }
.available-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { width: 28px; height: 16px; padding: 2px; border-radius: 12px; background: #d8d5ce; transition: background .2s; }
.toggle-ui::after { content: ''; display: block; width: 12px; height: 12px; background: white; border-radius: 50%; transition: transform .2s; }
.available-toggle input:checked + .toggle-ui { background: var(--green); }
.available-toggle input:checked + .toggle-ui::after { transform: translateX(12px); }
.plan-canvas { min-height: 420px; height: clamp(420px, 45vw, 650px); padding: 17px 20px; display: grid; place-items: center; overflow: hidden; background: #faf9f6; }
.plan-canvas svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.plan-canvas svg [id^="floor_"] { cursor: pointer; outline: none; }
.plan-canvas svg [id^="floor_"] [id^="floor-icon_"] { display: none !important; }
.plan-canvas svg [id^="floor_"]:hover [id="floor-polygon"],
.plan-canvas svg [id^="floor_"]:focus [id="floor-polygon"],
.plan-canvas svg [id^="floor_"][data-selected="true"] [id="floor-polygon"] { fill: rgba(35, 64, 110, .18) !important; fill-opacity: .72 !important; stroke: #31291e !important; stroke-width: 3 !important; }
.plan-canvas svg [id^="floor_"]:hover [id^="floor-icon_"],
.plan-canvas svg [id^="floor_"]:focus [id^="floor-icon_"],
.plan-canvas svg [id^="floor_"][data-selected="true"] [id^="floor-icon_"] { display: inline !important; }
.plan-canvas svg g[id^="office_"] { cursor: pointer; outline: none; }
.plan-canvas svg g.rental-available [id^="office-polygon"] { fill: #2faa33 !important; fill-opacity: .3 !important; }
.plan-canvas svg g.rental-unavailable [id^="office-polygon"] { fill: #ff0033 !important; fill-opacity: .3 !important; }
.plan-canvas svg g.rental-available:hover [id^="office-polygon"],
.plan-canvas svg g.rental-available:focus [id^="office-polygon"],
.plan-canvas svg g.rental-unavailable:hover [id^="office-polygon"],
.plan-canvas svg g.rental-unavailable:focus [id^="office-polygon"] { fill-opacity: 0 !important; }
.plan-canvas svg g[id^="office_"]:focus [id^="office-polygon"],
.plan-canvas svg g[id^="office_"]:hover [id^="office-polygon"],
.plan-canvas svg g[id^="office_"][data-selected="true"] [id^="office-polygon"] { fill-opacity: .72 !important; stroke: #31291e !important; stroke-width: 4 !important; }
.plan-canvas svg g[data-hidden="true"] { display: none !important; }
.plan-loading { color: var(--muted); font-size: 13px; }
.plan-legend { min-height: 48px; padding: 0 23px; display: flex; align-items: center; flex-wrap: wrap; gap: 17px; border-top: 1px solid var(--line); color: #76736c; font-size: 10px; }
.plan-legend > span:not(.plan-tip) { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-free { background: var(--green); }
.dot-busy { background: var(--red); }
.plan-tip { margin-left: auto; color: #99968d; }
.space-card { padding: 34px 30px; display: flex; align-items: center; min-height: 560px; }
.empty-card { width: 100%; }
.card-kicker { display: block; margin-bottom: 51px; color: var(--accent); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.empty-icon { display: block; color: #c9b79f; font-size: 32px; font-weight: 300; margin-bottom: 17px; }
.empty-card h3 { margin-bottom: 15px; font-size: 27px; font-weight: 600; letter-spacing: -.04em; line-height: 1.15; }
.empty-card p, .selected-description { margin: 0 0 25px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.selected-card { width: 100%; }
.selected-card[hidden] { display: none; }
.selected-top { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.selected-floor { margin: 0 0 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .15em; font-size: 9px; font-weight: 700; }
.selected-card h3 { margin: 0; font-family: Manrope, 'DM Sans', Arial, sans-serif; font-size: 34px; letter-spacing: -.05em; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 7px 9px; font-size: 10px; font-weight: 600; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-free { color: #238453; background: #ecf6ef; }
.status-busy { color: #ad4b42; background: #fbefed; }
.space-spec { margin: 24px 0 23px; padding: 0; }
.space-spec div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #efede8; }
.space-spec dt { color: var(--muted); font-size: 11px; }
.space-spec dd { margin: 0; font-size: 12px; text-align: right; font-weight: 600; }
.lessor { margin-bottom: 21px; }
.lessor-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.lessor-name { display: block; margin-bottom: 11px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.lessor-contacts { display: grid; gap: 8px; }
.lessor-contacts a { width: fit-content; font-size: 11px; text-decoration: none; }
.lessor-contacts a:hover { color: var(--accent); }
.selected-card .button { width: 100%; min-height: 46px; margin-top: 5px; font-size: 9px; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--accent); }
.plan-canvas svg g.unlisted [id^="office-polygon"] { fill: #8a8883 !important; fill-opacity: .38 !important; }
.plan-canvas svg g.unlisted { cursor: not-allowed; }
.sheet-status { display: none !important; }
.sheet-status.is-error { color: #8d3831; background: #fbefed; }
.sheet-status p { margin: 0; font-size: 11px; line-height: 1.7; }
.sheet-status a, .data-note a { color: inherit; text-underline-offset: 3px; }
.sheet-status a { flex: 0 0 auto; font-size: 10px; }
.data-note { width: min(1320px, 91%); margin: 10px auto 0; color: #8b887f; font-size: 10px; line-height: 1.7; }

.contact-band { padding: 83px 10%; display: flex; justify-content: space-between; align-items: end; gap: 40px; background: #e8e4db; }
.contact-band .eyebrow { margin-bottom: 14px; }
.contact-band h2 { font-size: clamp(32px, 3.6vw, 46px); }
.contact-band-actions { width: min(340px, 37%); }
.contact-band-actions p { color: #706d66; font-size: 12px; line-height: 1.8; margin-bottom: 18px; }
.contact-band .button { min-height: 46px; }
.site-footer { min-height: 120px; padding: 28px 6.2%; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #e8e5de; background: #292824; }
.footer-brand small { color: #a9a69e; }
.footer-address, .footer-contact, .copyright { color: #c3c0b8; font-size: 10px; line-height: 1.8; }
.footer-contact { display: grid; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--white); }
.copyright { color: #8e8b84; }

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(32, 28, 22, .22);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
  z-index: 30;
}

.scroll-top:hover {
  background: var(--accent);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top span {
  font-size: 24px;
  line-height: 1;
}

@media (min-width: 1500px) {
  .hero-content { margin-left: calc((100% - 1200px) / 2); }
}
@media (max-width: 1050px) {
  .site-header { padding: 0 4%; gap: 15px; }
  .main-nav { gap: 20px; }
  .header-phone { margin-left: 10px; font-size: 12px; }
  .plan-shell { grid-template-columns: minmax(0, 1.4fr) minmax(255px, .72fr); }
  .plan-controls { align-items: flex-start; flex-direction: column; gap: 10px; }
  .space-card { padding: 27px 22px; }
}
@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 5%; }
  .brand img { width: 38px; height: 38px; }
  .header-phone { margin-left: auto; font-size: 0; }
  .header-phone span { font-size: 20px; }
  .menu-toggle { display: flex; width: 38px; height: 38px; padding: 10px 6px; flex-direction: column; justify-content: center; gap: 6px; border: 0; background: transparent; cursor: pointer; order: 3; }
  .menu-toggle span { height: 1px; width: 25px; background: var(--ink); }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 70px; padding: 18px 6%; background: var(--white); box-shadow: 0 15px 25px #00000012; }
  .main-nav.is-open { display: grid; gap: 0; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero { height: min(650px, calc(100svh - 70px)); min-height: 520px; }
  .hero-image { background-position: 57% center; }
  .hero-content { width: 85%; margin-left: 7%; padding: 55px 0; }
  .hero h1 { font-size: clamp(54px, 12vw, 78px); }
  .hero-copy { max-width: 360px; font-size: 14px; }
  .hero-caption { left: 7%; bottom: 24px; font-size: 9px; }
  .hero-index { right: 7%; bottom: 24px; font-size: 8px; }
  .section-wrap { width: 86%; }
  .intro { padding: 77px 0 68px; grid-template-columns: 1fr; gap: 27px; }
  .intro-copy { max-width: 500px; }
  .benefits { grid-template-columns: repeat(2, 1fr); padding: 22px 7%; }
  .benefit { min-height: 152px; padding: 15px 8%; border-bottom: 1px solid var(--line); }
  .benefit:nth-child(2) { border-right: 0; }
  .benefit:nth-child(3), .benefit:nth-child(4) { border-bottom: 0; }
  .benefit-number { margin-bottom: 14px; }
  .location { padding: 75px 0; grid-template-columns: 1fr; gap: 32px; }
  .location-image { min-height: 300px; }
  .location-content { padding: 0; }
  .spaces-section { padding: 74px 0 65px; }
  .spaces-heading { align-items: flex-start; flex-direction: column; margin-bottom: 27px; }
  .spaces-intro { width: 100%; max-width: 450px; }
  .plan-shell { width: 92%; grid-template-columns: 1fr; }
  .plan-column { border-right: 0; }
  .plan-controls { min-height: 0; padding: 15px; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .floor-tabs { gap: 3px; }
  .floor-tab { padding: 0 8px; font-size: 12px; }
  .available-toggle { font-size: 9px; }
  .plan-canvas { height: clamp(290px, 75vw, 460px); min-height: 290px; padding: 10px; }
  .plan-legend { padding: 11px 15px; gap: 12px; }
  .plan-tip { width: 100%; margin: 0; }
  .sheet-status { width: 92%; align-items: flex-start; flex-direction: column; }
  .data-note { width: 92%; }
  .space-card { min-height: 0; padding: 25px 22px 28px; border-top: 1px solid var(--line); }
  .card-kicker { margin-bottom: 22px; }
  .empty-card h3 { font-size: 24px; }
  .empty-icon { display: none; }
  .selected-card h3 { font-size: 30px; }
  .contact-band { padding: 62px 7%; flex-direction: column; align-items: flex-start; gap: 25px; }
  .contact-band-actions { width: 100%; max-width: 420px; }
  .site-footer { padding: 27px 7%; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .footer-address { justify-self: end; }
  .copyright { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .header-phone { display: none; }
  .plan-controls { align-items: flex-start; flex-direction: column; }
  .floor-tabs { max-width: 100%; }
  .floor-tab { min-height: 31px; }
}
