
/* head: logo, H1, full name, badges, rating, heart */
.cs-head .cs-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.cs-head .cs-title { display: flex; align-items: flex-start; gap: 18px; min-width: 0; }
.cs-head .ru-logo { width: 64px; height: 64px; margin-top: 12px; background: #fff; border: 1px solid var(--line); }
.cs-head h1 { font-size: clamp(30px, 3.4vw, 46px); }
.cs-full { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 820px; }
.cs-at { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; margin-top: 10px; }
.cs-at svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.cs-head .ru-tags { margin-top: 18px; }
.cs-head .ru-tag { font-size: 13px; padding: 5px 12px; }
.cs-metro { display: inline-flex; align-items: center; gap: 6px; }
.cs-dots { display: inline-flex; gap: 2px; }
.cs-dots i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cs-metro small { color: var(--muted); font-size: 12px; font-weight: 400; }
.cs-rate { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 14px; border: 1px solid #ecd9a2; border-radius: 999px; background: #fbf4df; color: #6b4e0b; font-size: 14px; transition: background .15s; }
.cs-rate:hover { background: #f8edcc; color: #6b4e0b; }
.cs-rate svg { width: 16px; height: 16px; color: #d79b12; }
.cs-rate b { font-weight: 600; }
.cs-rate small { font-size: 12px; opacity: .75; }
.cs-rate .src { font-size: 11px; font-weight: 600; opacity: .6; }
/* just the heart, no ring (Vlad 18.10): red outline, light fill on hover, bright red when chosen */
.cs-heart { flex: none; width: 46px; height: 46px; margin-top: 12px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #c8262f; cursor: pointer; transition: color .15s; }
.cs-heart svg { width: 28px; height: 28px; transition: fill .15s, transform .15s; }
.cs-heart:hover svg { fill: #fde4e6; transform: scale(1.08); }
.cs-heart.on { color: #e3242f; }
.cs-heart.on svg { fill: currentColor; }
@keyframes cs-heart-pop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.cs-heart.heart-pop { animation: cs-heart-pop .3s ease; }

/* gallery: 1 large + 2 small (3+ photos), one photo, the logo, or the initials */
.cs-gal { margin-top: 32px; }
.cs-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; height: 420px; border-radius: var(--r); overflow: hidden; }
.cs-grid > div { position: relative; cursor: pointer; background: var(--paper); }
.cs-grid img, .cs-one img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-grid .all { position: absolute; right: 12px; bottom: 12px; padding: 8px 14px; border: 0; border-radius: 10px; background: rgba(255,255,255,.94); font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
.cs-grid .all:hover { background: #fff; }
.cs-one { height: 350px; border-radius: var(--r); overflow: hidden; }
.cs-logo-art { height: 280px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.cs-logo-art img { height: 220px; width: auto; max-width: 90%; object-fit: contain; }
.cs-mono { height: 280px; border-radius: var(--r); background: var(--paper); display: grid; place-items: center; font: 300 72px var(--serif); color: var(--accent-dark); opacity: .55; }
.cs-credit { color: var(--muted); font-size: 12px; margin-top: 8px; }
.cs-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.cs-photos { position: fixed; inset: 0; z-index: 140; overflow-y: auto; padding: 32px 16px; background: rgba(12,16,24,.92); }
.cs-photos-x { position: fixed; top: 16px; right: 16px; z-index: 141; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; }
.cs-photos-x:hover { background: rgba(255,255,255,.3); }
.cs-photos-x svg { width: 22px; height: 22px; }
.cs-photos-list { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
.cs-photos-list img { width: 100%; border-radius: 12px; display: block; }

/* content column */
.cs-split { margin-top: 48px; }
.cs-main > section + section { margin-top: 56px; }
.cs-main .ru-h2 { font-size: clamp(24px, 2.3vw, 32px); }
.cs-about { margin-top: 16px; }
.cs-about p { margin: 0 0 14px; }
.cs-link { padding: 0; border: 0; background: none; font: 600 15px var(--sans); color: var(--accent-dark); cursor: pointer; }
.cs-link:hover { color: var(--accent); }
.cs-count { display: inline-grid; place-items: center; min-width: 32px; height: 28px; padding: 0 10px; margin-left: 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font: 600 15px var(--sans); vertical-align: middle; letter-spacing: 0; }
.cs-groups { margin-top: 20px; display: grid; gap: 28px; }
.cs-group h3 { font: 600 13px var(--sans); letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.cs-specs { display: grid; gap: 10px; }
.cs-spec { display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.cs-spec .code { flex: none; padding: 4px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); font: 600 12px var(--sans); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.cs-spec .body { flex: 1; min-width: 0; }
.cs-spec .name { font-weight: 600; color: var(--ink); line-height: 1.35; margin: 0; }
.cs-spec .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cs-spec .pills span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 8px; background: var(--paper); color: var(--text); }
.cs-spec .pills .g9 { background: #f8edcc; color: #6b4e0b; }
.cs-spec .pills .g11 { background: var(--accent-soft); color: var(--accent-dark); }
.cs-spec .pills .fee { color: var(--ink); }
.cs-spec .desc { margin-top: 10px; font-size: 14px; color: var(--text); line-height: 1.55; }
.cs-spec .cs-link { margin-top: 6px; font-size: 13px; }
.cs-spec .pin { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--paper); color: var(--muted); transition: background .15s, color .15s; }
.cs-spec .pin:hover { background: var(--accent-soft); color: var(--accent-dark); }
.cs-spec .pin svg { width: 17px; height: 17px; }
.cs-more { margin-top: 16px; }

/* contacts and key facts: main column, two boxes side by side (one column on narrow screens) */
.cs-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; align-items: start; }
.cs-info--one { grid-template-columns: minmax(0, 1fr); }
.cs-info-box { padding: 20px 22px; }
.cs-aside .ru-box h3 { font: 400 22px var(--serif); color: var(--ink); letter-spacing: -.01em; margin-bottom: 14px; }
.cs-contact { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.cs-contact + .cs-contact { margin-top: 12px; }
.cs-contact svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--muted); }
.cs-contact a { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; overflow-wrap: anywhere; }
.cs-contact a + a { margin-top: 4px; }
.cs-contact p { margin: 0; color: var(--text); line-height: 1.45; }
.cs-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cs-ctas .btn { flex: 1 1 140px; }
.cs-ctas:empty { display: none; }
.cs-ctas .btn--ink { background: var(--ink); color: #fff; }
.cs-ctas .btn--ink:hover { background: #2a2f3a; color: #fff; }
.cs-facts { margin: 0; }
.cs-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cs-facts > div:last-child { border-bottom: 0; }
.cs-facts dt { color: var(--muted); }
.cs-facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.cs-facts dd.acc { color: var(--accent-dark); }

/* dormitory, admission (panels, not clickable) */
.cs-dorm-top { display: flex; align-items: center; gap: 14px; }
.cs-dorm-top .ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--accent-dark); }
.cs-dorm-top .ico svg { width: 24px; height: 24px; }
.cs-dorm-top .ru-h2 { font-size: clamp(22px, 2vw, 28px); }
.cs-dorm--no .ico { color: var(--muted); }
.cs-yes, .cs-no { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; margin-top: 4px; }
.cs-yes { color: var(--accent-dark); }
.cs-no { color: var(--muted); }
.cs-yes svg, .cs-no svg { width: 16px; height: 16px; }
.cs-dorm-addr { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.cs-dorms { display: grid; gap: 8px; margin-top: 14px; }
.cs-dorm-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.75); }
.cs-dorm-item svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--accent); }
.cs-dorm-item .n, .cs-build .n, .cs-hub .n { margin: 0; font-weight: 600; font-size: 15px; color: var(--ink); }
.cs-dorm-item .a, .cs-build .a, .cs-hub .a { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.cs-dorm-map { height: 200px; margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.cs-adm .ico { background: var(--accent); color: #fff; }
.cs-adm-open { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.cs-adm-h3 { margin: 18px 0 0; font-size: 16px; font-weight: 700; color: var(--text); }
.cs-adm-h3 + .cs-adm-text { margin-top: 8px; margin-bottom: 8px; }
.cs-adm-src { margin: 0 0 20px; font-size: 13px; color: var(--text-muted, #6b7280); }
.cs-adm-text { margin: 16px 0 20px; font-size: 15px; line-height: 1.6; white-space: pre-line; color: var(--text); }
.cs-adm .btn svg { width: 16px; height: 16px; }

/* FAQ accordion (the old Alpine one), the motif «ромб-вкладыш» at the question as in .ru-faq */
.cs-faq { margin-top: 18px; border-top: 1px solid var(--line); }
.cs-faq-item { border-bottom: 1px solid var(--line); }
.cs-faq-item > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border: 0; background: none; text-align: left; font: 600 17px/1.35 var(--sans); color: var(--ink); cursor: pointer; transition: color .15s; }
.cs-faq-item > button:hover, .cs-faq-item.on > button { color: var(--accent-dark); }
.cs-faq-item > button svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .2s; }
.cs-faq-item > button svg.rotate-180 { transform: rotate(180deg); }
.cs-faq-a { padding: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--text); }

/* buildings, map, metro, branches */
.cs-builds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.cs-build { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cs-build .ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--paper); color: var(--muted); }
.cs-build .ico.d { background: #f8edcc; color: #6b4e0b; }
.cs-build .ico.s { background: var(--accent-soft); color: var(--accent-dark); }
.cs-build .ico svg { width: 18px; height: 18px; }
.cs-build .body { min-width: 0; }
.cs-build .a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-build .ru-tag { margin-top: 6px; }
.cs-map { height: 320px; margin-top: 16px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
#college-map .leaflet-attribution-flag, #dormitory-map .leaflet-attribution-flag { display: none !important; }
.cs-hubs { display: grid; gap: 10px; margin-top: 18px; }
.cs-hub { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cs-hub .lines { flex: none; display: flex; gap: 4px; }
.cs-hub .lines i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; font: 700 12px var(--sans); font-style: normal; }
.cs-hub .body { flex: 1; min-width: 0; }
.cs-hub .min { flex: none; color: var(--accent-dark); font-weight: 600; }
.cs-hub .m { width: 20px; height: 20px; color: var(--muted); }
.cs-branches { display: grid; gap: 10px; margin-top: 18px; }

/* lead form */
.cs-lead h3 { font: 400 22px var(--serif); color: var(--ink); letter-spacing: -.01em; }
.cs-lead-form { display: grid; gap: 12px; }
.cs-lead-sub { margin: -6px 0 4px; font-size: 13px; color: var(--muted); }
.cs-lead .ru-input { height: 46px; font-size: 16px; }
.cs-grade { display: flex; gap: 8px; }
.cs-grade label { flex: 1; display: flex; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid #c9ccd4; border-radius: 12px; font-size: 14px; color: var(--ink); cursor: pointer; }
.cs-grade label:has(:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cs-grade input, .cs-consent input { accent-color: var(--accent); }
.cs-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.cs-consent input { margin-top: 2px; }
.cs-consent a { color: var(--muted); text-decoration: underline; }
.cs-lead .btn { width: 100%; border: 0; cursor: pointer; font-family: var(--sans); }
.cs-lead .btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.cs-lead-err { margin: 0; font-size: 13px; color: #8a2a1e; }
.cs-lead-ok { text-align: center; padding: 12px 0; }
.cs-lead-ok .ico { width: 48px; height: 48px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); }
.cs-lead-ok .ico svg { width: 24px; height: 24px; }
.cs-lead-ok .t { margin: 0; font-weight: 600; color: var(--ink); }
.cs-lead-ok .s { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* related colleges: the cards of the city page (v3.college.partials.city-card) */
/* W1 19.10 edit 22: the v3 cards grid (ec-minis) had no gap under the heading, the cards ran over it */
.cs-related .cards, .cs-related .ec-minis { margin-top: 24px; }
.cc-card .art > img { width: 100%; height: 100%; object-fit: cover; }
.cc-card .tags span.ochre { background: #f8edcc; color: #6b4e0b; }
.cc-heart { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; filter: drop-shadow(0 1px 3px rgba(10,10,30,.55)); cursor: pointer; transition: transform .2s, color .15s; }
.cc-heart:hover svg { fill: #fff; }
.cc-heart svg { width: 24px; height: 24px; transition: fill .15s; }
.cc-heart.liked { color: #e3242f; }
.cc-heart.liked svg { fill: currentColor; }
.cc-heart.heart-pop { animation: cs-heart-pop .3s ease; }
.cc-star { display: inline-flex; align-items: center; gap: 3px; }
.cc-star svg { width: 12px; height: 12px; }

/* the aside holds only the lead form; on a low laptop screen it still scrolls inside while it sticks */
@media (min-width: 1001px) { .cs-aside { max-height: calc(100vh - 160px); overflow-y: auto; scrollbar-width: thin; } }
@media (max-width: 1200px) { .cs-info { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .cs-grid { height: 360px; } }
@media (max-width: 767px) {
  .cs-grid { grid-template-columns: 1fr; height: 280px; }
  .cs-grid > div + div { display: none; }
  .cs-one { height: 250px; }
  .cs-logo-art, .cs-mono { height: 200px; }
  .cs-logo-art img { height: 160px; }
  .cs-mono { font-size: 56px; }
  .cs-head .ru-logo { width: 52px; height: 52px; }
  .cs-head .cs-title { gap: 12px; }
  /* title rule v3: the logo above the H1 and the heart under it, the H1 in full width */
  .cs-head .cs-top { flex-wrap: wrap; }
  .cs-head .cs-title { flex: 1 1 100%; flex-direction: column; }
  .cs-heart { width: 42px; height: 42px; }
  .cs-main > section + section { margin-top: 44px; }
  .cs-spec { padding: 14px; gap: 10px; flex-wrap: wrap; }
  .cs-builds { grid-template-columns: minmax(0, 1fr); }
  .cs-build { min-width: 0; overflow-wrap: anywhere; }
  .cs-map { height: 280px; }
  .cs-faq-item > button { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cs-heart.heart-pop, .cc-heart.heart-pop { animation: none; } }
