
:root > * {
    --md-code-hl-string-color: #0FF1CE;
  }
.md-header__button.md-logo img, .md-nav__title .md-logo img {
    height: 40px !important;
    border-radius: 50%;
    background: #0000005c;
    border: 1px solid #282828;
    box-shadow: 0 0 15px #000000;
  }
.md-header__button, .md-header__button.md-logo{
    padding: 0px;
}
.md-typeset h1{
  padding-bottom: 0.3rem;
}
.md-header__topic span:hover{
    cursor: default;
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.custom-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background-color: var(--md-default-bg-color);
  padding: 0;
}

.card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
    opacity: 1 ;
  transform: scale(1);
  transition: transform 0.2s ease-out, opacity 0.3s ease-out !important;
}
.custom-card .card-image:hover {
  opacity: 0.9;
  transform: scale(1.02);
}


.card-title {
  margin: 0 !important;
  padding: 0.5rem 1rem;
  font-size: 0.9rem !important;
  font-weight: 600;
  height: 60px;
  align-content: center;
  text-align: center;
}

/* Лейблы */

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25em 0.6em;
  border-radius: 4px;
  color: #fff;
  background-color: var(--md-accent-fg-color);
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.badge-new {
  background-color: #1abc9c;
}

.badge-pro {
  background-color: #e67e22;
}

.badge-free {
  background-color: #3498db;
}

.md-typeset h1.centered-title {
  text-align: center;
  font-weight: 600;
}

.youtube-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.youtube-container iframe {
  width: 100%;
  max-width: var(--youtube-max-width, 640px);
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
}

.img-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 55%;
}

.button-center {
  text-align: center;
  margin: 1em 0;
}

.doc-btn, .get-asset-btn{
  width: 300px;
}

.get-asset-btn .twemoji{
  margin-top:2px;
}

.contact-form {
  max-width: 480px;
  margin: 2rem auto;
  padding: 0;            /* Убираем фоновые отступы */
  background: transparent; /* Без фона */
  box-shadow: none;      /* Без тени */
  display: flex;
  flex-direction: column;
  gap: 0;
  color: inherit;        /* Наследует цвет текста страницы */
  font-family: inherit;
  border-radius: 0;
}
.contact-form .md-button{
  margin-top: 1rem;
}
.contact-form label {
  font-weight: 400;
  color: inherit;
  margin-top: 0.8rem;
  margin-bottom: 0.2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.1);
  background-color: transparent;
  color: inherit;
  transition: border-color 0.3s;
  font-family: inherit;
  resize: vertical;
  background-color: rgba(0, 0, 0, 0.04);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid rgba(255,255,255,0.25);
}
.contact-form textarea:focus{
  outline: none;
}

.contact-form button.md-button.md-button--primary {
  padding: 0.7rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  align-self: center;
  min-width: 120px;
}
.contact-form label .required {
  color: #ff3f34;
  margin-left: 0.25em;
  font-weight: 700;
}
.field-description{
    font-size: 0.6rem;
    margin: 0.2rem;
    opacity: 0.6;
}
[data-md-color-scheme="default"] {
  .contact-form input,
  .contact-form textarea {
    border: 1px solid rgba(0,0,0,0.1);
    background-color: rgba(0, 0, 0, 0);
  }
  .contact-form input:focus,
  .contact-form textarea:focus {
    border: 1px solid rgba(0,0,0,0.3);
  }
}

.pswp-gallery-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem; 
  margin: 1rem auto; 
  max-width: 100%;
}

.pswp-gallery-left{
  justify-content: left;
}

.pswp-gallery-centered a {
  display: block;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.pswp-gallery-centered a:hover {
  transform: scale(1.02);

}

.pswp-gallery-centered img {
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.1);
}

.md-typeset .admonition.codeblock,
.md-typeset details.codeblock {
  border: 0.15rem solid rgb(70 144 205 / 15%);
}

.md-typeset .codeblock > .admonition-title,
.md-typeset .codeblock > summary {
  background-color: rgb(70 144 205 / 15%);
}
.md-typeset .codeblock > .admonition-title::before,
.md-typeset .codeblock > summary::before {
  background-color: rgb(85 152 189);
  -webkit-mask-image: var(--md-admonition-icon--codeblock);
          mask-image: var(--md-admonition-icon--codeblock);
}

