/* Shared city, office, visual and motion primitives. Loaded after the established site styles. */
:root { --motion-fast: 140ms; --motion-panel: 220ms; --ease-ui: cubic-bezier(.2,.7,.2,1); }
.ui-icon { flex-shrink:0; vertical-align:middle; }
.visual-illustration { display:block; width:100%; height:auto; color:var(--ink); }
.header-contact-trigger,.footer-contact-trigger { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); cursor:pointer; font-size:13px; font-weight:600; white-space:nowrap; }
.header-contact-trigger:hover { border-color:var(--red); color:var(--red); }
.footer-contact-trigger { border-color:#50575e; color:#fff; background:transparent; }
.footer-contact-trigger:hover { background:#30363b; border-color:#9ba3aa; }
.city-suggestion { position:fixed; z-index:65; top:148px; right:max(24px,calc((100vw - 1180px)/2)); width:min(410px,calc(100vw - 32px)); display:flex; align-items:flex-start; gap:12px; padding:22px 42px 22px 20px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 12px 40px #20232622; }
.city-suggestion__icon { display:grid; place-items:center; flex:0 0 36px; height:36px; color:var(--red); background:#fff1f2; border-radius:10px; }
.city-suggestion__body { min-width:0; }
.city-suggestion__eyebrow { margin:0 0 6px; font-size:12px; color:var(--muted); }
.city-suggestion h2 { margin:0 0 8px; font-size:21px; line-height:1.25; letter-spacing:-.02em; }
.city-suggestion__body>p:not(.city-suggestion__eyebrow) { margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.city-suggestion__actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.city-suggestion__actions .button { min-height:44px; padding:9px 12px; font-size:13px; }
.city-suggestion__close { position:absolute; right:3px; top:3px; display:grid; place-items:center; width:40px; height:40px; background:none; border:0; border-radius:8px; color:var(--muted); cursor:pointer; }
.city-suggestion__close:hover { color:var(--ink); background:var(--soft); }
.contacts-intro { padding:32px 0 12px; }
.contacts-intro__inner { display:grid; grid-template-columns:minmax(0,1fr) 180px; gap:32px; align-items:center; }
.contacts-intro h1 { font-size:clamp(30px,3.8vw,48px); line-height:1.12; margin-bottom:12px; }
.contacts-intro .lead { font-size:17px; margin:0; }
.contacts-intro__illustration { width:180px; }
.contacts-selection { padding-top:20px; }
.contacts-city-select { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:20px; font-size:14px; font-weight:600; }
.contacts-city-select>.ui-icon { width:20px; color:var(--red); }
.contacts-city-select select { width:min(100%,340px); min-width:0; min-height:48px; padding:10px 36px 10px 14px; border:1px solid #aab1b8; border-radius:8px; color:var(--ink); background:#fff; font:inherit; }
.contacts-selection__empty { margin:0 0 20px; padding:20px; background:var(--soft); border-radius:10px; color:var(--muted); }
.selected-office { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:32px; padding:28px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 4px 16px #20232606; }
.selected-office__main { min-width:0; }
.selected-office h2 { margin-bottom:20px; font-size:32px; }
.selected-office__facts { display:grid; gap:16px; margin:0; }
.selected-office__facts dt { display:flex; align-items:center; gap:8px; margin-bottom:5px; color:var(--muted); font-size:12px; }
.selected-office__facts dt .ui-icon { width:18px; height:18px; }
.selected-office__facts dd { margin:0; max-width:42ch; font-size:15px; line-height:1.55; }
.selected-office__details { display:inline-flex; gap:8px; align-items:center; min-height:44px; margin-top:12px; color:var(--red-dark); font-size:14px; font-weight:600; }
.selected-office__contact { min-width:0; padding:22px; border-radius:12px; background:var(--soft); }
.selected-office__contact h3 { margin:0; font-size:18px; }
.selected-office__contact .office-contact-actions { margin-top:14px; }
.selected-office__note { display:flex; align-items:flex-start; gap:9px; margin:18px 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.selected-office__note>.ui-icon { width:20px; height:20px; }
.office-directory { margin-top:24px; border-top:1px solid var(--line); }
.office-directory>summary { cursor:pointer; min-height:56px; padding:16px 0; font-weight:600; font-size:16px; }
.office-directory>summary>span { margin-left:6px; padding:3px 8px; border-radius:30px; background:var(--soft); color:var(--muted); font-size:12px; }
.office-directory .office-grid { padding-top:8px; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.office-directory .office-card { padding:20px; }
.contact-channel { grid-template-columns:40px minmax(0,1fr); gap:10px; min-height:68px; padding:12px; border-color:var(--line); border-radius:10px; }
.contact-channel>.ui-icon { box-sizing:content-box; width:22px; height:22px; padding:9px; border-radius:12px; color:var(--ink); background:var(--soft); }
.contact-channel--telegram>.ui-icon { color:#167da7; background:#eaf6fb; }
.contact-channel--max>.ui-icon { color:#5842b5; background:#f0edfb; }
.contact-channel strong { overflow:visible; text-overflow:clip; overflow-wrap:anywhere; font-size:14px; line-height:1.3; }
.contact-channel small { overflow:visible; font-size:11px; line-height:1.4; }
.contact-channel:hover { background:#fdfdfd; border-color:#aab1b8; box-shadow:0 2px 8px #20232608; }
.contact-channel--telegram:hover { border-color:#167da7; }
.contact-channel--max:hover { border-color:#7864c6; }
.contact-sheet-backdrop { position:fixed; z-index:89; inset:0; width:100%; height:100%; border:0; background:#14181b85; cursor:pointer; }
.contact-sheet-backdrop:not([hidden]) { display:block; }
.office-quick-contact { display:grid; gap:10px; min-width:0; }
.office-quick-contact button { padding:0; border:0; background:none; color:inherit; text-align:left; cursor:pointer; line-height:1.5; }
.contact-sheet { position:fixed; z-index:90; left:50%; top:50%; bottom:auto; right:auto; transform:translate(-50%,-50%); width:min(480px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); overflow:auto; overscroll-behavior:contain; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 24px 80px #14181b40; }
.contact-sheet.is-open { display:block; }
.contact-sheet__handle { display:none; }
.contact-sheet>header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:24px 22px 18px; }
.contact-sheet>header>div>span { color:var(--muted); font-size:12px; }
.contact-sheet>header h2 { margin:4px 0 0; font-size:28px; }
.contact-sheet>header>button { display:grid; place-items:center; flex:0 0 44px; height:44px; border:0; border-radius:10px; background:var(--soft); cursor:pointer; }
.contact-sheet__office-select { display:grid; gap:6px; padding:0 22px 18px; color:var(--muted); font-size:13px; }
.contact-sheet__office-select select { width:100%; min-width:0; min-height:48px; padding:10px 12px; border:1px solid #aab1b8; border-radius:8px; background:#fff; color:var(--ink); font-size:16px; }
.contact-sheet__office { padding:20px 22px; border-block:1px solid var(--line); background:var(--soft); }
.contact-sheet__office>div:first-child>span { font-size:11px; color:var(--muted); }
.contact-sheet__office h3 { margin:3px 0; font-size:20px; }
.contact-sheet__office p { margin:0; font-size:12px; color:var(--muted); }
.contact-sheet__channels { grid-template-columns:1fr; margin-top:14px; }
.contact-sheet>.button { width:calc(100% - 44px); margin:18px 22px; }
.contact-sheet__empty { padding:0 22px; font-size:14px; color:var(--muted); }
.contact-open { overflow:hidden; }
.home-hero { background:#fff; }
.home-hero__inner { max-width:1180px; display:grid; grid-template-columns:minmax(0,1fr) minmax(200px,.35fr); gap:0 32px; align-items:center; }
.home-hero__copy { min-width:0; }
.home-hero h1 { font-size:clamp(34px,3.7vw,52px); }
.home-hero__illustration { color:var(--ink); }
.home-hero .hero-search,.home-hero .industry-chips,.home-hero .home-proof { grid-column:1/-1; width:100%; }
.home-hero .hero-search { max-width:none; }
.hero-search>span { display:grid; place-items:center; }
.category-glyph { width:40px; height:40px; }
.category-icon { background:#f7f8f9; color:var(--ink); }
.category-card:hover .category-icon { background:#fff1f2; color:var(--red-dark); }
button:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid #e3061345; outline-offset:3px; }
@media (min-width:768px) {
  .site-header:not(.site-header--home) .header-actions>.icon-link,.site-header--home.show-home-search .header-actions>.icon-link { display:none; }
}
@media (min-width:1025px) { .header-main { grid-template-columns:auto auto minmax(0,1fr) auto; } }
@media (min-width:768px) and (max-width:1279px) {
  .header-main { gap:12px; }
  .header-actions { gap:8px; }
  .header-contact-trigger span { display:none; }
  .header-contact-trigger { padding:8px; }
  .header-phones .phone-card:last-child { display:none; }
  .navigator-trigger { padding-inline:12px; }
}
@media (max-width:1100px) { .office-directory .office-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:767px) {
  .header-contact-trigger { display:none; }
  .city-suggestion { top:auto; bottom:calc(84px + env(safe-area-inset-bottom)); left:16px; right:16px; width:auto; padding:20px 34px 20px 16px; }
  .city-suggestion__icon { display:none; }
  .city-suggestion h2 { font-size:20px; }
  .contacts-intro { padding-top:24px; }
  .contacts-intro__inner { grid-template-columns:minmax(0,1fr) 80px; gap:14px; }
  .contacts-intro__illustration { width:80px; align-self:start; }
  .contacts-intro .lead { font-size:15px; }
  .contacts-intro h1 { font-size:30px; }
  .contacts-city-select { gap:8px; }
  .contacts-city-select select { width:100%; flex-basis:100%; font-size:16px; }
  .selected-office { grid-template-columns:1fr; gap:20px; padding:20px; }
  .selected-office h2 { font-size:28px; margin-bottom:16px; }
  .selected-office__contact { padding:16px; }
  .office-directory .office-grid { grid-template-columns:1fr; }
  .contact-sheet { left:0; right:0; bottom:0; top:auto; transform:none; width:100%; max-height:90dvh; border-radius:18px 18px 0 0; border-bottom:0; }
  .contact-sheet__handle { display:block; width:36px; height:4px; margin:9px auto 0; border-radius:2px; background:#c8cdd2; }
  .contact-sheet>header { padding:12px 18px 16px; }
  .contact-sheet>header h2 { font-size:24px; }
  .contact-sheet__office-select { padding-inline:18px; }
  .contact-sheet__office { padding:16px 18px; }
  .contact-sheet>.button { width:calc(100% - 36px); margin:16px 18px calc(16px + env(safe-area-inset-bottom)); }
  .home-hero__inner { grid-template-columns:minmax(0,1fr) 96px; gap:0 12px; }
  .home-hero__copy { grid-column:1/-1; }
  .home-hero__illustration { grid-row:2; grid-column:2; align-self:end; }
  .home-hero .hero-search { grid-row:3; }
  .home-hero .industry-chips { grid-row:4; }
  .home-hero .home-proof { grid-row:2; grid-column:1; grid-template-columns:1fr; font-size:12px; margin:8px 0 0; gap:4px; }
  .home-catalog .category-glyph { width:40px; height:40px; }
  .home-catalog .category-card { min-height:146px; gap:12px; }
}
@media (max-width:480px) { .selected-office__contact .office-contact-actions { grid-template-columns:1fr; } .contacts-intro__inner { grid-template-columns:1fr; } .contacts-intro__illustration { display:none; } }
@media (prefers-reduced-motion:no-preference) {
  .button,.contact-channel,.header-contact-trigger,.footer-contact-trigger,.category-icon,.industry-chips a { transition:background-color var(--motion-fast) var(--ease-ui),color var(--motion-fast) var(--ease-ui),border-color var(--motion-fast) var(--ease-ui),box-shadow var(--motion-fast) var(--ease-ui); }
  .button:active { transform:translateY(1px); }
  .city-suggestion:not([hidden]),.selected-office:not([hidden]),.city-picker__menu:not([hidden]),.mega-menu:not([hidden]),.lead-dialog[open],.gallery-dialog[open] { animation:fordela-appear var(--motion-panel) var(--ease-ui); }
  .contact-sheet.is-open { animation:fordela-fade var(--motion-panel) var(--ease-ui); }
  .contact-sheet-backdrop:not([hidden]),.navigation-backdrop:not([hidden]) { animation:fordela-fade var(--motion-fast) linear; }
  .mobile-city-sheet.is-open,.mobile-drawer.is-open { animation:fordela-appear var(--motion-panel) var(--ease-ui); }
  .drawer-taxonomy__toggle svg,.navigator-trigger svg { transition:transform var(--motion-fast) var(--ease-ui); }
  .drawer-taxonomy__toggle[aria-expanded="true"]>svg,.navigator-trigger[aria-expanded="true"]>svg { transform:rotate(180deg); }
}
@keyframes fordela-appear { from { opacity:0; translate:0 7px; } to { opacity:1; translate:0 0; } }
@keyframes fordela-fade { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* One office, four direct actions. Missing channels are omitted by the server. */
.office-photo { margin:0 0 20px; }
.office-photo img { display:block; width:100%; max-height:480px; object-fit:contain; border-radius:12px; }
.header-main { position:relative; min-width:0; }
.header-actions .list-link::before { content:none; }
.header-office { min-width:0; }
.header-office-panel { display:flex; align-items:center; justify-content:flex-end; gap:4px; }
.header-office-panel[hidden] { display:none!important; }
.header-channel { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; min-width:44px; min-height:44px; border-radius:8px; color:var(--ink); }
.header-channel:hover { background:var(--soft); color:var(--red); }
.header-channel:focus-visible { outline:3px solid var(--red); outline-offset:2px; }
.header-channel .ui-icon { width:22px; height:22px; }
.header-office--expanded .header-channel--phone { gap:8px; margin-right:8px; }
.header-channel strong { display:block; font-size:14px; white-space:nowrap; }
.header-channel small { display:block; text-align:right; color:var(--muted); font-size:11px; }
.header-office--compact,.header-office-city { display:none; }
.drawer-office-contacts { border-top:1px solid var(--line); padding-top:16px; margin-top:16px; }
.header-office--drawer .header-office-panel { flex-wrap:wrap; justify-content:flex-start; gap:8px; }
.header-office--drawer .header-channel--phone { flex:0 0 100%; justify-content:flex-start; gap:12px; margin-bottom:4px; }
.header-office--drawer .header-channel strong { font-size:18px; }
.header-office--drawer .header-channel small { text-align:left; font-size:13px; }
.header-office--drawer .header-channel:not(.header-channel--phone) { background:var(--soft); }
.drawer-office-request { margin-left:auto; min-height:44px; padding:8px 16px; }
.site-header--home:not(.is-scrolled) .header-contact-trigger { display:none; }
.site-header.is-scrolled .header-office--expanded,.site-header.show-home-search .header-office--expanded,
.site-header.is-scrolled .header-contact-trigger { display:none; }
.site-header.is-scrolled .header-office--compact { display:block; }
@media (min-width:768px) {
  .header-main { grid-template-columns:auto auto minmax(0,1fr) auto; gap:clamp(8px,1.2vw,20px); }
  .site-header--home.is-scrolled .header-home-search { display:block; grid-column:3; min-width:0; }
  .site-header--home.is-scrolled .header-home-search .header-search { width:100%; }
  .site-header.is-scrolled .header-actions { gap:8px; }
  .site-header.is-scrolled .header-actions>.icon-link { display:none; }
}
@media (min-width:768px) and (max-width:1100px) {
  .header-office--expanded .header-channel--phone>.ui-icon { display:none; }
  .header-office--expanded .header-channel--phone { margin-right:0; }
  .header-office-panel { gap:0; }
  .site-header.is-scrolled .header-actions .list-link strong { display:none; }
  .header-search input { min-width:0; }
}
@media (max-width:767px) {
  .header-main { grid-template-columns:auto auto minmax(0,1fr); }
  .header-actions { grid-column:3; gap:0; }
  /* Mobile already has persistent bottom actions; do not duplicate them in the header. */
  .header-office--expanded,.site-header.is-scrolled .header-office--compact { display:none; }
}
