/* h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
  line-height: 100%;
}

p,
li,
h1,
h2,
h3,
h4,
h5{
	margin-bottom: 1.5em;
	line-height: 100%;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

html {
    scroll-behavior: smooth;
}

body {
  line-height: 0;
  margin: 0;
}

p{
  margin-bottom: 1.5em;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
}

ol, 
ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
} */

/**
  Нормализация блочной модели
 */
*,
::before,
::after {
  box-sizing: border-box;
}

/**
  Убираем внутренние отступы слева тегам списков,
  у которых есть атрибут class
 */
:where(ul, ol):where([class]) {
  padding-left: 0;
}

/**
  Убираем внешние отступы body и двум другим тегам,
  у которых есть атрибут class
 */
body,
:where(blockquote, figure, fieldset):where([class]) {
  margin: 0;
}

/**
  Убираем внешние отступы вертикали нужным тегам,
  у которых есть атрибут class
 */
:where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  ul,
  ol,
  dl
):where([class]) {
  margin-block: 0;
}

:where(dd[class]) {
  margin-left: 0;
}

:where(fieldset[class]) {
  padding: 0;
  border: none;
}

/**
  Убираем стандартный маркер маркированному списку,
  у которого есть атрибут class
 */
:where(ul[class]) {
  list-style: none;
}

:where(address[class]) {
  font-style: normal;
}

/**
  Обнуляем вертикальные внешние отступы параграфа,
  объявляем локальную переменную для внешнего отступа вниз,
  чтобы избежать взаимодействие с более сложным селектором
 */
p {
  --paragraphMarginBottom: 24px;

  margin-block: 0;
}

/**
  Внешний отступ вниз для параграфа без атрибута class,
  который расположен не последним среди своих соседних элементов
 */
p:where(:not([class]):not(:last-child)) {
  margin-bottom: var(--paragraphMarginBottom);
}


/**
  Упрощаем работу с изображениями и видео
 */
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/**
  Наследуем свойства шрифт для полей ввода
 */
input,
textarea,
select,
button {
  font: inherit;
}

html {
  /**
    Пригодится в большинстве ситуаций
    (когда, например, нужно будет "прижать" футер к низу сайта)
   */
  height: 100%;
  /**
    Убираем скачок интерфейса по горизонтали
    при появлении / исчезновении скроллбара
   */
  scrollbar-gutter: stable;
  /**
    Плавный скролл
   */
  scroll-behavior: smooth;
}

body {
  /**
    Пригодится в большинстве ситуаций
    (когда, например, нужно будет "прижать" футер к низу сайта)
   */
  min-height: 100%;
  /**
    Унифицированный интерлиньяж
   */
  line-height: 1.5;
}

/**
  Нормализация высоты элемента ссылки при его инспектировании в DevTools
 */
a:where([class]) {
  display: inline-flex;
}

/**
  Курсор-рука при наведении на элемент
 */
button,
label {
  cursor: pointer;
}

/**
  Убирает серую подсветку при тапе на мобильных устройствах (iOS/Android)
 */
button {
  -webkit-tap-highlight-color: transparent;
}

/**
  Приводим к единому цвету svg-элементы
  (за исключением тех, у которых уже указан
  атрибут stroke со значением 'none')
 */
:where([stroke]:not(
  [stroke="none"],
  [stroke^="url"]
)) {
  stroke: currentColor;
}

/**
  Чиним баг задержки смены цвета при взаимодействии с svg-элементами
 */
svg * {
  transition-property: fill, stroke;
}

/**
  Приведение рамок таблиц в классический 'collapse' вид
 */
:where(table) {
  border-collapse: collapse;
  border-color: currentColor;
}

/**
  Удаляем все анимации и переходы для людей,
  которые предпочитают их не использовать
 */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

th{
	text-align: left;
  font-weight: 400;
  font-size: clamp(0.875rem, 0.827rem + 0.19vw, 1rem);
  line-height: 100%;
}

td{
  font-weight: 600;
  font-size: clamp(0.875rem, 0.827rem + 0.19vw, 1rem);
  line-height: 100%;
}

tr td:nth-child(2){
  text-align: right;
}

td a{
  pointer-events: none;
  color: var(--shrift);
}

tbody tr:nth-child(odd){
  background: #f8f8f8;
}

th,
td{
  padding: 16px 20px;
}

thead{
  background: #ebf0f4;
}

em{
  font-style: italic;
}


/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	gap: clamp(0.5rem, 0.125rem + 1.5vw, 1.25rem);
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
	border-radius: 12px;
	margin: 0;
	overflow: hidden;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

.gallery .gallery-icon{
	height: 100%;
}

.gallery .gallery-icon a{
	display: block;
	height: 100%;
} 

.gallery .gallery-icon a img{
	object-fit: cover;
	height: 100%;
	width: 100%;
  border-radius: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  max-height: 500px;
}


.fancy-ico span{
  box-shadow: none !important;
  transition: none !important;
  background: rgba(91, 91, 91, 0.80) !important;
}

#fancybox-close span::after, #fancybox-close span::before{
  left: 5px !important;
}

#anchor-budget{
  position: relative;
  top: 191px;
}
/* --------------------------------------------- */

html.pum-open.pum-open-overlay.pum-open-scrollable body>:not([aria-modal=true]){
  padding-right: 0px !important;
}

/* ----- Страница 404 ----- */

.error-404{
	height: 80vh;
}

.wrapper-error-404{
	height: 100%;
    display: grid;
    justify-items: center;
    align-items: center;
    align-content: center;
	gap: 25px;
}

.wrapper-error-404 span{
	font-size: clamp(1.563rem, 0.781rem + 3.13vw, 3.125rem);
    line-height: 120%;
    font-weight: 700;
    color: #d51228;
}

.wrapper-error-404 a{
	font-size: clamp(0.875rem, 0.75rem + 0.5vw, 1.125rem);
    line-height: 120%;
    font-weight: 600;
    border: 3px solid #d51228;
    padding: 10px 20px;
    border-radius: 8px;
    color: black;
	text-align: center;
}

/* --------------------------------------------- */

@media (max-width:400px){
  .gallery-columns-3{
    grid-template-columns: repeat(2, 1fr);
  }
}
