@charset "UTF-8";

:root {
  --bg-color: #fff;
  --bg-color-alt: #fafafa;
  --text-color: #333;

  --link-color: #293b49;
  --link-color-hover: #293b49;

  --input-color: #000;
  --input-bg-color: #fff;
  --input-border-color: #ddd;
  --input-border-color-focus: #999;
  --input-border-radius: 4px;

  --button-color: #fff;
  --button-bg-color: #293b49;
  --button-bg-color-hover: #293b49;
  --button-alt-color: #333;
  --button-alt-bg-color: #e8e8e8;
  --button-alt-bg-color-hover: #ddd;
  --button-border-radius: 4px;
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #fff;
}

body {
  min-width: 375px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-color);
  font-size: 16px;
  line-height: 1.5;
  font-family: Verdana, system-ui;
  color: var(--text-color);
}

/******************************/

.bbcode-slider-wrapper {
  position: relative;
  margin: 20px 0px 10px 0px;
  display: flex;
  align-items: center;
}

.bbcode-slider {
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: center;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.bbcode-slider::-webkit-scrollbar {
  display: none;
}

.bbcode-slider > * {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: calc(33.333% - 13.333px);
}

.bbcode-slider img {
  display: block;
}

/******************************/

.bbcode-slider-controls {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.bbcode-slider-button {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--button-bg-color) center center / 30px auto no-repeat;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1;
}

.bbcode-slider-button-left {
  background-image: url(../img/icon-arrow-left.svg);
}

.bbcode-slider-button-right {
  background-image: url(../img/icon-arrow-right.svg);
}

.bbcode-slider-button-disabled {
  opacity: 0.5;
  cursor: default;
}

.bbcode-slider-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.bbcode-slider-pages a {
  width: 15px;
  height: 15px;
  margin: 5px 10px;
  border-radius: 50%;
  border: 2px solid #dedede;
  cursor: pointer;
}

.bbcode-slider-pages a:hover,
.bbcode-slider-pages .bbcode-slider-pages-active {
  background: var(--button-bg-color);
  border: 2px solid var(--button-bg-color);
}

/******************************/

@media (max-width: 1024px) {
}

@media (max-width: 768px) {
  .bbcode-slider > * {
    width: calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .bbcode-slider > * {
    width: 100%;
  }
}

/******************************/

.slider-light {
  position: relative;
  display: flex;
  align-items: center;
}

.slider-light .slider {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.slider-light .slider > * {
  flex-shrink: 0;
  width: calc(33.333% - 13.333px);
  scroll-snap-align: start;    
}

@media (max-width: 768px) {
  .slider-light .slider > * {
    width: calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .slider-light .slider > * {
    width: 100%;
  }
}

.slider-light .slider br {
  display: none;
}

.slider-light-button {
  position: absolute;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--button-bg-color) center center / 24px auto no-repeat;
  cursor: pointer;
  z-index: 1;
  opacity: 0.75;
}

.slider-light-button:hover {
  opacity: 1;
}

.slider-light-button-left {
  left: 10px;
  background-image: url(../img/icon-arrow-left.svg);
}

.slider-light-button-right {
  right: 10px;
  background-image: url(../img/icon-arrow-right.svg);
}

.slider-light-button.disabled {
  opacity: 0.25;
  cursor: default;
}

/******************************/

.tabs-toggle {
  padding: 0px;
  margin: 0px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #ccc;
}

.tabs-toggle li {
  display: block;
  position: relative;
  top: 1px;
  margin-left: 10px;
  border: 1px solid #ccc;
  border-radius: 4px 4px 0 0;
  background: #f1f1f1;
  line-height: 30px;
}

.tabs-toggle li a {
  display: block;
  padding: 0px 10px;
  color: #333;
  text-transform: uppercase;
  text-decoration: none;
}

.tabs-toggle li.tabs-toggle-active,
.tabs-toggle li:hover {
  border-bottom: 1px solid #fff;
  background: #fff;
}

.tabs-content {
  display: none;
  margin-top: 20px;
}

.tabs-content-toggle {
  display: none;
  align-items: center;
  height: 40px;
  padding: 0px 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f1f1f1 url(../img/tabs-open.svg) right 10px center / 20px auto no-repeat;
  color: #333;
  text-decoration: none;
}

.tabs-content-toggle-active {
  background-image: url(../img/tabs-close.svg);
}

.tabs-content-toggle:hover {
  color: #333;
}

@media (max-width: 1024px) {
  .tabs-toggle {
    display: none;
  }
  .tabs-content {
    display: block;
    overflow: hidden;
    height: 40px;
    margin: 0px 0px 10px 0px;
  }
  .tabs-content-toggle {
    display: flex;
  }
}

/******************************/

.bbcode-align-left {
  float: left;
  margin-right: 40px;
}

.bbcode-align-center {
  display: block;
  margin: 0px auto;
  text-align: center;
}

.bbcode-align-right {
  float: right;
  margin-left: 40px;
}

/******************************/

.bbcode-table {
  border-collapse: collapse;
}

.bbcode-table th {
  font-weight: normal;
  border: 1px solid #325a49;
  background: #325a49;
  color: #fff;
  padding: 5px 15px;
}

.bbcode-table td {
  padding: 5px 15px;
  border: 1px solid #325a49;
}

/******************************/

.bbcode-ol,
.bbcode-ul {
  padding-left: 40px;
}

.bbcode-ul li {
  margin-left: -25px;
  padding-left: 20px;
  display: block;
  background: url(../img/checkbox.png) left top 7px / auto 12px no-repeat;
}

/******************************/

.bbcode-file {
  color: var(--link-color);
}

/******************************/

.content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 40px 40px 40px;
}

/******************************/

h1 {
  font-size: 200%;
  font-weight: normal;
  margin-bottom: 20px;
  line-height: 1.2;
}

h2 {
  font-size: 170%;
  font-weight: normal;
  margin-bottom: 10px;
  line-height: 1.2;
}

h3 {
  font-size: 140%;
  margin-bottom: 5px;
  font-weight: normal;
}

img {
  display: inline-block;
  max-width: 100%;
}

hr {
  border: none;
  border-bottom: 1px solid var(--input-border-color);
  margin: 40px 0;
}

sup {
  vertical-align: super;
  line-height: 0;
}

sub {
  vertical-align: sub;
  line-height: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a:not([class]) {
  color: var(--link-color);
}

a:not([class]):hover {
  color: var(--link-color-hover);
}

/******************************/

.header-left {
  width: 100%;
  padding: 30px;
  color: #fff;
  background: #1a2e49;
  box-shadow: 20px 20px 0 #98551e;
}

.header-right {
  margin-left: auto;
  width: 100%;
  padding: 30px;
  color: #fff;
  background: #1a2e49;
  box-shadow: -20px 20px 0 #98551e;
  text-align: right;
}

blockquote {
  position: relative;
  margin: 0 auto;
  width: 60%;
  border-top: 1px solid #6a1300;
  border-bottom: 1px solid #6a1300;
  color: #6a1300;
}

blockquote div {
  padding: 30px;
  width: 100%;
  height: 100%;
  text-align: center;
}

/******************************/

details {
  padding: 0px 0px 20px 0px;
}

details summary::marker {
  content: "";
}

details summary {
  padding: 5px 50px 5px 0;
  background: url(../img/icon-plus.svg) right 10px center / 24px auto no-repeat;
  font-size: 125%;
  line-height: 1.2;
  cursor: pointer;
}

details[open] summary {
  background-image: url(../img/icon-minus.svg);
}

/******************************/

@media (max-width: 1024px) {
  .content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .content {
    padding: 20px 10px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 150%;
  }
  h2 {
    font-size: 125%;
  }
  h3 {
    font-size: 115%;
  }
}

/******************************/

.edit {
  flex-shrink: 0;
  position: absolute;
  margin-left: -24px;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 20px;
  border-radius: 50%;
  opacity: 0.75;
  background: #ccc url(../img/icon-edit.svg) center center / 12px auto no-repeat;
  transition: opacity 0.2s ease;  
}
.edit:hover {
  opacity: 1;
}

@media print {
  .edit {
    display: none;
  }
}

/******************************/

.footer {
  background: #293b49;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/*************************/

.footer-phone-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.footer-phone {
}

.footer-phone a {
  display: block;
  padding: 0px 0px 0px 30px;
  background: url(../img/footer-phone.svg) left center / 24px auto no-repeat;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

.footer-phone a:hover {
  color: #fff;
}

/*************************/

.footer-messengers {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-messengers a {
  width: 40px;
  height: 40px;
  background: center center / 20px auto no-repeat;
  border-radius: var(--button-border-radius);
}

.footer-messengers a.messengers-tg {
  background-image: url(../img/messengers-tg.svg);
}
.footer-messengers a.messengers-wa {
  background-image: url(../img/messengers-wa.svg);
}

/*************************/

.footer-copyright {
  color: #fff;
}

.footer-copyright a {
  color: #fff;
  text-decoration: none;
}

.footer-copyright a:hover {
  color: #fff;
}

/*************************/

@media (max-width: 1024px) {
  .footer-nav {    
    flex-wrap: wrap;
  }
  .footer-copyright {
    width: 100%;    
  }
}

@media (max-width: 768px) {
  .footer-phone-wrapper {
    flex-wrap: wrap;
  }
}

/******************************/

.form {
}

.form > label,
.form > div {
  display: block;
  margin-top: 20px;
}

.form > label.col2,
.form > div.col2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
}

.form > label.col3,
.form > div.col3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 20px;
}

.content input[type="text"],
.content input[type="email"],
.content input[type="tel"],
.content input[type="password"],
.content input[type="search"],
.content textarea,
.content select {
  display: block;
  width: 100%;
  padding: 5px;
  border: 1px solid var(--input-border-color);
  border-radius: var(--input-border-radius);
  background-color: var(--input-bg-color);
  color: var(--input-color);
  font: inherit;
}

.content input:focus,
.content textarea:focus,
.content select:focus {
  outline: 0;
  border: 1px solid var(--input-border-color-focus);
}

a.button,
button, 
.content input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 20px;
  background-color: var(--button-bg-color);  
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--button-bg-color);
  border-radius: var(--button-border-radius);
  font: inherit;
  text-decoration: none;
  color: var(--button-color);
  white-space: nowrap;
  transition: background 0.2s ease;
  cursor: pointer;
}

a.button:hover,
button, 
.content input[type="submit"]:hover {
  color: var(--button-color);
  background-color: var(--button-bg-color-hover);
  border: 1px solid var(--button-bg-color-hover);
}

a.button-alt {
  color: var(--button-alt-color);
  background-color: var(--button-alt-bg-color);
  border: 1px solid var(--button-alt-bg-color);
}

a.button-alt:hover {
  color: var(--button-alt-color);
  background-color: var(--button-alt-bg-color-hover);
  border: 1px solid var(--button-alt-bg-color-hover);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-checkbox {
  display: block;
}

.form-checkbox input {
  margin-right: 10px;
}

.form-radio {
  display: flex;  
  align-items: center;
  gap: 10px;
}

@media (max-width: 1024px) {
  .form > label.col3,
  .form > div.col3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .form > label.col2,
  .form > div.col2 {
    grid-template-columns: 1fr;
  }

  .form > label.col3,
  .form > div.col3 {
    grid-template-columns: 1fr;
  }
}

/************************************/

.required {
  color: #c00;
}

.message-error {
  margin: 20px 0px 0px 0px;
  padding: 5px 10px;
  color: #fff;
  background: #f44336;
}

.message-success {
  margin: 20px 0px 0px 0px;
  padding: 5px 10px;
  color: #fff;
  background: #43a047;
}

.message-error a,
.message-success a {
  color: #fff;
}

/******************************/

.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
}

.header-wrapper-scrolled {
  box-shadow: 2px 0px 4px #00000020
}

/******************************/

.header-menu {
  display: flex;  
  padding: 10px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-menu ul {
  width: 100%;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.header-menu li {
  display: block;
}

.header-menu a {
  text-decoration: none;
}

/******************************/

.header {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: center;
  padding: 0px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/******************************/

.header-logo {
  flex-shrink: 0;
  display: block;
  width: 400px;
  height: 100px;
  background: url(../img/logo.png) left center / contain no-repeat;
}

/******************************/

.header-sidebar-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: none;
  cursor: pointer;
  background: url(../img/header-menu-show.svg) center center / 30px auto no-repeat;
}

.header-sidebar-show {
  background-image: url(../img/header-menu-show.svg);
}

.header-sidebar-hide {
  background-image: url(../img/header-menu-hide.svg);
}

.header-menu-close {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: url(../img/header-menu-hide.svg) center center / 32px auto no-repeat;
  border-radius: 50%;
}

/******************************/

.header-messengers {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-messengers a {
  width: 30px;
  height: 30px;  
  background: center center / 30px auto no-repeat;
}

.header-messengers a.messengers-tg {
  background-image: url(../img/header-tg.png);
}
.header-messengers a.messengers-wa {
  background-image: url(../img/header-wa.png);
}

/******************************/

.header-phone {
  display: block;
  padding: 0px 0px 0px 36px;
  background: url(../img/header-phone.svg) left center / 32px auto no-repeat;
  color: #333;
  text-decoration: none;
  font-size: 18px;
}

.header-phone a {
  color: #333;
  text-decoration: none;
}

.header-phone:hover {
  color: #333;
}

/******************************/

@media (max-width: 1024px) {
  .header {
    padding: 10px 20px;
    gap: 10px;
  }
}

@media (max-width: 768px) {  
  .header-menu {
    padding: 40px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 100vh;
    overflow: scroll;
    overscroll-behavior: contain;
    margin-left: -100%;
    box-shadow: 0px 3px 6px 0 rgba(50, 50, 50, 0.3);
    background: #fff;
    font-size: 18px;
  }
  .header-menu ul {
    flex-direction: column;
    justify-content: center;
  }
  .header-menu a.header-menu-close {
    display: block;
  }
  .header {
    padding: 10px 10px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }
  .header-logo {
    width: 100%;
    height: 100px;
    background-position: center;
  }
  .header-sidebar-toggle {
    display: block;
  }
}

/******************************/

.modal-wrapper {
  /* body */
  min-height: auto;
}

.modal-wrapper .content {
  width: 100%;
  background: var(--bg-color);
  padding: 20px;
}

.modal-wrapper h1 {
  text-align: center;
}

/************************************/

.modal-wrapper .form > label,
.modal-wrapper .form > div {
  display: block;
  margin-top: 20px;
}

.modal-wrapper .form input,
.modal-wrapper .form select,
.modal-wrapper .form textarea {
  width: 100%;
  max-width: 100%;
}

.modal-wrapper .form input[type="checkbox"],
.modal-wrapper .form input[type="radio"] {
  width: auto;
  max-width: none;
}

/******************************/

.search-form {
  display: flex;
  grid-gap: 20px;
}

/******************************/

.sitemap li {
  margin-left: 40px;
}

/******************************/

.subpages {
}

.subpages-item {
  margin-bottom: 30px;
}

.subpages-item:after {
  content: "";
  display: block;
  visibility: hidden;
  height: 0;
  clear: both;
}

.subpages-image {
  display: block;
  float: left;
  margin-right: 30px;
  margin-bottom: 1em;
  max-width: 300px;
}

.subpages-image img {
  display: block;
  max-width: 100%;
}

/*********************/

.subpages-nav {
  background: var(--bg-color-alt);
  padding: 20px;
}

.subpages-nav-title {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-size: 120%;
  text-decoration: none;
}

.subpages-nav-title:hover {
  color: var(--text-color);
}

.subpages-nav-tree {
  font-size: 80%;
}

.subpages-nav-tree ul {
  margin-left: 20px;
  display: block;
}

.subpages-nav-tree li {
  display: block;
}

.subpages-nav-tree a {
  display: block;
  color: var(--text-color);
  padding: 5px 20px;
  text-decoration: none;
}

.subpages-nav-tree a:hover,
.subpages-nav-tree a.subpages-nav-tree-active {
  color: var(--text-color);
  background: #f1f1f1;
}

/******************************/

.paginator {
  margin: 40px 0px;
  display: flex;
  grid-gap: 10px;
  justify-content: center;
}

.paginator > * {
  text-decoration: none;
  padding: 5px 10px;
  color: var(--text-color);
  border-radius: var(--button-border-radius);
}

.paginator a:hover {
  color: #fff;
  background-color: #325a49;
}

.paginator b {
  font-weight: normal;
  color: #fff;
  background-color: #40745e;
}

/******************************/

.banner-index {
}

.banner-index a {
  display: block;
}

.banners-index img {
  display: block;
}

/******************************/

.breadcrumbs {
  margin-bottom: 20px;
  font-size: 80%;  
  line-height: 1.2;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.breadcrumbs li {
  display: inline-block;
}

.breadcrumbs li a {
  display: block;
  padding: 3px 20px 3px 10px;
  background: var(--bg-color-alt) url(../img/breadcrumbs-delimiter.svg) right 0px center / 20px auto no-repeat;
  color: #666;
  text-decoration: none;
}

.breadcrumbs li a:hover {
  color: #333;
}

.breadcrumbs li span {
  display: block;
  padding: 3px 0px;
  color: #bbb;
}

@media (max-width: 480px) {
  .breadcrumbs {
    margin: 0 -10px 20px -10px;
  }
  .breadcrumbs ol {
    flex-wrap: nowrap;
    overflow: scroll;
    padding: 0 10px 10px 10px;
  }
  .breadcrumbs li {
    flex-shrink: 0;
  }
}

/******************************/

.cookie-dialog {
  width: 100%;
  position: fixed;
  z-index: 5;
  bottom: 0px;
  display: flex;
  grid-gap: 40px;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 12px;
}

.cookie-text {
  color: #fff;
}

.cookie-text a {
  color: #fff;
}

.cookie-text a:hover {
  color: #fff;
}

.cookie-button {
  display: inline-block;
  padding: 5px 20px;
  background-color: var(--button-bg-color);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--button-bg-color);
  border-radius: var(--button-border-radius);
  font: inherit;
  text-decoration: none;
  color: var(--button-color);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.cookie-button:hover {
  color: var(--button-color);
  background-color: var(--button-bg-color-hover);
  border: 1px solid var(--button-bg-color-hover);
}

/******************************/

@media print {

  .header,
  .footer,
  .sidebar,
  .breadcrumbs {
    display: none;
  }

}

/******************************/

.top {
  position: fixed;
  visibility: hidden;
  z-index: 4;
  display: block;
  bottom: 40px;
  right: 40px;  
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  background: #293b49 url(../img/icon-top.svg) center center / 30px auto no-repeat;
  transition: all ease 0.2s;
  box-shadow: 2px 2px 2px #00000010;
}

.top:hover {
  opacity: 1;
}

.top-visible {
  visibility: visible;
  opacity: 0.75;
}

@media (max-width: 1024px) {
  .top {
    right: 20px;
    bottom: 80px;
  }
}

/******************************/