.md-typeset .codeblock hr{
      margin: 0.25rem 0;
      background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgb(43 111 151 / 26%) 50%, rgba(0, 0, 0, 0) 100%)
}
.md-typeset .codeblock code{
  border: 1px solid rgb(70 144 205 / 15%);
}
.md-typeset .codeblock .md-typeset__scrollwrap{
  text-align: center;
}
.md-typeset .codeblock .md-typeset__scrollwrap thead{
  background-color: rgba(0,0,0,0.1);
}

.flex-table-wrapper {
  overflow-x: auto;
  margin: 0;
  border-radius: 5px;
  border: 1px solid rgb(131 131 131 / 26%);
}

.flex-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  font: inherit;
  color: inherit;
  min-width: max-content; /* Позволяет таблице быть шире контейнера */
}

.flex-table-row {
  display: table-row;
}

.flex-table-row.header {
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.03);
}

.flex-table-row.header {
  background-color: rgb(0 0 0 / 16%);
  border-bottom: 1px solid rgb(131 131 131 / 13%);
}

.flex-table-row.header .flex-cell{}

.code-chunk-default{
  color:#6b92ec;
}
.code-chunk-class{
  color:#33cab6;
}
.code-chunk-enum{
  color:#cbd194;
}
.code-chunk-struct{
  color:#92d482;
}

.code-chunk-default, .code-chunk-class, .code-chunk-enum, .code-chunk-struct{
  font-weight: 700;
  margin: 0 0.25rem;
}

[data-md-color-scheme="default"] .code-chunk-enum{
  color:#46b89f;
}
[data-md-color-scheme="default"] .code-chunk-class{
  color:#278053;
}

[data-md-color-scheme="default"] .code-chunk-struct{
  color:#70b65e;
}

.flex-cell {
  display: table-cell;
  padding: 0.3rem 0.8rem;
  border-right: 1px dotted rgb(117 117 117 / 13%);
  vertical-align: top;
  word-break: break-word;
}
.flex-cell:last-child{
  border: 0;
}

.md-typeset .codeblock:focus-within{
  box-shadow: none;
    border: 0.15rem solid rgb(70 144 205 / 25%);
}

.md-typeset hr{
  border-bottom: none;
  background: #000000;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(131, 131, 131, 0.26) 50%, rgba(0, 0, 0, 0) 100%);
  height: 2px;
}

[data-md-color-scheme="default"] .md-nav__link[href="http://127.0.0.1:8000/app2-docs/"]::before{
    background-image: url('/assets/app2-icon.png');
    background-size: 24px 24px;
    display: inline-block;
    width: 24px; 
    height: 24px;
    content:"";
    filter: brightness(0) saturate(100%) invert(17%) sepia(40%) saturate(16%) hue-rotate(2deg) brightness(92%) contrast(99%);
}

.md-nav__link[href="http://127.0.0.1:8000/app2-docs/"]::before{
    background-image: url('/assets/app2-icon.png');
    background-size: 24px 24px;
    display: inline-block;
    width: 24px; 
    height: 24px;
    content:"";
    filter: brightness(0) saturate(100%) invert(89%) sepia(8%) saturate(111%) hue-rotate(185deg) brightness(106%) contrast(85%);
}

[data-md-color-scheme="default"] .md-nav__link[href="http://127.0.0.1:8000/app2-docs/"]:hover::before{
    filter: brightness(0) saturate(100%) invert(53%) sepia(95%) saturate(1291%) hue-rotate(195deg) brightness(90%) contrast(94%);
}

.md-nav__link[href="http://127.0.0.1:8000/app2-docs/"]:hover::before{
    filter: brightness(0) saturate(100%) invert(29%) sepia(99%) saturate(2249%) hue-rotate(242deg) brightness(99%) contrast(103%);
}

.pswp-gallery-centered img{
  /*border: 1px solid #5e5e5e;*/
    outline-style: outset;
    outline-width: thin;
    outline-color: #a5a5a580;
}
.pswp img{
    border: 1px solid #161616;
    box-shadow: 0 0 30px #00000045;
}