/* 
Datalife Engine template, name: Kinokordon Dark , creation date: 11 June 2021
*/

:root {
  --bg: #384655;
  --bg-2: #303d4a;
  --bg-3: #26313c;
  --bg-4: #fff;
  --tt: #eee;
  --tt-2: #FFF;
  --tt-3: #b6c2cf;
  --bdc: rgba(0, 0, 0, 0.4);
  --bsh: 0 10px 30px 0 rgba(0, 0, 0, 0.5);
  --gradient: linear-gradient(to right, #eb4d4b, #c471ed);
  --accent: #f7941e;
  --accent-darker: #df8211;
  --accent-2: #63b0ea;
  --accent-3: #fa6b5b;
  --ui-bg: #384655;
  --ui-bg-darker: #303d4a;
  --ui-bg-darkest: #26313c;
  --ui-bg-accent: #26313c;
  --ui-text-color-on-accent: #fff;
  --ui-bdc: #111;
  --indent-negative: -60px;
  --indent: 60px; /* основной отступ справа и слева */
  --maximum-width: 1460px; /* максимальная ширина блока контента */
}

/* RESET, BASIC UI SETTINGS
----------------------------------------------- */
* {
  background: transparent;
  margin: 0;
  padding: 0;
  outline: none;
  border: 0;
  box-sizing: border-box;
}

ol, ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, table, iframe, video, frame, embed, object {
  max-width: 100%;
  height: auto; /* добавлено для автоматической высоты */
}

body {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.5; /* заменил 'normal' на число */
  padding: 0;
  margin: 0;
  color: var(--tt);
  background: var(--bg);
  min-height: 100%;
  width: 100%;
  font-weight: 400;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

a {
  color: var(--tt);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--tt);
  text-decoration: underline; /* добавил подчеркивание при hover */
}

h1, h2, h3, h4, h5 {
  font-weight: 300;
  font-size: 24px;
}

/* Выделение текста */
::selection {
  background: #ff0000;
  color: #fff;
}

b,
strong,
.bolder {
  font-weight: 700;
}

/* Кнопки и формы */
button,
.select,
textarea,
input[type="text"],
input[type="password"],
input[type="button"],
input[type="submit"] {
  appearance: none;
  -webkit-appearance: none;
  font-size: 16px;
  font-family: inherit;
}

/* Общий стиль кнопок */
button,
.btn,
input[type="button"],
input[type="reset"],
input[type="submit"],
.form__btn,
.qq-upload-button,
.pm__links a,
.usp__btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  padding: 0 20px;
  height: 40px;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  background-color: var(--accent);
  color: #fff;
  border-radius: 3px;
  box-shadow: none;
  border: none; /* убрал рамку по умолчанию */
  transition: background-color 0.3s;
}

button:hover,
.btn:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.form__btn:hover,
.qq-upload-button:hover,
.pm__links a:hover,
.usp__btn a:hover {
  background-color: var(--accent-darker);
  color: #fff;
}

