/** {*/
/*  border: 1px solid grey;*/
/*}*/

body {
  font-family: 'Inter', sans-serif;
}

#image-preview,
#side-image-preview {
  width: 30%; /* или другая ширина, в зависимости от вашего дизайна */
  height: auto; /* сохраняет пропорции изображения */
  margin-top: 10px; /* отступ сверху */
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
}

#main-character-pic,
#side-character-pic {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


#auth-ava {
  width: 5rem;
  height: 5rem;
  background-image: url("../images/common/ava.png");
  background-size: contain;
  margin-left: auto;
  margin-right: auto;
}

#logo {
  width: 10rem;
  height: 5rem;
  background-image: url("../images/common/dmvc.png");
  background-size: contain;
  margin-left: auto;
  margin-right: auto;
  background-repeat: no-repeat;
}

@media (min-width: 992px) {
  #auth-form {
    width: 30%;
    margin: auto;
  }
}

/*#interface  {*/
/*  height: 85vh!important;*/
/*}*/

h3 {
  font-weight: 600!important;
}

.text-purple {
  font-family: 'Inter', sans-serif;
  color: #56388C;
}

.text-grey {
  font-family: 'Inter', sans-serif;
  color: #969696;
}

.custom-form-control {
  border-radius: 10px!important;
  background-color: #F2F2F2!important;
  color: #969696!important;
  margin-left: auto;
  margin-right: auto;
}

.btn-purple {
  border-radius: 10px!important;
  background-color: #56388C!important;
  color: white!important;
  border: 3px solid #56388C!important;
}

.btn-outline-purple {
  color: #969696!important;
  border: 3px solid #B197F1!important;
}

.btn-outline-purple:hover {
  border: 3px solid #56388C!important;
}

.btn-purple:hover {
  background-color: white!important;
  color: #56388C!important;
}

.btn-white {
  border-radius: 10px!important;
  background-color: white!important;
  color: #969696!important;
  border: 3px solid #B197F1!important;
}

.btn-white:hover {
  border: 3px solid #56388C!important;
}

.google {
  width: 20px;
  height: 20px;
  content: url("../images/common/google.png");
  margin: auto;
}

main {
  /*background-image: linear-gradient(to bottom, #f0eae2, #ff9966);*/
  /*overflow: scroll;*/
}

nav.bottom-nav {
  background: white;
}

.nav-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-size: contain;
  /*background: #007bff;*/
}

#nav-icon-profile.dropdown-toggle::after {
  display: none; /* Скрывает стрелочку */
}

label:has(input.hero-avatar:checked) {
  /*outline: 5px solid #56388C!important;*/
  box-shadow:   0 0 3px 0 rgba(86, 56, 140, 1),   /* Самый темный цвет */
                0 0 1px 2px rgba(86, 56, 140, 0.7), /* Переход к более светлому */
                0 0 1px 3px rgba(86, 56, 140, 0.5), /* Еще более светлый */
                0 0 1px 4px rgba(86, 56, 140, 0.3), /* Почти прозрачный */
                0 0 1px 5px rgba(86, 56, 140, 0.1); /* Прозрачный */
}

#nav-icon-create {
  background-image: url("../images/btns/builder.svg");
}
#nav-icon-shelf {
  background-image: url("../images/btns/shelf.svg");
}
#nav-icon-feed {
  background-image: url("../images/btns/feed.svg");
}
#nav-icon-feedback {
  background-image: url("../images/btns/feedback.svg");
}

.nav-item {
  width: 20%;
  transition: background .5s ease;
}

.active-bg {
  /*background: #ff9966;*/
  border-radius: 0 0 20px 20px;
  left: 0;
  right: 0;
  top: 0;
  bottom: -10px;
  z-index: -1;
}

.nav-item.active::before {
  opacity: 1;
}

.nav-item.active #nav-icon-create {
  background-image: url("../images/btns/builder_filled.svg");
}
.nav-item.active #nav-icon-shelf {
  background-image: url("../images/btns/shelf_filled.svg");
}
.nav-item.active #nav-icon-feed {
  background-image: url("../images/btns/feed_filled.svg");
}
.nav-item.active #nav-icon-feedback {
  background-image: url("../images/btns/feedback_filled.svg");
}

