/*
 * OZEON
 * Technical styles only.
 */


/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #ffffff;
  font-family: Arial, sans-serif;
  text-rendering: optimizeLegibility;
}


/* HERO */

.site-hero {
  position: relative;
  margin: 10px auto 0;
  overflow: hidden;
}

.site-hero__overlay {
  position: absolute;
  inset: 0;
}

.site-logo {
  position: absolute;
  height: auto;
  z-index: 2;
}


/* GAP */

.hero-panel-gap {
  margin: 0 auto;
}


/* FEATURE PANEL */

.feature-panel {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}


/* FEATURE CARD */

.feature-card {
  position: absolute;
  overflow: hidden;
  z-index: 1;
}


/* CARD SCENE */

.feature-card__scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}


/* CARD IMAGE */

.feature-card__image {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: transform, opacity;
}

.feature-card__image--active {
  opacity: 1;
}


/* CARD OVERLAY */

.feature-card__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}


/* CARD CONTENT */

.feature-card__content {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}


/* CARD TEXT */

.feature-card__title {
  margin: 0;
  line-height: 1.1;
}

.feature-card__description {
  margin: 4px 0 0;
  line-height: 1.3;
}


/* IMAGE MOVEMENT */

@keyframes feature-pan-left {
  from {
    transform: scale(1.15) translateX(2%);
  }

  to {
    transform: scale(1.15) translateX(-2%);
  }
}

@keyframes feature-pan-right {
  from {
    transform: scale(1.15) translateX(-2%);
  }

  to {
    transform: scale(1.15) translateX(2%);
  }
}


/* NEWS PANEL */

.news-panel {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}

/* NEWS ARTICLE */

.news-article {
  position: relative;
}

.news-article::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--news-article-overlay);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.news-article > * {
  position: relative;
  z-index: 1;
}

/* NEWS ARTICLE CONTENT */

.news-article__content {
  position: relative;
}

/* NEWS HEADER */

.news-header {
  position: relative;
}


/* NEWS ITEM */

.news-item {
  display: flex;
  align-items: flex-start;
  position: relative;
}


/* NEWS IMAGE */

.news-item__image {
  display: block;
  flex-shrink: 0;
  object-fit: cover;
}


/* NEWS CONTENT */

.news-item__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}


/* NEWS TEXT */

.news-item__category,
.news-item__title,
.news-item__description {
  margin-left: 0;
  margin-right: 0;
}

.news-item__title {
  margin-top: 4px;
  margin-bottom: 0;
}

.news-item__description {
  margin-top: 4px;
  margin-bottom: 0;
}

.news-item__date {
  margin-top: auto;
}


/* FOOTER */

.site-footer {
  margin: 10px auto 20px;
  text-align: center;
}

/* RESPONSIVE */

@media (max-width: 1239px) {
  .site-hero,
  .hero-panel-gap,
  .feature-panel,
  .news-panel,
  .site-footer {
    width: calc(100vw - 40px);
    max-width: 1200px;
  }
}


/* MOBILE */

@media (max-width: 700px) {
  .site-hero {
    width: 100%;
    border-radius: 0;
  }

  .hero-panel-gap {
    width: 100%;
  }

  .feature-panel {
    width: 100%;
  }

  .news-panel {
    width: 100%;
    border-radius: 0;
  }

  .site-footer {
    width: 100%;
  }
}

/* МОДАЛЬНОЕ ОКНО АВТОРИЗАЦИИ */

.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.60);
}

/* СОСТОЯНИЕ ПОЛЕЙ РЕГИСТРАЦИИ ПРИ ФОКУСЕ */
.register-panel input:focus {
  outline: none;
  border-color: rgba(5, 245, 245, 0.65);
  box-shadow: 0 0 0 1px rgba(5, 245, 245, 0.20);
}

/* СОСТОЯНИЕ ОШИБКИ ПОЛЕЙ РЕГИСТРАЦИИ */
.register-panel input.register-input-error {
  border-color: rgba(255, 70, 70, 0.80);
  box-shadow: 0 0 0 1px rgba(255, 70, 70, 0.20);
}

/* СОСТОЯНИЕ КНОПКИ СОЗДАНИЯ АККАУНТА */
.register-form__submit {
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.register-form__submit:hover {
  background: rgba(5, 245, 245, 0.12);
  border-color: rgba(5, 245, 245, 0.55);
  box-shadow: 0 0 10px rgba(5, 245, 245, 0.12);
}

.register-form__submit:focus {
  outline: none;
  border-color: rgba(5, 245, 245, 0.65);
  box-shadow: 0 0 0 1px rgba(5, 245, 245, 0.20);
}

/* СОСТОЯНИЕ ОШИБКИ ПОЛЕЙ ВХОДА */
.auth-input-error {
  border-color: rgba(255, 70, 70, 0.80) !important;
  box-shadow: 0 0 0 1px rgba(255, 70, 70, 0.20);
}

/* ТЕКСТ ОШИБКИ СОВПАДЕНИЯ ПАРОЛЕЙ */
.register-password-error {
  margin-top: 4px;
  color: rgba(255, 70, 70, 0.90);
  font-size: 11px;
  line-height: 1.2;
}