/*
Theme Name:     Azbyka Child for ZNAKOMSTVA
Theme URI:      https://azbyka.ru/ZNAKOMSTVA
Description:    Дочерняя тема для темы Azbyka на сайте Азбука фото
Author:         BZhuk
Author URI:     https://t.me/b_zhuk
Template:       azbyka
Version:        1.4.33
*/

.page-template-empty .main-box {
	padding: 0!important;
}

.page-template-empty .main-area {
	padding-left: 0!important;
	max-width: 920px;
	margin: auto;
}

.page-id-16282 .article-footer{
	display: none;
}

.help-btn{
	display:none!important;
}

.help-btn.footer-help-btn {
	display: inline-block!important;
}

.sidebar-feedback-link{
	font-size: 1.25rem;
	font-weight: bold;
}

.article-post-footer{
	justify-content: unset;
}

.sz-footer p {
	margin-bottom: 0;
}

.sz-footer .copyrights {
	margin-top: 10px;
	font-size: 1rem;
}

.sz-footer a {
	text-decoration: underline .1px #2222;
}

.article-footer__read{
	margin-right: 0;
}
.article-footer__read a {
	width: auto!important;
}

.button .true,
.button .false{
	display: none;
}

.button[data-active="true"] .true,
.button[data-active="false"] .false{
	display: block;
}

.blog .article-image img,
.author .article-image img{
	width: 70px;
	height: 70px;
	aspect-ratio: 1/1;
}

/* .main-box{
	max-width: 100vw!important;
} */

/* .main-page-content{
	overflow: hidden auto;
	height: calc(100vh - 1cm);
} */
div.pagination a.current{
	background-color: #6B4F38 !important;
}

#send_verification_btn{
	margin-bottom: 10px;
}

.main-page-content :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="color"], select, button, .button, input[type="button"], input[type="submit"], input[type="reset"], input[type="date"]) {
	height: 2em;
}

.comment-text blockquote {
	display: inline-block;
}

@media (min-width: 921px) {
	body {
		background: url(assets/images/petr-fevronia.png) no-repeat 63% 20vh/120%, var(--body-bg)
	}
	
    #az_toolbox {
		right: 1em;
	}
	
	.comment-text {
		font-size: 1.4rem;
	}
}

.count-users {
	font-size: 1rem;
	color: var(--text-color);
	opacity: .7;
}

.azb-btn{
	background: #FBF5EA;
	color: #6b4f38;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: transform 0.2s ease;
}

.azb-btn:hover{
	transform: scale(1.05);
}

.related-posts .bg_bpub_book_author,
.author-name {
	font-size: .9em;
	font-style: italic;
	font-weight: 400;
	color: var(--text-color, #000);
}

/* Уведомления */
.auth-message {
	padding: 10px;
	border: .1px solid;
	border-radius: 5px;
}

/*кнопка просмотр анкеты*/
.view-profile-btn{
	text-decoration: none !important;
}
.view-profile-btn:hover .profile-photo-container{
	transform: scale(1.02);
}
.container-view-profile-btn{
	margin-bottom: 5px;
}
/*скрыть просмотр анкет */
#menu-item-614, #menu-item-618, #menu-item-648, #menu-item-655, #menu-item-693{
	display: none !important;
}

/*стили для настроек приватности*/
.field-with-visibility {
	gap: 10px;
	margin: 8px 0;
	flex-wrap: wrap;
}

.field-with-visibility label {
	min-width: 220px;
	font-weight: bold;
}

.field-with-visibility select,
.field-with-visibility input,
.field-with-visibility textarea {
	flex: 1;
	min-width: 200px;
	max-width: 300px;
}

/* Триггер */
.field-privacy-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: #f0f0f0;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	user-select: none;
}

.field-privacy-trigger:hover {
	background: #e0e0e0;
}

/* Скрываем оригинальный select */
.field-privacy-select {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* Выпадающее меню */
.field-privacy-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: white;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	list-style: none;
	padding: 0;
	margin: 4px 0 0;
	z-index: 100;
	min-width: 180px;
}

.field-privacy-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: white;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	list-style: none;
	padding: 0;
	margin: 4px 0 0;
	z-index: 100;
	min-width: 180px;
}

.field-privacy-dropdown li {
	padding: 8px 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background 0.2s;
}

.field-privacy-dropdown li:hover {
	background: #f9f9f9;
}

.field-privacy-dropdown .icon {
	font-size: 16px;
	width: 20px;
	text-align: center;
}

/* =============== PROFILE FORM =============== */
.profile-form,
.profile-view {
	max-width: 900px;
	padding: 1.5rem;
	background: var(--widget-bg);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	font-family: var(--text-font);
}

