/* Контакты — утверждённый макет холста 4 («Kontakty», версия 5, 07.10); перенесено из прототипа site-pages/info/src/info.css (блок «контакты, итерация 2»).
   Карточки площадок — .cc (класс .cl занят формой «Заказать звонок» шаблона). Карта — живая Яндекс Карта (pages/contacts.js); рецепты сайта §3–5:
   внутренности карты — content-box, обрезка углов на iOS — translateZ(0), балун — свои стили. Соты, карточки «cd», реквизиты — css/info.css. */

/* ——— первый экран: тёмный, соты проявляются справа за карточкой горячей линии ——— */
.ct-top { position: relative; overflow: hidden; padding: 176px 0 96px; isolation: isolate; color: #FFFFFF;
  background: radial-gradient(38% 60% at 80% 55%, rgba(246,200,73,0.22), rgba(246,200,73,0) 70%), radial-gradient(30% 50% at 0% 0%, rgba(246,200,73,0.08), rgba(246,200,73,0) 70%), #0E0E11; }
.ct-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; background: linear-gradient(180deg, rgba(14,14,17,0), #0E0E11); }
.ct-in { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 56px; align-items: start; }
.ct-l { display: flex; flex-direction: column; gap: 22px; }
.ct-top h1 { font: 700 114px/1 var(--disp); text-transform: uppercase; color: #FFFFFF; }
.ct-lead { max-width: 600px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.75); }
.ct-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.ct-facts span { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ct-facts img { grid-row: span 2; }
.ct-facts b { font-size: 15px; color: #FFFFFF; }
.ct-facts small { font-size: 13px; color: rgba(255,255,255,0.6); }
.ct-card { display: flex; flex-direction: column; gap: 10px; padding: 34px 36px; border-radius: 32px; background: var(--y); color: var(--ink); box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 60px rgba(246,200,73,0.25); rotate: -1deg; }
.ct-eb { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.ct-phone { font: 700 54px/1 var(--disp); color: var(--ink); text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.ct-hr { font-size: 14px; line-height: 1.45; }
.ct-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ct-card .ct-btns .btn-ink { font-size: 16px; padding: 15px 22px; line-height: 22px; }
.ct-soc { display: inline-flex; align-items: center; padding: 14px 18px; border-radius: 14px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 2px var(--ink); }
.ct-soc:hover { background: rgba(47,50,63,0.08); }
.ct-mail { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding-top: 16px; border-top: 1.5px solid rgba(47,50,63,0.18); }
.ct-mail span { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.ct-mail a { color: var(--ink); text-decoration: none; }
.ct-mail small { font-size: 13px; padding-left: 30px; }

/* ——— где проходят квесты: подбор, список, карта ——— */
#where .sec-head { align-items: flex-end; }
.finder { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.finder > span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.finder select { width: 430px; height: 54px; padding: 0 44px 0 18px; border: 0; border-radius: 16px; font: 600 15px/1 var(--sans); color: var(--ink); background-color: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px var(--line), 0 8px 18px rgba(20,20,30,0.05); appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232F323F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.finder select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--y), 0 0 0 5px rgba(246,200,73,0.3); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 20px; height: 720px; }
.cc-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 2px 8px 2px 2px; scrollbar-width: thin; scrollbar-color: #C9CCD6 transparent; }
.cc-list::-webkit-scrollbar { width: 8px; }
.cc-list::-webkit-scrollbar-thumb { background: #C9CCD6; border-radius: 8px; }
.cc { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 18px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .15s, background .15s; outline: none; }
.cc:hover, .cc.hov { box-shadow: inset 0 0 0 1.5px var(--y), 0 8px 18px rgba(47,50,63,0.08); }
.cc.on { background: #FDF3D2; box-shadow: inset 0 0 0 2px var(--y), 0 8px 22px rgba(246,200,73,0.35); }
.cc:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.cc-h { display: flex; align-items: center; gap: 12px; }
.cc-n { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font: 700 16px/1 var(--disp); }
.cc.on .cc-n { background: var(--y); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.cc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-t h3 { font-size: 16px; font-weight: 700; line-height: 1.25; }
.cc-t small { font-size: 12.5px; color: var(--muted); }
.cc-ph { width: 56px; height: 56px; margin-left: auto; flex-shrink: 0; border-radius: 12px; object-fit: cover; }
.cc-time { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cc-time .ico { flex-shrink: 0; }
.cc-hint { align-self: flex-start; font-size: 13px; line-height: 1.4; font-weight: 600; color: #8A5A00; background: #FDF3D2; padding: 4px 9px; border-radius: 8px; }
.cc.on .cc-hint { background: #FFFFFF; }
.cc-what { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.cc-what img { flex-shrink: 0; margin-top: 1px; }
.cc-what a { color: var(--ink); text-decoration: none; }
.cc-what a:hover { text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 2px; }
.cc-what i { font-style: normal; color: var(--muted); font-weight: 500; }
.cc-what i a { color: var(--muted); }
.cc-act { display: flex; align-items: center; gap: 18px; margin-top: 2px; }
.cc-show, .cc-route { display: inline-flex; align-items: center; gap: 4px; padding: 0 0 2px; border: 0; border-bottom: 1.5px solid var(--y); background: none; font: 700 13.5px/1.2 var(--sans); color: var(--ink); cursor: pointer; text-decoration: none; }
.cmap { position: relative; overflow: hidden; border-radius: 24px; background: #DFE2E7; box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px rgba(47,50,63,0.12); transform: translateZ(0); will-change: transform; }
.cmap * { box-sizing: content-box; }
.cmap > .cmap-st { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; box-sizing: border-box; }
.cmap > .cm-back { position: absolute; z-index: 6; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px 0 12px; border: 0; border-radius: 14px; background: #FFFFFF;
  font: 700 14px/1 var(--sans); color: var(--ink); cursor: pointer; box-shadow: 0 8px 20px rgba(47,50,63,0.2); box-sizing: border-box; }
.cmap > .cm-back[hidden] { display: none; }
.cmap [class*="-balloon__layout"], .cmap [class*="-balloon__content"] { border-radius: 16px !important; }
.cmap [class*="-balloon__layout"] { box-shadow: 0 12px 30px rgba(47,50,63,0.22) !important; border: 0 !important; }
.cmap [class*="-balloon__content"] { font-family: var(--sans) !important; font-weight: 400 !important; font-size: 13.5px !important; line-height: 1.45 !important; color: var(--ink) !important; padding: 14px 16px 13px !important; }
.cmap [class*="-balloon__content"] b { font-weight: 700 !important; font-size: 15px !important; }
.cmap [class*="-balloon__tail"] { display: none !important; }
.cmap .bl-lm, .cmap .bl-t { display: block; color: var(--muted); }
.cmap .bl-h { display: block; margin-top: 4px; color: #8A5A00; font-weight: 600; }
.cmap .bl-w { display: block; margin-top: 4px; font-weight: 600; }
.cmap .bl-r { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--y); }

/* ——— адаптив ——— */
@media (max-width: 1100px) {
  .ct-in { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; }
  .ct-phone { font-size: 46px; }
}
@media (max-width: 899px) {
  .ct-top { padding: 112px 0 72px; }
  .ct-in { grid-template-columns: 1fr; gap: 24px; }
  .ct-l { display: contents; }
  .ct-top h1 { order: 1; font-size: 56px; }
  .ct-lead { order: 2; font-size: 15px; }
  .ct-in > .ct-card { order: 3; }
  .ct-facts { order: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ct-facts span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 14px; }
  .ct-facts b { font-size: 13px; }
  .ct-facts small { font-size: 11px; line-height: 1.3; }
  .ct-card { padding: 24px 22px; border-radius: 24px; rotate: 0deg; }
  .ct-phone { font-size: 40px; }
  .ct-card .ct-btns .btn-ink { flex: 1 1 100%; justify-content: center; }
  .ct-soc { flex: 1; justify-content: center; }
  #where .sec-head { flex-direction: column; align-items: stretch; gap: 16px; }
  .finder select { width: 100%; }
  .ct-grid { grid-template-columns: 1fr; height: auto; gap: 14px; }
  .cmap { order: -1; height: 380px; border-radius: 20px; }
  .cc-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; scroll-padding-inline: var(--gutter); gap: 12px; scrollbar-width: none; }
  .cc { flex: 0 0 84%; scroll-snap-align: start; }
  .cc-ph { width: 44px; height: 44px; border-radius: 10px; }
  .cc-t h3 { font-size: 15px; }
}
