/* static/css/base.css */

body {
    font-family: system-ui, sans-serif;
    color: #222;
    line-height: 1.6;
    background: #f9f9f9;
    min-height: 100vh;
}

header, footer, main, section, article {
  display: block;
  max-width: 1320px;
  margin: 0px auto;
}


.copy {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Language Switcher */

.bg-transparent {
    background: transparent;
}

.language-switcher {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.language-switcher:hover {
  opacity: 1.0;
}


.language-switcher-select {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.95rem;
  padding: 0 0.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;

}

select.language-switcher-select option {
  padding: 0 0.5rem;
}


.language-switcher-form {
  gap: 0.5rem;
}

.section-header h2 {
    font-weight: 400 !important;
}

.section-subheader .display-6 {
    font-weight: 400 !important;
}

.overlay-pattern {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4nGNgYGD4DwABBAEAX+XDSwAAAABJRU5ErkJggg==");
  opacity: 0.3;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.aspect-ratio-auto {
  aspect-ratio: auto;
}

.aspect-ratio-1x1 {
  aspect-ratio: 1.0;
}

.aspect-ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.aspect-ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.aspect-ratio-21x9 {
  aspect-ratio: 21 / 9;
}

.aspect-ratio-25x9 {
  aspect-ratio: 25 / 9;
}

@media (max-width: 768px) {
  .custom-aspect {
    aspect-ratio: 9 / 16;
  }
  .aspect-ratio-4x3 {
    aspect-ratio: 9 / 16;
  }
  .aspect-ratio-16x9 {
    aspect-ratio: 9 / 16;
  }
  .aspect-ratio-21x9 {
    aspect-ratio: 9 / 16;
  }
  .aspect-ratio-25x9 {
    aspect-ratio: 9 / 16;
  }
}



/* --------------- Widgets --------------- */

.inline-related .original p {
    display: none !important;   /* убираем колонку целиком */
}

/* ---------------  Page  --------------- */


/* --------------- Blocks --------------- */

/* Hero Block */

.block-hero {
  text-shadow: 0 5px 5px rgba(0, 0, 0, 0.8);
}

.block-hero h2 {
  font-size: 4.5rem;
}

/* Footer Block */

.show-inline {
  display: inline-block;
  margin-right: 0.25rem;
  padding-left: 0 !important;
}

.phone-num {
  font-size: 1.7rem;
}

@media only screen and (max-width: 768px) {
  .phone-num {font-size: 2.4rem;}
}

.big-icon {font-size: 1.9rem;}

.text-bold {
  font-weight: bold;
}

.left-margin {
  margin-left: 24px;
}

/* Jarallax */
.jarallax .markdown-content blockquote {
  font-size: 1.2rem;
}

/* Extra spacing for blocks without background image */
.gap .markdown-content blockquote {
  font-size: 1rem !important;
}

/* Horizontal Accordion Block */
/* === Обёртка всего аккордеона === */
.accordion-horizontal {
  display: flex;
  overflow-x: auto;
}

/* === Каждая вкладка === */
.accordion-tab {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  max-width: 100%;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Активная вкладка расширяется */
.accordion-tab.active {
  flex-grow: 1;
}

/* === Заголовок вкладки (вертикальный текст) === */
.accordion-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: start;
  justify-content: start;
  min-height: 100%;
  cursor: pointer;
  user-select: none;
}

/* === Контейнер контента (ограничения) === */
.accordion-conent-wrapper {
  position: relative;
  max-width: 100%;
}

/* === Контент вкладки === */
.accordion-content {
  display: none;
  flex-grow: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: opacity 0.3s ease;
  min-width: 0;
}

/* Показывать только в активной вкладке */
.accordion-tab.active .accordion-content {
  display: flex;
  opacity: 1;
  overflow-y: auto;
}

/* === Внутреннее тело контента === */
.accordion-content-body {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