.profile-form h3,
.profile-view h3 {
	margin-top: 0;
	margin-bottom: 1.25rem;
	font-size: 1.5rem;
	color: var(--text-color);
	font-family: var(--title-font);
}

.profile-form label {
	display: block;
	margin-bottom: 0.375rem;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--text-color);
}

.profile-form input[type="text"],
.profile-form input[type="number"],
.profile-form input[type="date"],
.profile-form input[type="tel"],
.profile-form input[type="url"],
.profile-form select {
	width: 100%;
	padding: 10px 12px;
	font-size: 1rem;
	border: 1px solid var(--input-border);
	border-radius: 8px;
	background: var(--input-bg);
	color: var(--text-color);
	transition: border-color 0.2s, box-shadow 0.2s;
	background: var(--body-bg, #fefefe);
}

.profile-form input:focus,
.profile-form select:focus {
	outline: none;
	border-color: var(--input-focus);
	box-shadow: 0 0 0 3px rgba(160, 140, 120, 0.15);
}

/* Группы полей */
.profile-form .field-group {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.profile-form .field-group > div {
	flex: 1;
	min-width: 200px;
}

/* Чекбоксы */
.profile-form .checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.profile-form .checkbox-group label {
	font-weight: normal;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

/* Кнопка */
.profile-form button[type="submit"] {
	background: var(--link-color);
	color: white;
	border: none;
	border-radius: 8px;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.profile-form button:hover {
	background: #4a3d32;
}

.profile-form button:active {
	transform: translateY(1px);
}

/* Сообщения */
.profile-message {
	padding: 12px;
	margin-bottom: 1.25rem;
	border-radius: 8px;
	font-weight: 500;
}

.profile-message.success {
	background: #e8f5e9;
	color: var(--success-color);
	border: 1px solid #c8e6c9;
}

.profile-message.error {
	background: #ffebee;
	color: var(--error-color);
	border: 1px solid #ffcdd2;
}

/* =============== PROFILE VIEW =============== */
.profile-view p {
	margin: 0.5rem 0;
	line-height: 1.5;
}

.profile-view strong {
	color: var(--link-color);
	font-weight: 600;
}

.profiles-search-container {
	margin: 0 auto;
}
.profiles-search-form .field-group {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
    gap: 10px;
    margin: 0 0 15px;
    align-items: flex-end;
}
.profiles-search-form label {
	display: block;
	font-size: 1rem;
	margin-bottom: 4px;
	opacity: .8;
	letter-spacing: 0;
}

.profiles-search-form select,
.profiles-search-form input[type="number"],
.profiles-search-form input[type="text"]
{
	width: 100%;
}

.browse-range-wrapper{
	display: flex;
}

.browse-range-wrapper input:first-of-type{
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.browse-range-wrapper input:last-of-type{
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	border-left: 0;
}

.checkbox-group {
	display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
	margin-bottom: .5em;
}
.checkbox-group label {
	display: inline-block;
	margin: 0;
}

.profiles-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.profile-card {
	position: relative;
	text-align: center;
	transition: opacity .3s ease;
}

.profile-card:has(.ignore-btn[data-active="true"]) {
	opacity: 0.4;
}

.profile-card .profile-actions {
	display: block;
}

.profile-photo {
	width: 100%;
	height: 100%;
	display:block;
	background:#8888;
	border-radius:4px;
	text-align:center;
	line-height:160px;
}

.profile-photo-container{
	width: 100%;
	height: auto;
	aspect-ratio: 1/1;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 4px 4px 10px -4px #3a3a3a3a;
	transition: transform 0.2s ease;
}

.profile-card .onliner{
	position: absolute;
	top: 5px;
	left: 5px;
	width: 5px;
	height: 5px;
	border-radius: 5px;
}

.profile-info .onliner{
	width: 5px;
	height: 5px;
	border-radius: 5px;
}

.profile-card .onliner.online,
.profile-info .onliner.online{
	background: #0c0;
}
.profile-card .onliner.offline,
.profile-info .onliner.offline{
	background: #c00;
}
.profile-card .profile-info{
	margin-top: 5px;
	text-align: center;
}

.profile-card .profile-info .name {
	color: var(--link-color);
	cursor: pointer;
}

.profile-card .profile-info .button {
	padding: 0;
	border: 0;
	vertical-align: .05em;
    width: 1.25em;
	height: auto;
	line-height: 1;
}

.profile-card .profile-info .ignore-btn .false{
	opacity: .6;
}

.favorite-btn .true,
.ignore-btn .true {
	color: #a00;
}

.profile-card .profile-info .button .true,
.profile-card .profile-info .button .false{
	font-size: 0;
}

.profile-card .profile-info .button .fa {
	font-size: 1rem;
}

.profile-card .profile-info .age {
	opacity: .6;
	font-size: 80%;
}

.profiles-search-form button {
	background: var(--link-color);
	color: var(--body-bg);
	border: none;
	flex-grow: 1;
    flex-shrink: 0;
	min-width: 5em;
	grid-column-end: -1;
}
.profiles-search-form button:hover {
	background: var(--accent-color);
}
.profiles-search-form a {
	text-decoration: none;
}


.profiles-search-form .form-controls{
	margin-top: 1rem;
}

.profiles-search-form .form-controls .button {
	text-align: center;
}

.profiles-search-form .form-controls .button-matchmaker {
	background-color: color-mix(in srgb, var(--link-color), transparent 90%);
}

.profile-form .field-group {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.profile-form .field-group > div,
.profile-form .field-group > label {
	width: 100%;
	display: block;
}

.profile-form .field-with-comment {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.profile-form .field-with-comment > select,
.profile-form .field-with-comment > input,
.profile-form .field-with-comment > textarea {
	margin-bottom: 0;
}

.profile-form .comment-field {
	margin-top: 0 !important;
	width: 100%;
}

.profile-form .comment-field label {
	display: block;
	margin-top: 0.5em;
}

.profile-form .comment-field textarea {
	width: 100%;
	box-sizing: border-box;
}

/* === Современная стилизация анкеты === */
.profile-form {
	max-width: 800px;
	margin: 2rem auto;
	padding: 1.5rem;
	background: var(--widget-bg);
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	font-size: 1rem;
	line-height: 1.5;
}

.profile-form h3,
.profile-form h4 {
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	color: var(--link-color);
	font-weight: 600;
}

.profile-form h3:first-child {
	margin-top: 0;
}

/* Группы полей — строго вертикально */
.profile-form .field-group {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

/* Отдельные поля */
.profile-form .field-with-visibility,
.profile-form .checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.profile-form label {
	font-weight: 500;
	color: var(--text-color);
	margin-bottom: 0.25rem;
}

.profile-form input[type="text"],
.profile-form input[type="date"],
.profile-form input[type="number"],
.profile-form input[type="file"],
.profile-form select,
.profile-form textarea {
	padding: 0.625rem 0.75rem;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: var(--body-bg);
	color: var(--text-color);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
	outline: none;
	border-color: var(--link-color);
	box-shadow: 0 0 0 2px rgba(107, 79, 56, 0.15);
}

.profile-form textarea {
	min-height: 4.5rem;
	resize: vertical;
}

/* Чекбоксы */
.profile-form .checkbox-group label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: normal;
	cursor: pointer;
}

/* Комментарии — всегда под полем */
.profile-form .field-with-comment {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.profile-form .comment-field {
	margin-top: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	position: relative;
	top: -7px;
}

.profile-form .comment-field label {
	font-size: 0.9rem;
	color: #666;
}

.profile-form .comment-field textarea {
	font-size: 0.95rem;
	padding: 0.5rem;
}

/* Кнопка отправки */
.profile-form button[type="submit"] {
	margin-top: 1.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	background: var(--link-color);
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.profile-form button[type="submit"]:hover {
	background: #5a422f;
	transform: translateY(-1px);
}

.profile-form button[type="submit"]:active {
	transform: translateY(0);
}

.resend-verification-form label,
.reset-password-form label {
	display: block;
}

@media (max-width: 768px) {
	.profile-form .field-group {
		flex-direction: column;
		gap: 1rem;
	}

	.profile-form .field-group > div {
		min-width: unset;
	}
}

.widget_bg_counter_online_widget .bg-az-counter p:nth-of-type(2),
.widget_bg_counter_online_widget .bg-az-counter p:nth-of-type(3)
{
	display: none;
}

.widget_bg_counter_online_widget a {
	text-decoration: .1px underline #ccc;
}

.single-happy_stories .article-single-image{
	display: none;
}

.article-read-more{
	font-weight: 600;
	margin-right: auto;
}

.happy-stories-preface {
	text-align: left;
	padding-bottom: 1rem;
	border-bottom: .1px solid #ccc;
	margin-bottom: 2rem;
}

.padded-counter,
.chat-total-counter {
	display: inline-block;
	background: var(--body-bg);
	border-radius: 5px;
	padding: .2em .5em;
	font-size: .8em;
}

#az_toolbox .chat-link {
	position: relative;
	background: transparent;
	color: var(--body-bg);
	padding: 0;
	text-align: center;
    height: .9cm;
	font-size: 1rem;
}

#az_toolbox .chat-link:before {
	content: '\f075';
	font-family: FontAwesome;
	position: absolute;
	left: 50%;
	top: .125rem;
	font-size: 1.8rem;
	color: var(--link-color);
	transform: translateX(-50%);
	z-index: -1;
}

#az_toolbox .chat-total-counter {
	background: transparent;
}

/* search */
.search-wrap {
	display: inline-block;
	position: relative;
	flex-shrink: 1;
}

.search-wrap .btn-search {
	position: absolute;
	right: 0;
	padding: 0.6rem;
}

.search-wrap input {
	padding-right: 2rem;
	width: 100%;
}

/* виджет календаря */

.date-today, 
.days-image {
	text-align: center;
}

.saints p {
	display: inline-block;
}

.saints p+p{
	margin-left: 5px;
}

/* Модальные окна — на мобильных занимают почти весь экран */
.modal {
    display: none;
	line-height: 65;
    text-align: center;

    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
	display: inline-block;
	text-align: left;
	line-height: 1.5;
	position: relative;
	background-color: var(--widget-bg);
    margin: auto;
    padding: 10px;
    border-radius: 5px;
    width: calc(100vw - 20px);
    max-width: 400px;
    max-height: calc(100vh - 2cm);
    overflow-y: auto;
    animation: slideIn 0.3s;
    border: 1px solid var(--link-color);
    box-sizing: border-box;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content .close {
    color: var(--link-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
	position: absolute;
    right: 0;
    top: 0;
}

/* Элементы форм в модалках */
.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="email"],
.modal-content input[type="number"],
.modal-content select,
.modal-content textarea {
    width: 100%;
}

.modal-content textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-content button {
    width: 100%;
    background: var(--link-color);
    color: var(--body-bg);
    border: none;
    transition: background 0.2s;
}

.modal-content #save-settings{
	margin-top: 10px;
}

.modal-content>h3,
.modal-content>div {
	margin-top:0;
	margin-bottom: 10px;
}

.warning a,
.chat-warning a {
	text-decoration: underline;
}


/* Формы/попапы */
#fav_form {
	display: none;
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: 1000;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.5);
}

.fav_form__content {
	background-color: var(--widget-bg);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	width: 400px;
	max-width: calc(100vw - 20px);
	border-radius: 5px;
	padding: 10px;
}

.fav_form__button_container {
	display: flex;
	gap: 10px;
}

.fav_form__button_container .button {
	width: 100%;
}

.select-click {
	user-select: all;
}

.edit-profile-form .profile-hide {
	display: none;
}

.toggle {
  cursor: pointer;
  display: inline-block;
}

.toggle-switch {
  display: inline-block;
  background: #ccc;
  border-radius: 16px;
  width: 46px;
  height: 24px;
  position: relative;
  vertical-align: middle;
  transition: background 0.25s;
}
.toggle-switch:before, .toggle-switch:after {
  content: "";
}

.toggle-switch:before {
  display: block;
  background: white;
  border-radius: 8px;
  width: 16px;
  height: 16px;
  position: absolute;
  top: 4px;
  left: 4px;
  transition: left 0.25s;
}

.toggle:hover .toggle-switch:before {
  background: white;
}

.toggle-checkbox:checked + .toggle-switch {
  background: color-mix(in srgb, #0c0, transparent 40%);
}

.toggle-checkbox:checked + .toggle-switch:before {	
  left: 26px;
	background: white;
}

.toggle-checkbox {
  position: absolute;
  visibility: hidden;
}

.switch-text {
	font-size: 1rem;
    opacity: .8;
    letter-spacing: 0;
}

.items-center {
	align-items: center;
}

.user-feed .comment {
	border:0;
}

.user-feed-post-title>a:after {
	content: '\f0f6';
	font-family: FontAwesome;
	margin-left: 5px;
}

.fp-radio-container {
    margin-top: 4px;
}

.fp-radio {
    gap: 0;
}

.fp-radio label {
    color: var(--link-color);
}

.fp-radio label img {
    height: 2rem;
}

.fp-radio label img.light {	
	display: block;
}

.fp-radio label img.dark {
	display: none;
}

html[data-theme="dark"] .fp-radio label img.dark {
	display: block;
}
html[data-theme="dark"] .fp-radio label img.light {
	display: none;
}

.fp-slider-container .slider-title-container {
	gap: 17px;
}

.ai-btn {
	cursor: pointer;
}

.error-notice {
	font-weight: 500;
    color: var(--accent-color);
}

.hidden-message {
	display: none;
    position: absolute;
	left: 5%;
    z-index: 10;
	background: var(--body-bg);
    border-radius: 5px;
    padding: .2em .5em;
    font-size: .8em;
}

.user-note {
	white-space: pre-line;
	font-size: 1.25rem;
    margin: 5px 0;
    padding: 5px 10px;
    background: var(--widget-bg);
    border-left: 3px solid #d4c5ad;
    border-radius: 4px;
}

.menu-item {
	position: relative;
}

@media(min-width: 921px){
	.desk-2-col {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}
}

@media (max-width: 420px) {
	.fp-slider-container .slider-controls {
		display: none;
	}
}