.builder-part {
  /*max-height: 60vh;*/
  /*border: 1px dotted red;*/
  /*overflow: scroll;*/
  /*overflow-x: hidden;*/
}

#top-nav {
  /*border: 1px dotted red;*/
}

.main-header {
  display: flex;
  align-items: center;
  background-color: #B197F1;
  border-radius: 10px;
  padding: 10px;
  color: white;
  width: 75%;
}

@media screen and (min-width: 800px) {
  .main-header {
    width: 30%;
  }
}


.main-header h3 {
  margin-top: auto;
  margin-bottom: auto;
}

.pic {
  background-size: contain;
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
}

.pic-magic-stick {
  background-image: url("../images/common/magic_stick.svg");

}

.pic-books {
  background-image: url("../images/common/books.svg");
}

.custom-card-wrapper {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 150px;
  border-radius: 10px;
  border: 2px solid white;
}
.custom-card-wrapper.active  {
  border: 4px solid #573C96;
}

.moral-item {
  padding: .4rem!important;
  border-radius: 10px!important;
}

@media screen and (min-width: 768px) {
  .custom-card-wrapper {
    height: 200px;
  }
  .moral-item {
    padding: 1rem!important;
    font-size: 16px!important;
  }

  .custom-card-title, .custom-form-control {
    font-size: 16px!important;
  }

  .text-purple, .text-grey {
    font-size: 20px!important;
  }

  .btn-white, .btn-purple {
    font-size: 20px!important;
  }

  .book-cover {
  }
}

.custom-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  bottom: 0;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(84, 48, 120, 1));
  border-radius: 10px;
}

.custom-card div{
  height: 100%;
}

.custom-card-title {
  position: absolute;
  bottom: 0;
  font-size: 11px;
  color: white;
  left: 50%;
  text-align: center;
  transform: translate(-50%);
}

.bg-purple {
  background-color: #B197F1;
  color: #573C96;
  border-radius: 10px;
  border: 3px solid #B197F1;
}

.card-btn .card-title {
  font-size: .7rem;
  text-align: center;
}

.card-btn.active {
  background: rgba(123, 123, 12);
}

.card-btn-img {
  background-image: linear-gradient(to bottom, #f0eae2, #ff9966);
  /*background-color: #f5f5f5;*/
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.moral-item.active {
  background: #573C96;!important;
  border: 3px solid #573C96;
}

.moral-item.active:before {
  /*content: '✔';*/
}

#shelf {
  /*max-height: 65vh;*/
  overflow: scroll;
}

#main-menu {
  background-color: rgba(255, 255, 255, .8);
}

/*#books {*/
/*  max-height: 50vh;*/
/*  overflow: scroll;*/
/*}*/

#fairytale {
  max-height: 65vh;
  overflow: scroll;
}

.book, .book img {
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
}

/*.dropdown-menu-left {*/
/*    right: 0!important;*/
/*    left: auto!important;*/
/*}*/

/*.dropdown-submenu {*/
/*    position: relative;*/
/*}*/

/*.dropdown-submenu .dropdown-menu {*/
/*    top: 0;*/
/*    right: 100%;*/
/*    margin-top: -1px;*/
/*    left: initial;*/
/*}*/

/*.submenu-right {*/
/*    right: 100%;*/
/*    left: initial;*/
/*    top: 0;*/
/*}*/

.book-img {
  height: 130px;
  border-radius: 10px;
  background-size: cover;
}

.voice-sample {
  max-width: 100%;
}

.del-fairytale, .del-hero {
  position: absolute;
  right: 20px;
  top: 0;
  text-decoration: none;
  text-align: center;
}

.del-hero {
  top: 10px;
  right: 10px;
}

.del-fairytale i {
  /*background-color: white;*/
  border-radius: 10px;
  font-size: 2rem;
  color: white;
}

.del-hero i {
  /*background-color: white;*/
  border-radius: 10px;
  font-size: 1.1rem;
  color: white;
}

.del-fairytale i:hover {
  color: red;
}

.home-interface {
  padding-bottom: 8rem;
}

.landing-shell {
  position: relative;
  overflow: hidden;
}

