﻿/*

Theme Name: Nanaz
Author: Unknow

*/

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

body,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset,
input,
textarea,
p {
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: inter;
    src: url('fonts/inter/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
	font-display: swap;
}

@font-face {
    font-family: inter;
    src: url('fonts/inter/inter-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
	font-display: swap;
}

@font-face {
    font-family: inter;
    src: url('fonts/inter/inter-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
	font-display: swap;
}

@font-face {
    font-family: inter;
    src: url('fonts/inter/inter-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
	font-display: swap;
}

body {
	position: relative;
    background-color: #ebe8f3;
	min-width: 320px;
	display: -webkit-flex;
	display: flex;
	flex-direction: column;
	font-family: inter;
	color: #000;
	font-weight: 500;
}

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

fieldset,
img {
    border: 0;
}

img {
    vertical-align: middle;
}

ol,
ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: #000;
    font-size: 100%;
	line-height: 1.4;
	font-weight: 600;
	margin: 20px 0;
}

p {
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    margin: 20px 0;
}

p button {
    background-color: #421bac;
	display: inline-block;
	cursor: pointer;
	font-family: inherit;
	font-size: inherit;
	border: none;
	outline: none;
	padding: 2px 4px;
}

a {
	color: #421bac;
	text-decoration: none;
}

.main {
    position: relative;
    flex: 1 0 auto;
	padding-bottom: 50px;
}

.row {
    font-size: 0;
}


/* АДАПТИВ */


@media screen and (min-width: 980px)  {
	
	body {
		font-size: 17px;
		line-height: 1.7;
	}
	
	h1 {
		font-size: 32px;
	}
	
	h2 {
		font-size: 28px;
	}

	h3 {
		font-size: 24px;
	}
	
	.container {
		position: relative;
		width: 100%;
		max-width: 1320px;
		padding-left: 30px;
		padding-right: 30px;
		margin-right: auto;
		margin-left: auto;
	}
	
	.columns {
		margin-left: -10px;
		margin-right: -10px;
	}
	
	.columns .col {
		width: calc(50% - 20px);
		width: -moz-calc(50% - 20px);
		width: -webkit-calc(50% - 20px);
		display: inline-block;
		vertical-align: top;
		margin-left: 10px;
		margin-right: 10px;
	}
	
	.header .logotype { 
		position: relative;
	}
	
	.header .logotype span {
		display: inline-block;
		font-size: 16px;
	}
	
	.header .search {
		width: 280px;
	}
	
	.block {
		padding: 30px;
	}

	.block .name {
		padding: 20px 30px;
		margin: -30px -30px 0;
	}
	
	.namaz {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		flex-wrap: wrap;
		align-content: stretch;
		justify-content: center;
		text-align: center;
		margin: 0 -30px -30px;
	}
	
	.namaz dl {
		width: 16.666666%;
		display: inline-block;
		vertical-align: middle;
		font-size: 18px;
		padding: 30px 20px;
	}
	
	.namaz dl dt {
		margin-bottom: 6px;
	}
	
	.namaz dl dd.time {
		margin-bottom: 10px;
	}
	
	.namaz dl dd.time time {
		font-size: 23px;
	}
	
	.table table {
		display: block;
		margin-left: -30px;
		margin-right: -30px;
	}
	
	.table table:hover thead {
		box-shadow: 0 20px 20px -20px rgb(0 0 0 / 20%);
	}
	
	.table table thead tr th,
	.table table tbody tr td {
		padding: 8px 10px;
	}
	
	.table table thead tr th {
		font-size: 15px;
	}
	
	.table table tbody tr td {
		font-size: 17px;
	}
	
	.table table tbody tr td span {
	    font-size: 14px;
	}
	
	.qibla {
		margin-left: -30px;
		margin-right: -30px;
		margin-bottom: -30px;
	}
	
	.listing .card span {
		padding: 15px 30px;
	}
	
	.listing.locations {
		margin-left: -10px;
		margin-right: -10px;
	}
	
	.listing.locations li {
		width: -moz-calc(20% - 20px);
		width: -webkit-calc(20% - 20px);
		width: calc(20% - 20px);
		margin-left: 10px;
		margin-right: 10px;
	}
	
	.listing.articles {
		margin-left: -12px;
		margin-right: -12px;
	}
	
	.listing.articles .card {
		width: -moz-calc(33.3333% - 24px);
		width: -webkit-calc(33.3333% - 24px);
		width: calc(33.3333% - 24px);
		margin: 12px;
	}
	
	.listing.articles .card span {
		font-size: 18px;
	}
	
	.text {
		font-size: 17px;
	}
	
	.footer .bottom {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
	.footer .bottom .copyright {
		margin-right: auto;
	}
	
	.footer .bottom .menu {
		margin: 0 auto;
	}
	
	.footer .bottom .languages {
		margin-left: auto;
	}
	
	.up {
		z-index: 9999;
		position: fixed;
		bottom: 80px;
		right: 10px;
		background-color: #421bac;
		width: 30px;
		height: 30px;
		overflow: hidden;
		cursor: pointer;
		text-indent: -9999px;
		border: none;
		outline: none;
		border-radius: 8px;
	}

	.up:after {
		content: "";
		position: absolute;
		top: 5px;
		left: 5px;
		background-image: url(images/icons.png);
		background-repeat: no-repeat;
		background-size: 160px;
		background-position: -40px -20px; 
		width: 20px;
		height: 20px;
		display: block;
	}

	.up:active {
		-webkit-transform: scale(.85);
		-ms-transform: scale(.85);
		transform: scale(.85);
	}
	
}


@media screen and (max-width: 979px) {
	
	body {
		font-size: 16px;
		line-height: 1.5;
	}
	
	h1 {
		font-size: 32px;
	}
	
	h2 {
		font-size: 24px;
	}

	h3 {
		font-size: 20px;
	}
	
	.main {
		text-align: center;
	}
	
	.container {
		position: relative;
		max-width: 768px;
		padding-left: 20px;
		padding-right: 20px;
		margin: 0 auto;
	}
	
	.block {
		padding: 20px;
	}

	.block .name {
		padding: 20px;
		margin: -20px -20px 0;
	}
	
	.header .logotype span {
		display: inline-block;
		font-size: 14px;
	}
	
	.header .search {
		width: 245px;
	}
	
	.namaz {
		margin: 0 -20px -20px;
	}
	
	.namaz dl {
		position: relative;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		font-size: 17px;
		text-align: left;
		white-space: nowrap;
		border-bottom: 1px solid rgb(255 255 255 / 5%);
		padding: 10px 15px 15px;
	}
	
	.namaz dl:last-child {
		border-bottom: none;
	}
	
	.namaz dl dt {
		margin-right: auto;
	}
	
	.namaz dl dd.time {
		margin-left: auto;
	}
	
	.namaz dl dd.time time {
		font-size: 19px;
	}
	
	.namaz dl dd.note {
		margin-top: 10px;
	}
	
	.table table {
		display: block;
		margin-left: -20px;
		margin-right: -20px;
	}
	
	.table table:active thead,
	.table table:hover thead {
		box-shadow: 0 20px 20px -20px rgb(0 0 0 / 20%);
	}
	
	.table table thead tr th {
		font-size: 14px;
		padding: 15px 0;
	}
	
	.table table tbody tr td {
		font-size: 17px;
		padding: 10px 0;
	}
	
	.table table tbody tr td time,
	.table table tbody tr td span {
		white-space: normal;
	}
	
	.table table tbody tr td time {
		font-weight: 500;
		line-height: 1;
	}
	
	.table table tbody tr td:first-child {
		font-size: 12px;
	}
	
	.table table tbody tr td span {
		font-size: 11px;
	}
	
	.table table tbody tr td span {
		display: block;
	}
	
	.faq .item .answer {
		font-size: 16px;
	}
	
	.qibla {
		margin-left: -20px;
		margin-right: -20px;
		margin-bottom: -20px;
	}
	
	.listing .card span {
		padding: 15px 20px;
	}
	
	.listing.locations {
		margin-left: -10px;
		margin-right: -10px;
	}
	
	.listing.locations li {
		width: -moz-calc(33.3333% - 20px);
		width: -webkit-calc(33.3333% - 20px);
		width: calc(33.3333% - 20px);
		margin-left: 10px;
		margin-right: 10px;
	}
	
	.listing.articles {
		margin-left: -12px;
		margin-right: -12px;
	}
	
	.listing.articles .card {
		width: -moz-calc(50% - 24px);
		width: -webkit-calc(50% - 24px);
		width: calc(50% - 24px);
		margin: 12px;
	}
	
	.listing.articles .card span {
		font-size: 18px;
	}
	
	.text {
		font-size: 17px;
	}
	
	.picture {
		margin: 0 -20px;
	}
	
	.picture .caption {
		margin: 0 20px;
	}
	
	.footer {
		text-align: center;
		padding-bottom: 60px;
	}
	
	.footer .bottom .copyright {
		margin: 0 auto 20px;
	}
	
	.footer .bottom .menu {
		margin: 0 auto 20px;
	}
	
	.footer .bottom .languages {
		margin: 0 auto;
	}
	
	.up {
		display: none;
	}
	
}


@media screen and (max-width: 540px) {
	
	.listing.locations li {
		width: -moz-calc(50% - 20px);
		width: -webkit-calc(50% - 20px);
		width: calc(50% - 20px);
	}
	
	.listing.articles {
		margin-right: 0;
		margin-left: 0;
	}
	
	.listing.articles .card {
		width: 100%;
		margin: 12px auto;
	}
	
}


@media screen and (max-width: 480px) {
	
    h1 {
        font-size: 28px;
    }
	
	.container {
		padding-left: 10px;
		padding-right: 10px;
	}
	
	.header .logotype span {
		display: none;
	}
	
	.header .search {
		width: -webkit-calc(100% - 40px);
	}
	
	.table table thead tr th {
		font-size: 13px;
	}
	
	.table table tbody tr td {
		font-size: 16px;
	}
	
	.text {
		font-size: 16px;
	}
	
	.footer .bottom .languages li {
		margin: 6px;
	}
	
}


@media screen and (max-width: 360px) {
	
	h1 {
		font-size: 26px;
	}
	
	h2 {
		font-size: 22px;
	}

	h3 {
		font-size: 20px;
	}
	
	.block {
		padding: 15px;
	}

	.block .name {
		padding: 15px;
		margin: -15px -15px 0;
	}
	
	.namaz {
		margin: 0 -15px -15px;
	}
	
	.table table {
		margin-left: -15px;
		margin-right: -15px;
	}
	
	.qibla {
		margin-left: -15px;
		margin-right: -15px;
		margin-bottom: -15px;
	}
	
	.listing .card span {
		padding: 15px;
	}
	
	.picture {
		margin: 0 -15px;
	}
	
	.picture .caption {
		margin: 0 15px;
	}
	
}


@media screen and (max-width: 320px) {
	
	.table table tbody tr td {
		font-size: 14px;
	}
	
}


@media 	only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min-resolution: 1.5dppx),
only screen and (min-resolution: 144dpi)  {
	
	.header .logotype:before {
		background-image: url(images/logo@2x.png) !important;
	}
	
	.listing .card .thumbnail:after {
		background-image: url(images/icons@2x.png) !important;
	}
	
	.qibla .marker {
		background-image: url(images/icons@2x.png) !important;
	}
	
	.footer .bottom .languages button:before {
		background-image: url(images/icons@2x.png) !important;
	}
	
	.up:after {
		background-image: url(images/icons@2x.png) !important;
	}
	
}


/* ШАПКА */

.header {
	background-color: #fff;
	height: 60px;
	line-height: 60px;
	margin-bottom: 10px;
}

.header .container {
	height: 60px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	justify-content: center;
	align-items: center;
}

.header .logotype {
	display: inline-block;
	outline: none;
	margin-right: 10px;
}

.header .logotype span {
    color: #000;
	font-weight: 700;
    white-space: nowrap;
	text-transform: uppercase;
	margin-left: 7px;
}

.header .logotype:before {
    content: "";
    background-image: url(images/logo.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px;
    width: 40px;
    height: 40px;
    display: inline-block;
    vertical-align: middle;
}

.header .search {
	height: 44px;
	line-height: 44px;
	margin-left: auto;
}

.header .search input {
	background-color: #ebe8f3;
	width: 100%;
	height: 40px;
	font-size: 15px;
	white-space: nowrap;
	outline: none;
	border: none;
	border-radius: 8px;
	padding: 0 15px;
}


/* БЛОКИ */

.block {
    position: relative;
    background-color: #fff;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 20px;
}

.block .name {
    position: relative;
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    -webkit-box-shadow: 0px 1px 0px 0px #e7e7e8;
    box-shadow: 0px 1px 0px 0px #e7e7e8;
}

.block .name h1,
.block .name h2,
.block .name h3,
.block .name h4,
.block .name h5,
.block .name p {
    font-size: 18px;
	font-weight: 600;
    margin: 0;
}


/* ХЛЕБНЫЕ КРОШКИ */

.breadcrumbs {
	color: rgba(52,81,94,.8);
	font-size: 13px;
	margin-bottom: 20px;
}


/* НАМАЗ */

.namaz {
	font-size: 0;
	text-align: center;
	overflow: hidden;
}

.namaz dl {
	position: relative;
}

.namaz dl.active {
	background-color: #eeeafd;
}

.namaz dl dt,
.namaz dl dd {
	z-index: 2;
	position: relative;
}

.namaz dl dt strong {
	display: block;
}

.namaz dl dt strong,
.namaz dl dd time,
.namaz dl dd span {
	font-weight: 700;
}

.namaz dl dd.note {
	width: 100%;
	display: block;
	opacity: .8;
	font-size: 12px;
	line-height: 1.3;
}


/* СПИСОК */

.list dl {
	width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
	flex-wrap: wrap;
    align-items: center;
	font-size: 15px;
	text-align: left;
    border-bottom: 1px solid rgb(0 0 0 / 10%);
	padding: 10px 0;
	margin: 0;
}

.list dl:last-child {
    border-bottom: none;
}

.list dl dt {
	margin-right: auto;
}

.list dl dd {
	margin-left: 0;
}


/* ТАБЛИЦА */

.table table thead,
.table table tbody,
.table table tr {
    width: 100%;
	display: block;
	text-align: center;
}

.table table thead {
    background-color: #fff;
}

.table table tbody {
	max-height: 290px;
	overflow-y: auto;
}

.table table tbody::-webkit-scrollbar { 
	width: 0; 
	height: 0;
}

.table table tbody { 
	-ms-overflow-style: none; 
}

.table table tbody { 
	overflow: -moz-scrollbars-none; 
}

.table table thead tr,
.table table tbody tr {
	position: relative;
    width: 100%;
	font-size: 0;
    white-space: nowrap;
	border: none;
}

.table table tbody tr {
	border-bottom: 1px solid rgb(0 0 0 / 10%);
}

.table table tbody tr.active {
	background-color: #421bac;
	border-color: #421bac;
}

.table table thead tr th,
.table table tbody tr td {
	width: 16.6666%;
	display: inline-block;
	vertical-align: middle;
}

.table table thead tr th {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
	font-weight: 500;
}

.table table tbody tr.active td {
	color: #fff;
}


/* МЕЧЕТИ */

.mosques {
	position: relative;
    text-align: left;
}

.mosques .name {
	margin-bottom: 5px;
}

.mosques .mosque {
	position: relative;
	background-color: #fff;
	border-bottom: 1px solid #dbd7dc;
	padding-top: 20px;
	padding-bottom: 24px;
}

.mosques .mosque:last-child {
	border-bottom: none;
}

.mosques .mosque .mosque-name {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 20px;
}

.mosques .mosque .address,
.mosques .mosque .working-hours,
.mosques .mosque .phone {
	position: relative;
	font-size: 16px;
	margin-bottom: 10px;
}

.mosques .mosque .phone a {
	color: #2c292e;
	text-decoration: none;
	border-bottom: 1px dotted #2c292e;
}

.mosques .mosque .coordinates {
	display: none;
}

.mosques .button {
    background-color: #f6f6f9;
    font-family: inherit;
	display: block;
    cursor: pointer;
    color: #000;
    font-size: 15px;
	font-weight: 600;
    border: none;
    outline: none;
	border-radius: 5px;
    padding: 7px 14px 8px;
    margin: 45px auto 0;
}


/* ВОПРОСЫ НА ОТВЕТЫ */

.faq {
    text-align: left;
}

.faq .item {
	border-bottom: 1px solid rgb(0 0 0 / 10%);
	padding: 15px 0;
}

.faq .item:last-child {
	border-bottom: none;
}

.faq .item .question {
    position: relative;
	display: block;
	cursor: pointer;
    color: #000;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.6;
	padding-right: 30px;
	margin: 0;
}

.faq .item .question:after {
    content: "+";
    position: absolute;
	top: 2px;
    right: 0;
	color: #421bac;
    font-size: 23px;
	line-height: 1;
    -webkit-transition: all 1s;
    -moz-transition: all 1s;
    transition: all 1s;
}

.faq .item.active .question:after {
	-o-transform: rotate(135deg);
	-ms-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	-webkit-transform: rotate(135deg);
	transform: rotate(135deg);
}

.faq .item .answer {
	display: none;
	font-size: 15px;
	font-weight: 400;
    padding: 16px 0 0;
}


/* КИБЛА */

.qibla {
	height: 400px;
}

.qibla .marker {
    background-color: transparent;
	background-image: url(images/icons.png);
    background-repeat: no-repeat;
    background-size: 160px;
	background-position: 0 -40px;
	width: 60px;
	height: 78px;
	display: block;
}


/* БЛОГ */

.listing {
	margin-top: 15px;
}

.listing .card {
	background-color: #fff;
	max-width: 403px;
    display: inline-block;
    vertical-align: top;
	overflow: hidden;
    text-align: left;
    -webkit-transition: all .2s;
    -moz-transition: all .2s;
    transition: all .2s;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgb(0 0 0 / 14%);
}

.listing .card:hover {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
}

.listing .card img,
.listing .card .thumbnail {
	width: 100%;
	max-height: 264px;
	display: block;
}

.listing .card .thumbnail {
	position: relative;
	border-bottom: 1px solid rgb(96 125 139 / 12%);
	padding-top: 65.104%;
}

.listing .card .thumbnail:after {
    content: "";
    position: absolute;
	top: 50%;
    left: 50%;
	background-image: url(images/icons.png);
    background-repeat: no-repeat;
    background-size: 160px;
	background-position: -40px 0; 
	width: 20px;
	height: 20px;
	display: block;
	margin: -10px 0 0 -10px;
}

.listing .card span {
    width: 100%;
    display: block;
    overflow: hidden;
	color: #000;
}

.listing.locations {
	text-align: left;
}

.listing.locations li {
	display: inline-block;
	vertical-align: top;
	margin-top: 6px;
	margin-bottom: 6px;
}

.listing.locations li a {
	background-color: #f7f7fa;
	display: block;
    overflow: hidden;
	color: #000;
	font-size: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
	line-height: 1.4;
	border-radius: 6px;
	padding: 6px 12px;
}

.listing.locations li a:hover {
	background-color: #eeefef;
	color: #000;
}


/* ТЕКСТ */

.text {
	line-height: 1.7;
	text-align: left;
}

.text ul {
    display: table;
    margin: 25px 0;
}

.text ul li {
    position: relative;
    display: block;
    margin: 3px 0;
	padding-left: 16px;
}

.text ul li:after {
	content: ''; 
	position: absolute;
	left: 0;
    top: 13px;
    background-color: #042b5b;
    width: 3px;
	height: 3px;
}

.text ol {
    counter-reset: list;
    margin: 25px 0;
}

.text ol li {
    position: relative;
	padding-left: 18px;
	margin: 3px 0;
}

.text ol li:before {
    content: counter(list) ". ";
	counter-increment: list;
}


/* ИЗОБРАЖЕНИЯ */

.picture {
	margin-top: 25px;
	margin-bottom: 25px;
}

.picture img {
    max-width: 100%;
    height: auto;
	display: block;
	margin: 0 auto;
}

.picture .caption {
    display: block;
	color: rgb(0 0 0 / 60%);
    font-size: 80%;
	font-weight: 500;
	padding: 5px 0 0;
}


/* ЗАГОЛОВОК */

.title {
	display: block;
	color: #828187;
	font-size: 16px;
	font-weight: 500;
	text-align: left;
	margin-bottom: 25px;
}


/* ПАГИНАЦИЯ */

.pagination {
	font-size: 0;
	text-align: center;
    margin: 45px auto;
}

.pagination a,
.pagination span {
	background-color: #fff;
	display: inline-block;
	font-family: inherit;
	color: #607d8b;
    font-size: 15px;
	font-weight: 500;
	border: none;
	outline: none;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgb(0 0 0 / 14%);
	padding: 12px 17px 10px;
	margin: 4px;
}

.pagination .current {
	background-color: #421bac;
	color: #fff;
}


/* ФОРМА */

.form fieldset {
	position: relative;
	text-align: left;
	border: 0;
	margin-bottom: 21px;
}

.form fieldset label {
	display: block;
	font-family: inherit;
    font-size: 15px;
	font-weight: 500;
	margin-bottom: 6px;
}

.form .select {
    background-color: #f7f7fa;
    width: 100%;
	height: 40px;
	display: block;
	font-family: inherit;
    font-size: 15px;
	font-weight: 500;
	line-height: 40px;
    border: none;
	outline: none;
	border-radius: 8px;
    padding: 0 12px;
}


/* ПОДВАЛ */

.footer {
    background-color: #252525;
	width: 100%;
	flex: 0 0 auto;
	color: #bfbfbf;
	font-size: 14px;
	text-align: center;
}

.footer a,
.footer .listing.locations li a {
	color: #bfbfbf;
	font-size: 14px;
}

.footer a:hover,
.footer .listing.locations li a:hover {
	color: #fff;
}

.footer .bottom {
	padding-top: 10px;
	padding-bottom: 10px;
}

.footer .bottom .menu li {
    display: inline-block;
    margin: 5px 15px;
}

.footer .bottom .languages {
	position: relative;
}

.footer .bottom .languages button {
	position: relative;
	background-color: transparent;
	cursor: pointer;
	font-family: inherit;
	color: #bfbfbf;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #adadad;
	outline: none;
	border-radius: 8px;
	padding: 5px 10px 6px;
}

.footer .bottom .languages button:before {
	content: "";
	background-image: url(images/icons.png);
    background-repeat: no-repeat;
    background-size: 160px;
	background-position: -20px -20px;
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: middle;
	opacity: .8;
	margin-right: 8px;
}

.footer .bottom .languages ul {
	z-index: 10000;
    position: absolute;
    bottom: 32px;
    left: 50%;
    background-color: #fff;
    display: none;
    opacity: 0;
	text-align: left;
	border-radius: 8px;
    border: 1px solid rgb(0 0 0 / 12%);
	-moz-transform: translate(-50%,0);
	-ms-transform: translate(-50%,0);
	-webkit-transform: translate(-50%,0);
	transform: translate(-50%,0);
    -webkit-transition: all .2s;
    -moz-transition: all .2s;
    transition: all .2s;
    padding: 16px;
}

.footer .bottom .languages ul.show {
    display: block;
    opacity: 1;
}

.footer .bottom .languages ul li {
	display: block;
    padding: 6px 0;
}

.footer .bottom .languages ul li a {
    color: #000;
    font-size: 15px;
	line-height: 1.3;
}


/* АВТОЗАПОЛНЕНИЕ */

.search-dropdown {
	z-index: 10000;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
	background-color: #fff;
	max-height: 200px;
	display: none;
    overflow: scroll;
    overflow-x: hidden;
    overflow-y: auto;
	color: #000;
	text-align: left;
	border: 1px solid rgb(0 0 0 / 12%);
	border-radius: 8px;
	padding: 10px 0;
}

.search-dropdown.show {
	display: block;
}

.search-dropdown li {
	width: 100%;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.3;
    white-space: normal;
	padding: 5px 10px;
	margin: 0;
}

.search-dropdown li a {
	color: #000;
}

.search-dropdown li:hover {
	background-color: #421bac;
	color: #fff;
}

.search-dropdown li:hover a {
	color: #fff;
}

.ui-helper-hidden-accessible {
	display: none;
}


/* ========================================================================
   ОБЁРТКА HERO-БЛОКА (заголовок-контейнер для countdown + шестерёнки)
   ======================================================================== */

#today .name--countdown {
	position: relative;
	background-color: #421bac;
	display: -webkit-flex;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 16px 24px;
	box-shadow: none;            /* убираем нижнюю линию у hero — мешает воздуху */
}


/* ========================================================================
   КНОПКА «НАСТРОЙКИ» (триггер модального окна)
   ======================================================================== */

.settings-trigger {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: -webkit-inline-flex;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: #ffffff;
	color: #000;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	border: none;
	border-radius: 999px;
	padding: 8px 14px 8px 10px;
	cursor: pointer;
	transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease;
	min-height: 40px;
	-webkit-tap-highlight-color: transparent;
}

.settings-trigger:active { transform: translateY(1px); }

.settings-trigger:focus-visible {
	outline: 2px solid #421bac;
	outline-offset: 2px;
}

.settings-trigger__icon {
	flex: 0 0 auto;
	transition: transform .35s ease;
}

.settings-trigger:hover .settings-trigger__icon { transform: rotate(45deg); }

@media (max-width: 480px) {
	.settings-trigger { padding: 8px; }
	.settings-trigger__label { display: none; }
}


/* ========================================================================
   COUNTDOWN — главный элемент страницы (SVG-кольцо + контент)
   ======================================================================== */

.countdown {
	position: relative;
	width: 100%;
	max-width: 260px;
	aspect-ratio: 1 / 1;
	display: -webkit-flex;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

/* Фоллбэк для браузеров без aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
	.countdown::before {
		content: "";
		display: block;
		padding-top: 100%;
	}
	.countdown > * {
		position: absolute;
		inset: 0;
	}
}

.countdown__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);       /* начало пути — в 12 часов */
	overflow: visible;
}

.countdown__ring-track,
.countdown__ring-progress {
	fill: none;
	stroke-width: 10;
	stroke-linecap: round;
}

.countdown__ring-track { stroke: #fff; }

.countdown__ring-progress {
	stroke: #ff6e19;
	stroke-dasharray: 100;            /* pathLength=100 → значения в % */
	transition: stroke .3s ease;
	will-change: stroke-dashoffset;
}

/* Когда осталась минута — кольцо начинает мягко пульсировать и краснеет ярче */
.countdown.is-ending .countdown__ring-progress {
	stroke: #ff2a2a;
	animation: countdownPulse 1.2s ease-in-out infinite;
}

@keyframes countdownPulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: .55; }
}

.countdown__content {
	position: relative;
	display: -webkit-flex;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	text-align: center;
	padding: 0 12px;
	z-index: 1;
}

.countdown__caption {
	font-size: 15px !important; /* плавно сжимается на узких экранах */
	font-weight: 500;
	color: #fff;
	line-height: 1.2;
	margin: 0 0 8px !important;
	white-space: nowrap;        /* "До Аср осталось" — в одну строку */
	max-width: 100%;
	hyphens: none;              /* перекрываем глобальный hyphens: auto на <p> */
}

.countdown__prayer {
	font-weight: 700;
	color: #fff;
}

.countdown__time {
	font-size: clamp(28px, 8vw, 34px);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;     /* фиксированная ширина цифр — не дрожит */
	color: #fff;
	line-height: 1;
	letter-spacing: -.01em;
}

.countdown__starts {
	font-size: 13px;
	font-weight: 500;
	color: #fff;
	margin-top: 8px;
	line-height: 1.1;
}

/* Если по какой-то причине интервал = 0 (граничный случай) — кольцо не рендерим,
   но компонент остаётся читаемым */
.countdown.countdown--no-ring { aspect-ratio: auto; padding: 8px 0; }

/* Адаптация под маленькие экраны */
@media (max-width: 480px) {
	#today .name--countdown { padding: 24px 12px 20px; }
	.countdown { max-width: 260px; }
	.countdown__ring-track,
	.countdown__ring-progress { stroke-width: 12; }
}

/* Уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.countdown__ring-progress { transition: none; }
	.countdown.is-ending .countdown__ring-progress { animation: none; }
}


/* ========================================================================
   МОДАЛЬНОЕ ОКНО (popup) — без сторонних библиотек
   ======================================================================== */

.no-scroll { overflow: hidden !important; }

.modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: -webkit-flex;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}

.modal[hidden] { display: none; }

.modal.is-open {
	opacity: 1;
	visibility: visible;
}

.modal__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(15, 23, 30, .55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.modal__dialog {
	position: relative;
	background-color: #fff;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 40px);
	display: -webkit-flex;
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgb(0 0 0 / 25%);
	transform: translateY(12px) scale(.98);
	opacity: 0;
	transition: transform .22s ease, opacity .22s ease;
	overflow: hidden;
}

.modal.is-open .modal__dialog {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.modal__header {
	display: -webkit-flex;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid #eef0f1;
}

.modal__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #1c2126;
	margin: 0;
}

.modal__close {
	background: transparent;
	color: #607d8b;
	width: 36px;
	height: 36px;
	display: -webkit-inline-flex;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.modal__close:hover { background-color: #f4f6f7; color: #1c2126; }
.modal__close:focus-visible { outline: 2px solid #421bac; outline-offset: 2px; }

.modal__body {
	padding: 18px 20px 4px;
	overflow-y: auto;
}

.modal__hint {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	color: #607d8b;
	background-color: #f4f6f7;
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 18px;
}

.modal__body .form fieldset { margin-bottom: 16px; }
.modal__body .form fieldset:last-child { margin-bottom: 4px; }

.modal__body .form .select {
	height: 44px;
	line-height: 44px;
	background-color: #f4f6f7;
	transition: box-shadow .15s ease, background-color .15s ease;
}

.modal__body .form .select:focus-visible {
	outline: none;
	background-color: #fff;
	box-shadow: 0 0 0 2px #421bac;
}

.modal__footer {
	display: -webkit-flex;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 20px 18px;
	border-top: 1px solid #eef0f1;
	background-color: #fafbfb;
}

.btn {
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 11px 18px;
	cursor: pointer;
	min-height: 42px;
	transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn:focus-visible { outline: 2px solid #421bac; outline-offset: 2px; }
.btn:active { transform: translateY(1px); }

.btn--ghost {
	background-color: #fff;
	color: #37474f;
	border-color: #d9dee1;
}
.btn--ghost:hover { background-color: #f4f6f7; }

.btn--primary {
	background-color: #421bac;
	color: #fff;
}
.btn--primary:hover { background-color: #e23d3d; box-shadow: 0 4px 10px rgb(246 71 71 / 30%); }
.btn--primary.is-loading { opacity: .7; cursor: progress; }

/* Мобильная адаптация: окно прижимается к низу экрана как «лист действий» */
@media (max-width: 520px) {
	.modal { padding: 0; align-items: flex-end; }
	.modal__dialog {
		max-width: 100%;
		max-height: 92vh;
		border-radius: 16px 16px 0 0;
		transform: translateY(20px);
	}
	.modal.is-open .modal__dialog { transform: translateY(0); }
}

/* Уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.modal, .modal__dialog, .settings-trigger, .btn { transition: none !important; }
}