button:active,
input[type="button"]:active,
input[type="submit"]:active {
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Удаление внутренних отступов и маргинов для элементов с классами */
.color-btn,
[class*="fr"],
[class*="plyr"],
[class*="owl-"],
[id*="mceu"] {
  padding: 0;
  margin: 0;
  line-height: normal;
  border: none;
  box-shadow: none;
  background: none;
  border-radius: 0;
}

/* Поля ввода */
input[type="text"],
input[type="password"] {
  height: 40px;
  line-height: 40px;
  border-radius: 4px;
  padding: 0 15px;
  border: 1px solid #e3e3e3;
  background-color: #fff;
  color: #000;
  box-shadow: inset 0 0 0 1px #e3e3e3;
  transition: box-shadow 0.3s;
}

select {
  height: 40px;
  padding: 0 15px;
  display: block;
  border: 1px solid #e3e3e3;
  background-color: #fff;
  color: #000;
  border-radius: 4px;
  appearance: none;
  background-image: url('../dleimages/chevron.svg');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 0.6em auto;
  transition: box-shadow 0.3s;
}

select option {
  padding: 6px 10px;
}

/* Для множественного выбора */
select[multiple] {
  padding: 0 5px;
}

/* Текстовые поля */
textarea {
  padding: 15px;
  overflow: auto;
  vertical-align: top;
  resize: vertical;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background-color: #fff;
  color: #000;
  transition: box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  box-shadow: inset 0 0 0 1px var(--accent),
              inset 1px 2px 5px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* Плейсхолдеры */
input::placeholder,
textarea::placeholder {
  color: #000;
  opacity: 0.4;
  font-size: 13px;
}
input:focus::placeholder,
textarea:focus::placeholder {
  color: transparent;
}

/* Обертки изображений */
.img-box,
.img-wide,
.img-responsive,
.img-fit-cover {
  overflow: hidden;
  position: relative;
}

/* Адаптивные изображения */
.img-responsive {
  padding-top: 60%; /* для адаптивных изображений */
}

.img-responsive--portrait {
  padding-top: 150%;
}

.img-box > img,
.img-responsive > img {
  width: 100%;
  min-height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.img-wide img,
.img-wide > a {
  width: 100%;
  display: block;
}

.img-fit-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Очистка */
.clr {
  clear: both;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Работа с текстом */
.ws-nowrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Вёрстка и сетки */
.vw100 {
  margin: 0 calc((100% - 100vw) / 2);
  padding: 0 calc((100vw - 100%) / 2);
}

/* Градиенты и маски */
.img-mask::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(to top, #000 0%, transparent 100%);
  opacity: 0.8;
}

/* Flexbox и гриды */
.d-flex,
.fx-row,
#dle-content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.fd-column,
.fx-col {
  flex-direction: column;
  flex-wrap: nowrap;
}

.jc-space-between,
.fx-row {
  justify-content: space-between;
}

.jc-flex-start,
.fx-start,
#dle-content {
  justify-content: flex-start;
}

.jc-center,
.fx-center {
  justify-content: center;
}

.jc-flex-end {
  justify-content: flex-end;
}

.ai-flex-start {
  align-items: flex-start;
}

.ai-center,
.fx-middle {
  align-items: center;
}

.ai-flex-end {
  align-items: flex-end;
}

.order-first {
  order: -1;
}

.order-last {
  order: 10;
}

/* Гибкие размеры */
.flex-grow-1,
.fx-1,
.stretch-free-width {
  flex: 1 1 0;
  max-width: 100%;
  min-width: 50px;
}

/* Иконки и центровка */
.btn-icon,
.centered-content {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.icon-at-left [class*="fa-"],
.icon-left .icon {
  margin-right: 0.5em;
}

.icon-at-right [class*="fa-"],
.icon-right .icon {
  margin-left: 10px;
}

/* Скрытые элементы */
.hidden,
#dofullsearch,
.form__header .form__btn,
.comment-item__main .quote + br,
.d-none {
  display: none;
}

/* Анимации и переходы */
.animated-element,
button,
.btn,
.page__rating-bar-progress,
.thumb__img {
  transition: all 0.3s;
}

/* Контентные области */
#dle-content > *:not(.grid-item),
#dle-content {
  width: 100%;
}

#dle-content,
.d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-gap: 30px 20px;
  grid-auto-flow: row dense;
}

#dle-content > *:not(.grid-item) {
  grid-column: 1 / -1;
}

/* Lazy load эффект */
[data-src] {
  opacity: 0;
  transition: opacity 0.3s;
}

[data-src].lazy-loaded {
  opacity: 1;
}

/* Шрифты */
@font-face {
  font-family: 'Manrope';
  src: url('../webfonts/manrope-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../webfonts/manrope-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../webfonts/manrope-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../webfonts/manrope-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}