.landing-hero {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), rgba(255, 248, 238, 0.82) 40%, rgba(246, 237, 255, 0.92) 100%);
  box-shadow: 0 30px 70px rgba(110, 88, 155, 0.16);
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #7a558f;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-title {
  margin: 1rem 0 0.75rem;
  color: #3f2d58;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.landing-subtitle {
  max-width: 42rem;
  margin: 0;
  color: #6a6381;
  font-size: 1.05rem;
  line-height: 1.7;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.landing-primary-action,
.landing-secondary-action {
  min-width: 12rem;
  padding: 0.95rem 1.4rem;
  font-weight: 700;
}

.landing-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.landing-proof-item {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.landing-proof-item strong {
  display: block;
  color: #3f2d58;
  font-size: 1.5rem;
  line-height: 1;
}

.landing-proof-item span {
  display: block;
  margin-top: 0.45rem;
  color: #766f8c;
  font-size: 0.92rem;
}

.landing-hero-art {
  position: relative;
  min-height: 320px;
}

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.hero-orbit-sun {
  top: 0;
  right: 10%;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(255, 205, 123, 0.9), rgba(255, 205, 123, 0.15));
}

.hero-orbit-moon {
  right: 0;
  bottom: 10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(177, 151, 241, 0.34), rgba(177, 151, 241, 0.06));
}

.landing-story-card {
  position: absolute;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 45px rgba(97, 71, 141, 0.14);
}

.landing-story-card-main {
  top: 1rem;
  left: 0;
  right: 3rem;
  padding: 1.5rem;
}

.landing-story-card-side {
  right: 0;
  bottom: 0;
  max-width: 260px;
  padding: 1.15rem 1.2rem;
}

.story-card-badge,
.story-card-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.story-card-badge {
  background: rgba(255, 220, 166, 0.55);
  color: #8a5c1f;
}

.story-card-pill {
  background: rgba(177, 151, 241, 0.18);
  color: #6d4ca8;
}

.landing-story-card h2 {
  margin: 1rem 0 0.75rem;
  color: #3f2d58;
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 800;
}

.landing-story-card p {
  margin: 0.6rem 0 0;
  color: #6c6482;
  line-height: 1.65;
}

.landing-benefits {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.landing-benefit-card {
  padding: 1.35rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(105, 84, 145, 0.1);
}

.landing-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 214, 150, 0.55), rgba(177, 151, 241, 0.36));
  color: #5f438d;
  font-size: 1.2rem;
}

.landing-benefit-card h3 {
  margin: 0;
  color: #3f2d58;
  font-size: 1.15rem;
  font-weight: 700;
}

.landing-benefit-card p {
  margin: 0.75rem 0 0;
  color: #6f6785;
  line-height: 1.65;
}

.landing-builder-section {
  margin-top: 1.75rem;
  padding: 1.5rem;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(246, 240, 255, 0.94));
  box-shadow: 0 26px 60px rgba(89, 65, 127, 0.14);
}

.landing-builder-intro {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.landing-builder-intro h2 {
  margin: 1rem 0 0.6rem;
  color: #3f2d58;
  font-size: clamp(1.8rem, 2.2vw, 2.8rem);
  font-weight: 800;
}

.landing-builder-intro p {
  margin: 0;
  color: #6d6780;
  line-height: 1.7;
}

.landing-builder-shell .builder-part {
  padding: 1.25rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(177, 151, 241, 0.22);
}

.builder-step-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.builder-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffdb9f, #d8c3ff);
  color: #4e3675;
  font-weight: 800;
}

.builder-step-copy {
  color: #7a7190;
  font-size: 0.95rem;
  font-weight: 600;
}

.landing-builder-shell .main-header {
  width: auto;
  min-width: min(100%, 22rem);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ad8ae7, #ffb86f);
  box-shadow: 0 14px 30px rgba(113, 76, 171, 0.2);
}

.landing-builder-shell .text-purple {
  color: #5d438b;
}

