/* Автономные модальные окна страницы памяти */
#memory_popup_overflow {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999999;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(5px);
    overflow: hidden;
    padding: 20px 10px;
    box-sizing: border-box;
}
#memory_popup_overflow.visible { display: flex; align-items: center; justify-content: center; }
#memory_popup_overflow [hidden] { display: none !important; }
#memory_popup_overflow .memory_popup_window {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 620px);
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #f5f5f5;
    color: #022f4c;
    font-family: Mulish, Arial, sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}
#memory_popup_overflow .memory_popup_content {
    display: none;
    padding: 34px 30px 30px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
}
#memory_popup_overflow .memory_popup_close {
    position: absolute;
    top: 4px;
    right: 7px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #022f4c;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
#memory_popup_overflow h2 {
    position: sticky;
    top: -34px;
    z-index: 2;
    margin: -34px -30px 12px;
    padding: 34px 66px 12px 30px;
    background: #f5f5f5;
    font-family: Brygada1918, Georgia, serif;
    font-size: 26px;
    font-weight: normal;
    color: #a95048;
}
#memory_popup_overflow h3 {
    margin: 0 0 10px;
    font-family: Brygada1918, Georgia, serif;
    font-size: 21px;
    font-weight: normal;
}
#memory_popup_overflow p { font-size: 15px; line-height: 1.45; margin: 0 0 14px; }
#memory_popup_overflow .memory_story_field { margin: 16px 0; }
#memory_popup_overflow .memory_story_field > label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}
#memory_popup_overflow .memory_story_field input,
#memory_popup_overflow .memory_story_field textarea {
    display: block;
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    background: #fff;
    color: #022f4c;
    font: 15px Mulish, Arial, sans-serif;
    padding: 11px 12px;
}
#memory_popup_overflow .memory_story_field textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
#memory_popup_overflow .memory_story_field input:focus,
#memory_popup_overflow .memory_story_field textarea:focus { outline: 2px solid #ad8157; outline-offset: 1px; }
#memory_popup_overflow .memory_story_auth {
    border-top: 1px solid #d9d9d9;
    padding-top: 22px;
    margin-top: 24px;
}
#memory_popup_overflow .memory_story_auth_email,
#memory_popup_overflow .memory_story_auth_code { margin-top: 15px; }
#memory_popup_overflow .memory_story_consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    margin: 16px 0;
}
#memory_popup_overflow .memory_story_consent input { flex: 0 0 auto; margin-top: 3px; }
#memory_popup_overflow .memory_story_consent a { color: #a95048; text-decoration: underline; }
.memory_story_button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 20px;
    background: #022f4c;
    border: 1px solid #022f4c;
    color: #fff;
    font: 16px Brygada1918, Georgia, serif;
    cursor: pointer;
    text-align: center;
}
.memory_story_button:hover:not(:disabled) { background: #fff; color: #022f4c; }
.memory_story_button:disabled { opacity: .55; cursor: not-allowed; }
.memory_story_button[hidden] { display: none !important; }
#memory_popup_overflow .memory_story_submit { width: 100%; margin-top: 18px; }
#memory_popup_overflow .memory_story_link {
    background: transparent;
    border: 0;
    color: #a95048;
    text-decoration: underline;
    cursor: pointer;
    padding: 10px;
    font: 14px Mulish, Arial, sans-serif;
}
#memory_popup_overflow p.memory_story_message {
    color: #e84524;
    font-size: 14px;
    margin: 10px 0 0;
}
#memory_popup_overflow p.memory_story_message:empty { display: none; }
#memory_popup_overflow p.memory_story_auth_success { color: #287357; margin: 16px 0; }
#memory_story_opener { margin: 20px 0; }
/* Подсказка к воспоминанию */
#memory_popup_overflow .memory_story_hint {
    margin: 18px 0;
}

#memory_popup_overflow .memory_story_hint_text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 15px;
    line-height: 1.5;
}

#memory_popup_overflow .memory_story_hint_text p {
    display: inline;
    margin: 0;
}

#memory_popup_overflow .memory_story_hint_text p:not(:last-child)::after {
    content: " ";
}

#memory_popup_overflow .memory_story_hint.expanded .memory_story_hint_text {
    display: block;
}

#memory_popup_overflow .memory_story_hint.expanded .memory_story_hint_text p {
    display: block;
    margin: 0 0 12px;
}

#memory_popup_overflow .memory_story_hint.expanded .memory_story_hint_text p:last-child {
    margin-bottom: 0;
}

#memory_popup_overflow .memory_story_hint_toggle {
    display: inline-block;
    margin-top: 8px;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px dashed #a95048;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #a95048;
    font: 14px Mulish, Arial, sans-serif;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
}

#memory_popup_overflow .memory_story_hint_toggle:hover {
    color: #843b35;
    border-bottom-color: #843b35;
}

