/* Страница «Контакты» по образцу «CI/CD МедКовчега» в палитре сайта: тёмно-синяя полоса шапки с фактами внахлёст одной
   карточкой с тонкими перегородками; виды аккредитации - одинаковые карточки-сценарии (слева значок, вид, кому и ссылка,
   справа «Куда подать?» и строки); базы - шапка и справочник с тонированной колонкой подписей; в конце «Как нас найти?»
   как на главной. Везде рамка 1px, радиус 18px как у карточек «Как нас найти?», одна мягкая тень, между карточками 16px.
   Справа меню разделов и под ним 3D-тур, поэтому раскладки считаются от ширины колонки (container queries), а не окна */

.ct-page{--ct-line:#d6ddea;--ct-line-in:#e1e7f1;--ct-tint:#eef2fa;--ct-navy:#011c73;--ct-ink:#1d2433;--ct-text:#2a3242;--ct-muted:#5b6478;--ct-r:18px;--ct-shadow:0 1px 2px #011c730f,0 12px 30px -18px #040d2e4d}
.ct-sec,.ct-hero{container-type:inline-size}

/* Правая колонка: меню разделов и под ним 3D-тур липнут вместе (меню само по себе больше не липкое).
   Меню больше не прямой потомок раскладки: pages.css тогда схлопывает её в одну колонку (:not(:has(> .tz-side))) */
.tz-layout.tz-layout--right.ct-page{grid-template-columns:minmax(0,1fr) 270px}
.ct-aside{grid-column:2;grid-row:1;position:sticky;top:calc(var(--hdr,72px) + 20px);z-index:2;display:grid;gap:16px;align-self:start;min-width:0}
.ct-aside>.tz-side{position:static}
/* окно ниже меню с туром: липнет только меню, тур уходит вверх */
@media(min-width:1001px) and (max-height:660px){.ct-aside{position:static;align-self:stretch;align-content:start}.ct-aside>.tz-side{position:sticky;top:calc(var(--hdr,72px) + 20px);z-index:1}}

/* Шапка: крошки на светлом, ниже тёмно-синяя полоса с узором, на её нижний край заходит карточка фактов */
.ct-hero .breadcrumb{margin-bottom:16px}
.ct-band{position:relative;overflow:hidden;padding:34px 36px 84px;border-radius:var(--ct-r);background:var(--g-navy);color:#fff}
.ct-band:before{content:"";position:absolute;inset:0;background:url('../img/Graphika_RGB_blue.webp') right -80px top -120px/760px auto no-repeat;opacity:.08;pointer-events:none}
.ct-band>*{position:relative}
.ct-hero h1{margin:0 0 12px;color:#fff}
.ct-band__lead{max-width:60ch;margin:0;font-size:17px;line-height:1.65;color:#c6d0ea}
.ct-facts{position:relative;display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,.9fr) minmax(0,1.08fr) minmax(0,1.24fr);margin:-50px 24px 0;padding:0;list-style:none;background:#fff;border:1px solid var(--ct-line);border-radius:var(--ct-r);box-shadow:var(--ct-shadow)}
/* факт: значок и подпись строкой, значение под ними; колонки по длине значений. Значок без плитки (заказчик) */
.ct-fact{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"ico cap" "val val";align-content:start;align-items:center;column-gap:8px;row-gap:6px;min-width:0;padding:17px 18px 19px}
.ct-fact+.ct-fact{border-left:1px solid var(--ct-line-in)}
.ct-fact__ico{grid-area:ico;display:grid;place-items:center;width:16px;color:var(--ct-navy);font-size:13px}
.ct-fact>b{grid-area:cap;font-size:13.5px;font-weight:500;line-height:1.4;color:var(--ct-muted)}
.ct-fact__v{grid-area:val;font-size:15.5px;font-weight:500;line-height:1.45;color:var(--heading)}
.ct-fact__v a{color:var(--ct-navy);transition:color .2s}
.ct-fact__v a:hover{color:var(--red)}
.ct-fact a:focus-visible{outline:3px solid var(--red);outline-offset:3px;border-radius:4px}
/* меньше 940 px колонки четыре факта не помещаются (почта рвалась): 2 x 2 */
@container (max-width:939px){
  .ct-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ct-fact:nth-child(3){border-left:0}
  .ct-fact:nth-child(n+3){border-top:1px solid var(--ct-line-in)}
}
/* телефон: факты строками, значок слева; телефон и почта нажимаются всей строкой (со стрелкой справа) */
@container (max-width:539px){
  .ct-band{padding:26px 22px 76px}
  .ct-band__lead{font-size:16px}
  .ct-facts{grid-template-columns:minmax(0,1fr);margin-inline:0}
  .ct-fact{grid-template-columns:20px minmax(0,1fr);grid-template-areas:"ico cap" "ico val";column-gap:12px;row-gap:2px;align-items:start;padding:13px 16px}
  .ct-fact+.ct-fact{border-left:0;border-top:1px solid var(--ct-line-in)}
  .ct-fact__ico{align-self:start;width:20px;margin-top:1px;font-size:15px}
  .ct-fact>b{font-size:13px;line-height:1.35}
  .ct-fact__v{font-size:16px}
  .ct-fact--go{padding-right:44px}
  .ct-fact--go a:after{content:"";position:absolute;inset:0}
  .ct-fact--go:after{content:"\f054";position:absolute;right:18px;top:50%;margin-top:-6px;color:var(--ct-navy);font:900 12px/1 "Font Awesome 7 Free";pointer-events:none}
  .ct-fact--go:active{background:#f6f8fc}
}
/* на телефоне полоса во всю ширину экрана, текст по линии полей страницы (site.css: 20 / 16 px) */
@media(max-width:520px){.ct-band{margin-inline:-20px;padding-inline:20px;border-radius:0}}
@media(max-width:360px){.ct-band{margin-inline:-16px;padding-inline:16px}}

/* Карточки баз: светлая тонированная шапка (корпус на тёмно-синей плитке, название, адрес и этаж, кнопка карты контуром),
   ниже белое тело (тёмные шапки и тёмные столбцы заказчику не понравились, 26.10.2026) */
.ct-card{overflow:hidden;background:#fff;border:1px solid var(--ct-line);border-radius:var(--ct-r);box-shadow:var(--ct-shadow)}
.ct-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px 18px;padding:20px 24px;background:linear-gradient(180deg,#f8fafd 0%,#eef2fa 100%);border-bottom:1px solid var(--ct-line-in)}
.ct-code{display:grid;flex:none;place-items:center;width:52px;height:52px;border-radius:14px;background:var(--g-navy);color:#fff;box-shadow:0 10px 20px -10px #011c73b3;font-size:19px;font-weight:700;line-height:1;letter-spacing:-.3px}
.ct-head__title{display:grid;gap:4px;min-width:0}
.ct-head__title h3{margin:0;font-size:20px;font-weight:500;line-height:1.3;letter-spacing:-.2px;color:var(--heading);hyphens:auto;overflow-wrap:break-word}
.ct-card__body{display:grid;gap:14px;align-content:start;padding:24px 26px 26px}
.ct-card__body>.ct-cap:not(:first-child){margin-top:10px}
.ct-cap{margin:0;font-size:17px;font-weight:500;line-height:1.35;color:var(--heading)}
.ct-card__body a{font-weight:500;color:var(--ct-navy);transition:color .2s}
.ct-card__body a:hover{color:var(--red)}

/* Таблицы справочника и баз - по общему правилу таблиц сайта (этапы и расписание на главной, accreditation.css):
   рамка, шапка светло-синей полосой с тёмно-синими капсовыми подписями, сплошные черты между столбцами и строками */
.ct-dir__table,.ct-tab{width:100%;border:1px solid #d3dbe8;border-collapse:collapse;background:#fff;text-align:left}
.ct-dir__table thead th,.ct-tab thead th{padding:12px 18px 11px;background:#e8ecf4;border-bottom:1px solid #d3dbe8;font-size:11.5px;font-weight:700;line-height:1.2;letter-spacing:1px;text-transform:uppercase;white-space:nowrap;color:#001b72}
.ct-dir__table thead th+th,.ct-tab thead th+th{border-left:1px solid #d3dbe8}
.ct-dir__table td,.ct-tab td,.ct-tab tbody th{padding:13px 18px;border-bottom:1px solid var(--ct-line-in);font-size:15px;font-weight:400;line-height:1.55;color:var(--ct-ink);text-align:left;vertical-align:top}
.ct-dir__table td+td,.ct-tab tbody tr>*+*{border-left:1px solid var(--ct-line-in)}
.ct-dir__table tbody tr:last-child td,.ct-tab tbody tr:last-child>*{border-bottom:0}

/* По видам аккредитации - справочник таблицами (заказчик 26.10.2026: «контакты в табличном виде, чтобы легко редактировать
   в админке»). У каждого вида белая карточка: заголовок и кому, справа ссылка на страницу вида, пояснение абзацем, ниже
   таблица «Кому обращаться - Телефон - Почта» без вертикальных черт; пустых колонок нет (их не выводит шаблон) */
.ct-dir{display:grid;gap:16px}
.ct-dir__group{padding:24px 26px 26px}
.ct-dir__head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px 24px}
.ct-dir__head h3{margin:0;font-size:20px;font-weight:500;line-height:1.3;letter-spacing:-.2px;color:var(--heading)}
.ct-dir__head p{margin:4px 0 0;font-size:14.5px;line-height:1.5;color:var(--ct-muted)}
.ct-dir__more{display:inline-flex;align-items:center;gap:8px;margin-top:3px;font-size:14.5px;font-weight:500;line-height:1.3;color:var(--ct-navy);white-space:nowrap;transition:color .2s}
.ct-dir__more i{font-size:12px;color:var(--red);transition:transform .2s}
.ct-dir__more:hover{color:var(--red)}
.ct-dir__more:hover i{transform:translateX(2px)}
.ct-dir__note{max-width:760px;margin:14px 0 0;font-size:15px;line-height:1.6;color:var(--ct-text)}
.ct-dir__table{margin-top:18px}
.ct-dir__table th:nth-child(n+2),.ct-dir__phone,.ct-dir__mail{width:1%;white-space:nowrap}
/* человек в справочнике: кружок с инициалами (фото - из админки), рядом ФИО и должность */
.ct-dir__person{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:start}
.ct-dir__ava{position:relative;display:grid;place-items:center;width:44px;height:44px;overflow:hidden;border-radius:50%;background:var(--g-navy);box-shadow:0 8px 18px -10px #011c73b3;color:#fff;font-size:15px;font-weight:500;letter-spacing:.5px;line-height:1}
.ct-dir__ava img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ct-dir__who b{display:block;font-size:15.5px;font-weight:500;line-height:1.4;color:var(--heading)}
.ct-dir__sub{display:block;margin-top:2px;font-size:14px;line-height:1.5;color:var(--ct-muted)}
.ct-dir__extra{display:block;margin-top:3px;font-size:13.5px;font-weight:500;line-height:1.45;color:var(--ct-navy)}
.ct-dir__line{display:flex;align-items:baseline;gap:8px;margin-top:6px;font-size:14px;line-height:1.5;color:var(--ct-ink)}
.ct-dir__line i{flex:none;width:14px;font-size:13px;text-align:center;color:var(--ct-navy)}
.ct-dir__phone a,.ct-dir__mail a{font-weight:500;color:var(--ct-navy);overflow-wrap:anywhere;transition:color .2s}
.ct-dir__phone a:hover,.ct-dir__mail a:hover{color:var(--red)}

/* узкая колонка: кнопка шапки под названием, колонки телефона и почты уже */
@container (max-width:719px){
  .ct-head{grid-template-columns:auto minmax(0,1fr)}
  .ct-head .ct-btn{grid-column:1/-1;justify-self:start}
}
/* телефон: строка контакта блоком, телефон и почта с подписью под ней, пустые не показываются */
@container (max-width:640px){
  .ct-dir__group{padding:20px 18px 18px}
  .ct-dir__head h3{font-size:18px}
  .ct-dir__table,.ct-dir__table tbody,.ct-dir__table tr,.ct-dir__table td{display:block;width:auto}
  .ct-dir__table thead{display:none}
  .ct-dir__table{margin-top:14px}
  .ct-dir__table tr{padding:12px 14px;border-bottom:1px solid var(--ct-line-in)}
  .ct-dir__table tr:last-child{border-bottom:0}
  .ct-dir__table td{padding:0;border:0;white-space:normal}
  .ct-dir__table td+td{border-left:0}
  .ct-dir__table td+td{margin-top:6px}
  .ct-dir__phone:before,.ct-dir__mail:before{content:attr(data-label) ": ";font-size:13.5px;color:var(--ct-muted)}
  .ct-dir__table td:empty{display:none}
}
@container (max-width:599px){
  .ct-head{gap:12px 14px;padding:18px}
  .ct-code{width:46px;height:46px;border-radius:12px;font-size:17px}
  .ct-head__title h3{font-size:18px}
  .ct-card__body{padding:20px 18px 22px}
}

/* Кнопка карточек: синий контур, при наведении тёмно-синий градиент, значок красный; база уже на карте - кнопка
   белая со светлым контуром («Показано на карте»), карточка при этом не подсвечивается */
.ct-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:10px 16px;border:1.5px solid var(--ct-navy);border-radius:12px;background:#fff;color:var(--ct-navy);font:inherit;font-size:14px;font-weight:500;line-height:1.2;white-space:nowrap;cursor:pointer;transition:color .2s,border-color .2s}
.ct-btn i{font-size:13px;color:var(--red)}
.ct-btn:hover{border-color:transparent;background:var(--g-navy);color:#fff}
.ct-base__map[aria-pressed="true"],.ct-base__map[aria-pressed="true"]:hover{border-color:var(--ct-line);background:#fff;color:var(--ct-navy);cursor:default}
.ct-btn:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.ct-base__map .is-on,.ct-base__map[aria-pressed="true"] .is-off{display:none}
.ct-base__map[aria-pressed="true"] .is-on{display:inline}

/* Три базы: карточки баз (раскладка .ct-card), между ними 16px */
.ct-bases{display:grid;gap:16px}
/* 3D-тур: синий квадрат со значком слева от названия, ниже пояснение и красная кнопка во всю ширину;
   на телефоне и планшете - строкой-карточкой перед разделом баз */
.ct-tour{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:12px 14px;padding:18px;background:#fff;border:1px solid var(--ct-line);border-radius:var(--ct-r);box-shadow:var(--ct-shadow)}
.ct-tour__ico{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:var(--g-navy);color:#fff;font-size:19px;box-shadow:0 10px 20px -10px #011c73b3}
.ct-tour p{display:contents}
.ct-tour p b{font-size:16px;font-weight:500;line-height:1.35;color:var(--heading)}
.ct-tour p>span{grid-column:1/-1;font-size:14px;line-height:1.55;color:var(--ct-muted)}
.ct-tour__btn{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:9px;margin:4px 0 0;padding:12px 16px;border-radius:12px;background:var(--g-red);color:#fff;font-size:14px;font-weight:500;line-height:1.2;white-space:nowrap;box-shadow:0 12px 24px -14px #dc143cb3;transition:transform .2s,box-shadow .2s}
.ct-tour__btn i{font-size:12px}
.ct-tour__btn:hover{color:#fff;transform:translateY(-1px);box-shadow:0 16px 28px -14px #dc143cd9}
.ct-tour__btn:focus-visible{outline:3px solid var(--navy-600,#052091);outline-offset:3px}
.ct-base{scroll-margin-top:0}
.ct-base__meta{display:flex;flex-wrap:wrap;gap:4px 20px;margin:0;font-size:14.5px;line-height:1.45;color:var(--ct-muted)}
.ct-base__meta span{display:inline-flex;align-items:center;gap:7px}
.ct-base__meta i{font-size:13px;color:var(--red)}

/* где принимают документы: синяя полоса слева и острые углы, как у справок .tz-note (красная - только у предупреждений) */
.ct-key{display:flex;gap:12px;align-items:flex-start;margin:0;padding:14px 18px 14px 16px;border-left:4px solid var(--ct-navy);background:var(--ct-tint);font-size:15px;line-height:1.6;color:var(--ct-text)}
.ct-key i{flex:none;margin-top:4px;font-size:15px;color:var(--ct-navy)}
.ct-key b{font-weight:500;color:var(--heading)}

/* Таблицы в карточке базы (заказчик 26.10.2026: «тут тоже должны быть таблицы»; строки правятся в админке → Базы):
   центры и назначение с номером, история «Когда - Событие», кабинеты «Этаж - Кабинеты» списком в две колонки.
   Вид как у справочника по видам: капсовые заголовки колонок, черты между строками, без вертикальных */
.ct-tab thead th:first-child,.ct-tab__n{width:1%;white-space:nowrap;text-align:center}
.ct-tab--keyed thead th:first-child{width:170px;text-align:left}
.ct-tab__n{font-variant-numeric:tabular-nums;color:var(--ct-muted)}
.ct-tab tbody .ct-tab__key{font-weight:500;color:var(--heading)}
.ct-tab__key span{display:block;margin-top:2px;font-size:13.5px;font-weight:400;color:var(--ct-muted)}
/* кабинеты этажа: колонками, как в газете, синий квадрат в потоке (абсолют у последнего пункта колонки уезжал) */
.ct-tab__list{columns:2;column-gap:28px;margin:0 0 -6px;padding:0;list-style:none}
.ct-tab__list li{display:grid;grid-template-columns:5px minmax(0,1fr);gap:10px;padding-bottom:6px;break-inside:avoid}
.ct-tab__list li:before{content:"";width:5px;height:5px;margin-top:.66em;background:var(--ct-navy)}
/* подпись следующей таблицы отступает от последней строки больше, чем строки друг от друга */
.ct-card__body>.ct-tab+.ct-cap{margin-top:18px}

@container (max-width:719px){
  .ct-tab--keyed thead th:first-child{width:140px}
}
/* телефон: строка истории и этаж блоком - дата или этаж сверху, текст и кабинеты под ними в одну колонку */
@container (max-width:640px){
  .ct-tab--keyed,.ct-tab--keyed tbody,.ct-tab--keyed tr,.ct-tab--keyed td,.ct-tab--keyed tbody th{display:block;width:auto}
  .ct-tab--keyed thead{display:none}
  .ct-tab--keyed tr{padding:12px 14px;border-bottom:1px solid var(--ct-line-in)}
  .ct-tab--keyed tr:last-child{border-bottom:0}
  .ct-tab--keyed td,.ct-tab--keyed tbody th{padding:0;border:0}
  .ct-tab--keyed tbody tr>*+*{border-left:0}
  .ct-tab--keyed tbody th{margin-bottom:4px}
  .ct-tab__key span{display:inline;margin:0}
  .ct-tab__key span:before{content:" · "}
  .ct-tab:not(.ct-tab--keyed) td,.ct-tab:not(.ct-tab--keyed) th{padding-inline:14px}
  .ct-tab__list{columns:1}
}

/* «Как нас найти?» как на главной: карточка контактов и карта */
.ct-find{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:24px}
.ct-find .contacts-card{padding:28px 26px}
.ct-find .contacts-value{white-space:normal}
.ct-find .contacts-map{min-height:420px;box-shadow:0 18px 45px #040d2e24}
@container (max-width:899px){
  .ct-find{grid-template-columns:1fr;gap:16px}
  .ct-find .contacts-map{min-height:340px}
}
@container (min-width:560px) and (max-width:899px){
  .ct-find .contacts-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,auto);grid-auto-flow:column;column-gap:36px}
  .ct-find .contacts-row:nth-child(4){padding-top:0;border-top:0}
  .ct-find .contacts-row:nth-child(3){padding-bottom:0}
}
@container (max-width:340px){.ct-find .contacts-value .nowrap{white-space:normal}.ct-find .contacts-map{min-height:300px}}

/* по прямой ссылке #base-…: под шапкой и прилипшей полосой разделов */
@media(max-width:1000px){.ct-base{scroll-margin-top:28px}}

/* Телефон и планшет: правая колонка разворачивается, меню - полосой под шапкой страницы (как в pages.css для
   .tz-layout--right > .tz-side), тур - строкой-карточкой перед разделом баз */
@media(max-width:1000px){
  .ct-aside{display:contents}
  .ct-aside>*{min-width:0}
  .ct-aside>.tz-side--right{position:sticky;order:-1;z-index:5;margin:0 -32px 30px;padding:8px 32px;top:calc(var(--hdr,62px) - 1px);border-width:0 0 1px;border-radius:0;background:#f8fafdeb;-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);box-shadow:0 18px 40px -20px #040d2e59;scroll-padding-inline:32px}
  .ct-page #by-type{order:1}
  .ct-aside>.ct-tour{order:2;grid-template-columns:46px minmax(0,1fr) auto;gap:14px 16px;padding:18px 20px;margin:-28px 0 44px}
  .ct-aside>.ct-tour p{display:grid;gap:3px}
  .ct-aside>.ct-tour p>span{grid-column:auto}
  .ct-aside>.ct-tour .ct-tour__btn{grid-column:auto;margin:0}
  .ct-page #bases{order:3}
  .ct-page #find{order:4}
}
@media(max-width:620px){
  .ct-aside>.ct-tour{grid-template-columns:46px minmax(0,1fr);margin:-18px 0 34px}
  .ct-aside>.ct-tour .ct-tour__btn{grid-column:1/-1}
}
@media(max-width:520px){.ct-aside>.tz-side--right{margin-inline:-20px;padding-inline:20px;scroll-padding-inline:20px}}
@media(max-width:360px){.ct-aside>.tz-side--right{margin-inline:-16px;padding-inline:16px;scroll-padding-inline:16px}}
@media(prefers-reduced-motion:reduce){.ct-dir__more i,.ct-tour__btn{transition:none}}