.landing-builder-shell .custom-card-wrapper {
  overflow: hidden;
  height: 170px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 26px rgba(95, 73, 137, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-builder-shell .custom-card-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(95, 73, 137, 0.16);
}

.landing-builder-shell .custom-card-wrapper.active {
  border: 3px solid #6a46ac;
  box-shadow: 0 18px 34px rgba(106, 70, 172, 0.22);
}

.landing-builder-shell .custom-card {
  background-image: linear-gradient(to bottom, rgba(29, 17, 48, 0.02), rgba(58, 38, 95, 0.92));
}

.landing-builder-shell .custom-card-title {
  width: calc(100% - 1rem);
  bottom: 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.landing-story-textarea {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(177, 151, 241, 0.32);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.landing-story-textarea:focus {
  border-color: #9f7ae1;
  box-shadow: 0 0 0 0.2rem rgba(177, 151, 241, 0.22);
}

.landing-builder-shell .moral-item {
  padding: 0.65rem 0.95rem !important;
  border: none;
  background: rgba(177, 151, 241, 0.18);
  color: #5d438b;
}

.landing-builder-shell .moral-item.active {
  background: #5d438b !important;
  color: #fff;
  border: none;
}

.audioControls {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

.playPause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #65479a;
  box-shadow: 0 12px 24px rgba(100, 71, 154, 0.18);
  cursor: pointer;
}

.landing-builder-actions .btn {
  width: 100%;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
}

@media screen and (min-width: 768px) {
  .landing-hero {
    padding: 2.2rem;
  }

  .landing-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-builder-section {
    padding: 2rem;
  }

  .landing-builder-shell .custom-card-wrapper {
    height: 210px;
  }
}

@media screen and (min-width: 992px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: center;
    padding: 2.6rem;
  }
}

@media screen and (max-width: 767px) {
  .landing-hero,
  .landing-builder-section,
  .landing-builder-shell .builder-part {
    border-radius: 24px;
  }

  .landing-proof {
    grid-template-columns: 1fr;
  }

  .landing-story-card-main {
    right: 0.5rem;
  }

  .landing-story-card-side {
    position: relative;
    max-width: none;
    margin-top: 12rem;
  }

  .landing-primary-action,
  .landing-secondary-action {
    width: 100%;
  }
}

.auth-landing-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.94), rgba(244, 248, 255, 0.86) 42%, rgba(246, 237, 255, 0.94) 100%);
}

.auth-landing-proof .landing-proof-item {
  background: rgba(255, 255, 255, 0.82);
}

.auth-hero-art .landing-story-card-main {
  right: 1.5rem;
}

.auth-hero-art .landing-story-card-side {
  bottom: 1rem;
}

.auth-benefits-grid .landing-benefit-card {
  min-height: 100%;
}

.auth-builder-section {
  padding-top: 1.75rem;
}

.auth-builder-shell .builder-part {
  padding: 1.4rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(177, 151, 241, 0.2);
}

.auth-builder-shell .main-header {
  width: auto;
  min-width: min(100%, 24rem);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ad8ae7, #ffb86f);
  box-shadow: 0 14px 30px rgba(113, 76, 171, 0.2);
}

.auth-builder-shell .custom-card-wrapper {
  overflow: hidden;
  height: 170px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px rgba(95, 73, 137, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auth-builder-shell .custom-card-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(95, 73, 137, 0.16);
}

.auth-builder-shell .custom-card-wrapper.active {
  border: 3px solid #6a46ac;
  box-shadow: 0 18px 34px rgba(106, 70, 172, 0.22);
}

.auth-builder-shell .custom-card {
  background-image: linear-gradient(to bottom, rgba(29, 17, 48, 0.02), rgba(58, 38, 95, 0.92));
}

.auth-builder-shell .custom-card-title {
  width: calc(100% - 1rem);
  bottom: 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.auth-builder-shell .text-purple {
  color: #5d438b;
}

.auth-builder-shell .moral-item {
  padding: 0.65rem 0.95rem !important;
  border: none;
  background: rgba(177, 151, 241, 0.18);
  color: #5d438b;
}

.auth-builder-shell .moral-item.active {
  background: #5d438b !important;
  color: #fff;
  border: none;
}

@media screen and (min-width: 768px) {
  .auth-builder-shell .custom-card-wrapper {
    height: 210px;
  }
}
