/* ============================================================
   mrd-design.css — дизайн-доработки 2026-08-01
   Подключается ПОСЛЕ style-core.css, переопределяет его.
   ============================================================ */

/* ---------- 1. Базовая типографика (Montserrat теперь загружен) ---------- */
input, textarea, select, button {
  font-family: Montserrat, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 2. Карточки школ (главная, короткие списки) ---------- */
.school_short_list_bl {
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  overflow: hidden;
  padding: 0 0 16px;
  box-shadow: 0 2px 10px rgba(20, 30, 45, .06);
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.school_short_list_bl:hover {
  box-shadow: 0 6px 18px rgba(20, 30, 45, .12);
  transform: translateY(-2px);
}
.school_short_list_i {
  position: relative;
  display: block;
  width: 100%;
  height: 150px;
  margin: 0 0 10px;
  box-shadow: none;
  border-radius: 0;
}
.school_short_list_n {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: block;
  max-width: none;
  margin: 0;
  padding: 26px 12px 8px;
  background: linear-gradient(to bottom, rgba(10,16,24,0), rgba(10,16,24,.82));
  color: #fff;
  font: 600 14px/1.35 Montserrat, sans-serif;
  text-align: left;
  text-transform: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.school_short_list_pr_bl { padding: 0 8px; }
.school_short_list_bl .gdlr-core-button { margin-top: 8px; }

/* ---------- 3. Плавающие кнопки: в углы, без вечных тултипов ---------- */
.vr_call { right: 18px; bottom: 18px; left: auto; }
.vr_call_ { box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.vr_call_text {
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  margin-top: 6px;
  font-size: 13px;
}
.vr_call:hover .vr_call_text { opacity: 1; pointer-events: auto; }
.vr_call_ { animation: none !important; }   /* убрать вечное дёргание tada */
.vr_calc { left: 18px; bottom: 18px; }
.vr_calc_ { animation: none !important; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
@media (max-width: 799px) {
  .vr_call { display: none; }               /* на мобильном есть верхняя панель */
  .vr_calc { bottom: 12px; left: 12px; }
}

/* ---------- 4. Формы: поля и кнопки ---------- */
.n_sidebar input[type="text"],
.n_sidebar input[type="tel"],
.n_sidebar input[type="email"],
.n_sidebar input[type="number"],
.vr_wind input[type="text"],
.vr_wind input[type="tel"],
.vr_wind input[type="email"],
.sidebar-zayavka input,
input.n_sidebar_bottom_date_input,
.w_order_form input {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 10px 12px;
  font: 400 14px Montserrat, sans-serif;
  color: #222;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.n_sidebar input:focus,
.vr_wind input:focus,
.sidebar-zayavka input:focus,
.w_order_form input:focus {
  outline: none;
  border-color: #e8842c;
  box-shadow: 0 0 0 3px rgba(232, 132, 44, .18);
}
::placeholder { font-family: Montserrat, sans-serif; color: #9aa0a6; opacity: 1; }

/* Кнопки-градиенты темы -> фирменный оранжевый, плоско */
.gdlr-core-button-gradient,
.gdlr-core-button.gdlr-core-button-gradient {
  background: #e8842c !important;
  background-image: none !important;
  color: #fff;
  border-radius: 8px;
  text-shadow: none;
  box-shadow: 0 2px 8px rgba(232, 132, 44, .35);
  transition: background .15s ease, box-shadow .15s ease;
}
.gdlr-core-button-gradient:hover {
  background: #d4741f !important;
  box-shadow: 0 4px 12px rgba(232, 132, 44, .45);
}

/* ---------- 5. Логотипы школ в каталоге: не обрезать ---------- */
.school-h-logo { overflow: visible; }
.school-h-logo img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- 6. Таблицы программ: скролл вместо расплющивания ---------- */
@media (max-width: 799px) {
  .school-table_bl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .school-table { min-width: 560px; }
}

/* ---------- 7. Мобильная панель звонков: компактнее ---------- */
@media (max-width: 799px) {
  .top_mobile_tel { padding: 2px 0; }
  .top_mobile_tel-icon svg { width: 26px; height: 26px; }
  .top_mobile_tel-text { font-size: 10px; line-height: 1.25; }
}

/* ---------- 8. Футер ---------- */
.footer_about { line-height: 1.7; }
.footer_contacts_h {
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer_contacts div { margin: 3px 0; }
.footer_contacts a { color: #bbb; text-decoration: none; }
.footer_contacts a:hover { color: #fff; }

/* ---------- 9. Мелочи ---------- */
/* тень заголовков-хиро больше не «жёлтая антивыставка» */
.school_short_list_toggle { margin-top: 8px; }

/* ---------- 10. Фильтр: компактные сегменты (Montserrat шире старого шрифта) ---------- */
.n_sidebar label,
.n_sidebar_bottom label { font-size: 12px; }
#find_list label { font-size: 12px !important; padding: 6px 8px; }
/* ---------- 11. Поиск в сайдбаре ---------- */
.n_sidebar input[type="search"],
.n_sidebar_bottom input[type="search"] {
  border: 1px solid #d9d9d9; border-radius: 8px; padding: 10px 12px;
  font: 400 14px Montserrat, sans-serif; width: 100%;
}
/* ---------- 12. Кнопки форм сайдбара/попапов (не-gdlr) ---------- */
.n_sidebar button, .n_sidebar input[type="submit"],
.vr_wind button, .vr_wind input[type="submit"],
.form_cb button, .w_order_form button {
  background: #e8842c; color: #fff; border: 0; border-radius: 8px;
  padding: 12px 22px; font: 600 13px Montserrat, sans-serif;
  letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 2px 8px rgba(232,132,44,.35);
  transition: background .15s ease;
}
.n_sidebar button:hover, .vr_wind button:hover, .form_cb button:hover { background: #d4741f; }

/* ---------- 13. Кнопки виджета сайдбара -> фирменный оранжевый ---------- */
.n_sidebar_bottom_price_btn1, .n_sidebar_bottom_price_btn2, .n_sidebar_bottom_price_btn3 {
  background: #e8842c !important;
  background-image: none !important;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(232,132,44,.35);
}
.n_sidebar_bottom_price_btn1:hover, .n_sidebar_bottom_price_btn2:hover, .n_sidebar_bottom_price_btn3:hover {
  background: #d4741f !important;
}

/* ===== 2026-08-01 design pass 2: school pages + fleet-wide polish ===== */

/* Hero: soften the hard 8-way text shadows */
.n_top-header-title,
.n_top h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45) !important;
}
.n_top-header-title-descr {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55) !important;
  font-weight: 500 !important;
  letter-spacing: .02em;
}

/* Pale-yellow consultation band -> warm neutral panel */
.form_cb {
  background: #faf6ee !important;
  border-top: 1px solid #eee3cd;
  border-bottom: 1px solid #eee3cd;
}

/* School pages: no sidebar exists, drop the reserved gutter and center a readable column */
body.single-schools ._.view_sidebar {
  padding-right: 0 !important;
  max-width: 840px;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}
body.single-schools ._.view_sidebar img { max-width: 100%; height: auto; }
body.single-schools ._.view_sidebar p { font-size: 16px; line-height: 1.75; color: #3b4551; }
body.single-schools ._.view_sidebar li { font-size: 15px; line-height: 1.7; }
body.single-schools h2 { color: #22303e; }

/* Sub-section headers (Спорт, Творчество…): grey slab -> orange accent bar */
body.single-schools ._.view_sidebar h3 {
  background: transparent !important;
  border-left: 4px solid #e8842c;
  border-radius: 0;
  padding: 2px 0 2px 14px !important;
  font-family: Montserrat, sans-serif;
  font-size: 20px !important;
  font-weight: 600;
  color: #22303e;
}

/* Famous alumni: ragged floats -> card grid */
body.single-schools .famous {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto 48px;
  padding: 0 20px;
}
body.single-schools .famous > .h2_bl { grid-column: 1 / -1; }
.famous_i {
  background: #fff;
  border: 1px solid #e9e9ec;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(20, 30, 50, .05);
  margin: 0 !important;
  width: auto !important;
}
.famous_n { margin-bottom: 12px; }
.famous_nn {
  display: block;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #22303e;
}
.famous_nw { display: block; font-size: 13px; font-weight: 600; color: #e8842c; margin-top: 2px; }
.famous_ny { display: block; font-size: 12px; color: #8a94a1; margin-top: 2px; }
.famous_t { font-size: 14px; line-height: 1.65; color: #4a5460; overflow: hidden; }
.famous_img { float: left; margin: 0 14px 6px 0; }
.famous_img img { border-radius: 10px; display: block; }

/* Search/filter widget: light-blue boxes -> neutral panel with orange accents */
.n_sidebar_bottom_dates {
  background: #f4f6f9 !important;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
}
.radios label {
  background: #fff !important;
  border: 1px solid #d7dde6 !important;
  color: #4a5460 !important;
}
.radios input:checked + label {
  background: #e8842c !important;
  border-color: #e8842c !important;
  color: #fff !important;
}
.input_number,
.input_number_up,
.input_number_down {
  background-color: #e8842c !important;
  border-color: #e8842c !important;
}

/* Long in-page tables of contents (icon lists): flow into two columns on wide screens */
@media (min-width: 900px) {
  .gdlr-core-icon-list-item ul { columns: 2; column-gap: 44px; }
  .gdlr-core-icon-list-item ul li { break-inside: avoid; }
}

/* fix: alumni items live inside a flex wrapper, not directly under .famous */
body.single-schools .famous { display: block; max-width: none; padding: 0; }
body.single-schools .famous ._.view_sidebar.flex_wrap { display: flex; flex-wrap: wrap; gap: 20px; max-width: 920px; }
.famous_i { flex: 1 1 400px; }
@media (min-width: 900px) {
  .famous_i { max-width: calc(50% - 10px); }
}

/* ===== 2026-08-01 design pass 3: structure, cards, accordions, sticky CTA ===== */

/* Title captions (intro texts): drop dated italic, make readable */
.gdlr-core-title-item-caption {
  font-style: normal !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #3b4551 !important;
}

/* Hero CTA buttons (front page) */
.mrd-hero-cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.mrd-hero-cta a {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}
.mrd-hero-cta .mrd-btn { background: #e8842c; color: #fff !important; }
.mrd-hero-cta .mrd-btn:hover { background: #d97620; }
.mrd-hero-cta .mrd-btn-ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.75); color: #fff !important; }
.mrd-hero-cta .mrd-btn-ghost:hover { background: rgba(255,255,255,.24); }

/* Breadcrumbs */
.mrd-crumbs { max-width: 1120px; margin: 0 auto; padding: 13px 20px 0; font-size: 13px; color: #8a94a1; }
.mrd-crumbs a { color: #6a7482; text-decoration: none; }
.mrd-crumbs a:hover { color: #e8842c; }
.mrd-crumbs span.mrd-crumbs-sep { margin: 0 7px; color: #c2c9d2; }

/* Accordion («6 причин», справочные разделы каталога) */
.mrd-acc { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.mrd-acc details {
  background: #fff;
  border: 1px solid #e9e9ec;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(20,30,50,.04);
  overflow: hidden;
}
.mrd-acc summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #22303e;
}
.mrd-acc summary::-webkit-details-marker { display: none; }
.mrd-acc summary:hover { color: #e8842c; }
.mrd-acc .mrd-acc-n {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #faf1e6;
  color: #e8842c;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mrd-acc .mrd-acc-x { margin-left: auto; color: #e8842c; font-size: 20px; font-weight: 400; transition: transform .2s; }
.mrd-acc details[open] .mrd-acc-x { transform: rotate(45deg); }
.mrd-acc .mrd-acc-b { padding: 0 20px 18px 66px; font-size: 15px; line-height: 1.7; color: #3b4551; }
.mrd-acc .mrd-acc-b p { margin: 0 0 12px; }
@media (max-width: 700px) {
  .mrd-acc .mrd-acc-b { padding-left: 20px; }
}

/* Review cards */
.mrd-revs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}
.mrd-rev {
  background: #fff;
  border: 1px solid #e9e9ec;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(20,30,50,.05);
}
.mrd-rev-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mrd-rev-avatar {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #e8842c;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 19px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mrd-rev-name { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 16px; color: #22303e; display: block; }
.mrd-rev-sub { display: block; font-size: 13px; color: #8a94a1; margin-top: 2px; }
.mrd-rev-txt { font-size: 15px; line-height: 1.65; color: #3b4551; }
.mrd-rev-txt p { margin: 0 0 10px; }
.mrd-rev-txt details summary {
  cursor: pointer;
  list-style: none;
  color: #e8842c;
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
}
.mrd-rev-txt details summary::-webkit-details-marker { display: none; }
.mrd-rev-txt details[open] summary { display: none; }

/* Info-page long bullet lists -> card grid (class added by JS) */
ul.mrd-cardlist { list-style: none !important; margin: 0 !important; padding: 0 !important;
  display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 900px) { ul.mrd-cardlist { grid-template-columns: 1fr 1fr; gap: 12px; } }
ul.mrd-cardlist > li {
  background: #fff;
  border: 1px solid #e9e9ec;
  border-radius: 10px;
  padding: 12px 16px 12px 40px;
  position: relative;
  font-size: 15px;
  line-height: 1.55;
  color: #3b4551;
  box-shadow: 0 1px 6px rgba(20,30,50,.04);
}
ul.mrd-cardlist > li::before {
  content: "";
  position: absolute;
  left: 15px; top: 17px;
  width: 8px; height: 8px;
  border-right: 2px solid #e8842c;
  border-bottom: 2px solid #e8842c;
  transform: rotate(-45deg);
}

/* Price card (Опекунство «540 фунтов» и подобные) */
.mrd-price-card .gdlr-core-pbf-background-wrap { background: #faf6ee !important; }
.mrd-price-card .gdlr-core-title-item { position: relative; z-index: 1; }

/* Sticky CTA bar on school pages */
.mrd-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: #22303e;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  transform: translateY(110%);
  transition: transform .25s ease;
  box-shadow: 0 -4px 18px rgba(10,16,26,.25);
}
.mrd-sticky.mrd-sticky-on { transform: translateY(0); }
.mrd-sticky-name {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.mrd-sticky-price { font-size: 14px; color: #ffd9b3; white-space: nowrap; }
.mrd-sticky-price span { color: #fff; font-weight: 600; }
.mrd-sticky a.mrd-sticky-btn {
  margin-left: auto;
  flex: 0 0 auto;
  background: #e8842c;
  color: #fff !important;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.mrd-sticky a.mrd-sticky-btn:hover { background: #d97620; }
@media (max-width: 700px) {
  .mrd-sticky { gap: 10px; padding: 9px 12px; }
  .mrd-sticky-name { display: none; }
  .mrd-sticky-price { font-size: 13px; }
}

/* Facts block: price line + brand icons */
.n_params svg { fill: #e8842c !important; }
.mrd-price-line { font-weight: 600; }
.mrd-price-line .mrd-price-val { color: #e8842c; }

/* Section heading icons (blue -> brand) */
.h2_bl h2 svg { fill: #e8842c !important; }

/* Content links on school pages: blue underlined 2010s -> brand */
body.single-schools ._.view_sidebar a:not(.gdlr-core-button):not(.school_short_list_i),
body.single-schools ._.view_sidebar h3 a { color: #e8842c; }
body.single-schools ._.view_sidebar a:not(.gdlr-core-button):hover { color: #d97620; }

/* Catalog sort/counter bar */
.mrd-sortbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: #f4f6f9;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  font-size: 14px;
  color: #4a5460;
}
.mrd-sortbar-count { font-family: Montserrat, sans-serif; font-weight: 600; color: #22303e; }
.mrd-sortbar-count b { color: #e8842c; }
.mrd-sortbar select {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #fff;
  color: #4a5460;
  font-size: 14px;
}

/* ===== pass 3b: planka alignment + brand bullets in school description ===== */
body.single-schools ._.view_sidebar h3 { text-align: left; }
body.single-schools .opis_txt ul li { list-style: none; position: relative; padding-left: 26px; background: none !important; margin-bottom: 8px; }
body.single-schools .opis_txt ul li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid #e8842c; }

/* ===== pass 3c: video hint color + mobile sticky sizing ===== */
.video1_desc { color: #8a94a1 !important; font-size: 15px !important; }
@media (max-width: 700px) {
  .mrd-sticky a.mrd-sticky-btn { font-size: 13px; padding: 9px 12px; }
  .mrd-sticky { padding: 8px 10px; }
}

/* ===== pass 3d: dropdown menu readability + brand hover ===== */
.sf-menu .sub-menu a,
.sf-menu > li > .sub-menu a { color: #3b4551 !important; }
.sf-menu .sub-menu a:hover,
.sf-menu > li > .sub-menu a:hover { color: #e8842c !important; background: #faf6ee !important; }
.sf-menu > li:hover > a { border-bottom-color: #e8842c !important; }

/* 24.10.2026 тема mystudytube: страницы типов обучения, поиск, 404 */
.mst-term-intro{max-width:900px;margin:0 auto 24px;font-size:16px;line-height:1.6}
.mst-term-count{margin:0 0 16px;color:#666;font-size:14px}
.mst-term-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.mst-term-list .school_short_list_bl{width:auto;margin:0}
.mst-term-list .school_short_list_i{display:block;min-height:170px;background-size:cover;background-position:center;background-color:#e9edf2;border-radius:6px;position:relative}
.mst-term-place{margin-top:6px;font-size:13px;color:#666}
.mst-term-cta{margin:32px 0 8px;text-align:center}
.mst-term-cta .mrd-btn,.mst-term-cta .mrd-btn-ghost,.mst-404 .mrd-btn,.mst-404 .mrd-btn-ghost{margin:4px}
.mst-search-form{display:flex;gap:8px;max-width:640px;margin:0 0 24px}
.mst-search-form input{flex:1;padding:10px 12px;border:1px solid #ccc;border-radius:4px;font-size:16px}
.mst-search-list{list-style:none;margin:0;padding:0}
.mst-search-list li{padding:10px 0;border-bottom:1px solid #eee}
.mst-search-list span{font-size:12px;color:#888}
.mst-404{padding:40px 0;text-align:center;font-size:16px}
.mst-term-cta .mrd-btn,.mst-404 .mrd-btn,.mst-search-form .mrd-btn{display:inline-block;padding:12px 22px;border-radius:4px;background:#e8842c;color:#fff!important;border:0;font-weight:600;text-decoration:none;cursor:pointer}
.mst-term-cta .mrd-btn-ghost,.mst-404 .mrd-btn-ghost{display:inline-block;padding:11px 21px;border-radius:4px;border:1px solid #e8842c;color:#e8842c!important;text-decoration:none;font-weight:600}
/* мобильная версия: галерея школы шире экрана на 8px (отрицательные поля), таблицы курсов в каталоге обрезались */
@media (max-width:767px){
  .gdlr-core-gallery-shortcode-wrap.gdlr-core-item-rvpdlr{margin-left:0;margin-right:0}
  .school-list_i .school-table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* 26.10.2026: блок записей GoodLayers внутри описания школы выходил за экран телефона на 4px (margin -20px) */
@media (max-width: 767px) { .opis_txt .gdlr-core-item-rvpdlr { margin-left: 0; margin-right: 0; } }
