/* Brama Group — custom additions (2026-11). Loaded after style.css with a filemtime version. */

/* ---------- Header menu: smooth dropdowns with a short close delay (desktop, mouse) ---------- */
@media only screen and (min-width: 1170px) {
  body:not(.touch-device) .menu__body,
  body:not(.touch-device) .menu__list,
  body:not(.touch-device) .menu__box {
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: opacity .22s ease .18s, transform .22s ease .18s, visibility 0s linear .4s;
  }
  body:not(.touch-device) .menu__body { transform: translateY(8px); }
  body:not(.touch-device) .menu__list,
  body:not(.touch-device) .menu__box { transform: translateX(-6px); z-index: 1; }

  body:not(.touch-device) .menu__stage:hover > .menu__body,
  body:not(.touch-device) .menu__wrap > .menu__item:hover > .menu__list,
  body:not(.touch-device) .menu__list > .menu__item:hover > .menu__box {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear 0s;
  }
  body:not(.touch-device) .menu__wrap > .menu__item:hover > .menu__list,
  body:not(.touch-device) .menu__list > .menu__item:hover > .menu__box { z-index: 3; }
}

/* "Список стран" as a link */
a.menu__category { display: block; text-decoration: none; }

/* Countries box: all jurisdictions in columns (class added by brama-custom.js) */
.menu__box.menu__box_countries { width: 560px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.menu__box_countries .menu__flex {
  display: block;
  column-count: 3;
  column-gap: 18px;
}
.menu__box_countries .menu__flex > .menu__link { display: block; line-height: 1.25; break-inside: avoid; }
.menu__box_countries .menu__link_all {
  column-span: all;
  margin-top: 8px;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-weight: 800;
}
@media only screen and (max-width: 1169px) {
  .menu__box.menu__box_countries { width: auto; box-shadow: none; }
  .menu__box_countries .menu__flex { column-count: 2; }
}

/* ---------- Content: collapsible sections (<details>) ---------- */
.content details.brama-acc { border-bottom: 1px solid #e3e5e8; }
.content details.brama-acc:first-of-type { border-top: 1px solid #e3e5e8; }
.content details.brama-acc > summary {
  position: relative;
  display: block;
  padding: 24px 64px 24px 0;
  list-style: none;
  cursor: pointer;
  outline: none;
}
.content details.brama-acc > summary::-webkit-details-marker { display: none; }
.content details.brama-acc > summary::marker { content: ""; }
.content details.brama-acc > summary h2,
.content details.brama-acc > summary h4 { margin: 0 !important; }
.content details.brama-acc > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border-radius: 50%;
  background: #ec1c24;
  color: #fff;
  font-size: 26px;
  font-weight: 400;
  line-height: 36px;
  text-align: center;
  transition: transform .25s ease, background .25s ease;
}
.content details.brama-acc[open] > summary::after { transform: rotate(45deg); background: #1e2733; }
.content details.brama-acc > summary:hover::after { background: #1e2733; }
.content .brama-acc__body { padding: 0 0 30px; }
.content details.brama-acc[open] > .brama-acc__body { animation: bramaFadeIn .3s ease; }
@keyframes bramaFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.content .brama-acc h4 { font-size: 20px; line-height: 1.25; font-weight: 800; color: #1e2733; }
.content .brama-acc h4:not(:first-child) { margin-top: 28px; }
.content .brama-acc h4:not(:last-child) { margin-bottom: 14px; }

/* FAQ items */
.content .brama-faq { margin-bottom: 40px; }
.content details.brama-acc_faq > summary { padding: 18px 56px 18px 0; }
.content details.brama-acc_faq > summary h4 { font-size: 18px; line-height: 1.3; }
.content details.brama-acc_faq > summary::after { width: 30px; height: 30px; margin-top: -15px; font-size: 22px; line-height: 30px; }
.content details.brama-acc_faq .brama-acc__body { padding-bottom: 20px; }

/* Numbered lists */
.content ol.brama-ol { padding-left: 38px; list-style: decimal; }
.content ol.brama-ol:not(:last-child) { margin-bottom: 22px; }
.content ol.brama-ol > li { padding-left: 6px; line-height: 1.625; text-align: justify; }
.content ol.brama-ol > li:not(:last-child) { margin-bottom: 8px; }
.content ol.brama-ol > li::marker { color: #ec1c24; font-weight: 800; }

/* Highlight blocks */
.content p.brama-callout { padding: 20px 24px; border-left: 6px solid #ec1c24; background: #f5f6f8; text-align: left; }
.content p.brama-tip { padding: 14px 20px; border-left: 4px solid #1e2733; background: #f5f6f8; text-align: left; }

/* Tables */
.content .brama-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0 30px; }
.content .brama-table th { padding: 12px 22px; text-align: left; }

/* CTA row */
.content .brama-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 30px 0; }
.content .brama-cta button { margin: 0 !important; min-width: 0; }
.content .brama-cta button:first-child { background: #e51a28; color: #fff; }
.content .brama-cta button:first-child:hover { background: #fff; color: #e51a28; }
.content a.brama-cta__tg { margin-left: 6px; font-size: 14px; font-weight: 600; color: #1e2733; text-decoration: underline; }
.content a.brama-cta__tg:hover { color: #ec1c24; }

@media only screen and (max-width: 767px) {
  .content details.brama-acc > summary { padding-right: 52px; }
  .content .brama-acc h4 { font-size: 18px; }
  .content .brama-cta button { width: 100%; }
  .content a.brama-cta__tg { margin-left: 0; }
}