@media (max-width: 600px) {
    #memory_popup_overflow { padding: 10px; }
    #memory_popup_overflow .memory_popup_content { padding: 42px 18px 22px; }
    #memory_popup_overflow h2 {
        top: -42px;
        margin: -42px -18px 12px;
        padding: 42px 48px 12px 18px;
        font-size: 23px;
    }
}


#cookie-notice {
  position:fixed;
  min-width:100%;
  height:auto;
  z-index:100000;
  font-size:13px;
  letter-spacing:0;
  line-height:20px;
  left:0;
  text-align:center;
  font-weight:400;
  font-family:-apple-system,BlinkMacSystemFont,Arial,Roboto,"Helvetica Neue",sans-serif
}
#cookie-notice,
#cookie-notice * {
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  box-sizing:border-box
}
#cookie-notice.cn-animated {
  -webkit-animation-duration:.5s!important;
  animation-duration:.5s!important;
  -webkit-animation-fill-mode:both;
  animation-fill-mode:both
}
#cookie-notice.cn-animated.cn-effect-none {
  -webkit-animation-duration:1ms!important;
  animation-duration:1ms!important
}
#cookie-notice .cookie-notice-container {
  display:block
}
#cookie-notice.cookie-notice-hidden .cookie-notice-container {
  display:none
}
#cookie-notice .cookie-revoke-container {
  display:block
}
#cookie-notice.cookie-revoke-hidden .cookie-revoke-container {
  display:none
}
.cn-position-top {
  top:0
}
.cn-position-bottom {
  bottom:0
}
.cookie-notice-container {
  padding:15px 30px;
  text-align:center;
  width:100%;
  z-index:2
}
.cookie-revoke-container {
  padding:15px 30px;
  width:100%;
  z-index:1
}
.cn-close-icon {
  position:absolute;
  right:15px;
  top:50%;
  margin:-10px 0 0 0;
  width:15px;
  height:15px;
  opacity:.5;
  padding:10px;
  border:none;
  outline:0;
  background:0 0;
  box-shadow:none;
  cursor:pointer
}
.cn-close-icon:focus,
.cn-close-icon:focus-visible {
  outline:2px solid currentColor;
  outline-offset:3px
}
.cn-close-icon:hover {
  opacity:1
}
.cn-close-icon:after,
.cn-close-icon:before {
  position:absolute;
  content:' ';
  height:15px;
  width:2px;
  top:3px;
  background-color:grey
}
.cn-close-icon:before {
  transform:rotate(45deg)
}
.cn-close-icon:after {
  transform:rotate(-45deg)
}
#cookie-notice .cn-revoke-cookie {
  margin:0
}
#cookie-notice .cn-button {
  margin:0 0 0 10px;
  display:inline-block
}
#cookie-notice .cn-button:not(.cn-button-custom) {
  font-family:-apple-system,BlinkMacSystemFont,Arial,Roboto,"Helvetica Neue",sans-serif;
  font-weight:400;
  font-size:13px;
  letter-spacing:.25px;
  line-height:20px;
  margin:0 0 0 10px;
  text-align:center;
  text-transform:none;
  display:inline-block;
  cursor:pointer;
  touch-action:manipulation;
  white-space:nowrap;
  outline:0;
  box-shadow:none;
  text-shadow:none;
  border:none;
  -webkit-border-radius:2rem;
  -moz-border-radius:2rem;
  border-radius:2rem;
  text-decoration:none;
  padding:8.5px 10px;
  line-height:1;
  color:inherit
}
.cn-text-container {
  margin:0 0 6px 0
}
.cn-buttons-container,
.cn-text-container {
  display:inline-block
}
.cn-compliance-warning {
  display:block;
  color:#f5a623!important;
  font-size:12px;
  line-height:18px;
  margin:4px 0 8px 0
}
.cn-compliance-warning .cn-warning-icon {
  color:#f5a623!important;
  margin-right:4px
}
.cn-compliance-warning strong {
  color:#f5a623!important
}
.cn-compliance-warning a {
  color:#f5a623!important;
  text-decoration:underline
}
.cn-compliance-warning a:hover {
  color:#ffb84d!important
}
#cookie-notice.cookie-notice-visible.cn-effect-none,
#cookie-notice.cookie-revoke-visible.cn-effect-none {
  -webkit-animation-name:fadeIn;
  animation-name:fadeIn
}
#cookie-notice.cn-effect-none {
  -webkit-animation-name:fadeOut;
  animation-name:fadeOut
}
#cookie-notice.cookie-notice-visible.cn-effect-fade,
#cookie-notice.cookie-revoke-visible.cn-effect-fade {
  -webkit-animation-name:fadeIn;
  animation-name:fadeIn
}
#cookie-notice.cn-effect-fade {
  -webkit-animation-name:fadeOut;
  animation-name:fadeOut
}
#cookie-notice.cookie-notice-visible.cn-effect-slide,
#cookie-notice.cookie-revoke-visible.cn-effect-slide {
  -webkit-animation-name:slideInUp;
  animation-name:slideInUp
}
#cookie-notice.cn-effect-slide {
  -webkit-animation-name:slideOutDown;
  animation-name:slideOutDown
}
#cookie-notice.cookie-notice-visible.cn-position-top.cn-effect-slide,
#cookie-notice.cookie-revoke-visible.cn-position-top.cn-effect-slide {
  -webkit-animation-name:slideInDown;
  animation-name:slideInDown
}
#cookie-notice.cn-position-top.cn-effect-slide {
  -webkit-animation-name:slideOutUp;
  animation-name:slideOutUp
}
@-webkit-keyframes fadeIn {
  from {
    opacity:0
  }
  to {
    opacity:1
  }
}
@keyframes fadeIn {
  from {
    opacity:0
  }
  to {
    opacity:1
  }
}
@-webkit-keyframes fadeOut {
  from {
    opacity:1
  }
  to {
    opacity:0
  }
}
@keyframes fadeOut {
  from {
    opacity:1
  }
  to {
    opacity:0
  }
}
@-webkit-keyframes slideInUp {
  from {
    -webkit-transform:translate3d(0,100%,0);
    transform:translate3d(0,100%,0);
    visibility:visible
  }
  to {
    -webkit-transform:translate3d(0,0,0);
    transform:translate3d(0,0,0)
  }
}
@keyframes slideInUp {
  from {
    -webkit-transform:translate3d(0,100%,0);
    transform:translate3d(0,100%,0);
    visibility:visible
  }
  to {
    -webkit-transform:translate3d(0,0,0);
    transform:translate3d(0,0,0)
  }
}
@-webkit-keyframes slideOutDown {
  from {
    -webkit-transform:translate3d(0,0,0);
    transform:translate3d(0,0,0)
  }
  to {
    visibility:hidden;
    -webkit-transform:translate3d(0,100%,0);
    transform:translate3d(0,100%,0)
  }
}
@keyframes slideOutDown {
  from {
    -webkit-transform:translate3d(0,0,0);
    transform:translate3d(0,0,0)
  }
  to {
    visibility:hidden;
    -webkit-transform:translate3d(0,100%,0);
    transform:translate3d(0,100%,0)
  }
}
@-webkit-keyframes slideInDown {
  from {
    -webkit-transform:translate3d(0,-100%,0);
    transform:translate3d(0,-100%,0);
    visibility:visible
  }
  to {
    -webkit-transform:translate3d(0,0,0);
    transform:translate3d(0,0,0)
  }
}
@keyframes slideInDown {
  from {
    -webkit-transform:translate3d(0,-100%,0);
    transform:translate3d(0,-100%,0);
    visibility:visible
  }
  to {
    -webkit-transform:translate3d(0,0,0);
    transform:translate3d(0,0,0)
  }
}
@-webkit-keyframes slideOutUp {
  from {
    -webkit-transform:translate3d(0,0,0);
    transform:translate3d(0,0,0)
  }
  to {
    visibility:hidden;
    -webkit-transform:translate3d(0,-100%,0);
    transform:translate3d(0,-100%,0)
  }
}
@keyframes slideOutUp {
  from {
    -webkit-transform:translate3d(0,0,0);
    transform:translate3d(0,0,0)
  }
  to {
    visibility:hidden;
    -webkit-transform:translate3d(0,-100%,0);
    transform:translate3d(0,-100%,0)
  }
}
@media all and (max-width:900px) {
  .cookie-notice-container #cn-notice-text {
    display:block
  }
  .cookie-notice-container #cn-notice-buttons {
    display:block
  }
  #cookie-notice .cn-button {
    margin:0 5px 5px 5px
  }
}
@media all and (max-width:480px) {
  .cookie-notice-container,
  .cookie-revoke-container {
    padding:15px 25px
  }
}

@media (max-width: 900px) {
	.cookie-notice-container #cn-notice-buttons {
		display: block;
		text-align: left;
	}

	.cookie-notice-container #cn-notice-text {
		display: block;
		text-align: left;
		padding-right: 70px;
	}

	#cookie-notice .cn-button:not(.cn-button-custom) {
		margin-left: 0px;
	}
}

/* Распространение страницы памяти */

.memory_share_container {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px 20px;
    text-align: center;
    box-sizing: border-box;
}

.memory_share_native button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    background: #022f4c;
    border: 1px solid #022f4c;
    color: #fff;
    font: 16px Brygada1918, Georgia, serif;
    cursor: pointer;
}

.memory_share_native button:hover {
    background: #fff;
    color: #022f4c;
}

.memory_share_title {
    margin: 0 0 15px;
    font: 20px Brygada1918, Georgia, serif;
    color: #022f4c;
}

.memory_share_fallback[hidden] {
    display: none !important;
}